Steven R. Loomis
e64f59613a
feat(core): ldml normalization 🙀
...
- split out 'process_key_string'
For: #9468
2023-10-12 10:10:51 -05:00
Steven R. Loomis
daa0523dde
feat(core): ldml normalization 🙀
...
- 0 steps forward, 4294967294 steps back
For: #9468
2023-10-10 19:01:14 -05:00
Marc Durdin
db76e2541d
chore: rename KM_KBP_ to KM_CORE_
2023-10-09 14:53:22 +07:00
Marc Durdin
ba5f18defd
chore: rename km_kbp_ to km_core_
2023-10-09 14:53:13 +07:00
Steven R. Loomis
9f033278d4
feat(core): marker validation 🙀
...
- validate marker number when going in or out of the context
#9119
2023-08-11 15:09:54 -05:00
Steven R. Loomis
2bf22c440d
feat(core): marker fixes per review comments 🙀
...
- simplify and improve context processing
For: #9119
Co-authored-by: rc-swag <58423624+rc-swag@users.noreply.github.com>
2023-08-10 13:30:29 -05:00
Steven R. Loomis
66ee68d2b3
Apply suggestions from code review
...
Co-authored-by: rc-swag <58423624+rc-swag@users.noreply.github.com>
2023-08-10 09:36:16 -05:00
Steven R. Loomis
c23303ee23
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-08-09 12:52:28 -05:00
Steven R. Loomis
f0c81687f6
feat(core): marker fixes per review comments 🙀
...
- move prepend_marker() to inline
- clear the string in context_to_string()
For: #9119
2023-08-09 12:51:35 -05:00
Steven R. Loomis
290bcede2f
feat(core): improve documentation on transform/marker processing loop 🙀
...
For: #9119
2023-08-04 16:12:02 -05:00
Steven R. Loomis
1480e4d934
feat(core): improve emit_text() marker processing loop 🙀
...
For: #9119
2023-08-04 16:03:13 -05:00
Steven R. Loomis
fbb874fbfe
feat(core): warning fix 🙀
...
For: #9119
2023-08-04 15:29:19 -05:00
Steven R. Loomis
a9badff183
feat(core): remove reference to CODE_DEADKEY 🙀
...
For: #9119
2023-08-04 15:21:38 -05:00
Steven R. Loomis
b80b43e1e9
feat(core): re-refactor transform processing logic 🙀
...
For: #9119
2023-08-04 15:20:00 -05:00
Steven R. Loomis
8f4cf8c24e
feat(core): refactor sentinel 🙀
...
- and break all the things
For: #9119
2023-08-03 18:52:53 -05:00
Steven R. Loomis
20d1aad679
feat(core): refactor char emit 🙀
...
- and add an assert that UC_SENTINEL doesn't go into the text stream
For: #9119
2023-08-03 17:39:09 -05:00
Steven R. Loomis
cd3116d7cb
feat(core): improve processing logic 🙀
...
- improve the ctxt managing logic a little bit.
- need to handle markers as markers, though.
#9119
2023-08-03 15:20:37 -05:00
Steven R. Loomis
c7881d99b2
Update core/src/ldml/ldml_processor.cpp
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-07-28 21:55:39 -05:00
Steven R. Loomis
875d59987a
chore(core): update documentation in transform logic and processor 🙀
...
- drop some unneeded variables also, should be no semantic change
For: #7375
2023-07-26 16:16:57 -05:00
Steven R. Loomis
0a2aa6c5ca
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-07-25 16:30:56 -05:00
Steven R. Loomis
bc378dcac6
feat(core): move transform processing to u32 🙀
...
- merge code paths…
#7375
2023-07-18 19:16:23 -05: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
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
d7e0c286e4
Update core/src/ldml/ldml_processor.cpp
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-06-23 10:32:33 -05:00
Steven R. Loomis
9ce4f0eaa8
fix(core): fix ldml enter 🙀
...
- pass unknown keys back to OS
#7377
2023-06-22 18:43:34 -05:00
Steven R. Loomis
6e97c40f26
fix(core): fix ldml backspace 🙀
...
- don't pop state->context() if we know it is empty
#7377
2023-06-22 18:09:53 -05:00
Steven R. Loomis
877070d07e
fix(core): fix ldml transforms 🙀
...
- document transform calling code in ldml_transform
- remove obsolete portions
- optimize keystroke code when no transforms are present
2023-06-22 17:55:18 -05:00
Steven R. Loomis
903fd7e82b
feat(core): transform fixes 🙀
...
- refactor matching per review comments
- move global fcn into class statics
#7377
2023-06-19 18:27:36 -05:00
Steven R. Loomis
c74be813b1
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-06-16 20:10:50 -05:00
Steven R. Loomis
c90c7aaa64
feat(core): non-regex implementation of tran 🙀
...
- some scaffolding for loading transforms
- add transform_test
- simple test, simple impl - non-regex, simple strings
- scaffolding for bksp
- bksp transform test, but disabled for now
For: #7377
2023-06-14 10:14:33 -05:00
Steven R. Loomis
46b4b7f5cc
feat(core): fixups to C++ side 🙀
...
- builds, passes tests for now
For: #7377
2023-06-06 18:38:44 -05:00
Steven R. Loomis
e1e5eea469
feat(core): ldml rename key2 to keys 🙀
...
- So in summary, since before #7532 basically keys was restructured, and the old 'keys' was moved into 'keys.kmap'.
#8069
2023-02-20 17:40:34 -06:00
Steven R. Loomis
8ea87aa828
feat(common): ldml: merge keys into key2 🙀
2023-02-16 12:29:19 -06:00
Steven R. Loomis
7c02ab85af
feat(core): ldml C++ feature support 🙀
...
- make ldml.cpp print FAILED on failure especially because of https://github.com/microsoft/vscode-cpptools/issues/487
- add vkey validation (#7135 )
- add disp validation
- fix: a latent bug in disp! disp.count was === vkey.count, oops. Fix and test cases.
For: #7985
2023-02-14 09:23:03 -06:00
Steven R. Loomis
57d4dfea75
Apply suggestions from code review
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-01-07 22:46:41 -06:00
Steven R. Loomis
2f44780e87
fix(core): ldml: add asserts to C++ 🙀
...
- found a logic bug in kmx_plus.cpp
Fixes #7984
2023-01-06 16:54:24 -06:00
Marc Durdin
920d22795c
chore(core): additional cleanup
2022-10-21 15:33:09 +11:00
Steven R. Loomis
fc554c4901
fix(core): xstring/utf32 review feedback
...
For: #7418
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2022-10-13 17:05:39 -05:00
Steven R. Loomis
ab0f2c1b24
feat(core): ldml: basic transforms, utf32 fixes 🙀
...
for #7234
2022-10-12 19:31:05 -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
eba0d12123
chore(core): refactor ldml_processor 🙀
...
- split out vkeys
for #7234
2022-10-12 17:21:32 -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
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
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
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
Steven R. Loomis
f3f498e923
fix(core): fix validators 🙀
...
- copy over asserts from 'old' code
#7136
2022-08-31 17:37:55 -05:00
Steven R. Loomis
90be01385b
chore(core): split out validators 🙀
...
#7136
2022-08-31 17:37:55 -05:00
Steven R. Loomis
f03abf2ea5
Update core/src/ldml/ldml_processor.cpp
...
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-08-29 17:23:17 -05:00
Steven R. Loomis
46d7c96823
fix(core): ldml: fix validator 🙀
...
- allow keys section to exactly fit in data size, as in #7140
2022-08-29 17:16:45 -05:00