X11 Wish List -- IME support for keyboard input
X11 Wish List -- IME support for keyboard input
- Subject: X11 Wish List -- IME support for keyboard input
- From: Dave Williss <email@hidden>
- Date: Thu, 09 Aug 2007 14:58:08 -0500
Here's a major wish for X11.
If I've set my keyboard to Japanese, I'd really like to be able to type
Japanese into an X11 app. We do this now using a couple X11 apps,
kinput2 and Canna, but the input is different and they are essentially
redundant since the OS has built-in IME that's just not available to X apps.
There are two ways this could be implemented.
One is really complicated but the most complete: Support the Xim /
kinput2 protocol. This could possibly be done by modifying the kinput2
program to have an option to use the OS-provided IME as the back end
instead of Canna.
The other, easier method is one that we use in our Windows X server
(MI/X).
We reserve a position in the X keymap. When we get a Windows event
telling us that the IME has a kanji or other character for us that's not
in the keymap already, we modify the reserved slot in the keymap and
then send out the X event saying the keymap's been modified. Then we
send a KeyDown and KeyUp for the reserved key code. If you do a Google
search for ucs2keysym.c, you'll find a function that converts Unicode
characers to X KeySym values.
Dave Williss
MicroImages, Inc
www.microimages.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden