Commit Graph

6 Commits

Author SHA1 Message Date
Gergely Nagy
3d857ba1ce cldr: When loading from an OSX keymap, swap E00 and B00
macOS has the E00 (left of `1`) and B00 (between `shift` and `z`) keys swapped.
Our layout display code, the floating 104-key picker assumes a different layout.
So for display purposes, when reading from macOS layouts, swap E00 and B00.

Together with the previous commit, this fixes #1014, and makes the Croatian
layout *almost* correct on Windows and Linux too, with only one symbol
mis-mapped. There's nothing we can do about that at the moment.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-07-27 20:55:52 +02:00
Gergely Nagy
007e0ba67d cldr: Add support for shift+optional-mods modifiers
Similarly how we treat `altR+caps?` as valid altR mapping, we need to treat
`shift+caps?`, `shift+cmd?`, and other combinations of `shift` and optional
modifiers as shift.

This addresses one part of #1014.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-07-27 11:23:05 +02:00
Gergely Nagy
845a2592e1 cldr: Pick up altR modifiers from a few more places
We can pick up altR-modified symbols from a few other keymaps, not just those
that have `altR` as the single modifier, but those that have `+caps?` too,
because caps is optional there.

This fixes #727.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-06-29 20:23:36 +02:00
Jesse Vincent
237a32ff25 Build out localized locale names for eventual use in the renderer 2022-06-24 09:13:28 +02:00
Gergely Nagy
cada16b80d tools/precompile: Lift cldrDir out
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-06-23 22:52:24 +02:00
Gergely Nagy
32132bf351 Pregenerate the CLDR data, rather than loading it from the renderer
We still import cldr from the renderer process, for
`cldr.extractLanguageDisplayNames`, but that hopefully doesn't expect to be in a
node environment.

If it does, we'll have to push it (along with the cldr data) to the main process.

Fixes #924.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
2022-06-23 18:16:18 +02:00