XIM support patch

liu spider liuspider at yahoo.com
Fri Dec 13 10:12:10 CST 2002


This patch is intended to implement XIM support in
wine. I hope it will support Chinese, Japanese and
Korean input method. But as I am Chinese I only tested
it with Chinese IM.

For this patch is based on the patch of Mike
McCormack, which is made for Japanese IM, I think mine
will work with Japanese too. But I am not sure whether
this one can get along with Korean IMs.

If u would like to try it, please give me some
suggestions or/and bug reports.

This patch implemented features include:
One thread only create one connection with XIM server
and one IC.
Support OVER_THE_SPOT and ROOT IM style.
Enable/disable XIM support by editing the config file.
The font used in the XIM can be specified in the
config file.
Some other modifications for convenience purpose.

Hope this one helps CJK users.


ChangeLog:
    liuspider <liuspider at yahoo.com>
* controls/edit.c
- add a debug channel xim
- add a message type WM_IME_CHAR

* dlls/kernel/locale.c
- handle charset

* dlls/x11drv/X11_calls
- add some X11 XIM calls

* dlls/x11drv/event.c
- add a debug channel xim
- check whether keypress has been filter by XIM server
- add set XIC focus in EVENT_FocusIn

* dlls/x11drv/keyboard.c
- add a debug channel xim
- add XIM key handler : XIM_KeyEvent
- check whether keypress has been filter by XIM server

* dlls/x11drv/ts_xlib.c
- add some functions used for XIM

* dlls/x11drv/ts_xlib.h
- add some functions used for XIM

* wine/dlls/x11drv/window.c
- a new function to get the XIC

* wine/dlls/x11drv/x11drv_main.c
- setup the connection with XIM server in thread
initialisation routine
- create XIC in thread initialisation routine
- close connection in thread termination routine
- destroy XIC in thread termination routine

* documentation/samples/config
- a new section [InputMethod]

* include/winnls.h
- add a constant LOCALE_SCHARSETNAMES

* include/x11drv.h
- add some variables to hold xim attributes

NewFile:
* dlls/x11drv/xim.h
- CONSTANTs used in XIM input style

(sorry, but I don't know yahoo will wrap my email content)

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 29462 bytes
Desc: patch.diff
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021213/d20efff5/patch.bin


More information about the wine-patches mailing list