Re: GtkTextView and bidi text

2012-04-24 Thread Dov Grobgeld
Sorry for not being clear. I actually meant that it should be controllable by the programmer. Looking at the documentation for GtkTextTag I realized that there is a property "direction", that by default has the value GTK_TEXT_DIR_NONE . What happens if you change it to GTK_TEXT_DIR_LTR? Will it no

Re: GtkTextView and bidi text

2012-04-24 Thread Ferdinand Ramirez
--- On Mon, 4/23/12, Dov Grobgeld wrote: > Lots of years ago we spoke about having a direction override as a paragraph > attribute, but we never got around to implementing it. I think it is a good idea to give control to the programmer rather than make it automatic. Making everything automat

Re: GtkTextView and bidi text

2012-04-23 Thread Dov Grobgeld
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

GtkTextView and bidi text

2012-04-23 Thread Ferdinand Ramirez
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