@keymanapp/kmc-ldml 17.0.256-alpha → 17.0.258-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/build/src/compiler/compiler.d.ts +63 -65
- package/build/src/compiler/compiler.d.ts.map +1 -1
- package/build/src/compiler/compiler.js +8 -8
- package/build/src/compiler/compiler.js.map +1 -1
- package/build/src/compiler/disp.d.ts +12 -14
- package/build/src/compiler/disp.d.ts.map +1 -1
- package/build/src/compiler/empty-compiler.d.ts +38 -40
- package/build/src/compiler/empty-compiler.d.ts.map +1 -1
- package/build/src/compiler/keymanweb-compiler.d.ts +14 -16
- package/build/src/compiler/keymanweb-compiler.d.ts.map +1 -1
- package/build/src/compiler/keys.d.ts +52 -54
- package/build/src/compiler/keys.d.ts.map +1 -1
- package/build/src/compiler/layr.d.ts +10 -12
- package/build/src/compiler/layr.d.ts.map +1 -1
- package/build/src/compiler/ldml-compiler-options.d.ts +8 -10
- package/build/src/compiler/ldml-compiler-options.d.ts.map +1 -1
- package/build/src/compiler/loca.d.ts +16 -18
- package/build/src/compiler/loca.d.ts.map +1 -1
- package/build/src/compiler/marker-tracker.d.ts +34 -36
- package/build/src/compiler/marker-tracker.d.ts.map +1 -1
- package/build/src/compiler/messages.d.ts +150 -152
- package/build/src/compiler/messages.d.ts.map +1 -1
- package/build/src/compiler/meta.d.ts +12 -14
- package/build/src/compiler/meta.d.ts.map +1 -1
- package/build/src/compiler/metadata-compiler.d.ts +13 -15
- package/build/src/compiler/metadata-compiler.d.ts.map +1 -1
- package/build/src/compiler/section-compiler.d.ts +36 -38
- package/build/src/compiler/section-compiler.d.ts.map +1 -1
- package/build/src/compiler/touch-layout-compiler.d.ts +8 -10
- package/build/src/compiler/touch-layout-compiler.d.ts.map +1 -1
- package/build/src/compiler/tran.d.ts +37 -39
- package/build/src/compiler/tran.d.ts.map +1 -1
- package/build/src/compiler/vars.d.ts +22 -24
- package/build/src/compiler/vars.d.ts.map +1 -1
- package/build/src/compiler/visual-keyboard-compiler.d.ts +9 -11
- package/build/src/compiler/visual-keyboard-compiler.d.ts.map +1 -1
- package/build/src/main.d.ts +9 -11
- package/build/src/main.d.ts.map +1 -1
- package/build/src/util/util.d.ts +50 -52
- package/build/src/util/util.d.ts.map +1 -1
- package/package.json +7 -6
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
//# debugId=5258c12a-20a3-54e8-b1c2-fef6307e1cd7
|
|
18
|
-
//# sourceMappingURL=loca.d.ts.map
|
|
1
|
+
import { KMXPlus } from '@keymanapp/common-types';
|
|
2
|
+
import { SectionCompiler } from "./section-compiler.js";
|
|
3
|
+
import DependencySections = KMXPlus.DependencySections;
|
|
4
|
+
import Loca = KMXPlus.Loca;
|
|
5
|
+
export declare class LocaCompiler extends SectionCompiler {
|
|
6
|
+
get id(): import("@keymanapp/ldml-keyboard-constants").SectionIdent;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param keyboard
|
|
10
|
+
* @returns list of BCP 47 tags in the keyboard xml, potentially with invalid or repeated entries
|
|
11
|
+
*/
|
|
12
|
+
private getLocales;
|
|
13
|
+
validate(): boolean;
|
|
14
|
+
compile(sections: DependencySections): Loca;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=loca.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"loca.d.ts","sourceRoot":"","sources":["../../../src/compiler/loca.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACvD,OAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAG3B,qBAAa,YAAa,SAAQ,eAAe;IAE/C,IAAW,EAAE,8DAEZ;IAED;;;;OAIG;IACH,OAAO,CAAC,UAAU,CAE+F;IAE1G,QAAQ,IAAI,OAAO;IAmBnB,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;CA0BnD"}
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
consume =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
consumed
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*
|
|
29
|
-
* @param
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
//# debugId=1cf06b7d-729f-54c0-b378-657d8a6b36f8
|
|
36
|
-
//# sourceMappingURL=marker-tracker.d.ts.map
|
|
1
|
+
/**
|
|
2
|
+
* Verb for MarkerTracker.add()
|
|
3
|
+
*/
|
|
4
|
+
export declare enum MarkerUse {
|
|
5
|
+
/** outputs this marker into context (e.g. transform to= or key to=) */
|
|
6
|
+
emit = 0,
|
|
7
|
+
/** consumes this marker out of the context (e.g. transform from=) */
|
|
8
|
+
consume = 1,
|
|
9
|
+
/** matches the marker, but doesn't consume (e.g. display to=) */
|
|
10
|
+
match = 2,
|
|
11
|
+
/** variable definition: might consume, emit, or match. */
|
|
12
|
+
variable = 3
|
|
13
|
+
}
|
|
14
|
+
type MarkerSet = Set<string>;
|
|
15
|
+
/** Tracks usage of markers */
|
|
16
|
+
export declare class MarkerTracker {
|
|
17
|
+
/** markers that were emitted */
|
|
18
|
+
emitted: MarkerSet;
|
|
19
|
+
/** markers that were consumed and removed from the context */
|
|
20
|
+
consumed: MarkerSet;
|
|
21
|
+
/** markers that were matched, but not necessarily consumed */
|
|
22
|
+
matched: MarkerSet;
|
|
23
|
+
/** all markers */
|
|
24
|
+
all: MarkerSet;
|
|
25
|
+
constructor();
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param verb what kind of use we are adding
|
|
29
|
+
* @param markers list of markers to add
|
|
30
|
+
*/
|
|
31
|
+
add(verb: MarkerUse, markers: string[]): void;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=marker-tracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"marker-tracker.d.ts","sourceRoot":"","sources":["../../../src/compiler/marker-tracker.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,uEAAuE;IACvE,IAAI,IAAA;IACJ,qEAAqE;IACrE,OAAO,IAAA;IACP,iEAAiE;IACjE,KAAK,IAAA;IACL,0DAA0D;IAC1D,QAAQ,IAAA;CACT;AAED,KAAK,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AAE7B,8BAA8B;AAC9B,qBAAa,aAAa;IACxB,gCAAgC;IAChC,OAAO,EAAE,SAAS,CAAC;IACnB,8DAA8D;IAC9D,QAAQ,EAAE,SAAS,CAAC;IACpB,8DAA8D;IAC9D,OAAO,EAAE,SAAS,CAAC;IACnB,kBAAkB;IAClB,GAAG,EAAE,SAAS,CAAC;;IASf;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE;CAgCvC"}
|
|
@@ -1,152 +1,150 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
static
|
|
4
|
-
static
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
static
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
static
|
|
25
|
-
static
|
|
26
|
-
static
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
static
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
static
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
static
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
static
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
static
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
static
|
|
55
|
-
static
|
|
56
|
-
static
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
static
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
static
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
static
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
static
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
static
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
static
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
static
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
static
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
static
|
|
102
|
-
static
|
|
103
|
-
static
|
|
104
|
-
static
|
|
105
|
-
static
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
static
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
static
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
static
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
static
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
static
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
static
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
static
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
static
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
static
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
//# debugId=5d49ca41-da47-5c2c-9c8a-2be0d94056d2
|
|
152
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
1
|
+
export declare class CompilerMessages {
|
|
2
|
+
static Hint_NormalizationDisabled: () => import("@keymanapp/common-types").CompilerEvent;
|
|
3
|
+
static HINT_NormalizationDisabled: number;
|
|
4
|
+
static Error_InvalidLocale: (o: {
|
|
5
|
+
tag: string;
|
|
6
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
7
|
+
static ERROR_InvalidLocale: number;
|
|
8
|
+
static Error_HardwareLayerHasTooManyRows: () => import("@keymanapp/common-types").CompilerEvent;
|
|
9
|
+
static ERROR_HardwareLayerHasTooManyRows: number;
|
|
10
|
+
static Error_RowOnHardwareLayerHasTooManyKeys: (o: {
|
|
11
|
+
row: number;
|
|
12
|
+
hardware: string;
|
|
13
|
+
modifiers: string;
|
|
14
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
15
|
+
static ERROR_RowOnHardwareLayerHasTooManyKeys: number;
|
|
16
|
+
static Error_KeyNotFoundInKeyBag: (o: {
|
|
17
|
+
keyId: string;
|
|
18
|
+
col: number;
|
|
19
|
+
row: number;
|
|
20
|
+
layer: string;
|
|
21
|
+
form: string;
|
|
22
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
23
|
+
static ERROR_KeyNotFoundInKeyBag: number;
|
|
24
|
+
static Hint_OneOrMoreRepeatedLocales: () => import("@keymanapp/common-types").CompilerEvent;
|
|
25
|
+
static HINT_OneOrMoreRepeatedLocales: number;
|
|
26
|
+
static Error_InvalidFile: (o: {
|
|
27
|
+
errorText: string;
|
|
28
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
29
|
+
static ERROR_InvalidFile: number;
|
|
30
|
+
static Hint_LocaleIsNotMinimalAndClean: (o: {
|
|
31
|
+
sourceLocale: string;
|
|
32
|
+
locale: string;
|
|
33
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
34
|
+
static HINT_LocaleIsNotMinimalAndClean: number;
|
|
35
|
+
static Error_InvalidScanCode: (o: {
|
|
36
|
+
form?: string;
|
|
37
|
+
codes?: string[];
|
|
38
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
39
|
+
static ERROR_InvalidScanCode: number;
|
|
40
|
+
static Warn_CustomForm: (o: {
|
|
41
|
+
id: string;
|
|
42
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
43
|
+
static WARN_CustomForm: number;
|
|
44
|
+
static Error_GestureKeyNotFoundInKeyBag: (o: {
|
|
45
|
+
keyId: string;
|
|
46
|
+
parentKeyId: string;
|
|
47
|
+
attribute: string;
|
|
48
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
49
|
+
static ERROR_GestureKeyNotFoundInKeyBag: number;
|
|
50
|
+
static Error_InvalidVersion: (o: {
|
|
51
|
+
version: string;
|
|
52
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
53
|
+
static ERROR_InvalidVersion: number;
|
|
54
|
+
static Error_MustBeAtLeastOneLayerElement: () => import("@keymanapp/common-types").CompilerEvent;
|
|
55
|
+
static ERROR_MustBeAtLeastOneLayerElement: number;
|
|
56
|
+
static Fatal_SectionCompilerFailed: (o: {
|
|
57
|
+
sect: string;
|
|
58
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
59
|
+
static FATAL_SectionCompilerFailed: number;
|
|
60
|
+
/** annotate the to= or id= entry */
|
|
61
|
+
private static outputOrKeyId;
|
|
62
|
+
static Error_DisplayIsRepeated: (o: {
|
|
63
|
+
output?: string;
|
|
64
|
+
keyId?: string;
|
|
65
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
66
|
+
static ERROR_DisplayIsRepeated: number;
|
|
67
|
+
static Error_KeyMissingToGapOrSwitch: (o: {
|
|
68
|
+
keyId: string;
|
|
69
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
70
|
+
static ERROR_KeyMissingToGapOrSwitch: number;
|
|
71
|
+
static Error_ExcessHardware: (o: {
|
|
72
|
+
formId: string;
|
|
73
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
74
|
+
static ERROR_ExcessHardware: number;
|
|
75
|
+
static Error_InvalidHardware: (o: {
|
|
76
|
+
formId: string;
|
|
77
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
78
|
+
static ERROR_InvalidHardware: number;
|
|
79
|
+
static Error_InvalidModifier: (o: {
|
|
80
|
+
layer: string;
|
|
81
|
+
modifiers: string;
|
|
82
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
83
|
+
static ERROR_InvalidModifier: number;
|
|
84
|
+
static Error_MissingFlicks: (o: {
|
|
85
|
+
flickId: string;
|
|
86
|
+
id: string;
|
|
87
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
88
|
+
static ERROR_MissingFlicks: number;
|
|
89
|
+
static Error_DuplicateVariable: (o: {
|
|
90
|
+
ids: string;
|
|
91
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
92
|
+
static ERROR_DuplicateVariable: number;
|
|
93
|
+
static Error_InvalidTransformsType: (o: {
|
|
94
|
+
types: string[];
|
|
95
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
96
|
+
static ERROR_InvalidTransformsType: number;
|
|
97
|
+
static Error_DuplicateTransformsType: (o: {
|
|
98
|
+
types: string[];
|
|
99
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
100
|
+
static ERROR_DuplicateTransformsType: number;
|
|
101
|
+
static Error_MixedTransformGroup: () => import("@keymanapp/common-types").CompilerEvent;
|
|
102
|
+
static ERROR_MixedTransformGroup: number;
|
|
103
|
+
static Error_EmptyTransformGroup: () => import("@keymanapp/common-types").CompilerEvent;
|
|
104
|
+
static ERROR_EmptyTransformGroup: number;
|
|
105
|
+
static Error_MissingStringVariable: (o: {
|
|
106
|
+
id: string;
|
|
107
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
108
|
+
static ERROR_MissingStringVariable: number;
|
|
109
|
+
static Error_MissingSetVariable: (o: {
|
|
110
|
+
id: string;
|
|
111
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
112
|
+
static ERROR_MissingSetVariable: number;
|
|
113
|
+
static Error_MissingUnicodeSetVariable: (o: {
|
|
114
|
+
id: string;
|
|
115
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
116
|
+
static ERROR_MissingUnicodeSetVariable: number;
|
|
117
|
+
static Error_NeedSpacesBetweenSetVariables: (o: {
|
|
118
|
+
item: string;
|
|
119
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
120
|
+
static ERROR_NeedSpacesBetweenSetVariables: number;
|
|
121
|
+
static Error_CantReferenceSetFromUnicodeSet: (o: {
|
|
122
|
+
id: string;
|
|
123
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
124
|
+
static ERROR_CantReferenceSetFromUnicodeSet: number;
|
|
125
|
+
static Error_MissingMarkers: (o: {
|
|
126
|
+
ids: string[];
|
|
127
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
128
|
+
static ERROR_MissingMarkers: number;
|
|
129
|
+
static Error_DisplayNeedsToOrId: (o: {
|
|
130
|
+
output?: string;
|
|
131
|
+
keyId?: string;
|
|
132
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
133
|
+
static ERROR_DisplayNeedsToOrId: number;
|
|
134
|
+
static Hint_PUACharacters: (o: {
|
|
135
|
+
count: number;
|
|
136
|
+
lowestCh: number;
|
|
137
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
138
|
+
static HINT_PUACharacters: number;
|
|
139
|
+
static Warn_UnassignedCharacters: (o: {
|
|
140
|
+
count: number;
|
|
141
|
+
lowestCh: number;
|
|
142
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
143
|
+
static WARN_UnassignedCharacters: number;
|
|
144
|
+
static Error_IllegalCharacters: (o: {
|
|
145
|
+
count: number;
|
|
146
|
+
lowestCh: number;
|
|
147
|
+
}) => import("@keymanapp/common-types").CompilerEvent;
|
|
148
|
+
static ERROR_IllegalCharacters: number;
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/compiler/messages.ts"],"names":[],"mappings":"AAOA,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,0BAA0B,wDAA0F;IAC3H,MAAM,CAAC,0BAA0B,SAAoB;IAErD,MAAM,CAAC,mBAAmB,MAAM;QAAC,GAAG,EAAE,MAAM,CAAA;KAAC,qDAA0E;IACvH,MAAM,CAAC,mBAAmB,SAAqB;IAE/C,MAAM,CAAC,iCAAiC,wDAAyF;IACjI,MAAM,CAAC,iCAAiC,SAAqB;IAE7D,MAAM,CAAC,sCAAsC,MAAM;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,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AAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,qDAC6D;IACvI,MAAM,CAAC,yBAAyB,SAAoB;IAEpD,MAAM,CAAC,uBAAuB,MAAO;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,qDAC0D;IAClI,MAAM,CAAC,uBAAuB,SAAqB;CACpD"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//# debugId=ae7661a4-5053-59a0-92c0-af54b545393e
|
|
14
|
-
//# sourceMappingURL=meta.d.ts.map
|
|
1
|
+
import { KMXPlus } from '@keymanapp/common-types';
|
|
2
|
+
import { SectionCompiler } from "./section-compiler.js";
|
|
3
|
+
import DependencySections = KMXPlus.DependencySections;
|
|
4
|
+
import Meta = KMXPlus.Meta;
|
|
5
|
+
export declare class MetaCompiler extends SectionCompiler {
|
|
6
|
+
get id(): import("@keymanapp/ldml-keyboard-constants").SectionIdent;
|
|
7
|
+
validate(): boolean;
|
|
8
|
+
private validateVersion;
|
|
9
|
+
private validateNormalization;
|
|
10
|
+
compile(sections: DependencySections): Meta;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/compiler/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;AACvD,OAAO,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAG3B,qBAAa,YAAa,SAAQ,eAAe;IAE/C,IAAW,EAAE,8DAEZ;IAEM,QAAQ,IAAI,OAAO;IAS1B,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,qBAAqB;IAOtB,OAAO,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;CAYnD"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
{"
|
|
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
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
protected readonly
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
{"
|
|
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"}
|