Marc Durdin
bc02ba984a
chore(core): skip ldml keyboard tests if node not available
2022-08-27 08:47:34 +10:00
Marc Durdin
44d7d5ca88
chore(core): always build deps
2022-08-27 06:23:33 +10:00
Marc Durdin
3ff5c4c46e
chore(core): fix typo
2022-08-26 15:58:25 +10:00
Marc Durdin
a3b1a96960
chore(core): disable failing tests for now
2022-08-26 15:48:19 +10:00
Marc Durdin
4820f99503
chore(core): also build keyman-version as a prereq
2022-08-26 15:41:44 +10:00
Marc Durdin
b50d03b7d6
chore(developer): chmod build.sh
2022-08-26 15:26:36 +10:00
Marc Durdin
daf6a7970e
feat(core): use kmldmlc to build test keyboards
...
Removes .kmx from repo and builds them from the source .xml files using
kmldmlc (building that if necessary also with a poor fella's dependency
check for now), and generally a lot of cleanup of the meson.build files
for the ldml tests.
Moves keyboards to a subfolder of the ldml unit test folder to keep them
neat and tidy and avoid embedding huge files into ldml.js for test of
WASM.
Note: 000_null_keyboard and 002_null_invalid do build successfully, but
the core ldml keyboardprocessor currently fails on them, because they
are missing keys and vkey sections.
2022-08-26 15:12:38 +10:00
Marc Durdin
dc172cb981
chore(developer): robustness in ldml keyboard compiler
2022-08-26 09:06:12 +10:00
Marc Durdin
3c120ebae7
feat(developer): LDML keyboard XML Loader and Compiler
...
Implements basic LDML keyboard xml loader and compiler.
2022-08-26 08:51:15 +10:00
Marc Durdin
3865870114
chore(developer): add padding to loca and vkey
2022-08-26 05:23:11 +10:00
Marc Durdin
9756c28102
chore(developer): Merge branch 'feature-ldml' into feat/developer/ldml-compiler-kmxplus-builder
2022-08-26 05:17:05 +10:00
Marc Durdin
144025e29f
Merge pull request #7113 from keymanapp/revert-7112-revert-7110-feat/developer/ldml-constants-ts-module
...
feat(core): turn @keymanapp/ldml-keyboard-constants into a module 🙀
2022-08-25 14:13:41 -05:00
Marc Durdin
f49fd013a9
Merge pull request #7109 from keymanapp/feat/developer/ldml-compiler-kmx-builder
...
feat(developer): LDML compiler kmx-builder 🙀
2022-08-25 14:12:56 -05:00
Marc Durdin
85daf7d795
Merge pull request #7106 from keymanapp/feat/developer/ldml-compiler-kmx-structures
...
feat(developer): groundwork - kmx file structures 🙀
2022-08-25 14:12:46 -05:00
Steven R. Loomis
4c5f60ae22
Merge pull request #7125 from keymanapp/feat/core/7043-repadding
2022-08-25 13:54:59 -05:00
Steven R. Loomis
f7f909f904
Merge pull request #7124 from keymanapp/fix/core/7097-validate
2022-08-25 13:53:51 -05:00
Steven R. Loomis
190776ef9c
Update core/tests/unit/ldml/ldml.cpp
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-08-25 13:53:35 -05:00
Steven R. Loomis
a809fc86be
Update core/tests/unit/ldml/ldml.cpp
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-08-25 13:53:21 -05:00
Marc Durdin
7644ce668f
chore(developer): cleanup for kmx-builder
2022-08-26 04:44:00 +10:00
Marc Durdin
420dc1c10c
feat(developer): emit kmxplus format
2022-08-26 04:40:25 +10:00
Steven R. Loomis
af3bcd2a15
feat(core): ldml: padding for vkey and loca 🙀
...
- vkey and loca needed padding before the variable part
- add static asserts to validate this padding
- update sample files (null and tiny)
#7043
2022-08-25 12:54:52 -05:00
Steven R. Loomis
f7aeba5f01
feat(core): ldml: validator for kmxplus 🙀
...
- also update test case, 002_null_invalid is expected to not validate
#7097
2022-08-25 12:54:08 -05:00
Steven R. Loomis
2654a6f29a
Merge pull request #7118 from keymanapp/fix/core/7097-betternull
...
chore(core): update 000_null_keyboard to be a proper null keyboard 🙀
2022-08-25 12:10:19 -05:00
Steven R. Loomis
43b3e3243e
fix(core): ldml: emit nothing (no err) on unassigned keys 🙀
...
- also update test case
#7097
2022-08-25 11:22:19 -05:00
Marc Durdin
23d9aad0a0
chore(developer): cleanup
2022-08-25 15:12:00 +10:00
Marc Durdin
4f05e009d3
Merge branch 'revert-7112-revert-7110-feat/developer/ldml-constants-ts-module' into feat/developer/ldml-compiler-kmxplus-builder
2022-08-24 21:40:45 -05:00
Marc Durdin
aed8f0d11a
feat(developer): Write kmxplus section
...
Adds support for writing kmxplus section of a kmx file. Extends KMXFile
to a KMXPlusFile subclass. Adds KMXPlusBuilder which is called from
KMXBuilder if KMXBuilder finds that the file is a KMXPlusFile.
This means that KMXPlusBuilder generates a buffer that could be stored
independently of its parent .kmx file transport, if that is later
considered desirable.
Adds new constants for sizes of various table components, which makes
building the file much simpler.
2022-08-25 12:26:21 +10:00
Marc Durdin
e84bd590b0
chore: Merge branch 'feat/developer/ldml-compiler-kmx-builder' in
2022-08-25 08:42:23 +10:00
Marc Durdin
dc3e4c0d78
chore(developer): Merge branch 'feat/developer/ldml-compiler-kmx-structures' into feat/developer/ldml-compiler-kmx-builder
2022-08-25 08:41:51 +10:00
Marc Durdin
85814de84a
chore(developer): Merge branch 'feature-ldml' into feat/developer/ldml-compiler-kmx-structures
2022-08-25 08:41:16 +10:00
Steven R. Loomis
7aac6a1747
chore(core): update 000_null_keyboard to be a proper null keyboard 🙀
...
- rewrite 000_null_keyboard.kmx to be valid, but with no keys
- remove outdated comment in kmx_plus.h
- update kmx_plus.cpp to not reverse the order of section ids (#7098 )
- add a new test option for expected-error
2022-08-24 17:04:55 -05:00
Steven R. Loomis
ee34d89da3
Merge pull request #7116 from keymanapp/fix/core/7098-cxxfun2
...
fix(core): fixes for kmx_file rearrangement 🙀
2022-08-24 15:45:24 -05:00
Steven R. Loomis
eb5f1ad63c
fix(core): fixes for kmx_file rearrangement 🙀
...
fix breaks in #7111 and prior
- try stdint.h instead of cstdint
#7098
2022-08-24 13:56:42 -05:00
Steven R. Loomis
b180ca844d
fix(core): fixes for kmx_file rearrangement 🙀
...
fix breaks in #7111 and prior
#7098
2022-08-24 13:49:55 -05:00
Marc Durdin
6aeb20e77c
Revert "Revert "feat(core): turn @keymanapp/ldml-keyboard-constants into a module 🙀 ""
2022-08-24 14:32:22 +10:00
Marc Durdin
b20bf55fee
Merge pull request #7112 from keymanapp/revert-7110-feat/developer/ldml-constants-ts-module
...
Revert "feat(core): turn @keymanapp/ldml-keyboard-constants into a module 🙀 "
2022-08-23 23:26:57 -05:00
Marc Durdin
8ebae9515e
Revert "feat(core): turn @keymanapp/ldml-keyboard-constants into a module 🙀 "
2022-08-24 14:26:44 +10:00
Marc Durdin
f5f1bfd004
Merge pull request #7111 from keymanapp/chore/merge-master-into-feature-ldml
...
chore: merge master into feature-ldml
2022-08-23 23:26:17 -05:00
Marc Durdin
040f35e995
Merge pull request #7110 from keymanapp/feat/developer/ldml-constants-ts-module
...
feat(core): turn @keymanapp/ldml-keyboard-constants into a module 🙀
2022-08-23 23:25:37 -05:00
Marc Durdin
bd8f89b3b2
chore: Merge branch 'master' into feature-ldml
2022-08-24 14:22:55 +10:00
Marc Durdin
fa28040643
Merge pull request #7100 from keymanapp/fix/core/7098-cxxfun
...
fix(core): ldml: remove 0-length arrays 🙀
2022-08-23 23:20:14 -05:00
Marc Durdin
eb48fb76f9
Update core/src/kmx/kmx_plus.cpp
2022-08-24 14:20:08 +10:00
Marc Durdin
5e296c98af
feat(core): turn @keymanapp/ldml-keyboard-constants into a module
...
Splits the building of keyboardprocessor_ldml.h into a separate
tsconfig.build.json, and designates keyboardprocessor_ldml.ts as a new
Typescript/Node module @keymanapp/ldml-keyboard-constants.
Includes an example usage in the (currently unused) kmx-plus.ts.
2022-08-24 14:10:20 +10:00
Marc Durdin
a59e8428b5
Merge pull request #7103 from keymanapp/feat/common/build-utils-parameter-variables
...
feat(common): add parameter variable support to `builder_` functions
2022-08-23 22:46:26 -05:00
Marc Durdin
a3e672e808
feat(developer): LDML compiler kmx-builder
...
Generates a valid .kmx file (legacy structures only) from an
intermediate in-memory structure. Included for completeness, although it
is anticipated that LDML keyboards will not have any groups, though they
will probably have some metadata stores.
2022-08-24 13:43:09 +10:00
Steven R. Loomis
16b8d725fd
fix(core): ldml: include path fix 🙀
...
#7098
2022-08-23 19:15:20 -05:00
Marc Durdin
ebb3cf5c76
chore(common): fixup support for options which have no variable param
2022-08-24 09:55:52 +10:00
Marc Durdin
748a4ca63f
chore(common): fixup support for options which have no variable param
2022-08-24 09:55:26 +10:00
Marc Durdin
d4553f674a
chore(developer): rename structures
2022-08-24 09:42:08 +10:00
Marc Durdin
4018e528d9
feat(developer): groundwork - kmx file structures
...
Defines kmx binary structures and wireframe builder to emit a .kmx file.
Currently the builder will emit a roughly correct header. Next steps are
to build a .kmx file with stores, groups and keys, to match existing KMX
compiler behaviour. Once that is done, will return to generation of
KMXPlus data structures.
Compiler is designed to work independent of file system so it should run
inside browser or node environment. kmldmlc.ts is node-specific, but all
other modules should be multi-platform.
2022-08-24 09:32:30 +10:00