Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Configuring HP-UX for Different Languages > Chapter 2 Configuring the Asian Language Extensions

Configuring Input Method Server

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

Supported Input Method Server

The type of IMS (Input Method Server) supported for each Asian language is shown below.

Table 2-2 System Environments and Supported Input Methods

System EnvironmentSupported IMS
JapaneseXJIM, ATOK X
KoreanXKIM
Simplified ChineseXSIM
Traditional ChineseXTIM

 

Non-CDE Environment

The CDE bundle is installed by default on your system. If, however, the CDE bundle is not installed on your system, you must modify the X11 startup script ($HOME/.x11start) and set the LANG and XMODIFIERS environment variables accordingly. After you set the environment variables, you must invoke an Input Method Server.

For example, if your locale is ja_JP.SJIS and you invoke the ATOK X Input Method Server, your X11 startup script ($HOME/.x11start) must include the following entries before invoking any X applications:

LANG=ja_JP.SJIS
export LANG
XMODIFIERS='@im=_XIMP_ja_JP.SJIS#atokx.0'
export XMODIFIERS
atokx &
sleep 5

Function of the dtimsstart[1] command

If CDE language bundles are installed on your system, the dtimsstart command allows a user to select one IMS.

Before using dtimsstart, the user should set the environment variable LANG properly since dtimsstart changes its behavior according to the LANG value.

dtimsstart sets the environment variable XMODIFIERS appropriately to connect with the selected IMS so that a user can use the IMS without any additional configuration.

If you choose an Asian locale on the HP-UX CDE environment, dtimsstart is automatically started immediately after the user logs in. More precisely, dtimsstart is invoked automatically at Xsession startup (user login) by the script /usr/dt/config/Xsession.d/0020.dtims.

Manual Start Up

It is useful to start an IMS manually, if you use an Asian Input Method on your C locale desktop. You can execute dtimsstart as follows on your command line.

eval ‘/usr/dt/bin/dtimsstart -env‘

IMPORTANT: The quotation mark of this line must be a left single quotation mark, and NOT apostrophe-quote.
NOTE: Normally, dtimsstart shows messages and labels in Asian languages. If you want to see the messages and labels in English, set the environment variables to change to the C locale.

eval ‘NLSPATH=/usr/dt/lib/nls/msg/C/%N.cat \
XENVIRONMENT=/usr/dt/app-defaults/C/Dtimsstart \
dtimsstart -env‘

Your LANG variable must be set to the appropriate Asian locale in order for dtimsstart to work. After starting dtimmstart manually, it will only be active on applications launched in that locale.

Selection of the Input Method

  • For Japanese locales (ja_JP.SJIS, ja_JP.eucJP, ja_JP.utf8)

    dtimsstart displays the selection window as shown below. By selecting one of the listed IMSs and clicking the OK button (left-most button), dtimsstart will start the selected IMS. For other operations on this window, selecting the Help button (right-most button) gives more explanation. The last selection (showing up in Japanese) means “No Japanese Input”.

    Figure 2-2 Japanese Input Method Selection Window

    Japanese Input Method Selection Window
  • For Korean locales (ko_KR.eucKR, ko_KR.utf8):

    dtimsstart starts XKIM without showing the selection window because only one IMS, XKIM, is supported for both locales.

  • For Simplified Chinese locales (zh_CN.gb18030, zh_CN.hp15CN, zh_CN.utf8):

    dtimsstart starts XSIM without showing the selection window because only one IMS, XSIM, is supported for these locales.

  • For Traditional Chinese locales (zh_TW.eucTW, zh_TW.big5, zh_TW.ccdc, zh_TW.utf8):

    dtimsstart starts XTIM without showing the selection window because only one IMS, XTIM, is supported for these locales.

  • For Hong Kong locales (zh_HK.hkbig5, zh_HK.utf8):

    dtimsstart starts XTIM without showing the selection window because only one IMS, XTIM, is supported for both locales.

NOTE: XKIM does not have a visible main window, like other Asian IMS. To quit XKIM, use kill(1) command or terminate the X server.

Simple Test

This section describes a simple test procedure to confirm that the Asian system environment is configured. For full, non-restricted use of all supported input method functionality, use a localized keyboard or customize a keyboard using keymapd_ed or xmodmap.

Japanese Environment Test With Keyboard

These descriptions are based on only xjim.

  1. Set the input field in the foreground

    Your process will automatically connect with xjim foreground; then check that the cursor is in the input field.

  2. Enable input

    Hit the left Alt key (ExtendChar) or Ctrl+Space to enable IMS input. Then a status window will appear at the bottom of the focused window.

  3. Change input mode

    Hit the F3 key to change its mode to input two-byte Roman characters.

  4. Input characters

    Input some characters. They are displayed in inverse video, and when the Return key is pressed, fixed strings are sent to the application.

To exit xjim input mode, hit the left Alt key (ExtendChar) or Ctrl+Space. The system will return to normal input mode immediately.

Korean Environment Test With Keyboard

These descriptions are based on only xkim.

  1. Set the input field in the foreground

    Your process will automatically connect with xkim foreground; then check that the cursor is in the input field.

  2. Enable input

    Hit the right Alt key (ExtendChar) to enable IMS input. Then, the status window appears at the bottom of the focused window.

  3. Change input mode

    Hit the F9 key to change its mode to input two-byte Roman characters.

  4. Input characters

    Input some characters. Two-byte roman characters are displayed.

To exit xkim input mode, hit the left Alt key (ExtendChar). The system will return to normal input mode immediately.

Simplified Chinese Environment Test With Keyboard

These descriptions are based on only xsim.

  1. Set the input field in the foreground

    Your process will automatically connect with xsim foreground; then check that the cursor is in the input field.

  2. Enable input

    Hit the right Alt key (ExtendChar) to enable IMS input. Then, status window appears at the bottom of the focused window.

  3. Change input mode

    Hit the Shift+F12 key to change its mode to input two-byte Roman characters.

  4. Input characters

    Input some characters. Two-byte roman characters are displayed.

To exit xsim input mode, hit the left Alt key (ExtendChar). The system will return to normal input mode immediately.

Traditional Chinese Environment Test With Keyboard

These descriptions are based on only xtim.

  1. Set the input field in the foreground

    Your process will automatically connect with xtim foreground; then check that the cursor is in the input field.

  2. Enable input

    Hit the right Alt key (ExtendChar) to enable IMS input. Then, the status window appears at the bottom of the focused window.

  3. Change input mode

    Hit the Ctrl+Shift key to change its mode to the desired input method to enter two-byte Roman characters.

  4. Input characters

    Input some characters. Two-byte roman characters are displayed.

To exit xtim input mode, hit the left Alt key (ExtendChar). The system will return to normal input mode immediately.



[1] dtimsstart was known as ximsstart in pre HP-UX 11.0 operating systems and was not a standard part of CDE

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2000-2007 Hewlett-Packard Development Company, L.P.