@keymanapp/common-types 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.
- package/build/src/consts/virtual-key-constants.d.ts +191 -191
- package/build/src/consts/virtual-key-constants.js +221 -221
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +5 -5
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +72 -72
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +28 -28
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +120 -120
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +95 -95
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +52 -52
- package/build/src/kmx/element-string.d.ts +23 -23
- package/build/src/kmx/element-string.js +125 -125
- package/build/src/kmx/element-string.js.map +1 -1
- package/build/src/kmx/keyman-targets.d.ts +20 -20
- package/build/src/kmx/keyman-targets.js +79 -79
- package/build/src/kmx/keyman-targets.js.map +1 -1
- package/build/src/kmx/kmx-builder.d.ts +32 -32
- package/build/src/kmx/kmx-builder.js +189 -189
- package/build/src/kmx/kmx-builder.js.map +1 -1
- package/build/src/kmx/kmx-file-reader.d.ts +13 -13
- package/build/src/kmx/kmx-file-reader.js +134 -134
- package/build/src/kmx/kmx-file-reader.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +18 -18
- package/build/src/kmx/kmx-plus-builder/build-disp.js +27 -27
- package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +28 -28
- package/build/src/kmx/kmx-plus-builder/build-elem.js +89 -89
- package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +56 -56
- package/build/src/kmx/kmx-plus-builder/build-keys.js +107 -107
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +53 -53
- package/build/src/kmx/kmx-plus-builder/build-layr.js +101 -101
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts +35 -35
- package/build/src/kmx/kmx-plus-builder/build-list.js +66 -66
- package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +11 -11
- package/build/src/kmx/kmx-plus-builder/build-loca.js +21 -21
- package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +16 -16
- package/build/src/kmx/kmx-plus-builder/build-meta.js +20 -20
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +22 -22
- package/build/src/kmx/kmx-plus-builder/build-strs.js +46 -46
- package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +32 -32
- package/build/src/kmx/kmx-plus-builder/build-tran.js +69 -69
- package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +30 -30
- package/build/src/kmx/kmx-plus-builder/build-uset.js +60 -60
- package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +21 -21
- package/build/src/kmx/kmx-plus-builder/build-vars.js +48 -48
- package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +9 -9
- package/build/src/kmx/kmx-plus-builder/builder-section.js +2 -2
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +42 -42
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +137 -137
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +322 -322
- package/build/src/kmx/kmx-plus.js +830 -830
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts +233 -233
- package/build/src/kmx/kmx.js +302 -302
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kmx/string-list.d.ts +35 -35
- package/build/src/kmx/string-list.js +88 -88
- package/build/src/kmx/string-list.js.map +1 -1
- package/build/src/kpj/keyman-developer-project.d.ts +78 -78
- package/build/src/kpj/keyman-developer-project.js +195 -195
- package/build/src/kpj/keyman-developer-project.js.map +1 -1
- package/build/src/kpj/kpj-file-reader.d.ts +18 -18
- package/build/src/kpj/kpj-file-reader.js +119 -119
- package/build/src/kpj/kpj-file-reader.js.map +1 -1
- package/build/src/kpj/kpj-file.d.ts +39 -39
- package/build/src/kpj/kpj-file.js +10 -10
- package/build/src/kvk/kvk-file-reader.d.ts +4 -4
- package/build/src/kvk/kvk-file-reader.js +37 -37
- package/build/src/kvk/kvk-file-reader.js.map +1 -1
- package/build/src/kvk/kvk-file-writer.d.ts +19 -19
- package/build/src/kvk/kvk-file-writer.js +77 -77
- package/build/src/kvk/kvk-file-writer.js.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +66 -66
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +90 -90
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.d.ts +23 -23
- package/build/src/kvk/kvks-file-reader.js +175 -175
- package/build/src/kvk/kvks-file-reader.js.map +1 -1
- package/build/src/kvk/kvks-file-writer.d.ts +6 -6
- package/build/src/kvk/kvks-file-writer.js +106 -106
- package/build/src/kvk/kvks-file-writer.js.map +1 -1
- package/build/src/kvk/kvks-file.d.ts +43 -43
- package/build/src/kvk/kvks-file.js +9 -9
- package/build/src/kvk/visual-keyboard.d.ts +44 -44
- package/build/src/kvk/visual-keyboard.js +75 -75
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +60 -60
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +19 -19
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +95 -95
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +409 -409
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +170 -170
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +55 -55
- package/build/src/ldml-keyboard/pattern-parser.d.ts +201 -201
- package/build/src/ldml-keyboard/pattern-parser.js +490 -490
- package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +37 -37
- package/build/src/ldml-keyboard/unicodeset-parser-api.js +27 -27
- package/build/src/main.d.ts +33 -33
- package/build/src/main.js +32 -32
- package/build/src/package/kmp-json-file.d.ts +115 -115
- package/build/src/package/kmp-json-file.js +1 -1
- package/build/src/package/kps-file.d.ts +175 -175
- package/build/src/package/kps-file.js +15 -15
- package/build/src/schema-validators.d.ts +13 -13
- package/build/src/schema-validators.js +25 -25
- package/build/src/schemas/displaymap.schema.d.ts +57 -57
- package/build/src/schemas/displaymap.schema.js +35 -35
- package/build/src/schemas/displaymap.schema.validator.d.mts +2 -2
- package/build/src/schemas/displaymap.schema.validator.mjs +266 -266
- package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyboard_info.schema.d.ts +209 -209
- package/build/src/schemas/keyboard_info.schema.js +98 -98
- package/build/src/schemas/keyboard_info.schema.validator.d.mts +2 -2
- package/build/src/schemas/keyboard_info.schema.validator.mjs +1160 -1160
- package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +227 -227
- package/build/src/schemas/keyman-touch-layout.clean.spec.js +151 -151
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1094 -1094
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.d.ts +229 -229
- package/build/src/schemas/keyman-touch-layout.spec.js +140 -140
- package/build/src/schemas/keyman-touch-layout.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1436 -1436
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
- package/build/src/schemas/kmp.schema.d.ts +324 -324
- package/build/src/schemas/kmp.schema.js +353 -353
- package/build/src/schemas/kmp.schema.validator.d.mts +2 -2
- package/build/src/schemas/kmp.schema.validator.mjs +1627 -1627
- package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.d.ts +152 -152
- package/build/src/schemas/kpj-9.0.schema.js +131 -131
- package/build/src/schemas/kpj-9.0.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj-9.0.schema.validator.mjs +655 -655
- package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj.schema.d.ts +122 -122
- package/build/src/schemas/kpj.schema.js +129 -129
- package/build/src/schemas/kpj.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj.schema.validator.mjs +515 -515
- package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kvks.schema.d.ts +160 -160
- package/build/src/schemas/kvks.schema.js +182 -182
- package/build/src/schemas/kvks.schema.validator.d.mts +2 -2
- package/build/src/schemas/kvks.schema.validator.mjs +625 -625
- package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +635 -635
- package/build/src/schemas/ldml-keyboard3.schema.js +696 -696
- package/build/src/schemas/ldml-keyboard3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3117 -3117
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts +192 -192
- package/build/src/schemas/ldml-keyboardtest3.schema.js +225 -225
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +744 -744
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.d.ts +2300 -2300
- package/build/src/schemas.js +23 -23
- package/build/src/util/common-events.d.ts +44 -44
- package/build/src/util/common-events.js +26 -26
- package/build/src/util/compiler-interfaces.d.ts +371 -371
- package/build/src/util/compiler-interfaces.d.ts.map +1 -1
- package/build/src/util/compiler-interfaces.js +380 -380
- package/build/src/util/compiler-interfaces.js.map +1 -1
- package/build/src/util/errors.d.ts +5 -5
- package/build/src/util/errors.js +5 -5
- package/build/src/util/file-types.d.ts +93 -93
- package/build/src/util/file-types.d.ts.map +1 -1
- package/build/src/util/file-types.js +142 -142
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.d.ts +98 -98
- package/build/src/util/util.js +368 -368
- package/build/src/util/util.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,103 +1,103 @@
|
|
|
1
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]="
|
|
3
|
-
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
4
|
-
import { StrsItem } from "../kmx-plus.js";
|
|
5
|
-
import { build_strs_index } from "./build-strs.js";
|
|
6
|
-
;
|
|
7
|
-
;
|
|
8
|
-
;
|
|
9
|
-
;
|
|
10
|
-
;
|
|
11
|
-
export function build_layr(kmxplus, sect_strs, sect_list) {
|
|
12
|
-
if (!kmxplus.layr?.lists) {
|
|
13
|
-
return null; // if there aren't any layers at all (which should be an invalid keyboard)
|
|
14
|
-
}
|
|
15
|
-
let layr = {
|
|
16
|
-
ident: constants.hex_section_id(constants.section.layr),
|
|
17
|
-
size: constants.length_layr,
|
|
18
|
-
_offset: 0,
|
|
19
|
-
listCount: kmxplus.layr.lists.length,
|
|
20
|
-
layerCount: 0,
|
|
21
|
-
rowCount: 0,
|
|
22
|
-
keyCount: 0,
|
|
23
|
-
lists: [],
|
|
24
|
-
layers: [],
|
|
25
|
-
rows: [],
|
|
26
|
-
keys: []
|
|
27
|
-
};
|
|
28
|
-
layr.lists = kmxplus.layr.lists.map((list) => {
|
|
29
|
-
const blist = {
|
|
30
|
-
hardware: build_strs_index(sect_strs, list.hardware),
|
|
31
|
-
layer: null,
|
|
32
|
-
_layers: list.layers,
|
|
33
|
-
count: list.layers.length,
|
|
34
|
-
minDeviceWidth: list.minDeviceWidth,
|
|
35
|
-
};
|
|
36
|
-
return blist;
|
|
37
|
-
});
|
|
38
|
-
// now sort the lists
|
|
39
|
-
layr.lists.sort((a, b) => {
|
|
40
|
-
// sort by string #
|
|
41
|
-
if (a.hardware < b.hardware) {
|
|
42
|
-
return -1;
|
|
43
|
-
}
|
|
44
|
-
else if (a.hardware > b.hardware) {
|
|
45
|
-
return 1;
|
|
46
|
-
}
|
|
47
|
-
if (a.minDeviceWidth < b.minDeviceWidth) {
|
|
48
|
-
return -1;
|
|
49
|
-
}
|
|
50
|
-
else if (a.minDeviceWidth > b.minDeviceWidth) {
|
|
51
|
-
return 1;
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return 0; // same
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
// Now allocate the layers, rows, and keys
|
|
58
|
-
layr.lists.forEach((list) => {
|
|
59
|
-
list.layer = layr.layers.length; // index to first layer in list
|
|
60
|
-
const blayers = list._layers.map((layer) => {
|
|
61
|
-
const blayer = {
|
|
62
|
-
_id: layer.id.value,
|
|
63
|
-
id: build_strs_index(sect_strs, layer.id),
|
|
64
|
-
mod: layer.mod,
|
|
65
|
-
row: null,
|
|
66
|
-
_rows: layer.rows,
|
|
67
|
-
count: layer.rows.length, // number of rows
|
|
68
|
-
};
|
|
69
|
-
return blayer;
|
|
70
|
-
});
|
|
71
|
-
// sort the new layers
|
|
72
|
-
blayers.sort((a, b) => StrsItem.binaryStringCompare(a._id, b._id));
|
|
73
|
-
blayers.forEach((layer) => {
|
|
74
|
-
layer.row = layr.rows.length; // index to first row in list
|
|
75
|
-
layer._rows.forEach((row) => {
|
|
76
|
-
const brow = {
|
|
77
|
-
key: layr.keys.length,
|
|
78
|
-
count: row.keys.length,
|
|
79
|
-
};
|
|
80
|
-
row.keys.forEach((key) => {
|
|
81
|
-
const bkey = {
|
|
82
|
-
key: build_strs_index(sect_strs, key),
|
|
83
|
-
};
|
|
84
|
-
layr.keys.push(bkey);
|
|
85
|
-
});
|
|
86
|
-
layr.rows.push(brow);
|
|
87
|
-
});
|
|
88
|
-
layr.layers.push(layer);
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
layr.layerCount = layr.layers.length;
|
|
92
|
-
layr.rowCount = layr.rows.length;
|
|
93
|
-
layr.keyCount = layr.keys.length;
|
|
94
|
-
let offset = constants.length_layr +
|
|
95
|
-
(constants.length_layr_list * layr.listCount) +
|
|
96
|
-
(constants.length_layr_entry * layr.layerCount) +
|
|
97
|
-
(constants.length_layr_row * layr.rowCount) +
|
|
98
|
-
(constants.length_layr_key * layr.keyCount);
|
|
99
|
-
layr.size = offset;
|
|
100
|
-
return layr;
|
|
101
|
-
}
|
|
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]="b650a818-9ff1-55ed-a698-c34c2a45c3de")}catch(e){}}();
|
|
3
|
+
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
4
|
+
import { StrsItem } from "../kmx-plus.js";
|
|
5
|
+
import { build_strs_index } from "./build-strs.js";
|
|
6
|
+
;
|
|
7
|
+
;
|
|
8
|
+
;
|
|
9
|
+
;
|
|
10
|
+
;
|
|
11
|
+
export function build_layr(kmxplus, sect_strs, sect_list) {
|
|
12
|
+
if (!kmxplus.layr?.lists) {
|
|
13
|
+
return null; // if there aren't any layers at all (which should be an invalid keyboard)
|
|
14
|
+
}
|
|
15
|
+
let layr = {
|
|
16
|
+
ident: constants.hex_section_id(constants.section.layr),
|
|
17
|
+
size: constants.length_layr,
|
|
18
|
+
_offset: 0,
|
|
19
|
+
listCount: kmxplus.layr.lists.length,
|
|
20
|
+
layerCount: 0, // calculated below
|
|
21
|
+
rowCount: 0, // calculated below
|
|
22
|
+
keyCount: 0, // calculated below
|
|
23
|
+
lists: [],
|
|
24
|
+
layers: [],
|
|
25
|
+
rows: [],
|
|
26
|
+
keys: []
|
|
27
|
+
};
|
|
28
|
+
layr.lists = kmxplus.layr.lists.map((list) => {
|
|
29
|
+
const blist = {
|
|
30
|
+
hardware: build_strs_index(sect_strs, list.hardware),
|
|
31
|
+
layer: null, // to be set below
|
|
32
|
+
_layers: list.layers,
|
|
33
|
+
count: list.layers.length,
|
|
34
|
+
minDeviceWidth: list.minDeviceWidth,
|
|
35
|
+
};
|
|
36
|
+
return blist;
|
|
37
|
+
});
|
|
38
|
+
// now sort the lists
|
|
39
|
+
layr.lists.sort((a, b) => {
|
|
40
|
+
// sort by string #
|
|
41
|
+
if (a.hardware < b.hardware) {
|
|
42
|
+
return -1;
|
|
43
|
+
}
|
|
44
|
+
else if (a.hardware > b.hardware) {
|
|
45
|
+
return 1;
|
|
46
|
+
}
|
|
47
|
+
if (a.minDeviceWidth < b.minDeviceWidth) {
|
|
48
|
+
return -1;
|
|
49
|
+
}
|
|
50
|
+
else if (a.minDeviceWidth > b.minDeviceWidth) {
|
|
51
|
+
return 1;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return 0; // same
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
// Now allocate the layers, rows, and keys
|
|
58
|
+
layr.lists.forEach((list) => {
|
|
59
|
+
list.layer = layr.layers.length; // index to first layer in list
|
|
60
|
+
const blayers = list._layers.map((layer) => {
|
|
61
|
+
const blayer = {
|
|
62
|
+
_id: layer.id.value, // original id
|
|
63
|
+
id: build_strs_index(sect_strs, layer.id),
|
|
64
|
+
mod: layer.mod,
|
|
65
|
+
row: null, // row ID, to be filled in
|
|
66
|
+
_rows: layer.rows, // temporary
|
|
67
|
+
count: layer.rows.length, // number of rows
|
|
68
|
+
};
|
|
69
|
+
return blayer;
|
|
70
|
+
});
|
|
71
|
+
// sort the new layers
|
|
72
|
+
blayers.sort((a, b) => StrsItem.binaryStringCompare(a._id, b._id));
|
|
73
|
+
blayers.forEach((layer) => {
|
|
74
|
+
layer.row = layr.rows.length; // index to first row in list
|
|
75
|
+
layer._rows.forEach((row) => {
|
|
76
|
+
const brow = {
|
|
77
|
+
key: layr.keys.length,
|
|
78
|
+
count: row.keys.length,
|
|
79
|
+
};
|
|
80
|
+
row.keys.forEach((key) => {
|
|
81
|
+
const bkey = {
|
|
82
|
+
key: build_strs_index(sect_strs, key),
|
|
83
|
+
};
|
|
84
|
+
layr.keys.push(bkey);
|
|
85
|
+
});
|
|
86
|
+
layr.rows.push(brow);
|
|
87
|
+
});
|
|
88
|
+
layr.layers.push(layer);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
layr.layerCount = layr.layers.length;
|
|
92
|
+
layr.rowCount = layr.rows.length;
|
|
93
|
+
layr.keyCount = layr.keys.length;
|
|
94
|
+
let offset = constants.length_layr +
|
|
95
|
+
(constants.length_layr_list * layr.listCount) +
|
|
96
|
+
(constants.length_layr_entry * layr.layerCount) +
|
|
97
|
+
(constants.length_layr_row * layr.rowCount) +
|
|
98
|
+
(constants.length_layr_key * layr.keyCount);
|
|
99
|
+
layr.size = offset;
|
|
100
|
+
return layr;
|
|
101
|
+
}
|
|
102
102
|
//# sourceMappingURL=build-layr.js.map
|
|
103
|
-
//# debugId=
|
|
103
|
+
//# debugId=b650a818-9ff1-55ed-a698-c34c2a45c3de
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-layr.js","sources":["../../../../src/kmx/kmx-plus-builder/build-layr.ts"],"sourceRoot":"","names":[],"mappings":";;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAmC,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAiC,MAAM,iBAAiB,CAAC;AAiBjF,CAAC;AAYD,CAAC;AAQD,CAAC;AAOD,CAAC;AAcD,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,OAAoB,EAAE,SAAuB,EAAE,SAAuB;IAC/F,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"build-layr.js","sources":["../../../../src/kmx/kmx-plus-builder/build-layr.ts"],"sourceRoot":"","names":[],"mappings":";;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAmC,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAiC,MAAM,iBAAiB,CAAC;AAiBjF,CAAC;AAYD,CAAC;AAQD,CAAC;AAOD,CAAC;AAcD,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,OAAoB,EAAE,SAAuB,EAAE,SAAuB;IAC/F,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QACzB,OAAO,IAAI,CAAC,CAAE,0EAA0E;IAC1F,CAAC;IAED,I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3de"}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { List, ListItem } from "../kmx-plus.js";
|
|
2
|
-
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
3
|
-
import { BUILDER_SECTION } from "./builder-section.js";
|
|
4
|
-
/** reference from build_list_index */
|
|
5
|
-
export type BUILDER_LIST_REF = number;
|
|
6
|
-
/**
|
|
7
|
-
* A list entry.
|
|
8
|
-
*/
|
|
9
|
-
interface BUILDER_LIST_LIST {
|
|
10
|
-
index: number;
|
|
11
|
-
count: number;
|
|
12
|
-
_value: ListItem;
|
|
13
|
-
}
|
|
14
|
-
interface BUILDER_LIST_INDEX {
|
|
15
|
-
str: BUILDER_STR_REF;
|
|
16
|
-
_value: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Builder for the 'list' section
|
|
20
|
-
*/
|
|
21
|
-
export interface BUILDER_LIST extends BUILDER_SECTION {
|
|
22
|
-
listCount: number;
|
|
23
|
-
indexCount: number;
|
|
24
|
-
lists: BUILDER_LIST_LIST[];
|
|
25
|
-
indices: BUILDER_LIST_INDEX[];
|
|
26
|
-
}
|
|
27
|
-
export declare function build_list(source_list: List, sect_strs: BUILDER_STRS): BUILDER_LIST;
|
|
28
|
-
/**
|
|
29
|
-
* Returns the index into the list, analagous to build_strs_index
|
|
30
|
-
* @param sect_strs
|
|
31
|
-
* @param value
|
|
32
|
-
* @returns
|
|
33
|
-
*/
|
|
34
|
-
export declare function build_list_index(sect_list: BUILDER_LIST, value: ListItem): BUILDER_LIST_REF;
|
|
35
|
-
export {};
|
|
1
|
+
import { List, ListItem } from "../kmx-plus.js";
|
|
2
|
+
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
3
|
+
import { BUILDER_SECTION } from "./builder-section.js";
|
|
4
|
+
/** reference from build_list_index */
|
|
5
|
+
export type BUILDER_LIST_REF = number;
|
|
6
|
+
/**
|
|
7
|
+
* A list entry.
|
|
8
|
+
*/
|
|
9
|
+
interface BUILDER_LIST_LIST {
|
|
10
|
+
index: number;
|
|
11
|
+
count: number;
|
|
12
|
+
_value: ListItem;
|
|
13
|
+
}
|
|
14
|
+
interface BUILDER_LIST_INDEX {
|
|
15
|
+
str: BUILDER_STR_REF;
|
|
16
|
+
_value: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Builder for the 'list' section
|
|
20
|
+
*/
|
|
21
|
+
export interface BUILDER_LIST extends BUILDER_SECTION {
|
|
22
|
+
listCount: number;
|
|
23
|
+
indexCount: number;
|
|
24
|
+
lists: BUILDER_LIST_LIST[];
|
|
25
|
+
indices: BUILDER_LIST_INDEX[];
|
|
26
|
+
}
|
|
27
|
+
export declare function build_list(source_list: List, sect_strs: BUILDER_STRS): BUILDER_LIST;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the index into the list, analagous to build_strs_index
|
|
30
|
+
* @param sect_strs
|
|
31
|
+
* @param value
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
export declare function build_list_index(sect_list: BUILDER_LIST, value: ListItem): BUILDER_LIST_REF;
|
|
35
|
+
export {};
|
|
36
36
|
//# sourceMappingURL=build-list.d.ts.map
|
|
@@ -1,68 +1,68 @@
|
|
|
1
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]="
|
|
3
|
-
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
4
|
-
import { ListItem } from "../kmx-plus.js";
|
|
5
|
-
import { build_strs_index } from "./build-strs.js";
|
|
6
|
-
;
|
|
7
|
-
;
|
|
8
|
-
;
|
|
9
|
-
export function build_list(source_list, sect_strs) {
|
|
10
|
-
if (!source_list?.lists?.length) {
|
|
11
|
-
// there's always the null list
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
let result = {
|
|
15
|
-
ident: constants.hex_section_id(constants.section.list),
|
|
16
|
-
size: 0,
|
|
17
|
-
_offset: 0,
|
|
18
|
-
listCount: source_list.lists.length,
|
|
19
|
-
indexCount: 0,
|
|
20
|
-
lists: [],
|
|
21
|
-
indices: [],
|
|
22
|
-
};
|
|
23
|
-
result.lists = source_list.lists.map(array => {
|
|
24
|
-
let list = {
|
|
25
|
-
index: result.indices.length,
|
|
26
|
-
count: array.length,
|
|
27
|
-
_value: array
|
|
28
|
-
};
|
|
29
|
-
array.forEach((i) => {
|
|
30
|
-
let index = {
|
|
31
|
-
// Get the final string index
|
|
32
|
-
str: build_strs_index(sect_strs, i.value),
|
|
33
|
-
_value: i.value.value, // unwrap the actual string value
|
|
34
|
-
};
|
|
35
|
-
result.indices.push(index); // increment the indexCount
|
|
36
|
-
result.indexCount++;
|
|
37
|
-
});
|
|
38
|
-
return list;
|
|
39
|
-
});
|
|
40
|
-
// Sort the lists.
|
|
41
|
-
result.lists.sort((a, b) => a._value.compareTo(b._value));
|
|
42
|
-
let offset = constants.length_list +
|
|
43
|
-
(constants.length_list_item * result.listCount) +
|
|
44
|
-
(constants.length_list_index * result.indexCount);
|
|
45
|
-
result.size = offset;
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Returns the index into the list, analagous to build_strs_index
|
|
50
|
-
* @param sect_strs
|
|
51
|
-
* @param value
|
|
52
|
-
* @returns
|
|
53
|
-
*/
|
|
54
|
-
export function build_list_index(sect_list, value) {
|
|
55
|
-
if (!value) {
|
|
56
|
-
return 0; // empty list
|
|
57
|
-
}
|
|
58
|
-
if (!(value instanceof ListItem)) {
|
|
59
|
-
throw new Error('unexpected value ' + value);
|
|
60
|
-
}
|
|
61
|
-
let result = sect_list.lists.findIndex(v => v._value === value);
|
|
62
|
-
if (result < 0) {
|
|
63
|
-
throw new Error('unexpectedly missing ListItem ' + value); // TODO-LDML: it's an array of strs
|
|
64
|
-
}
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
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]="d4be7a65-e722-5897-8f20-b3bbfb0f7da7")}catch(e){}}();
|
|
3
|
+
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
4
|
+
import { ListItem } from "../kmx-plus.js";
|
|
5
|
+
import { build_strs_index } from "./build-strs.js";
|
|
6
|
+
;
|
|
7
|
+
;
|
|
8
|
+
;
|
|
9
|
+
export function build_list(source_list, sect_strs) {
|
|
10
|
+
if (!source_list?.lists?.length) {
|
|
11
|
+
// there's always the null list
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
let result = {
|
|
15
|
+
ident: constants.hex_section_id(constants.section.list),
|
|
16
|
+
size: 0,
|
|
17
|
+
_offset: 0,
|
|
18
|
+
listCount: source_list.lists.length,
|
|
19
|
+
indexCount: 0,
|
|
20
|
+
lists: [],
|
|
21
|
+
indices: [],
|
|
22
|
+
};
|
|
23
|
+
result.lists = source_list.lists.map(array => {
|
|
24
|
+
let list = {
|
|
25
|
+
index: result.indices.length, // the next indexcount
|
|
26
|
+
count: array.length,
|
|
27
|
+
_value: array
|
|
28
|
+
};
|
|
29
|
+
array.forEach((i) => {
|
|
30
|
+
let index = {
|
|
31
|
+
// Get the final string index
|
|
32
|
+
str: build_strs_index(sect_strs, i.value),
|
|
33
|
+
_value: i.value.value, // unwrap the actual string value
|
|
34
|
+
};
|
|
35
|
+
result.indices.push(index); // increment the indexCount
|
|
36
|
+
result.indexCount++;
|
|
37
|
+
});
|
|
38
|
+
return list;
|
|
39
|
+
});
|
|
40
|
+
// Sort the lists.
|
|
41
|
+
result.lists.sort((a, b) => a._value.compareTo(b._value));
|
|
42
|
+
let offset = constants.length_list +
|
|
43
|
+
(constants.length_list_item * result.listCount) +
|
|
44
|
+
(constants.length_list_index * result.indexCount);
|
|
45
|
+
result.size = offset;
|
|
46
|
+
return result;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns the index into the list, analagous to build_strs_index
|
|
50
|
+
* @param sect_strs
|
|
51
|
+
* @param value
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
export function build_list_index(sect_list, value) {
|
|
55
|
+
if (!value) {
|
|
56
|
+
return 0; // empty list
|
|
57
|
+
}
|
|
58
|
+
if (!(value instanceof ListItem)) {
|
|
59
|
+
throw new Error('unexpected value ' + value);
|
|
60
|
+
}
|
|
61
|
+
let result = sect_list.lists.findIndex(v => v._value === value);
|
|
62
|
+
if (result < 0) {
|
|
63
|
+
throw new Error('unexpectedly missing ListItem ' + value); // TODO-LDML: it's an array of strs
|
|
64
|
+
}
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
67
67
|
//# sourceMappingURL=build-list.js.map
|
|
68
|
-
//# debugId=
|
|
68
|
+
//# debugId=d4be7a65-e722-5897-8f20-b3bbfb0f7da7
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-list.js","sources":["../../../../src/kmx/kmx-plus-builder/build-list.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAQ,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAiC,MAAM,iBAAiB,CAAC;AAiBjF,CAAC;AAKD,CAAC;AAUD,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,WAAiB,EAAE,SAAuB;IACnE,IAAG,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"build-list.js","sources":["../../../../src/kmx/kmx-plus-builder/build-list.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAQ,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AA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AK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAEzD,IAAI,MAAM,GAAG,SAAS,CAAC,WAAW;QAChC,CAAC,SAAS,CAAC,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC;QAC/C,CAAC,SAAS,CAAC,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC;IAErB,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAuB,EAAE,KAAe;IACvE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,CAAC,CAAC,aAAa;IACzB,CAAC;IACD,IAAG,CAAC,CAAC,KAAK,YAAY,QAAQ,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,mBAAmB,GAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC;IAChE,IAAG,MAAM,GAAG,CAAC,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,gCAAgC,GAAG,KAAK,CAAC,CAAC,CAAC,mCAAmC;IAChG,CAAC;IACD,OAAyB,MAAM,CAAC;AAClC,CAAC","debug_id":"d4be7a65-e722-5897-8f20-b3bbfb0f7da7"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { KMXPlusData } from "../kmx-plus.js";
|
|
2
|
-
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
3
|
-
import { BUILDER_SECTION } from "./builder-section.js";
|
|
4
|
-
/**
|
|
5
|
-
* Builder for the 'loca' section
|
|
6
|
-
*/
|
|
7
|
-
export interface BUILDER_LOCA extends BUILDER_SECTION {
|
|
8
|
-
count: number;
|
|
9
|
-
items: BUILDER_STR_REF[];
|
|
10
|
-
}
|
|
11
|
-
export declare function build_loca(kmxplus: KMXPlusData, sect_strs: BUILDER_STRS): BUILDER_LOCA;
|
|
1
|
+
import { KMXPlusData } from "../kmx-plus.js";
|
|
2
|
+
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
3
|
+
import { BUILDER_SECTION } from "./builder-section.js";
|
|
4
|
+
/**
|
|
5
|
+
* Builder for the 'loca' section
|
|
6
|
+
*/
|
|
7
|
+
export interface BUILDER_LOCA extends BUILDER_SECTION {
|
|
8
|
+
count: number;
|
|
9
|
+
items: BUILDER_STR_REF[];
|
|
10
|
+
}
|
|
11
|
+
export declare function build_loca(kmxplus: KMXPlusData, sect_strs: BUILDER_STRS): BUILDER_LOCA;
|
|
12
12
|
//# sourceMappingURL=build-loca.d.ts.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/* ------------------------------------------------------------------
|
|
2
|
-
* loca section
|
|
3
|
-
------------------------------------------------------------------ */
|
|
1
|
+
/* ------------------------------------------------------------------
|
|
2
|
+
* loca section
|
|
3
|
+
------------------------------------------------------------------ */
|
|
4
4
|
|
|
5
|
-
!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]="
|
|
6
|
-
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
7
|
-
import { build_strs_index } from "./build-strs.js";
|
|
8
|
-
;
|
|
9
|
-
export function build_loca(kmxplus, sect_strs) {
|
|
10
|
-
let loca = {
|
|
11
|
-
ident: constants.hex_section_id(constants.section.loca),
|
|
12
|
-
size: constants.length_loca + constants.length_loca_item * kmxplus.loca.locales.length,
|
|
13
|
-
_offset: 0,
|
|
14
|
-
count: kmxplus.loca.locales.length,
|
|
15
|
-
items: []
|
|
16
|
-
};
|
|
17
|
-
for (let item of kmxplus.loca.locales) {
|
|
18
|
-
loca.items.push(build_strs_index(sect_strs, item));
|
|
19
|
-
}
|
|
20
|
-
return loca;
|
|
21
|
-
}
|
|
5
|
+
!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]="fd761890-3844-523a-af5a-58d7c4d60215")}catch(e){}}();
|
|
6
|
+
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
7
|
+
import { build_strs_index } from "./build-strs.js";
|
|
8
|
+
;
|
|
9
|
+
export function build_loca(kmxplus, sect_strs) {
|
|
10
|
+
let loca = {
|
|
11
|
+
ident: constants.hex_section_id(constants.section.loca),
|
|
12
|
+
size: constants.length_loca + constants.length_loca_item * kmxplus.loca.locales.length,
|
|
13
|
+
_offset: 0,
|
|
14
|
+
count: kmxplus.loca.locales.length,
|
|
15
|
+
items: []
|
|
16
|
+
};
|
|
17
|
+
for (let item of kmxplus.loca.locales) {
|
|
18
|
+
loca.items.push(build_strs_index(sect_strs, item));
|
|
19
|
+
}
|
|
20
|
+
return loca;
|
|
21
|
+
}
|
|
22
22
|
//# sourceMappingURL=build-loca.js.map
|
|
23
|
-
//# debugId=
|
|
23
|
+
//# debugId=fd761890-3844-523a-af5a-58d7c4d60215
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-loca.js","sources":["../../../../src/kmx/kmx-plus-builder/build-loca.ts"],"sourceRoot":"","names":[],"mappings":"AACA;;wEAEwE;;;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAiC,MAAM,iBAAiB,CAAC;AASjF,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,OAAoB,EAAE,SAAuB;IACtE,IAAI,IAAI,GAAiB;QACvB,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;QACvD,IAAI,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;QACtF,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;QAClC,KAAK,EAAE,EAAE;KACV,CAAC;IAEF,KAAI,IAAI,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"build-loca.js","sources":["../../../../src/kmx/kmx-plus-builder/build-loca.ts"],"sourceRoot":"","names":[],"mappings":"AACA;;wEAEwE;;;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAiC,MAAM,iBAAiB,CAAC;AASjF,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,OAAoB,EAAE,SAAuB;IACtE,IAAI,IAAI,GAAiB;QACvB,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC;QACvD,IAAI,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;QACtF,OAAO,EAAE,CAAC;QACV,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM;QAClC,KAAK,EAAE,EAAE;KACV,CAAC;IAEF,KAAI,IAAI,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","debug_id":"fd761890-3844-523a-af5a-58d7c4d60215"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { KMXPlusData } from "../kmx-plus.js";
|
|
2
|
-
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
3
|
-
import { BUILDER_SECTION } from "./builder-section.js";
|
|
4
|
-
/**
|
|
5
|
-
* Builder for the 'meta' section
|
|
6
|
-
*/
|
|
7
|
-
export interface BUILDER_META extends BUILDER_SECTION {
|
|
8
|
-
author: BUILDER_STR_REF;
|
|
9
|
-
conform: BUILDER_STR_REF;
|
|
10
|
-
layout: BUILDER_STR_REF;
|
|
11
|
-
name: BUILDER_STR_REF;
|
|
12
|
-
indicator: BUILDER_STR_REF;
|
|
13
|
-
version: BUILDER_STR_REF;
|
|
14
|
-
settings: number;
|
|
15
|
-
}
|
|
16
|
-
export declare function build_meta(kmxplus: KMXPlusData, sect_strs: BUILDER_STRS): BUILDER_META;
|
|
1
|
+
import { KMXPlusData } from "../kmx-plus.js";
|
|
2
|
+
import { BUILDER_STR_REF, BUILDER_STRS } from "./build-strs.js";
|
|
3
|
+
import { BUILDER_SECTION } from "./builder-section.js";
|
|
4
|
+
/**
|
|
5
|
+
* Builder for the 'meta' section
|
|
6
|
+
*/
|
|
7
|
+
export interface BUILDER_META extends BUILDER_SECTION {
|
|
8
|
+
author: BUILDER_STR_REF;
|
|
9
|
+
conform: BUILDER_STR_REF;
|
|
10
|
+
layout: BUILDER_STR_REF;
|
|
11
|
+
name: BUILDER_STR_REF;
|
|
12
|
+
indicator: BUILDER_STR_REF;
|
|
13
|
+
version: BUILDER_STR_REF;
|
|
14
|
+
settings: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function build_meta(kmxplus: KMXPlusData, sect_strs: BUILDER_STRS): BUILDER_META;
|
|
17
17
|
//# sourceMappingURL=build-meta.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* ------------------------------------------------------------------
|
|
2
|
-
* meta section
|
|
3
|
-
------------------------------------------------------------------ */
|
|
1
|
+
/* ------------------------------------------------------------------
|
|
2
|
+
* meta section
|
|
3
|
+
------------------------------------------------------------------ */
|
|
4
4
|
|
|
5
5
|
!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]="7da6bb55-9823-5c68-847c-580639024f10")}catch(e){}}();
|
|
6
|
-
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
7
|
-
import { build_strs_index } from "./build-strs.js";
|
|
8
|
-
;
|
|
9
|
-
export function build_meta(kmxplus, sect_strs) {
|
|
10
|
-
return {
|
|
11
|
-
ident: constants.hex_section_id(constants.section.meta),
|
|
12
|
-
size: constants.length_meta,
|
|
13
|
-
_offset: 0,
|
|
14
|
-
author: build_strs_index(sect_strs, kmxplus.meta.author),
|
|
15
|
-
conform: build_strs_index(sect_strs, kmxplus.meta.conform),
|
|
16
|
-
layout: build_strs_index(sect_strs, kmxplus.meta.layout),
|
|
17
|
-
name: build_strs_index(sect_strs, kmxplus.meta.name),
|
|
18
|
-
indicator: build_strs_index(sect_strs, kmxplus.meta.indicator),
|
|
19
|
-
version: build_strs_index(sect_strs, kmxplus.meta.version),
|
|
20
|
-
settings: kmxplus.meta.settings ?? 0,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
6
|
+
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
7
|
+
import { build_strs_index } from "./build-strs.js";
|
|
8
|
+
;
|
|
9
|
+
export function build_meta(kmxplus, sect_strs) {
|
|
10
|
+
return {
|
|
11
|
+
ident: constants.hex_section_id(constants.section.meta),
|
|
12
|
+
size: constants.length_meta,
|
|
13
|
+
_offset: 0,
|
|
14
|
+
author: build_strs_index(sect_strs, kmxplus.meta.author),
|
|
15
|
+
conform: build_strs_index(sect_strs, kmxplus.meta.conform),
|
|
16
|
+
layout: build_strs_index(sect_strs, kmxplus.meta.layout),
|
|
17
|
+
name: build_strs_index(sect_strs, kmxplus.meta.name),
|
|
18
|
+
indicator: build_strs_index(sect_strs, kmxplus.meta.indicator),
|
|
19
|
+
version: build_strs_index(sect_strs, kmxplus.meta.version),
|
|
20
|
+
settings: kmxplus.meta.settings ?? 0,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
23
|
//# sourceMappingURL=build-meta.js.map
|
|
24
24
|
//# debugId=7da6bb55-9823-5c68-847c-580639024f10
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BUILDER_SECTION } from "./builder-section.js";
|
|
2
|
-
interface BUILDER_SECT_ITEM {
|
|
3
|
-
sect: number;
|
|
4
|
-
offset: number;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Builder for the 'sect' (Section table of contents) section
|
|
8
|
-
*/
|
|
9
|
-
export interface BUILDER_SECT extends BUILDER_SECTION {
|
|
10
|
-
total: number;
|
|
11
|
-
count: number;
|
|
12
|
-
items: BUILDER_SECT_ITEM[];
|
|
13
|
-
}
|
|
14
|
-
export declare function build_sect(): BUILDER_SECT;
|
|
15
|
-
export {};
|
|
1
|
+
import { BUILDER_SECTION } from "./builder-section.js";
|
|
2
|
+
interface BUILDER_SECT_ITEM {
|
|
3
|
+
sect: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Builder for the 'sect' (Section table of contents) section
|
|
8
|
+
*/
|
|
9
|
+
export interface BUILDER_SECT extends BUILDER_SECTION {
|
|
10
|
+
total: number;
|
|
11
|
+
count: number;
|
|
12
|
+
items: BUILDER_SECT_ITEM[];
|
|
13
|
+
}
|
|
14
|
+
export declare function build_sect(): BUILDER_SECT;
|
|
15
|
+
export {};
|
|
16
16
|
//# sourceMappingURL=build-sect.d.ts.map
|