@keymanapp/kmc-ldml 17.0.255-alpha → 17.0.257-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 (45) hide show
  1. package/build/src/compiler/compiler.d.ts +63 -65
  2. package/build/src/compiler/compiler.d.ts.map +1 -1
  3. package/build/src/compiler/compiler.js +8 -8
  4. package/build/src/compiler/compiler.js.map +1 -1
  5. package/build/src/compiler/disp.d.ts +12 -14
  6. package/build/src/compiler/disp.d.ts.map +1 -1
  7. package/build/src/compiler/empty-compiler.d.ts +38 -40
  8. package/build/src/compiler/empty-compiler.d.ts.map +1 -1
  9. package/build/src/compiler/keymanweb-compiler.d.ts +14 -16
  10. package/build/src/compiler/keymanweb-compiler.d.ts.map +1 -1
  11. package/build/src/compiler/keys.d.ts +52 -54
  12. package/build/src/compiler/keys.d.ts.map +1 -1
  13. package/build/src/compiler/keys.js +4 -3
  14. package/build/src/compiler/keys.js.map +1 -1
  15. package/build/src/compiler/layr.d.ts +10 -12
  16. package/build/src/compiler/layr.d.ts.map +1 -1
  17. package/build/src/compiler/ldml-compiler-options.d.ts +8 -10
  18. package/build/src/compiler/ldml-compiler-options.d.ts.map +1 -1
  19. package/build/src/compiler/loca.d.ts +16 -18
  20. package/build/src/compiler/loca.d.ts.map +1 -1
  21. package/build/src/compiler/marker-tracker.d.ts +34 -36
  22. package/build/src/compiler/marker-tracker.d.ts.map +1 -1
  23. package/build/src/compiler/messages.d.ts +150 -152
  24. package/build/src/compiler/messages.d.ts.map +1 -1
  25. package/build/src/compiler/meta.d.ts +12 -14
  26. package/build/src/compiler/meta.d.ts.map +1 -1
  27. package/build/src/compiler/metadata-compiler.d.ts +13 -15
  28. package/build/src/compiler/metadata-compiler.d.ts.map +1 -1
  29. package/build/src/compiler/section-compiler.d.ts +36 -38
  30. package/build/src/compiler/section-compiler.d.ts.map +1 -1
  31. package/build/src/compiler/touch-layout-compiler.d.ts +8 -10
  32. package/build/src/compiler/touch-layout-compiler.d.ts.map +1 -1
  33. package/build/src/compiler/tran.d.ts +37 -39
  34. package/build/src/compiler/tran.d.ts.map +1 -1
  35. package/build/src/compiler/tran.js +5 -2
  36. package/build/src/compiler/tran.js.map +1 -1
  37. package/build/src/compiler/vars.d.ts +22 -24
  38. package/build/src/compiler/vars.d.ts.map +1 -1
  39. package/build/src/compiler/visual-keyboard-compiler.d.ts +9 -11
  40. package/build/src/compiler/visual-keyboard-compiler.d.ts.map +1 -1
  41. package/build/src/main.d.ts +9 -11
  42. package/build/src/main.d.ts.map +1 -1
  43. package/build/src/util/util.d.ts +50 -52
  44. package/build/src/util/util.d.ts.map +1 -1
  45. package/package.json +5 -5
@@ -1,15 +1,13 @@
1
- !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]="40076e2e-7075-5b43-8cef-650e708ab7c3")}catch(e){}}();
2
- import { KMX, KMXPlus } from '@keymanapp/common-types';
3
- import { LdmlCompilerOptions } from "./ldml-compiler-options.js";
4
- import KMXPlusData = KMXPlus.KMXPlusData;
5
- import KEYBOARD = KMX.KEYBOARD;
6
- export declare class KMXPlusMetadataCompiler {
7
- /**
8
- * Look for metadata fields in the KMXPlus data and copy them
9
- * through to the relevant KMX stores
10
- * @param kmxplus const KMXPlusData
11
- */
12
- static addKmxMetadata(kmxplus: KMXPlusData, keyboard: KEYBOARD, options: LdmlCompilerOptions): void;
13
- }
14
- //# debugId=40076e2e-7075-5b43-8cef-650e708ab7c3
15
- //# sourceMappingURL=metadata-compiler.d.ts.map
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
+ //# sourceMappingURL=metadata-compiler.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"40076e2e-7075-5b43-8cef-650e708ab7c3","file":"metadata-compiler.d.ts","mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAEzC,OAAO,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAE/B,qBAAa,uBAAuB;IAClC;;;;OAIG;WACW,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;CA0C3G","names":[],"sourceRoot":"","sources":["../../../src/compiler/metadata-compiler.ts"],"version":3}
1
+ {"version":3,"file":"metadata-compiler.d.ts","sourceRoot":"","sources":["../../../src/compiler/metadata-compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAGjE,OAAO,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAEzC,OAAO,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAE/B,qBAAa,uBAAuB;IAClC;;;;OAIG;WACW,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,GAAG,IAAI;CA0C3G"}
@@ -1,38 +1,36 @@
1
- !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]="5ef773d8-0579-5391-8bf3-1bc0ac64e505")}catch(e){}}();
2
- import { LDMLKeyboard, KMXPlus, CompilerCallbacks } from "@keymanapp/common-types";
3
- import { SectionIdent } from '@keymanapp/ldml-keyboard-constants';
4
- /** newable interface to SectionCompiler c'tor */
5
- export type SectionCompilerNew = new (source: LDMLKeyboard.LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks) => SectionCompiler;
6
- export declare abstract class SectionCompiler {
7
- protected readonly keyboard3: LDMLKeyboard.LKKeyboard;
8
- protected readonly callbacks: CompilerCallbacks;
9
- constructor(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
10
- abstract get id(): SectionIdent;
11
- /**
12
- * This is called before compile.
13
- * @returns false if this compiler failed to validate.
14
- */
15
- validate(): boolean;
16
- /**
17
- * Perform the compilation for this section, returning the correct Section subclass
18
- * object.
19
- *
20
- * @param sections any declared dependency sections per dependencies()
21
- */
22
- abstract compile(sections: KMXPlus.DependencySections): KMXPlus.Section;
23
- /**
24
- * This is called after all other compile phases have completed,
25
- * when being called by validate(), and provides an
26
- * opportunity for late error reporting, for example for invalid strings.
27
- * @param section the compiled section, if any.
28
- * @returns false if validate fails
29
- */
30
- postValidate(section?: KMXPlus.Section): boolean;
31
- /**
32
- * Get the dependencies for this compiler.
33
- * @returns set of dependent sections
34
- */
35
- get dependencies(): Set<SectionIdent>;
36
- }
37
- //# debugId=5ef773d8-0579-5391-8bf3-1bc0ac64e505
38
- //# sourceMappingURL=section-compiler.d.ts.map
1
+ import { LDMLKeyboard, KMXPlus, CompilerCallbacks } from "@keymanapp/common-types";
2
+ import { SectionIdent } from '@keymanapp/ldml-keyboard-constants';
3
+ /** newable interface to SectionCompiler c'tor */
4
+ export type SectionCompilerNew = new (source: LDMLKeyboard.LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks) => SectionCompiler;
5
+ export declare abstract class SectionCompiler {
6
+ protected readonly keyboard3: LDMLKeyboard.LKKeyboard;
7
+ protected readonly callbacks: CompilerCallbacks;
8
+ constructor(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
9
+ abstract get id(): SectionIdent;
10
+ /**
11
+ * This is called before compile.
12
+ * @returns false if this compiler failed to validate.
13
+ */
14
+ validate(): boolean;
15
+ /**
16
+ * Perform the compilation for this section, returning the correct Section subclass
17
+ * object.
18
+ *
19
+ * @param sections any declared dependency sections per dependencies()
20
+ */
21
+ abstract compile(sections: KMXPlus.DependencySections): KMXPlus.Section;
22
+ /**
23
+ * This is called after all other compile phases have completed,
24
+ * when being called by validate(), and provides an
25
+ * opportunity for late error reporting, for example for invalid strings.
26
+ * @param section the compiled section, if any.
27
+ * @returns false if validate fails
28
+ */
29
+ postValidate(section?: KMXPlus.Section): boolean;
30
+ /**
31
+ * Get the dependencies for this compiler.
32
+ * @returns set of dependent sections
33
+ */
34
+ get dependencies(): Set<SectionIdent>;
35
+ }
36
+ //# sourceMappingURL=section-compiler.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"5ef773d8-0579-5391-8bf3-1bc0ac64e505","file":"section-compiler.d.ts","mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,YAAY,EAAa,MAAM,oCAAoC,CAAC;AAE7E,iDAAiD;AACjD,MAAM,MAAM,kBAAkB,GAAG,KAAK,MAAM,EAAE,YAAY,CAAC,yBAAyB,EAAE,SAAS,EAAE,iBAAiB,KAAK,eAAe,CAAC;AACvI,8BAAsB,eAAe;IACnC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC,UAAU,CAAC;IACtD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;gBAEpC,MAAM,EAAE,YAAY,CAAC,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAKxF,aAAoB,EAAE,IAAI,YAAY,CAAC;IAEvC;;;OAGG;IACI,QAAQ,IAAI,OAAO;IAI1B;;;;;OAKG;aACa,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,OAAO;IAE9E;;;;;;OAMG;IACI,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,OAAO;IAIvD;;;OAGG;IACH,IAAW,YAAY,IAAI,GAAG,CAAC,YAAY,CAAC,CAQ3C;CACF","names":[],"sourceRoot":"","sources":["../../../src/compiler/section-compiler.ts"],"version":3}
1
+ {"version":3,"file":"section-compiler.d.ts","sourceRoot":"","sources":["../../../src/compiler/section-compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,YAAY,EAAa,MAAM,oCAAoC,CAAC;AAE7E,iDAAiD;AACjD,MAAM,MAAM,kBAAkB,GAAG,KAAK,MAAM,EAAE,YAAY,CAAC,yBAAyB,EAAE,SAAS,EAAE,iBAAiB,KAAK,eAAe,CAAC;AACvI,8BAAsB,eAAe;IACnC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC,UAAU,CAAC;IACtD,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;gBAEpC,MAAM,EAAE,YAAY,CAAC,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAKxF,aAAoB,EAAE,IAAI,YAAY,CAAC;IAEvC;;;OAGG;IACI,QAAQ,IAAI,OAAO;IAI1B;;;;;OAKG;aACa,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,OAAO;IAE9E;;;;;;OAMG;IACI,YAAY,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,OAAO;IAIvD;;;OAGG;IACH,IAAW,YAAY,IAAI,GAAG,CAAC,YAAY,CAAC,CAQ3C;CACF"}
@@ -1,10 +1,8 @@
1
- !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]="e5fd018c-a5c6-5dd5-886b-45fef4f93c61")}catch(e){}}();
2
- import { TouchLayout, LDMLKeyboard } from "@keymanapp/common-types";
3
- export declare class TouchLayoutCompiler {
4
- compileToJavascript(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): TouchLayout.TouchLayoutFile;
5
- private compileHardwareLayer;
6
- private translateLayerIdToTouchLayoutLayerId;
7
- private translateKeyIdentifierToTouch;
8
- }
9
- //# debugId=e5fd018c-a5c6-5dd5-886b-45fef4f93c61
10
- //# sourceMappingURL=touch-layout-compiler.d.ts.map
1
+ import { TouchLayout, LDMLKeyboard } from "@keymanapp/common-types";
2
+ export declare class TouchLayoutCompiler {
3
+ compileToJavascript(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): TouchLayout.TouchLayoutFile;
4
+ private compileHardwareLayer;
5
+ private translateLayerIdToTouchLayoutLayerId;
6
+ private translateKeyIdentifierToTouch;
7
+ }
8
+ //# sourceMappingURL=touch-layout-compiler.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"e5fd018c-a5c6-5dd5-886b-45fef4f93c61","file":"touch-layout-compiler.d.ts","mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEpE,qBAAa,mBAAmB;IACvB,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,yBAAyB,GAAG,WAAW,CAAC,eAAe;IAkBvG,OAAO,CAAC,oBAAoB;IAuC5B,OAAO,CAAC,oCAAoC;IAsC5C,OAAO,CAAC,6BAA6B;CAatC","names":[],"sourceRoot":"","sources":["../../../src/compiler/touch-layout-compiler.ts"],"version":3}
1
+ {"version":3,"file":"touch-layout-compiler.d.ts","sourceRoot":"","sources":["../../../src/compiler/touch-layout-compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEpE,qBAAa,mBAAmB;IACvB,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,yBAAyB,GAAG,WAAW,CAAC,eAAe;IAkBvG,OAAO,CAAC,oBAAoB;IAuC5B,OAAO,CAAC,oCAAoC;IAsC5C,OAAO,CAAC,6BAA6B;CAatC"}
@@ -1,39 +1,37 @@
1
- !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]="808006b5-ca22-598a-a0a7-10d771fa1e2d")}catch(e){}}();
2
- import { SectionIdent } from "@keymanapp/ldml-keyboard-constants";
3
- import { KMXPlus, LDMLKeyboard, CompilerCallbacks } from '@keymanapp/common-types';
4
- import { SectionCompiler } from "./section-compiler.js";
5
- import Bksp = KMXPlus.Bksp;
6
- import DependencySections = KMXPlus.DependencySections;
7
- import Tran = KMXPlus.Tran;
8
- import LDMLKeyboardXMLSourceFile = LDMLKeyboard.LDMLKeyboardXMLSourceFile;
9
- import { MarkerTracker } from "./marker-tracker.js";
10
- type TransformCompilerType = 'simple' | 'backspace';
11
- export declare abstract class TransformCompiler<T extends TransformCompilerType, TranBase extends Tran> extends SectionCompiler {
12
- static validateMarkers(keyboard: LDMLKeyboard.LKKeyboard, mt: MarkerTracker): boolean;
13
- protected type: T;
14
- constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
15
- validate(): boolean;
16
- /** allocate a new TranBase subclass */
17
- protected newTran(): TranBase;
18
- private compileTransforms;
19
- private compileTransformGroup;
20
- private compileTransformTranGroup;
21
- private compileTransform;
22
- private compileReorderTranGroup;
23
- private compileReorder;
24
- compile(sections: DependencySections): TranBase;
25
- get dependencies(): Set<SectionIdent>;
26
- }
27
- export declare class TranCompiler extends TransformCompiler<'simple', Tran> {
28
- constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
29
- protected newTran(): Tran;
30
- get id(): SectionIdent;
31
- }
32
- export declare class BkspCompiler extends TransformCompiler<'backspace', Bksp> {
33
- constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
34
- protected newTran(): Bksp;
35
- get id(): SectionIdent;
36
- }
37
- export {};
38
- //# debugId=808006b5-ca22-598a-a0a7-10d771fa1e2d
39
- //# sourceMappingURL=tran.d.ts.map
1
+ import { SectionIdent } from "@keymanapp/ldml-keyboard-constants";
2
+ import { KMXPlus, LDMLKeyboard, CompilerCallbacks } from '@keymanapp/common-types';
3
+ import { SectionCompiler } from "./section-compiler.js";
4
+ import Bksp = KMXPlus.Bksp;
5
+ import DependencySections = KMXPlus.DependencySections;
6
+ import Tran = KMXPlus.Tran;
7
+ import LDMLKeyboardXMLSourceFile = LDMLKeyboard.LDMLKeyboardXMLSourceFile;
8
+ import { MarkerTracker } from "./marker-tracker.js";
9
+ type TransformCompilerType = 'simple' | 'backspace';
10
+ export declare abstract class TransformCompiler<T extends TransformCompilerType, TranBase extends Tran> extends SectionCompiler {
11
+ static validateMarkers(keyboard: LDMLKeyboard.LKKeyboard, mt: MarkerTracker): boolean;
12
+ protected type: T;
13
+ constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
14
+ validate(): boolean;
15
+ /** allocate a new TranBase subclass */
16
+ protected newTran(): TranBase;
17
+ private compileTransforms;
18
+ private compileTransformGroup;
19
+ private compileTransformTranGroup;
20
+ private compileTransform;
21
+ private compileReorderTranGroup;
22
+ private compileReorder;
23
+ compile(sections: DependencySections): TranBase;
24
+ get dependencies(): Set<SectionIdent>;
25
+ }
26
+ export declare class TranCompiler extends TransformCompiler<'simple', Tran> {
27
+ constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
28
+ protected newTran(): Tran;
29
+ get id(): SectionIdent;
30
+ }
31
+ export declare class BkspCompiler extends TransformCompiler<'backspace', Bksp> {
32
+ constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
33
+ protected newTran(): Bksp;
34
+ get id(): SectionIdent;
35
+ }
36
+ export {};
37
+ //# sourceMappingURL=tran.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"808006b5-ca22-598a-a0a7-10d771fa1e2d","file":"tran.d.ts","mappings":";AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAsC,MAAM,yBAAyB,CAAC;AACvH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAC3B,OAAO,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACvD,OAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAI3B,OAAO,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;AAO1E,OAAO,EAAE,aAAa,EAAa,MAAM,qBAAqB,CAAC;AAE/D,KAAK,qBAAqB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEpD,8BAAsB,iBAAiB,CAAC,CAAC,SAAS,qBAAqB,EAAE,QAAQ,SAAS,IAAI,CAAE,SAAQ,eAAe;IAErH,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE,EAAE,EAAG,aAAa,GAAG,OAAO;IAUtF,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;gBAEN,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAIpE,QAAQ,IAAI,OAAO;IAyC1B,uCAAuC;IACvC,SAAS,CAAC,OAAO,IAAI,QAAQ;IAI7B,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,yBAAyB;IASjC,OAAO,CAAC,gBAAgB;IAoCxB,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,cAAc;IAOf,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,QAAQ;IAStD,IAAW,YAAY,IAAI,GAAG,CAAC,YAAY,CAAC,CAU3C;CACF;AAED,qBAAa,YAAa,SAAQ,iBAAiB,CAAC,QAAQ,EAAE,IAAI,CAAgB;gBACpE,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAI3E,SAAS,CAAC,OAAO,IAAI,IAAI;IAGzB,IAAW,EAAE,iBAEZ;CACF;AAED,qBAAa,YAAa,SAAQ,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAgB;gBACvE,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAI3E,SAAS,CAAC,OAAO,IAAI,IAAI;IAGzB,IAAW,EAAE,iBAEZ;CACF","names":[],"sourceRoot":"","sources":["../../../src/compiler/tran.ts"],"version":3}
1
+ {"version":3,"file":"tran.d.ts","sourceRoot":"","sources":["../../../src/compiler/tran.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAsC,MAAM,yBAAyB,CAAC;AACvH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAC3B,OAAO,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACvD,OAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAI3B,OAAO,yBAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;AAO1E,OAAO,EAAE,aAAa,EAAa,MAAM,qBAAqB,CAAC;AAE/D,KAAK,qBAAqB,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEpD,8BAAsB,iBAAiB,CAAC,CAAC,SAAS,qBAAqB,EAAE,QAAQ,SAAS,IAAI,CAAE,SAAQ,eAAe;IAErH,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE,EAAE,EAAG,aAAa,GAAG,OAAO;IAUtF,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;gBAEN,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAIpE,QAAQ,IAAI,OAAO;IAyC1B,uCAAuC;IACvC,SAAS,CAAC,OAAO,IAAI,QAAQ;IAI7B,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,yBAAyB;IASjC,OAAO,CAAC,gBAAgB;IAwCxB,OAAO,CAAC,uBAAuB;IAS/B,OAAO,CAAC,cAAc;IAOf,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,QAAQ;IAStD,IAAW,YAAY,IAAI,GAAG,CAAC,YAAY,CAAC,CAU3C;CACF;AAED,qBAAa,YAAa,SAAQ,iBAAiB,CAAC,QAAQ,EAAE,IAAI,CAAgB;gBACpE,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAI3E,SAAS,CAAC,OAAO,IAAI,IAAI;IAGzB,IAAW,EAAE,iBAEZ;CACF;AAED,qBAAa,YAAa,SAAQ,iBAAiB,CAAC,WAAW,EAAE,IAAI,CAAgB;gBACvE,MAAM,EAAE,yBAAyB,EAAE,SAAS,EAAE,iBAAiB;IAI3E,SAAS,CAAC,OAAO,IAAI,IAAI;IAGzB,IAAW,EAAE,iBAEZ;CACF"}
@@ -1,4 +1,4 @@
1
- !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]="0a93dcda-65d4-5a42-af67-c18ddae14311")}catch(e){}}();
1
+ !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]="69a9bee1-1eb6-5374-b3b6-dbe295d076cb")}catch(e){}}();
2
2
  import { constants } from "@keymanapp/ldml-keyboard-constants";
3
3
  import { KMXPlus, VariableParser, MarkerParser, util } from '@keymanapp/common-types';
4
4
  import { SectionCompiler } from "./section-compiler.js";
@@ -115,6 +115,8 @@ export class TransformCompiler extends SectionCompiler {
115
115
  cookedFrom = sections.vars.substituteMarkerString(cookedFrom, true);
116
116
  // don't unescape literals here, because we are going to pass them through into the regex
117
117
  cookedFrom = util.unescapeStringToRegex(cookedFrom);
118
+ // nfd here.
119
+ cookedFrom = MarkerParser.nfd_markers(cookedFrom, true);
118
120
  // cookedFrom is cooked above, since there's some special treatment
119
121
  result.from = sections.strs.allocString(cookedFrom, {
120
122
  unescape: false,
@@ -124,6 +126,7 @@ export class TransformCompiler extends SectionCompiler {
124
126
  stringVariables: true,
125
127
  markers: true,
126
128
  unescape: true,
129
+ nfd: true,
127
130
  }, sections);
128
131
  return result;
129
132
  }
@@ -188,5 +191,5 @@ export class BkspCompiler extends TransformCompiler {
188
191
  }
189
192
  }
190
193
  ;
191
- //# debugId=0a93dcda-65d4-5a42-af67-c18ddae14311
194
+ //# debugId=69a9bee1-1eb6-5374-b3b6-dbe295d076cb
192
195
  //# sourceMappingURL=tran.js.map
@@ -1 +1 @@
1
- {"debug_id":"0a93dcda-65d4-5a42-af67-c18ddae14311","file":"tran.js","mappings":";AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAmC,cAAc,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACvH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,IAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAE3B,IAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAE3B,IAAO,WAAW,GAAG,OAAO,CAAC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ChF,YAAY,MAAiC,EAAE,SAA4B;QACzE,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;IACvB,CAAC;IACS,OAAO;QACf,OAAO,IAAI,IAAI,EAAE,CAAC;IACpB,CAAC;IACD,IAAW,EAAE;QACX,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;IAChC,CAAC;CACF;AAAA,CAAC;AAEF,MAAM,OAAO,YAAa,SAAQ,iBAAmD;IACnF,YAAY,MAAiC,EAAE,SAA4B;QACzE,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC1B,CAAC;IACS,OAAO;QACf,OAAO,IAAI,IAAI,EAAE,CAAC;IACpB,CAAC;IACD,IAAW,EAAE;QACX,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;IAChC,CAAC;CACF;AAAA,CAAC","names":[],"sourceRoot":"","sources":["../../../src/compiler/tran.ts"],"version":3}
@@ -1,24 +1,22 @@
1
- !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]="b567ca79-3096-55c6-a84a-d6d7c7f8c248")}catch(e){}}();
2
- import { SectionIdent } from "@keymanapp/ldml-keyboard-constants";
3
- import { KMXPlus, LDMLKeyboard, CompilerCallbacks } from '@keymanapp/common-types';
4
- import { SectionCompiler } from "./section-compiler.js";
5
- import Vars = KMXPlus.Vars;
6
- import DependencySections = KMXPlus.DependencySections;
7
- import LDMLKeyboardXMLSourceFile = LDMLKeyboard.LDMLKeyboardXMLSourceFile;
8
- import { MarkerTracker } from "./marker-tracker.js";
9
- export declare class VarsCompiler extends SectionCompiler {
10
- get id(): SectionIdent;
11
- get dependencies(): Set<SectionIdent>;
12
- constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
13
- validate(): boolean;
14
- private validateVars;
15
- private collectMarkers;
16
- private validateMarkers;
17
- validateVarsMarkers(keyboard: LDMLKeyboard.LKKeyboard, mt: MarkerTracker): boolean;
18
- compile(sections: DependencySections): Vars;
19
- addString(result: Vars, e: LDMLKeyboard.LKString, sections: DependencySections): void;
20
- addSet(result: Vars, e: LDMLKeyboard.LKSet, sections: DependencySections): void;
21
- addUnicodeSet(result: Vars, e: LDMLKeyboard.LKUnicodeSet, sections: DependencySections): void;
22
- }
23
- //# debugId=b567ca79-3096-55c6-a84a-d6d7c7f8c248
24
- //# sourceMappingURL=vars.d.ts.map
1
+ import { SectionIdent } from "@keymanapp/ldml-keyboard-constants";
2
+ import { KMXPlus, LDMLKeyboard, CompilerCallbacks } from '@keymanapp/common-types';
3
+ import { SectionCompiler } from "./section-compiler.js";
4
+ import Vars = KMXPlus.Vars;
5
+ import DependencySections = KMXPlus.DependencySections;
6
+ import LDMLKeyboardXMLSourceFile = LDMLKeyboard.LDMLKeyboardXMLSourceFile;
7
+ import { MarkerTracker } from "./marker-tracker.js";
8
+ export declare class VarsCompiler extends SectionCompiler {
9
+ get id(): SectionIdent;
10
+ get dependencies(): Set<SectionIdent>;
11
+ constructor(source: LDMLKeyboardXMLSourceFile, callbacks: CompilerCallbacks);
12
+ validate(): boolean;
13
+ private validateVars;
14
+ private collectMarkers;
15
+ private validateMarkers;
16
+ validateVarsMarkers(keyboard: LDMLKeyboard.LKKeyboard, mt: MarkerTracker): boolean;
17
+ compile(sections: DependencySections): Vars;
18
+ addString(result: Vars, e: LDMLKeyboard.LKString, sections: DependencySections): void;
19
+ addSet(result: Vars, e: LDMLKeyboard.LKSet, sections: DependencySections): void;
20
+ addUnicodeSet(result: Vars, e: LDMLKeyboard.LKUnicodeSet, sections: DependencySections): void;
21
+ }
22
+ //# sourceMappingURL=vars.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"b567ca79-3096-55c6-a84a-d6d7c7f8c248","file":"vars.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@
1
- !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]="57e46076-1263-5b92-ad06-ea0d8b1f4002")}catch(e){}}();
2
- import { VisualKeyboard, LDMLKeyboard, CompilerCallbacks } from "@keymanapp/common-types";
3
- export declare class LdmlKeyboardVisualKeyboardCompiler {
4
- private callbacks;
5
- constructor(callbacks: CompilerCallbacks);
6
- compile(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): VisualKeyboard.VisualKeyboard;
7
- private compileHardwareLayer;
8
- private translateLayerIdToVisualKeyboardShift;
9
- }
10
- //# debugId=57e46076-1263-5b92-ad06-ea0d8b1f4002
11
- //# sourceMappingURL=visual-keyboard-compiler.d.ts.map
1
+ import { VisualKeyboard, LDMLKeyboard, CompilerCallbacks } from "@keymanapp/common-types";
2
+ export declare class LdmlKeyboardVisualKeyboardCompiler {
3
+ private callbacks;
4
+ constructor(callbacks: CompilerCallbacks);
5
+ compile(source: LDMLKeyboard.LDMLKeyboardXMLSourceFile): VisualKeyboard.VisualKeyboard;
6
+ private compileHardwareLayer;
7
+ private translateLayerIdToVisualKeyboardShift;
8
+ }
9
+ //# sourceMappingURL=visual-keyboard-compiler.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"57e46076-1263-5b92-ad06-ea0d8b1f4002","file":"visual-keyboard-compiler.d.ts","mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI1F,qBAAa,kCAAkC;IAC1B,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,iBAAiB;IAGhD,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,yBAAyB,GAAG,cAAc,CAAC,cAAc;IAqB7F,OAAO,CAAC,oBAAoB;IA+C5B,OAAO,CAAC,qCAAqC;CAO9C","names":[],"sourceRoot":"","sources":["../../../src/compiler/visual-keyboard-compiler.ts"],"version":3}
1
+ {"version":3,"file":"visual-keyboard-compiler.d.ts","sourceRoot":"","sources":["../../../src/compiler/visual-keyboard-compiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI1F,qBAAa,kCAAkC;IAC1B,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,iBAAiB;IAGhD,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,yBAAyB,GAAG,cAAc,CAAC,cAAc;IAqB7F,OAAO,CAAC,oBAAoB;IA+C5B,OAAO,CAAC,qCAAqC;CAO9C"}
@@ -1,11 +1,9 @@
1
- !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]="2db4d78a-bc8e-5c09-8c83-8de3a91ca0db")}catch(e){}}();
2
- export { LdmlKeyboardCompiler } from './compiler/compiler.js';
3
- export { LdmlKeyboardKeymanWebCompiler } from './compiler/keymanweb-compiler.js';
4
- export { LdmlKeyboardVisualKeyboardCompiler } from './compiler/visual-keyboard-compiler.js';
5
- export { TouchLayoutCompiler } from './compiler/touch-layout-compiler.js';
6
- export { LdmlCompilerOptions } from './compiler/ldml-compiler-options.js';
7
- export { CompilerMessages as LdmlKeyboardCompilerMessages } from './compiler/messages.js';
8
- export { KMXPlusMetadataCompiler } from './compiler/metadata-compiler.js';
9
- export { KMXBuilder } from "@keymanapp/common-types";
10
- //# debugId=2db4d78a-bc8e-5c09-8c83-8de3a91ca0db
11
- //# sourceMappingURL=main.d.ts.map
1
+ export { LdmlKeyboardCompiler } from './compiler/compiler.js';
2
+ export { LdmlKeyboardKeymanWebCompiler } from './compiler/keymanweb-compiler.js';
3
+ export { LdmlKeyboardVisualKeyboardCompiler } from './compiler/visual-keyboard-compiler.js';
4
+ export { TouchLayoutCompiler } from './compiler/touch-layout-compiler.js';
5
+ export { LdmlCompilerOptions } from './compiler/ldml-compiler-options.js';
6
+ export { CompilerMessages as LdmlKeyboardCompilerMessages } from './compiler/messages.js';
7
+ export { KMXPlusMetadataCompiler } from './compiler/metadata-compiler.js';
8
+ export { KMXBuilder } from "@keymanapp/common-types";
9
+ //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"2db4d78a-bc8e-5c09-8c83-8de3a91ca0db","file":"main.d.ts","mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC","names":[],"sourceRoot":"","sources":["../../src/main.ts"],"version":3}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,52 +1,50 @@
1
- !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]="48df3e4a-a85c-5022-97de-8680e38434cc")}catch(e){}}();
2
- import { LDMLKeyboard } from "@keymanapp/common-types";
3
- /**
4
- * Verifies that value is an item in the enumeration.
5
- */
6
- export declare function isValidEnumValue<T extends {
7
- [key: number]: string | number;
8
- }>(enu: T, value: string): boolean;
9
- /**
10
- * Returns unique LKKeys only, preserving later ones
11
- * in case of conflict. (i.e. later overrides)
12
- * @param keys list of keys to consider. (mutated)
13
- * @returns Array of unique keys. Order is not specified.
14
- */
15
- export declare function calculateUniqueKeys(keys?: LDMLKeyboard.LKKey[]): LDMLKeyboard.LKKey[];
16
- /** Convert an array of keys to a hash */
17
- export declare function hashKeys(keys?: LDMLKeyboard.LKKey[]): Map<string, LDMLKeyboard.LKKey>;
18
- export declare function hashFlicks(flicks?: LDMLKeyboard.LKFlick[]): Map<string, LDMLKeyboard.LKFlick>;
19
- /**
20
- * @param layersList list of layers elements, from `keyboard?.layers`
21
- * @returns set of key IDs
22
- */
23
- export declare function allUsedKeyIdsInLayers(layersList?: LDMLKeyboard.LKLayers[]): Set<string>;
24
- /**
25
- * Extract all of the key ids that this key refers to, not counting flicks
26
- * @returns map from the key id to a set of attribute names (such as `multiTapDefaultKeyId` etc.) used by that key.
27
- */
28
- export declare function allUsedKeyIdsInKey(key: LDMLKeyboard.LKKey): Map<string, string[]>;
29
- export declare function allUsedKeyIdsInFlick(flick?: LDMLKeyboard.LKFlick): Set<string>;
30
- /**
31
- * Helper function for validating child elements. Written for the convenience of message passing functions.
32
- *
33
- * @param values array of values to check
34
- * @param onDuplicate callback with array of duplicate values, deduped
35
- * @param allowed optional set of valid values
36
- * @param onInvalid callback with array of invalid values, deduped
37
- * @returns true if all OK
38
- */
39
- export declare function verifyValidAndUnique(values: string[], onDuplicate: (duplicates: string[]) => void, allowed?: Set<string>, onInvalid?: (invalids: string[]) => void): boolean;
40
- /**
41
- * Determine modifier from layer info
42
- * @param layer layer obj
43
- * @returns modifier
44
- */
45
- export declare function translateLayerAttrToModifier(layer: LDMLKeyboard.LKLayer): number;
46
- /**
47
- * @param modifier modifier sequence such as undefined, "none", "shift altR" etc
48
- * @returns true if valid
49
- */
50
- export declare function validModifier(modifier?: string): boolean;
51
- //# debugId=48df3e4a-a85c-5022-97de-8680e38434cc
52
- //# sourceMappingURL=util.d.ts.map
1
+ import { LDMLKeyboard } from "@keymanapp/common-types";
2
+ /**
3
+ * Verifies that value is an item in the enumeration.
4
+ */
5
+ export declare function isValidEnumValue<T extends {
6
+ [key: number]: string | number;
7
+ }>(enu: T, value: string): boolean;
8
+ /**
9
+ * Returns unique LKKeys only, preserving later ones
10
+ * in case of conflict. (i.e. later overrides)
11
+ * @param keys list of keys to consider. (mutated)
12
+ * @returns Array of unique keys. Order is not specified.
13
+ */
14
+ export declare function calculateUniqueKeys(keys?: LDMLKeyboard.LKKey[]): LDMLKeyboard.LKKey[];
15
+ /** Convert an array of keys to a hash */
16
+ export declare function hashKeys(keys?: LDMLKeyboard.LKKey[]): Map<string, LDMLKeyboard.LKKey>;
17
+ export declare function hashFlicks(flicks?: LDMLKeyboard.LKFlick[]): Map<string, LDMLKeyboard.LKFlick>;
18
+ /**
19
+ * @param layersList list of layers elements, from `keyboard?.layers`
20
+ * @returns set of key IDs
21
+ */
22
+ export declare function allUsedKeyIdsInLayers(layersList?: LDMLKeyboard.LKLayers[]): Set<string>;
23
+ /**
24
+ * Extract all of the key ids that this key refers to, not counting flicks
25
+ * @returns map from the key id to a set of attribute names (such as `multiTapDefaultKeyId` etc.) used by that key.
26
+ */
27
+ export declare function allUsedKeyIdsInKey(key: LDMLKeyboard.LKKey): Map<string, string[]>;
28
+ export declare function allUsedKeyIdsInFlick(flick?: LDMLKeyboard.LKFlick): Set<string>;
29
+ /**
30
+ * Helper function for validating child elements. Written for the convenience of message passing functions.
31
+ *
32
+ * @param values array of values to check
33
+ * @param onDuplicate callback with array of duplicate values, deduped
34
+ * @param allowed optional set of valid values
35
+ * @param onInvalid callback with array of invalid values, deduped
36
+ * @returns true if all OK
37
+ */
38
+ export declare function verifyValidAndUnique(values: string[], onDuplicate: (duplicates: string[]) => void, allowed?: Set<string>, onInvalid?: (invalids: string[]) => void): boolean;
39
+ /**
40
+ * Determine modifier from layer info
41
+ * @param layer layer obj
42
+ * @returns modifier
43
+ */
44
+ export declare function translateLayerAttrToModifier(layer: LDMLKeyboard.LKLayer): number;
45
+ /**
46
+ * @param modifier modifier sequence such as undefined, "none", "shift altR" etc
47
+ * @returns true if valid
48
+ */
49
+ export declare function validModifier(modifier?: string): boolean;
50
+ //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"debug_id":"48df3e4a-a85c-5022-97de-8680e38434cc","file":"util.d.ts","mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,WAEjG;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,EAAE,GAAG,YAAY,CAAC,KAAK,EAAE,CAiBrF;AAED,yCAAyC;AACzC,wBAAgB,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,EAAE,GAAI,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAMtF;AAED,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,GAAI,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,CAM9F;AAGD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAgBvF;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAG,YAAY,CAAC,KAAK,GAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAuBnF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAG,YAAY,CAAC,OAAO,GAAI,GAAG,CAAC,MAAM,CAAC,CAQhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EAAE,EAChB,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,EAC3C,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACrB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,GACtC,OAAO,CA0BV;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,GAAI,MAAM,CAgBjF;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAI,OAAO,CAWzD","names":[],"sourceRoot":"","sources":["../../../src/util/util.ts"],"version":3}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/util/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,WAEjG;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,YAAY,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keyman-version": "17.0.255-alpha",
29
- "@keymanapp/kmc-kmn": "17.0.255-alpha",
30
- "@keymanapp/ldml-keyboard-constants": "17.0.255-alpha",
28
+ "@keymanapp/keyman-version": "17.0.257-alpha",
29
+ "@keymanapp/kmc-kmn": "17.0.257-alpha",
30
+ "@keymanapp/ldml-keyboard-constants": "17.0.257-alpha",
31
31
  "restructure": "git+https://github.com/keymanapp/dependency-restructure.git#7a188a1e26f8f36a175d95b67ffece8702363dfc",
32
32
  "semver": "^7.5.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@keymanapp/developer-test-helpers": "17.0.255-alpha",
35
+ "@keymanapp/developer-test-helpers": "17.0.257-alpha",
36
36
  "@types/chai": "^4.1.7",
37
37
  "@types/mocha": "^5.2.7",
38
38
  "@types/node": "^20.4.1",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/keymanapp/keyman.git"
66
66
  },
67
- "version": "17.0.255-alpha"
67
+ "version": "17.0.257-alpha"
68
68
  }