Marc Durdin
d684e58baa
Merge branch 'feature-kmc-kmw' into chore/common/web/file-types-module-first-steps
2023-06-13 08:37:55 +10:00
Marc Durdin
7ad2df06d9
chore: Merge branch 'feature-kmc-kmw' into chore/merge-master-into-feature-kmc-kmw
2023-06-12 09:31:18 +07:00
Marc Durdin
8a4c005d40
chore(common): define constants for file types
...
Now that we have the file type detection in place, we can replace
existing references to the file extensions, where possible, with the
constant declarations. While we could rely on TypeScript's typing to use
string-based values, this helps us to avoid using file extensions
directly in string transforms, regex, etc, and use the `KeymanFileTypes`
alias instead.
Note that only references in common/web, and kmc-* projects have been
touched. References in other Developer projects have not been touched,
as some of those are not yet ESM, so that needs to be addressed first.
2023-06-12 09:17:09 +07:00
Marc Durdin
8bfd4c0bae
chore(developer): refactor LdmlCompilerOptions
...
LdmlCompilerOptions is now based on the shared CompilerOptions. Also
fixes command line parameter inheritance for sub-commands.
2023-06-10 14:27:40 +07:00
Steven R. Loomis
4febfcb451
feat(developer): improve tran/bksp tests, other improvements 🙀
...
- delete dead code
- share common ID regex for vars
- move bksp/finl/order tests into tran
For: #7377
2023-06-08 18:39:44 -05:00
Steven R. Loomis
5cf025b62e
Merge pull request #8942 from keymanapp/feat/core-7377-transform-epic-ldml
...
feat(core): fixups to C++ side 🙀
2023-06-08 18:17:06 -05:00
Steven R. Loomis
26053a5ba3
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-06-08 18:10:11 -05:00
Steven R. Loomis
9f9589b095
feat(developer): fix e2e test 🙀
...
- re-enable e2e
- fix basic.txt to match
tools (hextobin):
- support diff(block1,block2,divisor)
- document the comma rule
For: #7377
2023-06-08 13:29:15 -05:00
Marc Durdin
a1fdc7b133
refactor(developer): CompilerOptions as shared type
...
Also fixes handling of kmx errors in kmc-package.
2023-06-08 05:42:23 +07:00
Marc Durdin
4c3acaf651
chore(common): update restructure to support typescript
2023-06-08 05:40:48 +07:00
Steven R. Loomis
c4e050e1f9
chore(developer): boost code coverage 🙀
...
- delete a file which is unused - ordr
- delete a file that was moved to common/web/types - pattern-parser
- update other lines to increase coverage
#7377
2023-06-07 14:14:41 -05:00
Steven R. Loomis
b705f5430f
feat(developer): temporarily skip e2e test 🙀
...
For: #7377
2023-06-06 10:19:03 -05:00
Steven R. Loomis
8548b0fd33
Merge remote-tracking branch 'upstream/master' into feat/developer-7377-transform-format-epic-ldml3
2023-06-06 09:45:21 -05:00
Steven R. Loomis
70fcea815a
feat(developer): tran support 🙀
...
- tran builder
For: #7377
2023-06-05 19:18:59 -05:00
Steven R. Loomis
115e68b753
feat(developer): tran support 🙀
...
- test fixups, for dependencies
For: #7377
2023-06-05 18:54:10 -05:00
Marc Durdin
3f993bd651
chore: Merge branch 'master' into feat/typescript-keymanweb-compiler
2023-06-05 15:57:42 +07:00
Steven R. Loomis
2054eeb703
feat(developer): tran support 🙀
...
- support regex format for sets and unicodeSets
- support mapFrom and mapTo detection
For: #7377
2023-06-02 18:31:25 -05:00
Steven R. Loomis
4b81137a61
feat(developer): section dependencies 🙀
...
- fix test helper for dependencies
- moved VariableParser and MarkerParser into common
For: #7377
2023-06-02 16:58:39 -05:00
Steven R. Loomis
5d0d0746b5
feat(developer): section dependencies 🙀
...
- fix test helper for dependencies
For: #7377
2023-06-02 16:26:47 -05:00
Steven R. Loomis
dfe89e5425
feat(developer): messages 🙀
...
- fix message bug
For: #7377
2023-06-02 15:19:14 -05:00
Steven R. Loomis
9b177b2f00
feat(developer): section dependencies 🙀
...
- make explicit section dependencies, add a test
For: #7377
2023-06-02 15:19:00 -05:00
Marc Durdin
16675ef46b
chore: extend from test options in e2e test
2023-06-02 18:54:42 +10:00
Marc Durdin
0ec5c08b26
chore(common): move const url to class prop
...
We still have cjs modules that rely on the ldml-keyboard-xml-reader, and
this meant that an exported const was being calculated with an invalid
meta url, which crashed the cjs module require() call.
2023-06-02 12:28:13 +07:00
Marc Durdin
4e535832d8
chore: cleanup
2023-06-02 11:45:59 +07:00
Marc Durdin
b313272250
chore(common): remove url module ref from common/web/types
...
The url module is a node module. We need to move responsibility for
resolving the path of the LDML XML <import> statements out of
common/web/types, and into the ultimate consumer, so it's now surfaced
as an option, along with a helper constant that reports the
import.meta.url-relative base path of the standard imports that are
compiled into common/web/types.
This hopefully means we can use this module in both browser and node
contexts without trouble.
2023-06-02 11:38:17 +07:00
Steven R. Loomis
c89bf648a5
feat(developer): vars again 🙀
...
- fairly complete tests (both positive and negative) for variables
For: #7377
2023-05-27 22:41:48 -05:00
Steven R. Loomis
1fe6f497f7
feat(developer): VARification steps 🙀
...
For: #7377
2023-05-27 22:08:16 -05:00
Steven R. Loomis
ca602385b3
feat(developer): vars: hooray for more errors 🙀
...
For: #7377
2023-05-27 17:01:10 -05:00
Steven R. Loomis
b7a7ac328c
feat(developer): vars: var utils and some tests 🙀
...
For: #7377
2023-05-22 19:10:53 -05:00
Steven R. Loomis
5b1d892b0d
feat(developer): markers: marker utils and tests 🙀
...
For: #7377
2023-05-20 19:57:23 -05:00
Steven R. Loomis
518fcd8fc2
feat(developer): tran: compiler path complete 🙀
...
- still doesn't actually precompile vars or regex
For: #7377
2023-05-19 19:09:44 -05:00
Steven R. Loomis
3165eae0ea
feat(developer): tran: verify steps 🙀
...
- also add function compilerEventFormat() to format an event or array of events
For: #7377
2023-05-19 13:23:05 -05:00
Steven R. Loomis
4a53bd18de
feat(developer): tran: group steps 🙀
...
For: #7377
2023-05-17 17:29:16 -05:00
Steven R. Loomis
900de4caf0
feat(developer): vars: bitrot 🙀
...
- still no basic.txt yet…
For: #7377
2023-05-16 18:12:12 -05:00
Steven R. Loomis
d1b55ddee6
Merge remote-tracking branch 'upstream/master' into feat/developer-7377-transform-format-epic-ldml3
2023-05-16 18:10:49 -05:00
Marc Durdin
eac6651c03
chore(developer): use older pattern for row id
...
In order to match existing behaviour with the legacy KeymanWeb compiler,
we should use quoted numbers for row ids. This behaviour can probably be
changed over to the new model in the future, but for now this prevents
unit tests from causing us grief.
2023-05-14 12:46:52 +07:00
Marc Durdin
2528731b58
chore(developer): fixup missing rename
2023-05-12 14:15:24 +07:00
Marc Durdin
187a25240a
chore(developer): fixup missing rename
2023-05-12 14:14:32 +07:00
Marc Durdin
b3436b8aff
chore(developer): fix kmc-ldml unit tests
2023-05-12 13:31:56 +07:00
Steven R. Loomis
e37e4d0cd3
feat(developer): vars: binary builder 🙀
...
- no, not basic.txt yet…
For: #7377
2023-05-11 19:54:45 -05:00
Steven R. Loomis
cc09973874
feat(developer): vars: set validation 🙀
...
For: #7377
2023-05-11 18:47:48 -05:00
Steven R. Loomis
c06726ce0d
feat(developer): vars: uset validation 🙀
...
For: #7377
2023-05-11 13:05:39 -05:00
Steven R. Loomis
7855cdc494
feat(common): add async init() to compiler sections 🙀
...
- lots of ripples through test and client code code
- passes all but basic.xml (some tests stubbed out still, though)
- update vars test
For: #7377
2023-05-11 10:42:20 -05:00
Steven R. Loomis
c4fe843655
feat(common,developer): remove ordr and finl, add vars 🙀
...
- vars tests, doesn't pass yet
- tran tests and compilers stubbed out for now
For: #7377
2023-05-11 10:41:37 -05:00
Steven R. Loomis
53d4f22d13
feat(common): initial work on ldml variables 🙀
...
For: #7377
2023-05-11 10:41:37 -05:00
Marc Durdin
46267e347f
chore(developer): rename Compiler and related classes
2023-05-09 14:28:21 +07:00
Marc Durdin
4838ba1ffe
chore: rename kmc-keyboard to kmc-ldml
...
Part of #8719 .
2023-05-09 14:08:45 +07:00