Unicode text Direction Detection


I have a Unicode text, and I need to detect its direction by some BiDi
algorithm (i.e., whether it is Left-to-right or Right-to-left).  For
example, I need to look for the first "strong" directional character
in the text, and find out its direction.  Is there a way I can do that
using some GTK/GLib APIs?  Something, perhaps, on the line of the
Windows API GetStringTypeW() perhaps?

Any help in this regard would be appreciated!


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