[FriBidi] Issue in fribidi2 with implicit base direction?
behdad at behdad.org
Tue Nov 7 14:31:49 PST 2006
On Tue, 2006-11-07 at 16:29 -0500, Praveen Patil wrote:
> Hi All,
> 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 left-to-right.
> Below the latin text is in ascii and the arabic code is printed in
> Unicode hex.
> (1)str to fribidi_log2vis() - "Yusuf Dadani in Arabic is
> [064A][064A] [062F][062F][06
> 46][064A] ok?"
> (2)Actual visual_str - "ok [FEF2][FEE7][FE8D][FEA9][FE8D][FEA9]
> [FED2][FEB3][FEEE][FEF4][FEF3] Yusuf Dadani in
> Arabic is"
> (3)I Expected visual_str - "Yusuf Dadani in Arabic is
> [FEF2][FEE7][FE8D][FEA9][FE8D][FEA9] [FED2][FEB3][FEEE][FEF4]
> [FEF3] ok?"
> 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
No, this is not expected. Can you reproduce it using the fribidi
commandline tool and pass me the test case?
> fribidi mailing list
> fribidi at lists.freedesktop.org
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
More information about the fribidi