Re: Another --> Re: GtkMovementStep of GtkTextView



Havoc Pennington <hp redhat com> writes:

> > I haven't seen this piece of code involving for the action of
> > "GTK_MOVEMENT_VISUALLY_POSITIONS" yet. May be, I might miss
> > something.
> 
> You aren't missing anything, I just haven't implemented it yet:
>  http://bugzilla.gnome.org/show_bug.cgi?id=50247
> 
> Once we implement this, then Thai may already work. If not, we need to
> either fix bugs in pango_default_break(), or add code to the Thai
> language module so that it sets the is_cursor_position attributes to
> the correct values.

I've checked in changes now for Pango, GtkEntry, and GtkTextView so
all positioning and motion is now by graphemes.

You might want to try it out and see if it does what you want.
The one thing that may not be desirable for some languages is that
if you are sitting after a compound grapheme and hit delete, it
deletes the entire grapheme.

It may be desirable to make this configurable.. while I can imagine
that if you have a complex cluster in an Indic language you may just
want to undo the last typed key if you make a typo, Europeans will no
doubt not enjoy the experience of having ü<Delete> produce u.

Regards,
                                        Owen




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