@keymanapp/kmc-ldml 17.0.236-alpha → 17.0.238-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,5 +1,5 @@
|
|
|
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]="
|
|
2
|
-
import { LDMLKeyboard, KMXPlus, CompilerCallbacks, LDMLKeyboardTestDataXMLSourceFile, UnicodeSetParser } from '@keymanapp/common-types';
|
|
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]="748696f3-4961-5ab4-a508-8db167afcaa1")}catch(e){}}();
|
|
2
|
+
import { LDMLKeyboard, KMXPlus, CompilerCallbacks, LDMLKeyboardTestDataXMLSourceFile, UnicodeSetParser, KeymanCompiler, KeymanCompilerResult, KeymanCompilerArtifacts, KeymanCompilerArtifactOptional } from '@keymanapp/common-types';
|
|
3
3
|
import { LdmlCompilerOptions } from './ldml-compiler-options.js';
|
|
4
4
|
import { BkspCompiler, TranCompiler } from './tran.js';
|
|
5
5
|
import { DispCompiler } from './disp.js';
|
|
@@ -11,11 +11,21 @@ import { VarsCompiler } from './vars.js';
|
|
|
11
11
|
import { StrsCompiler } from './empty-compiler.js';
|
|
12
12
|
import LDMLKeyboardXMLSourceFile = LDMLKeyboard.LDMLKeyboardXMLSourceFile;
|
|
13
13
|
export declare const SECTION_COMPILERS: (typeof TranCompiler | typeof BkspCompiler | typeof DispCompiler | typeof KeysCompiler | typeof LayrCompiler | typeof LocaCompiler | typeof MetaCompiler | typeof VarsCompiler | typeof StrsCompiler)[];
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
export interface LdmlKeyboardCompilerArtifacts extends KeymanCompilerArtifacts {
|
|
15
|
+
kmx?: KeymanCompilerArtifactOptional;
|
|
16
|
+
kvk?: KeymanCompilerArtifactOptional;
|
|
17
|
+
js?: KeymanCompilerArtifactOptional;
|
|
18
|
+
}
|
|
19
|
+
export interface LdmlKeyboardCompilerResult extends KeymanCompilerResult {
|
|
20
|
+
artifacts: LdmlKeyboardCompilerArtifacts;
|
|
21
|
+
}
|
|
22
|
+
export declare class LdmlKeyboardCompiler implements KeymanCompiler {
|
|
23
|
+
private callbacks;
|
|
24
|
+
private options;
|
|
17
25
|
private usetparser?;
|
|
18
|
-
|
|
26
|
+
init(callbacks: CompilerCallbacks, options: LdmlCompilerOptions): Promise<boolean>;
|
|
27
|
+
run(inputFilename: string, outputFilename?: string): Promise<LdmlKeyboardCompilerResult>;
|
|
28
|
+
write(artifacts: LdmlKeyboardCompilerArtifacts): Promise<boolean>;
|
|
19
29
|
/**
|
|
20
30
|
* Construct or return a UnicodeSetParser, aka KmnCompiler
|
|
21
31
|
* @returns the held UnicodeSetParser
|
|
@@ -51,5 +61,5 @@ export declare class LdmlKeyboardCompiler {
|
|
|
51
61
|
*/
|
|
52
62
|
compile(source: LDMLKeyboardXMLSourceFile, postValidate?: boolean): Promise<KMXPlus.KMXPlusFile>;
|
|
53
63
|
}
|
|
54
|
-
//# debugId=
|
|
64
|
+
//# debugId=748696f3-4961-5ab4-a508-8db167afcaa1
|
|
55
65
|
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"748696f3-4961-5ab4-a508-8db167afcaa1","file":"compiler.d.ts","mappings":";AAAA,OAAO,EAAmC,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,gBAAgB,EAAE,cAAc,EAAE,oBAAoB,EAAE,uBAAuB,EAAqD,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAC3T,OAAO,EAAE,mBAAmB,EAAE,MA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AO,CAAC,aAAa;IAIrB;;;;;OAKG;IACI,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,yBAAyB,GAAG,IAAI;IA2B/D;;;;;OAKG;IACM,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,iCAAiC,GAAG,IAAI;IA4BjF;;;;;OAKG;IACU,QAAQ,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI1E;;;;;OAKG;IACU,OAAO,CAAC,MAAM,EAAE,yBAAyB,EAAE,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;CAwE9G","names":[],"sourceRoot":"","sources":["../../../src/compiler/compiler.ts"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
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]="
|
|
2
|
-
import { LDMLKeyboardXMLSourceFileReader, KMXPlus } from '@keymanapp/common-types';
|
|
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]="f74e7926-f874-5e7f-9c6e-b0892e15395a")}catch(e){}}();
|
|
2
|
+
import { LDMLKeyboardXMLSourceFileReader, KMXPlus, defaultCompilerOptions, KMXBuilder, KvkFileWriter } from '@keymanapp/common-types';
|
|
3
3
|
import { CompilerMessages } from './messages.js';
|
|
4
4
|
import { BkspCompiler, TranCompiler } from './tran.js';
|
|
5
5
|
import { DispCompiler } from './disp.js';
|
|
@@ -12,6 +12,9 @@ import { StrsCompiler, ElemCompiler, ListCompiler, UsetCompiler } from './empty-
|
|
|
12
12
|
var KMXPlusFile = KMXPlus.KMXPlusFile;
|
|
13
13
|
import { constants } from '@keymanapp/ldml-keyboard-constants';
|
|
14
14
|
import { KmnCompiler } from '@keymanapp/kmc-kmn';
|
|
15
|
+
import { KMXPlusMetadataCompiler } from './metadata-compiler.js';
|
|
16
|
+
import { LdmlKeyboardVisualKeyboardCompiler } from './visual-keyboard-compiler.js';
|
|
17
|
+
import { LdmlKeyboardKeymanWebCompiler } from './keymanweb-compiler.js';
|
|
15
18
|
export const SECTION_COMPILERS = [
|
|
16
19
|
// These are in dependency order.
|
|
17
20
|
// First the former 'global' sections
|
|
@@ -30,16 +33,70 @@ export const SECTION_COMPILERS = [
|
|
|
30
33
|
MetaCompiler,
|
|
31
34
|
TranCompiler,
|
|
32
35
|
];
|
|
36
|
+
;
|
|
37
|
+
;
|
|
33
38
|
export class LdmlKeyboardCompiler {
|
|
34
39
|
callbacks;
|
|
35
40
|
options;
|
|
36
41
|
// uset parser
|
|
37
42
|
usetparser = undefined;
|
|
38
|
-
|
|
39
|
-
this.options = {
|
|
40
|
-
...options
|
|
41
|
-
};
|
|
43
|
+
async init(callbacks, options) {
|
|
44
|
+
this.options = { ...options };
|
|
42
45
|
this.callbacks = callbacks;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
async run(inputFilename, outputFilename) {
|
|
49
|
+
let compilerOptions = {
|
|
50
|
+
...defaultCompilerOptions,
|
|
51
|
+
...this.options,
|
|
52
|
+
};
|
|
53
|
+
let source = this.load(inputFilename);
|
|
54
|
+
if (!source) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
let kmx = await this.compile(source);
|
|
58
|
+
if (!kmx) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
// In order for the KMX file to be loaded by non-KMXPlus components, it is helpful
|
|
62
|
+
// to duplicate some of the metadata
|
|
63
|
+
KMXPlusMetadataCompiler.addKmxMetadata(kmx.kmxplus, kmx.keyboard, compilerOptions);
|
|
64
|
+
// Use the builder to generate the binary output file
|
|
65
|
+
const builder = new KMXBuilder(kmx, compilerOptions.saveDebug);
|
|
66
|
+
const kmx_binary = builder.compile();
|
|
67
|
+
const vkcompiler = new LdmlKeyboardVisualKeyboardCompiler(this.callbacks);
|
|
68
|
+
const vk = vkcompiler.compile(source);
|
|
69
|
+
const writer = new KvkFileWriter();
|
|
70
|
+
const kvk_binary = writer.write(vk);
|
|
71
|
+
// Note: we could have a step of generating source files here
|
|
72
|
+
// KvksFileWriter()...
|
|
73
|
+
// const tlcompiler = new kmc.TouchLayoutCompiler();
|
|
74
|
+
// const tl = tlcompiler.compile(source);
|
|
75
|
+
// const tlwriter = new TouchLayoutFileWriter();
|
|
76
|
+
const kmwcompiler = new LdmlKeyboardKeymanWebCompiler(this.callbacks, compilerOptions);
|
|
77
|
+
const kmw_string = kmwcompiler.compile(inputFilename, source);
|
|
78
|
+
const encoder = new TextEncoder();
|
|
79
|
+
const kmw_binary = encoder.encode(kmw_string);
|
|
80
|
+
outputFilename = outputFilename ?? inputFilename.replace(/\.xml$/, '.kmx');
|
|
81
|
+
return {
|
|
82
|
+
artifacts: {
|
|
83
|
+
kmx: { data: kmx_binary, filename: outputFilename },
|
|
84
|
+
kvk: { data: kvk_binary, filename: outputFilename.replace(/\.kmx$/, '.kvk') },
|
|
85
|
+
js: { data: kmw_binary, filename: outputFilename.replace(/\.kmx$/, '.js') },
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
async write(artifacts) {
|
|
90
|
+
if (artifacts.kmx) {
|
|
91
|
+
this.callbacks.fs.writeFileSync(artifacts.kmx.filename, artifacts.kmx.data);
|
|
92
|
+
}
|
|
93
|
+
if (artifacts.kvk) {
|
|
94
|
+
this.callbacks.fs.writeFileSync(artifacts.kvk.filename, artifacts.kvk.data);
|
|
95
|
+
}
|
|
96
|
+
if (artifacts.js) {
|
|
97
|
+
this.callbacks.fs.writeFileSync(artifacts.js.filename, artifacts.js.data);
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
43
100
|
}
|
|
44
101
|
/**
|
|
45
102
|
* Construct or return a UnicodeSetParser, aka KmnCompiler
|
|
@@ -49,7 +106,7 @@ export class LdmlKeyboardCompiler {
|
|
|
49
106
|
if (this.usetparser === undefined) {
|
|
50
107
|
// initialize
|
|
51
108
|
const compiler = new KmnCompiler();
|
|
52
|
-
const ok = await compiler.init(this.callbacks);
|
|
109
|
+
const ok = await compiler.init(this.callbacks, null);
|
|
53
110
|
if (ok) {
|
|
54
111
|
this.usetparser = compiler;
|
|
55
112
|
}
|
|
@@ -157,13 +214,20 @@ export class LdmlKeyboardCompiler {
|
|
|
157
214
|
// pre-initialize the usetparser
|
|
158
215
|
globalSections.usetparser = await this.getUsetParser();
|
|
159
216
|
const dependencies = section.dependencies;
|
|
217
|
+
let dependencyProblem = false;
|
|
160
218
|
Object.keys(constants.section).forEach((sectstr) => {
|
|
161
219
|
const sectid = constants.section[sectstr];
|
|
162
220
|
if (dependencies.has(sectid)) {
|
|
163
221
|
/* c8 ignore next 4 */
|
|
164
222
|
if (!kmx.kmxplus[sectid]) {
|
|
165
|
-
|
|
166
|
-
|
|
223
|
+
if (passed) {
|
|
224
|
+
// Internal error useful during section bring-up
|
|
225
|
+
throw new Error(`Internal error: section ${section.id} depends on uninitialized dependency ${sectid}, check ordering`);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
dependencyProblem = true;
|
|
229
|
+
return; // Already failed to validate, so no need for the layering message.
|
|
230
|
+
}
|
|
167
231
|
}
|
|
168
232
|
}
|
|
169
233
|
else {
|
|
@@ -171,6 +235,11 @@ export class LdmlKeyboardCompiler {
|
|
|
171
235
|
delete globalSections[sectid];
|
|
172
236
|
}
|
|
173
237
|
});
|
|
238
|
+
if (dependencyProblem && !passed) {
|
|
239
|
+
// Some layering problem, but we've already noted an error (!passed).
|
|
240
|
+
// Just skip this section.
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
174
243
|
const sect = section.compile(globalSections);
|
|
175
244
|
/* c8 ignore next 7 */
|
|
176
245
|
if (!sect) {
|
|
@@ -198,5 +267,5 @@ export class LdmlKeyboardCompiler {
|
|
|
198
267
|
return passed ? kmx : null;
|
|
199
268
|
}
|
|
200
269
|
}
|
|
201
|
-
//# debugId=
|
|
270
|
+
//# debugId=f74e7926-f874-5e7f-9c6e-b0892e15395a
|
|
202
271
|
//# sourceMappingURL=compiler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"debug_id":"
|
|
1
|
+
{"debug_id":"f74e7926-f874-5e7f-9c6e-b0892e15395a","file":"compiler.js","mappings":";AAAA,OAAO,EAAE,+BAA+B,EAAgB,OAAO,EAAyI,sBAAsB,EAAE,UAAU,EAAE,aAAa,EAAkC,MAAM,yBAAyB,CAAC;AAE3T,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAI7F,IAAO,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAEzC,OAAO,EAAgB,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,CAAC,MAAM,iBAAiB,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AO,CAAC,EAAE,0BAA0B,CAAC,CAAC;aAClF;YACD,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,GAAG,IAAW,CAAC;SACvC;QAED,6CAA6C;QAC7C,IAAI,YAAY,EAAE;YAChB,KAAI,IAAI,OAAO,IAAI,QAAQ,EAAE;gBAC3B,IAAG,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE;oBACjD,MAAM,GAAG,KAAK,CAAC;iBAChB;aACF;SACF;QAED,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7B,CAAC;CACF","names":[],"sourceRoot":"","sources":["../../../src/compiler/compiler.ts"],"version":3}
|
package/package.json
CHANGED
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"url": "https://github.com/keymanapp/keyman/issues"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@keymanapp/keyman-version": "17.0.
|
|
29
|
-
"@keymanapp/kmc-kmn": "17.0.
|
|
30
|
-
"@keymanapp/ldml-keyboard-constants": "17.0.
|
|
28
|
+
"@keymanapp/keyman-version": "17.0.238-alpha",
|
|
29
|
+
"@keymanapp/kmc-kmn": "17.0.238-alpha",
|
|
30
|
+
"@keymanapp/ldml-keyboard-constants": "17.0.238-alpha",
|
|
31
31
|
"restructure": "git+https://github.com/keymanapp/dependency-restructure.git#7a188a1e26f8f36a175d95b67ffece8702363dfc",
|
|
32
32
|
"semver": "^7.5.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@keymanapp/developer-test-helpers": "17.0.
|
|
35
|
+
"@keymanapp/developer-test-helpers": "17.0.238-alpha",
|
|
36
36
|
"@types/chai": "^4.1.7",
|
|
37
37
|
"@types/mocha": "^5.2.7",
|
|
38
38
|
"@types/node": "^20.4.1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"type": "git",
|
|
65
65
|
"url": "git+https://github.com/keymanapp/keyman.git"
|
|
66
66
|
},
|
|
67
|
-
"version": "17.0.
|
|
67
|
+
"version": "17.0.238-alpha"
|
|
68
68
|
}
|