Often, us artist-types need advanced typography when making artwork, laying out text, and fun things like that. How do you usually do it? For me, it’s either been launching a stupidly hard to find (and annoying to use) character picker or searching for some character on the Internet and copy/pasting it in. (Once in a while, I’ll make a really simple HTML page which has contains not much more than » or — or © — then open it up in Firefox and copy the resulting character).
Well, friends, there’s a better way! In discovering the compose key (thanks to many awesome volunteers) a couple weeks ago, I’ve been happily typing not just German characters, but some advanced typographical ones, too! It’s great for applications like Inkscape, which ordinarily seems to lack support for typing these sorts of things.
A quick primer (hit the compose key, then…):
- or = ®
- oc = ©
- < < = «
- TM (shift-tm) = ™
- - - - = —
- 12 = ½
- ^2 = ²
- c= = €
- c/ = ¢
- Y= = ¥
- xx = ×
- ?? = ¿
- !! = ¡
- <” = “
” = ”
- <´ = ‘
´ = ’
- -: = ÷
- .< = ‹
- .> = ›
These are just a few. In general, think of what the symbol looks like when combined with something else, and that’s probably what you need to type, after hitting the compose key.
To set this up in GNOME, open up keyboard preferences and go to the “layout options” tab and select “compose key position”. (I have mine set up for the “menu key”.)
(Update: Remapping keys in GNOME 3.2+ has since been moved to System Settings → Region and Language → Layouts → Options… → Compose key position → [select the key(s) you want for compose key])
(Update 2: Remapping keys in GNOME 3.6+ has since been moved to System Settings → Keyboard → Shortcuts → Typing → Compose key → [click and hold, and select the key you want for compose key from the dropdown])
In KDE, go to the keyboard layout in the KDE control center, click on the “Xkb options” tab, enable the “Enable Xkb options” option, then scroll through the list until you see the second “Compose Key Position” (the one with options under it in the tree). Enable it and the the key you wish to use.
For vanilla X, you can edit Xorg.conf and follow a mini-howto.
Anyway, when you use the compose key, you can instantly start typing various characters all over the place… not just in Inkscape (where it’s quite useful), but in Firefox, XChat, in IM conversations, etc.