[Uim] Re: surrounding text

Etsushi Kato ek.kato at gmail.com
Tue Oct 3 04:40:41 EEST 2006


On 10/2/06, Etsushi Kato <ek.kato at gmail.com> wrote:
> In request_surrounding_text_cb, bridge notifies libuim of current
> surrounding text using uim_set_surrounding_text(uc, text, cursor_pos,
> len), and I implemented a procedure to retrieve it from IM side;
> im-get-surrounding procedure which returns a list as ("text"
> cursor_pos len).  I use uim_set_surrounding_text() interface already
> implemented in uim.c, but I don't think 'len' is needed here (and in
> struct surrounding_text).  What do you think?

And another candidate is using uim_set_surrounding_text(uc,
former_text, latter_text) and returning list as ("former-text"
"latter-text") with im-get-surrounding.

Cheers,
-- 
Etsushi Kato
ek.kato at gmail.com



More information about the uim mailing list