nanogui: the idea of XIM
Subject:
the idea of XIM
From:
"tony hu" ####@####.####
Date:
12 Oct 2000 08:03:03 -0000
Message-Id: <001301c03423$1d79dfc0$4400a8c0@HuXianGang>
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