Traditional Chinese Solaris User's Guide

Chapter 3 Using the htt Input Method Server

The htt input method server handles Traditional Chinese input for Traditional Chinese Solaris software. The htt server receives keyboard input and makes the input available as Traditional Chinese characters to Traditional Chinese Solaris system applications. The htt server can serve any internationalized X Window application that uses X Windows Input Method (XIM) application program interfaces (API) to receive language input.

This chapter explains the basic display features of the htt input server. Normally, you do not need to change any htt settings, as discussed in this chapter, to operate any Traditional Chinese Solaris application.

You need to be familiar with the input method terminology in Chapter 4, "Entering Traditional Chinese Text," before reading this chapter. However, to use Solaris applications for Traditional Chinese character input you do not need to read beyond the first section of this chapter.

The Traditional Chinese Solaris htt server icon looks like this:Graphic

Input Method Server Basic Properties

The Traditional Chinese Solaris operating environment starts the htt input method server automatically when you start the Solaris operating environment in a locale that requires an input method. htt continues to run and service applications that are started and connected to it. If you need to restart htt, refer to "How and When htt Is Started," on page 15.

So each Traditional Chinese Solaris application that uses htt for Traditional Chinese character input typically finds htt running when it starts. To get htt's service for language input, htt should be running before an application is started. If an application does not find htt running when it starts, that application may not be able to get the input service even if htt is started later.

Three htt Processes

The input method server comprises three related programs (htt_props, htt, and htt_server) processes running together. One process controls the input method server properties, another controls the population of the input method server (that is, a "watch dog" process), and the third handles input methods of clients.

Usually, you don't need to know the details of these three processes. When htt is started, htt_props and htt_server are started automatically.

htt Property Manager

The htt input method server is started as an icon. Double click SELECT on the icon to start htt Property Manager to configure the behavior of htt.

Resetting and Terminating htt

Graphic

The input method server property manager includes the following menus:

File Menu

Reset Input Manager - resets and restarts the htt input method server. This operation is not needed unless the input method server requires resetting (for example, when an application stops getting the language input). Selecting this operation destroys any intermediate data (such as preedit texts).

Exit - terminates htt. When you select this operation, htt Property Manager offers three options.

Help Menu

The htt Property Manager provides four categories of help messages to guide its operation:

Using htt Command Line Options.

htt's command line options can be referenced from its man page or by typing:


system% htt -help

Customizing the on/off Key From General Dialog

You can customize the key sequence to turn on/off locale specific input. To add a key sequence, perform the following steps:

Graphic
  1. Press the Add button.

    You will see the Add Key popup.

  2. Press the key to be added and OK.

    The key pressed is added to the conversion key list.

    To remove any key from the list:

    • Select the key from the list and press Remove.


      Note -

      The customized key sequence will take effect when you restart htt.


Customizing the Preedit/Status Window From the Preedit/Status Dialog

You can control the Preedit/Status window placement in this panel if your application specifies the root window style Preedit or Status.

Graphic
  1. Selecting "Position on the screen" places the window in a fixed location of the workspace. This window is shared by multiple applications whose input style is root window style.

  2. Selecting "Position relative to the cursor" places the window close to the mouse cursor.

  3. Selecting "Attach to client input window" places the window near the application's input window.

    In addition to the placement of the Preedit/Status window for the root window style, you can configure the behavior of the preedit string when it reaches the end of a line. By default, the preedit string will wrap around to the second line. But if you de-select "Wrap long lines in on-the-spot preedit," the preedit string will not exceed one line and it will scroll when reaching the end of a line.

Customizing the Lookup Window From the Lookup Table Dialog

Graphic

You can control the appearance of the lookup window by choosing one of the four options listed:

How and When htt Is Started

An application that uses the htt input method server to receive Traditional Chinese characters must find htt running before it can receive such input. So if your default locale is the C locale (which does not require htt) and you then change from C to another locale in a single Terminal, for example, you must start htt with a command line like the following:


system% htt & 

With the locale set to zh_TW or zh_TW.BIG5, htt is started automatically when the Traditional Chinese windowing environment starts. In CDE, htt is started from a script, /usr/dt/config/Xsession.d/0020.dtims. This script is executed by Xsession, which runs at every initialization stage upon a user's login from dtlogin. This script ensures that htt is started before other applications in CDE.

Using the iiim Server in zh_TW.UTF-8 Locale

The Internet Intranet Input Method Server (iiim) supports both European Local Input Methods using Compose key and Asian Remote Input Methods using IIIM Protocol. The default Language Engine is English/European which supports ASCII and some European Languages such as German and French.

To switch to other Language Engines, press CTRL+Space, as with other Asian Locales.

To switch to Chinese Input Methods, click the left mouse button in the Status Area. The following Language Engine List appears:

The following Language Engines appear if their corresponding locales are installed:

After the Traditional Chinese Language Engine is selected, you can use Function Keys to switch between different Input Methods:

For more detailed information about each Input Method, see "Chapter 4, Entering Traditional Chinese Text".