Issue in fribidi2 with implicit base direction?
"Praveen Patil" <[email protected]> Tue, 7 Nov 2006 16:29:02 -0500
| Newsgroups | gmane.comp.internationalization.fribidi |
|---|---|
| Message-ID | <[email protected]> |
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][0648][0633][0641] [062F][0627][062F][0627][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 ordering. Thanks, Praveen _______________________________________________ fribidi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/fribidi