With the Xkb specs and some patience, it's pretty easy. I've implemented something similar on top of Qt -- something which recognizes when the keyboard is in an RTL language (to allow switching the cursor direction and treating input smarter) by checking if the current mapping has an RTL character (Arabic or Hebrew) in it.I have also found the sources for xkbprint, which does just that. The problem I'm currently facing is of documentation. Where are the Xkb extensions documented?
Here's the code, adapted for generic use (clean C, no Qt ties): http://bugzilla.gnome.org/show_bug.cgi?id=116626
If you also want the Qt patch, which might be clearer (I don't remember), mail me.
Shachar
-- Shachar Shemesh Open Source integration consultant Home page & resume - http://www.shemesh.biz/
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]