<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=windows-1256"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi, just wondering if there were any comments on this? <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:EN-AU'> Darren Munt <br><b>Sent:</b> Friday, 8 May 2015 6:49 PM<br><b>To:</b> xep-support@renderx.com<br><b>Subject:</b> RTL issue<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m compiling some XSL for an Arabic document. I have the text contained within a block-container and writing-mode is set to ‘rl-tb’. This produces some interesting results when the text is a mixture of Arabic and English, many of which make sense, but I can’t work these two out.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>First of all, no matter what order I put this text in:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>الجائزة</span> <span style='font-family:"Arial","sans-serif"'>المالية</span> QR 75,000<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It comes out as:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>QR 75,000 <span style='font-family:"Arial","sans-serif"'>الجائزة</span> <span style='font-family:"Arial","sans-serif"'>المالية</span> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I want it like this:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>75,000 QR <span style='font-family:"Arial","sans-serif"'>الجائزة</span> <span style='font-family:"Arial","sans-serif"'>المالية</span> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But this results in the same output as above:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>الجائزة</span> <span style='font-family:"Arial","sans-serif"'>المالية</span>  75,000 QR <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Even if I remove the space between 75,000 and QR and put either “QR75,000” or “75,000QR” in the FO,  it writes QR75,000. I would have expected the RTL write mode to write the three elements in order, why does it always put the ‘QR’ last?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The other issue is some weirdness around some bracketed information. I am specifying this:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>( 1st 42,750, 2nd 16,500, 3rd 8,250, 4th 4,500, 5th 3,000 )<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This appears in the PDF as:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>( st 42,750, 2nd 16,500, 3rd 8,250, 4th 4,500, 5th 3,0001 )<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here is my (heavily edited) FO:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>      <fo:block-container writing-mode="rl-tb" font-family="Arial Unicode"><o:p></o:p></p><p class=MsoNormal>          <fo:marker marker-class-name="racenumber"><o:p></o:p></p><p class=MsoNormal>         … some other stuff<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>              <fo:block space-after="0.2cm"><span style='font-family:"Arial","sans-serif"'>الجائزة</span> <span style='font-family:"Arial","sans-serif"'>المالية</span> 75,000 QR<fo:inline font-weight="normal"><o:p></o:p></p><p class=MsoNormal>              ( 1st 42,750, 2nd 16,500, 3rd 8,250, 4th 4,500, 5th 3,000 )<o:p></o:p></p><p class=MsoNormal>            </fo:inline></fo:block><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>         … some other stuff<o:p></o:p></p><p class=MsoNormal>          </fo:marker><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>         … some other stuff<o:p></o:p></p><p class=MsoNormal>    </fo:block-container><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So what am I doing wrong?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>