[immodule-qt] [PATCH] Surrounding text

Anuradha Ratnaweera gnu.slash.linux at gmail.com
Fri Sep 24 11:47:03 EEST 2004


On Thu, 23 Sep 2004 21:49:15 +0900, Daisuke Kameda
<kaminmat at cc.rim.or.jp> wrote:
> On Wednesday 22 September 2004 15:13, Anuradha Ratnaweera wrote:
> >
> > Plain QT applications such as qtconfig, and qt designer are working
> > perfectly.  But some KDE applications that have their own input
> > widgets (e.g.: Kate) doesn't work.  Adding, or rather overiding,
> > imGetSurrounding() and imDeleteSurrounding() for them shouldn't be
> > that tough.  I am looking into it now.
> 
> This is very difficult question. To enable input method in original widget,
> the programmer must also override imStartEvent(), imComposingEvent(),
> and imEndEvent().
> 
> Also in the implementation about XIM on the original Qt's code, he or she
> have to override these three functions in order to support on-the-spot
> style. So I think that it is unavoidable.

I believe so.  I tried (just for fun ;-)) to change the KoTextView to
subclass from QWidget instead of QObject, and implemented blank
overides for im functions, and it didn't work.  But I am planning to
have a serious look at them when we release Sinhala GNU/Linux 0.2 by
the weekend.

> > Notice that the patch qt-3.3.3-im-sinhala.patch is redundant because
> > it simply adds the contents in sinhala-t to QT source tree, and also
> > adds sinhala-t to inputmethods.pro.
> 
> Thanks, I will check them, too.

Thanks.  What's the neat way add it only if qt+im is compiled with
binary incompatibility enabled?

        Anuradha

-- 

http://www.linux.lk/~anuradha/
http://www.gnu.org/philosophy/no-word-attachments.html



More information about the immodule-qt mailing list