Commit graph

4331 commits

Author SHA1 Message Date
Sabine
2907d4cbe0 chore(developer): change #include paths ../ ; excange km_kbp_cp with KMX_WCHAR; change some variable names 2023-01-13 17:16:42 +01:00
Sabine
7452740f53 chore(developer): restored kmcompxtest 2023-01-12 19:38:43 +01:00
Sabine
9cd591aebf chore(developer): change include paths ../ 2023-01-12 15:40:12 +01:00
Sabine
e2489737be chore(developer): remove kmx-file; NamedCodeConstants: rename variables, set const variables for buf sizes, brackets in for-loops 2023-01-12 14:05:38 +01:00
Sabine
c81e35ef6d chore(developer): use PKMX_DWORD/PKMX_WCHAR instead of LPKMX_DWORD/LPKMX_WCHAR; use PKMX_STR instead of char* in CompilerMessageProc 2023-01-10 16:49:18 +01:00
Sabine
b599c4529e chore(developer): note about func.call_js; change all "VESION x.y " to "VESION x.y or higher" ; rename flag for kmcompx to flag_use_new_kmcomp 2023-01-10 16:45:18 +01:00
Sabine
8f3c9552eb chore(developer): remove CERR_CallIsProfessionalFeature, CERR_IncludeCodesIsProfessionalFeature, CERR_MnemonicLayoutIsProfessionalFeature 2023-01-10 16:38:41 +01:00
Sabine
b06d4c4aad chore(developer): remove some unnecessary CERR_ tests 2023-01-10 16:30:21 +01:00
Steven R. Loomis
cbb5af2ae7 feat(core): ldml: Drop padding: common,core 🙀
- also add some checking in the builder
- add a Constants.str_section_id() for debugging
- update basic.txt

For: #7987
2023-01-09 16:35:47 -06:00
Steven R. Loomis
e4799d2498
Merge pull request #7956 from keymanapp/fix/core/maqtugha
fix(core): ldml: fix spelling of maqtugħa 🙀
2023-01-07 22:54:48 -06:00
Steven R. Loomis
30865fbb1b Merge remote-tracking branch 'upstream/feature-ldml' into fix/core/7569-unicode-escaping-epic-ldml 2023-01-07 22:38:42 -06:00
Steven R. Loomis
7f92eb3b84 Merge branch 'feature-ldml' into fix/core/7569-unicode-escaping-epic-ldml 2023-01-07 22:36:32 -06:00
Steven R. Loomis
d552a46104
Merge pull request #7630 from keymanapp/feat/core/7532-layr-epic-ldml 2023-01-06 17:40:06 -06:00
Steven R. Loomis
9f8b0352a2 fix(developer): ldml: updates per code review 🙀
- …/key2/flicks.xml deleted empty test file
- test-key2.ts: reinstated an assert

For #7532
2023-01-06 15:51:56 -06:00
Steven R. Loomis
564f98cc30
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-01-06 11:46:17 -06:00
Steven R. Loomis
b1191bb69e fix(developer): ldml: add escaping to key2 section 🙀
- also add functions to the ListItem class
- also fix a bug in ListItem.toString()
- add test cases

Fixes #7569
2023-01-05 16:02:08 -06:00
Steven R. Loomis
d68999e0ef fix(common): escaping: only unescape on some attributes 🙀
- keys:  key.to
- disp: display.to, display.display
- disp: displayOptions.baseCharacter

The rest will have to wait for downstream of PR #7630

For: #7569
2023-01-05 13:46:07 -06:00
Steven R. Loomis
1a8ee0b07d fix(developer): ldml: add escaping 🙀
- common util unescapeString with its own tests
- add a test case using the disp element

Fixes #7569
2023-01-05 13:46:04 -06:00
Steven R. Loomis
42b4ffe40d
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-01-04 10:14:04 -06:00
Steven R. Loomis
015e7185a6 chore: merge master into feature-ldml 2023-01-02 13:44:21 -06:00
Steven R. Loomis
f7f40a2bb8 fix(core): ldml: fix spelling of maqtugħa 🙀
- maqtua should be maqtugħa (cut) but spelled as maqtugha where used as an NMTOKEN
2022-12-30 17:01:48 -06:00
Steven R. Loomis
ac461e97b8 fix(developer): ldml: merge fixes: fix scope of JSZip in the test 🙀
- JSZip() needs to be in an inner function otherwise the single zip grows and grows
- also don't read the kps version when building the kmp

For #7042
2022-12-22 14:31:49 -06:00
Steven R. Loomis
ec9a5952fc fix(developer): ldml: merge fixes: fix scope of JSZip 🙀
- JSZip() needs to be in an inner function otherwise the single zip grows and grows

For #7042
2022-12-22 14:20:39 -06:00
Steven R. Loomis
80b764174a
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-12-22 13:56:08 -06:00
Steven R. Loomis
05656ac499 feat(core): ldml: fix off-by-one on section count 🙀
- yes, sect was counting itself. Too much automation!
- disable layr/key2/list loading in C++ for now

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-12-22 13:12:08 -06:00
Marc Durdin
905fcd1913
chore: Apply review comments 2022-12-22 08:07:42 +11:00
Steven R. Loomis
343f234a8e feat(core): ldml: updates to basic.txt and builders 🙀
- strs and ALL TESTS pass

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-12-20 19:16:41 -06:00
Steven R. Loomis
63fa53a028 feat(core): ldml: updates to basic.txt and builders 🙀
- layr now passes comparison

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-12-20 17:05:29 -06:00
Sabine
081fa7deb9 chore(developer): use namespaces in kmcmplib (except for in dllexport-functions) 2022-12-20 11:31:08 +01:00
Steven R. Loomis
47a9d16be9 chore(core): updates to kmc-package after merge 🙀
Try to get this to pass tests again

test data:
- put withfolders.qaa.sencoten.model in the right spot
- add kmp.json as it seems to be included
- remove copyLocation: 0 as kmp-compiler drops it

test-package-compiler:
- improve the jszip-contents test
- assume kmp.json is included in the zip
- bug: withfolders.qaa.sencoten.model.js and example.qaa.sencoten.model.js show up in an unrelated KPS. But, include for now.

KmpCompiler
- attempt to pull version from kps.info.version: comments to the contrary, some kps files do not have kmxes.
- map backslash to forward slash so that relative path resolution works

For #7042
2022-12-19 19:50:19 -06:00
Marc Durdin
74f0fe2d08 fix(developer): force ES3 code generation for LMs
Fixes #7926.

Android 5.0 (Chrome 37) only supports ES3. Thus, we should transpile our
lexical models to ES3 rather than ES2015, for now at least.

For example, this forces constructs such as `const` to be replaced with
`var`.
2022-12-19 14:48:05 +11:00
Steven R. Loomis
b036fc5840 feat(core): ldml: basic: updates to basic.txt for layr 🙀
- key2 now passes!
- starting on layr

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #753
2022-12-16 17:53:14 -06:00
Steven R. Loomis
bc14f18460 Merge remote-tracking branch 'origin/master' into chore/core/mergemaster4-epic-ldml 2022-12-15 17:55:13 -06:00
Steven R. Loomis
eb8c4dea7a feat(core): ldml: basic: updates to basic.txt for layr 🙀
- more key2 chan ges

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #753
2022-12-15 15:27:58 -06:00
Sabine
105d6f3fba chore(developer): solve merge conflicts in namespaces 2022-12-15 01:47:34 +07:00
Sabine
6a8881f8f8 chore(developer): more changes for using namespaces 2022-12-14 11:58:07 +07:00
Sabine
597462ab72 chore(developer): introduce namespace kmcmp instead of different filenames 2022-12-13 16:05:11 +07:00
Steven R. Loomis
a126a83f6a Merge branch 'feature-ldml' into feat/core/7532-layr-epic-ldml 2022-12-12 10:00:53 +07:00
Marc Durdin
2375a81941 fix(developer): kmc-model esbuild node_modules path 2022-12-10 08:43:06 +07:00
Sabine
d067324ccf chore(developer): add flag flag_use_kmcompx as switch to use old code (kmcmpdll) or new code kmcmplib 2022-12-08 16:28:15 +07:00
Sabine
d23b7b787e chore(developer):repeatedBEgin plus rename functions to prevent same names in kmcmpdll and kmcmplib 2022-12-04 16:38:27 +07:00
Sabine
c3b1af78c0 chore(developer): addCompilerMsg for RepeatedBegin 2022-12-04 16:32:07 +07:00
Steven R. Loomis
30761fec01 feat(core): ldml: basic: updates to basic.txt for layr 🙀
- doc fix also
- key2 still to go

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #753
2022-12-03 04:55:52 +08:00
Marc Durdin
eaae1c3774
Merge pull request #7820 from keymanapp/fix/developer/7810-encodeurl-broken
fix(developer): EncodeURL was not handling spaces
2022-12-01 10:55:48 +11:00
Marc Durdin
1208bf599f
Merge pull request #7830 from keymanapp/fix/developer/7829-onlineupdate-shutdown-thread
fix(developer): OnlineUpdate crash on shutdown
2022-12-01 10:23:53 +11:00
Joshua A. Horton
c5f90d931c chore(web): Merge branch 'chore/web/top-level-build-script-rework' into change/web/reorg-source-src-reorg 2022-11-30 15:38:57 +07:00
Joshua A. Horton
4a96cdb0cb chore(web): cleanup per PR review 2022-11-30 15:35:18 +07:00
Steven R. Loomis
f150a96a63 feat(core): ldml: basic: WIP 🙀
For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-11-29 18:33:13 -06:00
Sabine
9f5b6c83b7 Merge branch 'refactor/developer/6026-kmcompx-compiler-cross-platform-part-2-NEW_VERSION' of https://github.com/keymanapp/keyman into refactor/developer/6026-kmcompx-compiler-cross-platform-part-2-NEW_VERSION 2022-11-29 15:33:16 +07:00
Sabine
0d3200346f chore(developer): include BEGIN_LINE (repeated Begin) 2022-11-29 14:55:46 +07:00