Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

X11 Wish List -- IME support for keyboard input



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)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.