Re: Adding context to GtkIMContextIM



On Wed, Oct 24, 2001 at 02:35:03PM -0400, Owen Taylor wrote:
> 
> Theppitak Karoonboonyanan <thep links nectec or th> writes:
> 
> > A sophisticated XIM tries to "normalize" the order by editing the
> > previous cell and managing the input char to be placed eventually.
> > 
> > The cannonical order for a cell is BV?T?, where B is a base char,
> > V is an above/below vowel/diacritic, and T is a top tone mark/diacritic.
> > 
> > Suppose B = { a, b, c }, V = { p, q, r }, T = { x, y, z }
> > 
> >   (ap)  + x --> apx   // usual appending
> >   (ap)  + q --> aq    // substitution for same class
> >   (ax)  + y --> ay    // ..(ditto)..
> >   (ax)  + p --> apx   // reordering
> >   (apx) + y --> apy   // substitution for same class
> >   (apx) + q --> aqx   // ..(ditto)..
> >   (apx) + b --> apxb  // no substitution for base char, however
> >   (ap)  + b --> apb   // ..(ditto)..
> >   (ax)  + b --> axb   // ..(ditto)..
> 
> Hmm, you can get pretty close to this behavior by simply delaying the
> commit until you get the next base character. The main problem you
> would see is that you wouldn't get this behavior on editing existing
> text.

That's right. Editing existing text is indeed the very root of the
context sensitivity requirement, not just this reconversion.

> If I have
> 
>  apx|bqy
>        
> And put the cursor at the location marked with '|' and hit y,
> it wouldn't do the substitution. Is it possible that Windows is
> just doing this?

Windows does substitute it. :)

Regards,
-Thep.
-- 
Theppitak Karoonboonyanan
Information Research and Development Division, NECTEC
http://www.links.nectec.or.th/~thep/  mailto:theppitak nectec or th



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