[FriBidi] Issue in fribidi2 with implicit base direction?
pkpatil at gmail.com
Tue Nov 7 13:29:02 PST 2006
I have built fribidi2 on an embedded platform and testing it. I have noticed
that if the input string to fribidi_log2vis() is an English text with
embedded Arabic (or Hebrew) string and pbase_dir=FRIBIDI_TYPE_N, the
resulting visual_str base direction is set to right-to-left, instead of
Below the latin text is in ascii and the arabic code is printed in Unicode
(1)str to fribidi_log2vis() - "Yusuf Dadani in Arabic is
(2)*Actual visual_str - "**ok [FEF2][FEE7][FE8D][FEA9][FE8D][FEA9]
[FED2][FEB3][FEEE][FEF4][FEF3] Yusuf Dadani in
(3)I Expected visual_str - "Yusuf Dadani in Arabic is
You can see that the Actual visual_str seems to have the problem. The
fribidi I used earlier (1999/2000) provides the expected visual string
(tested with Hebrew).
Are you aware of this issue? I could resolve the problem by explicitly
setting pbase_dir to FRIBIDI_TYPE_L when string starts out with Latin
character, but wondering if there is an issue with implicit base ordering.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fribidi