Re: Issue in fribidi2 with implicit base direction?
Behdad Esfahbod <[email protected]> Tue, 07 Nov 2006 17:31:49 -0500
| Newsgroups | gmane.comp.internationalization.fribidi |
|---|---|
| Message-ID | <1162938709.26443.41.camel@home> |
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][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. No, this is not expected. Can you reproduce it using the fribidi commandline tool and pass me the test case? Thanks behdad > Thanks, > Praveen > _______________________________________________ > fribidi mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/fribidi -- behdad http://behdad.org/ "Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill" -- Dan Bern, "New American Language"