@keymanapp/common-types 17.0.184-alpha → 17.0.185-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/consts/virtual-key-constants.d.ts +65 -15
- package/build/src/consts/virtual-key-constants.d.ts.map +1 -1
- package/build/src/consts/virtual-key-constants.js +79 -115
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/import/techpreview/cldr_info.json +3 -3
- package/build/src/import/techpreview/scanCodes-implied.xml +31 -6
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +3 -3
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.js +4 -3
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +2 -4
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +2 -6
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +3 -11
- package/build/src/kmx/kmx-plus.d.ts.map +1 -1
- package/build/src/kmx/kmx-plus.js +3 -12
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts +4 -3
- package/build/src/kmx/kmx.d.ts.map +1 -1
- package/build/src/kmx/kmx.js +4 -3
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +3 -2
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +2 -2
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +3 -2
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +36 -5
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +26 -10
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +22 -3
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +2 -42
- package/build/src/schemas/ldml-keyboard3.schema.d.ts.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.js +2 -45
- package/build/src/schemas/ldml-keyboard3.schema.js.map +1 -1
- package/build/src/schemas.d.ts +2 -42
- package/build/src/schemas.d.ts.map +1 -1
- package/package.json +2 -2
- package/build/src/kmx/kmx-plus-builder/build-vkey.d.ts +0 -18
- package/build/src/kmx/kmx-plus-builder/build-vkey.d.ts.map +0 -1
- package/build/src/kmx/kmx-plus-builder/build-vkey.js +0 -25
- package/build/src/kmx/kmx-plus-builder/build-vkey.js.map +0 -1
|
@@ -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]="
|
|
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]="fb1d1723-11f2-54a6-a5b0-b821d372a4b6")}catch(e){}}();
|
|
2
2
|
/**
|
|
3
3
|
* May include non-US virtual key codes
|
|
4
4
|
*/
|
|
@@ -119,26 +119,76 @@ export declare const USVirtualKeyCodes: {
|
|
|
119
119
|
*/
|
|
120
120
|
K_oE2: number;
|
|
121
121
|
K_OE2: number;
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
K_oC1: number;
|
|
123
|
+
K_OC1: number;
|
|
124
124
|
'K_?C1': number;
|
|
125
125
|
'k_?C1': number;
|
|
126
126
|
K_oDF: number;
|
|
127
127
|
K_ODF: number;
|
|
128
128
|
};
|
|
129
|
+
/** Map a CLDR scancode to a US VKey ala USVirtualKeyCodes */
|
|
130
|
+
export declare const CLDRScanToUSVirtualKeyCodes: {
|
|
131
|
+
2: number;
|
|
132
|
+
3: number;
|
|
133
|
+
4: number;
|
|
134
|
+
5: number;
|
|
135
|
+
6: number;
|
|
136
|
+
7: number;
|
|
137
|
+
8: number;
|
|
138
|
+
9: number;
|
|
139
|
+
10: number;
|
|
140
|
+
11: number;
|
|
141
|
+
12: number;
|
|
142
|
+
13: number;
|
|
143
|
+
16: number;
|
|
144
|
+
17: number;
|
|
145
|
+
18: number;
|
|
146
|
+
19: number;
|
|
147
|
+
20: number;
|
|
148
|
+
21: number;
|
|
149
|
+
22: number;
|
|
150
|
+
23: number;
|
|
151
|
+
24: number;
|
|
152
|
+
25: number;
|
|
153
|
+
26: number;
|
|
154
|
+
27: number;
|
|
155
|
+
30: number;
|
|
156
|
+
31: number;
|
|
157
|
+
32: number;
|
|
158
|
+
33: number;
|
|
159
|
+
34: number;
|
|
160
|
+
35: number;
|
|
161
|
+
36: number;
|
|
162
|
+
37: number;
|
|
163
|
+
38: number;
|
|
164
|
+
39: number;
|
|
165
|
+
40: number;
|
|
166
|
+
41: number;
|
|
167
|
+
43: number;
|
|
168
|
+
44: number;
|
|
169
|
+
45: number;
|
|
170
|
+
46: number;
|
|
171
|
+
47: number;
|
|
172
|
+
48: number;
|
|
173
|
+
49: number;
|
|
174
|
+
50: number;
|
|
175
|
+
51: number;
|
|
176
|
+
52: number;
|
|
177
|
+
53: number;
|
|
178
|
+
57: number;
|
|
179
|
+
86: number;
|
|
180
|
+
115: number;
|
|
181
|
+
125: number;
|
|
182
|
+
};
|
|
129
183
|
export type KeyMap = number[][];
|
|
130
|
-
export declare const USVirtualKeyMap: KeyMap;
|
|
131
|
-
export declare const ISOVirtualKeyMap: KeyMap;
|
|
132
|
-
export declare const JISVirtualKeyMap: KeyMap;
|
|
133
|
-
export declare const ABNT2VirtualKeyMap: KeyMap;
|
|
134
|
-
/**
|
|
135
|
-
* Map from a hardware constant to a keymap
|
|
136
|
-
* For the 'key' see constants.layr_list_hardware_map
|
|
137
|
-
*/
|
|
138
|
-
export declare const HardwareToKeymap: Map<string, KeyMap>;
|
|
139
184
|
/**
|
|
140
|
-
*
|
|
185
|
+
* Convert a scan code numerical KeyMap to VKeys
|
|
186
|
+
* @param scans keymap to convert
|
|
187
|
+
* @param badScans output: set of not-found scancodes
|
|
188
|
+
* @returns
|
|
141
189
|
*/
|
|
142
|
-
export declare
|
|
143
|
-
|
|
190
|
+
export declare function CLDRScanToKeyMap(scans: KeyMap, badScans?: Set<number>): KeyMap;
|
|
191
|
+
/** Convert one scan code to vkey, or undefined */
|
|
192
|
+
export declare function CLDRScanToVkey(scan: number, badScans?: Set<number>): number;
|
|
193
|
+
//# debugId=fb1d1723-11f2-54a6-a5b0-b821d372a4b6
|
|
144
194
|
//# sourceMappingURL=virtual-key-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"fb1d1723-11f2-54a6-a5b0-b821d372a4b6","file":"virtual-key-constants.d.ts","mappings":";AAIA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyG5B;;OAEG;;;;IAIH;;;OAGG;;;;;;;;;CAqBJ,CAAC;AAIF,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DvC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC;AAEhC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAE9E;AAED,kDAAkD;AAClD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,CAW3E","names":[],"sourceRoot":"","sources":["../../../src/consts/virtual-key-constants.ts"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Define standard keycode numbers (exposed for use by other modules)
|
|
2
2
|
// TODO-LDML: merge with common\web\keyboard-processor\src\text\codes.ts
|
|
3
|
-
!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]="
|
|
3
|
+
!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]="9cb4ab7e-ce9a-57cd-a517-77cfe48cbf75")}catch(e){}}();
|
|
4
4
|
/**
|
|
5
5
|
* May include non-US virtual key codes
|
|
6
6
|
*/
|
|
@@ -121,8 +121,8 @@ export const USVirtualKeyCodes = {
|
|
|
121
121
|
*/
|
|
122
122
|
K_oE2: 226,
|
|
123
123
|
K_OE2: 226,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
K_oC1: 193,
|
|
125
|
+
K_OC1: 193,
|
|
126
126
|
'K_?C1': 193,
|
|
127
127
|
'k_?C1': 193,
|
|
128
128
|
K_oDF: 0xDF,
|
|
@@ -141,118 +141,82 @@ export const USVirtualKeyCodes = {
|
|
|
141
141
|
K_TABFWD:50012*/
|
|
142
142
|
};
|
|
143
143
|
const k = USVirtualKeyCodes;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
["iso", ISOVirtualKeyMap],
|
|
199
|
-
["jis", JISVirtualKeyMap],
|
|
200
|
-
["abnt2", ABNT2VirtualKeyMap],
|
|
201
|
-
]);
|
|
144
|
+
/** Map a CLDR scancode to a US VKey ala USVirtualKeyCodes */
|
|
145
|
+
export const CLDRScanToUSVirtualKeyCodes = {
|
|
146
|
+
0x02: k.K_1,
|
|
147
|
+
0x03: k.K_2,
|
|
148
|
+
0x04: k.K_3,
|
|
149
|
+
0x05: k.K_4,
|
|
150
|
+
0x06: k.K_5,
|
|
151
|
+
0x07: k.K_6,
|
|
152
|
+
0x08: k.K_7,
|
|
153
|
+
0x09: k.K_8,
|
|
154
|
+
0x0A: k.K_9,
|
|
155
|
+
0x0B: k.K_0,
|
|
156
|
+
0x0C: k.K_HYPHEN,
|
|
157
|
+
0x0D: k.K_EQUAL,
|
|
158
|
+
0x10: k.K_Q,
|
|
159
|
+
0x11: k.K_W,
|
|
160
|
+
0x12: k.K_E,
|
|
161
|
+
0x13: k.K_R,
|
|
162
|
+
0x14: k.K_T,
|
|
163
|
+
0x15: k.K_Y,
|
|
164
|
+
0x16: k.K_U,
|
|
165
|
+
0x17: k.K_I,
|
|
166
|
+
0x18: k.K_O,
|
|
167
|
+
0x19: k.K_P,
|
|
168
|
+
0x1A: k.K_LBRKT,
|
|
169
|
+
0x1B: k.K_RBRKT,
|
|
170
|
+
0x1E: k.K_A,
|
|
171
|
+
0x1F: k.K_S,
|
|
172
|
+
0x20: k.K_D,
|
|
173
|
+
0x21: k.K_F,
|
|
174
|
+
0x22: k.K_G,
|
|
175
|
+
0x23: k.K_H,
|
|
176
|
+
0x24: k.K_J,
|
|
177
|
+
0x25: k.K_K,
|
|
178
|
+
0x26: k.K_L,
|
|
179
|
+
0x27: k.K_COLON,
|
|
180
|
+
0x28: k.K_QUOTE,
|
|
181
|
+
0x29: k.K_BKQUOTE,
|
|
182
|
+
0x2B: k.K_BKSLASH,
|
|
183
|
+
0x2C: k.K_Z,
|
|
184
|
+
0x2D: k.K_X,
|
|
185
|
+
0x2E: k.K_C,
|
|
186
|
+
0x2F: k.K_V,
|
|
187
|
+
0x30: k.K_B,
|
|
188
|
+
0x31: k.K_N,
|
|
189
|
+
0x32: k.K_M,
|
|
190
|
+
0x33: k.K_COMMA,
|
|
191
|
+
0x34: k.K_PERIOD,
|
|
192
|
+
0x35: k.K_SLASH,
|
|
193
|
+
0x39: k.K_SPACE,
|
|
194
|
+
0x56: k.K_oE2,
|
|
195
|
+
0x73: k.K_oC1,
|
|
196
|
+
0x7D: k.K_oE2, // << Same as 0x56; found on jis
|
|
197
|
+
};
|
|
202
198
|
/**
|
|
203
|
-
*
|
|
199
|
+
* Convert a scan code numerical KeyMap to VKeys
|
|
200
|
+
* @param scans keymap to convert
|
|
201
|
+
* @param badScans output: set of not-found scancodes
|
|
202
|
+
* @returns
|
|
204
203
|
*/
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
'G': k.K_G,
|
|
224
|
-
'H': k.K_H,
|
|
225
|
-
'I': k.K_I,
|
|
226
|
-
'J': k.K_J,
|
|
227
|
-
'K': k.K_K,
|
|
228
|
-
'L': k.K_L,
|
|
229
|
-
'M': k.K_M,
|
|
230
|
-
'N': k.K_N,
|
|
231
|
-
'O': k.K_O,
|
|
232
|
-
'P': k.K_P,
|
|
233
|
-
'Q': k.K_Q,
|
|
234
|
-
'R': k.K_R,
|
|
235
|
-
'S': k.K_S,
|
|
236
|
-
'T': k.K_T,
|
|
237
|
-
'U': k.K_U,
|
|
238
|
-
'V': k.K_V,
|
|
239
|
-
'W': k.K_W,
|
|
240
|
-
'X': k.K_X,
|
|
241
|
-
'Y': k.K_Y,
|
|
242
|
-
'Z': k.K_Z,
|
|
243
|
-
'SEMICOLON': k.K_COLON,
|
|
244
|
-
'EQUAL': k.K_EQUAL,
|
|
245
|
-
'COMMA': k.K_COMMA,
|
|
246
|
-
'HYPHEN': k.K_HYPHEN,
|
|
247
|
-
'PERIOD': k.K_PERIOD,
|
|
248
|
-
'SLASH': k.K_SLASH,
|
|
249
|
-
'GRAVE': k.K_BKQUOTE,
|
|
250
|
-
'LBRACKET': k.K_LBRKT,
|
|
251
|
-
'BACKSLASH': k.K_BKSLASH,
|
|
252
|
-
'RBRACKET': k.K_RBRKT,
|
|
253
|
-
'QUOTE': k.K_QUOTE,
|
|
254
|
-
'LESS-THAN': k.K_oE2,
|
|
255
|
-
'ABNT2': k.k_oC1, // 0xC1, // B11 Extra key, left of right-shift, ABNT2
|
|
256
|
-
};
|
|
257
|
-
//# debugId=533412c0-495d-50a1-8935-72752c41154e
|
|
204
|
+
export function CLDRScanToKeyMap(scans, badScans) {
|
|
205
|
+
return scans.map((row) => row.map((scan) => CLDRScanToVkey(scan, badScans)));
|
|
206
|
+
}
|
|
207
|
+
/** Convert one scan code to vkey, or undefined */
|
|
208
|
+
export function CLDRScanToVkey(scan, badScans) {
|
|
209
|
+
/** typescript fun to index the scan table */
|
|
210
|
+
function hasScanCode(key) {
|
|
211
|
+
return key in CLDRScanToUSVirtualKeyCodes;
|
|
212
|
+
}
|
|
213
|
+
if (hasScanCode(scan)) {
|
|
214
|
+
return CLDRScanToUSVirtualKeyCodes[scan];
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
badScans?.add(scan);
|
|
218
|
+
return undefined;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
//# debugId=9cb4ab7e-ce9a-57cd-a517-77cfe48cbf75
|
|
258
222
|
//# sourceMappingURL=virtual-key-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"9cb4ab7e-ce9a-57cd-a517-77cfe48cbf75","file":"virtual-key-constants.js","mappings":";AACA,qEAAqE;AACrE,wEAAwE;AAExE;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM,EAAC,CAAC;IACR,KAAK,EAAC,CAAC;IACP,OAAO,EAAC,EAAE;IACV,OAAO,EAAC,EAAE;IACV,SAAS,EAAC,EAAE;IACZ,KAAK,EAAC,EAAE;IACR,OAAO,EAAC,EAAE;IACV,MAAM,EAAC,EAAE;IACT,KAAK,EAAC,EAAE;IACR,OAAO,EAAC,EAAE;IACV,MAAM,EAAC,EAAE;IACT,MAAM,EAAC,EAAE;IACT,KAAK,EAAC,EAAE;IACR,MAAM,EAAC,EAAE;IACT,MAAM,EAAC,EAAE;IACT,IAAI,EAAC,EAAE;IACP,OAAO,EAAC,EAAE;IACV,MAAM,EAAC,EAAE;IACT,KAAK,EAAC,EAAE;IACR,OAAO,EAAC,EAAE;IACV,MAAM,EAAC,EAAE;IACT,KAAK,EAAC,EAAE;IACR,KAAK,EAAC,EAAE;IACR,MAAM,EAAC,EAAE;IACT,GAAG,EAAC,E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C,CAAC,GAAG;IACX,IAAI,EAAE,CAAC,CAAC,GAAG;IACX,IAAI,EAAE,CAAC,CAAC,GAAG;IACX,IAAI,EAAE,CAAC,CAAC,OAAO;IACf,IAAI,EAAE,CAAC,CAAC,QAAQ;IAChB,IAAI,EAAE,CAAC,CAAC,OAAO;IAEf,IAAI,EAAE,CAAC,CAAC,OAAO;IAEf,IAAI,EAAE,CAAC,CAAC,KAAK;IACb,IAAI,EAAE,CAAC,CAAC,KAAK;IACb,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,gCAAgC;CAEhD,CAAC;AAIF;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,QAAsB;IACpE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,QAAsB;IACjE,6CAA6C;IAC7C,SAAS,WAAW,CAAC,GAAgB;QACnC,OAAO,GAAG,IAAI,2BAA2B,CAAC;IAC5C,CAAC;IACD,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;QACrB,OAAO,2BAA2B,CAAC,IAAI,CAAC,CAAC;KAC1C;SAAM;QACL,QAAQ,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;QACpB,OAAO,SAAS,CAAC;KAClB;AACH,CAAC","names":[],"sourceRoot":"","sources":["../../../src/consts/virtual-key-constants.ts"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha": "
|
|
3
|
-
"description": "release-44-alpha3-
|
|
4
|
-
"date": "
|
|
2
|
+
"sha": "2aa2275158c29e8e41c7f0b67c8fb786a453b89c",
|
|
3
|
+
"description": "release-44-alpha3-14-g2aa2275158",
|
|
4
|
+
"date": "Thu, 28 Sep 2023 17:49:50 +0000"
|
|
5
5
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
Values are space separated hex bytes.
|
|
10
10
|
Frame keys are not included.
|
|
11
11
|
-->
|
|
12
|
+
|
|
12
13
|
<form id="us">
|
|
13
14
|
<scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys, ` to = -->
|
|
14
15
|
<scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B 2B" /> <!-- 13 keys, Q to \ -->
|
|
@@ -16,13 +17,37 @@
|
|
|
16
17
|
<scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 10 keys, Z to / -->
|
|
17
18
|
<scanCodes codes="39" /> <!-- 1 key, spacebar -->
|
|
18
19
|
</form>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<form id="iso">
|
|
21
|
+
<scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys -->
|
|
22
|
+
<scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
|
|
23
|
+
<scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
|
|
24
|
+
<scanCodes codes="56 2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 11 keys-->
|
|
25
|
+
<scanCodes codes="39" /> <!-- 1 key, spacebar -->
|
|
26
|
+
</form>
|
|
27
|
+
<form id="abnt2">
|
|
28
|
+
<scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys -->
|
|
29
|
+
<scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
|
|
30
|
+
<scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
|
|
31
|
+
<scanCodes codes="56 2C 2D 2E 2F 30 31 32 33 34 35 73" /> <!-- 12 keys-->
|
|
32
|
+
<scanCodes codes="39" /> <!-- 1 key, spacebar -->
|
|
33
|
+
</form>
|
|
34
|
+
<form id="jis">
|
|
35
|
+
<scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 7D" /> <!-- 14 keys -->
|
|
36
|
+
<scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
|
|
37
|
+
<scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
|
|
38
|
+
<scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35 73" /> <!-- 11 keys-->
|
|
39
|
+
<scanCodes codes="39" /> <!-- 1 key, spacebar -->
|
|
40
|
+
</form>
|
|
41
|
+
<form id="ks">
|
|
42
|
+
<scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 2B" /> <!-- 14 keys -->
|
|
43
|
+
<scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
|
|
44
|
+
<scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28" /> <!-- 11 keys -->
|
|
45
|
+
<scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 10 keys, Z to / -->
|
|
46
|
+
<scanCodes codes="39" /> <!-- 1 key, spacebar -->
|
|
47
|
+
</form>
|
|
23
48
|
|
|
24
49
|
<!--
|
|
25
50
|
"touch" is not a hardware layout form, and so is not defined here.
|
|
26
|
-
<form id="touch"/>
|
|
51
|
+
<form id="touch"/>
|
|
27
52
|
-->
|
|
28
|
-
</forms>
|
|
53
|
+
</forms>
|
|
@@ -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]="
|
|
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]="91c27a68-aef0-5f5e-a166-7ead32987a92")}catch(e){}}();
|
|
2
2
|
import { KMXPlusData, LayrEntry, LayrRow } from "../kmx-plus.js";
|
|
3
3
|
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
4
4
|
import { BUILDER_LIST } from "./build-list.js";
|
|
@@ -7,7 +7,7 @@ import { BUILDER_SECTION } from "./builder-section.js";
|
|
|
7
7
|
* List of layers, the <layers> element
|
|
8
8
|
*/
|
|
9
9
|
interface BUILDER_LAYR_LIST {
|
|
10
|
-
hardware:
|
|
10
|
+
hardware: BUILDER_STR_REF;
|
|
11
11
|
layer: number;
|
|
12
12
|
count: number;
|
|
13
13
|
minDeviceWidth: number;
|
|
@@ -52,5 +52,5 @@ export interface BUILDER_LAYR extends BUILDER_SECTION {
|
|
|
52
52
|
}
|
|
53
53
|
export declare function build_layr(kmxplus: KMXPlusData, sect_strs: BUILDER_STRS, sect_list: BUILDER_LIST): BUILDER_LAYR;
|
|
54
54
|
export {};
|
|
55
|
-
//# debugId=
|
|
55
|
+
//# debugId=91c27a68-aef0-5f5e-a166-7ead32987a92
|
|
56
56
|
//# sourceMappingURL=build-layr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"91c27a68-aef0-5f5e-a166-7ead32987a92","file":"build-layr.d.ts","mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAY,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAoB,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD;;GAEG;AACH,UAAU,iBAAiB;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,UAAU,kBAAkB;IAC1B,EAAE,EAAE,eAAe,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,IAAI,EAAE,gBAAgB,EAAE,CAAC;CAC1B;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,GAAG,YAAY,CA2F/G","names":[],"sourceRoot":"","sources":["../../../../src/kmx/kmx-plus-builder/build-layr.ts"],"version":3}
|
|
@@ -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]="
|
|
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]="7e5ca2e2-9ec5-598e-9df2-5a683d0e4b30")}catch(e){}}();
|
|
2
2
|
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
3
3
|
import { StrsItem } from "../kmx-plus.js";
|
|
4
4
|
import { build_strs_index } from "./build-strs.js";
|
|
@@ -26,7 +26,7 @@ export function build_layr(kmxplus, sect_strs, sect_list) {
|
|
|
26
26
|
};
|
|
27
27
|
layr.lists = kmxplus.layr.lists.map((list) => {
|
|
28
28
|
const blist = {
|
|
29
|
-
hardware: list.hardware,
|
|
29
|
+
hardware: build_strs_index(sect_strs, list.hardware),
|
|
30
30
|
layer: null,
|
|
31
31
|
_layers: list.layers,
|
|
32
32
|
count: list.layers.length,
|
|
@@ -36,6 +36,7 @@ export function build_layr(kmxplus, sect_strs, sect_list) {
|
|
|
36
36
|
});
|
|
37
37
|
// now sort the lists
|
|
38
38
|
layr.lists.sort((a, b) => {
|
|
39
|
+
// sort by string #
|
|
39
40
|
if (a.hardware < b.hardware) {
|
|
40
41
|
return -1;
|
|
41
42
|
}
|
|
@@ -97,5 +98,5 @@ export function build_layr(kmxplus, sect_strs, sect_list) {
|
|
|
97
98
|
layr.size = offset;
|
|
98
99
|
return layr;
|
|
99
100
|
}
|
|
100
|
-
//# debugId=
|
|
101
|
+
//# debugId=7e5ca2e2-9ec5-598e-9df2-5a683d0e4b30
|
|
101
102
|
//# sourceMappingURL=build-layr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"7e5ca2e2-9ec5-598e-9df2-5a683d0e4b30","file":"build-layr.js","mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAmC,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAiC,MAAM,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M,CAAC;IACnB,OAAO,IAAI,CAAC;AACd,CAAC","names":[],"sourceRoot":"","sources":["../../../../src/kmx/kmx-plus-builder/build-layr.ts"],"version":3}
|
|
@@ -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]="
|
|
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]="ebffad5e-4b58-5be6-a9bf-66d61ae4aefe")}catch(e){}}();
|
|
2
2
|
import { KMXPlusFile } from "../kmx-plus.js";
|
|
3
3
|
import { BUILDER_SECT } from './build-sect.js';
|
|
4
4
|
import { BUILDER_DISP } from './build-disp.js';
|
|
@@ -13,7 +13,6 @@ import { BUILDER_STRS } from './build-strs.js';
|
|
|
13
13
|
import { BUILDER_TRAN } from './build-tran.js';
|
|
14
14
|
import { BUILDER_USET } from './build-uset.js';
|
|
15
15
|
import { BUILDER_VARS } from './build-vars.js';
|
|
16
|
-
import { BUILDER_VKEY } from './build-vkey.js';
|
|
17
16
|
type BUILDER_BKSP = BUILDER_TRAN;
|
|
18
17
|
type SectionBuilders = {
|
|
19
18
|
sect?: BUILDER_SECT;
|
|
@@ -30,7 +29,6 @@ type SectionBuilders = {
|
|
|
30
29
|
tran?: BUILDER_TRAN;
|
|
31
30
|
uset?: BUILDER_USET;
|
|
32
31
|
vars?: BUILDER_VARS;
|
|
33
|
-
vkey?: BUILDER_VKEY;
|
|
34
32
|
};
|
|
35
33
|
export default class KMXPlusBuilder {
|
|
36
34
|
private file;
|
|
@@ -45,5 +43,5 @@ export default class KMXPlusBuilder {
|
|
|
45
43
|
private emitElements;
|
|
46
44
|
}
|
|
47
45
|
export {};
|
|
48
|
-
//# debugId=
|
|
46
|
+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,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,IAAI,CAAc;IAG1B,IAAI,EAAG,eAAe,CAEpB;gBAEU,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO;IAK5C,OAAO,IAAI,UAAU;IAyB5B,OAAO,CAAC,KAAK;IA8Bb,OAAO,CAAC,aAAa;IAiCrB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,YAAY;CAUrB","names":[],"sourceRoot":"","sources":["../../../../src/kmx/kmx-plus-builder/kmx-plus-builder.ts"],"version":3}
|
|
@@ -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]="
|
|
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]="73e279d8-c6ae-5752-b6f0-a02bdeea7fd5")}catch(e){}}();
|
|
2
2
|
import * as r from 'restructure';
|
|
3
3
|
import { constants } from '@keymanapp/ldml-keyboard-constants';
|
|
4
4
|
import { build_sect } from './build-sect.js';
|
|
@@ -14,7 +14,6 @@ import { build_strs } from './build-strs.js';
|
|
|
14
14
|
import { build_tran } from './build-tran.js';
|
|
15
15
|
import { build_uset } from './build-uset.js';
|
|
16
16
|
import { build_vars } from './build-vars.js';
|
|
17
|
-
import { build_vkey } from './build-vkey.js';
|
|
18
17
|
export default class KMXPlusBuilder {
|
|
19
18
|
file;
|
|
20
19
|
//private writeDebug: boolean;
|
|
@@ -43,7 +42,6 @@ export default class KMXPlusBuilder {
|
|
|
43
42
|
this.emitSection(file, this.file.COMP_PLUS_TRAN, this.sect.tran);
|
|
44
43
|
this.emitSection(file, this.file.COMP_PLUS_USET, this.sect.uset);
|
|
45
44
|
this.emitSection(file, this.file.COMP_PLUS_VARS, this.sect.vars);
|
|
46
|
-
this.emitSection(file, this.file.COMP_PLUS_VKEY, this.sect.vkey);
|
|
47
45
|
return file;
|
|
48
46
|
}
|
|
49
47
|
build() {
|
|
@@ -65,7 +63,6 @@ export default class KMXPlusBuilder {
|
|
|
65
63
|
this.sect.tran = build_tran(this.file.kmxplus.tran, this.sect.strs, this.sect.elem);
|
|
66
64
|
this.sect.uset = build_uset(this.file.kmxplus, this.sect.strs);
|
|
67
65
|
this.sect.vars = build_vars(this.file.kmxplus, this.sect.strs, this.sect.elem, this.sect.list);
|
|
68
|
-
this.sect.vkey = build_vkey(this.file.kmxplus);
|
|
69
66
|
// Finalize the sect (index) section
|
|
70
67
|
this.sect.sect = build_sect();
|
|
71
68
|
this.finalize_sect(); // must be done last
|
|
@@ -96,7 +93,6 @@ export default class KMXPlusBuilder {
|
|
|
96
93
|
offset = this.finalize_sect_item(this.sect.tran, offset);
|
|
97
94
|
offset = this.finalize_sect_item(this.sect.uset, offset);
|
|
98
95
|
offset = this.finalize_sect_item(this.sect.vars, offset);
|
|
99
|
-
offset = this.finalize_sect_item(this.sect.vkey, offset);
|
|
100
96
|
this.sect.sect.total = offset;
|
|
101
97
|
}
|
|
102
98
|
finalize_sect_item(sect, offset) {
|
|
@@ -142,5 +138,5 @@ export default class KMXPlusBuilder {
|
|
|
142
138
|
}
|
|
143
139
|
}
|
|
144
140
|
}
|
|
145
|
-
//# debugId=
|
|
141
|
+
//# debugId=73e279d8-c6ae-5752-b6f0-a02bdeea7fd5
|
|
146
142
|
//# sourceMappingURL=kmx-plus-builder.js.map
|