<div><font face="courier new,monospace">Hi All,</font></div>
<div><font face="courier new,monospace"> </font></div>
<div><font face="courier new,monospace">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.
</font></div>
<div><font face="courier new,monospace"></font> </div>
<div><font face="Courier New">Below the latin text is in ascii and the arabic code is printed in Unicode hex.</font></div>
<div><font face="Courier New"></font> </div>
<div><font face="courier new,monospace">(1)str to fribidi_log2vis() - "</font><font face="courier new,monospace" size="2">Yusuf Dadani in Arabic is [064A][064A][0648][0633][0641] [062F][0627][062F][0627][06<br>46][064A] ok?"
</font></div>
<div>
<div><font size="2"><font face="courier new,monospace">(2)<strong>Actual visual_str - "</strong></font><font face="courier new,monospace"><strong><font size="2">ok [FEF2][FEE7][FE8D][FEA9][FE8D][FEA9] [FED2][FEB3][FEEE][FEF4][FEF3] Yusuf Dadani in
<br> Arabic is</font>"</strong></font></font></div>
<div><font face="courier new,monospace" size="2">(3)I Expected visual_str - "Yusuf Dadani in Arabic is [FEF2][FEE7][FE8D][FEA9][FE8D][FEA9] [FED2][FEB3][FEEE][FEF4]<br>[FEF3] ok?"</font></div></div>
<div><font face="courier new,monospace" size="2"></font> </div>
<div><font face="courier new,monospace" size="2">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).</font></div>
<div><font face="Courier New" size="2"></font> </div>
<div><font face="courier new,monospace" size="2"><font face="Courier New" size="2">Are you aware of this issue? </font>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.
</font></div>
<div><font face="Courier New" size="2"></font><font face="courier new,monospace" size="2"></font> </div>
<div><font face="courier new,monospace" size="2">Thanks,</font></div>
<div><font face="courier new,monospace" size="2">Praveen</font></div>