[Uim] Re: question about function uim_reset_context()
Kenichi Handa
handa at m17n.org
Tue Dec 21 14:32:21 EET 2004
In article <20041221183056.013714c8.tkng at xem.jp>, TOKUNAGA Hiroyuki <tkng at xem.jp> writes:
> Yes, ther is no way to know the commit strings before the callback is
> called. When I wrote previous mail, I had a will to implement reset
> function (didn't have a will to make explicit commit function). But,
> defining the semantic of reset is quite hard, I don't want to implement
> this function for now. So, as a temporary (but better than 'the most
> ugly hack'), now I'm thinking that I'll make new function 'uim_commit'
> to commit preedit strings. Until this function works, you have to use
> 'the most ugly hack'.
FYI, I've just inplemented the reset function
minput_reset_ic () in m17n-lib. The semantics is to "shift
to the initial state". Input methods of m17n-lib are a kind
of state transition machine, and shifting to the initial
state means to commit the current preediting text. So, it's
natural that minput_reset_ic () also commits a text. And,
it's up to an application to ignore the committed text or
not.
---
Ken'ichi HANDA
handa at m17n.org
More information about the uim
mailing list