Simplified Chinese Solaris User's Guide

Chapter 3 Using the htt Input Method Server

Introduction

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

This chapter explains the basic display features of the IM Server.

You need to be familiar with the input method terminology in the chapter 4 before reading this chapter. However, to create Simplified Chinese text using Solaris applications, you do not need to read beyond the first section of this chapter.

Input Method Server Basic Properties

The Simplified Chinese Solaris operation environment starts the IM server automatically when you start the solaris operating environment in a locale that requires an input method. The IM server continues to run and service applications that are started and connected to it.

Simplified Chinese Solaris applications that use IM Server for Simplified Chinese character input typically find the IM server running when they started. To get the IM server's service for the language input, the IM Server should be running before an application is started. If the IM Server is not running when an application is started, the application may not be able to get the input service, even if IM Server is started later.

Three htt Processes

The input method server comprises three related programs (htt, htt_server, and htt_xbe) 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_server and htt_xbe start also.

htt Application Display

The following figure shows a typical application display when using the htt input method.

Graphic

How and When htt Is Started

Any application that uses the htt input method server to receive Simplified Chinese characters must find htt running before it can receive input. 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% /usr/openwin/bin/htt -if cle -xim htt_xbe &

With the locale set to zh, htt starts automatically when the Simplified Chinese windowing environment is started. 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 when a user logs in from dtlogin. This script ensures that htt is started before other applications in CDE.

Using the iiim Server in zh.UTF-8 and zh_CN.UTF-8 Locales

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 Simplified Chinese Language Engine is selected, you can use Function Keys to switch between different Input Methods:

For more detailed information about Input Methods, see "Chapter 4, Entering Simplified Text".