XKB support
Fixes #72
TODO:
- [ ] Moaar tests
- [ ] Reduce XKB test data to strict minimum
- [ ] Refactor commits (squash, proper messages)
⚠️ This is very much WIP ⚠️
@legionus CI is finally running. XKB test is expected to fail for now: locally the issue is that stderr output does mot match (I have a bunch of unable to get symbol of…), but I need to first design a test that compare kbd and xkb keymap by traversing them, because I just cannot fully test the keymap manually. I should have started with a much simpler layout too (say, us) 😅. Oh well…
The kbd compose sequences currently use control characters; I am not sure if this is expected (some special encoding?).
I was thinking that the testing could involve ckbcomp in some way (keymaps that were generated by it). Generate a keymap with this utility and use it as a sample. I don't know how possible that would be.
./ckbcomp -layout us,ru -compact