Setting Japanese Environment for Win2000 + TK

Win2000 has integrated support for multiple locales. This page shows how to set up Japanese environment for your Win2000 desktop. This way, you can test the upcoming "Win2000 IME" fetaure in Tk 8.4.


You Need:

Adding Japanese IME for English Win2000

Try my patched wish

You can download my patch to TK 8.4a2 from this link .

Or, if you're lazy and are willing to try an .exe built by me (Disclaimer: my PC is heavily infested by all sorts of computer virus. By downloading these .exe and .dll files form this page, you agree that I am not responsible for any damages caused by these .exe and .dll files you download from this page.) Note this is a patched Tk 8.3.2.

Using Japanese Input in TK

  1. After you finish the Control Panel setting (possible after a reboot), you'd notice a new IME icon at he lower-right corner of the screen. It initially displays , which stands for English input.

  2. Start wish84.exe. Click on the console window to give it keyboard focus.

  3. Choose Japanese as your input language by clicking on the icon and choosing from the menu:

  4. You notice the IME icon changes to indicate Japanese input. Also, a new floating Japanese input bar is displayed on the screen.

  5. Go to the Japanese input bar and choose the Hiragana (H) input method:

  6. Type the following keys in the wish console in the sequence: n i h o n g o. The text input will be changed to the Hiranaga characters Ni, Ho, N, and Go, as in the following figure:

  7. The same Hiranaga characters can have many meanings in Japanese. You can type the SPACE key to choose the desired meaning. In this exercise, type the SPACE key once, it will display 3 Kanji characters Ni, Hon and Go, which means "The Japanese Language", as in the following figure:

  8. When the desired meaning is displayed, hit the Enter key to accept the input. You will see that in the following figure. Now you have completed the input of the 3 Kanji characters here. You can then input more characters.

  9. To switch back to English input, go to the IME icon and change it back to

  10. Note that the keys you type in steps 6, 7 and 8 are processed by the input method editor. None of the keystrokes are sent to TK. So you don't have to worry about processing these events.

    Your TK app receives KeyPress events only when you confirm the input (as in step 8). In our example, 3 KeyPress events are received, one for each Kanji character.

More discussion on this topic can be found at this Wiki page.