39aldo39 / klfc

Keyboard Layout Files Creator
GNU General Public License v3.0
215 stars 13 forks source link

Cannot bind `≅` when using X Keyboard Extension format, instead `≈` is bound to the desired key. #49

Closed kindaro closed 2 years ago

kindaro commented 2 years ago

My source looks like this:

    { "pos": "+", "letters": [ "%", "`", "‰", "″"     , "ⱼ", "ʲ", "⇔", "≅" ] },  

The character («approximately equal to») should be emitted when I press the + key with all three modifiers. But instead («almost equal to») is emitted.

See also #28 for a similar issue. See also #24 for a proposed general solution.

39aldo39 commented 2 years ago

For the special case of it appears to be an error in keysymdef.h and is now even deprecated. I have updated the keysymdef output to fix it.

I have also changed my a bit with respect to the Unicode notation: it can be useful for readability and bugs like this, although the bugs shouldn't happen of course. I have added the possibility for notation like U+2248 that forces the Unicode output in e.g. XKB.

kindaro commented 2 years ago

Fantastic!