Commit graph

4256 commits

Author SHA1 Message Date
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
Marc Durdin
41451d9cc9 chore(developer): link kmcmpdll to kmcmplib 2022-11-29 13:48:39 +07:00
Marc Durdin
73966fe477 chore(developer): add build.sh for kmcmplib 2022-11-29 13:39:47 +07:00
Marc Durdin
c0cbd157e2 chore(developer): Merge branch 'feature-kmcompx' into refactor/developer/6026-kmcompx-compiler-cross-platform-part-2-NEW_VERSION 2022-11-29 13:20:28 +07:00
Marc Durdin
875f2c459c chore(developer): start kmcmpdll link to kmcmplib 2022-11-29 13:06:12 +07:00
Marc Durdin
14e5d44e22 chore(developer): make kmcmplib a static library 2022-11-29 12:59:21 +07:00
Marc Durdin
16602babd7 chore: tweak unit test, error messages, and paths 2022-11-29 12:37:51 +07:00
Sabine
29c13897ff chore: meson build for kmcmplib 2022-11-29 10:40:07 +07:00
Sabine
96878c43f7 chore: more cleanup 2022-11-29 10:24:53 +07:00
Sabine
0ebb7c37f7 chore: copy files back 2022-11-29 10:19:07 +07:00
Sabine
2b0fb45477 chore: use ifdef for vkeys 2022-11-29 10:12:07 +07:00
Sabine
08909fe70c chore: commit kmcompx-files 2022-11-29 10:01:19 +07:00
Sabine
577fe4e870 chore: reorganize 2022-11-29 09:53:18 +07:00
Marc Durdin
182a1fcb41 chore: rename tike internally 2022-11-28 19:52:00 +07:00
Marc Durdin
97c210b361 chore: rename tike internally 2022-11-28 19:51:38 +07:00
Marc Durdin
fb245bfbeb fix(windows): lower case filenames for projects
Fixes #7828.

Moves all projects to lower case filenames so that we don't end up with
filename conflicts in symbol servers.
2022-11-28 19:29:48 +07:00
Marc Durdin
529278c045 fix(windows): lower case filenames for projects
Fixes #7828.

Moves all projects to lower case filenames so that we don't end up with
filename conflicts in symbol servers.
2022-11-28 19:28:14 +07:00
Joshua A. Horton
448fa44715 chore(web): Merge branch 'chore/web/top-level-build-script-rework' into change/web/reorg-source-src-reorg 2022-11-28 10:21:48 +07:00
Joshua A. Horton
f8b763b270 chore(web): Merge branch 'master' into chore/web/top-level-build-script-rework 2022-11-28 10:06:16 +07:00
Marc Durdin
2c6c6f107b fix(developer): OnlineUpdate crash on shutdown
Fixes #7829.

The online update check could crash on shutdown because the thread
destructor would run from the wrong thread. This caused the main form
destruction, which happens if the user chooses to install the update,
to be triggered from the worker thread, leading to much pain.
2022-11-28 09:56:27 +07:00
Marc Durdin
d2e1a41d06 fix(developer): remove missing files from MRU list
Fixes #7808.

If a project is moved, then the MRU, which has absolute path names, will
probably have references to files that don't exist. Rather than leave
these in the list, to be opened and potentially recreated in the wrong
place, we should just remove them entirely.
2022-11-26 07:31:16 +07:00
Steven R. Loomis
e98835d35b feat(core): ldml: updates to layr 🙀
- re-redo of layr
- most tests now pass
- updated layr builder

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-11-25 18:17:45 -06:00
Marc Durdin
6eefb3a771 fix(developer): EncodeURL was not handling spaces
Fixes #7810.

This addresses a regression introduced in #7631, where URL parameters
with spaces would be encoded into `+` instead of `%20`. Looking a bit
deeper at the Delphi `TNetEncoding.URL.Encode` function I realised that
it was entirely inadequate. Some guy named Marc Durdin wrote a blog a
good few years ago about the problem, and that's what I ended up using.

This encoding issue caused filenames with spaces (by default, project
paths in Developer have spaces) to give a 404 when editing a touch
layout, which meant that the touch keyboards could not be saved.

Also fixes KEYMAN-DEVELOPER-74, where the + encoding caused multiple
entries to appear in the filename cache.

Amusing to Google this problem, find solid answer on SO, which pointed
to my very own blog. Embarrassing that my own code didn't already
include my own fix.

A secondary issue is also fixed here, where request parameters were
double-decoded for formencoded POST requests. The fix for broken URL
encodings was only required for GET requests.

This also showed up in KEYMAN-DEVELOPER-74, with double-encoded paths
being registered as source files.
2022-11-26 07:09:53 +07:00
Steven R. Loomis
273075c1f3 feat(core): ldml: updates to layr compiler 🙀
- layr compiler working

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-11-25 15:55:11 -06:00
Steven R. Loomis
00442f5edd feat(core): ldml: updates to key2 and other stuff 🙀
- passes all but fixtures

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-11-23 18:48:45 -06:00
Steven R. Loomis
c6b1be4ed7 feat(core): ldml: updates to key2 and other stuff 🙀
- compiles again

For feat(developer): ldml: include all LDML data in kmx+ 🙀 #7532
2022-11-23 18:43:35 -06:00