Our customers edit Word documents which we later save as PDF and plain text. They need to type number ranges and do so in a specific representation (Example: (0.5 - 2)). Most of their text is right-to-left and in Hebrew. To enter the number range they type the parentheses in Hebrew. Sometimes they type the contents of the parentheses in one of two methods:
- Stay in Hebrew, starting the typing with the right-hand side of the range
- Switch to English, starting the typing with the left-hand side of the range
When displayed as a Word Doc, both ranges appear the numbers in the same order. This is also the case when the document is saved as a PDF. However, this ordering is not maintained when saving the document as plain text.
I created a small test project to reproduce the problem. It also includes the test DOC file. Just click “Select Doc” and “OK” (it should default to the path of the file). The plain text will appear on the form but it will also be saved as a PDF and plain text in the folder of the executable.
TestAsposeRTLNumberRange.zip (3.7 MB)
I also tried using a few encodings (UTF8, Unicode, Windows-1255, ISO-8859-8 and ISO-8859-8-i) thinking it might be a visual/logical ordering of the text issue, but there was no difference in the outcome.
Our customers have a version of our product that’s distributed with Aspose Words 13.2. We currently have a license we use with the latest version of our product that comes with Aspose Words 13.9. I also tested this with the latest Aspose Words 18.1. The issue appeared on all versions.