Create and edit the code table source file
Prepare the code table source file to present the new input method.
This dictionary file is a plain text file that contains the words a user wants
to have defined. The words are separated by spaces.
List characters, words, or phrases and the corresponding key strokes
required to create them. Each row defines the mapping between one Chinese
word and its input key stroke. Thus, when a Chinese character is typed, all
the words associated with it in the dictionary will be shown for selection.
Convert the source codetable file to binary format
Use the utility tools "txt2bin" to convert the prepared text codetable
file to binary file.
The command syntax is:
# /usr/lib/im/locale/zh_TW/common/txt2bin source_codetable_file
binary_codetable_file
|
Add the code table into the input method specification file.
After the binary codetable file is ready, the input method can be added
to the system by updating the input method specification file:
/usr/lib/im/locale/zh_TW/sysime.cfg
|
The sysime.cfg file requires the following information:
For Example: if your new codetable binary file is newim.data, then add a line newim into the input method
specification file sysime.cfg. Once the sysime.cfg file
is updated, the Traditional Chinese Solaris operating environment can interpret
the input method.
Restart the input method server (htt) and relogin to the system to enable
the new input method. To restart the input method server (htt), you need to
run the following command as root.
The new input method will be ready to use after you relogin.