Re: Surrounding info from GtkIMContext with selection
- From: Theppitak Karoonboonyanan <thep linux thai net>
- To: gtk-i18n-list gnome org
- Subject: Re: Surrounding info from GtkIMContext with selection
- Date: Thu, 21 Oct 2004 23:09:29 +0700
On Thu, Oct 21, 2004 at 10:31:19PM +0700, Theppitak Karoonboonyanan wrote:
> Hello,
>
> I have got a question while working with Thai IM through the GtkIMContext
> API:
>
> What should be the "cursor_index" in reply to the "retrieve-surrounding"
> signal when the some text portion is selected?
>
> My opinion is that returning the actual cursor position, regardless of
> being the start or end of selection, is not appropriate. Rather, the
> text widget should determine the start and end of selection and choose
> one to return.
>
> Since the selection is to be replaced by next committed text from IM,
> it can be treated as a "wide" cursor. Whether returning the start or
> end position is more useful depends on which part of info the IM is
> interested.
>
> For Thai IM, where significant info is to the left of cursor, the start
> of selection is more useful. But some other IM's may care more for the
> other side, making selection end more useful. (Is there any such IM?)
Oops, sorry for locales with RTL scripts.
s/to the left of cursor/before cursor/
-Thep.
>
> What should be decided for this?
>
> Regards,
> -Thep.
--
Theppitak Karoonboonyanan
http://linux.thai.net/~thep/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]