Commit graph

188 commits

Author SHA1 Message Date
Eddie Antonio Santos
7c8f337238
Merge pull request #3014 from keymanapp/change/common/lmlayer/remove-nfd-table
change(common/lmlayer): remove NFD table
2020-04-23 08:49:18 -06:00
Eddie Antonio Santos
a9069a1a3a
Merge branch 'master' into lmlayer-default-searchtermtokey 2020-04-22 08:24:21 -06:00
Eddie Antonio Santos
6ad370cd29
refactor(common/lmlayer): rename defaultWordform2Key -> defaultSearchTermToKey 2020-04-21 15:51:21 -06:00
Eddie Antonio Santos
5a60573895
docs(common/lmlayer): remove '@' that was making JSDoc upset 2020-04-21 15:50:20 -06:00
Eddie Antonio Santos
1b977aea59
Merge branch 'lmlayer-default-searchtermtokey' into change/common/lmlayer/remove-nfd-table 2020-04-21 15:19:04 -06:00
Eddie Antonio Santos
411a3a7447
docs(common/lmlayer): fix typos as suggested by @mcdurdin
Co-Authored-By: Marc Durdin <marc@durdin.net>
2020-04-21 15:17:35 -06:00
Eddie Antonio Santos
7982891f3d
change(common/lmlayer): remove NFD table from defaultWordform2Key
Removes the partial NFD table from the default searchTermToKey function.  This table existed only to provide a canonical decomposition to remove diacritics on platforms that do not support `String.prototype.normalize()`; however, we have dropped support for these platforms, or will provide polyfills; therefore, we can remove this table that was inflating our bundle size.
2020-04-21 09:18:30 -06:00
jahorton
1fa9125a34 fix(common/lmlayer): revert 'fixes worker sourcemaps' 2020-04-17 09:33:42 +07:00
jahorton
03d29e7755 refactor(common/lmlayer): abstracts interface b/t inner and outer layers 2020-04-14 13:58:19 +07:00
jahorton
e58914112e fix(common/lmlayer): fixes worker sourcemaps 2020-04-14 11:22:14 +07:00
Eddie Antonio Santos
391657bb5e
docs(common/lmlayer): update comments with code
Uncle Bob Martin is shaking.
2020-04-08 11:13:06 -06:00
Eddie Antonio Santos
e659d4df0d
fix(common/lmlayer): correct Unicode range in default key fn 2020-04-06 10:24:33 -06:00
jahorton
47595027e3 fix(common/lmlayer): fixes findPrefix for SMP Tries 2020-03-12 12:54:32 +07:00
jahorton
becf2039a4 fix(common): model specification for isRTL 2020-01-30 14:23:31 +07:00
jahorton
5cc282c660 fix(common): more 'code unit' -> 'code point' work 2020-01-15 12:21:11 +07:00
jahorton
716a598b49 fix(common): addresses PR review comments for trie model SMP 2020-01-15 11:35:34 +07:00
jahorton
d0ab35d5d9 fix(common): Fixes #2469 2020-01-08 11:53:53 +07:00
Joshua A. Horton
02e57d80d9 fix(common): 'default' wordbreaker context-final null token 2019-12-04 08:42:51 +07:00
jahorton
cd55c90a2f change(common): makes LMLayer default wordBreaker the actual default 2019-12-03 10:43:28 +07:00
jahorton
a640fa76e2 fix(web): console obj validity check 2019-12-02 07:57:13 +07:00
jahorton
c2b011dc2f change(lmlayer): Fixes a few of the 'draft' tweaks to logging from previous commits of this PR 2019-12-02 07:55:38 +07:00
jahorton
4778819203 feat(lmlayer): adds basic error reporting from worker 2019-12-02 07:55:37 +07:00
jahorton
ecddb73862 change(android): gets API 23 working again, but not 19 or 21 (yet) 2019-12-02 07:55:37 +07:00
Eddie Antonio Santos
fc633ae94d
Rename WorkerInternalModel -> LexicalModel. 2019-10-01 14:31:40 -06:00
Eddie Antonio Santos
d75c04ca39
Remove worker-compiler-interfaces entirely. 2019-10-01 12:56:03 -06:00
Eddie Antonio Santos
81d8f7eb87
Completely move worker-compiler-interfaces.d.ts to lexical-model-types. 2019-10-01 12:48:19 -06:00
jahorton
a454b99971 Fixes double-space bug. 2019-08-07 09:38:55 +07:00
Eddie Antonio Santos
fd5173c882
Typo
Co-Authored-By: Marc Durdin <marc@durdin.net>
2019-07-31 09:40:09 -06:00
Eddie Antonio Santos
27e63e16b1
Be explicit about the type of punctuation defaults. 2019-07-30 10:20:36 -06:00
Eddie Antonio Santos
3017300f33
Factor out some interfaces required both by compiler and by worker to their own file. 2019-07-30 10:07:11 -06:00
Eddie Antonio Santos
fe0a99c6e4
Merge branch 'master' into lmlayer-specify-punctuation 2019-07-30 09:22:34 -06:00
Joshua Horton
d8cd238e36
Update common/predictive-text/worker/worker-interfaces.ts
Co-Authored-By: Eddie Antonio Santos <easantos@ualberta.ca>
2019-07-30 08:40:00 +07:00
Eddie Antonio Santos
d99337bf39
Add punctuation to trie model. 2019-07-29 16:06:43 -06:00
Eddie Antonio Santos
32a8dcb0c2
Convert determinePunctuationFromModel() to a static method. 2019-07-29 15:44:23 -06:00
Eddie Antonio Santos
b20541ea8b
Allow for the partial specification of punctuation, with more robust defaults selector thing. 2019-07-29 15:40:08 -06:00
Eddie Antonio Santos
5e2528a78c
Extract method: determinePunctuationFromModel(). 2019-07-29 15:29:36 -06:00
jahorton
8f374d24fc Missed including this edit. 2019-07-29 08:11:06 +07:00
jahorton
efbeafa78e PR review polish, round 1 2019-07-29 05:57:14 +07:00
jahorton
5776cd9138 Documents the methods of WorkerInternalModel 2019-07-26 16:03:12 +07:00
Eddie Antonio Santos
529f0d3adf
Move space adding to the model compositor. 2019-07-25 15:47:54 -06:00
Eddie Antonio Santos
87089a197d
Implement alternate open/close quote. 2019-07-25 15:11:40 -06:00
jahorton
1c8f2b3481 Adds comment for future extension work. 2019-07-23 11:00:06 +07:00
jahorton
d518d6d92c Addresses PR review elements. 2019-07-23 08:28:06 +07:00
jahorton
4ae9394f51 Fixes mid-word backspace issues. 2019-07-22 13:06:46 +07:00
jahorton
9137eca2e7 Null-context suggestion whitespace preservation 2019-07-22 11:53:25 +07:00
jahorton
989dc881fc Right, null-check that. 2019-07-22 10:22:49 +07:00
jahorton
b7f48e2666 Keep suggestion now always gets quoted 'displayAs' 2019-07-22 10:20:59 +07:00
jahorton
5c084c5c75 Patches out IE-incompatible whitespace regex. 2019-07-04 09:39:56 +07:00
jahorton
3a772852a2 Better whitespace detection in compositor. 2019-07-04 08:27:24 +07:00
jahorton
2e3e20559d Moves .isKeep prop to .tag == 'keep'. 2019-07-04 08:09:30 +07:00