Steven R. Loomis
4aacfbf737
chore(developer): improve code coverage 30% 🙀
...
- … with this one weird trick
For: #9119
2023-08-02 18:09:58 -05:00
Steven R. Loomis
2a818b1ede
spec(core,developer): update marker spec 🙀
...
- use UC_SENTINEL CODE_DEADKEY …
- use U+FFFE for any marker
- add asserts between .ts and C++
- update generation
For: #9119
2023-08-02 18:04:48 -05:00
Steven R. Loomis
7c3424b081
chore(developer): update markers per review 🙀
...
- remove SENTINEL_ALL_MARKERS
For: #9119
2023-07-31 16:10:59 -05:00
Steven R. Loomis
8c79f14156
feat(developer): marker - use marker in the sections 🙀
...
- bunch of rework to make 'vars' a dependent of lots of sections
- should be emitting marker ids in the output stream now.
#9119
2023-07-29 17:26:36 -05:00
Steven R. Loomis
a6bce2d6c0
feat(common): marker - utilities to emit sentinel values 🙀
...
#9119
2023-07-29 16:59:54 -05:00
Steven R. Loomis
97c8380f7c
feat(common): marker - emit sentinel values 🙀
...
#9119
2023-07-29 16:48:33 -05:00
Steven R. Loomis
2211900e5f
feat(common): marker - move values into constants 🙀
...
- constants need to be shared with C++
#9119
2023-07-29 16:15:55 -05:00
Steven R. Loomis
d514dc9915
feat(common): marker processing support 🙀
...
- common: emit the sentinel value, with range checking, from MarkerParser
2023-07-29 16:06:59 -05:00
Steven R. Loomis
581d65a4c7
fix(common): list fix 🙀
...
- a falsy list should show up as list #0
#9119
2023-07-29 14:55:21 -05:00
Steven R. Loomis
52e54395f9
feat(developer): marker accounting 🙀
...
- split out MarkerTracker, could give us more precise messages about marker use
- for now, we parse all markers twice.
- update builder for the markers list
#9119
2023-07-29 14:18:37 -05:00
Steven R. Loomis
ab4a0f36ab
feat(developer): Marker tests 🙀
...
- wip , still not working
For: #9119
2023-07-26 18:06:22 -05:00
Steven R. Loomis
3268be0c34
chore(common): add BUILDER_U32CHAR 🙀
...
- fix some other minor nits and documentation todos (no semantics)
- BUILDER_KEYS accidentally repeated 'ident' and 'size' from the parent interface
Fixes #9079
2023-07-14 12:42:35 -05:00
Steven R. Loomis
2e80d984c8
Merge remote-tracking branch 'upstream/master' into chore/common-9079-builder-str-ref-epic-ldml
2023-07-14 12:17:33 -05:00
Steven R. Loomis
f3bfef0cc3
fix(common): set variables need to serialize elementstring 🙀
...
- populate the 'elem' field of set variables
- this will be needed for mapFrom/mapTo
For: #7375
2023-07-12 16:44:50 -05:00
Steven R. Loomis
7b094f42e7
chore(common): add BUILDER_STR_REF 🙀
...
- and similar
- also aliases for r.uint32le on the KMXPlusFile side.
Fixes #9079
2023-07-11 18:08:46 -05:00
Steven R. Loomis
1bea614fd5
chore(common): improve coverage, fix todos 🙀
...
- remove SectionCompiler.required as unused
- minor fixes to common setSplitter
- add edge case tests
for: #8069
2023-07-05 15:48:12 -05:00
Steven R. Loomis
8cd846f298
fix(common): support multichar escapes in element sets 🙀
...
- \u{22 0127} acts like \u{22}\u{0127}
for: #7377
2023-07-04 12:47:58 -05:00
Steven R. Loomis
52b8dfb205
feat(common): preflighting on uset 🙀
...
- update docs on UnicodeSet
- uset parser: fix/clarify that the wasm interface takes a bufferSize, but the ts interface takes a range count. This was muddled before.
For: #7377
2023-07-04 10:26:50 -05:00
Steven R. Loomis
0f0c1e5e61
feat(common): preflighting on uset 🙀
...
- allow uset to preflight (calculate # of ranges)
For: #7377
2023-07-03 18:48:48 -05:00
Steven R. Loomis
a6dcf4dfce
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-07-03 18:20:20 -05:00
Steven R. Loomis
a25d3819d1
Merge remote-tracking branch 'upstream/master' into feat/developer-7377-reorder-uset
2023-07-03 18:09:22 -05:00
Steven R. Loomis
3ecf8da917
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-07-03 18:08:25 -05:00
Steven R. Loomis
88650e2085
feat(developer): uset in element string 🙀
...
- fix uset builder and other missing uset parts
- basic.xml passes
- update to constants
Fixes : #7377
2023-06-30 17:27:04 -05:00
Steven R. Loomis
5d5b61cd0a
feat(developer): uset in element string 🙀
...
- update element string constructors to support UnicodeString and the segmented array from ElementParser
- update compiler machinery to pass USetParser in the DependencySections
- test cases
#7377
2023-06-30 15:56:45 -05:00
Steven R. Loomis
067c0b2f67
feat(common): unescaper / element updates for uset 🙀
...
- add unescaper for quad string (\u0127)
#7377
2023-06-30 15:50:38 -05:00
Steven R. Loomis
3d6af245de
feat(common): add segmenter for element strings 🙀
...
- detect and reject nested square brackets, for now
- implement segmentation of reorder element strings,
including type identification (escape, codepoint, uset)
- tests
For #7377
2023-06-30 08:49:07 -05:00
Steven R. Loomis
fbf6005bc4
Merge pull request #9084 from keymanapp/feat/developer-9050-utf32-epic-ldml
...
feat(developer,common,core): ldml UTF-32 literals in binary 🙀
2023-06-26 20:33:27 -05:00
Steven R. Loomis
30c4a89149
feat(developer): improve fix for UTF-32 single chars 🙀
...
- add some asserts
Fixes : #9050
2023-06-26 18:56:57 -05:00
Joshua Horton
2ac8a4503b
Merge branch 'master' into feature-esmodule-web-engine
2023-06-26 09:09:43 +07:00
dependabot[bot]
7d08b08fb2
chore(deps): bump semver from 7.3.8 to 7.5.2
...
Bumps [semver](https://github.com/npm/node-semver ) from 7.3.8 to 7.5.2.
- [Release notes](https://github.com/npm/node-semver/releases )
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-semver/compare/v7.3.8...v7.5.2 )
---
updated-dependencies:
- dependency-name: semver
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-24 12:37:06 +00:00
Steven R. Loomis
83bb7e6f12
Merge branch 'master' into feat/developer-9050-utf32-epic-ldml
2023-06-23 17:31:43 -05:00
Steven R. Loomis
5cd3447bfd
feat(developer): last fix for UTF-32 single chars 🙀
...
- elem
Fixes : #9050
2023-06-23 17:30:48 -05:00
Steven R. Loomis
de90644d7a
feat(core,common,developer): support UTF-32 single chars 🙀
...
- C++ side now
- updated tests
- refactored escaping code and squashed bugs
- still todo: basic.xml
For: #9050
2023-06-23 16:55:05 -05:00
Steven R. Loomis
8304de4ad9
feat(common): support UTF-32 single chars 🙀
...
- common and developer side
- needs C++ update and basic.xml
For: #9050
2023-06-23 14:11:26 -05:00
Steven R. Loomis
8a3a08dcf7
feat(core): update documentation and builder for uset 🙀
...
- pre-sort the uset items instead of copying the patterns and re-finding
- update docs on the uset subtable
#7377
2023-06-23 10:52:34 -05:00
Steven R. Loomis
248d423535
feat(common,developer,core): add uset section 🙀
...
- not emitted yet, basic scaffolding
- expanded type field in elem: str/char/set
For: #7377
2023-06-20 18:23:54 -05:00
Marc Durdin
cbc5b13034
fix(developer): keep kmc-kmn messages within namespace
...
Fixes #8998 .
kmc-kmn messages were broken down into sub-namespaces, but the range
overlapped the reserved namespace mask range. Fixed the message values,
added a new test to the verifyCompilerMessagesObject function to verify
that messages don't creep outside their namespace, and defined new
masks (in CompilerErrorSeverity enum... hmm) to help.
I opted to remove the leading `0` in the messages for kmc-kmn as I had
to correct a number of them anyway, but not the messages in remaining
units at this time (it's not an error, but just slightly misleading as
we only have 12 bits, not 16 to play with).
It is safe to reassign these messages as they were only assigned in 17.0
alpha.
2023-06-13 06:22:15 +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
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
ad1d4e734c
feat(common): fix bug in build-tran 🙀
...
For: #7377
2023-06-06 18:37:07 -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
Joshua A. Horton
718ca50b23
chore(web): Merge branch 'master' into chore/web/feature-esmodule-a17s14-mid-update
2023-06-06 12:37:15 +07:00
Steven R. Loomis
70fcea815a
feat(developer): tran support 🙀
...
- tran builder
For: #7377
2023-06-05 19:18:59 -05: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
9b177b2f00
feat(developer): section dependencies 🙀
...
- make explicit section dependencies, add a test
For: #7377
2023-06-02 15:19:00 -05: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
a281e1ac60
chore(common): remove redundant path
2023-06-02 11:43:25 +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