I hope I can explain the problem correctly! There is a document contains some sentences in both Persian/Arabic and English in Word which is basically written in "left to right" direction and it is shown correctly because the original author has placed the words manually in correct positions. the image below may describe better:
相关问题
- Browsers render final comma of right-to-left (rtl)
- Converting byte array output into Blob corrupts fi
- docx4j - delete wml P element
- Text Box in Outlook Email
- Find and Replace footer text in Word with an Excel
相关文章
- System.Runtime.InteropServices.COMException (0x800
- How to print a docx to a specific printer using Mi
- How to detect if a string contains any Right-to-Le
- Deleting columns from a table with merged cells
- Doc4j - Having issues converting docx to PDF with
- How to disable File button in MS-Word 2013?
- Getting the selected item from the dropdown in a r
- VBA Find and Replace in word based on Database in
Please take a look at this blog article which talks about this problem within MS Office products. The treatment of mixed
LTR
andRTL
text actually comes from a mismatch in how plain-text and HTML parsers handle the data.In essence, it has to do with how the parser makes its assumptions about whether the text is primarily
right-to-left
or primarilyleft-to-right
.In MS Word, when you click on the Align Left or Align Right buttons, you essentially strip out formatting which is already there, and apply block-level formatting to the paragraph itself.
It looks like your document was primarily written in
RTL
text, with someLTR
-based English words thrown in. Unfortunately, based on your system settings, when you hit the Align Left or Align Right buttons, the individual Paragraph you are editing probably gets shoved intoLTR
English-mode, which will do exactly what you are seeing: shift the English words around, and treat eachLTR
phrase as if it were aRTL
word - which makes the ordering go crazy.One possible solution, while editing this kind of document, might be to look at the
LTR
andRTL
mode options for MS Office. Here are a few resources that might help you, depending on your version of Word:I hope this helps!