@keymanapp/kmc-ldml 18.0.41-alpha → 18.0.46-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.
Files changed (58) hide show
  1. package/build/src/compiler/compiler.d.ts +123 -123
  2. package/build/src/compiler/compiler.js +307 -310
  3. package/build/src/compiler/compiler.js.map +1 -1
  4. package/build/src/compiler/disp.d.ts +11 -11
  5. package/build/src/compiler/disp.js +82 -85
  6. package/build/src/compiler/disp.js.map +1 -1
  7. package/build/src/compiler/empty-compiler.d.ts +37 -37
  8. package/build/src/compiler/empty-compiler.js +114 -117
  9. package/build/src/compiler/empty-compiler.js.map +1 -1
  10. package/build/src/compiler/keymanweb-compiler.d.ts +13 -13
  11. package/build/src/compiler/keymanweb-compiler.js +95 -98
  12. package/build/src/compiler/keymanweb-compiler.js.map +1 -1
  13. package/build/src/compiler/keys.d.ts +53 -53
  14. package/build/src/compiler/keys.js +417 -420
  15. package/build/src/compiler/keys.js.map +1 -1
  16. package/build/src/compiler/layr.d.ts +9 -9
  17. package/build/src/compiler/layr.js +81 -84
  18. package/build/src/compiler/layr.js.map +1 -1
  19. package/build/src/compiler/ldml-compiler-options.d.ts +11 -11
  20. package/build/src/compiler/ldml-compiler-options.js +3 -6
  21. package/build/src/compiler/ldml-compiler-options.js.map +1 -1
  22. package/build/src/compiler/loca.d.ts +15 -15
  23. package/build/src/compiler/loca.js +59 -62
  24. package/build/src/compiler/loca.js.map +1 -1
  25. package/build/src/compiler/messages.d.ts +186 -186
  26. package/build/src/compiler/messages.js +122 -125
  27. package/build/src/compiler/messages.js.map +1 -1
  28. package/build/src/compiler/meta.d.ts +13 -13
  29. package/build/src/compiler/meta.js +55 -58
  30. package/build/src/compiler/meta.js.map +1 -1
  31. package/build/src/compiler/metadata-compiler.d.ts +12 -12
  32. package/build/src/compiler/metadata-compiler.js +47 -50
  33. package/build/src/compiler/metadata-compiler.js.map +1 -1
  34. package/build/src/compiler/section-compiler.d.ts +35 -35
  35. package/build/src/compiler/section-compiler.js +40 -43
  36. package/build/src/compiler/section-compiler.js.map +1 -1
  37. package/build/src/compiler/substitution-tracker.d.ts +47 -47
  38. package/build/src/compiler/substitution-tracker.js +103 -106
  39. package/build/src/compiler/substitution-tracker.js.map +1 -1
  40. package/build/src/compiler/touch-layout-compiler.d.ts +7 -7
  41. package/build/src/compiler/touch-layout-compiler.js +91 -94
  42. package/build/src/compiler/touch-layout-compiler.js.map +1 -1
  43. package/build/src/compiler/tran.d.ts +57 -57
  44. package/build/src/compiler/tran.js +388 -391
  45. package/build/src/compiler/tran.js.map +1 -1
  46. package/build/src/compiler/vars.d.ts +21 -21
  47. package/build/src/compiler/vars.js +234 -237
  48. package/build/src/compiler/vars.js.map +1 -1
  49. package/build/src/compiler/visual-keyboard-compiler.d.ts +8 -8
  50. package/build/src/compiler/visual-keyboard-compiler.js +68 -71
  51. package/build/src/compiler/visual-keyboard-compiler.js.map +1 -1
  52. package/build/src/main.d.ts +3 -3
  53. package/build/src/main.js +3 -6
  54. package/build/src/main.js.map +1 -1
  55. package/build/src/util/util.d.ts +49 -49
  56. package/build/src/util/util.js +183 -186
  57. package/build/src/util/util.js.map +1 -1
  58. package/package.json +6 -6
@@ -1,125 +1,122 @@
1
-
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="97c978d8-9a7b-5773-affd-83d0899eb8c7")}catch(e){}}();
3
- import { util, CompilerErrorNamespace, CompilerErrorSeverity, CompilerMessageSpec as m, CompilerMessageDef as def } from "@keymanapp/common-types";
4
- // const SevInfo = CompilerErrorSeverity.Info | CompilerErrorNamespace.LdmlKeyboardCompiler;
5
- const SevHint = CompilerErrorSeverity.Hint | CompilerErrorNamespace.LdmlKeyboardCompiler;
6
- const SevWarn = CompilerErrorSeverity.Warn | CompilerErrorNamespace.LdmlKeyboardCompiler;
7
- const SevError = CompilerErrorSeverity.Error | CompilerErrorNamespace.LdmlKeyboardCompiler;
8
- // const SevFatal = CompilerErrorSeverity.Fatal | CompilerErrorNamespace.LdmlKeyboardCompiler;
9
- // sub-numberspace for transform errors
10
- const SevErrorTransform = SevError | 0xF00;
11
- /**
12
- * @internal
13
- */
14
- export class CompilerMessages {
15
- static HINT_NormalizationDisabled = SevHint | 0x0001;
16
- static Hint_NormalizationDisabled = () => m(this.HINT_NormalizationDisabled, `normalization=disabled is not recommended.`);
17
- static ERROR_InvalidLocale = SevError | 0x0002;
18
- static Error_InvalidLocale = (o) => m(this.ERROR_InvalidLocale, `Invalid BCP 47 locale form '${def(o.tag)}'`);
19
- static ERROR_HardwareLayerHasTooManyRows = SevError | 0x0003;
20
- static Error_HardwareLayerHasTooManyRows = () => m(this.ERROR_HardwareLayerHasTooManyRows, `'hardware' layer has too many rows`);
21
- static ERROR_RowOnHardwareLayerHasTooManyKeys = SevError | 0x0004;
22
- static Error_RowOnHardwareLayerHasTooManyKeys = (o) => m(this.ERROR_RowOnHardwareLayerHasTooManyKeys, `Row #${def(o.row)} on 'hardware' ${def(o.hardware)} layer for modifier ${o.modifiers || 'none'} has too many keys`);
23
- static ERROR_KeyNotFoundInKeyBag = SevError | 0x0005;
24
- static Error_KeyNotFoundInKeyBag = (o) => m(this.ERROR_KeyNotFoundInKeyBag, `Key '${def(o.keyId)}' in position #${def(o.col)} on row #${def(o.row)} of layer ${def(o.layer)}, form '${def(o.form)}' not found in key bag`);
25
- static HINT_OneOrMoreRepeatedLocales = SevHint | 0x0006;
26
- static Hint_OneOrMoreRepeatedLocales = () => m(this.HINT_OneOrMoreRepeatedLocales, `After minimization, one or more locales is repeated and has been removed`);
27
- static ERROR_InvalidFile = SevError | 0x0007;
28
- static Error_InvalidFile = (o) => m(this.ERROR_InvalidFile, `The source file has an invalid structure: ${def(o.errorText)}`);
29
- static HINT_LocaleIsNotMinimalAndClean = SevHint | 0x0008;
30
- static Hint_LocaleIsNotMinimalAndClean = (o) => m(this.HINT_LocaleIsNotMinimalAndClean, `Locale '${def(o.sourceLocale)}' is not minimal or correctly formatted and should be '${def(o.locale)}'`);
31
- static ERROR_InvalidScanCode = SevError | 0x0009;
32
- static Error_InvalidScanCode = (o) => m(this.ERROR_InvalidScanCode, `Form '${def(o.form)}' has invalid/unknown scancodes '${def(o.codes?.join(' '))}'`);
33
- static WARN_CustomForm = SevWarn | 0x000A;
34
- static Warn_CustomForm = (o) => m(this.WARN_CustomForm, `Custom <form id="${def(o.id)}"> element. Key layout may not be as expected.`);
35
- static ERROR_GestureKeyNotFoundInKeyBag = SevError | 0x000B;
36
- static Error_GestureKeyNotFoundInKeyBag = (o) => m(this.ERROR_GestureKeyNotFoundInKeyBag, `Key '${def(o.keyId)}' not found in key bag, referenced from other '${def(o.parentKeyId)}' in ${def(o.attribute)}`);
37
- // 0x000C - available
38
- static ERROR_InvalidVersion = SevError | 0x000D;
39
- static Error_InvalidVersion = (o) => m(this.ERROR_InvalidVersion, `Version number '${def(o.version)}' must be a semantic version format string.`);
40
- static ERROR_MustBeAtLeastOneLayerElement = SevError | 0x000E;
41
- static Error_MustBeAtLeastOneLayerElement = () => m(this.ERROR_MustBeAtLeastOneLayerElement, `The source file must contain at least one layer element.`);
42
- // 0x000F - available
43
- /** annotate the to= or id= entry */
44
- static outputOrKeyId(o) {
45
- if (o.output && o.keyId) {
46
- return `output='${o.output}' keyId='${o.keyId}'`;
47
- }
48
- else if (o.keyId) {
49
- return `keyId='${o.keyId}'`;
50
- }
51
- else if (o.output) {
52
- return `output='${o.output}'`;
53
- }
54
- else {
55
- return '';
56
- }
57
- }
58
- static ERROR_DisplayIsRepeated = SevError | 0x0010;
59
- static Error_DisplayIsRepeated = (o) => m(this.ERROR_DisplayIsRepeated, `display ${CompilerMessages.outputOrKeyId(o)} has more than one display entry.`);
60
- static ERROR_KeyMissingToGapOrSwitch = SevError | 0x0011;
61
- static Error_KeyMissingToGapOrSwitch = (o) => m(this.ERROR_KeyMissingToGapOrSwitch, `key id='${def(o.keyId)}' must have either output=, gap=, or layerId=.`);
62
- static ERROR_ExcessHardware = SevError | 0x0012;
63
- static Error_ExcessHardware = (o) => m(this.ERROR_ExcessHardware, `layers formId=${def(o.formId)}: Can only have one non-'touch' element`);
64
- static ERROR_InvalidHardware = SevError | 0x0013;
65
- static Error_InvalidHardware = (o) => m(this.ERROR_InvalidHardware, `layers has invalid value formId=${def(o.formId)}`);
66
- static ERROR_InvalidModifier = SevError | 0x0014;
67
- static Error_InvalidModifier = (o) => m(this.ERROR_InvalidModifier, `layer has invalid modifiers='${def(o.modifiers)}' on layer id=${def(o.layer)}`);
68
- static ERROR_MissingFlicks = SevError | 0x0015;
69
- static Error_MissingFlicks = (o) => m(this.ERROR_MissingFlicks, `key id=${def(o.id)} refers to missing flickId=${def(o.flickId)}`);
70
- static ERROR_DuplicateVariable = SevError | 0x0016;
71
- static Error_DuplicateVariable = (o) => m(this.ERROR_DuplicateVariable, `duplicate variables: id=${def(o.ids)}`);
72
- // Not hit due to XML parsing
73
- static ERROR_InvalidTransformsType = SevError | 0x0018;
74
- static Error_InvalidTransformsType = (o) => m(this.ERROR_InvalidTransformsType, `Invalid transforms types: '${def(o.types?.join(','))}'`);
75
- static ERROR_DuplicateTransformsType = SevError | 0x0019;
76
- static Error_DuplicateTransformsType = (o) => m(this.ERROR_DuplicateTransformsType, `Duplicate transforms types: '${def(o.types?.join(','))}'`);
77
- static ERROR_MixedTransformGroup = SevError | 0x001A;
78
- static Error_MixedTransformGroup = () => m(this.ERROR_MixedTransformGroup, `transformGroup cannot contain both reorder and transform elements`);
79
- static ERROR_EmptyTransformGroup = SevError | 0x001B;
80
- static Error_EmptyTransformGroup = () => m(this.ERROR_EmptyTransformGroup, `transformGroup must have either reorder or transform elements`);
81
- static ERROR_MissingStringVariable = SevError | 0x001C;
82
- static Error_MissingStringVariable = (o) => m(this.ERROR_MissingStringVariable, `Reference to undefined string variable: \${${def(o.id)}}`);
83
- static ERROR_MissingSetVariable = SevError | 0x001D;
84
- static Error_MissingSetVariable = (o) => m(this.ERROR_MissingSetVariable, `Reference to undefined set variable: \$[${def(o.id)}]`);
85
- static ERROR_MissingUnicodeSetVariable = SevError | 0x001E;
86
- static Error_MissingUnicodeSetVariable = (o) => m(this.ERROR_MissingUnicodeSetVariable, `Reference to undefined UnicodeSet variable: \$[${def(o.id)}]`);
87
- static ERROR_NeedSpacesBetweenSetVariables = SevError | 0x001F;
88
- static Error_NeedSpacesBetweenSetVariables = (o) => m(this.ERROR_NeedSpacesBetweenSetVariables, `Need spaces between set variables: ${def(o.item)}`);
89
- static ERROR_CantReferenceSetFromUnicodeSet = SevError | 0x0020;
90
- static Error_CantReferenceSetFromUnicodeSet = (o) => m(this.ERROR_CantReferenceSetFromUnicodeSet, `Illegal use of set variable from within UnicodeSet: \$[${def(o.id)}]`);
91
- static ERROR_MissingMarkers = SevError | 0x0021;
92
- static Error_MissingMarkers = (o) => m(this.ERROR_MissingMarkers, `Markers used for matching but not defined: ${def(o.ids?.join(','))}`);
93
- static ERROR_DisplayNeedsToOrId = SevError | 0x0022;
94
- static Error_DisplayNeedsToOrId = (o) => m(this.ERROR_DisplayNeedsToOrId, `display ${CompilerMessages.outputOrKeyId(o)} needs output= or keyId=, but not both`);
95
- static HINT_PUACharacters = SevHint | 0x0023;
96
- static Hint_PUACharacters = (o) => m(this.HINT_PUACharacters, `File contains ${def(o.count)} PUA character(s), including ${util.describeCodepoint(o.lowestCh)}`);
97
- static WARN_UnassignedCharacters = SevWarn | 0x0024;
98
- static Warn_UnassignedCharacters = (o) => m(this.WARN_UnassignedCharacters, `File contains ${def(o.count)} unassigned character(s), including ${util.describeCodepoint(o.lowestCh)}`);
99
- static ERROR_IllegalCharacters = SevError | 0x0025;
100
- static Error_IllegalCharacters = (o) => m(this.ERROR_IllegalCharacters, `File contains ${def(o.count)} illegal character(s), including ${util.describeCodepoint(o.lowestCh)}`);
101
- static HINT_CharClassImplicitDenorm = SevHint | 0x0026;
102
- static Hint_CharClassImplicitDenorm = (o) => m(this.HINT_CharClassImplicitDenorm, `File has character classes which span non-NFD character(s), including ${util.describeCodepoint(o.lowestCh)}. These will not match any text.`);
103
- static WARN_CharClassExplicitDenorm = SevWarn | 0x0027;
104
- static Warn_CharClassExplicitDenorm = (o) => m(this.WARN_CharClassExplicitDenorm, `File has character classes which include non-NFD characters(s), including ${util.describeCodepoint(o.lowestCh)}. These will not match any text.`);
105
- static ERROR_UnparseableReorderSet = SevError | 0x0028;
106
- static Error_UnparseableReorderSet = (o) => m(this.ERROR_UnparseableReorderSet, `Illegal UnicodeSet "${def(o.set)}" in reorder "${def(o.from)}`);
107
- // Available: 0x029
108
- static ERROR_InvalidQuadEscape = SevError | 0x0030;
109
- static Error_InvalidQuadEscape = (o) => m(this.ERROR_InvalidQuadEscape, `Invalid escape "\\u${util.hexQuad(o?.cp || 0)}". Hint: Use "\\u{${def(o?.cp?.toString(16))}}"`);
110
- //
111
- // Transform syntax errors begin at ...F00 (SevErrorTransform)
112
- // This is a bit of a catch-all and represents messages bubbling up from the underlying regex engine
113
- static ERROR_UnparseableTransformFrom = SevErrorTransform | 0x00;
114
- static Error_UnparseableTransformFrom = (o) => m(this.ERROR_UnparseableTransformFrom, `Invalid transform from="${def(o.from)}": "${def(o.message)}"`);
115
- static ERROR_IllegalTransformDollarsign = SevErrorTransform | 0x01;
116
- static Error_IllegalTransformDollarsign = (o) => m(this.ERROR_IllegalTransformDollarsign, `Invalid transform from="${def(o.from)}": Unescaped dollar-sign ($) is not valid transform syntax.`, '**Hint**: Use `\\$` to match a literal dollar-sign.');
117
- static ERROR_TransformFromMatchesNothing = SevErrorTransform | 0x02;
118
- static Error_TransformFromMatchesNothing = (o) => m(this.ERROR_TransformFromMatchesNothing, `Invalid transfom from="${def(o.from)}": Matches an empty string.`);
119
- static ERROR_IllegalTransformPlus = SevErrorTransform | 0x03;
120
- static Error_IllegalTransformPlus = (o) => m(this.ERROR_IllegalTransformPlus, `Invalid transform from="${def(o.from)}": Unescaped plus (+) is not valid transform syntax.`, '**Hint**: Use `\\+` to match a literal plus.');
121
- static ERROR_IllegalTransformAsterisk = SevErrorTransform | 0x04;
122
- static Error_IllegalTransformAsterisk = (o) => m(this.ERROR_IllegalTransformAsterisk, `Invalid transform from="${def(o.from)}": Unescaped asterisk (*) is not valid transform syntax.`, '**Hint**: Use `\\*` to match a literal asterisk.');
123
- }
124
- //# sourceMappingURL=messages.js.map
125
- //# debugId=97c978d8-9a7b-5773-affd-83d0899eb8c7
1
+ import { util, CompilerErrorNamespace, CompilerErrorSeverity, CompilerMessageSpec as m, CompilerMessageDef as def } from "@keymanapp/common-types";
2
+ // const SevInfo = CompilerErrorSeverity.Info | CompilerErrorNamespace.LdmlKeyboardCompiler;
3
+ const SevHint = CompilerErrorSeverity.Hint | CompilerErrorNamespace.LdmlKeyboardCompiler;
4
+ const SevWarn = CompilerErrorSeverity.Warn | CompilerErrorNamespace.LdmlKeyboardCompiler;
5
+ const SevError = CompilerErrorSeverity.Error | CompilerErrorNamespace.LdmlKeyboardCompiler;
6
+ // const SevFatal = CompilerErrorSeverity.Fatal | CompilerErrorNamespace.LdmlKeyboardCompiler;
7
+ // sub-numberspace for transform errors
8
+ const SevErrorTransform = SevError | 0xF00;
9
+ /**
10
+ * @internal
11
+ */
12
+ export class CompilerMessages {
13
+ static HINT_NormalizationDisabled = SevHint | 0x0001;
14
+ static Hint_NormalizationDisabled = () => m(this.HINT_NormalizationDisabled, `normalization=disabled is not recommended.`);
15
+ static ERROR_InvalidLocale = SevError | 0x0002;
16
+ static Error_InvalidLocale = (o) => m(this.ERROR_InvalidLocale, `Invalid BCP 47 locale form '${def(o.tag)}'`);
17
+ static ERROR_HardwareLayerHasTooManyRows = SevError | 0x0003;
18
+ static Error_HardwareLayerHasTooManyRows = () => m(this.ERROR_HardwareLayerHasTooManyRows, `'hardware' layer has too many rows`);
19
+ static ERROR_RowOnHardwareLayerHasTooManyKeys = SevError | 0x0004;
20
+ static Error_RowOnHardwareLayerHasTooManyKeys = (o) => m(this.ERROR_RowOnHardwareLayerHasTooManyKeys, `Row #${def(o.row)} on 'hardware' ${def(o.hardware)} layer for modifier ${o.modifiers || 'none'} has too many keys`);
21
+ static ERROR_KeyNotFoundInKeyBag = SevError | 0x0005;
22
+ static Error_KeyNotFoundInKeyBag = (o) => m(this.ERROR_KeyNotFoundInKeyBag, `Key '${def(o.keyId)}' in position #${def(o.col)} on row #${def(o.row)} of layer ${def(o.layer)}, form '${def(o.form)}' not found in key bag`);
23
+ static HINT_OneOrMoreRepeatedLocales = SevHint | 0x0006;
24
+ static Hint_OneOrMoreRepeatedLocales = () => m(this.HINT_OneOrMoreRepeatedLocales, `After minimization, one or more locales is repeated and has been removed`);
25
+ static ERROR_InvalidFile = SevError | 0x0007;
26
+ static Error_InvalidFile = (o) => m(this.ERROR_InvalidFile, `The source file has an invalid structure: ${def(o.errorText)}`);
27
+ static HINT_LocaleIsNotMinimalAndClean = SevHint | 0x0008;
28
+ static Hint_LocaleIsNotMinimalAndClean = (o) => m(this.HINT_LocaleIsNotMinimalAndClean, `Locale '${def(o.sourceLocale)}' is not minimal or correctly formatted and should be '${def(o.locale)}'`);
29
+ static ERROR_InvalidScanCode = SevError | 0x0009;
30
+ static Error_InvalidScanCode = (o) => m(this.ERROR_InvalidScanCode, `Form '${def(o.form)}' has invalid/unknown scancodes '${def(o.codes?.join(' '))}'`);
31
+ static WARN_CustomForm = SevWarn | 0x000A;
32
+ static Warn_CustomForm = (o) => m(this.WARN_CustomForm, `Custom <form id="${def(o.id)}"> element. Key layout may not be as expected.`);
33
+ static ERROR_GestureKeyNotFoundInKeyBag = SevError | 0x000B;
34
+ static Error_GestureKeyNotFoundInKeyBag = (o) => m(this.ERROR_GestureKeyNotFoundInKeyBag, `Key '${def(o.keyId)}' not found in key bag, referenced from other '${def(o.parentKeyId)}' in ${def(o.attribute)}`);
35
+ // 0x000C - available
36
+ static ERROR_InvalidVersion = SevError | 0x000D;
37
+ static Error_InvalidVersion = (o) => m(this.ERROR_InvalidVersion, `Version number '${def(o.version)}' must be a semantic version format string.`);
38
+ static ERROR_MustBeAtLeastOneLayerElement = SevError | 0x000E;
39
+ static Error_MustBeAtLeastOneLayerElement = () => m(this.ERROR_MustBeAtLeastOneLayerElement, `The source file must contain at least one layer element.`);
40
+ // 0x000F - available
41
+ /** annotate the to= or id= entry */
42
+ static outputOrKeyId(o) {
43
+ if (o.output && o.keyId) {
44
+ return `output='${o.output}' keyId='${o.keyId}'`;
45
+ }
46
+ else if (o.keyId) {
47
+ return `keyId='${o.keyId}'`;
48
+ }
49
+ else if (o.output) {
50
+ return `output='${o.output}'`;
51
+ }
52
+ else {
53
+ return '';
54
+ }
55
+ }
56
+ static ERROR_DisplayIsRepeated = SevError | 0x0010;
57
+ static Error_DisplayIsRepeated = (o) => m(this.ERROR_DisplayIsRepeated, `display ${CompilerMessages.outputOrKeyId(o)} has more than one display entry.`);
58
+ static ERROR_KeyMissingToGapOrSwitch = SevError | 0x0011;
59
+ static Error_KeyMissingToGapOrSwitch = (o) => m(this.ERROR_KeyMissingToGapOrSwitch, `key id='${def(o.keyId)}' must have either output=, gap=, or layerId=.`);
60
+ static ERROR_ExcessHardware = SevError | 0x0012;
61
+ static Error_ExcessHardware = (o) => m(this.ERROR_ExcessHardware, `layers formId=${def(o.formId)}: Can only have one non-'touch' element`);
62
+ static ERROR_InvalidHardware = SevError | 0x0013;
63
+ static Error_InvalidHardware = (o) => m(this.ERROR_InvalidHardware, `layers has invalid value formId=${def(o.formId)}`);
64
+ static ERROR_InvalidModifier = SevError | 0x0014;
65
+ static Error_InvalidModifier = (o) => m(this.ERROR_InvalidModifier, `layer has invalid modifiers='${def(o.modifiers)}' on layer id=${def(o.layer)}`);
66
+ static ERROR_MissingFlicks = SevError | 0x0015;
67
+ static Error_MissingFlicks = (o) => m(this.ERROR_MissingFlicks, `key id=${def(o.id)} refers to missing flickId=${def(o.flickId)}`);
68
+ static ERROR_DuplicateVariable = SevError | 0x0016;
69
+ static Error_DuplicateVariable = (o) => m(this.ERROR_DuplicateVariable, `duplicate variables: id=${def(o.ids)}`);
70
+ // Not hit due to XML parsing
71
+ static ERROR_InvalidTransformsType = SevError | 0x0018;
72
+ static Error_InvalidTransformsType = (o) => m(this.ERROR_InvalidTransformsType, `Invalid transforms types: '${def(o.types?.join(','))}'`);
73
+ static ERROR_DuplicateTransformsType = SevError | 0x0019;
74
+ static Error_DuplicateTransformsType = (o) => m(this.ERROR_DuplicateTransformsType, `Duplicate transforms types: '${def(o.types?.join(','))}'`);
75
+ static ERROR_MixedTransformGroup = SevError | 0x001A;
76
+ static Error_MixedTransformGroup = () => m(this.ERROR_MixedTransformGroup, `transformGroup cannot contain both reorder and transform elements`);
77
+ static ERROR_EmptyTransformGroup = SevError | 0x001B;
78
+ static Error_EmptyTransformGroup = () => m(this.ERROR_EmptyTransformGroup, `transformGroup must have either reorder or transform elements`);
79
+ static ERROR_MissingStringVariable = SevError | 0x001C;
80
+ static Error_MissingStringVariable = (o) => m(this.ERROR_MissingStringVariable, `Reference to undefined string variable: \${${def(o.id)}}`);
81
+ static ERROR_MissingSetVariable = SevError | 0x001D;
82
+ static Error_MissingSetVariable = (o) => m(this.ERROR_MissingSetVariable, `Reference to undefined set variable: \$[${def(o.id)}]`);
83
+ static ERROR_MissingUnicodeSetVariable = SevError | 0x001E;
84
+ static Error_MissingUnicodeSetVariable = (o) => m(this.ERROR_MissingUnicodeSetVariable, `Reference to undefined UnicodeSet variable: \$[${def(o.id)}]`);
85
+ static ERROR_NeedSpacesBetweenSetVariables = SevError | 0x001F;
86
+ static Error_NeedSpacesBetweenSetVariables = (o) => m(this.ERROR_NeedSpacesBetweenSetVariables, `Need spaces between set variables: ${def(o.item)}`);
87
+ static ERROR_CantReferenceSetFromUnicodeSet = SevError | 0x0020;
88
+ static Error_CantReferenceSetFromUnicodeSet = (o) => m(this.ERROR_CantReferenceSetFromUnicodeSet, `Illegal use of set variable from within UnicodeSet: \$[${def(o.id)}]`);
89
+ static ERROR_MissingMarkers = SevError | 0x0021;
90
+ static Error_MissingMarkers = (o) => m(this.ERROR_MissingMarkers, `Markers used for matching but not defined: ${def(o.ids?.join(','))}`);
91
+ static ERROR_DisplayNeedsToOrId = SevError | 0x0022;
92
+ static Error_DisplayNeedsToOrId = (o) => m(this.ERROR_DisplayNeedsToOrId, `display ${CompilerMessages.outputOrKeyId(o)} needs output= or keyId=, but not both`);
93
+ static HINT_PUACharacters = SevHint | 0x0023;
94
+ static Hint_PUACharacters = (o) => m(this.HINT_PUACharacters, `File contains ${def(o.count)} PUA character(s), including ${util.describeCodepoint(o.lowestCh)}`);
95
+ static WARN_UnassignedCharacters = SevWarn | 0x0024;
96
+ static Warn_UnassignedCharacters = (o) => m(this.WARN_UnassignedCharacters, `File contains ${def(o.count)} unassigned character(s), including ${util.describeCodepoint(o.lowestCh)}`);
97
+ static ERROR_IllegalCharacters = SevError | 0x0025;
98
+ static Error_IllegalCharacters = (o) => m(this.ERROR_IllegalCharacters, `File contains ${def(o.count)} illegal character(s), including ${util.describeCodepoint(o.lowestCh)}`);
99
+ static HINT_CharClassImplicitDenorm = SevHint | 0x0026;
100
+ static Hint_CharClassImplicitDenorm = (o) => m(this.HINT_CharClassImplicitDenorm, `File has character classes which span non-NFD character(s), including ${util.describeCodepoint(o.lowestCh)}. These will not match any text.`);
101
+ static WARN_CharClassExplicitDenorm = SevWarn | 0x0027;
102
+ static Warn_CharClassExplicitDenorm = (o) => m(this.WARN_CharClassExplicitDenorm, `File has character classes which include non-NFD characters(s), including ${util.describeCodepoint(o.lowestCh)}. These will not match any text.`);
103
+ static ERROR_UnparseableReorderSet = SevError | 0x0028;
104
+ static Error_UnparseableReorderSet = (o) => m(this.ERROR_UnparseableReorderSet, `Illegal UnicodeSet "${def(o.set)}" in reorder "${def(o.from)}`);
105
+ // Available: 0x029
106
+ static ERROR_InvalidQuadEscape = SevError | 0x0030;
107
+ static Error_InvalidQuadEscape = (o) => m(this.ERROR_InvalidQuadEscape, `Invalid escape "\\u${util.hexQuad(o?.cp || 0)}". Hint: Use "\\u{${def(o?.cp?.toString(16))}}"`);
108
+ //
109
+ // Transform syntax errors begin at ...F00 (SevErrorTransform)
110
+ // This is a bit of a catch-all and represents messages bubbling up from the underlying regex engine
111
+ static ERROR_UnparseableTransformFrom = SevErrorTransform | 0x00;
112
+ static Error_UnparseableTransformFrom = (o) => m(this.ERROR_UnparseableTransformFrom, `Invalid transform from="${def(o.from)}": "${def(o.message)}"`);
113
+ static ERROR_IllegalTransformDollarsign = SevErrorTransform | 0x01;
114
+ static Error_IllegalTransformDollarsign = (o) => m(this.ERROR_IllegalTransformDollarsign, `Invalid transform from="${def(o.from)}": Unescaped dollar-sign ($) is not valid transform syntax.`, '**Hint**: Use `\\$` to match a literal dollar-sign.');
115
+ static ERROR_TransformFromMatchesNothing = SevErrorTransform | 0x02;
116
+ static Error_TransformFromMatchesNothing = (o) => m(this.ERROR_TransformFromMatchesNothing, `Invalid transfom from="${def(o.from)}": Matches an empty string.`);
117
+ static ERROR_IllegalTransformPlus = SevErrorTransform | 0x03;
118
+ static Error_IllegalTransformPlus = (o) => m(this.ERROR_IllegalTransformPlus, `Invalid transform from="${def(o.from)}": Unescaped plus (+) is not valid transform syntax.`, '**Hint**: Use `\\+` to match a literal plus.');
119
+ static ERROR_IllegalTransformAsterisk = SevErrorTransform | 0x04;
120
+ static Error_IllegalTransformAsterisk = (o) => m(this.ERROR_IllegalTransformAsterisk, `Invalid transform from="${def(o.from)}": Unescaped asterisk (*) is not valid transform syntax.`, '**Hint**: Use `\\*` to match a literal asterisk.');
121
+ }
122
+ //# sourceMappingURL=messages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sources":["../../../src/compiler/messages.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,IAAI,CAAC,EAAE,kBAAkB,IAAI,GAAG,EAAE,MAAM,yBAAyB,CA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C,CAAC;IAEjG,MAAM,CAAC,iCAAiC,GAAG,iBAAiB,GAAG,IAAI,CAAC;IACpE,MAAM,CAAC,iCAAiC,GAAG,CAAC,CAAmB,EAAE,EAAE,CACnE,CAAC,CAAC,IAAI,CAAC,iCAAiC,EAAE,0BAA0B,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAE9G,MAAM,CAAC,0BAA0B,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAC7D,MAAM,CAAC,0BAA0B,GAAG,CAAC,CAAmB,EAAE,EAAE,CAC5D,CAAC,CAAC,IAAI,CAAC,0BAA0B,EAAG,2BAA2B,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,sDAAsD,EACtF,8CAA8C,CAAC,CAAC;IAE1F,MAAM,CAAC,8BAA8B,GAAG,iBAAiB,GAAG,IAAI,CAAC;IACjE,MAAM,CAAC,8BAA8B,GAAG,CAAC,CAAmB,EAAE,EAAE,CAChE,CAAC,CAAC,IAAI,CAAC,8BAA8B,EAAG,2BAA2B,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,0DAA0D,EAC9F,kDAAkD,CAAC,CAAC"}
@@ -1,14 +1,14 @@
1
- import { SectionIdent } from "@keymanapp/ldml-keyboard-constants";
2
- import { KMXPlus } from '@keymanapp/common-types';
3
- import { SectionCompiler } from "./section-compiler.js";
4
- import DependencySections = KMXPlus.DependencySections;
5
- import Meta = KMXPlus.Meta;
6
- export declare class MetaCompiler extends SectionCompiler {
7
- get id(): SectionIdent;
8
- validate(): boolean;
9
- private validateVersion;
10
- private validateNormalization;
11
- get dependencies(): Set<SectionIdent>;
12
- compile(sections: DependencySections): Meta;
13
- }
1
+ import { SectionIdent } from "@keymanapp/ldml-keyboard-constants";
2
+ import { KMXPlus } from '@keymanapp/common-types';
3
+ import { SectionCompiler } from "./section-compiler.js";
4
+ import DependencySections = KMXPlus.DependencySections;
5
+ import Meta = KMXPlus.Meta;
6
+ export declare class MetaCompiler extends SectionCompiler {
7
+ get id(): SectionIdent;
8
+ validate(): boolean;
9
+ private validateVersion;
10
+ private validateNormalization;
11
+ get dependencies(): Set<SectionIdent>;
12
+ compile(sections: DependencySections): Meta;
13
+ }
14
14
  //# sourceMappingURL=meta.d.ts.map
@@ -1,58 +1,55 @@
1
-
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="68f1e2e7-f50f-5fda-a9d1-8cf78618143d")}catch(e){}}();
3
- import { constants } from "@keymanapp/ldml-keyboard-constants";
4
- import { KMXPlus } from '@keymanapp/common-types';
5
- import { CompilerMessages } from "./messages.js";
6
- import { SectionCompiler } from "./section-compiler.js";
7
- import semver from "semver";
8
- var Meta = KMXPlus.Meta;
9
- var KeyboardSettings = KMXPlus.KeyboardSettings;
10
- export class MetaCompiler extends SectionCompiler {
11
- get id() {
12
- return constants.section.meta;
13
- }
14
- validate() {
15
- let valid = true;
16
- valid &&= this.validateNormalization(this.keyboard3.settings?.normalization);
17
- valid &&= this.validateVersion(this.keyboard3.version?.number);
18
- return valid;
19
- }
20
- validateVersion(versionNumber) {
21
- if (versionNumber !== undefined) {
22
- if (versionNumber.match(/^[=v]/i)) {
23
- // semver ignores a preceding '=' or 'v'
24
- this.callbacks.reportMessage(CompilerMessages.Error_InvalidVersion({ version: versionNumber }));
25
- return false;
26
- }
27
- if (!semver.parse(versionNumber, { loose: false })) {
28
- this.callbacks.reportMessage(CompilerMessages.Error_InvalidVersion({ version: versionNumber }));
29
- return false;
30
- }
31
- }
32
- return true;
33
- }
34
- validateNormalization(normalization) {
35
- if (normalization === 'disabled') {
36
- this.callbacks.reportMessage(CompilerMessages.Hint_NormalizationDisabled());
37
- }
38
- return true;
39
- }
40
- get dependencies() {
41
- const strsOnly = new Set([constants.section.strs]);
42
- return strsOnly;
43
- }
44
- compile(sections) {
45
- let result = new Meta();
46
- result.author = sections.strs.allocString(this.keyboard3.info?.author);
47
- result.conform = sections.strs.allocString(this.keyboard3.conformsTo);
48
- result.layout = sections.strs.allocString(this.keyboard3.info?.layout);
49
- result.name = sections.strs.allocString(this.keyboard3.info?.name);
50
- result.indicator = sections.strs.allocString(this.keyboard3.info?.indicator);
51
- result.version = sections.strs.allocString(this.keyboard3.version?.number ?? "0.0.0");
52
- result.settings =
53
- (this.keyboard3.settings?.normalization == "disabled" ? KeyboardSettings.normalizationDisabled : 0);
54
- return result;
55
- }
56
- }
57
- //# sourceMappingURL=meta.js.map
58
- //# debugId=68f1e2e7-f50f-5fda-a9d1-8cf78618143d
1
+ import { constants } from "@keymanapp/ldml-keyboard-constants";
2
+ import { KMXPlus } from '@keymanapp/common-types';
3
+ import { CompilerMessages } from "./messages.js";
4
+ import { SectionCompiler } from "./section-compiler.js";
5
+ import semver from "semver";
6
+ var Meta = KMXPlus.Meta;
7
+ var KeyboardSettings = KMXPlus.KeyboardSettings;
8
+ export class MetaCompiler extends SectionCompiler {
9
+ get id() {
10
+ return constants.section.meta;
11
+ }
12
+ validate() {
13
+ let valid = true;
14
+ valid &&= this.validateNormalization(this.keyboard3.settings?.normalization);
15
+ valid &&= this.validateVersion(this.keyboard3.version?.number);
16
+ return valid;
17
+ }
18
+ validateVersion(versionNumber) {
19
+ if (versionNumber !== undefined) {
20
+ if (versionNumber.match(/^[=v]/i)) {
21
+ // semver ignores a preceding '=' or 'v'
22
+ this.callbacks.reportMessage(CompilerMessages.Error_InvalidVersion({ version: versionNumber }));
23
+ return false;
24
+ }
25
+ if (!semver.parse(versionNumber, { loose: false })) {
26
+ this.callbacks.reportMessage(CompilerMessages.Error_InvalidVersion({ version: versionNumber }));
27
+ return false;
28
+ }
29
+ }
30
+ return true;
31
+ }
32
+ validateNormalization(normalization) {
33
+ if (normalization === 'disabled') {
34
+ this.callbacks.reportMessage(CompilerMessages.Hint_NormalizationDisabled());
35
+ }
36
+ return true;
37
+ }
38
+ get dependencies() {
39
+ const strsOnly = new Set([constants.section.strs]);
40
+ return strsOnly;
41
+ }
42
+ compile(sections) {
43
+ let result = new Meta();
44
+ result.author = sections.strs.allocString(this.keyboard3.info?.author);
45
+ result.conform = sections.strs.allocString(this.keyboard3.conformsTo);
46
+ result.layout = sections.strs.allocString(this.keyboard3.info?.layout);
47
+ result.name = sections.strs.allocString(this.keyboard3.info?.name);
48
+ result.indicator = sections.strs.allocString(this.keyboard3.info?.indicator);
49
+ result.version = sections.strs.allocString(this.keyboard3.version?.number ?? "0.0.0");
50
+ result.settings =
51
+ (this.keyboard3.settings?.normalization == "disabled" ? KeyboardSettings.normalizationDisabled : 0);
52
+ return result;
53
+ }
54
+ }
55
+ //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sources":["../../../src/compiler/meta.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,IAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAC3B,IAAO,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAEnD,MAAM,OAAO,YAAa,SAAQ,eAAe;IAE/C,IAAW,EAAE;QACX,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;IAChC,CAAC;IAEM,QAAQ;QACb,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,KAAK,KAAK,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;QAC7E,KAAK,KAAK,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,C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lus.KMXPlusData;
4
- import KEYBOARD = KMX.KEYBOARD;
5
- export declare class KMXPlusMetadataCompiler {
6
- /**
7
- * Look for metadata fields in the KMXPlus data and copy them
8
- * through to the relevant KMX stores
9
- * @param kmxplus const KMXPlusData
10
- */
11
- static addKmxMetadata(kmxplus: KMXPlusData, keyboard: KEYBOARD, options: LdmlCompilerOptions): void;
12
- }
1
+ import { KMX, KMXPlus } from '@keymanapp/common-types';
2
+ import { LdmlCompilerOptions } from "./ldml-compiler-options.js";
3
+ import KMXPlusData = KMXPlus.KMXPlusData;
4
+ import KEYBOARD = KMX.KEYBOARD;
5
+ export declare class KMXPlusMetadataCompiler {
6
+ /**
7
+ * Look for metadata fields in the KMXPlus data and copy them
8
+ * through to the relevant KMX stores
9
+ * @param kmxplus const KMXPlusData
10
+ */
11
+ static addKmxMetadata(kmxplus: KMXPlusData, keyboard: KEYBOARD, options: LdmlCompilerOptions): void;
12
+ }
13
13
  //# sourceMappingURL=metadata-compiler.d.ts.map