Commit graph

27982 commits

Author SHA1 Message Date
Marc Durdin
39cd3bd5ad chore(developer): remove CompilerMessages stub and use KmnCompilerMessages 2024-07-21 15:50:10 +10:00
Marc Durdin
c5799502dd fix(developer): kmc-keyboard-info: use default version 1.0 if version information missing
Also add unit test.

Fixes: #11856
2024-07-21 15:41:22 +10:00
Marc Durdin
1f0d51eec5 feat(developer): add searching for message identifiers to kmc message
Fixes: #10875
2024-07-21 14:50:33 +10:00
Marc Durdin
9f4fc70c35 refactor(developer): rename verifyMinimumKeymanVersion
Fixes: #11966
2024-07-21 13:38:32 +10:00
Marc Durdin
8a0005599c feat(developer): automatically upgrade version when gestures are found in the touch layout
When gestures are found in the touch layout file, the compiler will now
automatically upgrade the version to 17.0, if no `store(&VERSION)` rule
is found. Also adds corresponding unit tests.

Fixes: #11961
2024-07-21 13:33:09 +10:00
Marc Durdin
e3134a1c0f feat(developer): handle automatic versioning of special key caps on normal keys
Special key caps on normal keys in touch layout files are supported with
Keyman 14.0 and later versions. Handle automatic determination of the
version number if `store(&VERSION)` is not present. Add corresponding
unit tests.

Fixes: #11960
2024-07-21 13:22:33 +10:00
Marc Durdin
56aafe5b42 chore(developer): add note on removed error id 2024-07-21 11:01:31 +10:00
Darcy Wong
02f80fdc04 Merge branch 'master' into chore/fv/12-11 2024-07-20 13:52:23 -05:00
Darcy Wong
2718f36c4e Merge branch 'master' into fv-all/keyboards-json 2024-07-20 13:51:46 -05:00
Keyman Server
49819bdca1
Merge pull request #11977 from keymanapp/auto/version-master-18.0.72
auto: increment master version to 18.0.72
2024-07-18 11:03:17 -07:00
Keyman Build Agent
2a0c5b980d auto: increment master version to 18.0.72 2024-07-18 14:02:44 -04:00
Darcy Wong
910cceb80e
Merge pull request #11974 from keymanapp/chore/crowdin-pt-update
chore(common): Update Crowdin strings for Portuguese
2024-07-18 08:47:01 -05:00
Dr Mark C. Sinclair
66b6fcfdf4 fix(developer): add four additional test cases to LineTokenType test, and remove unncessary prefix from two cases 2024-07-18 12:56:31 +01:00
Dr Mark C. Sinclair
caa3de138b fix(developer): add three more test cases to LineTokenType() test 2024-07-18 12:34:20 +01:00
Dr Mark C. Sinclair
3ea80a88d6 fix(developer): add LineTokenType test and initial three test cases 2024-07-18 11:52:57 +01:00
Dr Mark C. Sinclair
fbeeb3c5f0 chore(developer): Merge branch 'master' into fix/developer/correct-use-of-u16chr-when-second-parameter-could-be-null
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-07-18 11:06:07 +01:00
Dr Mark C. Sinclair
a398bb0b84 chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-2
# Keyman Conventional Commit suggestions:
#
# - Link to a Sentry issue with git trailer:
#     Fixes: _MODULE_-_ID_
# - Give credit to co-authors:
#     Co-authored-by: _Name_ <_email_>
# - Use imperative, present tense ('attach' not 'attaches', 'attached' etc)
# - Don't include a period at the end of the title
# - Always include a blank line before trailers
# - More: https://github.com/keymanapp/keyman/wiki/Pull-Request-and-Commit-workflow-notes
2024-07-18 11:00:45 +01:00
Joshua A. Horton
21d21fb8f4 change(common/models): change model tokenization to also tokenize whitespace 2024-07-18 11:32:09 +07:00
rc-swag
a9fd916c8a feat(windows): small refactor of sm wip 2024-07-18 09:58:22 +10:00
Darcy Wong
75164e3099 chore(common): Update Crowdin strings for Portuguese 2024-07-17 17:10:57 -05:00
rc-swag
440997289c chore(windows): remove QIT_VSHIFTDOWN QITSHIFTUP
QIT_VSHIFTDOWN and QIT_VSHIFTUP is no longer sent out in the windows
engine. This commit cleans up any rement references to these
2024-07-17 14:20:43 +10:00
Joshua A. Horton
2562fd268b chore(web): comment tweak 2024-07-17 10:38:38 +07:00
Joshua A. Horton
0e3259237c fix(web): improve handling of post-reversion suggestions 2024-07-17 10:37:58 +07:00
Joshua A. Horton
c491f10406 fix(web): prevents auto-accept immediately after reversion 2024-07-16 15:11:31 +07:00
Joshua A. Horton
6b4fc29a30 fix(web): present a "keep" option when a context-altering suggestion is auto-selected
Addresses part of #11963.
2024-07-16 12:25:20 +07:00
rc-swag
e1f4be9a3e fix(windows): check IM window will be in a visible location
The IM display call back is used to show the IM window. With this change
deadcode is removed and a check is made to ensure the IM window is
completley visible coordinates for the monitor that has focus. If not
it will be position close to where the caret in the application that has
focus.
2024-07-16 14:41:34 +10:00
Marc Durdin
72afc6d52a test(developer): Add tests for automatic versioning of notany() with context()
Adds a unit test to verify that automatic versioning of notany() in
conjunction with context() is correctly managed. Removes compiler error
that could never be generated (replace with safety-check exception).

Fixes: #11959
2024-07-16 05:20:37 +10:00
Marc Durdin
719d050d86 feat(developer): handle automatic versioning of chiral modifiers
Adds support for determining minimum version 10.0 when chiral modifiers
or state modifiers are found in virtual keys, e.g. `[LCTRL K_A]`,
`[CAPS K_A]`, and corresponding unit tests.

Fixes: #11958
2024-07-16 04:44:44 +10:00
Marc Durdin
3497e97b00 feat(developer): automatic version detection for U_xxxx_yyyy ids
Currently, automatic Keyman minimum version determination works for all
features in Keyman keyboards _except_ `U_xxxx_yyyy` touch key
identifiers.

This change adds the automatic keyboard versioning functionality to the
keymanweb compiler as well, following the pattern that's in kmcmplib.

This makes the `store(&version)` line completely optional, and it may
be possible to deprecate it in future versions of Keyman Developer.
2024-07-13 07:28:18 +10:00
Dr Mark C. Sinclair
003c02a22a fix(developer): update comment to mention issue #11955 2024-07-12 16:24:42 +01:00
Dr Mark C. Sinclair
917dcf96f4 fix(developer): add additional test cases for ProcessEthnologueStore() test 2024-07-12 16:18:25 +01:00
Dr Mark C. Sinclair
e8a5ff5d88 fix(developer): add initial seven test cases to ProcessEthnologueStore test 2024-07-12 12:28:08 +01:00
Joshua A. Horton
e4d9cdc865 refactor(web): spin off method for correction-search probability-thresholding check
The refactor allows this logic to be unit-tested far more easily.  We additionally leverage this fact and add corresponding unit-tests within this PR.
2024-07-12 09:00:56 +07:00
Dr Mark C. Sinclair
f4717c8e89 fix(developer): remove unnecessary fixture class 2024-07-11 12:07:34 +01:00
Dr Mark C. Sinclair
b6eb453287 fix(developer): add test cases for multiple delimiters 2024-07-11 11:55:53 +01:00
Dr Mark C. Sinclair
8497150239 fix(developer): delimited string and delimiters at end test cases for u16tok_char_delim 2024-07-11 11:35:18 +01:00
Dr Mark C. Sinclair
a80883328a fix(developer): additional assertions on ctx 2024-07-11 11:29:00 +01:00
Dr Mark C. Sinclair
24c67df0f9 fix(developer): edits for consistency in u16cmp assertions 2024-07-11 11:08:34 +01:00
Dr Mark C. Sinclair
a486dd7842 fix(developer): edits for consistency in use of str buffer and setting of context before test cases 2024-07-11 11:05:55 +01:00
Dr Mark C. Sinclair
6a1ffb7993 fix(developer): remove duplicate assertion 2024-07-11 10:47:37 +01:00
Dr Mark C. Sinclair
629ae86ddc fix(developer): add u16chr_compare_to_strchr test 2024-07-11 10:35:21 +01:00
Joshua A. Horton
88ed20cbcb chore(web): fix typo in dummy-model config for suggestion-finalization tests 2024-07-11 16:09:31 +07:00
Dr Mark C. Sinclair
5bdd877c5f fix(developer): add two text after trailing spaces test cases 2024-07-11 10:03:33 +01:00
Joshua A. Horton
63842056d5 feat(web): add unit tests for case-detection & handling 2024-07-11 13:02:26 +07:00
Joshua A. Horton
47a12c3375 feat(web): add unit tests for prediction lookup component 2024-07-11 10:28:57 +07:00
Joshua A. Horton
682bb4676c feat(web): add unit testing for suggestion finalization 2024-07-11 10:26:11 +07:00
Joshua A. Horton
7fd30449f3 feat(web): add unit testing for suggestion deduplication 2024-07-11 10:22:01 +07:00
Joshua A. Horton
6d223ce678 chore(web): fix formatting 2024-07-11 10:21:07 +07:00
Joshua A. Horton
05e887e5db feat(web): add unit tests for suggestion-similarity detection
Also makes small tweaks to production code that facilitate unit-test comparisons.
2024-07-11 10:13:19 +07:00
Joshua A. Horton
dfda3107f7 fix(common/models): use explicit undefined check for transformId copy op 2024-07-11 10:12:49 +07:00