@keymanapp/kmc-model 18.0.16-alpha → 18.0.18-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.
@@ -1,191 +1,192 @@
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]="811eeb7c-3522-54db-9f17-b0d59157f237")}catch(e){}}();
2
- import { defaultApplyCasing, defaultCasedSearchTermToKey, defaultSearchTermToKey } from "./model-defaults.js";
3
- import KEYMAN_VERSION from "@keymanapp/keyman-version";
4
- /**
5
- * Processes certain defined model behaviors in such a way that the needed closures
6
- * may be safely compiled to a JS file and loaded within the LMLayer.
7
- *
8
- * This is accomplished by writing out a 'pseudoclosure' within the model's IIFE,
9
- * then used to build _actual_ closures at LMLayer load time. This 'pseudoclosure'
10
- * will very closely match the organizational patterns of this class in order to
11
- * facilitate the maintenance of this approach.
12
- */
13
- export class ModelDefinitions {
14
- static COMPILED_NAME = 'definitions';
15
- /**
16
- * A closure fully implementing the model's defined `applyCasing` behavior with
17
- * the function parameter preset to the version-appropriate default.
18
- * `defaults.applyCasing` is captured as part of the closure.
19
- *
20
- * During compilation of some models (such as Trie-based wordlist templated models),
21
- * this closure will be directly used as part of searchTermToKey.
22
- *
23
- * In compiled code, this will instead be defined in-line as an autogenerated closure
24
- * using the other properties of the pseudoclosure.
25
- */
26
- applyCasing;
27
- /**
28
- * A closure fully implementing the model's defined `searchTermToKey` behavior
29
- * based upon the model's specified casing rules. The `applyCasing` closure is
30
- * itself captured within this closure.
31
- *
32
- * During compilation of some models (such as Trie-based wordlist templated models),
33
- * this closure will be directly utilized when compiling the lexicon.
34
- *
35
- * In compiled code, this will instead be defined in-line as an autogenerated closure
36
- * using the other properties of the pseudoclosure.
37
- */
38
- searchTermToKey;
39
- /**
40
- * Contains embedded 'default' implementations that may be needed for
41
- * closures in the compiled version, annotated with the current version
42
- * of Developer.
43
- */
44
- defaults = {
45
- version: KEYMAN_VERSION.VERSION_WITH_TAG
46
- };
47
- /**
48
- * Contains the model-specific definitions specified in the model's source.
49
- *
50
- * These definitions may expect `defaults.applyCasing` as a parameter in
51
- * their final closures.
52
- */
53
- model = {};
54
- constructor(modelSource) {
55
- // Determine the model's `applyCasing` function / implementation.
56
- if (modelSource.languageUsesCasing) {
57
- this.defaults.applyCasing = defaultApplyCasing;
58
- if (modelSource.applyCasing) {
59
- this.model.applyCasing = modelSource.applyCasing;
60
- let _this = this;
61
- // Since the defined casing function may expect to take our default implementation
62
- // as a parameter, we can define the full implementation via closure capture.
63
- this.applyCasing = function (casing, text) {
64
- return _this.model.applyCasing(casing, text, _this.defaults.applyCasing);
65
- };
66
- }
67
- else {
68
- this.applyCasing = this.defaults.applyCasing;
69
- }
70
- }
71
- // START: if(model type uses keying)...
72
- // Use the default search term to key function, if left unspecified.
73
- if (modelSource.searchTermToKey) {
74
- this.model.searchTermToKey = modelSource.searchTermToKey;
75
- }
76
- else if (modelSource.languageUsesCasing) {
77
- // applyCasing is defined here.
78
- // Unfortunately, this only works conceptually. .toString on a closure
79
- // does not result in proper compilation.
80
- this.model.searchTermToKey = defaultCasedSearchTermToKey;
81
- }
82
- else if (modelSource.languageUsesCasing == false) {
83
- this.model.searchTermToKey = defaultSearchTermToKey;
84
- }
85
- else {
86
- // If languageUsesCasing is not defined, then we use pre-14.0 behavior,
87
- // which expects a lowercased default.
88
- this.model.searchTermToKey = defaultCasedSearchTermToKey;
89
- // Needed to provide pre-14.0 default lowercasing as part of the
90
- // search-term keying operation.
91
- this.defaults.applyCasing = defaultApplyCasing;
92
- // For compile-time use.
93
- this.applyCasing = this.defaults.applyCasing;
94
- }
95
- let _this = this;
96
- this.searchTermToKey = function (text) {
97
- return _this.model.searchTermToKey(text, _this.applyCasing);
98
- };
99
- // END: if(model type uses keying)...
100
- }
101
- // ------------ end: common compile-time / run-time code ---------------
102
- // START: handwritten compilation code (to accomplish the 'common' pattern defined above)
103
- /**
104
- * Writes out a compiled JS version of the pseudoclosure, preserving all function
105
- * implementations.
106
- *
107
- * This should be written to the file within the same IIFE as the model but BEFORE
108
- * the model itself, as the model will need to refer to the definitions herein.
109
- */
110
- compileDefinitions() {
111
- let defn = '';
112
- defn += `var ${PSEUDOCLOSURE} = {\n`;
113
- // ----------------------
114
- // START - the 'defaults', which are common within the same Developer version.
115
- defn += ` defaults: {\n version: "${this.defaults.version}"`;
116
- // Only write out `applyCasing` if and when it is needed.
117
- if (this.defaults.applyCasing) {
118
- defn += `,\n applyCasing: ${this.defaults.applyCasing.toString()}`;
119
- }
120
- // Finalizes `defaults`
121
- defn += `\n },`;
122
- // END - the 'defaults'
123
- // ----------------------
124
- // START - model-specific definitions (when defined)
125
- defn += ` model: {\n`;
126
- defn += ` searchTermToKey: ${this.model.searchTermToKey.toString()}`;
127
- if (this.model.applyCasing) {
128
- defn += `,\n applyCasing: ${this.model.applyCasing.toString()}`;
129
- }
130
- defn += `\n }`;
131
- // END - model-specific definitions
132
- // ----------------------
133
- // START - compiled closures. Given those definitions, write out the
134
- // pseudoclosure-referencing closures for the needed methods.
135
- // We should be able to define these closures in-line with the object's
136
- // initialization. Worst-case, we simply move the definitions outside
137
- // of the pseudoclosure's init and THEN define/assign these closures to
138
- // the object, as references will be available then for sure.
139
- if (this.model.applyCasing) {
140
- // A major potential issue: if the user wants to call extra custom functions that they've written.
141
- //
142
- // `applyCasing` recursion SHOULD be fine if they write `this.applyCasing() and forward all arguments
143
- // appropriately, as it will be known as `applyCasing` on the runtime `this` (`model`) object.
144
- //
145
- // Similarly, as long as any helper functions are similarly compiled and stored as part of `model`,
146
- // they should be accessible too. The issue would be to actually allow use of extra custom funcs
147
- // and include them as part of this object as part of compilation.
148
- defn += `,\n applyCasing: function(caseToApply, text) {
149
- return ${PSEUDOCLOSURE}.model.applyCasing(caseToApply, text, ${PSEUDOCLOSURE}.defaults.applyCasing);
150
- }`;
151
- }
152
- else if (this.defaults.applyCasing) {
153
- // We can't directly assign from `.defaults`, as initialization-time field reads
154
- // are not permitted within JS. Function references, however, are valid.
155
- defn += `,\n applyCasing: function(caseToApply, text) {
156
- return ${PSEUDOCLOSURE}.defaults.applyCasing(caseToApply, text);
157
- }`;
158
- }
159
- // if(this.searchTermToKey) {
160
- defn += `,\n searchTermToKey: function(text) {
161
- return ${PSEUDOCLOSURE}.model.searchTermToKey(text, ${PSEUDOCLOSURE}.applyCasing);
162
- }`;
163
- // }
164
- // END - compiled closures.
165
- // ----------------------
166
- // Finalize the definition of... `definitions`.
167
- defn += `\n};\n`;
168
- return defn;
169
- }
170
- /**
171
- * Compiles the model-options entry for `searchTermToKey` in reference to the
172
- * compiled pseudoclosure.
173
- */
174
- compileSearchTermToKey() {
175
- // Simply point the model to the constructed closure defined by `compilePseudoclosure`.
176
- // See "START - compiled closures" section.
177
- return `${PSEUDOCLOSURE}.searchTermToKey`;
178
- }
179
- /**
180
- * Compiles the model-options entry for `applyCasing` in reference to the
181
- * compiled pseudoclosure.
182
- */
183
- compileApplyCasing() {
184
- // See "START - compiled closures" section.
185
- return `${PSEUDOCLOSURE}.applyCasing`;
186
- }
187
- }
188
- // Because it references the class field, this line must come afterward.
189
- const PSEUDOCLOSURE = ModelDefinitions.COMPILED_NAME;
190
- //# debugId=811eeb7c-3522-54db-9f17-b0d59157f237
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]="ddbdc2b4-74b6-5ca8-aa59-bac5b7282649")}catch(e){}}();
3
+ import { defaultApplyCasing, defaultCasedSearchTermToKey, defaultSearchTermToKey } from "./model-defaults.js";
4
+ import KEYMAN_VERSION from "@keymanapp/keyman-version";
5
+ /**
6
+ * Processes certain defined model behaviors in such a way that the needed closures
7
+ * may be safely compiled to a JS file and loaded within the LMLayer.
8
+ *
9
+ * This is accomplished by writing out a 'pseudoclosure' within the model's IIFE,
10
+ * then used to build _actual_ closures at LMLayer load time. This 'pseudoclosure'
11
+ * will very closely match the organizational patterns of this class in order to
12
+ * facilitate the maintenance of this approach.
13
+ */
14
+ export class ModelDefinitions {
15
+ static COMPILED_NAME = 'definitions';
16
+ /**
17
+ * A closure fully implementing the model's defined `applyCasing` behavior with
18
+ * the function parameter preset to the version-appropriate default.
19
+ * `defaults.applyCasing` is captured as part of the closure.
20
+ *
21
+ * During compilation of some models (such as Trie-based wordlist templated models),
22
+ * this closure will be directly used as part of searchTermToKey.
23
+ *
24
+ * In compiled code, this will instead be defined in-line as an autogenerated closure
25
+ * using the other properties of the pseudoclosure.
26
+ */
27
+ applyCasing;
28
+ /**
29
+ * A closure fully implementing the model's defined `searchTermToKey` behavior
30
+ * based upon the model's specified casing rules. The `applyCasing` closure is
31
+ * itself captured within this closure.
32
+ *
33
+ * During compilation of some models (such as Trie-based wordlist templated models),
34
+ * this closure will be directly utilized when compiling the lexicon.
35
+ *
36
+ * In compiled code, this will instead be defined in-line as an autogenerated closure
37
+ * using the other properties of the pseudoclosure.
38
+ */
39
+ searchTermToKey;
40
+ /**
41
+ * Contains embedded 'default' implementations that may be needed for
42
+ * closures in the compiled version, annotated with the current version
43
+ * of Developer.
44
+ */
45
+ defaults = {
46
+ version: KEYMAN_VERSION.VERSION_WITH_TAG
47
+ };
48
+ /**
49
+ * Contains the model-specific definitions specified in the model's source.
50
+ *
51
+ * These definitions may expect `defaults.applyCasing` as a parameter in
52
+ * their final closures.
53
+ */
54
+ model = {};
55
+ constructor(modelSource) {
56
+ // Determine the model's `applyCasing` function / implementation.
57
+ if (modelSource.languageUsesCasing) {
58
+ this.defaults.applyCasing = defaultApplyCasing;
59
+ if (modelSource.applyCasing) {
60
+ this.model.applyCasing = modelSource.applyCasing;
61
+ let _this = this;
62
+ // Since the defined casing function may expect to take our default implementation
63
+ // as a parameter, we can define the full implementation via closure capture.
64
+ this.applyCasing = function (casing, text) {
65
+ return _this.model.applyCasing(casing, text, _this.defaults.applyCasing);
66
+ };
67
+ }
68
+ else {
69
+ this.applyCasing = this.defaults.applyCasing;
70
+ }
71
+ }
72
+ // START: if(model type uses keying)...
73
+ // Use the default search term to key function, if left unspecified.
74
+ if (modelSource.searchTermToKey) {
75
+ this.model.searchTermToKey = modelSource.searchTermToKey;
76
+ }
77
+ else if (modelSource.languageUsesCasing) {
78
+ // applyCasing is defined here.
79
+ // Unfortunately, this only works conceptually. .toString on a closure
80
+ // does not result in proper compilation.
81
+ this.model.searchTermToKey = defaultCasedSearchTermToKey;
82
+ }
83
+ else if (modelSource.languageUsesCasing == false) {
84
+ this.model.searchTermToKey = defaultSearchTermToKey;
85
+ }
86
+ else {
87
+ // If languageUsesCasing is not defined, then we use pre-14.0 behavior,
88
+ // which expects a lowercased default.
89
+ this.model.searchTermToKey = defaultCasedSearchTermToKey;
90
+ // Needed to provide pre-14.0 default lowercasing as part of the
91
+ // search-term keying operation.
92
+ this.defaults.applyCasing = defaultApplyCasing;
93
+ // For compile-time use.
94
+ this.applyCasing = this.defaults.applyCasing;
95
+ }
96
+ let _this = this;
97
+ this.searchTermToKey = function (text) {
98
+ return _this.model.searchTermToKey(text, _this.applyCasing);
99
+ };
100
+ // END: if(model type uses keying)...
101
+ }
102
+ // ------------ end: common compile-time / run-time code ---------------
103
+ // START: handwritten compilation code (to accomplish the 'common' pattern defined above)
104
+ /**
105
+ * Writes out a compiled JS version of the pseudoclosure, preserving all function
106
+ * implementations.
107
+ *
108
+ * This should be written to the file within the same IIFE as the model but BEFORE
109
+ * the model itself, as the model will need to refer to the definitions herein.
110
+ */
111
+ compileDefinitions() {
112
+ let defn = '';
113
+ defn += `var ${PSEUDOCLOSURE} = {\n`;
114
+ // ----------------------
115
+ // START - the 'defaults', which are common within the same Developer version.
116
+ defn += ` defaults: {\n version: "${this.defaults.version}"`;
117
+ // Only write out `applyCasing` if and when it is needed.
118
+ if (this.defaults.applyCasing) {
119
+ defn += `,\n applyCasing: ${this.defaults.applyCasing.toString()}`;
120
+ }
121
+ // Finalizes `defaults`
122
+ defn += `\n },`;
123
+ // END - the 'defaults'
124
+ // ----------------------
125
+ // START - model-specific definitions (when defined)
126
+ defn += ` model: {\n`;
127
+ defn += ` searchTermToKey: ${this.model.searchTermToKey.toString()}`;
128
+ if (this.model.applyCasing) {
129
+ defn += `,\n applyCasing: ${this.model.applyCasing.toString()}`;
130
+ }
131
+ defn += `\n }`;
132
+ // END - model-specific definitions
133
+ // ----------------------
134
+ // START - compiled closures. Given those definitions, write out the
135
+ // pseudoclosure-referencing closures for the needed methods.
136
+ // We should be able to define these closures in-line with the object's
137
+ // initialization. Worst-case, we simply move the definitions outside
138
+ // of the pseudoclosure's init and THEN define/assign these closures to
139
+ // the object, as references will be available then for sure.
140
+ if (this.model.applyCasing) {
141
+ // A major potential issue: if the user wants to call extra custom functions that they've written.
142
+ //
143
+ // `applyCasing` recursion SHOULD be fine if they write `this.applyCasing() and forward all arguments
144
+ // appropriately, as it will be known as `applyCasing` on the runtime `this` (`model`) object.
145
+ //
146
+ // Similarly, as long as any helper functions are similarly compiled and stored as part of `model`,
147
+ // they should be accessible too. The issue would be to actually allow use of extra custom funcs
148
+ // and include them as part of this object as part of compilation.
149
+ defn += `,\n applyCasing: function(caseToApply, text) {
150
+ return ${PSEUDOCLOSURE}.model.applyCasing(caseToApply, text, ${PSEUDOCLOSURE}.defaults.applyCasing);
151
+ }`;
152
+ }
153
+ else if (this.defaults.applyCasing) {
154
+ // We can't directly assign from `.defaults`, as initialization-time field reads
155
+ // are not permitted within JS. Function references, however, are valid.
156
+ defn += `,\n applyCasing: function(caseToApply, text) {
157
+ return ${PSEUDOCLOSURE}.defaults.applyCasing(caseToApply, text);
158
+ }`;
159
+ }
160
+ // if(this.searchTermToKey) {
161
+ defn += `,\n searchTermToKey: function(text) {
162
+ return ${PSEUDOCLOSURE}.model.searchTermToKey(text, ${PSEUDOCLOSURE}.applyCasing);
163
+ }`;
164
+ // }
165
+ // END - compiled closures.
166
+ // ----------------------
167
+ // Finalize the definition of... `definitions`.
168
+ defn += `\n};\n`;
169
+ return defn;
170
+ }
171
+ /**
172
+ * Compiles the model-options entry for `searchTermToKey` in reference to the
173
+ * compiled pseudoclosure.
174
+ */
175
+ compileSearchTermToKey() {
176
+ // Simply point the model to the constructed closure defined by `compilePseudoclosure`.
177
+ // See "START - compiled closures" section.
178
+ return `${PSEUDOCLOSURE}.searchTermToKey`;
179
+ }
180
+ /**
181
+ * Compiles the model-options entry for `applyCasing` in reference to the
182
+ * compiled pseudoclosure.
183
+ */
184
+ compileApplyCasing() {
185
+ // See "START - compiled closures" section.
186
+ return `${PSEUDOCLOSURE}.applyCasing`;
187
+ }
188
+ }
189
+ // Because it references the class field, this line must come afterward.
190
+ const PSEUDOCLOSURE = ModelDefinitions.COMPILED_NAME;
191
191
  //# sourceMappingURL=model-definitions.js.map
192
+ //# debugId=ddbdc2b4-74b6-5ca8-aa59-bac5b7282649
@@ -1 +1 @@
1
- {"debug_id":"811eeb7c-3522-54db-9f17-b0d59157f237","file":"model-definitions.js","mappings":";AAAA,OAAO,EAAE,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAEpC,OAAO,cAAc,MAAM,2BAA2B,CAAC;AAGvD;;;;;;;;GAQG;AACH,MAAM,OAAO,gBAAgB;IAC3B,MAAM,CAAU,aAAa,GAAG,aAAa,CAAC;IAC9C;;;;;;;;;;OAUG;IACH,WAAW,CAAkB;IAE7B;;;;;;;;;;OAUG;IACH,eAAe,CAAqB;IAEpC;;;;OAIG;IACK,QAAQ,GAGZ;QACF,OAAO,EAAE,cAAc,CAAC,gBAAgB;KACzC,CAAC;IAEF;;;;;OAKG;IACK,KAAK,GAGT,EAAE,CAAC;IAEP,YAAY,WAA+B;QACzC,iEAAiE;QACjE,IAAG,WAAW,CAAC,kBAAkB,EAAE;YACjC,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAG,kBAAk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;SACJ;aAAM,IAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YACnC,gFAAgF;YAChF,yEAAyE;YACzE,IAAI,IAAI;iBACG,aAAa;QACtB,CAAC;SACJ;QAED,6BAA6B;QAC7B,IAAI,IAAI;eACG,aAAa,gCAAgC,aAAa;MACnE,CAAC;QACH,IAAI;QAEJ,2BAA2B;QAE3B,yBAAyB;QACzB,+CAA+C;QAC/C,IAAI,IAAI,QAAQ,CAAC;QAEjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,sBAAsB;QACpB,uFAAuF;QACvF,2CAA2C;QAC3C,OAAO,GAAG,aAAa,kBAAkB,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,2CAA2C;QAC3C,OAAO,GAAG,aAAa,cAAc,CAAC;IACxC,CAAC;;AAGH,wEAAwE;AACxE,MAAM,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC","names":[],"sourceRoot":"","sources":["../../src/model-definitions.ts"],"version":3}
1
+ {"version":3,"file":"model-definitions.js","sources":["../../src/model-definitions.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,EAAE,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAEpC,OAAO,cAAc,MAAM,2BAA2B,CAAC;AAGvD;;;;;;;;GAQG;AACH,MAAM,OAAO,gBAAgB;IAC3B,MAAM,CAAU,aAAa,GAAG,aAAa,CAAC;IAC9C;;;;;;;;;;OAUG;IACH,WAAW,CAAkB;IAE7B;;;;;;;;;;OAUG;IACH,eAAe,CAAqB;IAEpC;;;;OAIG;IACK,QAAQ,GAGZ;QACF,OAAO,EAAE,cAAc,CAAC,gBAAgB;KACzC,CAAC;IAEF;;;;;OAKG;IACK,KAAK,GAGT,EAAE,CAAC;IAEP,YAAY,WAA+B;QACzC,iEAAiE;QACjE,IAAG,WAAW,CAAC,kBAAkB,EAAE;YACjC,IAAI,CAAC,Q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Aa,yCAAyC,aAAa;QAC5E,CAAC;SACJ;aAAM,IAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YACnC,gFAAgF;YAChF,yEAAyE;YACzE,IAAI,IAAI;iBACG,aAAa;QACtB,CAAC;SACJ;QAED,6BAA6B;QAC7B,IAAI,IAAI;eACG,aAAa,gCAAgC,aAAa;MACnE,CAAC;QACH,IAAI;QAEJ,2BAA2B;QAE3B,yBAAyB;QACzB,+CAA+C;QAC/C,IAAI,IAAI,QAAQ,CAAC;QAEjB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,sBAAsB;QACpB,uFAAuF;QACvF,2CAA2C;QAC3C,OAAO,GAAG,aAAa,kBAAkB,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,2CAA2C;QAC3C,OAAO,GAAG,aAAa,cAAc,CAAC;IACxC,CAAC;;AAGH,wEAAwE;AACxE,MAAM,aAAa,GAAG,gBAAgB,CAAC,aAAa,CAAC","debug_id":"ddbdc2b4-74b6-5ca8-aa59-bac5b7282649"}
@@ -1,66 +1,67 @@
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]="3ac8b99c-37d8-5603-bf34-f0caa01fc7a3")}catch(e){}}();
2
- import { ModelCompilerError, ModelCompilerMessages } from "./model-compiler-messages.js";
3
- export function decorateWithScriptOverrides(breaker, option) {
4
- if (option !== 'break-words-at-spaces') {
5
- throw new ModelCompilerError(ModelCompilerMessages.Error_UnsupportedScriptOverride({ option }));
6
- }
7
- /**
8
- * Matches if when a span contains a Southeast-Asian letter or mark anywhere.
9
- * This makes it a candidate for joining.
10
- *
11
- * See: tools/create-override-script-regexp.ts for how this RegExp was
12
- * generated.
13
- *
14
- * Last updated for Unicode 13.0.0.
15
- */
16
- const HAS_SOUTHEAST_ASIAN_LETTER = /[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0EDC-\u0EDF\u1000-\u103F\u1050-\u108F\u109A-\u109D\u1780-\u17D3\u17D7\u17DC\u17DD\u30A1-\u30FA\u30FC-\u30FF]/;
17
- return function enhancedBreaker(phrase) {
18
- let originalSpans = breaker(phrase);
19
- if (originalSpans.length === 0) {
20
- return [];
21
- }
22
- let outputSpans = [originalSpans.shift()];
23
- for (let currentSpan of originalSpans) {
24
- let previousSpan = lastFrom(outputSpans);
25
- if (spansAreBackToBack(previousSpan, currentSpan) &&
26
- hasSouthEastAsianLetter(previousSpan) &&
27
- hasSouthEastAsianLetter(currentSpan)) {
28
- // previous span SHOULD be joined with current!
29
- outputSpans[outputSpans.length - 1] = concatenateSpans(previousSpan, currentSpan);
30
- }
31
- else {
32
- outputSpans.push(currentSpan);
33
- }
34
- }
35
- return outputSpans;
36
- };
37
- function hasSouthEastAsianLetter(span) {
38
- return HAS_SOUTHEAST_ASIAN_LETTER.test(span.text);
39
- }
40
- /**
41
- * Returns true when the spans are contiguous.
42
- * Order matters when calling this function!
43
- */
44
- function spansAreBackToBack(former, latter) {
45
- return former.end === latter.start;
46
- }
47
- function concatenateSpans(former, latter) {
48
- if (latter.start !== former.end) {
49
- throw new Error(`Cannot concatenate non-contiguous spans: ${JSON.stringify(former)}/${JSON.stringify(latter)}`);
50
- }
51
- return {
52
- start: former.start,
53
- end: latter.end,
54
- length: former.length + latter.length,
55
- text: former.text + latter.text
56
- };
57
- }
58
- /**
59
- * Get the last element from the array.
60
- */
61
- function lastFrom(array) {
62
- return array[array.length - 1];
63
- }
64
- }
65
- //# debugId=3ac8b99c-37d8-5603-bf34-f0caa01fc7a3
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]="203a16c4-c37f-5838-9b83-0ba6516a3aea")}catch(e){}}();
3
+ import { ModelCompilerError, ModelCompilerMessages } from "./model-compiler-messages.js";
4
+ export function decorateWithScriptOverrides(breaker, option) {
5
+ if (option !== 'break-words-at-spaces') {
6
+ throw new ModelCompilerError(ModelCompilerMessages.Error_UnsupportedScriptOverride({ option }));
7
+ }
8
+ /**
9
+ * Matches if when a span contains a Southeast-Asian letter or mark anywhere.
10
+ * This makes it a candidate for joining.
11
+ *
12
+ * See: tools/create-override-script-regexp.ts for how this RegExp was
13
+ * generated.
14
+ *
15
+ * Last updated for Unicode 13.0.0.
16
+ */
17
+ const HAS_SOUTHEAST_ASIAN_LETTER = /[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0EDC-\u0EDF\u1000-\u103F\u1050-\u108F\u109A-\u109D\u1780-\u17D3\u17D7\u17DC\u17DD\u30A1-\u30FA\u30FC-\u30FF]/;
18
+ return function enhancedBreaker(phrase) {
19
+ let originalSpans = breaker(phrase);
20
+ if (originalSpans.length === 0) {
21
+ return [];
22
+ }
23
+ let outputSpans = [originalSpans.shift()];
24
+ for (let currentSpan of originalSpans) {
25
+ let previousSpan = lastFrom(outputSpans);
26
+ if (spansAreBackToBack(previousSpan, currentSpan) &&
27
+ hasSouthEastAsianLetter(previousSpan) &&
28
+ hasSouthEastAsianLetter(currentSpan)) {
29
+ // previous span SHOULD be joined with current!
30
+ outputSpans[outputSpans.length - 1] = concatenateSpans(previousSpan, currentSpan);
31
+ }
32
+ else {
33
+ outputSpans.push(currentSpan);
34
+ }
35
+ }
36
+ return outputSpans;
37
+ };
38
+ function hasSouthEastAsianLetter(span) {
39
+ return HAS_SOUTHEAST_ASIAN_LETTER.test(span.text);
40
+ }
41
+ /**
42
+ * Returns true when the spans are contiguous.
43
+ * Order matters when calling this function!
44
+ */
45
+ function spansAreBackToBack(former, latter) {
46
+ return former.end === latter.start;
47
+ }
48
+ function concatenateSpans(former, latter) {
49
+ if (latter.start !== former.end) {
50
+ throw new Error(`Cannot concatenate non-contiguous spans: ${JSON.stringify(former)}/${JSON.stringify(latter)}`);
51
+ }
52
+ return {
53
+ start: former.start,
54
+ end: latter.end,
55
+ length: former.length + latter.length,
56
+ text: former.text + latter.text
57
+ };
58
+ }
59
+ /**
60
+ * Get the last element from the array.
61
+ */
62
+ function lastFrom(array) {
63
+ return array[array.length - 1];
64
+ }
65
+ }
66
66
  //# sourceMappingURL=script-overrides-decorator.js.map
67
+ //# debugId=203a16c4-c37f-5838-9b83-0ba6516a3aea
@@ -1 +1 @@
1
- {"debug_id":"3ac8b99c-37d8-5603-bf34-f0caa01fc7a3","file":"script-overrides-decorator.js","mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEzF,MAAM,UAAU,2BAA2B,CAAC,OAA6B,EAAE,MAA8B;IACvG,IAAI,MAAM,KAAK,uBAAuB,EAAE;QACtC,MAAM,IAAI,kBAAkB,CAAC,qBAAqB,CAAC,+BAA+B,CAAC,EAAC,MAAM,EAAC,CAAC,CAAC,CAAC;KAC/F;IAED;;;;;;;;OAQG;IACH,MAAM,0BAA0B,GAAG,0OAA0O,CAAC;IAE9Q,OAAO,SAAS,eAAe,CAAC,MAAc;QAC5C,IAAI,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAEpC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;YAC9B,OAAO,EAAE,CAAC;SACX;QAED,IAAI,WAAW,GAAG,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1C,KAAK,IAAI,WAAW,IAAI,aAAa,EAAE;YACrC,IAAI,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;YAEzC,IAAI,kBA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"version":3}
1
+ {"version":3,"file":"script-overrides-decorator.js","sources":["../../src/script-overrides-decorator.ts"],"sourceRoot":"","names":[],"mappings":";;AACA,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEzF,MAAM,UAAU,2BAA2B,CAAC,OAA6B,EAAE,MAA8B;IACvG,IAAI,MAAM,KAAK,uBAAuB,EAAE;QACtC,MAAM,IAAI,kBAAkB,CAAC,qBAAqB,CAAC,+BAA+B,CAAC,EAAC,MAAM,EAAC,CAAC,CAAC,CAAC;KAC/F;IAED;;;;;;;;OAQG;IACH,MAAM,0BAA0B,GAAG,0OAA0O,CAAC;IAE9Q,OAAO,SAAS,eAAe,CAAC,MAAc;QAC5C,IAAI,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAEpC,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE;YAC9B,OAAO,EAAE,CAAC;SACX;QAED,IAAI,WAAW,GAAG,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;QAC1C,KAAK,IAAI,WAAW,IAAI,aAAa,EAAE;YACrC,IAAI,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;YAEzC,IAAI,kBAAkB,CAAC,YAAY,EAAE,WAAW,CAAC;gBAC7C,uBAAuB,CAAC,YAAY,CAAC;gBACrC,uBAAuB,CAAC,WAAW,CAAC,EACtC;gBACA,+CAA+C;gBAC/C,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;aACnF;iBAAM;gBACL,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAC/B;SACF;QAED,OAAO,WAAW,CAAC;IACrB,CAAC,CAAA;IAED,SAAS,uBAAuB,CAAC,IAAU;QACzC,OAAO,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IAED;;;OAGG;IACH,SAAS,kBAAkB,CAAC,MAAY,EAAE,MAAY;QACpD,OAAO,MAAM,CAAC,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC;IACrC,CAAC;IAED,SAAS,gBAAgB,CAAC,MAAY,EAAE,MAAY;QAClD,IAAI,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,GAAG,EAAE;YAC/B,MAAM,IAAI,KAAK,CAAC,4CAA4C,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SACjH;QAED,OAAO;YACL,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,MAAM,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM;YACrC,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI;SAChC,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,SAAS,QAAQ,CAAI,KAAU;QAC7B,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjC,CAAC;AACH,CAAC","debug_id":"203a16c4-c37f-5838-9b83-0ba6516a3aea"}
package/package.json CHANGED
@@ -30,13 +30,14 @@
30
30
  "url": "https://github.com/keymanapp/keyman/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@keymanapp/common-types": "18.0.16-alpha",
34
- "@keymanapp/keyman-version": "18.0.16-alpha",
35
- "@keymanapp/models-types": "18.0.16-alpha",
33
+ "@keymanapp/common-types": "18.0.18-alpha",
34
+ "@keymanapp/keyman-version": "18.0.18-alpha",
35
+ "@keymanapp/models-types": "18.0.18-alpha",
36
36
  "typescript": "^4.9.5"
37
37
  },
38
38
  "devDependencies": {
39
- "@keymanapp/developer-test-helpers": "18.0.16-alpha",
39
+ "@keymanapp/developer-test-helpers": "18.0.18-alpha",
40
+ "@keymanapp/models-templates": "18.0.18-alpha",
40
41
  "@types/chai": "^4.1.7",
41
42
  "@types/mocha": "^5.2.7",
42
43
  "@types/node": "^20.4.1",
@@ -69,5 +70,5 @@
69
70
  "type": "git",
70
71
  "url": "git+https://github.com/keymanapp/keyman.git"
71
72
  },
72
- "version": "18.0.16-alpha"
73
+ "version": "18.0.18-alpha"
73
74
  }