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.
- It took me about 15 minutes to set up my machine (which was
already running an English Win2000.)
- To set up the whole thing on a virgin PC that does not have Win2000,
it would probably take about 1-2 hours.
- The info here applies to Win2000 only. It does not work
with previous versions of Windows.
- A running Win2000 PC.
- The original Win2000 setup CD.
Adding Japanese IME for English Win2000
- Open the Control Panel.
- Open Regional Settings.
- Under the General tab:
- In the Language settings for the system listbox, check the
- Under the Input Locales tab:
- Click Add ...
- in the Add Input Locale dialog, choose Japanese in the
Input Locale list. Choose Japanese Input System (MS-IME 2000)
in the Keyboard layout/IME list.
- Click OK to close the dialog.
- Click OK to close the Regional Options dialog.
You may be
asked to supply the Win2000 setup CD to complete the installation.
Reboot the system if prompted.
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. tk832+w2kimepatch.zip.
Using Japanese Input in TK
More discussion on this topic can be found at
this Wiki page.
- 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.
- Start wish84.exe. Click on the console window to give it keyboard
- Choose Japanese as your input language by
clicking on the icon
and choosing from the menu:
- You notice the IME icon changes to indicate Japanese input. Also,
a new floating Japanese input bar is displayed on the screen.
- Go to the Japanese input bar and choose the Hiragana (H)
- 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:
- 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:
- 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.
- To switch back to English input, go to the IME icon and change it back
- 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.