October 2014

S M T W T F S
   1234
5 678910 11
12 131415161718
19202122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags
shadowspar: Picture of Rick holding a can of blue Jolt soda (jolt!)
Friday, November 11th, 2011 13:33

First thing. For those who use vim but might not have known about it: vim has a feature called digraphs which gives you a way to enter letters with diacritics (eg ä), symbols (eg ✓), and other characters that aren't on your keyboard. It does have its idiosyncracies, but it's fairly reasonable once you start to toy with it a bit.

How it works: first, enter the compose key, which by default is Control-K. Then enter the two characters of the digraph, and you'll get the single character that's defined in the digraphs table for that particular combination.

So, for instance:

  • Ctrl-K + o + -ō
  • Ctrl-K + e + :ë
  • Ctrl-K + c + ,ç
  • Ctrl-K + o + C
  • Ctrl-K + P + d£
  • Ctrl-K + 1 + 2½

The command :digraphs will show you everything in the digraphs table.

Last thing and the point of all that preparatory context above: there is a terrible problem with the set of digraphs as it ships with vim. Clearly the sequence < + 3 should compose to the character ♥, but it doesn't by default. To remedy this horrible shortcoming, add the line

digraph <3 9829

to your vim config file. (9829 is the unicode decimal identifier for the character ♥.)

Tags:
shadowspar: An angry anime swordswoman, looking as though about to smash something (Default)
Thursday, July 17th, 2008 01:17

大変だったけどできました! 僕のDebian GNU/Linuxコンピュターに日本語が入れる! どうしたは良く分からないけど… =)

Ok, I don't know exactly how I got everything pieced together, but I finally got Japanese input working on my Debian box! This was the absolute last i18n frustration I had with this thing, and now it's sorted. 'bout time! 素晴らしいです!

Ok, I'm officially up too late again and am now going to bed.