Commit graph

7 commits

Author SHA1 Message Date
Marc Durdin
0d4a6e428a fix(windows): base layout support in Keyman Core
While Keyman Core already supported the base layout flags, they were not
being passed in from Keyman Engine for Windows. This meant that any
rules that used `baselayout` would fail, such as in sil_ipa with AltGr+0
for }

0bf72bed74/release/sil/sil_ipa/source/sil_ipa.kmn (L348-L350)

This patch adds support for the following properties:

* KM_KBP_KMX_ENV_BASELAYOUT: the legacy base layout name, e.g. kbdus.dll
* KM_KBP_KMX_ENV_BASELAYOUTALT: the BCP 47 base layout name, e.g. en-US
* KM_KBP_KMX_ENV_SIMULATEALTGR: whether the user has selected to emulate
  AltGr with Ctrl+Alt, for example on laptops without a right alt key.
* KM_KBP_KMX_ENV_BASELAYOUTGIVESCTRLRALTFORRALT: whether the system base
  layout in use generates Ctrl+RAlt when RAlt is pressed, which can be
  true for many European system layouts. This is necessary when
  associating the keyboard with a European language because the base
  keyboard becomes the language's default keyboard, rather than kbdus.
2022-11-14 12:27:04 +11:00
Marc Durdin
f8b3173e2c chore: remove set -x 2022-01-17 07:31:06 +11:00
Marc Durdin
69d2b651cb fix(developer): repatch #6074 2022-01-17 07:28:35 +11:00
Marc Durdin
474a23bd27 fix(developer): bundle.sh must succeed
Fixes a build failure after #6074 was merged. The final grep statement
in the line

  cat package.json | grep -v "@keymanapp/models-templates" | grep -v "@keymanapp/models-wordbreakers" > package.json

would fail to find anything to exclude, and return an error value, so
the script would fail, as we use `set -e`. We didn't care that it didn't
find anything to exclude... so we will ignore the return value.
2022-01-11 07:19:25 +11:00
Marc Durdin
984d429e9c fix(developer): bundle.sh rm 2021-12-23 09:19:04 +11:00
Marc Durdin
2e13e7fc0f chore: temp set -x 2021-12-23 09:16:22 +11:00
Marc Durdin
5fccc1161d chore(developer): refactor model compiler bundling into bash script
This made the string processing needed much simpler than
when it was embedded within the Makefile, where horrible
escaping proved necessary.
2021-12-22 04:47:05 +11:00