Some Bits: Nelson's log

WinCompose and other ways to type Unicode

I’ve long wanted a good general purpose Unicode input method on Windows. To type so-called “special characters” like ñ or ü or ű. MacOS has a great way of doing this; long-press a key and a popup appears. Both Android and iOS have something similar. Windows doesn’t. I do a lot of cut-and-pasting.

There’s a bunch of Windows solutions that don’t work very well. You can choose an input method that includes more than US English, but that’s intended more for regular typing of one specific character set than the diverse one-offs I need. There’s the ancient numeric keypad method but it requires knowing the Unicode code point number for the character. I’ve tried some Windows programs that emulate the MacOS long press UI but none worked reliably. PowerToys has Quick Accent but the default activation key (space) is too easy to activate by accident.

WinCompose may be the solution I want. It gives you a compose key; you press Right Alt, let go, then type a mnemonic key sequence like ~n to insert ñ. Some of the sequences are pretty arbitrary and there’s a lot of silly macros like TF for “table flip like a boss”: (ノಥ益ಥ)ノ彡┻━┻. But I think I can guess or learn most of the characters I want. One particular thing to remember; a lot of emoji are defined by pressing Compose-Compose and then typing the name of the symbol. Ie Alt-Alt-JOYSTICK to get 🕹️.

One thing missing from the default compose tables is the ʻOkina, the character used in Hawaiian for a glottal stop. Along with ñ it’s an important character for writing US English place names correctly; the state is properly Hawaiʻi, not Hawaii. The character in Unicode is MODIFIER LETTER TURNED COMMA (U+02BB). The question is how to type it.

I’m going with ``, <grave> <grave>, pressing the upper left key that’s also ~ twice. I found that definition on this random site and it seems pretty reasonable.

    <Multi_key> <grave> <grave>                     : "ʻ"    U02BB   # MODIFIER LETTER TURNED COMMA (Okina)

Not sure this is the best choice. <grave> <grave> already has a meaning in WinCompose: “ which is U+201C, Left Double Quotation Mark (also used in kragen’s xcompose configuration). Overriding it causes no problems and anyway there’s other ways to type it: Compose < ” for instance. This X11 man page suggests <grave> <grave> is the beginning of a bunch of Cyrillic characters but those composed diacritics look pretty unusual to me, maybe not essential.. Anyway this is going to work for me.

It’d be nice to have a standard. I filed an issue with kragen’s config opening the question. It seems to be a good place to define some sort of standard.

I should add that the compose key has a long history in Unix computing dating back to the VT220 in 1983. XCompose, the X Windows system for this, is a defacto standard. WinCompose basically implements XCompose and uses the same config file format.