@keymanapp/kmc-model 19.0.146-alpha → 19.0.151-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Keyman Developer - kmc-model
2
-
3
- This package compiles .model.ts lexical models into .model.js files. It can be
4
- used from the command line with
5
- [@keymanapp/kmc](https://npmjs.com/package/@keymanapp/kmc).
6
-
7
- * [API Reference](https://help.keyman.com/developer/current-version/reference/api/kmc-model)
1
+ # Keyman Developer - kmc-model
2
+
3
+ This package compiles .model.ts lexical models into .model.js files. It can be
4
+ used from the command line with
5
+ [@keymanapp/kmc](https://npmjs.com/package/@keymanapp/kmc).
6
+
7
+ * [API Reference](https://help.keyman.com/developer/current-version/reference/api/kmc-model)
@@ -48,10 +48,10 @@ export class ModelCompilerMessages {
48
48
  static ERROR_UnsupportedScriptOverride = SevError | 0x000A;
49
49
  static Error_UnsupportedScriptOverride = (o) => m(this.ERROR_UnsupportedScriptOverride, `Unsupported script override: ${def(o.option)}`);
50
50
  static ERROR_ModelFileNotFound = SevError | 0x000B;
51
- static Error_ModelFileNotFound = (o) => m(this.ERROR_ModelFileNotFound, `Lexical model source file ${def(o.filename)} was not found`, `The model source file was not found on the disk. Verify that you have
51
+ static Error_ModelFileNotFound = (o) => m(this.ERROR_ModelFileNotFound, `Lexical model source file ${def(o.filename)} was not found`, `The model source file was not found on the disk. Verify that you have
52
52
  the correct path to the file.`);
53
53
  static ERROR_WordlistFileNotFound = SevError | 0x000C;
54
- static Error_WordlistFileNotFound = (o) => m(this.ERROR_WordlistFileNotFound, `Wordlist file ${def(o.filename)} was not found`, `The wordlist file was not found on the disk. Verify that you have
54
+ static Error_WordlistFileNotFound = (o) => m(this.ERROR_WordlistFileNotFound, `Wordlist file ${def(o.filename)} was not found`, `The wordlist file was not found on the disk. Verify that you have
55
55
  the correct path to the file.`);
56
56
  }
57
57
  ;
@@ -144,20 +144,20 @@ export class ModelDefinitions {
144
144
  // Similarly, as long as any helper functions are similarly compiled and stored as part of `model`,
145
145
  // they should be accessible too. The issue would be to actually allow use of extra custom funcs
146
146
  // and include them as part of this object as part of compilation.
147
- defn += `,\n applyCasing: function(caseToApply, text) {
148
- return ${PSEUDOCLOSURE}.model.applyCasing(caseToApply, text, ${PSEUDOCLOSURE}.defaults.applyCasing);
147
+ defn += `,\n applyCasing: function(caseToApply, text) {
148
+ return ${PSEUDOCLOSURE}.model.applyCasing(caseToApply, text, ${PSEUDOCLOSURE}.defaults.applyCasing);
149
149
  }`;
150
150
  }
151
151
  else if (this.defaults.applyCasing) {
152
152
  // We can't directly assign from `.defaults`, as initialization-time field reads
153
153
  // are not permitted within JS. Function references, however, are valid.
154
- defn += `,\n applyCasing: function(caseToApply, text) {
155
- return ${PSEUDOCLOSURE}.defaults.applyCasing(caseToApply, text);
154
+ defn += `,\n applyCasing: function(caseToApply, text) {
155
+ return ${PSEUDOCLOSURE}.defaults.applyCasing(caseToApply, text);
156
156
  }`;
157
157
  }
158
158
  // if(this.searchTermToKey) {
159
- defn += `,\n searchTermToKey: function(text) {
160
- return ${PSEUDOCLOSURE}.model.searchTermToKey(text, ${PSEUDOCLOSURE}.applyCasing);
159
+ defn += `,\n searchTermToKey: function(text) {
160
+ return ${PSEUDOCLOSURE}.model.searchTermToKey(text, ${PSEUDOCLOSURE}.applyCasing);
161
161
  }`;
162
162
  // }
163
163
  // END - compiled closures.
package/package.json CHANGED
@@ -1,69 +1,70 @@
1
- {
2
- "name": "@keymanapp/kmc-model",
3
- "description": "Keyman Developer lexical model compiler",
4
- "keywords": [
5
- "keyboard",
6
- "keyman",
7
- "unicode",
8
- "lexical-model",
9
- "predictive-text"
10
- ],
11
- "type": "module",
12
- "exports": {
13
- ".": "./build/src/main.js"
14
- },
15
- "files": [
16
- "/build/src/"
17
- ],
18
- "scripts": {
19
- "build": "tsc -b",
20
- "lint": "eslint .",
21
- "test": "./build.sh test"
22
- },
23
- "author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
24
- "contributors": [
25
- "Eddie Antonio Santos <Eddie.Santos@nrc-cnrc.gc.ca>",
26
- "Joshua Horton"
27
- ],
28
- "license": "MIT",
29
- "bugs": {
30
- "url": "https://github.com/keymanapp/keyman/issues"
31
- },
32
- "dependencies": {
33
- "@keymanapp/common-types": "19.0.146-alpha",
34
- "@keymanapp/keyman-version": "19.0.146-alpha",
35
- "typescript": "^5.4.5"
36
- },
37
- "devDependencies": {
38
- "@keymanapp/developer-test-helpers": "19.0.146-alpha",
39
- "@keymanapp/models-templates": "19.0.146-alpha",
40
- "@types/mocha": "^5.2.7",
41
- "@types/node": "^20.4.1",
42
- "c8": "^7.12.0",
43
- "chalk": "^2.4.2",
44
- "esbuild": "^0.25.0"
45
- },
46
- "mocha": {
47
- "spec": "build/test/**/*.tests.js",
48
- "require": [
49
- "source-map-support/register"
50
- ]
51
- },
52
- "c8": {
53
- "all": true,
54
- "src": [
55
- "src/"
56
- ],
57
- "exclude-after-remap": true,
58
- "exclude": [
59
- "test/",
60
- "tools/",
61
- "src/lexical-model.ts"
62
- ]
63
- },
64
- "repository": {
65
- "type": "git",
66
- "url": "git+https://github.com/keymanapp/keyman.git"
67
- },
68
- "version": "19.0.146-alpha"
69
- }
1
+ {
2
+ "name": "@keymanapp/kmc-model",
3
+ "description": "Keyman Developer lexical model compiler",
4
+ "keywords": [
5
+ "keyboard",
6
+ "keyman",
7
+ "unicode",
8
+ "lexical-model",
9
+ "predictive-text"
10
+ ],
11
+ "type": "module",
12
+ "exports": {
13
+ ".": "./build/src/main.js"
14
+ },
15
+ "files": [
16
+ "/build/src/"
17
+ ],
18
+ "scripts": {
19
+ "build": "tsc -b",
20
+ "lint": "eslint .",
21
+ "test": "./build.sh test"
22
+ },
23
+ "author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
24
+ "contributors": [
25
+ "Eddie Antonio Santos <Eddie.Santos@nrc-cnrc.gc.ca>",
26
+ "Joshua Horton"
27
+ ],
28
+ "license": "MIT",
29
+ "bugs": {
30
+ "url": "https://github.com/keymanapp/keyman/issues"
31
+ },
32
+ "dependencies": {
33
+ "@keymanapp/common-types": "19.0.151-alpha",
34
+ "@keymanapp/keyman-version": "19.0.151-alpha",
35
+ "typescript": "^5.4.5"
36
+ },
37
+ "devDependencies": {
38
+ "@keymanapp/developer-test-helpers": "19.0.151-alpha",
39
+ "@keymanapp/models-templates": "19.0.151-alpha",
40
+ "@types/mocha": "^5.2.7",
41
+ "@types/node": "^20.4.1",
42
+ "c8": "^7.12.0",
43
+ "chalk": "^2.4.2",
44
+ "esbuild": "^0.25.0"
45
+ },
46
+ "mocha": {
47
+ "spec": "build/test/**/*.tests.js",
48
+ "require": [
49
+ "source-map-support/register"
50
+ ]
51
+ },
52
+ "c8": {
53
+ "all": true,
54
+ "src": [
55
+ "src/"
56
+ ],
57
+ "exclude-after-remap": true,
58
+ "exclude": [
59
+ "test/",
60
+ "tools/",
61
+ "src/lexical-model.ts"
62
+ ]
63
+ },
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/keymanapp/keyman.git",
67
+ "directory": "developer/src/kmc-model"
68
+ },
69
+ "version": "19.0.151-alpha"
70
+ }