Commit graph

4157 commits

Author SHA1 Message Date
Eddie Antonio Santos
89f9d8a2f1
Tidy up: define WordListModel in a IIFE so that it can have private constants. 2019-01-18 13:08:00 -07:00
Eddie Antonio Santos
2c8237c379
Implement simple prefix search for a single word. 2019-01-18 13:00:15 -07:00
Eddie Antonio Santos
bc3b222585
Test prediction within a word. 2019-01-17 16:01:43 -07:00
Eddie Antonio Santos
4abbbc41a5
Suggest prefix via exhaustive search over word list. 2019-01-17 14:42:59 -07:00
Eddie Antonio Santos
198b6a1e3e
Test prefix queries. 2019-01-17 13:43:22 -07:00
Eddie Antonio Santos
ab9cbdc10e
Add English word list. 2019-01-17 13:39:39 -07:00
Eddie Antonio Santos
d6b2b96621
Create stub for word list model. 2019-01-17 11:09:06 -07:00
Eddie Antonio Santos
569ae88b7b
Merge pull request #1544 from keymanapp/lmlayer-tidy
[LMLayer] Tidying up, plus fix minor bug
2019-01-17 09:35:59 -07:00
Joshua Horton
96ed2819f8
Merge pull request #1519 from keymanapp/web-osk-refactor-visual-kbd
[Web] Splits the OSK's outer shell object from its individualized inner Visual Keyboard.
2019-01-17 09:34:12 +07:00
Joshua Horton
534ebb83b8
Merge pull request #1524 from keymanapp/web-osk-element-typing
[Web] Adds better typing for OSK keys, some related fixes.
2019-01-17 09:32:57 +07:00
Joshua Horton
de26d7238e
Merge pull request #1525 from keymanapp/web-processing-refactor
[Web] Keystroke processing refactor
2019-01-17 09:32:43 +07:00
Eddie Antonio Santos
c479d49adb
No longer allow model to be specified as source code. 2019-01-16 15:14:53 -07:00
Eddie Antonio Santos
8e336fe846
Return early when rejecting a reused token. 2019-01-16 15:06:19 -07:00
Eddie Antonio Santos
6106d11c07
Test token reuse does not overwrite previous token's promise callbacks. 2019-01-16 15:04:04 -07:00
Eddie Antonio Santos
c9ff3fe0c3
Test that reusing a token should reject the promise. 2019-01-16 14:06:25 -07:00
Eddie Antonio Santos
f5c8825169
Explain IE11 compatibility of Map. 2019-01-16 13:31:39 -07:00
Eddie Antonio Santos
01755ec8db
Merge pull request #1522 from keymanapp/lmlayer-dummy-model
[LMLayer] Implement Dummy language model + refactorings
2019-01-15 19:15:02 -07:00
Eddie Antonio Santos
375cce7cab require() fixture in headless unit tests. 2019-01-15 09:53:42 -07:00
Joshua A. Horton
e6edce4737 Cherrypicks #1540 into refactoring changes. 2019-01-15 13:04:36 +07:00
Joshua A. Horton
2f7940d37c Testing resource tweaks. 2019-01-15 10:12:27 +07:00
Joshua A. Horton
965604a864 Adds aliases for keycode constants to the OSKManager for legacy kbd use. 2019-01-15 08:13:20 +07:00
Joshua A. Horton
5a7854c4dd Cherry-pick of beta Android fix for external keyboards. 2019-01-15 08:08:00 +07:00
Eddie Antonio Santos
42ffffc48b
Document the LMLayerWorker with state diagram. 2019-01-14 14:46:47 -07:00
Eddie Antonio Santos
f819df5309
It helps if I actually add the file :/ 2019-01-14 14:46:05 -07:00
Eddie Antonio Santos
b5ff799eea
Move PromiseStore to its own source file. 2019-01-14 14:35:18 -07:00
Eddie Antonio Santos
626b9f2898
Remove TODO comments addressed in this PR. 2019-01-14 14:28:58 -07:00
Eddie Antonio Santos
eb45efe4d0
Change PromiseStore#keep() API: call resolve() immediately instead of returning the callback. 2019-01-14 14:26:09 -07:00
Eddie Antonio Santos
68045361c6
Remove test for configuration-negotiation (not applicable to dummy model). 2019-01-14 14:20:24 -07:00
Eddie Antonio Santos
c204f4b793
Implement token tracking in top-level API. 2019-01-14 13:36:57 -07:00
Eddie Antonio Santos
fb3f924cee
Move randomToken() to helpers. 2019-01-14 13:22:57 -07:00
Eddie Antonio Santos
97a59ae8d0
Send back the token in the 'suggestions' message. 2019-01-14 13:17:14 -07:00
Eddie Antonio Santos
7b1eb53111
Test send back token in predict/suggestions. 2019-01-14 13:06:04 -07:00
Eddie Antonio Santos
a1586c984f
Use more robust rejection assertion. 2019-01-14 11:50:11 -07:00
Eddie Antonio Santos
a26f9b1c5d
Test PromiseStore.break(). 2019-01-14 10:51:25 -07:00
Eddie Antonio Santos
be789f05e9
Test PromiseStore#keep(). 2019-01-14 10:46:23 -07:00
Eddie Antonio Santos
a40478e1c2
Complete PromiseStore#make() test. 2019-01-14 10:27:41 -07:00
Eddie Antonio Santos
427d8064e0
Implement PromiseStore#length. 2019-01-14 10:25:35 -07:00
Eddie Antonio Santos
cceec4ab04
Add promise store and start to test it. 2019-01-14 10:23:59 -07:00
Joshua A. Horton
e58a62c0c2 Code cleanup + typing, mnemonic refactor + notes. 2019-01-14 12:29:52 +07:00
Tim Eves
72b163fe39
Merge pull request #1530 from keymanapp/common-bugfix-warnings-for-catch
[common] Newer compilers are complaining about catching bad_alloc by value
2019-01-14 11:24:55 +07:00
Joshua A. Horton
7c19ae795c Notes some mnenomic keyboard issues to resolve. 2019-01-14 10:07:06 +07:00
Joshua A. Horton
600939b573 Refactors hardware keystroke processing, moves it to Processor module. 2019-01-14 09:50:22 +07:00
Tim Eves
a441321cf5 Newer compilers are complaining about catching std::exception derived class by value, this fixes that. 2019-01-14 09:44:43 +07:00
Eddie Antonio Santos
d4d84b757a
Change dummy model suggestions to be consistent with documentation. 2019-01-11 15:30:45 -07:00
Eddie Antonio Santos
c1409c3e62
Update documentation/interfaces to be consistent with each other. 2019-01-11 15:28:34 -07:00
Eddie Antonio Santos
a83a8dfcdc
Got JSON fixtures working correctly. 2019-01-11 15:07:48 -07:00
Eddie Antonio Santos
5e389cb3f0
Export to JSON fixture; not quite working yet. 2019-01-11 11:49:06 -07:00
Eddie Antonio Santos
39aa7b6ebe
Place { on same line as (. 2019-01-11 11:19:24 -07:00
Joshua A. Horton
9410b33ce0 Relocates all OSK keystroke processing to the new Processor module. 2019-01-11 13:51:58 +07:00
Joshua A. Horton
5dfa059fe6 Fixes remaining references to key codes, starts some text-proc reorg. 2019-01-11 12:47:11 +07:00