Hi, At Thu, 13 Dec 2001 19:39:15 +0100, Juliusz Chroboczek wrote:
> Bruno has added full support for locale-independent use of XIM in > XFree86 4.1.0 Xlib. The 4.1.0 version has some bugs, for reliable > support you will want to use the Debian patched version or 4.1.99.2 or > later (current CVS should be fine). > > For more information, man Xutf8LookupString(3) > > http://www.xfree86.org/current/Xutf8LookupString.3.html > > or see the function Input() in input.c in a reasonably recent version > of XTerm. I think the introduction of Xutf8LookupString() is not sufficient for XIM to be locale-independent. For OverTheSpot preedit type, the XIM client has to prepare an XFontSet so that the XIM server uses it for displaying preedit strings. This font (fontset) to be used for displaying preedit strings _must_ be prepared by client side to keep consistent proportion between already-inputed strings and preedit strings. (The aim of OverTheSpot preedit type is to make users feel as if the preedit string is displayed seamlessly.) I suggest one solution. I am very very sure that people who want to use XIM know about locale and have the proper locale for using the XIM. (I don't understand why Gaspar doesn't want to introduce locale-dependent features. Introduction of such features does not mean a reduction of usability for people who use OSes which don't support locale.) Thus, as you prepared "kinput2" as a menu item for input, how about preparing menu items for popular XIM servers? The database of XIM servers (inside the Yudit) also has the proper locale for each XIM server and setlocale(LC_CTYPE,proper_locale) will be called when a user chooses an XIM for input. The list should be customizable by users because we can never know a complete list of all XIM servers in the world. Please test mlterm (http://mlterm.sourceforge.net) which can dynamically change XIM servers by using this method. --- Tomohiro KUBOTA <[EMAIL PROTECTED]> http://www.debian.or.jp/~kubota/ "Introduction to I18N" http://www.debian.org/doc/manuals/intro-i18n/ -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
