Archive for the ‘Windows’ Category

Japanese kanji handwriting recognition in Windows XP’s IME

Saturday, March 31st, 2007 by Agro Rachmatullah

Did you know that in Windows XP’s IME we can input a kanji by drawing it? (Does Ubuntu, and Linux in general, have it?) I will outlay the steps here.

Obviously you need to have the IME installed. See this Wikibook page. For illustration, we’ll use Notepad. So fire up Notepad, switch the IME on, and input any character on the keyboard. I use ‘a’, which the IME will convert to hiragana ‘あ’ on the fly:

あ on Notepad

The magic key is ‘F5′, which will launch the IME pad. Press it and you’ll get this:

IME pad welcome dialog

Press “OK” and you’ll get this:

IME pad

On the screen pictured above, you can find a kanji by its radical (部首, bushu). However that’s not what we’re interested in right now. To input by drawing, click the top-leftmost button (circled red). You’ll get this:

IME handwriting pad

Here’s the explanation for the UI elements:

  1. This is the drawing area. You draw the strokes here by holding the left mouse button and dragging.
  2. Matching shapes (and not-so-matching shapes) you draw in (1) will be listed here. If you’ve found the kanji you want, just click it.
  3. 戻す (modosu) means “to return”. Click this to undo the last stroke.
  4. 消去 (shoukyo) means “erasing”. Click this to clear the drawing area.

One thing to note is that stroke order matters! Try to draw a perfectly matching shape but with a random stroke order, and chances are the program will not give the kanji you want.

The power of this tool cannot be underestimated. For one thing, it allows you to quickly find a printed character you see. Suppose you went to a mini market and see a notice written in Japanese (for example, in Circle K Terban, Yogyakarta). If there is an unknown kanji there, you won’t have any information other than its shape. Finding the kanji through the method explained above will be very easy. After you have the digital form of the character, you can find its readings, compounds, and meanings in electronic dictionaries.

Second, you can use it to input rare kanji easily. Suppose for some insane reason you want to write “koe” (sound) using the rare kanji 聲 instead of the normal 声 (see for example “Endless Rain” by X Japan). You know its sound (no pun intended), but you can’t find it by typing in the IME because that kanji is archaic (even EDICT don’t list it). However, by drawing it you can find the kanji.

The third is for writing names. When IME don’t recognize a name, you can input it by drawing character per character.