>>15
Not >>10, but here's one way to do it with X.
# ~/.XCompose
include "/usr/share/X11/locale/en_US.UTF-8/Compose"
<Multi_key> <quotedbl> <Left> : "“" U201C # LEFT DOUBLE QUOTATION MARK
<Multi_key> <quotedbl> <Right> : "”" U201D # RIGHT DOUBLE QUOTATION MARK
<Multi_key> <apostrophe> <Left> : "‘" U2018 # LEFT SINGLE QUOTATION MARK
<Multi_key> <apostrophe> <Right> : "’" U2019 # RIGHT SINGLE QUOTATION MARK
Then just hit compose followed by double or single quote and the left or right arrow. The bindings can be whatever you want, of course. If you don't have a compose key, add one with xmodmap. I use the “menu” key.
As an aside, documentation for X really sucks. Google "xcompose". You'd expect to get some sort of man page detailing the purpose and format of the file. Instead, the first related result is a bug report at #3. The first helpful result is all the way at #13, and it's a fucking blog.
I use AltGr+' for ̋ (combining double acute) AltGr+: for ̈ (combining umlaut) AltGr+6 for ̂ (combining circumflex) AltGr+L for λ/Λ AltGr+[]<> for “”«».
For anything else, I just remember the code point.
Name:
Anonymous2008-03-07 14:04
>>19
then why don't you write the manpage instead of complaining.
Name:
Anonymous2008-03-07 14:14
>>19
Thanks, that is very useful. I didn't know you could have a per-user ~/.XCompose table. Unfortunately, the file format seems to be completely undocumented, but this is enough to get me started.
Name:
Anonymous2008-03-07 14:23
>>23
In case it helps, the key names in the angle brackets are documented in /usr/include/X11/keysymdef.h. If you need more details, well, look at the global table. It's in the same format.
I didn't know about the user-local compose table either until I stumbled upon it during some heavy googling this morning.
>>22
I'm working on it, actually. Digging through the source at the moment. Then I need to learn troff...