Parenthesis wrongly rendering in RTL languages(Arabic,Hebrew)

I am facing a rendering issue in RTL(Arabic,Hebrew) publication in SDL KC2016. XML is translated properly in Arabic language, when publishing to PDF braces are getting reversed.

I am not able to see any issue with stylesheet. Is there anything need to add for bidirectional language in XML for rendering correctly or is there any solution available in stylesheet.?

 

Thanks

Roopesh

  • Dear Roopesh,

    In order to be able to better understand the problem and copy (or snippet) of the xml tagged content in arabic as well as a snippet of the stylesheet transforming this xml content into FO would be helpfull. The resulting xsl-fo structure is usefull as well in order to check the rendering issue.

    It could be a combination of writing-mode and bidi-override settings in xsl-fo which causes this behavior.

    So could you please post some samples of the xml the transform and the resulting XSL-FO with the incorrect behavior.

    Kind Regards,

    Raf
  • Hi Raf,

    Thank you for the response.
    Below is the source xml file in Arabic and corresponding FO text.

    <li cid="11U7Eb"><p cid="10qA1w"><b><u>الاتفاقية بالكامل</u></b>. ما لم تكون قد دخلت في اتفاقية أخرى مكتوبة تتعلق بالبرامج قمت بتوقيعها مع ممثل معتمد من قبل شركة والتي تتعارض مع أحكام هذه الاتفاقية، فإنك توافق على أن يكون لهذه الاتفاقية الأولوية على جميع الاتفاقيات المكتوبة أو الشفهية السابقة، أو الضمانات أو التعهدات المتعلقة باستخدام البرامج. في حالة اكتشاف أن أي بند (أو جزء منه) موجود في هذه الاتفاقية غير صالح أو لا يمكن تنفيذه، ستظل الأحكام الأخرى (والتي تشمل الأجزاء الأخرى الصالحة من البند المتأثر) سارية المفعول. وتقر بأنك قد قرأت هذه الاتفاقية، وأنك تدرك معناها، وتوافق على الالتزام بأحكامها، وأنها تمثل البيان الكامل والحصري للاتفاق بينك وبين شركة فيما يتعلق باستخدام البرامج.</p><p cid="26xJ4v">(الإصدار أ، 04232015)</p></li>

    <fo:list-item font-family="Sans" font-size="6pt" font-weight="normal" keep-with-next.within-page="auto" keep-with-previous.within-page="auto" line-height="8pt" margin-left="" relative-align="baseline" space-after="4pt" space-after.optimum="3pt" space-before="4pt" space-before.optimum="3pt"><fo:list-item-label end-indent="label-end()"><fo:block>23. </fo:block></fo:list-item-label><fo:list-item-body start-indent="body-start()"><fo:block><fo:bidi-override direction="ltr"><fo:block font-family="Sans" font-size="6pt" font-weight="normal" id="" keep-with-next.within-page="" line-height="8pt" margin-bottom="10pt" space-after="0in" space-after.optimum="3pt" space-before="0.035in" text-align="left" text-indent="0em"><fo:inline font-family="SansBold" font-weight="bold" id=""><fo:inline id="" text-decoration="underline">الاتفاقية بالكامل</fo:inline></fo:inline>. ما لم تكون قد دخلت في اتفاقية أخرى مكتوبة تتعلق بالبرامج قمت بتوقيعها مع ممثل معتمد من قبل شركة والتي تتعارض مع أحكام هذه الاتفاقية، فإنك توافق على أن يكون لهذه الاتفاقية الأولوية على جميع الاتفاقيات المكتوبة أو الشفهية السابقة، أو الضمانات أو التعهدات المتعلقة باستخدام البرامج. في حالة اكتشاف أن أي بند (أو جزء منه) موجود في هذه الاتفاقية غير صالح أو لا يمكن تنفيذه، ستظل الأحكام الأخرى (والتي تشمل الأجزاء الأخرى الصالحة من البند المتأثر) سارية المفعول. وتقر بأنك قد قرأت هذه الاتفاقية، وأنك تدرك معناها، وتوافق على الالتزام بأحكامها، وأنها تمثل البيان الكامل والحصري للاتفاق بينك وبين شركة فيما يتعلق باستخدام البرامج.</fo:block><fo:block font-family="Sans" font-size="6pt" font-weight="normal" id="" keep-with-next.within-page="" line-height="8pt" margin-bottom="10pt" space-after="0in" space-after.optimum="3pt" space-before="0.035in" text-align="left" text-indent="0em">(الإصدار أ، 04232015)</fo:block></fo:bidi-override></fo:block></fo:list-item-body></fo:list-item>

     

    Thanks & Regards

    Roopesh

  • Hi Raf,

    Any update?

    I noticed bidirectional characters are added before and after for symbols. But the sample I shared below do not have any bidirectional characters. Is this causing error or any other issue is causing this?
  • Hello developers,
    Any Idea how to resolve this issue?
    Thanks
    Roopesh
  • Hi Roopesh,

    Still looking into it. Will try to get back to you as soon as possible.

    Kind Regards,

    Raf
  • Hi Roopesh,

    Please find on the following page of Antenna House some more information about the Right-to-Left handling of mixed content.
    www.antennahouse.com/.../2002102508.html

    This thread task about the same issue as you are experiencing and it is providing the possible solutions to work around it within Antenna House.

    Kind Regards,

    Raf
  • Thank you Raf, This will help me to resolve the issue.

    Thanks
    Roopesh