Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 14.0Version 13.0 (current release)Version 12.0Version 11.0 (home page)Version 10.0 (home page)Version 9.0 (home page)Version 8.0 (home page)Version 7.0 (home page)Version 6.0 (home page)Version 5.0 (home page)Version 4.0 (home page)

On this page

kmlmi - Command Line Lexical Model model_info Compiler

kmlmi merges Keyman lexical model .model_info files. It is intended for use within the keymanapp/lexical-models repository. kmlmi is also available via npm.

Installation via npm

First, install nodejs. Then, install with the following:

npm i @keymanapp/developer-lexical-model-compiler

Compiler mode

The following parameters are available:

Usage: kmlmi <infile> -o, --outFile <filename>
    [-m, --model <model_id>] -s, --source <sourceFilename> [--kpsFilename <kpsFilename>]
    [--kmpFilename <kmpFilename>] [--jsFilename <jsFilename>]

General compiler parameters

infile
A .model_info source file. Required in compiler mode.
-o, --outFile <filename>
Where to save the resultant file.
-m, --model <model_id>
model id. Defaults to basename of input file sans .model_info extension.
-s, --source <sourceFilename>
Path to .model.ts source of lexical model, relative to lexical-models repo root.
--kpsFilename <kpsFilename>
Path to .model.kps file. Defaults to source/<model_id>.model.kps
--kmpFilename <kmpFilename>
Path to .model.kmp file. Defaults to build/<model_id>.model.kmp.
--jsFilename <jsFilename>
Path to .model.js file. Defaults to build/<model_id>.model.js.