Dr Mark C. Sinclair
eee9cf49dd
chore(developer): add ten use cases for reset() in GetXStringImpl_type_r test
2024-10-07 13:48:38 +01:00
Dr Mark C. Sinclair
6871b35f05
chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-4
2024-10-07 13:28:43 +01:00
Marc Durdin
2e059e9730
Merge branch 'master' into feat/common/12347-check-markdown-links
2024-10-07 09:41:45 +02:00
Marc Durdin
2b7ceff3e1
chore(developer): add baseline tests for bcp47 codes to kmc-package
...
Relates-to: #12012
2024-10-07 14:27:15 +07:00
Steven R. Loomis
03a24a1506
feat(developer): fast-xml-parser: fix for ldml empty attributes
...
- because of the form to="" in ldml, we need to distinguish attributes and sub-elements in the ldml xml parsing
- use an attributePrefix, and fixup the object tree afterwards
Fixes : #12208
2024-10-03 12:41:08 -05:00
Steven R. Loomis
6c0d240e09
Merge branch 'master' into feat/common/12208-fast-xml-parser3
2024-10-03 11:04:11 -05:00
Steven R. Loomis
e483318597
Merge pull request #12482 from keymanapp/feat/common/12208-unified-xml-parse
...
feat(common): unified XML parser/writer
2024-10-03 10:52:35 -05:00
Steven R. Loomis
3e168aafb2
chore(developer,common): deps: xml2js / fast-xml-parser
...
- remove vendored xml2js
- add fast-xml-parser@4.5.0
- Rewire the KeymanXMLReader / KeymanXMLWriter to use fast-xml-parser
Four small changes to the test data on the generated .kvks:
- allow " for XML generation (" is legal)
- use the same XML prologue as the actual .kvks files.
- treat <key></key> as <key/> since we can't distinguish
(removed a "_": "" entry)
- remove whitespace because we now can ("_": "\n \n \n") on non-leaf nodes.
This is ignored by the kvks code, but was difficult to maintain roundtrip.
Fixes : #12208
2024-10-03 08:34:24 -05:00
Dr Mark C. Sinclair
b8d2fad56e
chore(developer): add reset() ERROR_80FeatureOnly test case
2024-10-03 12:31:18 +01:00
Dr Mark C. Sinclair
54b5781b11
chore(developer): add eight test cases for commands without expected delimiters
2024-10-03 12:24:13 +01:00
Dr Mark C. Sinclair
947932fbfe
chore(developer): add GetXStringImpl_type_r test and first test case
2024-10-03 12:10:49 +01:00
Dr Mark C. Sinclair
fc9a97dba3
chore(developer): add three use() test cases for valid group
2024-10-03 12:04:14 +01:00
Dr Mark C. Sinclair
8c96f13cf1
chore(developer): change initFileGroupArray() to take names; add three use() test cases for non-existent group
2024-10-03 11:55:36 +01:00
Steven R. Loomis
158c4a7637
feat(developer): update the unified xml parser per review
...
- declarative syntax for options
- workaround an issue where xml2js is mutating our options objects
- improve tests
Fixes : #12208
2024-09-30 13:25:38 -05:00
Steven R. Loomis
eba7079694
chore(developer): update per style guide
...
Fixes : #12208
2024-09-30 10:00:46 -05:00
Dr Mark C. Sinclair
3bb60fead4
chore(developer): fix to initFileStoreArray due to Linux build failure
2024-09-30 12:15:17 +01:00
Dr Mark C. Sinclair
b79c6895bb
chore(developer): use initFileStoreArray() in GetXStringImpl_type_a test
2024-09-30 12:04:52 +01:00
Dr Mark C. Sinclair
7b26c54b11
chore(developer): use initFileStoreArray() in GetXStringImpl_type_n test
2024-09-30 12:00:16 +01:00
Dr Mark C. Sinclair
016c464ad7
chore(developer): use initFileStoreArray() in GetXStringImpl_type_c test
2024-09-30 11:57:57 +01:00
Dr Mark C. Sinclair
85a40b695f
chore(developer): use initFileStoreArray() in GetXStringImpl_type_o test
2024-09-30 11:52:07 +01:00
Dr Mark C. Sinclair
4d4e79007b
chore(developer): add initFileStoreArray() and use it in GetXStringImpl_type_i test
2024-09-30 11:45:57 +01:00
Dr Mark C. Sinclair
00eb02e597
chore(developer): add first three use() test cases in GetXStringImpl_type_u test
2024-09-30 10:26:48 +01:00
Steven R. Loomis
1780b1ebf3
feat(developer,common): use unified xml writer
...
Fixes : #12208
2024-09-27 18:53:54 -05:00
Steven R. Loomis
d540e4cda0
feat(common): unified xml writer test
...
Fixes : #12208
2024-09-27 18:37:40 -05:00
Steven R. Loomis
3832ca1c12
feat(developer,common): use unified xml parser
...
Subsystems changed:
- ldml keyboard reader (main and test)
- kpj
- kvks
- kmp compiler
test: made the test-xml-utils less verbose about the pathnames
Fixes : #12208
2024-09-27 17:49:32 -05:00
Steven R. Loomis
7da7375ee5
feat(common): xml: map \r\n to \n
...
- help make the parsed form identical across platforms
Fixes : #12208
2024-09-27 17:31:00 -05:00
Steven R. Loomis
609faf8047
feat(common): unified xml parser reader test
...
Fixes : #12208
2024-09-27 16:52:21 -05:00
Steven R. Loomis
7e631c1a73
feat(common): unified xml parser scaffolding
...
Fixes : #12208
2024-09-27 14:09:52 -05:00
Marc Durdin
7ff8c707e9
fix(developer): warn before importing over touch layout
...
Fixes : #12476
2024-09-26 17:31:43 -07:00
Marc Durdin
09979861ea
chore(developer): fix kmc-generate test fixtures
2024-09-26 17:18:35 -07:00
Marc Durdin
58868474b1
chore(developer): cleanup targets and generated files in kmc-generate
2024-09-26 17:12:49 -07:00
Marc Durdin
025b9ed01f
chore(developer): update eslint config path
2024-09-26 14:20:47 -07:00
Marc Durdin
10e4bba100
Merge branch 'master' into feat/developer/kmc-generate
2024-09-26 18:55:20 +02:00
Marc Durdin
60d888aad6
Merge pull request #12471 from keymanapp/fix/developer/12426-publish-developer-utils
...
fix(developer): publish developer-utils package during build
2024-09-26 18:34:58 +02:00
Marc Durdin
640d3e5096
test(developer): add markdown link check test for product documentation
...
Adds check-markdown package that parses .md files, looks for links and
images, and verifies that they are valid links (for internal links).
2024-09-25 15:51:32 -07:00
Marc Durdin
870dcabc90
Merge pull request #12468 from keymanapp/fix/developer/12449-row-keys-whitespace
...
fix(developer): ignore excess whitespace in `<row keys>` attribute
2024-09-26 00:32:06 +02:00
Marc Durdin
0b09ffabe5
Merge branch 'master' into context/options
2024-09-26 00:17:07 +02:00
Marc Durdin
035af7271c
docs: tweak content
2024-09-26 00:15:52 +02:00
Marc Durdin
87aff8d4a3
fix(developer): publish developer-utils package during build
...
Fixes : #12426
2024-09-25 14:22:03 -07:00
Marc Durdin
71f3d912a4
fix(developer): ignore excess whitespace in <row keys> attribute
...
Fixes : #12449
2024-09-25 07:33:42 -07:00
Marc Durdin
2c3ae9eba7
fix(developer): prevent invalid string ids
...
Adds checks for invalid string IDs and corresponding unit tests.
Fixes : #12451
2024-09-24 19:29:10 -07:00
Marc Durdin
25ea6a74dc
fix(developer): use richedit in debug memo to support Egyptian cartouches
...
RichEdit allows text selection one character past end-of-string, so we
need to cater for that as well in passing text ranges to the character
grid.
Fixes : #12454
2024-09-24 08:24:47 -07:00
Marc Durdin
4ed865c128
Merge pull request #12432 from keymanapp/chore/developer/remove-js-from-ldml-compiler
...
chore(developer): remove .js output from LDML compiler
2024-09-19 18:58:47 +02:00
Eberhard Beilharz
090a331de4
Merge pull request #12438 from keymanapp/fix/core/dependency
...
fix(core): add missing dependency for core
2024-09-19 13:53:15 +07:00
Eberhard Beilharz
0dbae5c199
fix(core): add missing dependency for core
...
Core depends on `kmc` which in turn depends on `core/include/ldml`. This
change adds the missing dependency to the build script and fixes building
core from a clean `core` subdirectory.
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
# Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
# Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-09-17 18:28:02 +02:00
Marc Durdin
ec6c26c7f7
feat(developer): add .gitignore to kmc generate templates
2024-09-17 17:05:37 +07:00
Marc Durdin
48d4e65cf0
fix(developer): copy templates into bundle
2024-09-17 17:05:13 +07:00
Marc Durdin
96f6654a90
chore(developer): remove .js output from LDML compiler
2024-09-17 16:06:59 +07:00
Nguonnyny Tan
7c365e35a3
chore: update contexthelp.xml
2024-09-17 14:31:38 +07:00
Marc Durdin
201f48a1f0
Merge pull request #12404 from keymanapp/fix/developer/12403-validate-string-use-before-definition
...
fix(developer): check vars string usage before definition
2024-09-17 00:40:24 +02:00