Re: GtkTextView and bidi text



Indeed there is no higher level override determine the text direction. You
have to change the buffer contents to get what you want. The easiest way of
doing this is by inserting the character zero-width character LRM (U+200E)
before your first RTL character.

Lots of years ago we spoke about having a direction override as a paragraph
attribute, but we never got around to implementing it.

Regards,
Dov

On Tue, Apr 24, 2012 at 01:33, Ferdinand Ramirez <
ramirez ferdinand yahoo com> wrote:

How can I force GtkTextView object to use left to right rendering when I
type in a character which has the default behavior of being from a RTL
language? I need this behavior when I mix some RTL characters with LTR
characters and the first character on a line is of RTL type.

The following lines seem to have no impact.

GtkTextView *view;
...

gtk_widget_set_direction(view, GTK_TEXT_DIR_LTR);
gtk_widget_set_default_direction(GTK_TEXT_DIR_LTR);

-Ferdinand
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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