Re: XIM Root vs OverTheSpot and GTK support
- From: Yong Li <rigel863 yahoo com>
- To: Ted Schroeder <ted schroeder net>
- Cc: gtk-i18n-list gnome org
- Subject: Re: XIM Root vs OverTheSpot and GTK support
- Date: Mon, 11 Apr 2005 22:25:33 -0700
Ted,
I agree the newer XIM servers are getting fatter. The problem is that
they're trying to do too many things instead of just providing input
methods. If your targets are traditional chinese users, you'll be
better off with xcin anyway. Xcin might not be a good fit for other
users though.
Having a hard code dummy fontset in gtk2 is not hard at all. There were
numerous patches out there. Recently one has been submitted to
gtk-devel list. Check it out.
http://mail.gnome.org/archives/gtk-devel-list/2005-March/msg00095.html
I haven't really read that patch yet so I can't comment on whether it
actually works. But basically you just have to look at gtkimcontextxim.c
and add the handling code for XIMPreeditPosition at appropriate places,
then create a dummy fontset and feed it to XCreateIC. The problem with
this is that the fontset might not match what input server wants.
Although most of the XIM input servers ignore this field, there are some
do check and try to use it. It might cause display problem. Besides this
doesn't feel like a "Right Way". :) IMO, it's highly unlikely to be
accepted into official gtk2. But I guess you'll be fine shipping a
customized version with your device. Please be aware that xcin is one
of those few input servers that do check this fontset field. IIRC, it
has a compile time option to enable/disable the use of this fontset. You
definitely want disable it.
Cheers,
rigel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]