Commit graph

62 commits

Author SHA1 Message Date
Eddie Antonio Santos
791d4797b0
docs(common/lmlayer): correct Keyman version
Co-Authored-By: Marc Durdin <marc@durdin.net>
2020-04-23 16:22:00 -06:00
Eddie Antonio Santos
fb79d5fd6d
docs(common/lmlayer): spruce up comments 2020-04-23 13:50:12 -06:00
Eddie Antonio Santos
79395d15be
test(common/lmlayer): test file with new word breaker syntax 2020-04-23 12:13:05 -06:00
Eddie Antonio Santos
a9069a1a3a
Merge branch 'master' into lmlayer-default-searchtermtokey 2020-04-22 08:24:21 -06:00
Eddie Antonio Santos
87f35da404
test(common/lmlayer): fix expecations for Turkic orthography 2020-04-21 15:44:18 -06:00
Eddie Antonio Santos
f8bfba5e85
test(common/lmlayer): fix import for defaultSearchTermToKey 2020-04-21 15:30:59 -06:00
Eddie Antonio Santos
04d72bbf50
test(common/lmlayer): expect word breaker to be specified 2020-04-21 14:52:58 -06:00
Eddie Antonio Santos
587fed5bb7
test(common/lmlayer): add rudimentary tests for the default searchTermToKey fn 2020-04-20 13:30:12 -06:00
Eddie Antonio Santos
ef8d7c4171
test(developer/compiler): trie model should include searchTermToKey source 2020-04-08 12:48:57 -06:00
Eddie Antonio Santos
5a7655b9c6
test(developer/compiler): more specific assertions 2020-04-08 12:04:31 -06:00
Eddie Antonio Santos
e3067ded2f
test(developer/compiler): test that key function is USED 2020-04-08 12:01:20 -06:00
Eddie Antonio Santos
f43a8ece1f
test(developer/compiler): createTrieDataStructure() must take fn 2020-04-08 11:42:33 -06:00
Marc Durdin
a8332ce0a0 test: also test for REPLACEMENT CHARACTER 2019-12-09 18:48:36 +00:00
Marc Durdin
39d3452f18 chore: update comment 2019-12-09 15:21:28 +00:00
Marc Durdin
45c0ea105e fix(developer): kmlmc generates invalid json with smp 2019-12-09 13:37:51 +00:00
Marc Durdin
5da14fb040 [Developer] Remove extraneous version tag from test 2019-10-03 21:00:46 +10:00
Eddie Antonio Santos
fc633ae94d
Rename WorkerInternalModel -> LexicalModel. 2019-10-01 14:31:40 -06:00
Marc Durdin
90fdff3b75 [Developer] Respond to review comments 2019-09-02 14:33:40 +10:00
Marc Durdin
89c1477c89 [Developer] Refactor index.ts and cleanup package.json 2019-09-02 10:52:00 +10:00
Marc Durdin
c02309791c [Developer] Add script links for kmlmp and kmlmi to Developer installer 2019-09-02 10:27:17 +10:00
Marc Durdin
ff337f3464 [Developer] Add first test for kmp compiler 2019-09-02 08:44:54 +10:00
Eddie Antonio Santos
0d3fc7bbf6
Test compiling with an explicit word breaker property. 2019-08-29 12:36:23 -06:00
Eddie Antonio Santos
1514af710a
Prefer 'wordBreaker' over 'wordBreaking'. 2019-08-29 12:27:47 -06:00
Eddie Antonio Santos
1bb59b3670
Test that it compiles 'wordBreaker' instead. 2019-08-29 11:58:06 -06:00
Eddie Antonio Santos
08637f2f16
Merge pull request #2009 from keymanapp/developer-add-wordbreaking-api
[Developer] Add Word Breaking API
2019-08-28 22:13:36 -06:00
Eddie Antonio Santos
7100879dc2
Support the word breaking API in the compiler. 2019-08-28 14:38:59 -06:00
Eddie Antonio Santos
ae6cbabc9a
Test that a custom wordbreaking function can be added. 2019-08-28 14:26:47 -06:00
Eddie Antonio Santos
0926a99420
Test that all valid example models compile correctly. 2019-08-28 10:20:00 -06:00
Eddie Antonio Santos
1c7d438f52
Rename all *.model.ts files following new convention. 2019-08-28 10:15:46 -06:00
Eddie Antonio Santos
2a20b6bbc7
Test that the actual word list gets parsed properly (UTF-16/UTF-8). 2019-08-27 10:29:52 -06:00
Eddie Antonio Santos
ddef37f7e6
Test a UTF-16LE file compiles properly. 2019-08-27 10:26:21 -06:00
Eddie Antonio Santos
06c2996415
Implement 'detecting' UTF-8. 2019-08-27 10:12:27 -06:00
Eddie Antonio Santos
aa06ccda45
Test reading the wordlist from UTF-8. 2019-08-27 10:08:48 -06:00
Eddie Antonio Santos
ef481a5841
Explicitly DO NOT support UTF-16BE. 2019-08-27 10:07:47 -06:00
Eddie Antonio Santos
144cca2b2d
Never mind... UTF-16BE is not supported by Node ¯\_(ツ)_/¯ 2019-08-27 10:02:15 -06:00
Eddie Antonio Santos
3e030debd3
Test for reading in UTF-16BE. 2019-08-27 09:57:04 -06:00
Eddie Antonio Santos
d84d6ac18d
Test reading from UTF-16LE wordlist. 2019-08-27 09:45:13 -06:00
Eddie Antonio Santos
f2ff8a95fa
Pass multiple arguments to makePathToFixture(). 2019-08-27 09:40:37 -06:00
Eddie Antonio Santos
85e5e27bdc
compileModel() loads word lists relative to model.ts file. 2019-08-22 10:30:00 -06:00
Eddie Antonio Santos
d58087dc95
Create and test compileModel() utility function. 2019-08-22 09:56:13 -06:00
Eddie Antonio Santos
8b4bb6dec5
Make fixture path relative to model.ts. 2019-08-22 09:44:54 -06:00
Eddie Antonio Santos
3d4ae1fd8f
Merge branch 'beta' into developer-compiler-cli 2019-08-22 09:12:04 -06:00
Eddie Antonio Santos
f826e02b24
Compile code with a dummy LMLayerWorker and models namespace; enhance assertions. 2019-08-21 14:51:00 -06:00
Eddie Antonio Santos
ea0efe48bd
Create test helper to find fixtures. 2019-08-21 11:27:59 -06:00
Eddie Antonio Santos
1815ad7a18
Fix paths issue from merge. 2019-08-21 11:08:29 -06:00
Eddie Antonio Santos
1e4fdeb309
Fix paths issue from merge. 2019-08-20 09:49:37 -06:00
Eddie Antonio Santos
e9b2027520
Place command line in the path. 2019-08-20 09:43:31 -06:00
Eddie Antonio Santos
d34648495a
Handle case when BOM appears before a comment or empty line! 2019-08-09 13:10:16 -06:00
Eddie Antonio Santos
3e88b9114a
[Developer] Update documentation on UTF-8 BOM handling; write test. 2019-08-09 12:56:59 -06:00
Eddie Antonio Santos
31650eba49
Allow for optional punctuation to be passed into options. 2019-07-29 15:55:17 -06:00