nanogui@linuxhacker.org
nanogui@linuxhacker.org
Subject: the idea of XIM
From: tony hu
Date: Thu, 12 Oct 2000 16:04:34 +0800
This is the way to input Chinese charactor used by X system(the workframe of XIM):
Event Loop
|--> XNextEvent() ---|---key press---|--->
| XmbLookUpString() <--|-Composed Text-|----
| XmbDrawstring() | |
| | XCient | | XIM Server | /\
--|-----------|---------------- -------------|-------|-----
| | | |
--|-----------|---------------- --------------|-------|-----
| | Client Window| |Input Methods \/ |
| \/ | |
key Composing Area... | |
| |
PreEdit | Status <--|----- update -|--------
X Server
So XIM Server co-work with X Server to translate input ascii key to Chinese charactor
and display.
excepting your application Windows, and has a input Window runing.When you press a
key ,it doed not be display in your application area, the key ascii code is pass to
XIM Server ,XIM Server pass it to Input Window's PreEdit area, one or more chars (input
in by previous) composed result some chinese charactor displayed, you choice one ,and
it will display in your application window's composing area.
So if microwindow provide support of XIM, it will be easy to input of Chinese ,Korea,
Japenese or other non-single byte charactor.
Regards,
Tony Hoo
nanogui@linuxhacker.org