@keymanapp/ldml-keyboard-constants 17.0.128-alpha → 17.0.130-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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* one of them in the `sections` block and gives us a type which we can iterate
|
|
4
4
|
* through.
|
|
5
5
|
*/
|
|
6
|
-
export type SectionIdent = 'sect' | 'bksp' | 'disp' | 'elem' | 'keys' | 'layr' | 'list' | 'loca' | 'meta' | 'name' | 'strs' | 'tran' | 'vars' | 'vkey';
|
|
6
|
+
export type SectionIdent = 'sect' | 'bksp' | 'disp' | 'elem' | 'keys' | 'layr' | 'list' | 'loca' | 'meta' | 'name' | 'strs' | 'tran' | 'uset' | 'vars' | 'vkey';
|
|
7
7
|
type SectionMap = {
|
|
8
8
|
[id in SectionIdent]: SectionIdent;
|
|
9
9
|
};
|
|
@@ -79,14 +79,6 @@ declare class Constants {
|
|
|
79
79
|
* Length of each element in an elem string
|
|
80
80
|
*/
|
|
81
81
|
readonly length_elem_item_element = 8;
|
|
82
|
-
/**
|
|
83
|
-
* bitwise or value for unicode_set in elem[elemstr][element].flags.
|
|
84
|
-
* If bit is 1, then 'element' is a UnicodeSet string.
|
|
85
|
-
* If bit is 0, then 'element' is a UTF-32LE codepoint
|
|
86
|
-
*
|
|
87
|
-
* `unicode_set = flags & elem_flags_unicode_set`
|
|
88
|
-
*/
|
|
89
|
-
readonly elem_flags_unicode_set = 1;
|
|
90
82
|
/**
|
|
91
83
|
* bitwise or value for tertiary_base in elem[elemstr][element].flags.
|
|
92
84
|
* If bit is 1, then tertiary_base is true.
|
|
@@ -96,7 +88,7 @@ declare class Constants {
|
|
|
96
88
|
*
|
|
97
89
|
* `tertiary_base = flags & elem_flags_tertiary_base`
|
|
98
90
|
*/
|
|
99
|
-
readonly elem_flags_tertiary_base =
|
|
91
|
+
readonly elem_flags_tertiary_base = 1;
|
|
100
92
|
/**
|
|
101
93
|
* bitwise or value for tertiary_base in elem[elemstr][element].flags.
|
|
102
94
|
* If bit is 1, then prebase is true.
|
|
@@ -106,7 +98,19 @@ declare class Constants {
|
|
|
106
98
|
*
|
|
107
99
|
* `prebase = flags & elem_flags_prebase`
|
|
108
100
|
*/
|
|
109
|
-
readonly elem_flags_prebase =
|
|
101
|
+
readonly elem_flags_prebase = 2;
|
|
102
|
+
/**
|
|
103
|
+
* bitwise or value for type in elem[elemstr][element].flags.
|
|
104
|
+
* If bits are 00b, then 'element' is a UTF-32LE codepoint.
|
|
105
|
+
* If bits are 01b, then 'element' is a string index.
|
|
106
|
+
* If bits are 10b (2), then 'element' is a uset index.
|
|
107
|
+
*
|
|
108
|
+
* `type = flags & elem_flags_type`
|
|
109
|
+
*/
|
|
110
|
+
readonly elem_flags_type = 12;
|
|
111
|
+
readonly elem_flags_type_char = 0;
|
|
112
|
+
readonly elem_flags_type_str = 1;
|
|
113
|
+
readonly elem_flags_type_uset = 2;
|
|
110
114
|
/**
|
|
111
115
|
* bitwise mask for order in elem[elemstr][element].flags.
|
|
112
116
|
*
|
|
@@ -383,6 +387,15 @@ declare class Constants {
|
|
|
383
387
|
* unicodeSet variable
|
|
384
388
|
*/
|
|
385
389
|
readonly vars_entry_type_unicodeSet = 2;
|
|
390
|
+
readonly length_uset = 16;
|
|
391
|
+
/**
|
|
392
|
+
* Length of each entry in the uset.usets subtable
|
|
393
|
+
*/
|
|
394
|
+
readonly length_uset_uset = 12;
|
|
395
|
+
/**
|
|
396
|
+
* Length of each entry in the uset.ranges subtable
|
|
397
|
+
*/
|
|
398
|
+
readonly length_uset_range = 8;
|
|
386
399
|
/**
|
|
387
400
|
* All section IDs.
|
|
388
401
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboardprocessor_ldml.d.ts","sourceRoot":"","sources":["../keyboardprocessor_ldml.ts"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAEtB,MAAM,GACN,MAAM,GACN,M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AEG;IACH,QAAQ,CAAC,qBAAqB,MAAM;IACpC;;OAEG;IACH,QAAQ,CAAC,mBAAmB,KAAK;IAEjC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,KAAU;IAEnC;;OAEG;IACH,QAAQ,CAAC,yBAAyB,KAAK;IACvC;;OAEG;IACH,QAAQ,CAAC,uBAAuB,KAAK;IAMrC;;OAEG;IACH,QAAQ,CAAC,WAAW,MAAM;IAC1B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,KAAK;IAM9B;;OAEG;IACH,QAAQ,CAAC,WAAW,MAAM;IAC1B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,MAAM;IAE/B;;OAEG;IACH,QAAQ,CAAC,sBAAsB,KAAK;IACpC;;OAEG;IACH,QAAQ,CAAC,mBAAmB,KAAK;IACjC;;OAEG;IACH,QAAQ,CAAC,0BAA0B,KAAK;IASxC,QAAQ,CAAC,WAAW,MAAM;IAE1B;;OAEG;IACH,QAAQ,CAAC,gBAAgB,MAAM;IAE/B;;OAEG;IACH,QAAQ,CAAC,iBAAiB,KAAK;IAE/B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,UAAU,CAiB1B;IAEF;;;;OAIG;IACH,cAAc,CAAC,EAAE,EAAC,MAAM;IAWxB;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAC,MAAM,GAAI,MAAM;CAQpC;AAED,eAAO,MAAM,SAAS,WAAkB,CAAC"}
|
|
@@ -90,14 +90,6 @@ var Constants = /** @class */ (function () {
|
|
|
90
90
|
* Length of each element in an elem string
|
|
91
91
|
*/
|
|
92
92
|
this.length_elem_item_element = 8;
|
|
93
|
-
/**
|
|
94
|
-
* bitwise or value for unicode_set in elem[elemstr][element].flags.
|
|
95
|
-
* If bit is 1, then 'element' is a UnicodeSet string.
|
|
96
|
-
* If bit is 0, then 'element' is a UTF-32LE codepoint
|
|
97
|
-
*
|
|
98
|
-
* `unicode_set = flags & elem_flags_unicode_set`
|
|
99
|
-
*/
|
|
100
|
-
this.elem_flags_unicode_set = 0x00000001;
|
|
101
93
|
/**
|
|
102
94
|
* bitwise or value for tertiary_base in elem[elemstr][element].flags.
|
|
103
95
|
* If bit is 1, then tertiary_base is true.
|
|
@@ -107,7 +99,7 @@ var Constants = /** @class */ (function () {
|
|
|
107
99
|
*
|
|
108
100
|
* `tertiary_base = flags & elem_flags_tertiary_base`
|
|
109
101
|
*/
|
|
110
|
-
this.elem_flags_tertiary_base =
|
|
102
|
+
this.elem_flags_tertiary_base = 0x00000001;
|
|
111
103
|
/**
|
|
112
104
|
* bitwise or value for tertiary_base in elem[elemstr][element].flags.
|
|
113
105
|
* If bit is 1, then prebase is true.
|
|
@@ -117,7 +109,19 @@ var Constants = /** @class */ (function () {
|
|
|
117
109
|
*
|
|
118
110
|
* `prebase = flags & elem_flags_prebase`
|
|
119
111
|
*/
|
|
120
|
-
this.elem_flags_prebase =
|
|
112
|
+
this.elem_flags_prebase = 0x00000002;
|
|
113
|
+
/**
|
|
114
|
+
* bitwise or value for type in elem[elemstr][element].flags.
|
|
115
|
+
* If bits are 00b, then 'element' is a UTF-32LE codepoint.
|
|
116
|
+
* If bits are 01b, then 'element' is a string index.
|
|
117
|
+
* If bits are 10b (2), then 'element' is a uset index.
|
|
118
|
+
*
|
|
119
|
+
* `type = flags & elem_flags_type`
|
|
120
|
+
*/
|
|
121
|
+
this.elem_flags_type = 0x0000000C;
|
|
122
|
+
this.elem_flags_type_char = 0x0;
|
|
123
|
+
this.elem_flags_type_str = 0x1;
|
|
124
|
+
this.elem_flags_type_uset = 0x2;
|
|
121
125
|
/**
|
|
122
126
|
* bitwise mask for order in elem[elemstr][element].flags.
|
|
123
127
|
*
|
|
@@ -151,8 +155,8 @@ var Constants = /** @class */ (function () {
|
|
|
151
155
|
*/
|
|
152
156
|
this.elem_flags_tertiary_bitshift = 24;
|
|
153
157
|
/* ------------------------------------------------------------------
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
* finl section
|
|
159
|
+
------------------------------------------------------------------ */
|
|
156
160
|
/**
|
|
157
161
|
* Minimum length of the 'finl' section, not including entries
|
|
158
162
|
*/
|
|
@@ -446,6 +450,21 @@ var Constants = /** @class */ (function () {
|
|
|
446
450
|
* unicodeSet variable
|
|
447
451
|
*/
|
|
448
452
|
this.vars_entry_type_unicodeSet = 2;
|
|
453
|
+
/* ------------------------------------------------------------------
|
|
454
|
+
* uset section
|
|
455
|
+
* ------------------------------------------------------------------ */
|
|
456
|
+
/*
|
|
457
|
+
* Minimum length of the 'uset' section not including variable parts
|
|
458
|
+
*/
|
|
459
|
+
this.length_uset = 16;
|
|
460
|
+
/**
|
|
461
|
+
* Length of each entry in the uset.usets subtable
|
|
462
|
+
*/
|
|
463
|
+
this.length_uset_uset = 12;
|
|
464
|
+
/**
|
|
465
|
+
* Length of each entry in the uset.ranges subtable
|
|
466
|
+
*/
|
|
467
|
+
this.length_uset_range = 8;
|
|
449
468
|
/**
|
|
450
469
|
* All section IDs.
|
|
451
470
|
*/
|
|
@@ -463,6 +482,7 @@ var Constants = /** @class */ (function () {
|
|
|
463
482
|
sect: 'sect',
|
|
464
483
|
strs: 'strs',
|
|
465
484
|
tran: 'tran',
|
|
485
|
+
uset: 'uset',
|
|
466
486
|
vars: 'vars',
|
|
467
487
|
vkey: 'vkey'
|
|
468
488
|
};
|
package/package.json
CHANGED