kbd icon indicating copy to clipboard operation
kbd copied to clipboard

XKB support

Open wismill opened this issue 6 months ago • 3 comments

Fixes #72

TODO:

  • [ ] Moaar tests
  • [ ] Reduce XKB test data to strict minimum
  • [ ] Refactor commits (squash, proper messages)

wismill avatar Jun 03 '25 16:06 wismill

⚠️ This is very much WIP ⚠️

wismill avatar Jun 03 '25 16:06 wismill

@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?).

wismill avatar Jun 03 '25 17:06 wismill

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

legionus avatar Jun 04 '25 08:06 legionus