we have been testing pd4ml for exporting into RTF and PDF and are quite impressed. However we see some serious issues when exporting arabic script to RTF. For example, when Text and Numbers are mixed in arabic, numbers are in general from left to right, which is correct.
However, when the numbers are complemented by e.g. an equals sign, the equals sign is moved to the beginning of line. Likewise, when a dot is made to end a sentence, the dot is also rendered at the right end of line, not on the left end, as would be correct for right-to-left script.
I try to copy and past a simple arabic line from our content base
الولايات المتحدة تواجه لحظات ملحمية في الصين خلال بكين 2008 =
We have verified that the text is rendered correctly if arabic paragraphs are enclosed by the unicode sequences u8235? and u8236? respectively which are used to signify “right-to-left” embedding and pop-directional-formatting.
A snippet from the RTF paragraph that renders correctly, representing the above line.
The issue may come from a difference in a preparing of text to output to PDF and to RTF. By RTF the Arabic or mixed script should be printed “as is”, letting MS Word to ligaturise and to render it correctly. For PDF output the text should be pre-processed to appear as a correct sequence of glyphs.
I suspect in some situations it uses the PDF preprocessing for RTF output, which is wrong. But it is only a guess, we need to analyze that in details.
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Troubleshooting’ is closed to new topics and replies.