I18n text input

Russell Shaw rjshaw at netspace.net.au
Thu Jan 21 06:07:54 PST 2010


Glynn Clements wrote:
> Russell Shaw wrote:
> 
>>> Unless you're planning on spending the next few months learning how
>>> text entry works for languages other than English, I'd recommend using
>>> a GUI toolkit rather than trying to do it using bare Xlib. Or at least
>>> steal the code from such a toolkit.
>> I understand everything about non-english text entry and processing.
>>
>> When i do:
>>
>>    XIM im = XOpenIM(app->display, NULL, NULL, NULL);
>>
>> "im" is set to a valid XIM rather than NULL. I thought an input method
>> was supposed to be a separate process, but i haven't started one or used
>> one previously. Where is this one coming from? What sort of text entry
>> can i do with it?
> 
> Simpler input methods (dead keys and compose) are built into X. More
> complex methods (e.g. those for CJK) use a separate IM server.
> 
> If your locale is for a Latin-based language, you should be able to
> use dead keys and compose processing. For a UK keyboard, AltGr and the
> rightmost keys (=[]#'/) normally act as dead keys, while Shift-AltGr
> is Compose.
> 
> There is more information on the API in §13.5 of the Xlib manual.

Hi,
There is mention of utf8 functions in X Version 11, Release 6.4 docs:

   http://lesstif.sourceforge.net/doc/Xlib/spec/xlib.html


yet nothing in the latest X Version 11, Release 6.9/7.0 docs:

   http://xorg.freedesktop.org/releases/X11R7.0/doc/PDF/xlib.pdf



More information about the xorg mailing list