@keymanapp/common-types 17.0.299-beta → 17.0.301-beta
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.js +222 -221
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +73 -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.js +121 -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.js +55 -54
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js.map +1 -1
- package/build/src/kmx/element-string.js +126 -125
- package/build/src/kmx/element-string.js.map +1 -1
- package/build/src/kmx/keyman-targets.js +80 -79
- package/build/src/kmx/keyman-targets.js.map +1 -1
- package/build/src/kmx/kmx-builder.js +190 -189
- package/build/src/kmx/kmx-builder.js.map +1 -1
- package/build/src/kmx/kmx-file-reader.js +135 -134
- package/build/src/kmx/kmx-file-reader.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.js +28 -27
- package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.js +90 -89
- package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.js +108 -107
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.js +102 -101
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.js +67 -66
- package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.js +22 -21
- package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.js +23 -22
- package/build/src/kmx/kmx-plus-builder/build-meta.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-sect.js +16 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.js +47 -46
- package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.js +70 -69
- package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.js +61 -60
- package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.js +49 -48
- package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.js +5 -4
- package/build/src/kmx/kmx-plus-builder/builder-section.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +138 -137
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.js +831 -830
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts.map +1 -1
- package/build/src/kmx/kmx.js +303 -299
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kmx/string-list.js +89 -88
- package/build/src/kmx/string-list.js.map +1 -1
- package/build/src/kpj/keyman-developer-project.js +196 -195
- package/build/src/kpj/keyman-developer-project.js.map +1 -1
- package/build/src/kpj/kpj-file-reader.js +120 -119
- package/build/src/kpj/kpj-file-reader.js.map +1 -1
- package/build/src/kpj/kpj-file.js +13 -12
- package/build/src/kpj/kpj-file.js.map +1 -1
- package/build/src/kvk/kvk-file-reader.js +38 -37
- package/build/src/kvk/kvk-file-reader.js.map +1 -1
- package/build/src/kvk/kvk-file-writer.js +78 -77
- package/build/src/kvk/kvk-file-writer.js.map +1 -1
- package/build/src/kvk/kvk-file.js +91 -90
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.js +176 -175
- package/build/src/kvk/kvks-file-reader.js.map +1 -1
- package/build/src/kvk/kvks-file-writer.js +107 -106
- package/build/src/kvk/kvks-file-writer.js.map +1 -1
- package/build/src/kvk/kvks-file.js +12 -11
- package/build/src/kvk/kvks-file.js.map +1 -1
- package/build/src/kvk/visual-keyboard.js +76 -75
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +22 -21
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +410 -409
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +58 -57
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js.map +1 -1
- package/build/src/ldml-keyboard/pattern-parser.js +491 -490
- package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.js +30 -29
- package/build/src/ldml-keyboard/unicodeset-parser-api.js.map +1 -1
- package/build/src/main.js +35 -34
- package/build/src/main.js.map +1 -1
- package/build/src/package/kmp-json-file.js +4 -3
- package/build/src/package/kmp-json-file.js.map +1 -1
- package/build/src/package/kps-file.js +18 -17
- package/build/src/package/kps-file.js.map +1 -1
- package/build/src/schema-validators.js +28 -27
- package/build/src/schema-validators.js.map +1 -1
- package/build/src/schemas/displaymap.schema.js +38 -37
- package/build/src/schemas/displaymap.schema.js.map +1 -1
- package/build/src/schemas/displaymap.schema.validator.mjs +267 -266
- package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyboard_info.schema.js +101 -100
- package/build/src/schemas/keyboard_info.schema.js.map +1 -1
- package/build/src/schemas/keyboard_info.schema.validator.mjs +1161 -1160
- package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.js +154 -153
- package/build/src/schemas/keyman-touch-layout.clean.spec.js.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1095 -1094
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.js +143 -142
- package/build/src/schemas/keyman-touch-layout.spec.js.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1437 -1436
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
- package/build/src/schemas/kmp.schema.js +356 -355
- package/build/src/schemas/kmp.schema.js.map +1 -1
- package/build/src/schemas/kmp.schema.validator.mjs +1628 -1627
- package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.js +134 -133
- package/build/src/schemas/kpj-9.0.schema.js.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.validator.mjs +656 -655
- package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj.schema.js +132 -131
- package/build/src/schemas/kpj.schema.js.map +1 -1
- package/build/src/schemas/kpj.schema.validator.mjs +516 -515
- package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kvks.schema.js +185 -184
- package/build/src/schemas/kvks.schema.js.map +1 -1
- package/build/src/schemas/kvks.schema.validator.mjs +626 -625
- package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.js +699 -698
- package/build/src/schemas/ldml-keyboard3.schema.js.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3118 -3117
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.js +228 -227
- package/build/src/schemas/ldml-keyboardtest3.schema.js.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +745 -744
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.js +26 -25
- package/build/src/schemas.js.map +1 -1
- package/build/src/util/common-events.js +29 -28
- package/build/src/util/common-events.js.map +1 -1
- package/build/src/util/compiler-interfaces.js +381 -380
- package/build/src/util/compiler-interfaces.js.map +1 -1
- package/build/src/util/errors.js +8 -7
- package/build/src/util/errors.js.map +1 -1
- package/build/src/util/file-types.js +143 -142
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.js +369 -368
- package/build/src/util/util.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,120 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// the
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
result.options.
|
|
63
|
-
result.options.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
result.options.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
result.options.
|
|
71
|
-
result.options.
|
|
72
|
-
result.options.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
file.details.
|
|
91
|
-
file.details.
|
|
92
|
-
file.details.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
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]="890db4ad-4195-5e6f-9925-bc4f4ce0808e")}catch(e){}}();
|
|
3
|
+
import * as xml2js from 'xml2js';
|
|
4
|
+
import { boxXmlArray } from '../util/util.js';
|
|
5
|
+
import { KeymanDeveloperProject, KeymanDeveloperProjectFile10, KeymanDeveloperProjectType } from './keyman-developer-project.js';
|
|
6
|
+
import SchemaValidators from '../schema-validators.js';
|
|
7
|
+
export class KPJFileReader {
|
|
8
|
+
callbacks;
|
|
9
|
+
constructor(callbacks) {
|
|
10
|
+
this.callbacks = callbacks;
|
|
11
|
+
}
|
|
12
|
+
read(file) {
|
|
13
|
+
let data;
|
|
14
|
+
const parser = new xml2js.Parser({
|
|
15
|
+
explicitArray: false,
|
|
16
|
+
mergeAttrs: false,
|
|
17
|
+
includeWhiteChars: false,
|
|
18
|
+
normalize: false,
|
|
19
|
+
emptyTag: ''
|
|
20
|
+
});
|
|
21
|
+
parser.parseString(file, (e, r) => {
|
|
22
|
+
if (e) {
|
|
23
|
+
throw e;
|
|
24
|
+
}
|
|
25
|
+
data = r;
|
|
26
|
+
});
|
|
27
|
+
data = this.boxArrays(data);
|
|
28
|
+
if (data.KeymanDeveloperProject?.Files?.File?.length) {
|
|
29
|
+
for (let file of data.KeymanDeveloperProject?.Files?.File) {
|
|
30
|
+
// xml2js imports <Details/> as '' so we will just delete the empty string
|
|
31
|
+
if (typeof file.Details == 'string') {
|
|
32
|
+
delete file.Details;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return data;
|
|
37
|
+
}
|
|
38
|
+
validate(source) {
|
|
39
|
+
if (!SchemaValidators.kpj(source)) {
|
|
40
|
+
if (!SchemaValidators.kpj90(source)) {
|
|
41
|
+
// If the legacy schema also does not validate, then we will only report
|
|
42
|
+
// the errors against the modern schema
|
|
43
|
+
throw new Error(JSON.stringify(SchemaValidators.kpj.errors));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
boolFromString(value, def) {
|
|
48
|
+
value = (value || '').toLowerCase();
|
|
49
|
+
if (value === 'true')
|
|
50
|
+
return true;
|
|
51
|
+
if (value === 'false')
|
|
52
|
+
return false;
|
|
53
|
+
return def;
|
|
54
|
+
}
|
|
55
|
+
transform(projectFilename, source) {
|
|
56
|
+
// NOTE: at this point, the xml should have been validated
|
|
57
|
+
// and matched the schema result so we can assume the source
|
|
58
|
+
// is a valid shape
|
|
59
|
+
let project = source.KeymanDeveloperProject;
|
|
60
|
+
let result = new KeymanDeveloperProject(projectFilename, project.Options?.Version || "1.0", this.callbacks);
|
|
61
|
+
if (result.options.version == '2.0') {
|
|
62
|
+
result.options.buildPath = (project.Options?.BuildPath || result.options.buildPath).replace(/\\/g, '/');
|
|
63
|
+
result.options.sourcePath = (project.Options?.SourcePath || result.options.sourcePath).replace(/\\/g, '/');
|
|
64
|
+
result.options.skipMetadataFiles = this.boolFromString(project.Options?.SkipMetadataFiles, false);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
result.options.buildPath = (project.Options?.BuildPath || '').replace(/\\/g, '/');
|
|
68
|
+
result.options.skipMetadataFiles = this.boolFromString(project.Options?.SkipMetadataFiles, true);
|
|
69
|
+
}
|
|
70
|
+
result.options.checkFilenameConventions = this.boolFromString(project.Options?.CheckFilenameConventions, false);
|
|
71
|
+
result.options.compilerWarningsAsErrors = this.boolFromString(project.Options?.CompilerWarningsAsErrors, false);
|
|
72
|
+
result.options.warnDeprecatedCode = this.boolFromString(project.Options?.WarnDeprecatedCode, true);
|
|
73
|
+
result.options.projectType =
|
|
74
|
+
project.Options?.ProjectType == 'keyboard' ? KeymanDeveloperProjectType.Keyboard :
|
|
75
|
+
project.Options?.ProjectType == 'lexicalmodel' ? KeymanDeveloperProjectType.LexicalModel :
|
|
76
|
+
KeymanDeveloperProjectType.Keyboard; // Default is keyboard if missing
|
|
77
|
+
if (result.options.version == '1.0') {
|
|
78
|
+
this.transformFilesVersion10(project, result);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
result.populateFiles();
|
|
82
|
+
}
|
|
83
|
+
return result;
|
|
84
|
+
}
|
|
85
|
+
transformFilesVersion10(project, result) {
|
|
86
|
+
let ids = {};
|
|
87
|
+
for (let sourceFile of project.Files?.File) {
|
|
88
|
+
let file = new KeymanDeveloperProjectFile10(sourceFile.ID || '', (sourceFile.Filepath || '').replace(/\\/g, '/'), sourceFile.FileVersion || '', this.callbacks);
|
|
89
|
+
if (sourceFile.Details) {
|
|
90
|
+
file.details.copyright = sourceFile.Details.Copyright;
|
|
91
|
+
file.details.name = sourceFile.Details.Name;
|
|
92
|
+
file.details.message = sourceFile.Details.Message;
|
|
93
|
+
file.details.version = sourceFile.Details.Version;
|
|
94
|
+
}
|
|
95
|
+
if (sourceFile.ParentFileID && ids[sourceFile.ParentFileID]) {
|
|
96
|
+
ids[sourceFile.ParentFileID].childFiles.push(file);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
result.files.push(file);
|
|
100
|
+
ids[file.id] = file;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* xml2js will not place single-entry objects into arrays.
|
|
106
|
+
* Easiest way to fix this is to box them ourselves as needed
|
|
107
|
+
* @param source KVKSourceFile
|
|
108
|
+
*/
|
|
109
|
+
boxArrays(source) {
|
|
110
|
+
if (!source.KeymanDeveloperProject) {
|
|
111
|
+
return source;
|
|
112
|
+
}
|
|
113
|
+
if (!source.KeymanDeveloperProject.Files || typeof source.KeymanDeveloperProject.Files == 'string') {
|
|
114
|
+
source.KeymanDeveloperProject.Files = { File: [] };
|
|
115
|
+
}
|
|
116
|
+
boxXmlArray(source.KeymanDeveloperProject.Files, 'File');
|
|
117
|
+
return source;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
120
|
//# sourceMappingURL=kpj-file-reader.js.map
|
|
121
|
+
//# debugId=890db4ad-4195-5e6f-9925-bc4f4ce0808e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"kpj-file-reader.js","sources":["../../../src/kpj/kpj-file-reader.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAEjI,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AAEvD,MAAM,OAAO,aAAa;IACJ;IAApB,YAAoB,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;IAEhD,CAAC;IAEM,IAAI,CAAC,IAAgB;QAC1B,IAAI,IAAa,CAAC;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
-
;
|
|
8
|
-
;
|
|
9
|
-
;
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Keyman Developer Project File
|
|
3
|
+
*/
|
|
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]="834d9296-d0ce-510c-8dae-d4720d3aea8d")}catch(e){}}();
|
|
6
|
+
;
|
|
7
|
+
;
|
|
8
|
+
;
|
|
9
|
+
;
|
|
10
|
+
;
|
|
11
|
+
;
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=kpj-file.js.map
|
|
14
|
+
//# debugId=834d9296-d0ce-510c-8dae-d4720d3aea8d
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"kpj-file.js","sources":["../../../src/kpj/kpj-file.ts"],"sourceRoot":"","names":[],"mappings":"AAAA;;GAEG;;;AAaF,CAAC;AAWD,CAAC;AAID,CAAC;AAUD,CAAC;AAMD,CAAC;AAMD,CAAC","debug_id":"834d9296-d0ce-510c-8dae-d4720d3aea8d"}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
result
|
|
15
|
-
result.header.
|
|
16
|
-
result.header.
|
|
17
|
-
result.header.
|
|
18
|
-
result.header.ansiFont.
|
|
19
|
-
result.header.
|
|
20
|
-
result.header.unicodeFont.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
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]="ef77ba7c-ce82-5ac9-9804-c6503e5b6d15")}catch(e){}}();
|
|
3
|
+
import KVKFile, { BUILDER_KVK_HEADER_IDENTIFIER, BUILDER_KVK_HEADER_VERSION } from "./kvk-file.js";
|
|
4
|
+
import { VisualKeyboard } from "./visual-keyboard.js";
|
|
5
|
+
export default class KvkFileReader {
|
|
6
|
+
read(source) {
|
|
7
|
+
let binary;
|
|
8
|
+
let kvk = new KVKFile();
|
|
9
|
+
binary = kvk.KVK_FILE.fromBuffer(source);
|
|
10
|
+
if (binary.header.identifier != BUILDER_KVK_HEADER_IDENTIFIER ||
|
|
11
|
+
binary.header.version != BUILDER_KVK_HEADER_VERSION) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
let result = new VisualKeyboard();
|
|
15
|
+
result.header.version = binary.header.version;
|
|
16
|
+
result.header.flags = binary.header.flags;
|
|
17
|
+
result.header.associatedKeyboard = binary.header.associatedKeyboard.str;
|
|
18
|
+
result.header.ansiFont.name = binary.header.ansiFont.name.str;
|
|
19
|
+
result.header.ansiFont.size = binary.header.ansiFont.size;
|
|
20
|
+
result.header.unicodeFont.name = binary.header.unicodeFont.name.str;
|
|
21
|
+
result.header.unicodeFont.size = binary.header.unicodeFont.size;
|
|
22
|
+
for (let binaryKey of binary.keys) {
|
|
23
|
+
let key = {
|
|
24
|
+
flags: binaryKey.flags,
|
|
25
|
+
vkey: binaryKey.vkey,
|
|
26
|
+
shift: binaryKey.shift,
|
|
27
|
+
text: binaryKey.text.str
|
|
28
|
+
};
|
|
29
|
+
if (binaryKey.bitmapSize) {
|
|
30
|
+
key.bitmap = new Uint8Array(binaryKey.bitmapData);
|
|
31
|
+
}
|
|
32
|
+
result.keys.push(key);
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
;
|
|
38
38
|
//# sourceMappingURL=kvk-file-reader.js.map
|
|
39
|
+
//# debugId=ef77ba7c-ce82-5ac9-9804-c6503e5b6d15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"kvk-file-reader.js","sources":["../../../src/kvk/kvk-file-reader.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,OAAO,EAAE,EAAoB,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AACrH,OAAO,EAAE,cAAc,EAAqB,MAAM,sBAAsB,CAAC;AAEzE,MAAM,CAAC,OAAO,OAAO,aAAa;IACzB,IAAI,CAAC,MAAkB;QAC5B,IAAI,MAAwB,CAAC;QAC7B,IAAI,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;QACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACzC,IAAG,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,6BAA6B;YACxD,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,0BAA0B,EAAE;YACvD,OAAO,IAAI,CAAC;SACb;QACD,IAAI,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC;QACxE,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAA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
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.setString(binary.header.
|
|
48
|
-
this.setString(binary.header.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
* a
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* @param
|
|
69
|
-
* @
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
str.
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
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]="b28e7768-a70e-5800-ac1c-fc8d641d5d44")}catch(e){}}();
|
|
3
|
+
import KVKFile, { BUILDER_KVK_HEADER_IDENTIFIER, BUILDER_KVK_HEADER_VERSION } from "./kvk-file.js";
|
|
4
|
+
export default class KvkFileWriter {
|
|
5
|
+
/**
|
|
6
|
+
* Writes the visual keyboard to a binary .kvk format byte array.
|
|
7
|
+
* @param source VisualKeyboard
|
|
8
|
+
* @returns Uint8Array, the .kvk file
|
|
9
|
+
*/
|
|
10
|
+
write(source) {
|
|
11
|
+
const binary = this.build(source);
|
|
12
|
+
const kvk = new KVKFile();
|
|
13
|
+
const file = new Uint8Array(kvk.KVK_FILE.size(binary));
|
|
14
|
+
const data = kvk.KVK_FILE.toBuffer(binary);
|
|
15
|
+
file.set(data, 0);
|
|
16
|
+
return file;
|
|
17
|
+
}
|
|
18
|
+
build(source) {
|
|
19
|
+
/**
|
|
20
|
+
* The visual keyboard text color is included in .kvk files but is never
|
|
21
|
+
* defined in .kvks files. Thus, it is always written by the legacy .kvk
|
|
22
|
+
* binary writer VisualKeyboardSaverBinary.pas as TColor.clWindowText (SystemColor | 8),
|
|
23
|
+
* or in DWORD form 0xFF000008, and we maintain this value for consistency
|
|
24
|
+
* here.
|
|
25
|
+
*/
|
|
26
|
+
const VISUAL_KEYBOARD_TEXT_COLOR = 0xFF000008;
|
|
27
|
+
const binary = {
|
|
28
|
+
header: {
|
|
29
|
+
identifier: BUILDER_KVK_HEADER_IDENTIFIER,
|
|
30
|
+
version: BUILDER_KVK_HEADER_VERSION,
|
|
31
|
+
associatedKeyboard: { len: 0, str: '' },
|
|
32
|
+
flags: source.header.flags,
|
|
33
|
+
ansiFont: {
|
|
34
|
+
color: VISUAL_KEYBOARD_TEXT_COLOR,
|
|
35
|
+
size: source.header.ansiFont.size,
|
|
36
|
+
name: { len: 0, str: '' }
|
|
37
|
+
},
|
|
38
|
+
unicodeFont: {
|
|
39
|
+
color: VISUAL_KEYBOARD_TEXT_COLOR,
|
|
40
|
+
size: source.header.unicodeFont.size,
|
|
41
|
+
name: { len: 0, str: '' }
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
keyCount: source.keys.length,
|
|
45
|
+
keys: []
|
|
46
|
+
};
|
|
47
|
+
this.setString(binary.header.associatedKeyboard, source.header.associatedKeyboard);
|
|
48
|
+
this.setString(binary.header.ansiFont.name, source.header.ansiFont.name);
|
|
49
|
+
this.setString(binary.header.unicodeFont.name, source.header.unicodeFont.name);
|
|
50
|
+
for (let sourceKey of source.keys) {
|
|
51
|
+
const binaryKey = {
|
|
52
|
+
flags: sourceKey.flags,
|
|
53
|
+
vkey: sourceKey.vkey,
|
|
54
|
+
shift: sourceKey.shift,
|
|
55
|
+
text: { len: 0, str: '' },
|
|
56
|
+
bitmapSize: sourceKey.bitmap ? sourceKey.bitmap.byteLength : 0,
|
|
57
|
+
bitmapData: sourceKey.bitmap ? Array.from(sourceKey.bitmap) : []
|
|
58
|
+
};
|
|
59
|
+
this.setString(binaryKey.text, sourceKey.text || '');
|
|
60
|
+
binary.keys.push(binaryKey);
|
|
61
|
+
}
|
|
62
|
+
return binary;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Fills a kvk string from a source string. Note that the format includes both
|
|
66
|
+
* a length word and zero termination.
|
|
67
|
+
*
|
|
68
|
+
* @param str
|
|
69
|
+
* @param value
|
|
70
|
+
* @returns number
|
|
71
|
+
*/
|
|
72
|
+
setString(str, value) {
|
|
73
|
+
str.len = value.length + 1;
|
|
74
|
+
str.str = value;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
;
|
|
78
78
|
//# sourceMappingURL=kvk-file-writer.js.map
|
|
79
|
+
//# debugId=b28e7768-a70e-5800-ac1c-fc8d641d5d44
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"file":"kvk-file-writer.js","sources":["../../../src/kvk/kvk-file-writer.ts"],"sourceRoot":"","names":[],"mappings":";;AAAA,OAAO,OAAO,EAAE,EAAoB,6BAA6B,EAAE,0BAA0B,EAAuC,MAAM,eAAe,CAAC;AAG1J,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC;;;;OAIG;IACH,KAAK,CAAC,MAAsB;QAC1B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,MAAM,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC;QAC1B,MAAM,IAAI,GAAe,IAAI,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC,QA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