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

Serbian support for composekey? #105

Open nathgit opened 3 years ago

nathgit commented 3 years ago

How would I add Serbian support? The language codes are here.

bcmills commented 3 years ago

The current set of ComposeKey layouts is defined in https://github.com/google/extra-keyboards-for-chrome-os/blob/master/composekey/manifest.json.

It would be nice if we could find a way to make the ComposeKey extension orthogonal to the underlying keyboard layout, though.

I don't think the Chrome IME API allows for that directly. I think it may be possible to implement in the form of a JavaScript interpreter for XKB symbols files by looking up and transforming the incoming key events, in much that same way that the current extension interprets .XCompose files.

nathgit commented 3 years ago

I have a functioning composekey Greek keyboard, which isn't on that list so I assumed it was just about finding the right language code.