Commit graph

125 commits

Author SHA1 Message Date
Joshua Horton
2caa22ee2a
Merge pull request #7241 from keymanapp/fix/common/models/no-whole-replacements
fix(common/models): blocks full-text "corrections" ✏️
2022-09-19 08:22:46 +07:00
Joshua Horton
4f4ddb6107
Merge pull request #7290 from keymanapp/fix/common/models/timer-maxtime
fix(common/models): max prediction wait check
2022-09-15 08:23:45 +07:00
Joshua A. Horton
917fce0750 chore(common/models): final requested tweak 2022-09-15 08:23:08 +07:00
Joshua Horton
a390c2fb2f
chore(common/models): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-09-14 13:32:14 +07:00
Joshua A. Horton
6fbe089244 change(web): tweaks max wait time threshold to mitigate lag 2022-09-14 10:13:29 +07:00
Joshua A. Horton
0845210f20 fix(common/models): max prediction wait check 2022-09-14 09:57:29 +07:00
Joshua A. Horton
2f044c45b1 chore(web): Merge branch 'master' into fix/web/non-whitespace-wordbreaks 2022-09-12 15:07:56 +07:00
Joshua A. Horton
665b149b09 fix(common/models): needed export for unit tests 2022-09-12 15:04:17 +07:00
Joshua A. Horton
415201bf15 fix(common/models): isWhitespace, adds related unit tests 2022-09-12 15:03:48 +07:00
Joshua A. Horton
6632d597d5 feat(common/models): adds unit test, minor branch polish 2022-09-12 10:25:24 +07:00
Joshua A. Horton
445c76e31c chore(common/models): Merge branch 'master' into fix/common/models/no-whole-replacements 2022-09-12 09:17:58 +07:00
Marc Durdin
13a3df32d7
Merge pull request #7037 from keymanapp/fix/web/pred-text-stability
fix(web): enhanced timer for prediction algorithm
2022-09-10 05:45:03 +10:00
Joshua A. Horton
666b639404 fix(common/models): adds 'soft bound' for reasonable 100% fat-finger corrections 2022-09-09 15:35:12 +07:00
Joshua A. Horton
9b29339594 fix(common/models): blocks full-text corrections 2022-09-08 13:13:58 +07:00
Joshua A. Horton
6c50de9e9a change(web): conciser version of last commit 2022-09-08 10:56:32 +07:00
Joshua A. Horton
75e0b27bf3 change(web): pushWhitespaceToTail tweak 2022-09-08 10:54:01 +07:00
Joshua A. Horton
52cb9aa19d change(common/models): drops .isNew, replaces with tokenized context contrast logic 2022-09-08 10:48:12 +07:00
Joshua A. Horton
fb0cc5086c fix(common/models): backspacing shouldn't make 'new' tokens 2022-09-07 14:57:53 +07:00
Joshua A. Horton
9be8839685 fix(common/models): undefined != 0 2022-09-06 10:47:51 +07:00
Joshua A. Horton
a09cc5d822 fix(common/models): models/templates unit tests 2022-09-06 09:48:52 +07:00
Joshua A. Horton
9634c76353 chore(common/models): suggested tweak from review 2022-09-06 08:57:56 +07:00
Joshua A. Horton
26c5150977 fix(web): context-tracker newFlag management for new contexts 2022-09-05 14:02:55 +07:00
Joshua A. Horton
b47596a803 fix(common/models): context token .isNew maintenance 2022-09-05 12:35:11 +07:00
Joshua A. Horton
57ce30e068 fix(web): post-suggestion-apply error 2022-09-05 12:17:17 +07:00
Joshua A. Horton
d33a9f05bf docs(web): fixes missed doc update 2022-09-05 11:41:42 +07:00
Joshua A. Horton
b0184ec98b fix(web): adds unit test targeting issue, handler for edge case 2022-09-05 11:30:50 +07:00
Joshua A. Horton
be562b3022 fix(web): missed method references 2022-09-05 10:37:50 +07:00
Joshua A. Horton
ad8c30c6c0 fix(web): pred-text context tracking when wordbreak not caused by whitespace 2022-09-05 10:26:31 +07:00
Marc Durdin
e30871f01e chore(linux): add common/include to further paths 2022-08-11 14:56:46 +02:00
Joshua A. Horton
814a492277 chore(web): tweaks, docs for execution-timer inner-class 2022-08-09 09:00:29 +07:00
Joshua A. Horton
af219def62 fix(web): enhanced timer for prediction alg 2022-08-04 14:38:48 +07:00
Marc Durdin
683d8b9e68 chore(common): build-utils.sh minor tweaks
Fixing up a number of minor bits and pieces identified during demo:

* invalid action or :target would not be picked up if paired with a
  valid one (e.g.: build:foo should not have worked)
* colors defined in both shellHelperFunctions and build-utils were
  problematic; able to remove them from shellHelperFunctions because
  all references included both scripts
* builder_has_action and builder_report now allow both `action:target`
  and `action :target`
* keyman-version/build.sh did not have working test action...
2022-07-29 17:37:19 +10:00
Marc Durdin
8fd3442fe2 chore(common): remove builder_init
builder_init was unnecessarily and inconsistently duplicating
builder_describe and builder_parse functionality. Removing it -- all
scripts should use builder_describe and builder_parse instead, which
gives us more flexibility and consistency into the future.
2022-07-27 15:07:12 +10:00
Marc Durdin
ab54c0ecb9 chore(common): more bin bashes 2022-07-25 16:03:22 +10:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Marc Durdin
93a03acb9f chore(common): builder script :target and --option support
Adds support for :target and --option to the builder_() functions in
build-utils.sh, along with a consistent way of describing command line
parameters in short-hand form, so we can avoid the display_usage getting
out of sync with actual command line parameters.

I opted to tweak the existing usage slightly, reversing parameter order
for `builder_report`, so that we could extend `builder_report` cleanly
to support targets.

The new builder_() functions are `builder_describe` and `builder_parse`,
which should be used in place for `builder_init` where you want to
provide more detailed command-line options (for many scripts, the
defaults provided through `builder_init` may suffice).

`builder_describe` lets you set a single-line description of the script,
along with a list of parameters: `actions`, `:targets` and `--options`.
Options may also specify a shorthand form, e.g. `--option,-o`. Each
parameter may optionally include a short description, separated by
space(s) from the parameter name.

build-utils.test.sh tests the functionality of the various functions,
and provides some examples of using them.

Defaults:
* If a target is not specified in `builder_describe`, a standard target
  of `:project` will be available.
* If the user does not pass an action on the command line, then `build`
  will be used.
* If the user does not pass a target on the command line, all targets
  will have the actions applied.

Note, it is possible to have targets which do not use all actions. These
may be still be specified, but can be ignored. For example, `test:tools`
may not be an action:target that you handle in the script. At this time,
the builder_() functions do not attempt to check for this.
2022-07-25 14:31:58 +10:00
Joshua Horton
71068abe9d
Merge pull request #6950 from keymanapp/chore/web/remove-invalid-warning
chore(web): remove invalid warning msg
2022-07-15 13:07:25 +07:00
Joshua Horton
b8fd5eea31
Merge pull request #6902 from keymanapp/fix/web/block-set-layer-on-desktop
fix(web): layer-setting ops should not trigger for hardware keystroke processing 🖇️
2022-07-15 11:07:19 +07:00
Joshua Horton
ed8c15fe6e
Merge pull request #6901 from keymanapp/fix/web/context-only-device
fix(web): postkeystroke processing should ignore key-event source🖇️
2022-07-15 11:06:39 +07:00
Joshua A. Horton
56b37fb87f chore(web): remove invalid warning msg 2022-07-15 08:53:08 +07:00
Joshua A. Horton
7342f7f9e6 fix(web): applies PR suggestions 2022-07-12 11:01:14 +07:00
Joshua Horton
be7c9c58a9
Merge pull request #6808 from keymanapp/fix/web/6792-chiral-modifier-mapping
fix(web): maps touch-layout chiral alt, ctrl to non-chiral when non-chiral keyboard is active
2022-07-11 08:12:46 +07:00
Marc Durdin
ace0cbd1d6 fix(web): ncaps rules not matching on touch
Fixes #6910.

Regression introduced in #6874 / #6849 (which themselves were improving
the Caps Lock situation).

Ensures that either `NO_CAPS` or `CAPS` is always set in the modifier
flags.
2022-07-08 16:09:28 +10:00
jahorton
648acc9273 chore(web): extra check for robustness 2022-07-08 10:14:35 +07:00
Joshua Horton
620cbb54ab
chore(web): applies code suggestion
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-07 08:39:28 +07:00
Marc Durdin
8ba11f608d
Merge pull request #6890 from keymanapp/fix/web/improve-console-error-reporting
fix(web): improve `console.error()` reporting
2022-07-07 09:40:06 +10:00
Joshua A. Horton
a1a43f80c1 fix(web): doModifierPress layer handling 2022-07-06 13:20:14 +07:00
Joshua A. Horton
a4b32705d8 fix(web): reverts prior commit, adds related docs 2022-07-06 12:56:09 +07:00
Joshua Horton
b9a47bfaf7
chore(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-07-06 12:54:06 +07:00
Joshua A. Horton
4489337cd6 change(web): disables touch OSK auto-shift on hardware shift 2022-07-06 12:25:08 +07:00