@keymanapp/kmc-ldml 17.0.155-alpha → 17.0.157-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/compiler/compiler.d.ts +57 -55
- package/build/src/compiler/compiler.d.ts.map +1 -1
- package/build/src/compiler/compiler.js +198 -198
- package/build/src/compiler/compiler.js.map +1 -1
- package/build/src/compiler/disp.d.ts +14 -12
- package/build/src/compiler/disp.d.ts.map +1 -1
- package/build/src/compiler/disp.js +45 -43
- package/build/src/compiler/disp.js.map +1 -1
- package/build/src/compiler/empty-compiler.d.ts +39 -37
- package/build/src/compiler/empty-compiler.d.ts.map +1 -1
- package/build/src/compiler/empty-compiler.js +71 -69
- package/build/src/compiler/empty-compiler.js.map +1 -1
- package/build/src/compiler/keymanweb-compiler.d.ts +16 -16
- package/build/src/compiler/keymanweb-compiler.d.ts.map +1 -1
- package/build/src/compiler/keymanweb-compiler.js +97 -96
- package/build/src/compiler/keymanweb-compiler.js.map +1 -1
- package/build/src/compiler/keys.d.ts +30 -28
- package/build/src/compiler/keys.d.ts.map +1 -1
- package/build/src/compiler/keys.js +240 -238
- package/build/src/compiler/keys.js.map +1 -1
- package/build/src/compiler/layr.d.ts +12 -10
- package/build/src/compiler/layr.d.ts.map +1 -1
- package/build/src/compiler/layr.js +83 -81
- package/build/src/compiler/layr.js.map +1 -1
- package/build/src/compiler/ldml-compiler-options.d.ts +10 -0
- package/build/src/compiler/ldml-compiler-options.d.ts.map +1 -0
- package/build/src/compiler/ldml-compiler-options.js +5 -0
- package/build/src/compiler/ldml-compiler-options.js.map +1 -0
- package/build/src/compiler/loca.d.ts +18 -16
- package/build/src/compiler/loca.d.ts.map +1 -1
- package/build/src/compiler/loca.js +61 -59
- package/build/src/compiler/loca.js.map +1 -1
- package/build/src/compiler/marker-tracker.d.ts +36 -34
- package/build/src/compiler/marker-tracker.d.ts.map +1 -1
- package/build/src/compiler/marker-tracker.js +75 -73
- package/build/src/compiler/marker-tracker.js.map +1 -1
- package/build/src/compiler/messages.d.ts +135 -133
- package/build/src/compiler/messages.d.ts.map +1 -1
- package/build/src/compiler/messages.js +79 -77
- package/build/src/compiler/messages.js.map +1 -1
- package/build/src/compiler/meta.d.ts +14 -12
- package/build/src/compiler/meta.d.ts.map +1 -1
- package/build/src/compiler/meta.js +60 -58
- package/build/src/compiler/meta.js.map +1 -1
- package/build/src/compiler/metadata-compiler.d.ts +15 -13
- package/build/src/compiler/metadata-compiler.d.ts.map +1 -1
- package/build/src/compiler/metadata-compiler.js +49 -47
- package/build/src/compiler/metadata-compiler.js.map +1 -1
- package/build/src/compiler/name.d.ts +12 -10
- package/build/src/compiler/name.d.ts.map +1 -1
- package/build/src/compiler/name.js +22 -20
- package/build/src/compiler/name.js.map +1 -1
- package/build/src/compiler/section-compiler.d.ts +18 -16
- package/build/src/compiler/section-compiler.d.ts.map +1 -1
- package/build/src/compiler/section-compiler.js +36 -34
- package/build/src/compiler/section-compiler.js.map +1 -1
- package/build/src/compiler/touch-layout-compiler.d.ts +10 -8
- package/build/src/compiler/touch-layout-compiler.d.ts.map +1 -1
- package/build/src/compiler/touch-layout-compiler.js +89 -87
- package/build/src/compiler/touch-layout-compiler.js.map +1 -1
- package/build/src/compiler/tran.d.ts +39 -37
- package/build/src/compiler/tran.d.ts.map +1 -1
- package/build/src/compiler/tran.js +187 -185
- package/build/src/compiler/tran.js.map +1 -1
- package/build/src/compiler/vars.d.ts +23 -21
- package/build/src/compiler/vars.d.ts.map +1 -1
- package/build/src/compiler/vars.js +221 -219
- package/build/src/compiler/vars.js.map +1 -1
- package/build/src/compiler/visual-keyboard-compiler.d.ts +9 -7
- package/build/src/compiler/visual-keyboard-compiler.d.ts.map +1 -1
- package/build/src/compiler/visual-keyboard-compiler.js +52 -54
- package/build/src/compiler/visual-keyboard-compiler.js.map +1 -1
- package/build/src/compiler/vkey.d.ts +11 -9
- package/build/src/compiler/vkey.d.ts.map +1 -1
- package/build/src/compiler/vkey.js +61 -59
- package/build/src/compiler/vkey.js.map +1 -1
- package/build/src/main.d.ts +11 -9
- package/build/src/main.d.ts.map +1 -1
- package/build/src/main.js +10 -8
- package/build/src/main.js.map +1 -1
- package/build/src/util/util.d.ts +44 -42
- package/build/src/util/util.d.ts.map +1 -1
- package/build/src/util/util.js +122 -120
- package/build/src/util/util.js.map +1 -1
- package/package.json +8 -8
- package/build/src/compiler/compiler-options.d.ts +0 -16
- package/build/src/compiler/compiler-options.d.ts.map +0 -1
- package/build/src/compiler/compiler-options.js +0 -6
- package/build/src/compiler/compiler-options.js.map +0 -1
- package/build/src/kpj.schema.json +0 -127
- package/build/src/kvks.schema.json +0 -182
- package/build/src/ldml-keyboard.schema.json +0 -702
- package/build/src/ldml-keyboardtest.schema.json +0 -221
package/build/src/util/util.js
CHANGED
|
@@ -1,120 +1,122 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
34
|
-
* @
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
92
|
-
|
|
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
|
-
|
|
120
|
-
|
|
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]="a7d9156d-f232-5498-aaa5-cb8e9bf59a61")}catch(e){}}();
|
|
2
|
+
import { constants } from "@keymanapp/ldml-keyboard-constants";
|
|
3
|
+
/**
|
|
4
|
+
* Verifies that value is an item in the enumeration.
|
|
5
|
+
*/
|
|
6
|
+
export function isValidEnumValue(enu, value) {
|
|
7
|
+
return Object.values(enu).includes(value);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns unique LKKeys only, preserving later ones
|
|
11
|
+
* in case of conflict. (i.e. later overrides)
|
|
12
|
+
* @param keys list of keys to consider. (mutated)
|
|
13
|
+
* @returns Array of unique keys. Order is not specified.
|
|
14
|
+
*/
|
|
15
|
+
export function calculateUniqueKeys(keys) {
|
|
16
|
+
if (!keys) {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
// Need 'newer' (later) keys to override older ones.
|
|
20
|
+
const reverseKeys = keys.reverse(); // newest to oldest
|
|
21
|
+
const alreadySeen = new Set();
|
|
22
|
+
// filter out only the keys that haven't already been seen
|
|
23
|
+
const uniqueKeys = reverseKeys.filter(({ id }) => {
|
|
24
|
+
if (!alreadySeen.has(id)) {
|
|
25
|
+
alreadySeen.add(id);
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
return false;
|
|
29
|
+
});
|
|
30
|
+
return uniqueKeys;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param layersList list of layers elements, from `keyboard?.layers`
|
|
35
|
+
* @returns set of key IDs
|
|
36
|
+
*/
|
|
37
|
+
export function allUsedKeyIdsInLayers(layersList) {
|
|
38
|
+
const s = new Set();
|
|
39
|
+
if (layersList) {
|
|
40
|
+
for (const layers of layersList || []) {
|
|
41
|
+
for (const layer of layers.layer || []) {
|
|
42
|
+
for (const row of layer.row || []) {
|
|
43
|
+
if (row.keys) {
|
|
44
|
+
for (const k of row.keys.split(" ")) {
|
|
45
|
+
s.add(k);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return s;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Helper function for validating child elements. Written for the convenience of message passing functions.
|
|
56
|
+
*
|
|
57
|
+
* @param values array of values to check
|
|
58
|
+
* @param onDuplicate callback with array of duplicate values, deduped
|
|
59
|
+
* @param allowed optional set of valid values
|
|
60
|
+
* @param onInvalid callback with array of invalid values, deduped
|
|
61
|
+
* @returns true if all OK
|
|
62
|
+
*/
|
|
63
|
+
export function verifyValidAndUnique(values, onDuplicate, allowed, onInvalid) {
|
|
64
|
+
const dups = [];
|
|
65
|
+
const invalids = [];
|
|
66
|
+
const seen = new Set();
|
|
67
|
+
for (const value of values) {
|
|
68
|
+
if (allowed && !allowed.has(value)) {
|
|
69
|
+
invalids.push(value);
|
|
70
|
+
}
|
|
71
|
+
if (seen.has(value)) {
|
|
72
|
+
dups.push(value);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
seen.add(value);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function dedupedSortedArray(values) {
|
|
79
|
+
return Array.from(new Set(values)).sort();
|
|
80
|
+
}
|
|
81
|
+
if (dups.length > 0 && onDuplicate) {
|
|
82
|
+
onDuplicate(dedupedSortedArray(dups));
|
|
83
|
+
}
|
|
84
|
+
if (invalids.length > 0 && onInvalid) {
|
|
85
|
+
onInvalid(dedupedSortedArray(invalids));
|
|
86
|
+
}
|
|
87
|
+
return (!dups.length && !invalids.length);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Determine modifier from layer info
|
|
91
|
+
* @param layer layer obj
|
|
92
|
+
* @returns modifier
|
|
93
|
+
*/
|
|
94
|
+
export function translateLayerAttrToModifier(layer) {
|
|
95
|
+
const { modifier } = layer;
|
|
96
|
+
if (modifier) {
|
|
97
|
+
let mod = constants.keys_mod_none;
|
|
98
|
+
for (let str of modifier.split(' ')) {
|
|
99
|
+
const submod = constants.keys_mod_map.get(str);
|
|
100
|
+
mod |= submod;
|
|
101
|
+
}
|
|
102
|
+
return mod;
|
|
103
|
+
}
|
|
104
|
+
// TODO-LDML: other modifiers, other ids?
|
|
105
|
+
return constants.keys_mod_none;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @param modifier modifier sequence such as undefined, "none", "shift altR" etc
|
|
109
|
+
* @returns true if valid
|
|
110
|
+
*/
|
|
111
|
+
export function validModifier(modifier) {
|
|
112
|
+
if (!modifier)
|
|
113
|
+
return true; // valid to have no modifier, == none
|
|
114
|
+
for (let str of modifier.split(' ')) {
|
|
115
|
+
if (!constants.keys_mod_map.has(str)) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
//# debugId=a7d9156d-f232-5498-aaa5-cb8e9bf59a61
|
|
122
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"debug_id":"a7d9156d-f232-5498-aaa5-cb8e9bf59a61","file":"util.js","mappings":"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","names":[],"sourceRoot":"","sources":["../../../src/util/util.ts"],"version":3}
|
package/package.json
CHANGED
|
@@ -26,18 +26,19 @@
|
|
|
26
26
|
"url": "https://github.com/keymanapp/keyman/issues"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@keymanapp/
|
|
30
|
-
"@keymanapp/
|
|
31
|
-
"@keymanapp/ldml-keyboard-constants": "17.0.
|
|
29
|
+
"@keymanapp/keyman-version": "17.0.157-alpha",
|
|
30
|
+
"@keymanapp/kmc-kmn": "17.0.157-alpha",
|
|
31
|
+
"@keymanapp/ldml-keyboard-constants": "17.0.157-alpha",
|
|
32
32
|
"ajv": "^8.11.0",
|
|
33
|
-
"restructure": "git+https://github.com/keymanapp/dependency-restructure.git#
|
|
33
|
+
"restructure": "git+https://github.com/keymanapp/dependency-restructure.git#7a188a1e26f8f36a175d95b67ffece8702363dfc",
|
|
34
34
|
"semver": "^7.5.2",
|
|
35
35
|
"xml2js": "git+https://github.com/keymanapp/dependency-node-xml2js#535fe732dc408d697e0f847c944cc45f0baf0829"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@keymanapp/developer-test-helpers": "17.0.157-alpha",
|
|
38
39
|
"@types/chai": "^4.1.7",
|
|
39
40
|
"@types/mocha": "^5.2.7",
|
|
40
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^20.4.1",
|
|
41
42
|
"@types/semver": "^7.3.12",
|
|
42
43
|
"@types/xml2js": "^0.4.5",
|
|
43
44
|
"c8": "^7.12.0",
|
|
@@ -45,8 +46,7 @@
|
|
|
45
46
|
"chalk": "^2.4.2",
|
|
46
47
|
"mocha": "^8.4.0",
|
|
47
48
|
"ts-node": "^9.1.1",
|
|
48
|
-
"typescript": "^4.9.5"
|
|
49
|
-
"@keymanapp/developer-test-helpers": "17.0.155-alpha"
|
|
49
|
+
"typescript": "^4.9.5"
|
|
50
50
|
},
|
|
51
51
|
"mocha": {
|
|
52
52
|
"spec": "build/test/**/test-*.js",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"type": "git",
|
|
69
69
|
"url": "git+https://github.com/keymanapp/keyman.git"
|
|
70
70
|
},
|
|
71
|
-
"version": "17.0.
|
|
71
|
+
"version": "17.0.157-alpha"
|
|
72
72
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LDMLKeyboardXMLSourceFileReaderOptions } from "@keymanapp/common-types";
|
|
2
|
-
export interface CompilerOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Add debug information to the .kmx file when compiling
|
|
5
|
-
*/
|
|
6
|
-
debug?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* Add metadata about the compiler version to .kmx file when compiling
|
|
9
|
-
*/
|
|
10
|
-
addCompilerVersion?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Paths and other options required for reading .xml files
|
|
13
|
-
*/
|
|
14
|
-
readerOptions: LDMLKeyboardXMLSourceFileReaderOptions;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=compiler-options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-options.d.ts","sourceRoot":"","sources":["../../../src/compiler/compiler-options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AAEjF,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,aAAa,EAAE,sCAAsC,CAAC;CACvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-options.js","sourceRoot":"","sources":["../../../src/compiler/compiler-options.ts"],"names":[],"mappings":"AAkBC,CAAC;;AAEF,mBAAmB;AACnB,8DAA8D;AAC9D,qEAAqE"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "kpj.xsd",
|
|
3
|
-
"$schema": "http://json-schema.org/schema#",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"KeymanDeveloperProject": {
|
|
7
|
-
"properties": {
|
|
8
|
-
"Options": {
|
|
9
|
-
"$ref": "#/definitions/Options"
|
|
10
|
-
},
|
|
11
|
-
"Files": {
|
|
12
|
-
"$ref": "#/definitions/Files"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"Options"
|
|
17
|
-
],
|
|
18
|
-
"additionalProperties": false,
|
|
19
|
-
"type": "object"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"required": [
|
|
23
|
-
"KeymanDeveloperProject"
|
|
24
|
-
],
|
|
25
|
-
"additionalProperties": false,
|
|
26
|
-
"definitions": {
|
|
27
|
-
"Options": {
|
|
28
|
-
"type": "object",
|
|
29
|
-
"properties": {
|
|
30
|
-
"BuildPath": {
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
"SourcePath": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"CompilerWarningsAsErrors": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"pattern": "^(True|False)$"
|
|
39
|
-
},
|
|
40
|
-
"WarnDeprecatedCode": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"pattern": "^(True|False)$"
|
|
43
|
-
},
|
|
44
|
-
"CheckFilenameConventions": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"pattern": "^(True|False)$"
|
|
47
|
-
},
|
|
48
|
-
"ProjectType": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"pattern": "^(keyboard|lexicalmodel)$"
|
|
51
|
-
},
|
|
52
|
-
"Version": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"pattern": "^(1\\.0|2\\.0)$"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"required": [
|
|
58
|
-
],
|
|
59
|
-
"additionalProperties": false
|
|
60
|
-
},
|
|
61
|
-
"Files": {
|
|
62
|
-
"type": "object",
|
|
63
|
-
"properties": {
|
|
64
|
-
"File": {
|
|
65
|
-
"type": "array",
|
|
66
|
-
"items": {
|
|
67
|
-
"$ref": "#/definitions/File"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"additionalProperties": false,
|
|
72
|
-
"required": [
|
|
73
|
-
"File"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"File": {
|
|
77
|
-
"type": "object",
|
|
78
|
-
"properties": {
|
|
79
|
-
"ID": {
|
|
80
|
-
"type": "string"
|
|
81
|
-
},
|
|
82
|
-
"Filename": {
|
|
83
|
-
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
"Filepath": {
|
|
86
|
-
"type": "string"
|
|
87
|
-
},
|
|
88
|
-
"FileVersion": {
|
|
89
|
-
"type": "string"
|
|
90
|
-
},
|
|
91
|
-
"FileType": {
|
|
92
|
-
"type": "string"
|
|
93
|
-
},
|
|
94
|
-
"Details": {
|
|
95
|
-
"$ref": "#/definitions/FileDetails"
|
|
96
|
-
},
|
|
97
|
-
"ParentFileID": {
|
|
98
|
-
"type": "string"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"required": [
|
|
102
|
-
"Filename"
|
|
103
|
-
],
|
|
104
|
-
"additionalProperties": false
|
|
105
|
-
},
|
|
106
|
-
"FileDetails": {
|
|
107
|
-
"type": "object",
|
|
108
|
-
"properties": {
|
|
109
|
-
"Name": {
|
|
110
|
-
"type": "string"
|
|
111
|
-
},
|
|
112
|
-
"Copyright": {
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
|
-
"Message": {
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"Version": {
|
|
119
|
-
"type": "string"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"required": [
|
|
123
|
-
],
|
|
124
|
-
"additionalProperties": false
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "kvks.xsd",
|
|
3
|
-
"$schema": "http://json-schema.org/schema#",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"visualkeyboard": {
|
|
7
|
-
"properties": {
|
|
8
|
-
"header": {
|
|
9
|
-
"$ref": "#/definitions/kvk-header"
|
|
10
|
-
},
|
|
11
|
-
"encoding": {
|
|
12
|
-
"type": "array",
|
|
13
|
-
"items": {
|
|
14
|
-
"$ref": "#/definitions/kvk-encoding"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"required": [
|
|
19
|
-
"header"
|
|
20
|
-
],
|
|
21
|
-
"additionalProperties": false,
|
|
22
|
-
"type": "object"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"required": [
|
|
26
|
-
"visualkeyboard"
|
|
27
|
-
],
|
|
28
|
-
"additionalProperties": false,
|
|
29
|
-
"definitions": {
|
|
30
|
-
"kvk-header": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"properties": {
|
|
33
|
-
"version": {
|
|
34
|
-
"$ref": "#/definitions/kvk-version"
|
|
35
|
-
},
|
|
36
|
-
"kbdname": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
},
|
|
39
|
-
"flags": {
|
|
40
|
-
"$ref": "#/definitions/kvk-header-flags"
|
|
41
|
-
},
|
|
42
|
-
"layout": {
|
|
43
|
-
"type": "string"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"required": [
|
|
47
|
-
"version"
|
|
48
|
-
],
|
|
49
|
-
"additionalProperties": false
|
|
50
|
-
},
|
|
51
|
-
"kvk-header-flags": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"properties": {
|
|
54
|
-
"key102": {
|
|
55
|
-
"$ref": "#/definitions/km-empty"
|
|
56
|
-
},
|
|
57
|
-
"displayunderlying": {
|
|
58
|
-
"$ref": "#/definitions/km-empty"
|
|
59
|
-
},
|
|
60
|
-
"usealtgr": {
|
|
61
|
-
"$ref": "#/definitions/km-empty"
|
|
62
|
-
},
|
|
63
|
-
"useunderlying": {
|
|
64
|
-
"$ref": "#/definitions/km-empty"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"additionalProperties": false
|
|
68
|
-
},
|
|
69
|
-
"kvk-encoding": {
|
|
70
|
-
"type": "object",
|
|
71
|
-
"properties": {
|
|
72
|
-
"layer": {
|
|
73
|
-
"type": "array",
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "#/definitions/kvk-layer"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"$": {
|
|
79
|
-
"type": "object",
|
|
80
|
-
"properties": {
|
|
81
|
-
"name": {
|
|
82
|
-
"$ref": "#/definitions/kvk-encoding-name"
|
|
83
|
-
},
|
|
84
|
-
"fontname": {
|
|
85
|
-
"type": "string"
|
|
86
|
-
},
|
|
87
|
-
"fontsize": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"required": [
|
|
92
|
-
"name"
|
|
93
|
-
],
|
|
94
|
-
"additionalProperties": false
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"required": [
|
|
98
|
-
"$"
|
|
99
|
-
],
|
|
100
|
-
"additionalProperties": false
|
|
101
|
-
},
|
|
102
|
-
"kvk-layer": {
|
|
103
|
-
"type": "object",
|
|
104
|
-
"properties": {
|
|
105
|
-
"key": {
|
|
106
|
-
"type": "array",
|
|
107
|
-
"items": {
|
|
108
|
-
"$ref": "#/definitions/kvk-key"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"$": {
|
|
112
|
-
"type": "object",
|
|
113
|
-
"properties": {
|
|
114
|
-
"shift": {
|
|
115
|
-
"$ref": "#/definitions/kvk-layer-shift"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"required": [
|
|
119
|
-
"shift"
|
|
120
|
-
],
|
|
121
|
-
"additionalProperties": false
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"required": [
|
|
125
|
-
"$"
|
|
126
|
-
],
|
|
127
|
-
"additionalProperties": false
|
|
128
|
-
},
|
|
129
|
-
"kvk-key": {
|
|
130
|
-
"type": "object",
|
|
131
|
-
"properties": {
|
|
132
|
-
"bitmap": {
|
|
133
|
-
"type": "string"
|
|
134
|
-
},
|
|
135
|
-
"$": {
|
|
136
|
-
"type": "object",
|
|
137
|
-
"properties": {
|
|
138
|
-
"vkey": {
|
|
139
|
-
"type": "string"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"required": [
|
|
143
|
-
"vkey"
|
|
144
|
-
],
|
|
145
|
-
"additionalProperties": false
|
|
146
|
-
},
|
|
147
|
-
"_": {
|
|
148
|
-
"type": "string"
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"required": [
|
|
152
|
-
"$"
|
|
153
|
-
],
|
|
154
|
-
"additionalProperties": false
|
|
155
|
-
},
|
|
156
|
-
"km-empty": {
|
|
157
|
-
"type": "string"
|
|
158
|
-
},
|
|
159
|
-
"kvk-encoding-name": {
|
|
160
|
-
"type": "string",
|
|
161
|
-
"enum": [
|
|
162
|
-
"ansi",
|
|
163
|
-
"unicode"
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
|
-
"kvk-layer-shift": {
|
|
167
|
-
"type": "string",
|
|
168
|
-
"pattern": "S?(C|LC|RC)?(A|LA|RA)?"
|
|
169
|
-
},
|
|
170
|
-
"kvk-version": {
|
|
171
|
-
"type": "string",
|
|
172
|
-
"pattern": "(\\d+\\.)+(\\d+)",
|
|
173
|
-
"enum": [
|
|
174
|
-
"10.0"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"km-version": {
|
|
178
|
-
"type": "string",
|
|
179
|
-
"pattern": "(\\d+\\.)+(\\d+)"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|