Simplified Chinese Solaris User's Guide

Creating a new codetable input method

  1. Create and edit 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 user wants to have associated. The words are separated by spaces.

    You need to 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 the user types a Chinese character, all the words associated with it in the dictionary will be shown for a selection.

  2. 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_CN/common/txt2bin    
    source_codetable_file  binary_codetable_file  
  3. 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 input method specification file:

    /usr/lib/im/locale/zh_CN/sysime.cfg

    The "sysime.cfg" file requires the following information: Input method name

    For example: If your new codetable binary file is newim.data, then add a line newim to the input method specification file sysime.cfg: Once the sysime.cfg file is updated, the Simplified Chinese Solaris operating environment can interpret the input method.

  4. Restart the input method server (htt) or relogin system so that your new input method can be recognized.

    To restart the htt server, login as root, and run:

    # /etc/init.d/IIim stop

    # /etc/init.d/IIim start

    Then logout from the CDE desktop and relogin. The new input method will be ready for use.