Commit graph

5430 commits

Author SHA1 Message Date
Joshua Horton
6ecb4619c5
Merge pull request #11868 from keymanapp/feat/common/models/lexicon-traversal-probs
feat(web): provide lexicon probabilities directly on the search path 📚
2024-07-08 14:37:14 +07:00
Joshua A. Horton
8eba5d0d45 fix(web): remedy unit-test stability issues
Fixes: #11844
2024-07-08 13:45:08 +07:00
Joshua A. Horton
946ec38ad4 chore(web): incorporate suggestions, address concerns from PR review 2024-07-08 10:43:40 +07:00
Joshua A. Horton
067d033d0d chore(web): Merge branch 'change/common/models/templates/trie-results-through-traversal' into fix/web/low-probability-exact-matching 2024-07-08 10:29:35 +07:00
Joshua A. Horton
a7365abd66 docs(common/models): comment format adjustment per PR review 2024-07-08 10:26:40 +07:00
Joshua A. Horton
9e2f0b16a4 chore(common/models/templates): Merge branch 'feat/common/models/direct-lexicon-traversal' into change/common/models/templates/trie-results-through-traversal 2024-07-08 10:25:35 +07:00
Joshua A. Horton
dc7c1f1923 chore(common/models): makes minor adjustments per review 2024-07-08 10:15:57 +07:00
Joshua A. Horton
211c04a83e chore(common/models): Merge branch 'feat/common/models/lexicon-traversal-probs' into feat/common/models/direct-lexicon-traversal 2024-07-08 10:15:08 +07:00
Joshua A. Horton
14b453c2a6 change(common/models): enact changes per PR review 2024-07-08 09:39:54 +07:00
Joshua A. Horton
877cd9767d
fix(common): add workaround for divergence of EventEmitter3 from node's version
Node's version has special behavior for events named 'error' - if no handler, it auto-throws.  EventEmitter3 does not include this.
2024-07-04 20:49:31 +02:00
Eberhard Beilharz
afe25eda24
change(web): remove support for es5
Fixes: #11878
2024-07-04 20:49:30 +02:00
Marc Durdin
6fe81cb256
Merge branch 'master' into refactor/windows/cleanup-engine-logging 2024-07-04 10:23:00 +10:00
Marc Durdin
4f39c75ae7
Merge pull request #11906 from keymanapp/refactor/windows/11904-merge-keyman32-keyman64
refactor(windows): merge keyman64 build into keyman32
2024-07-04 06:58:19 +10:00
Marc Durdin
1be73a9c2e refactor(windows): clean up logging
* Remove unused parameters from SendDebugMessage functions
* Add SendDebugEntry and SendDebugExit functions for tracking
  function entry/exit
* Add indenting and function names to log entries
* Remove unused debug functions
* Eliminate now-unused hwnd parameter in initialization functions
* Replace Log,LogEntry,LogExit functions with SendDebug equivalents in
  kmtip

Many functions now have SendDebugEntry/SendDebugExit (or
return_SendDebugExit) pairs. It is important to SendDebugExit on all
returns from a function to keep the log indent depth consistent. In some
cases I chose not to add these logging calls, e.g. on frequently called
functions such as the message hooks.
2024-07-03 21:28:37 +10:00
Joshua Horton
2f3a0cbf14
Merge pull request #11867 from keymanapp/refactor/common/models/priority-queue-as-util
refactor(common/models): move TS priority-queue implementation to web-utils 📚
2024-07-03 08:13:53 +07:00
Marc Durdin
643ebca530 refactor(windows): merge keyman64 build into keyman32
Merges the build settings for keyman64.dll vc++ project into the
keyman32.dll project, so they are both built from the same project, in
preparation for ARM support, to minimize repetition in the source tree.

There should be no material differences to the built libraries.

Also cleans up some noise in keyman32.vcxproj which made it easier to
verify the changes.

Fixes: #11904
2024-07-02 17:00:38 +10:00
Joshua A. Horton
f84c76cdc7 refactor(web): extract the correct-and-raw-predict blocks into their own method 2024-07-02 10:40:57 +07:00
Joshua A. Horton
5fb8762b6b docs(web): adds documentation for spun-off methods 2024-07-02 10:31:24 +07:00
Joshua A. Horton
7c7148e22e refactor(web): spin off deduplication, suggestion-similarity sections 2024-07-02 10:19:57 +07:00
Joshua A. Horton
fccaf4eb61 change(web): changes for clearer review of next PR in sequence
Because git context-detection is sometimes limited.
2024-07-02 10:08:51 +07:00
Joshua A. Horton
5fc4027251 refactor(web): extract suggestion-finalization block into its own function 2024-07-02 09:43:56 +07:00
Joshua A. Horton
8d9d39fc59 change(web): enforce single auto-selection 2024-07-02 08:27:31 +07:00
rc-swag
47d3d26301 chore(windows): Merge branch 'epic/windows-updates' into feat/windows/add-apply-now-update 2024-06-29 16:04:45 +10:00
Joshua A. Horton
ae02e7d110 change(web): perform suggestion dupe-detection based on applied string, not displayAs 2024-06-28 14:13:08 +07:00
Joshua A. Horton
0e8816c263 feat(web): check for low-probability exact + exact-key correction matches 2024-06-28 12:51:16 +07:00
Joshua A. Horton
b473ada3d3 change(common/models): directly return predictions that match keyed prefix for Trie models 2024-06-28 12:51:14 +07:00
Joshua A. Horton
b2b088ac6e fix(web): show reversion after backspace following key-based auto-apply 2024-06-27 10:22:43 +07:00
Joshua A. Horton
017d0e4521 feat(web): apply auto-correct suggestions when applicable 2024-06-27 09:51:31 +07:00
Joshua A. Horton
7bda1e5d93 feat(web): determine suggestion to use for auto-correct 2024-06-27 09:51:30 +07:00
Joshua A. Horton
60772bfdfa chore(web): minor cleanup after generalizing fix with prior commit 2024-06-27 09:50:40 +07:00
Joshua A. Horton
34986503c9 fix(web): patch-up automated tests that utilize dummy models
The dummy model never set a prediction's probability on the suggestion, so it never emitted p, lexical-p, or correction-p values before this branch's changes.
2024-06-27 09:49:09 +07:00
Joshua A. Horton
ba5b0f6c91 change(web): track the base correction when generating predictions 2024-06-26 14:48:50 +07:00
Joshua A. Horton
3423c63bc0 change(web): avoid use of Array.from with iterators (in TrieModel.predict) 2024-06-26 11:48:20 +07:00
Joshua A. Horton
f3cedac5e0 change(web): better div-by-zero fudge factor for fat-fingering 2024-06-24 09:26:22 +07:00
Joshua Horton
7f55d74ee6
Merge pull request #11265 from keymanapp/feat/web/layer-processing-deferral
feat(web): optimization via lazy preprocessing of keyboard touch-layout info 
2024-06-24 08:01:48 +07:00
Joshua A. Horton
fe31917bb5 change(common/models/templates): predict methods now utilize traversals 2024-06-21 15:15:15 +07:00
Joshua A. Horton
aef1dacc59 fix(common/models): traverse by key, not true wordform 2024-06-21 15:12:37 +07:00
Joshua A. Horton
e0892deccf fix(common/models/templates): unit test patchup post maxP -> p 2024-06-21 15:12:37 +07:00
Joshua A. Horton
6de595394b docs(common/models/templates): a bit more for traversal child method 2024-06-21 15:12:36 +07:00
Joshua A. Horton
64efabbc49 change(common/models/templates): traversal on Trie 2024-06-21 15:12:36 +07:00
Joshua A. Horton
b58945e255 feat(common/models/templates): unit test for new feature 2024-06-21 15:12:35 +07:00
Joshua A. Horton
15f49f2551 feat(common/models): direct, non-iterative traversal to specific children 2024-06-21 15:12:34 +07:00
Joshua A. Horton
27bc02137c fix(common/models/templates): unit test patchup after maxP -> p 2024-06-21 15:04:17 +07:00
Joshua A. Horton
0c47fcdbe6 change(web): maxP -> p, to ensure common field name for node and entry 2024-06-21 15:04:17 +07:00
Joshua A. Horton
17fefaa86f feat(common/models/templates): unit test enhancements for new feature 2024-06-21 15:04:16 +07:00
Joshua A. Horton
8e058a5078 fix(common/models): basic unit test patchup 2024-06-21 15:04:16 +07:00
Joshua A. Horton
abb326490f feat(common/models): lexicon traversals - probability access 2024-06-21 15:04:15 +07:00
Joshua A. Horton
ef7d87ace1 refactor(common/models): moves TS priority-queue implementation to web-utils 2024-06-21 15:02:52 +07:00
Joshua Horton
b782800de1
Merge pull request #11263 from keymanapp/change/web/keyboard-preprocess-optimization
change(web): optimization for keyboard-layout preprocessing 
2024-06-21 11:22:50 +07:00
Joshua A. Horton
7166428d72 fix(web): check for longpresses with .sk, not .sp 2024-06-21 08:38:53 +07:00