Steven R. Loomis
8127ec60d2
chore(core): ldml: transforms: documentation 🙀
...
- update per review comments
for #7234
2022-10-12 19:29:38 -05:00
Steven R. Loomis
5a6389deb8
feat(core): ldml: basic transforms, again 🙀
...
- new test file for transforms
- new class, ldml_transforms
for #7234
2022-10-12 19:29:37 -05:00
Steven R. Loomis
8a6b4a7fd4
feat(core): ldml: Use new UTF-16 to UTF-32 function 🙀
...
- also a test case with a 🙀 key on the tiny keyboard
For #7418
2022-10-12 19:26:42 -05:00
Steven R. Loomis
20032d02b7
feat(core): kmx_xstring: New UTF-16 to UTF-32 function 🙀
...
- plus test
For #7418
2022-10-12 19:23:58 -05:00
Steven R. Loomis
5970a46f87
fix(core): ldml: ldml_vkeys: fix for namespace 🙀
...
for #7234
2022-10-12 17:30:49 -05:00
Steven R. Loomis
e64177e17f
chore(core): ldml: ldml_vkeys: per review comments 🙀
...
- update parameter names for consistency
for #7234
2022-10-12 17:27:25 -05:00
Steven R. Loomis
eba0d12123
chore(core): refactor ldml_processor 🙀
...
- split out vkeys
for #7234
2022-10-12 17:21:32 -05:00
Steven R. Loomis
8a3c8af7a1
fix(core): ldml: fix incorrect use of Debug_UnicodeString 🙀
...
- update API docs for Debug_UnicodeString
for #7234
2022-10-12 17:01:46 -05:00
Steven R. Loomis
a63ca4377f
fix(core): improve check and output
2022-10-12 15:57:12 -05:00
Steven R. Loomis
30a100aa8a
fix(core): ldml: cleanup per review comments 🙀
...
- update DebugLog macro to use scoped functions
for #7234
2022-10-12 15:21:13 -05:00
Steven R. Loomis
ced4ed9099
fix(core): ldml: use DebugLog for debug 🙀
...
for #7234
2022-10-12 15:05:03 -05:00
Steven R. Loomis
35799e2306
feat(core): kmx_plus: add accessors for elem 🙀
...
- other refactor and cleanup in kmx_plus
for #7234
2022-10-11 15:43:44 -05:00
Marc Durdin
0502d6ccbd
Merge pull request #7342 from keymanapp/chore/epic-ldml/merge-master-to-feature-ldml
...
chore: merge master into feature-ldml 🙀
2022-09-24 10:12:00 +10:00
Steven R. Loomis
de3225a4f5
Merge remote-tracking branch 'origin/feature-ldml' into chore/core/7276-checksums-epic-ldml
2022-09-22 17:13:27 -05:00
Marc Durdin
cae408edc5
chore: merge feature-ldml into branch
2022-09-21 14:56:45 +10:00
Marc Durdin
3828eddf4f
fix(core): add hyphen to d parameter
...
I could add a trap for this to build-utils.sh but that's more work for
little benefit for an internal tool.
2022-09-21 05:46:21 +10:00
Marc Durdin
7e9f9ce86f
Merge pull request #7311 from keymanapp/chore/core/epic-ldml/fixup-kmc-outfile-param-in-tests
...
chore(core): `kmc --outFile` to `kmc --out-file` (and `--` rider) 🙀
2022-09-20 15:03:37 +10:00
Marc Durdin
47850b2a42
chore: ninja install fix
2022-09-20 13:41:49 +10:00
Marc Durdin
736db7179c
feat(common): support -- for build scripts
...
Allows use of `./build.sh configure -- --param-one=foo ...`.
Updates Core build to support `--` (including build.bat wrapper for
Windows builds). Fixes Linux debian rules to pass additional
parameters in with this format again, and adds `:arch` to only build
current architecture, not wasm as well...
Note that when using `--` you should typically avoid multiple actions in
a single command, as each action may interpret the additional parameters
differently!
2022-09-20 09:51:31 +10:00
Marc Durdin
9af8e1f9c2
chore(core): ldml-keyboard-constants module type to esm
2022-09-20 08:01:22 +10:00
Marc Durdin
19f7e5353b
chore(core): changes ldml tsconfig to es2020 🙀
...
Also splits the root tsconfig.json into tsconfig.cjs.json and
tsconfig.esm.json. These are not typically used at present but in theory
you could do a `tsc -b <tsconfig.x.json>` and build all modules. In
practice, we still have some prebuild steps that make that a bit of a
pain.
2022-09-20 06:49:56 +10:00
Marc Durdin
d38d82e020
chore(core): kmc --outFile to --out-file
2022-09-19 09:12:38 +10:00
Marc Durdin
003f23d7b4
feat(developer): fixup and prepare build scripts and docs for kmc
2022-09-19 06:36:06 +10:00
Steven R. Loomis
d56f6557fb
chore(core): deprecate checksum in 16.0 🙀
...
- do not generate unless version<16.0
- never check checksum
Fixes : #7220
2022-09-16 14:24:01 -05:00
Steven R. Loomis
efd4c83490
chore(core): ignore checksum in 16.0 🙀
...
- mark as deprecated
Fixes : #7220
2022-09-16 14:24:01 -05:00
Steven R. Loomis
3ceea19218
fix(core): validate kmxplus files 🙀
...
- split validation out into a separate kmx_file_validator.hpp
- kmx_file.h should remain C-only usable
Fixes : #7220
2022-09-14 16:32:18 -05:00
Steven R. Loomis
be2307cc25
chore(core): ldml correct for rebase hiccup 🙀
2022-09-13 16:25:13 -05:00
Steven R. Loomis
ea417c9f72
fix(core): VerifyKeyboard() on kmxplus files 🙀
...
- move VerifyKeyboard into COMP_KEYBOARD::VerifyKeyboard
- change call sites in kmx_file.h
For: #7220
2022-09-12 17:01:45 -05:00
Marc Durdin
c820fbc0e6
Merge pull request #7264 from keymanapp/chore/core/kmx-file-verification-baby-steps
...
chore(core): verify StartGroup in kmx load 🙀
2022-09-13 07:46:02 +10:00
Marc Durdin
3fd9df5277
chore(core): Merge branch 'feature-ldml' into chore/core/7247-use-builder-for-build-sh
2022-09-13 07:25:10 +10:00
Marc Durdin
865a18d0e1
chore(core): kmldmlc to kmc, pre-merge of feature-ldml branch
2022-09-13 07:22:49 +10:00
Marc Durdin
3e6d9356c3
Merge pull request #7255 from keymanapp/chore/7222-optional-checksum
...
chore: make checksum optional 🙀
2022-09-13 06:30:04 +10:00
Marc Durdin
6987a170c0
chore(core): fixup paths for linux build
2022-09-12 17:22:21 +10:00
Marc Durdin
74a6c65710
Merge branch 'feature-ldml' into chore/merge-master-into-feature-ldml
2022-09-12 15:24:19 +10:00
Marc Durdin
ca098628a2
chore(core): verify StartGroup in kmx load
...
This is the first baby step in good verification of a .kmx file. A place
to add more tests.
@keymanapp-test-bot skip
2022-09-12 10:31:40 +10:00
Marc Durdin
c3dd066291
chore(core): cleanup commands.inc.sh slightly
2022-09-12 10:12:34 +10:00
Marc Durdin
0e5943c266
chore(core): add core/.build-builder as CI signal
...
The presence of this file tells CI to use the new builder_ style
parameters for build.sh.
Once all branches for 16.0+ are updated to merge the
chore/core/7247-use-builder-for-build-sh branch, then we can remove this
file and the corresponding bash test branches in CI.
2022-09-12 10:06:29 +10:00
Marc Durdin
91d375ac81
chore(core): use builder_ for build.sh
...
Refactoring of build.sh to use the builder_ functions. The script should
now be a lot cleaner. Usage is available with `core/build.sh --help`
Targets are :x86, :x64, :wasm, :arch (linux/mac).
Supports additional requirements of Linux build (--target-path,
--configure).
By default will attempt to build all available targets.
Actions are: clean, configure, build, test, install, uninstall.
The install and uninstall actions only work for linux and mac targets at
present.
2022-09-12 09:56:32 +10:00
Marc Durdin
31a34f73d7
chore(core): add unit test for zero checksum
2022-09-12 05:46:13 +10:00
Marc Durdin
89ccc393ab
chore: make checksum optional
...
Fixes #7222 .
2022-09-09 17:23:07 +10:00
Marc Durdin
5a3dad0298
chore(core): fixup km_kbp_event docs
2022-09-09 15:32:48 +10:00
Marc Durdin
ac27082e6d
chore(developer): configure before build for kmc
2022-09-09 12:14:01 +10:00
Marc Durdin
561899a2a0
refactor(developer): rename kmldmlc to kmc
...
Fixes #7237 .
Full clean, configure and build will be required for Core, Developer
after this change.
kmc is much less unwieldy a name than kmldmlc, and becomes our platform
for future compiler integration. Start of implementation for #5283 also.
2022-09-09 09:13:39 +10:00
Marc Durdin
b6c4e21c1d
chore(developer): remove name from meta section
...
Fixes #7214 .
2022-09-09 08:57:52 +10:00
Marc Durdin
e086b8f45a
Merge pull request #7244 from keymanapp/chore/core/7134-unirename
...
chore(core): improve xstring macros 🙀
2022-09-09 05:22:23 +10:00
Marc Durdin
0def7dd97d
Merge pull request #7212 from keymanapp/feat/developer/kmldmlc-transform-sections
...
feat(developer): kmldmlc compiler for transforms 🙀
2022-09-09 05:21:54 +10:00
Steven R. Loomis
90131728e8
chore(core): improve xstring macros 🙀
...
- move Utf32CharToUtf16 to inline
- remove Is_SMP and call sites, use Utf32CharToUtf16 instead.
For: #7134
2022-09-08 12:29:04 -05:00
Steven R. Loomis
82443a610d
fix(core): ldml Update core/src/kmx/kmx_plus.h
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-09-08 12:04:04 -05:00
Steven R. Loomis
029a2737bf
fix(core): ldml: improve utf-32 handling++ 🙀
...
- review comments
- kmx_xstring: add and document macros, add Utf32CharToUtf16
- unit tests for kmx_xstring macros
Fixes : #7134
2022-09-08 11:45:23 -05:00
Steven R. Loomis
7a71ed84cc
fix(core): ldml: improve utf-32 handling 🙀
...
- remove hacky utf-32 processing
- add utf-32 test case to test_kmx_plus.cpp
- change kmx_plus to return std::u16string
- kmx_xstring: add Uni_IsBMP() macro
Fixes : #7134
2022-09-07 18:08:26 -05:00