Live data from Hacker News

Linux Compose Key

sivers.org

21–28 of 28 posts

Re: Linux Compose Key

#21
Oddly enough, vim has had this functionality for ages (at least since the mid-90s; ^K triggers it as the "compose" key), but they broke it in a fundamental way during an "upgrade" a few years back. Originally, the compositions were as described by Mr. Sivers: just the pair of keys you'd expect, for instance a + ^ to get â. But then, for no apparent reason, they changed all the defaults to totally unobvious things: it's now a + > to get â, and a + ! to get à, and a + ? to get ã. You can reprogram your own, but the whole point of the system was that you'd just know, which is no longer true, alas.

Re: Linux Compose Key

#22
I've actually never used the Compose feature in Linux.

I prefer dead keys for accents for ease of typing (though it does tend to get hard to remember where you put dead_ogonek when you're not using it on a daily basis) so I naturally just set up my own xkb map. This ceases to be helpful when you're not only adding punctuation or alternate scripts but special symbols or letterforms as well (okay, so the Russian "i" could be on the "I" key for phonetic typing or on the "N" key for what it looks like, but where would you put "left arrow" or "double dagger" or even "logical not"?).

I think the same holds true for the compose key, tho: it's easy to remember "o + / = ø" (or was it "o + -" or even "o + |"? With the kind of redundancy in the compose table, all three probably work), but how do you deal with conceptually similar glyphs like "a with dot below" and "a with dot above"? What about glyphs that looks similar? Once you have to enter a glyph that's rarely used, you'll have to look it up -- and then it'd probably be easier to use a char map unless you're going to use it a lot.

Re: Linux Compose Key

#23
post #15

I've been using the auto correct functionality since Word 2.0 to do the same thing. Granted, it doesn't work well when you need to type the character in a post on a message board, but 95% of my need is in Word Processing Programs and Spread Sheets. So, 5 minutes of effort turns (c) to © and (s) to § forever.

The Ubuntu page shows that fourth level characters are available as standard for © (AltGr+Shift+C) and § (AltGr+Shift+s. When I was on windows I used the Alt+NumPad unicode method. Anyone know how to set the compose key from standard Kubuntu 9.10?

Having an AltGr (third-level chooser) key on my native language keyboard, I was quite surprised to see Ubuntu (Linux in general? It's all in xkb's symbols layout anyway) have not only third level glyphs on way more keys than I was used to from Windows (AltGr+Q = @, AltGr+E = €, etc) but also fourth level glyphs (AltGr+Shift+...). Sadly a lot of them are pretty useless (e.g. the many "logical negation" keys -- I guess they used them in place of None).

Re: Linux Compose Key

#25

The "Setting up more compose sequences" of http://canonical.org/~kragen/setting-up-keyboard.html is also helpful. (I don't use those exact sequences, some of them make little sense to me... but it's nice to see a bunch of examples on how to create your own.) The compose key is one of my favorite underutilized features in Linux.

I'm maintaining a larger supplementary compose file at http://github.com/kragen/xcompose now.

Re: Linux Compose Key

#26
post #25

The "Setting up more compose sequences" of http://canonical.org/~kragen/setting-up-keyboard.html is also helpful. (I don't use those exact sequences, some of them make little sense to me... but it's nice to see a bunch of examples on how to create your own.) The compose key is one of my favorite underutilized features in Linux.

I'm maintaining a larger supplementary compose file at http://github.com/kragen/xcompose now.

Thanks for the pointer!

Re: Linux Compose Key

#27

On Mac you can also just enable the character palette, then you can click on it in the topbar and have instant access to all unicode chars which you can then insert. I don't think the compose key would be intuitive for me. I'd rather select from a palette.

It gets slow that way if you do it a lot. I've been entering unicode in vim (ctrl V u xxxx) and keep a list of the frequently used nearby. But this looks even better.
Post reply on HN