Getting text direction for BIDI content.
- From: "Fredrik Corneliusson" <fredrik corneliusson gmail com>
- To: gtk-list gnome org
- Subject: Getting text direction for BIDI content.
- Date: Fri, 31 Aug 2007 13:08:17 +0200
Hi,
I need to know when a TextBuffer mark-set event enters a different
text direction. I tied to get the text direction from a text iter.
However I seems like it's always set to GTK_TEXT_DIR_NONE even if I
can see it renders a RTL.
Here's the pyGTK code I use to get the direction:
8<-------
textattrs = gtk.TextAttributes()
iter.get_attributes(textattrs)
textattrs .direction
------>8
I'm I doing something wrong or is there another way of getting the
text direction?
Another issue with BIDI in GTK that causes problems for me that GTK
does not respect the "gtk_widget_set_direction" but always tries to
"guess" the paragraph direction. See
bug:http://bugzilla.gnome.org/show_bug.cgi?id=167746
Does anyone know if there is any solution in sight for this?
Regards,
Fredrik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]