Friday, February 1, 2008

X Windows and Unicode

X Windows does seem to support Unicode input. For learning a foreign language, often times an accent mark is put over a letter to indicate syllable stress (lookup diacritical marks if you're interested in more). Anyway, to put an accent over a vowel, placing U+301 after the vowel in question will place the accent mark.

  • In regular X Windows
    • I've bound it to an unused key. First, add 0x100000 to the Unicode code point in question, then bind that value to a keycode.
    • xmodmap -e 'keycode 117 = 0x1000301'
  • In GNOME
    • Hold CTRL + SHIFT, then press 3, then 0, then 1, then release
  • In gVim
    • CTRL + V, u, 0, 3, 0, 1

No comments:

Post a Comment