Great Circle Associates

XCIN Mail-list
(December 2000)


Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: [Fwd: XIM application frozen on gtk+1.3.*]
From: Chih-Wei Huang <cwhuang@linux.org.tw>
Date: Mon, 11 Dec 2000 11:35:37 +0800
To: xcin@linux.org.tw
Reply-To: xcin@linux.org.tw

剛剛在 gtk-i18n list 上看到的,關於 XIM
在新的 gtk+ 支援的消息。

我有些兒懷疑,照 Owen 的說法將來 gtk+
新的 IM framework 將不再支援 OverTheSpot style.
而且他希望 XIM server 都能改支援 OnTheSpot.
這是為什麼呢?
印象中 OverTheSpot 才是適合中文的 style,
而 OnTheSpot 比較適合韓文。
為什麼 Owen 說要 IM developers 放棄 OverTheSpot?
還是我對 OnTheSpot 的理解有誤?

對 OverTheSpot / OnTheSpot 的說明可參考這裡
http://www.mizi.com/kde/doc/onthespot/onthespot.html
上面還有個動畫示範兩種輸入法的不同。
由此可看出 OnTheSpot 是適合韓文的 style
(但不適於中文)

東瀚你的看法呢?

-- 
   ~     Chih-Wei Huang (cwhuang)
  'v'    E-Mail       : cwhuang@linux.org.tw
 // \\   CLDP Project : http://www.linux.org.tw/CLDP/ (Coordinator)
/(   )\  CLE  Project : http://cle.linux.org.tw/CLE/  (Developer)
 ^`~'^   HomePage     : http://www.cwhuang.idv.tw/


Subject: Re: XIM application frozen on gtk+1.3.*
From: Owen Taylor <otaylor@redhat.com>
Date: 02 Dec 2000 10:53:31 -0500
To: gtk-i18n-list@gnome.org
Delivered-To: gtk-i18n-list@gnome.org
List-Id: Internationalization and GTK+ <gtk-i18n-list.gnome.org>
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

tajima <hidetoshi.tajima@eng.sun.com> writes:

> >> >It should be noted that the way that GtkIMContextXIM handles
> >> >interaction with Xlib is definitely not fully compliant with the way
> >> >XIM is supposed to, and while kinput2 seems to work reasonably well,
> >> >other input methods probably will need some changes to the 
> >> >way the module works.
> >> 
> >> Can we extend IM framework and allow XIM module to support
> >> Over-the-spot and Root-window inputstyle as well? Root-window style
> >> is relatively easy and Over-the-spot oughts to work *to some extent*
> >> if gtk window can set spot-location.
> >
> >Root-window should work now. I'm not sure I want to add over-the-spot
> >handling. I think it complicates the interface more than it is worth.
> 
> Well, I have two reasons for wants of spot location. It is often the case
> that input methods use lookup choice windows to select a choice among
> candidates, and these windows are typically poped up near the insertion
> point, so that users can keep his eyes on the point.

Yeah, this is a bit of problem. Even internal to GtkIMContextXIM
we'll have to deal with this problem in some form when rendering
the status (though that doesn't need to be near the cursor as
much as choice windows do.)
  
> Another reason is that there are still many XIM modules which don't support
> on-the-spot. Fallback to Root-Window mode can be a workaround, but
> not all user will like it.

There are a few other reasons that make over-the-spot input
hard with GTK+-2.0 other than simply spot location:

 - Rendering style may not match at all since rendering isn't
   happening through Xlib's XOM code.

   (As an extreme case, imagine a vector illustration program
   that is wrapping text rendered with postscript outlines
   around a curve.) 

 - GTK+ has no good way to get a fontset to provide the input
   method.

I want to support non core protocol fonts even in GTK+-2.0.x,
(for x > 0) so the more we can have GTK+ draw, the better.

But basically, the main reason I don't want to support over
the spot drawing is that I don't want applications to have
to support it, or even know what it is. I think by keeping
the options small and the interface simple, we can encourage
developers to do things properly so that users get the
advantages of properly working input methods.

To take a rather GTK+-centric view of the world, if GTK+
does on-the-spot well, and doesn't do over-the-spot input,
I think the pressure will be on IM developers to support
on-the-spot, not GTK+ to support over-the-spot input.

(I've been told that Windows only supports on-the-spot
and RootWindow feedback.)
 
> >> Then, most of existing input methods would work with the XIM in
> >> the new IM Framework, almost equivalently to the GDK's XIM.
> >
> >Well, the problem I think we have now is not that input methods
> >require over-the-spot handling, but that input methods try to do some
> >stuff that doesn't work well with the way gtkimcontextxim handles
> >events.
> 
> Sure, let's get back to the original frozen problem, but I'd like to raise 
> over-the-spot as a separate problem, too.

Sure, and I'd say we may want to have some sort of support
for spot-location hints even if we don't support over-the-spot.

Regards,
                                        Owen

_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list


Indexed By Date Previous: Re: Integration with KDE/Netscape <textinput>
From: Chih-Wei Huang <cwhuang@linux.org.tw>
Next: Re: [Fwd: XIM application frozen on gtk+1.3.*]
From: thhsieh@linux.org.tw
Indexed By Thread Previous: Re: Integration with KDE/Netscape <textinput>
From: Joshua Lamorie <jlamorie@engsoc.carleton.ca>
Next: Re: [Fwd: XIM application frozen on gtk+1.3.*]
From: thhsieh@linux.org.tw