News for hackers. Stuff that matters.
Re:Linux Compose Key by windsurfer on Thursday November 26, 2009 @10:21AM (#962724)
What's even better about the compose key is you don't need to remember the order, either. The two keys in combination can be entered in either order. Oh, and most systems also set up the compose key so you don't need to hold it down while you press the other keys.
Re:Linux Compose Key by ntoshev on Thursday November 26, 2009 @10:35AM (#962742)
So, in Ubunu 9.04 you can pick a compose key by going to:

System | Preferences | Keyboard | Layout | Layout options | Compose key position

Re:Linux Compose Key by Hexstream on Thursday November 26, 2009 @04:48PM (#963141)
Also works in Ubuntu 8.04, it's apparently not a new feature.
Re:Linux Compose Key by alexkay on Thursday November 26, 2009 @05:56PM (#963206)
It's not specific to Ubuntu, any recent version of GNOME will do.
Re:Linux Compose Key by djcapelis on Thursday November 26, 2009 @11:09AM (#962785)
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.
Re:Linux Compose Key by kragen on Friday November 27, 2009 @03:38PM (#964347)
I'm maintaining a larger supplementary compose file at http://github.com/kragen/xcompose now.
Re:Linux Compose Key by djcapelis on Friday November 27, 2009 @04:54PM (#964422)
Thanks for the pointer!
Re:Linux Compose Key by cnvogel on Thursday November 26, 2009 @01:38PM (#962949)
> On Linux, though, they have the most > brilliant intuitive way of doing this

Those who don't know history are doomed to repeat it ;-). I have had Compose keys, even labeled as such, on my keyboards since the dark ages. Get a Sun Type 7 Keyboard w/ USB if you want it on your day-to-day PC.

Re:Linux Compose Key by blahedo on Friday November 27, 2009 @03:02AM (#963596)
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 by ramidarigaz on Thursday November 26, 2009 @10:34AM (#962740)
Woah! Never knew about this! I find myself having to type foreign currencies all the time, so this will be way handy.

Great post!

Re:Linux Compose Key by alan_p on Friday November 27, 2009 @07:09AM (#963778)
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 by bgovern on Thursday November 26, 2009 @02:27PM (#963012)
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.
Re:Linux Compose Key by GeoJawDguJin on Thursday November 26, 2009 @04:35PM (#963122)
These days, the Cocoa text system on Macs is so ridiculously feature-complete that you can do this in web browsers and chat programs as well, along with “smart quotes” and automatic spelling correction.
Re:Linux Compose Key by pbhjpbhj on Thursday November 26, 2009 @05:10PM (#963169)
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?

Re:Linux Compose Key by alan_p on Friday November 27, 2009 @07:13AM (#963781)
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 by chanux on Thursday November 26, 2009 @11:49AM (#962820)
In ubuntu I tried to add my own bindings to some unicode symbols with the help of https://help.ubuntu.com/community/ComposeKey.

But compositions I add doesn't seem to work for me.

Tried adding

<Multi_key> <less> <B> : "♥" love # LOVE

Any help please?

Re:Linux Compose Key by apotheon on Thursday November 26, 2009 @06:10PM (#963223)
Yeah, I wrote one of these compose key intros a while back, too:

http://sob.apotheon.org/?p=814

. . . and it's not just for Linux.

Re:Linux Compose Key by bumblebird on Thursday November 26, 2009 @12:06PM (#962841)
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.

Re:Linux Compose Key by dhimes on Saturday November 28, 2009 @10:02AM (#965188)
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.
Re:Linux Compose Key by GeoffWozniak on Thursday November 26, 2009 @01:07PM (#962913)
> On Mac... I never did memorize all of these combinations...

Isn't that what Keyboard Viewer is for?

http://docs.info.apple.com/article.html?path=mac/10.4/en/mh2...

Re:Linux Compose Key by trebor on Thursday November 26, 2009 @01:12PM (#962921)
AllChars on a Windows laptop is a total lifesaver! I lost all my escape codes due to disuse and had to resort to the character viewer.
Re:Linux Compose Key by leif on Thursday November 26, 2009 @02:01PM (#962983)
Always thought 3rd-level and Compose were the same thing. This is much, much better; thanks!
Re:Linux Compose Key by arthurk on Thursday November 26, 2009 @01:53PM (#962972)
It would be even better with an Optimus Maximus keyboard[1] that has OLED keys. But it's still at $1700 :-(

[1]: http://www.artlebedev.com/everything/optimus/

Re:Linux Compose Key by rbanffy on Thursday November 26, 2009 @12:19PM (#962858)
I still prefer the dead-keys way of doing this.
Re:Linux Compose Key by niczar on Friday November 27, 2009 @10:31AM (#963986)
I use the otherwise useless CapsLock key as my compose key. Works like a charm: << « >> » ^0 ° ,c ç `e è "i ï /o ø
Re:Linux Compose Key by pbhjpbhj on Tuesday December 15, 2009 @07:29AM (#996336)
WHAT MAKES YOU SAY CapsLock IS USELESS?