Commit graph

3506 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
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
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
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
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
Dr Mark C. Sinclair
5bdd877c5f fix(developer): add two text after trailing spaces test cases 2024-07-11 10:03:33 +01:00
Dr Mark C. Sinclair
cdb8fad6cb fix(developer): add multi-word test case 2024-07-09 12:05:19 +01:00
Dr Mark C. Sinclair
0b548a1894 fix(developer): add documentation comment to GetDelimitedString() 2024-07-09 12:01:27 +01:00
Dr Mark C. Sinclair
2b4bd1c01a fix(developer): add comment 2024-07-09 11:33:28 +01:00
Dr Mark C. Sinclair
2c0fab3825 fix(developer): add spaces before and after close delimiter case, plus several no flags cases 2024-07-09 11:19:20 +01:00
Dr Mark C. Sinclair
7e572e2ee6 fix(developer): add test cases for spaces after the close delimiter 2024-07-09 10:21:54 +01:00
Dr Mark C. Sinclair
4a9c459292 fix(developer): delete close delimiter when there are trailing spaces, plus test cases 2024-07-08 18:32:19 +01:00
Dr Mark C. Sinclair
e00eb1baa1 fix(developer): add test cases for spaces before argument 2024-07-08 17:08:49 +01:00
Dr Mark C. Sinclair
1ac8b8fea5 fix(developer): add multi-character and leading space test cases 2024-07-08 17:05:16 +01:00
Dr Mark C. Sinclair
73841d05cd fix(developer): add no open, no close delimiter, and no argument test cases 2024-07-08 16:40:51 +01:00
Dr Mark C. Sinclair
f7311fe59c fix(developer): add initial GetDelimitedString test 2024-07-08 16:22:46 +01:00
Dr Mark C. Sinclair
017d01f8c3 chore(developer): add additional whitespace test cases to GetXStringImpl_type_o test 2024-07-08 11:53:58 +01:00
Dr Mark C. Sinclair
60d67970ba chore(developer): add additional whitespace test cases to GetXStringImpl_type_i if test 2024-07-08 11:45:14 +01:00
Dr Mark C. Sinclair
340d4291b4 chore(developer): add additional whitespace test cases to GetXStringImpl_type_b baselayout test 2024-07-08 11:27:14 +01:00
Dr Mark C. Sinclair
4271a842d8 chore(developer): clarify comments, replace space with comma in one index test case 2024-07-08 11:14:03 +01:00
Dr Mark C. Sinclair
1b6f9de258 chore(developer): add additional whitspace test cases to GetXStringImpl_type_a test 2024-07-08 11:07:04 +01:00
Dr Mark C. Sinclair
6f4e8a1366 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-08 10:01:08 +01:00
Marc Durdin
bf5b5af150 chore(developer): add more delimiter tests for u16tok 2024-07-05 18:10:18 +10:00
Marc Durdin
b15b10c9ec
Merge branch 'master' into fix/developer/11814-kmx_u16-buffer-overrun 2024-07-05 18:05:27 +10:00
Dr Mark C. Sinclair
82d041aa4a fix(developer): combine tests from #11910 and this PR 2024-07-04 11:21:54 +01:00
Dr Mark C. Sinclair
7efd46f5f3 chore(developer): merge #11910 into #11894
Merge branch 'fix/developer/11814-kmx_u16-buffer-overrun' into fix/developer/correct-use-of-u16chr-when-second-parameter-could-be-null
2024-07-04 11:05:56 +01:00
Dr Mark C. Sinclair
34859c3020 fix(developer): change file/class nomenclature to match #11910 2024-07-04 10:51:48 +01:00
Marc Durdin
63ca95ed76 fix(developer): prevent invalid values in targets store
Fixes: #11773
2024-07-03 08:33:15 +10:00
Dr Mark C. Sinclair
728537906b chore(developer): Merge branch 'master' into test/developer/kmcmplib-compiler-unit-tests-2 2024-07-02 17:20:16 +01:00
Marc Durdin
69d8b30d3b fix(developer): prevent buffer overrun in u16tok
Relates-to: #11814
See-also: #11894
2024-07-02 21:46:25 +10:00