Commit graph

169 commits

Author SHA1 Message Date
Marc Durdin
b23df3fbc8 feat(web): &newLayer and &oldLayer
Fixes #6364.

Removes `&layerChanged` and adds `&newLayer` and `&oldLayer` system
stores with the additional nuances around values as described in #6364.
2022-03-13 08:29:15 +11:00
Marc Durdin
faff0e2aef fix(common): address review comment
Don't specify wine as kmcomp launcher if a custom kmcomp is provided on
the command line.
2022-03-11 05:42:08 +11:00
Marc Durdin
c177f142d3 fix(common): allow custom keyboard builds
This allows for custom builds of keyboards, e.g. where a keyboard is
manually constructed for testing purposes.
2022-03-11 05:23:37 +11:00
Darcy Wong
193f7bd370 chore(common): Update caps_3620_3621 to fileVersion 15.0 2022-03-10 14:03:29 +07:00
Darcy Wong
b213c3b829 fix(android/engine): Test fileVersion during package install 2022-03-10 13:15:59 +07:00
Marc Durdin
9cabb7cd66 fix(web): add obolo_chwerty_6351 test keyboard 2022-03-10 13:31:05 +11:00
Marc Durdin
0fb2a371a3 feat(common): build test keyboards via script
Relates to #5815.

build.sh is a new script that builds any or all of the keyboards in the
common/test/keyboards folder. build.bat is a wrapper for build.sh, just
for Windows CMD.

Assumes that kmcomp.exe has already been built or allows you to specify
your own kmcomp.exe if necessary.
2022-03-10 08:40:55 +11:00
Marc Durdin
6c04a11ef3 fix(developer): add obolo_chwerty_6347 for testing 2022-03-10 08:40:12 +11:00
Marc Durdin
7273028192 chore(web): add unit test for selection and matching rule 2022-02-25 15:06:11 +11:00
Marc Durdin
bf2270aa69 chore(web): add smp tests for text selection 2022-02-24 15:59:16 +11:00
Marc Durdin
6cd0f5d49a chore: add web_context_tests keyboard 2022-02-22 10:41:42 +11:00
Marc Durdin
2159df10ee chore: tweak keyboard rules for full caps
Removed the 'heuristic' test as it is probably not appropriate for
testing. Removed the mobile-specific platform from the touch layout as
it did not include a caps layer (and should have been identical to the
tablet one anyway).
2021-12-02 05:11:08 +11:00
Marc Durdin
88ea17e0ba feat(developer): support for Caps Lock layer 🍆
Relates to #3620.

Allows keyboard developers to add a Caps Lock layer (called 'caps'),
which will be accessible through double-tap of Shift key, in an upcoming
PR.

Also adds test keyboards to exercise the functionality when it is
available.
2021-12-01 08:53:23 +11:00
Marc Durdin
83eb8395d6 chore(web): cleanup sample test 3621 keyboard 2021-11-29 10:54:46 +11:00
Marc Durdin
ce2aa9a166 feat(web): support for &layerChanged
Relates to #3621.

Add support for `&layerChanged` system store. This store is set to `1`
before a `begin postKeystroke`, if the keystroke it follows resulted in
a layer change, either programatically through a keyboard rule, or
through a `nextlayer` property of the touched key.
2021-11-24 06:45:20 +11:00
Marc Durdin
f5fc41712d feat(web): add support for begin postKeystroke
Relates to #3621.

This adds support for `begin postKeystroke` to KeymanWeb. This is now
close to final, apart from support for `&layerChanged`.
2021-11-23 16:56:16 +11:00
Marc Durdin
e803bed813 feat(web): start-of-sentence test keyboard
Relates to #3621.

Initial draft of keyboard to test start-of-sentence detection.
2021-11-23 10:11:10 +11:00
Darcy Wong
0a481c9f8f chore(web): Update U_XXXX_YYYY test keyboard 2021-11-15 15:34:51 +07:00
Marc Durdin
33a2e230f6 chore(developer): enforce file versions for feature 2021-11-11 13:26:56 +11:00
Marc Durdin
d704fc6233 feat(developer): test keyboard for U_xxxx_yyyy 2021-11-11 13:08:54 +11:00
Eddie Antonio Santos
805c8b3fe9
Deselect suggestions when one is selected. 2019-05-23 12:11:41 -06:00
Eddie Antonio Santos
d34cecf0ae
[LMLayer-CLI] fix argument paring bug. 2019-04-30 09:57:03 -06:00
Eddie Antonio Santos
6b84f16e03
Bump version, and document options in the README. 2019-04-18 12:40:38 -06:00
Eddie Antonio Santos
aa9eaaa15a
Change --string to --phrase, and allow for multiple phrases. 2019-04-18 12:34:44 -06:00
Eddie Antonio Santos
e7c87824b8
Factor out slurpLinesFromFile(). 2019-04-18 12:16:31 -06:00
Eddie Antonio Santos
6650cf3cbe
Support batch mode. 2019-04-18 12:05:48 -06:00
Eddie Antonio Santos
dd5d8eb418
Factor isatty() and short how-to to the asyncRepl(). 2019-04-18 11:08:13 -06:00
Eddie Antonio Santos
7837a7fcf4
Add preliminary arguments. 2019-04-18 11:03:53 -06:00
Eddie Antonio Santos
4d719af761
Spruce up some things in README.md. 2019-04-16 11:17:26 -06:00
Eddie Antonio Santos
9ac0c865e7
Implement the prediction protocol correctly. 2019-04-16 11:12:11 -06:00
Eddie Antonio Santos
b2db7546b8
Write 'no suggestions' faintly. 2019-04-16 10:22:39 -06:00
Eddie Antonio Santos
979746d02c
Move renderSuggestions() into REPL, using REPL variables. 2019-04-16 10:19:34 -06:00
Eddie Antonio Santos
11b8a91d31
Fix bug when selectedSuggestedIndex is null. 2019-04-16 10:01:19 -06:00
Eddie Antonio Santos
5c7310ef10
Factor out ask for predictions. 2019-04-16 09:59:31 -06:00
Eddie Antonio Santos
c3e983aa62
Use redrawPrompt() when it's needed. 2019-04-16 09:45:34 -06:00
Eddie Antonio Santos
0d4ce258f6
Factor out redrawPrompt(). 2019-04-16 09:40:58 -06:00
Eddie Antonio Santos
d3f4a6eba6
Factor out deleteLastCodepoint() with surrogate support! 2019-04-16 09:36:49 -06:00
Eddie Antonio Santos
7ad76c43cb
Factor out applyTransformToActiveBuffer(). 2019-04-16 09:26:18 -06:00
Eddie Antonio Santos
f597138350
Apply the delete left to the buffer as well. 2019-04-16 09:22:47 -06:00
Eddie Antonio Santos
b29420f4b6
Install executable globally. 2019-04-15 15:26:47 -06:00
Eddie Antonio Santos
2809780b22
Explain the LMPATH environment variable. 2019-04-15 15:13:35 -06:00
Eddie Antonio Santos
a613d00116
Handle <Tab>, <Shift>+<Tab>. 2019-04-15 14:17:29 -06:00
Eddie Antonio Santos
ef7a1e513d
Start to implement insert suggestions. 2019-04-15 13:20:30 -06:00
Eddie Antonio Santos
824e8bb1dd
Handle backspace. 2019-04-15 13:03:53 -06:00
Eddie Antonio Santos
0e1e3c0fd1
Apply predictions to an actual buffer! 2019-04-15 12:52:36 -06:00
Eddie Antonio Santos
c7f4dc7187
Factor out usageError() function. 2019-04-15 11:48:17 -06:00
Eddie Antonio Santos
94e9727de9
Factor out determineModelFile(). 2019-04-15 11:40:03 -06:00
Eddie Antonio Santos
52cadb537c
Implement loading model from LMPATH environment variable. 2019-04-15 11:35:06 -06:00
Eddie Antonio Santos
b2b9881d60
Reorder utility functions. 2019-04-15 11:10:54 -06:00
Eddie Antonio Santos
6f0661d96d
Add command line parsing. 2019-04-15 11:07:24 -06:00