OneDeadKey / kalamine

Keyboard Layout Maker
MIT License
113 stars 29 forks source link

Add support for outputting Android KCM physical keyboard layouts #19

Open devnoname120 opened 2 years ago

devnoname120 commented 2 years ago

It should be simple enough, the format is pretty straightforward. Dead keys have limited support though.

Doc: https://source.android.com/devices/input/key-character-map-files Example of implementation for XKB —> KCM: https://github.com/anisse/bepo-android/blob/master/android.py

fabi1cazenave commented 10 months ago

@jidhub this could be the time to propose a TOML file for your layout and see how I can make it look like the KCM you did. (Which one is it, btw ?)

https://github.com/jidhub/thumb-external-keyboard-layouts/tree/master/app/src/main/res/raw

jidhub commented 9 months ago

It is https://github.com/jidhub/thumb-external-keyboard-layouts/blob/master/app/src/main/res/raw/keyboard_layout_neo2.kcm

@fabi1cazenave on Jan 20:

@jidhub this could be the time to propose a TOML file for your layout and see how I can make it look like the KCM you did. (Which one is it, btw ?)

https://github.com/jidhub/thumb-external-keyboard-layouts/tree/master/app/src/main/res/raw

fabi1cazenave commented 2 months ago

https://source.android.com/docs/core/interaction/input/key-character-map-files

devnoname120 commented 2 months ago

Note that the Android documentation is heavily outdated: many additional diacritics were added back in 2012.

See the complete list here: https://android.googlesource.com/platform/frameworks/base/+/tags/android-14.0.0_r66/core/java/android/view/KeyCharacterMap.java#192

bouttier commented 1 month ago

Another tool which may be an inspiration: https://github.com/ris58h/exkeymo-web But no idea on how to support the 1dk 🤔