7    Japanese Input with dxjim

This chapter describes the dxjim Japanese input server, which is the standard Japanese input server on the Tru64 UNIX operating system.

7.1    Outline of the Japanese Conversion Features

The Tru64 UNIX window environment allows you to input Japanese characters in text input fields. To input Japanese characters, type a Roman (Romaji) or Kana character string that represents the phones (YOMI) and then use the (HENKAN) key to convert it into a string of Kanji, Hiragana, or Katakana characters. Table 7-1 lists the Japanese input conversion features.

Table 7-1:  Japanese Input Conversion Features

Feature Description
Kanji Conversion,Next Phrase Candidate Converts the characters into Kanji characters.Pressing more than once displays the next candidate.
Hiragana Conversion,Phrase Hiragana Conversion Converts the characters into Hiragana characters.
Katakana Conversion,Phrase Katakana Conversion Converts the characters into a Katakana characters.
Full-Width Conversion Converts full-width alphanumeric characters into half-width characters converts full-width symbols into half-width symbols.
Half-width Conversion Converts a half-width alphanumeric character or symbol into the full-width one.
Symbol Conversion,Code Input Converts one to three alphanumeric characters or symbols into special symbols (see Section 7.4.3), or converts Kanji codes into Kanji characters (see Section 7.4.4).
Uppercase Conversion Converts lowercase characters into uppercase characters.
Lowercase Conversion Converts uppercase characters into lowercase characters.
Move to Next Phrase Moves to the next phrase if the resulting character string from Kanji Conversion contains two or more phrases (that is, the next phrase is regarded as the target to convert).
Move to Previous Phrase Moves to the previous phrase if the resulting character string from Kanji Conversion contains two or more phrases (that is, the previous phrase is regarded as the target to convert).
Reduce Phrase Reduces the phrase to covert.
Enlarge Phrase Enlarges the phrase to convert.
Previous Phrase Candidate Returns to the preceding candidate for Kanji Conversion.
Determine Full Text Determines the conversion of the entire phone you entered.
Determine Phrase Determines the conversion of the phrase that is the current target to convert. (If the text contains two or more phrases, the next phrase is regarded as the target to convert.)
Cancel Conversion,No Conversion Returns to the initial phones immediately after they are converted (the phones can be modified).Alternatively, determines the input, with the initially typed characters as they are, immediately after the phones are typed.

7.2    Using dxjim

To use the dxjim input server, first start the application on the display where dxjim is running. Then, focus on the character input field (that is, bring it to the foreground). The dxjim title changes to represent the input style and you can now input Japanese characters.

The dxjim input server supports three input styles: over-the-spot (default), on-the-spot, and root-window.

Under the over-the-spot style, Japanese Conversion occurs in the application window and allows you to perform Japanese input without considering dxjim. However, because the character string currently being converted is displayed in the application window, an attempt to insert a character between existing characters might hide part of the existing string until the conversion is determined. Also, if you proceed with the process immediately after character input (for example, by pressing the [OK] button), the characters for which the conversion has been determined are not included. In this case, you have to determine the conversion by pressing [Ctrl/G] or [Ctrl/N] for the JVMS conversion key before proceeding with the process.

Under the on-the-spot style, Japanese Conversion occurs in the application window and allows you to perform Japanese input without considering dxjim. However, unlike the over-the-spot style, no part of an already typed character string is hidden when you attempt to insert a character between existing characters.

Under the root-window style, you must consider dxjim. That is, the root-window style displays in the dxjim window, any character string you typed in the application window. Because the entire character string currently being converted is displayed in the dxjim window, you must be aware of the dxjim window until the Japanese Conversion is determined.

For information on setting up the input styles, see Section 7.2.2.

7.2.1    Setting Up dxjim

When running, the dxjim input server displays either the character string (Kanji Conversion) or "ASCII" at the bottom left field of the dxjim window. While remains displayed there, the application can input Japanese characters using dxjim. When "ASCII" is displayed, Japanese input does not work. Immediately after startup of the application, dxjim is in the mode.

The key used to change the mode from "ASCII" to is called the Start key. The key used for reverse mode (from to "ASCII") is called the End key.

By default, the Start and End key is Shift-Space (that is, pressing the space bar while holding down the [Shift] key). To change the Start and End key settings, use the Start Key: Settings dialog box that displays when you select the Set Key menu from the Options menu. Changes to the Start and End keys made in the Start Key: Settings dialog box are effective for all applications.

The dxjim input server uses the user key definition library IMLIB. The dxjim input server uses the key definition of the user who has started the input server. For information on definitions of the conversion and user keys, and IMLIB, refer to the User Key Definition User's Guide.

To change the conversion key, select Key Definition from the Options menu. Using this method, you can change only the definition of the conversion key; you cannot change the manner of echoing. The conversion key change applies only to the widget you used for input of Japanese characters while the change was in effect.

If the application uses root-window input style, a preedit area is created in the dxjim window. The key used to determine the preedit for input to the application is called the Determination key. The Determination key default is the [Return] key.

To change the Determination key, use the Start key: Settings dialog box. The new Determination key applies to all applications that use the root-window input style.

7.2.2    Input Styles

The input styles supported by dxjim (on-the-spot, over-the-spot, and root-window) are listed as input styles for text window input in the X11R6.3 standard. (X11R6.3 also lists a few preedit modes, which are not supported by dxjim). The dxjim input server can also display the mode of the connected client.

You can use the XmText() and DXmCSText() widgets to set the input style using the VendorShell() widget's XmNpreeditType() resource. For this resource, specify one of the following values:

The XmNpreeditType() resource allows you to specify two or more of these values, separated by commas.

The default input style is OverTheSpot. Under the OverTheSpot style, the character string currently being converted is initially overwritten on the existing text. After the conversion is determined, the string is inserted into the entire text.

7.2.3    Using dxjim Resources

Using resources, you can modify dxjim settings. The resources available for dxjim are listed in this section. The class name for dxjim is DXjim and the default resource file is /usr/i18n/lib/X11/app-defaults/DXjim.

7.3    Japanese Input Conversion Keys

Tru64 UNIX provides definitions for the conversion keys used for text input. Japanese VMS (JVMS) is the default conversion key definition unless otherwise specified. See Section 7.3.1 for information on changing the conversion key definition.

The conversion key definitions are:

Table 7-2:  JVMS Conversion Key Definition

Function Keystrokes
Kanji Conversion or Next Phrase Candidate [Ctrl+Space]
Kanji Candidate List [Ctrl+`]; [`] is a key located at the top left corner of the keyboard
Hiragana Conversion of Phrase Hiragana Conversion [Ctrl+L]
Katakana Conversion or Phrase Katakana Conversion [Ctrl+K]
Half-Width Kana Conversion [Ctrl+G] [Ctrl+K]
Full-Width Conversion [Ctrl+F]
Half-Width Conversion [Ctrl+G] [Ctrl+F]
Symbol Conversion or Code Input [Ctrl+]]
Uppercase Conversion N/A
Lowercase Conversion N/A
Move to Next Phrase [Ctrl+P]
Move to Previous Phrase [Ctrl+G] [Ctrl+P]
Reduce Phrase [Ctrl+/]
Enlarge Phrase [Ctrl+G] [Ctrl+/]
Previous Phrase Candidate [Ctrl+G] [Ctrl+Space] or [Ctrl+G] [Ctrl+L]
Determine Full Text [Ctrl+G] [Ctrl+N]
Determine Phrase N/A
Cancel Conversion or No Conversion [Ctrl+N]

Table 7-3:  EVEJ Conversion Key Definition

Function Keystrokes
Kanji Conversion or Next Phrase Candidate [Ctrl+Space]
Kanji Candidate List [Ctrl+`]; [`] is a key located at the top left corner of the keyboard
Hiragana Conversion or Phrase Hiragana Conversion [Ctrl+H]
Katakana Conversion or Phrase Katakana Conversion [Ctrl+K]
Half-Width Kana Conversion [PF1] [Ctrl+K]
Full-Width Conversion [Ctrl+F]
Half-Width Conversion [Ctrl+E]
Symbol Conversion or Code Input [PF1] [Z] or [PF1] [z]
Uppercase Conversion N/A
Lowercase Conversion N/A
Move to Next Phrase [Ctrl+P]
Move to Previous Phrase [PF1] [Ctrl+P]
Reduce Phrase [Ctrl+A]
Enlarge Phrase [PF1] [Ctrl+A]
Previous Phrase Candidate [PF1] [Ctrl+Space]
Determine Full Text [PF1] [Ctrl+N]
Determine Phrase N/A
Cancel Conversion or No Conversion [Ctrl+N]

Table 7-4:  KEYPAD Conversion Key Definition

Function Keystrokes [Footnote 6]
Kanji Conversion or Next Phrase Candidate [KP7]
Kanji Candidate List [Ctrl+`]; [`] is a key located at the top left corner of the keyboard
Hiragana Conversion or Phrase Hiragana Conversion [KP1]
Katakana Conversion or Phrase Katakana Conversion [KP2]
Half-Width Kana Conversion [KP6]
Full-Width Conversion [KP3]
Half-Width Conversion [KP9]
Symbol Conversion or Code Input [KP8]
Uppercase Conversion N/A
Lowercase Conversion N/A
Move to Next Phrase [KP5]
Move to Previous Phrase [PF1] [KP5]
Reduce Phrase [KP4]
Enlarge Phrase [PF1] [KP4]
Previous Phrase Candidate [PF1] [KP7]
Determine Full Text N/A
Determine Phrase N/A
Cancel Conversion or No Conversion [KP0]

Table 7-5:  TARO Conversion Key Definition

Function Keystrokes
Kanji Conversion or Next Phrase Candidate [Space]
Kanji Candidate List [Ctrl+`]; [`] is a key located at the top left corner of the keyboard
Hiragana Conversion or Phrase Hiragana Conversion [F11]
Katakana Conversion or Phrase Katakana Conversion [F12]

Full-Width Conversion

Full-Width Conversion does not work after Kanji, Katakana, or Hiragana Conversion. In these cases, use Cancel Conversion before using Full-Width Conversion.

[F14]

Half-Width Conversion

Half-Width Conversion does not work after Kanji, Katakana, or Hiragana Conversion. In these cases, use Cancel Conversion before using Half-Width Conversion.

[F13]
Symbol Conversion or Code Input [Ctrl+]]
Uppercase Conversion N/A
Lowercase Conversion N/A
Move to Next Phrase [down-arrow]
Move to Previous Phrase N/A
Reduce Phrase [<-]
Enlarge Phrase [->]
Previous Phrase Candidate [up-arrow]
Determine Full Text [Return]
Determine Phrase [down-arrow]

Cancel Conversion

The TARO Conversion Key Definition does not contain the ̵ÊÑ´1 (MU-HENKAN, No Conversion) key.

[DELETE]

Table 7-6:  CTRL Conversion Key Definition

Function Keystrokes
Kanji Conversion or Next Phrase Candidate [Ctrl+K]
Kanji Candidate List [Ctrl+']; [`] is a key located at the top left corner of the keyboard
Hiragana Conversion or Phrase Hiragana Conversion [Ctrl+G]
Katakana Conversion or Phrase Katakana Conversion [Ctrl+N]
Half-Width Kana Conversion [Ctrl+H]
Full-Width Conversion [Ctrl+E]
Half-Width Conversion [Ctrl+T]
Symbol Conversion or Code Input [Ctrl+F]
Uppercase Conversion N/A
Lowercase Conversion N/A
Move to Next Phrase [Ctrl+P] [r]
Move to Previous Phrase [Ctrl+P] [l]
Reduce Phrase [Ctrl+A]
Enlarge Phrase [Ctrl+X]
Previous Phrase Candidate [Ctrl+L]
Determine Full Text N/A
Determine Phrase N/A
Cancel Conversion or No Conversion [Ctrl+B]

7.3.1    Changing the Conversion Key Definition

By default, dxjim uses the JVMS Conversion Key Definition.

To change the conversion key definition you use for applications, use the following steps. The steps use the example of changing the key definition to EVEJ.

  1. Define the IM_PROFILE environment variable as follows:

    % setenv IM_PROFILE im_profile_evej  (When csh is in use)
     
    $ IM_PROFILE=im_profile_evej
    $ export IM_PROFILE                  (When sh or ksh is in use)
    

  2. To use the JVMS, TARO, CTRL, or KEYPAD Conversion Key Definition, change im_profile_evej (shown in the example in step 1) to one of the following:

  3. To use the new key definition, restart the application.

If you include the definition in the user's .cshrc (or .profile if sh is in use), you will be able to use the selected key definition for subsequent sessions.

For details on key definitions, refer to the User Key Definition User's Guide.

7.4    Conversion Rules

This section defines the following conversion rules:

7.4.1    Romaji-to-Kana Conversion Correspondence Table

7.4.2    Special-Character Conversion Correspondence Table

7.4.3    Symbol Conversion Correspondence Table

7.4.4    Code Input

Type the Kanji code for symbol conversion to input a Kanji character using a Kanji code. Two types of Kanji codes are available:

If you use DEC Kanji code, attach an "X" to the beginning.

For example,

If you use a Ku-Ten code, attach a "J" to the beginning.

For example,

For the members of the DEC Kanji and Ku-Ten codes, see the book Kanji Code Table that is included in the Japanese version of the Tru64 UNIX Installation Kit.

7.5    Using the Keyboard Kana Mode

Tru64 UNIX supports Kana keyboards. After the Japanese Keyboard is setup on the system, a Kana keyboard is automatically available.

A Kana keyboard has two modes and you can toggle between the two. Kana Mode lets you type Kana characters. ASCII Mode lets you type alphabetic characters and digits. The default mode is ASCII.

To toggle between the ASCII and Kana Modes on the PCXAJ keyboard, press the [Ctrl] key located at the right.

Note

The PCXAJ-AA is equipped with two [Ctrl] keys.

To toggle between the ASCII and Kana Modes on any other Japanese keyboard, press the (KANA) key.

On a North American keyboard, the [Compose] or [Comp] key functions as the (KANA) key.

7.6    Supporting Japanese Keyboards Equipped with Conversion Keys

Tru64 UNIX supports the following Japanese keyboards, which are equipped with keys dedicated to Japanese input (for example, (HENKAN), (MU-HENKAN)):

For details about setting up the keyboards, refer to the Release Notes.

Any of the keyboards equipped with the (HENKAN) key allow you to use the keystrokes listed in Table 7-7, as well as the keystrokes based on the conversion key definition (JVMS, EVEJ, or KEYPAD).

Note

For the TARO Conversion Key Definition, the keystrokes listed in Table 7-7 are not available.

Table 7-7:  Conversion Key Definition of a Japanese Keyboard Equipped with the (HENKAN) Keys

Function Keystrokes [Footnote 7]
Kanji Conversion or Next Phrase Candidate  
Kanji Candidate List  
Hiragana Conversion or Phrase Hiragana Conversion  
Full-Width Katakana Conversion or Full-Width Phrase Katakana Conversion ; is to press the key while holding down the [Shift] key
Full-Width Conversion  
Half-Width Katakana Conversion or Half-Width Phrase Katakana Conversion or
Half-Width Conversion  
Symbol Conversion or Code Input  
Move to Next Phrase  
Move to Previous Phrase  
Reduce Phrase  
Enlarge Phrase  
Previous Phrase Candidate ; is to press the key while holding down the [Shift] key
No Conversion  
Cancel Conversion