Why does “[x]y” display incorrectly in the RTL direction?

后端 未结 5 494
轻奢々
轻奢々 2021-02-05 01:51



        
5条回答
  •  梦谈多话
    2021-02-05 02:28

    After some research, I found the following info: Right-To-Left text direction

    Parentheses and square brackets do not have an inherent direction. The open parenthesis is between LTR and RTL text runs and so cannot "inherit" the direction of the surrounding text. It therefore defaults to the RTL base direction of the paragraph and is placed to the left of the Hebrew word shalom. Note the closing square bracket is embedded in a single run of left-to-right text. It therefore adopts the direction of its surrounding text and is placed to the right of the English word shalom.

提交回复
热议问题