The X Window System resource entries in the .Xdefaults resource file specify the status style and preedit style as described in the following sections.
The default CDE settings are overTheSpot and status area.
The Status Area displays which input mode is in effect in the IM server window. You can set the style by entering one of the following lines in the .Xdefaults resource file:
Table 5-1 Status Styles
Status Styles |
X Resource |
---|---|
callback |
N/A |
status area |
preeditType: overTheSpot |
root window |
preeditType: root |
Many scripts require multiple key strokes to form a single display character, syllable, symbol, ideogram, or other item. Adequate space is needed to display input keystrokes for these languages. For the Asian CDE environment, this intermediate display area is called the preedit area. The preedit area displays intermediate formations of input keystrokes while they are held in a buffer before being committed and sent to the application.
The available styles of preedit area positioning are discussed in the following sections. You can set the style by placing one of the following lines in the .Xdefaults resource file:
Table 5-2 Preedit Styles
Preedit Style |
X Resource |
---|---|
on-the-spot |
N/A |
over-the-spot |
*preeditType: overTheSpot |
off-the-spot |
*preeditType: offTheSpot |
root window |
*preeditType: root |
The on-the-spot style in the preedit area is displayed directly in the application window, and grows to the right of the insertion point as text is typed. If existing text is located to the right of the insertion point, that text is moved further to the right, accommodating the expanding preedit text as it is typed. The following shows an example of this style:
As you type text, an over-the-spot style preedit area expands to the right of the insertion point and overwrites any existing display. After you finish typing and processing the preedit area input (in other words, once the text is converted, committed, or otherwise disposed), the processed preedit text is inserted at the insertion point and the preedit area disappears.
Existing text located to the right of the insertion point appears to be overwritten during typing, but when the processed text is inserted at the insertion point, previously existing text is moved and displayed further to the right. This text movement accommodates the input text being inserted.
Before you type in an over-the-spot preedit area, the screen should resemble the following:
The following figure shows Korean text added on a line of existing text:
The following figure shows Korean text after it is committed:
Before you type text in an over-the-spot preedit area, the screen should resemble the following:
The following figure shows text added at the insertion point on a line of existing text:
The following figure shows Simplified Chinese text after it is committed:
Before you type in an over-the-spot preedit area, the screen should resemble the following:
The following figure shows text added at the insertion point on a line of existing text:
The following figure shows Traditional Chinese text after it is committed:
An off-the-spot style preedit area is located inside an application window, but it is not at the insertion point. This style preedit area is a permanent part of the application's visual interface. For ease of viewing and consistency, the proposed standard location for off-the-spot preedit areas is in the bottom margin of the application window to the right of the status area.
After you finish typing and processing preedit area input (text converted, committed, or otherwise disposed), the text is sent to the insertion point. Text to the right of the insertion point is moved farther to the right, accommodating the preedit text as it is inserted.
A root-window style preedit area is provided by the system's workspace. The proposed standard location of the preedit area is at the bottom of the workspace. Input handling works the same as with off-the-spot style preedit areas.