Commit graph

5430 commits

Author SHA1 Message Date
Joshua A. Horton
8d40bc3363 change(web): leverage tokenization to preserve punctuation and whitespace when predicting 2024-07-25 08:33:42 +07:00
Joshua A. Horton
ef4089d6dc chore(web): pulls forward some changes from child branch 2024-07-25 08:10:34 +07:00
Eberhard Beilharz
5552fdd5ad
chore(web): expose util.ts as separate sub-export
The exports of the `util.ts` can now be imported as
`@keymanapp/common-types/utils`. Those methods are used by developer.
We still export the `Uni_IsSurrogate*` methods in `main.js` because they
are needed by the keyboard-processor, but exporting everything would
increase the size of the resulting `keymanweb.js`. Doing it this way
keeps the size the same.
2024-07-24 17:33:48 +02:00
rc-swag
9f72febff8 feat(windows): merge conflicts wip 2024-07-24 16:59:21 +10:00
Joshua A. Horton
965eeaf17b chore(common/models): renames added unit tests 2024-07-24 13:04:08 +07:00
Joshua A. Horton
d3c9a9f3f3 chore(web): minor cleanup for variable: let -> const 2024-07-24 12:15:18 +07:00
Joshua A. Horton
0f351943be chore(web): test name rework 2024-07-24 12:05:59 +07:00
Joshua A. Horton
854f53360f chore(web): minor test-name tweaks 2024-07-24 10:59:49 +07:00
Joshua A. Horton
d132eed84b change(web): alters test names 2024-07-24 10:54:48 +07:00
Joshua A. Horton
dc4aeccfdd refactor(web): refactor branch commit - extract common auto-test setup 2024-07-24 10:54:15 +07:00
Joshua Horton
f5f3c31548
Merge pull request #11970 from keymanapp/fix/web/no-post-revert-auto-accept
fix(web): prevents auto-accept immediately after reversion
2024-07-23 15:36:06 +07:00
Joshua Horton
a17e02a3d1
Merge pull request #11969 from keymanapp/fix/web/preserve-context-suggestion
fix(web): present a "keep" option when a context-altering suggestion is auto-selected
2024-07-23 15:35:57 +07:00
Marc Durdin
d6010ce8f9
Merge pull request #11957 from keymanapp/fix/developer/handle-auto-versioning-of-u_xxxx_yyyy
feat(developer): automatically detect version for `U_xxxx_yyyy` ids
2024-07-23 18:11:37 +10:00
Marc Durdin
05edc8a7ce
Merge branch 'master' into refactor/windows/cleanup-engine-logging 2024-07-23 17:29:55 +10:00
Joshua Horton
8d3aac2348
chore(web): apply code-simplifying suggestion
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-07-23 14:05:51 +07:00
Joshua Horton
1945965d8a
chore(web): apply suggestion
Co-authored-by: Marc Durdin <marc@durdin.net>
2024-07-23 12:24:22 +07:00
rc-swag
bf2d8f9491 chore(windows): Merge branch 'epic/windows-updates' into feat/windows/add-apply-now-update
# 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-23 15:03:36 +10:00
rc-swag
9b59a4a94b
Merge pull request #11995 from keymanapp/chore/merge-master-into-windows-updates
chore: merge master into windows-updates 💽
2024-07-23 14:53:09 +10:00
Joshua A. Horton
852b8e83f4 chore(web): improve auto-test references to globals in #11881 2024-07-23 08:28:23 +07:00
Eberhard Beilharz
98691e5759
change(web): improve casts
Addresses code review comment.
2024-07-22 19:31:56 +02:00
Eberhard Beilharz
6e41faec52
change(web): use different output directory for tests
Put production module and test modules in different output subdirectories.
This addresses code review comments.
2024-07-22 19:31:42 +02:00
Eberhard Beilharz
9de6818ed5
chore(web): output different build steps for keyboard-processor
This makes it easier to see which part of the build fails.
2024-07-22 18:36:58 +02:00
Joshua A. Horton
8f6c2d602d change(web): track whitespace-aware tokenization for context + correction-search caching 2024-07-22 10:30:52 +07:00
Joshua A. Horton
96185472f1 feat(web): add support for transform tokenization 2024-07-22 10:30:51 +07:00
Joshua Horton
714d590a9b
Merge pull request #11933 from keymanapp/fix/web/worker-unit-test-stability
fix(web): remedy unit-test stability issues
2024-07-22 09:05:28 +07:00
Sabine
cb31cebb33 feat(mac): remove dublicate #include 2024-07-19 12:09:16 +02:00
Joshua A. Horton
21d21fb8f4 change(common/models): change model tokenization to also tokenize whitespace 2024-07-18 11:32:09 +07: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
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
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
Joshua A. Horton
88ed20cbcb chore(web): fix typo in dummy-model config for suggestion-finalization tests 2024-07-11 16:09:31 +07: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
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
Joshua A. Horton
c30cc96f3c refactor(web): convert internal prediction methods to stateless format 2024-07-09 08:56:37 +07:00
Joshua Horton
913f0b4c67
Merge pull request #11866 from keymanapp/feat/web/auto-prediction
feat(web): add and enable auto-correction 📚
2024-07-08 14:37:57 +07:00
Joshua Horton
847077b419
Merge pull request #11875 from keymanapp/change/web/track-prediction-base-corrections
change(web): track the base correction for generated predictions 📚
2024-07-08 14:37:46 +07:00
Joshua Horton
479ea32dd0
Merge pull request #11870 from keymanapp/change/common/models/templates/trie-results-through-traversal
change(common/models/templates): rework Trie predict method to utilize traversals 📚
2024-07-08 14:37:36 +07:00
Joshua Horton
d84268a139
Merge pull request #11869 from keymanapp/feat/common/models/direct-lexicon-traversal
feat(common/models): support direct-child access for Trie node iteration 📚
2024-07-08 14:37:24 +07:00