Commit graph

33096 commits

Author SHA1 Message Date
Joshua A. Horton
0e3259237c fix(web): improve handling of post-reversion suggestions 2024-07-17 10:37:58 +07:00
Sabine
a9479927c3 feat(mac): still layout stuff 2024-07-16 10:50:02 +02:00
Sabine
927154cebb # This is a combination of 8 commits.
# This is the 1st commit message:

feat(mac): remove unused func

# This is the commit message #2:

feat(mac): edit, remove unused code

# This is the commit message #3:

feat(mac): more edit

# This is the commit message #4:

feat(mac): comments keymap

# This is the commit message #5:

feat(mac): comments importRules

# This is the commit message #6:

feat(mac): comments

# This is the commit message #7:

feat(mac): more comments

# This is the commit message #8:

feat(mac): adapt data types return para
2024-07-16 10:43:48 +02: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
Sabine
96870c4926 feat(mac): comments from all other PR 2024-07-11 13:56:24 +02: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
Joshua A. Horton
dc80b1c2df feat(web): extend unit-test oriented dummy model 2024-07-11 09:44:13 +07:00
Shawn Schantz
333de576c8 change(mac): remove test code 2024-07-10 21:45:18 -04:00
Sabine
70b232a95b feat(mac): comments from #9384 2024-07-10 15:59:57 +02:00
Darcy Wong
9a58ffcad9 fix(oem/fv): Update keyboard versions from fv_all.kmp 12.14 2024-07-10 08:57:03 -05:00
Darcy Wong
b3626c8762 Merge remote-tracking branch 'origin/master' into chore/fv/12-11 2024-07-10 08:14:21 -05:00
Sabine
48f98cdce9 feat(mac): format documents 2024-07-10 12:54:38 +02:00
Sabine
1c0a44f2b0 feat(mac): add module, fun-comments 2024-07-10 12:31:26 +02:00
rc-swag
eb17115058 fix(windows): add comments for clarity 2024-07-10 10:43:08 +10:00
Darcy Wong
4c5b6213d1 fix(android/engine): Parse keyboards.json for FirstVoices app 2024-07-09 15:05:23 -05:00
rc-swag
3998c8b75c fix(windows): make KeymanIsTextSelected Private
Only call GetSelection once, pace the parameters through to the
GetLeftSelection in order to get the results needed for
KeymanIsTextSelected
2024-07-09 22:39:01 +10:00
Dr Mark C. Sinclair
1d1ff900a2 chore(developer): Merge branch 'master' into fix/developer/11937-correct-handling-of-trailing-spaces-by-GetDelimitedString
# 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-09 12:13:11 +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
Joshua A. Horton
0e1d6f433e fix(web): disable .only mode for auto-testing 2024-07-09 14:20:14 +07:00
Joshua A. Horton
b1d1dfa9f4 fix(web): improve auto-select for same-key suggestions
This allows the auto-select process to ignore suggestions that don't have an exact key-match when the best candidate does have an exact key-match
2024-07-09 11:52:04 +07:00
Joshua A. Horton
f371165402 feat(web): add unit tests for predict auto-selection method
Fixes: #11935
2024-07-09 10:47:21 +07:00