google / extra-keyboards-for-chrome-os

Extra keyboard layouts and input methods for Chrome OS
Apache License 2.0
201 stars 123 forks source link

adapt lushootseed keyboard for writing a version of cyrillic? #81

Open nathgit opened 4 years ago

nathgit commented 4 years ago

Would it be possible to add a key to write the extra sound used in Esperanto? I'm trying to create a keyboard using the Cyrillic layout here because there isn't an existing keyboard available. Esperanto has 6 extra letters (ĉ/ĝ/ĥ/ĵ/ŝ/ŭ), but also lacks q, w, x, & y so they could be repurposed. All other letters are used. Semicolon could be used for one too, as in the original layout. On the Russian keyboard Ш/ш ( ʃ ) is "{/[" & Чч "+/=". I was thinking of using this mapping: EDIT: I just installed the Esperanto keyboard to check the mapping: x is mapped to ĉ = xevalo - ĉevalo w is mapped to ĝ = qanwo - ŝanĝo y is mapped to ŭ = antay - antaŭ q is mapped to ŝ = marqi - marŝi [ is mapped to ĵ = bova[o - bovaĵo ] is mapped to ĥ = e]oqanwo xiu[ayde - eĥoŝanĝo ĉiuĵaŭde

Do I need to change anything Else to have it show up as something other than "EN"? Esperanto's IME is 'epo' I think. The "input components" could be: // to show 'EO' { "name": "Esperanto", "type": "ime", "id": "esperanto_klavaro_xkb", "description": "Esperanto keyboard - klavaro por Esperanto", // user visible description "language": "eo", // The primary language this IME is used for "layouts": ["epo"] }

OR

// to show 'RU' { "name": "Есперанто", "type": "ime", "id": "Esperanto", "description": "Cirila por Esperanto", "language": "ru", "layouts": ["ru"] } @bderrly

nathgit commented 4 years ago

The version used in the Esperanto keyboard is

{ "name": "Esperanto", "type": "ime", "id": "esperanto_klavaro_xkb", "description": "Esperanto keyboard - klavaro por Esperanto", // user visible description "language": "eo", // The primary language this IME is used for "layouts": ["epo"] }

nathgit commented 4 years ago

ideally I'd like to be able to map the keyboard the same as the Esperanto keyboard as shown in my first comment.

bderrly commented 4 years ago

I think you're on the right track. You probably want to set the language to "ru". Then you will need to make a lookup table like that used in the Lushootseed layout to override the the output for different keys. This is not something I'm going to have the time to do but feel free to experiment with it.