@keymanapp/kmc-ldml 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,9 +1,9 @@
1
- # Keyman Developer - kmc-ldml
2
-
3
- This package compiles LDML .xml keyboards into Keyman .kmx binary keyboard
4
- files. It can be used from the command line with
5
- [@keymanapp/kmc](https://npmjs.com/package/@keymanapp/kmc).
6
-
7
- Note: this package requires WASM support (for the uset parser).
8
-
9
- * [API Reference](https://help.keyman.com/developer/current-version/reference/api/kmc-ldml)
1
+ # Keyman Developer - kmc-ldml
2
+
3
+ This package compiles LDML .xml keyboards into Keyman .kmx binary keyboard
4
+ files. It can be used from the command line with
5
+ [@keymanapp/kmc](https://npmjs.com/package/@keymanapp/kmc).
6
+
7
+ Note: this package requires WASM support (for the uset parser).
8
+
9
+ * [API Reference](https://help.keyman.com/developer/current-version/reference/api/kmc-ldml)
@@ -36,13 +36,13 @@ export class LdmlCompilerMessages {
36
36
  static HINT_NoDisplayForMarker = SevHint | 0x000C;
37
37
  static Hint_NoDisplayForMarker = (o, compileContext) => mx(this.HINT_NoDisplayForMarker, compileContext, `Key element with id "${def(o.id)}" has only marker output, but there is no matching display element by output or keyId. Keycap may be blank.`);
38
38
  static ERROR_InvalidVersion = SevError | 0x000D;
39
- static Error_InvalidVersion = (o, compileContext) => mx(this.ERROR_InvalidVersion, compileContext, `Version number '${def(o.version)}' must be a semantic version format string with 'major.minor.patch' components.`, `The version number in the LDML keyboard file must be a [semantic
40
- version](https://semver.org) (semver) string. This string has a format of three
41
- integers representing major, minor, and patch versions, separated by periods. In
42
- the LDML keyboard specification, the full semver format is permitted, including
43
- pre-release suffix strings, but the Keyman toolchain currently restricts the
44
- format to the three integer components.
45
-
39
+ static Error_InvalidVersion = (o, compileContext) => mx(this.ERROR_InvalidVersion, compileContext, `Version number '${def(o.version)}' must be a semantic version format string with 'major.minor.patch' components.`, `The version number in the LDML keyboard file must be a [semantic
40
+ version](https://semver.org) (semver) string. This string has a format of three
41
+ integers representing major, minor, and patch versions, separated by periods. In
42
+ the LDML keyboard specification, the full semver format is permitted, including
43
+ pre-release suffix strings, but the Keyman toolchain currently restricts the
44
+ format to the three integer components.
45
+
46
46
  Example: \`"1.12.3"\``);
47
47
  static ERROR_MustBeAtLeastOneLayerElement = SevError | 0x000E;
48
48
  static Error_MustBeAtLeastOneLayerElement = (compileContext) => mx(this.ERROR_MustBeAtLeastOneLayerElement, compileContext, `The source file must contain at least one layer element.`);
@@ -119,25 +119,25 @@ export class LdmlCompilerMessages {
119
119
  // max length of detail message lines (checked by verifyCompilerMessagesObject) |
120
120
  //------------------------------------------------------------------------------|
121
121
  static ERROR_IllegalTransformDollarsign = SevErrorTransform | 0x01;
122
- static Error_IllegalTransformDollarsign = (o, compileContext) => mx(this.ERROR_IllegalTransformDollarsign, compileContext, `Invalid transform from="${def(o.from)}": Unescaped dollar-sign ($) is not valid transform syntax.`, `
123
- **Hint**: Use \`\\$\` to match a literal dollar-sign. If this precedes a
124
- variable name, the variable name may not be valid (A-Z, a-z, 0-9, _, 32
125
- character maximum).
122
+ static Error_IllegalTransformDollarsign = (o, compileContext) => mx(this.ERROR_IllegalTransformDollarsign, compileContext, `Invalid transform from="${def(o.from)}": Unescaped dollar-sign ($) is not valid transform syntax.`, `
123
+ **Hint**: Use \`\\$\` to match a literal dollar-sign. If this precedes a
124
+ variable name, the variable name may not be valid (A-Z, a-z, 0-9, _, 32
125
+ character maximum).
126
126
  `);
127
127
  static ERROR_TransformFromMatchesNothing = SevErrorTransform | 0x02;
128
128
  static Error_TransformFromMatchesNothing = (o, compileContext) => mx(this.ERROR_TransformFromMatchesNothing, compileContext, `Invalid transfom from="${def(o.from)}": Matches an empty string.`);
129
129
  static ERROR_IllegalTransformPlus = SevErrorTransform | 0x03;
130
- static Error_IllegalTransformPlus = (o, compileContext) => mx(this.ERROR_IllegalTransformPlus, compileContext, `Invalid transform from="${def(o.from)}": Unescaped plus (+) is not valid transform syntax.`, `
131
- **Hint**: Use \`\\+\` to match a literal plus.
130
+ static Error_IllegalTransformPlus = (o, compileContext) => mx(this.ERROR_IllegalTransformPlus, compileContext, `Invalid transform from="${def(o.from)}": Unescaped plus (+) is not valid transform syntax.`, `
131
+ **Hint**: Use \`\\+\` to match a literal plus.
132
132
  `);
133
133
  static ERROR_IllegalTransformAsterisk = SevErrorTransform | 0x04;
134
- static Error_IllegalTransformAsterisk = (o, compileContext) => mx(this.ERROR_IllegalTransformAsterisk, compileContext, `Invalid transform from="${def(o.from)}": Unescaped asterisk (*) is not valid transform syntax.`, `
135
- **Hint**: Use \`\\*\` to match a literal asterisk.
134
+ static Error_IllegalTransformAsterisk = (o, compileContext) => mx(this.ERROR_IllegalTransformAsterisk, compileContext, `Invalid transform from="${def(o.from)}": Unescaped asterisk (*) is not valid transform syntax.`, `
135
+ **Hint**: Use \`\\*\` to match a literal asterisk.
136
136
  `);
137
137
  static ERROR_IllegalTransformToUset = SevErrorTransform | 0x05;
138
- static Error_IllegalTransformToUset = (o, compileContext) => mx(this.ERROR_IllegalTransformToUset, compileContext, `Invalid transform to="${def(o.to)}": Set variable (\\$[…]) cannot be used in 'to=' unless part of a map.`, `
139
- **Hint**: If a map was meant, must use the form
140
- \`<transform from="($[fromSet])" to="$[1:toSet]"/>\`.
138
+ static Error_IllegalTransformToUset = (o, compileContext) => mx(this.ERROR_IllegalTransformToUset, compileContext, `Invalid transform to="${def(o.to)}": Set variable (\\$[…]) cannot be used in 'to=' unless part of a map.`, `
139
+ **Hint**: If a map was meant, must use the form
140
+ \`<transform from="($[fromSet])" to="$[1:toSet]"/>\`.
141
141
  `);
142
142
  static ERROR_UnparseableTransformTo = SevErrorTransform | 0x06;
143
143
  static Error_UnparseableTransformTo = (o, compileContext) => mx(this.ERROR_UnparseableTransformTo, compileContext, `Invalid transform to="${def(o.to)}": "${def(o.message)}"`);
package/package.json CHANGED
@@ -1,71 +1,72 @@
1
- {
2
- "name": "@keymanapp/kmc-ldml",
3
- "description": "Keyman Developer LDML keyboard compiler",
4
- "keywords": [
5
- "keyboard",
6
- "keyman",
7
- "ldml",
8
- "unicode"
9
- ],
10
- "type": "module",
11
- "exports": {
12
- ".": "./build/src/main.js"
13
- },
14
- "files": [
15
- "/build/src/"
16
- ],
17
- "scripts": {
18
- "build": "tsc -b",
19
- "lint": "eslint .",
20
- "test": "gosh ./build.sh test"
21
- },
22
- "author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
23
- "license": "MIT",
24
- "bugs": {
25
- "url": "https://github.com/keymanapp/keyman/issues"
26
- },
27
- "dependencies": {
28
- "@keymanapp/developer-utils": "19.0.146-alpha",
29
- "@keymanapp/keyman-version": "19.0.146-alpha",
30
- "@keymanapp/kmc-kmn": "19.0.146-alpha",
31
- "@keymanapp/ldml-keyboard-constants": "19.0.146-alpha",
32
- "semver": "^7.5.4"
33
- },
34
- "devDependencies": {
35
- "@keymanapp/developer-test-helpers": "19.0.146-alpha",
36
- "@keymanapp/resources-gosh": "19.0.146-alpha",
37
- "@types/common-tags": "^1.8.4",
38
- "@types/mocha": "^5.2.7",
39
- "@types/node": "^20.4.1",
40
- "@types/semver": "^7.3.12",
41
- "abnf": "^4.3.1",
42
- "c8": "^7.12.0",
43
- "chalk": "^2.4.2",
44
- "common-tags": "^1.8.2",
45
- "peggy": "^4.2.0",
46
- "typescript": "^5.4.5"
47
- },
48
- "mocha": {
49
- "spec": "build/test/**/*.tests.js",
50
- "require": [
51
- "source-map-support/register"
52
- ]
53
- },
54
- "c8": {
55
- "all": true,
56
- "src": [
57
- "src/"
58
- ],
59
- "exclude-after-remap": true,
60
- "exclude": [
61
- "test/",
62
- "src/util/abnf/*/*.d.ts",
63
- "src/util/abnf/*/*.js"
64
- ]
65
- },
66
- "repository": {
67
- "type": "git",
68
- "url": "git+https://github.com/keymanapp/keyman.git"
69
- },
70
- "version": "19.0.146-alpha"
71
- }
1
+ {
2
+ "name": "@keymanapp/kmc-ldml",
3
+ "description": "Keyman Developer LDML keyboard compiler",
4
+ "keywords": [
5
+ "keyboard",
6
+ "keyman",
7
+ "ldml",
8
+ "unicode"
9
+ ],
10
+ "type": "module",
11
+ "exports": {
12
+ ".": "./build/src/main.js"
13
+ },
14
+ "files": [
15
+ "/build/src/"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc -b",
19
+ "lint": "eslint .",
20
+ "test": "gosh ./build.sh test"
21
+ },
22
+ "author": "Marc Durdin <marc@keyman.com> (https://github.com/mcdurdin)",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/keymanapp/keyman/issues"
26
+ },
27
+ "dependencies": {
28
+ "@keymanapp/developer-utils": "19.0.151-alpha",
29
+ "@keymanapp/keyman-version": "19.0.151-alpha",
30
+ "@keymanapp/kmc-kmn": "19.0.151-alpha",
31
+ "@keymanapp/ldml-keyboard-constants": "19.0.151-alpha",
32
+ "semver": "^7.5.4"
33
+ },
34
+ "devDependencies": {
35
+ "@keymanapp/developer-test-helpers": "19.0.151-alpha",
36
+ "@keymanapp/resources-gosh": "19.0.151-alpha",
37
+ "@types/common-tags": "^1.8.4",
38
+ "@types/mocha": "^5.2.7",
39
+ "@types/node": "^20.4.1",
40
+ "@types/semver": "^7.3.12",
41
+ "abnf": "^4.3.1",
42
+ "c8": "^7.12.0",
43
+ "chalk": "^2.4.2",
44
+ "common-tags": "^1.8.2",
45
+ "peggy": "^4.2.0",
46
+ "typescript": "^5.4.5"
47
+ },
48
+ "mocha": {
49
+ "spec": "build/test/**/*.tests.js",
50
+ "require": [
51
+ "source-map-support/register"
52
+ ]
53
+ },
54
+ "c8": {
55
+ "all": true,
56
+ "src": [
57
+ "src/"
58
+ ],
59
+ "exclude-after-remap": true,
60
+ "exclude": [
61
+ "test/",
62
+ "src/util/abnf/*/*.d.ts",
63
+ "src/util/abnf/*/*.js"
64
+ ]
65
+ },
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/keymanapp/keyman.git",
69
+ "directory": "developer/src/kmc-ldml"
70
+ },
71
+ "version": "19.0.151-alpha"
72
+ }