On the bright side I'm finally learning how Vim's digraphs work.
On the bright side I'm finally learning how Vim's digraphs work.
[edit]
This is probably not relevant (assuming correct wayland libinput config), since this is not where mult-lingual input transformations live. libinput just handles the physical keyboard mapping and behaviour.
On more careful reading of the parent this sounds more like a buggy input method editor.. or maybe an issue with switching between X and wayland apps.
What happened to separation of concerns?
"Do one thing and do it well"?
Snark aside, it's still orthogonal to my question. I wasn't questioning whether it should be done centralized, but why it's supposed to be part of the display server protocol/compositor.
Note that more complex input methods do somewhat bypass the display server and communicate via dbus instead.
Did you miss the do it well part? Nearly every unix tool does more than one thing, the alternative would be a usability nightmare.
* grep, which primarily does pattern matching has dozens of file traversal related flags that could be handled by calling it from find
* find, a tool supposed to find files for some reason has dozens of flags related to executing applications which could probably be done by using xargs
* did you know that xargs can do pattern matching and replacement on its input string? there are probably dozens of unix tools that are specialized for that
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
SDL_IM_MODULE=fcitx
[0]: https://wiki.archlinux.org/title/Fcitx5#IM_modulesOr in other words, your comparison is like saying food and shit are basically the same thing because both are made up of similar elements.
KDE just elected improving the Input story in its bi-annual community wide goals election: https://kde.org/goals/
I did lose my custom mappings though, but I only needed them when I was in emacs and obviously there's already a command for inserting weird stuff, so I just added a binding for it.
It looks like the default en_US.UTF-8/Compose includes mappings of the form:
<dead_greek> <a> : "α"
but to use that I'd have to figure out how to map a key to `<dead_greek>`, and keyboard mappings that aren't in the standard checkboxes are such a pain.Could you say more about this?
IME, it's just a matter of adding lines to ~/.XCompose — is there something I'm missing?
I guess it's up to each Wayland compositor, which calls for inconsistency :/
But I think there are specific exceptions still, such as this Chromium bug: https://issues.chromium.org/issues/40272818
I'm guessing that maybe I forgot to restart the machine to make sure everything got to read it. Or that whatever was broken long ago got fixed.
BTW, I can't reach my backup right now, but this seems like a good start to build up custom mappings in case anyone gets interested in this, https://github.com/kragen/xcompose
The Wayland book recommends XKB: https://wayland-book.com/seat/xkb.html
It does come down to the libraries used by a given app, though (see sibling comment).