Re: Question on using GTK+ for input method.



> From: Lau <zenithlau i-cable com>
>   At this point, I know that, I have to implement the langueage
> engine to plug into the htt_server (the server for IIIMF, am I
> right?)

Yes, by using the windowing system/tookit independent IM interface
LEIF.(there are several templates; sampleja/sampleja2/sampleja3/template,
and actual language engine implementations)

Alternatively, if the IM behavior is as simple enough as which can be
described with EIMIL/PCE(the XML based Extensible IM Interface
Language/Primary Composition Engine, merged back from the old code
base in CVS to the new code in subversion repository), you may want to
take a look at it to see whether you want to use XML to describe your
IM instead of writing language engine in C.

> and also the client module for IIIMXCF. 

Since LEIF separates GUI part off from language engine, if you need
your own GUI as AUX object, yes. 
If you do not particularly need your own GUI and can live with simple
GUI, you do not have to. Either htt_xbe(X backend, works as if
XIM server) or xiiimp.so directly loaded into Xlib will handle
such simple GUI. 
For example, let's look at CannaLE in current im-sdk in svn.openi18n.org
(im-sdk/trunk/leif/canna). Since CannaLE does not use its own AUX GUI
object, it is all implemented in CannaLE.c.

> Is it possible to use the GTK+ such an project?? (I am esp concern
> the event loop inside a normal GTK+ based program)

To implement your own AUX GUI object, of cource you can use gtk+.
A good example code for those GUI modules implemented with gtk+ is
iiimf-skk and iiimf-canna (http://sourceforge.jp/projects/iiimf-skk/).
You can find the code implenting AUX GUI object with gtk+ in the
iiimf-{canna,skk}-<version>/interface directory, in addition to the
language engine part of code in iiimf-{canna,skk}-<version>/{src,lib}
directories.

Hope it helps!
--
hiura {freestandards org,OpenI18N.org,li18nux.org,unicode.org,sun.com} 
Chair, OpenI18N/Open Internationalization Initiative, http://www.OpenI18N.org
Architect/Sr. Staff Engineer, Sun Microsystems, Inc, USA   eFAX: 509-693-8356



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]