修复双语错误的从右到左文本 [英] Fix a bi-lingual wrong right to left text
问题描述
希望我能正确解释问题! 有一个文档包含一些波斯语/阿拉伯语和英语单词的句子,基本上都以从左到右"的方向书写,并且可以正确显示,因为原始作者将这些单词手动放置在正确的位置.下图可能会更好地描述:
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:
推荐答案
Please take a look at this blog article which talks about this problem within MS Office products. The treatment of mixed LTR
and RTL
text actually comes from a mismatch in how plain-text and HTML parsers handle the data.
从本质上讲,它与解析器对文本主要是right-to-left
还是主要left-to-right
的假设有关.
In essence, it has to do with how the parser makes its assumptions about whether the text is primarily right-to-left
or primarily left-to-right
.
在MS Word中,当您单击向左对齐" 或向右对齐" 按钮时,实际上是删除了已经存在的格式,并将块级格式应用于段落本身.
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.
您的文档似乎主要是用RTL
文本编写的,并插入了一些基于LTR
的英语单词.不幸的是,根据系统设置,当您按向左对齐时或向右对齐按钮,您正在编辑的单个段落可能会被推到LTR
英文模式,这将准确地实现 您所看到的:将英文单词左右移动,然后将每个LTR
短语都当作一个RTL
单词对待-这会使订购变得疯狂.
It looks like your document was primarily written in RTL
text, with some LTR
-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 into LTR
English-mode, which will do exactly what you are seeing: shift the English words around, and treat each LTR
phrase as if it were a RTL
word - which makes the ordering go crazy.
在编辑此类文档时,一种可能的解决方案可能是查看MS Office的LTR
和RTL
模式选项.根据您的Word版本,以下一些资源可能会对您有所帮助:
One possible solution, while editing this kind of document, might be to look at the LTR
and RTL
mode options for MS Office. Here are a few resources that might help you, depending on your version of Word:
- Working with RTL Languages in Word (Office 2007 and Earlier)
- Bidirectional Features in Microsoft Word
- How to Type in my Language using Office 2010
我希望这会有所帮助!
这篇关于修复双语错误的从右到左文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!