Hi,<br><br>I have some trouble with Arabic text containing 2 Arabic-Indic figures separated by an hyphen: <br><br>&lt;fo:block-container writing-mode=&quot;rl-tb&quot; font-family=&quot;FreeSerif&quot;&gt;<br>  &lt;fo:block xml:lang=&quot;ar-EG&quot;&gt;&lt;fo:inline&gt;عام ٠-١&lt;/fo:inline&gt;<br>
  المقدمة&lt;/fo:block&gt;<br>&lt;/fo:block-container&gt;<br>The block-container is in a table-cell<br clear="all"><br>The text inside the fo:inline element is not displayed correctly in a PDF rendered by XEP 4.19.<br><ul>
<li>I expect, reading right to left: &quot;Arabic-word space Arabic-0 hyphen Arabic-1&quot;</li><li>but I see in the PDF: &quot;Arabic-word space Arabic-1 hyphen Arabic-0&quot;</li></ul><p>So, 0 and 1 are switched. Other Unicode-compliant softwares display the text on screen as I expect it.</p>
<p>If I understand the &quot;bidi&quot; system well, it is not correct to switch them because, with this hyphen, my text gives a list of 2 figures, and not a single number. So, the text RTL direction should be used, not the figures &quot;weak&quot; LTR direction.<br>
</p>Looking at my FO file in a non-Unicode-compliant text editor, the characters are stored in the file in the right order: Arabic-word space Arabic-0 hyphen Arabic-1.<br><br>If I replace the hyphen by an Arabic letter, then the figures are in the expected order, but a space or comma also give an incorrect order.<br>
<br>I have the feeling this is an error in XEP, but maybe I misunderstand something here.<br><br>Regards,<br>Benoit<br><br><br>


!DSPAM:87,4ff0828063731520079200!