We’ve recently puchased Aspose.Words for our Hebrew text project, but to our dismay we are finding that whenever we insert a string of multiple Hebrew words into a Word document, the order of the words is reversed (note that it is the order of the words that is reversed, rather than the order of the letters).
As an example, here is code to add a three-word Hebrew phrase into a comment in the document.
First I’ll show the Word interop code, which works correctly:
doc.Comments.Add(myrange, "הלכה למשה מסיני");
And here’s the Aspose code, which reverses the order:
fullcomment = "הלכה למשה מסיני";
Aspose.Words.Comment newcomment = new Aspose.Words.Comment(asposedoc);
newcomment.Paragraphs.Add(new Aspose.Words.Paragraph(asposedoc));
newcomment.FirstParagraph.Runs.Add(new Aspose.Words.Run(asposedoc, fullcomment));
myParagraph.AppendChild(newcomment);
Note that Aspose reverses the words even when the text is added as regular text into a regular paragraph:
Aspose.Words.Node newpp = new Aspose.Words.Run(asposedoc, "הלכה למשה מסיני");
nHebpp.AppendChild(newpp);
By the way, it should be noted that in all these cases, I am inserting Hebrew strings into Left-to-Right paragraphs (a fairly standard procedure). That is, the paragraphs are not right-to-left paragraphs, but rather the strings are right-to-left strings in the middle of left-to-right paragraphs.
This is a critical problem for our usage of Aspose.Words.
Sincerely,
Dr. Avi Shmidman
Israel