Traditional Chinese Solaris User's Guide

Code Table Input Method Interface

The current Solaris operating system provides a code table input method interface that enables Chinese users to add new input methods into their system.

Creating a Code Table

A code table is a plain text dictionary file that contains a list Chinese characters, words, and phrases that are mapped to input keystrokes. When you type the specified keystrokes, the associated characters, words, and phrases appear for selection.

The code table file contains the following sections:

The following example shows a code table file.

The preceding context describes the graphic.

How to Create a New Code Table Input Method

  1. Create and edit the code table source file.

    Prepare the code table source file to define the mapping of characters, words, or phrases to input keystrokes.

  2. Convert the source code table file to binary format.

    Use the txt2bin utility to convert the code table text file to binary file.

    # /usr/lib/im/locale/zh_TW/common/txt2bin source_codetable_file
    binary_codetable_file
    


    Note –

    You can find the txt2bin and bin2txt are utilities in the directory: /usr/lib/im/locale/zh_TW/common/


  3. Add the code table to the input method specification file, /usr/lib/im/locale/zh_TW/sysime.cfg.

    For example, if your new code table binary file is called newim.data, add the entry newim to the input method specification file, sysime.cfg.

  4. Restart the htt input method server by typing the following commands as root.

    # /etc/init.d/IIim stop
    # /etc/init.d/IIim start

    The new input method is ready to use when you log in to the system.