24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The following is a list of <strong>AIX</strong> XIM module features:<br />

• <strong>AIX</strong> XIM module has the first loading priority.<br />

• <strong>AIX</strong> XIM module tries to query specified language and IM modifier<br />

(XMODIFIERS) to the <strong>AIX</strong> Input Method.<br />

8.2.21.2 <strong>AIX</strong> XIM Interface for Input Method Switching<br />

X Consortium's sample code implements an input method switching mechanism<br />

at the top of XIM layer. All X input methods are registered at _XimImSportRec in<br />

the imImSw.c file. The _XimOpenIM() function invokes the checkprocessing<br />

method of the registered X input method to check that the X input method is<br />

supported by the specified locale and IM modifier. If the input method is<br />

supported, then the _XimOpenIM() function calls im_open method of the XIM. If it<br />

fails to open IM, then the im_free method is called to close it down.<br />

The following section describes the methods provided by <strong>AIX</strong>'s XIM module:<br />

(*checkprocessing)() - _XimCheckIf<strong>AIX</strong>Processing<br />

This routine is called from the _XimOpenIM() function to check that a XIM module<br />

supports specified IM information (locale and modifiers).<br />

This function returns True with the following conditions:<br />

• If the XMODIFIERS is not specified, and the specified locale is supported by<br />

the <strong>AIX</strong> Input Method.<br />

• If the specified XMODIFIERS and locale combination are supported by the<br />

<strong>AIX</strong> Input Method.<br />

If the XMODIFIERS is specified, a combined <strong>AIX</strong> IM name is used to check if the<br />

specified locale and modifier combination are supported by the <strong>AIX</strong> IM. To make<br />

a combined <strong>AIX</strong> name, concatenate the IM modifier to the locale name. The <strong>AIX</strong><br />

IM function accepts a language name that contains the IM modifier @im=.<br />

For example:<br />

$LANG = xx_XX<br />

$XMODIFIERS = @im=foo<br />

Combined Name = xx_XX@im=foo<br />

<strong>AIX</strong> IM module = xx_XX@foo<br />

(*im_open)() - _Xim<strong>AIX</strong>OpenIM<br />

This routine is called from the _XimOpenIM() function when an application calls<br />

XOpenIM().<br />

(*im_free)() - _Xim<strong>AIX</strong>IMFree<br />

This routine is called from the im_free() function and is used to close down the<br />

input method.<br />

8.2.22 Input Method Protocol<br />

Some languages need complex pre-editing input methods. Such an input method<br />

may be implemented separately from applications in a process called an Input<br />

Method (IM) Server. The IM Server handles the display of pre-edit text and the<br />

user's input operation. The Input Method (IM) Protocol standardizes the<br />

206 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!