Controlling the Text Direction Using the Unicode Direction Formatting Codes
These Unicode Direction Formatting Codes codes can be embedded in the edited text, specifying a text direction and embedding. However, it is not recommended to use them in XML as they are zero width characters, making it hard to debug the text arrangement.
U+202A (LRE) | LEFT-TO-RIGHT EMBEDDING | Treats the following text as embedded left-to-right. |
U+202B (RLE) | RIGHT-TO-LEFT EMBEDDING | Treats the following text as embedded right to left. |
U+202D (LRO) | LEFT-TO-RIGHT OVERRIDE | Forces the following characters to be treated as strong left-to-right characters. |
U+202E (RLO) | RIGHT-TO-LEFT OVERRIDE | Forces the following characters to be treated as strong right-to-left characters. |
U+202C (PDF) | POP DIRECTIONAL FORMATTING CODE | Restores the bidirectional state to what it was before the last LRE, RLE, RLO, or LRO. |
U+200E (LRM) | LEFT-TO-RIGHT MARK | Left-to-right strong zero-width character. |
U+200F (RLM) | RIGHT-TO-LEFT MARK | Right-to-left strong zero-width character. |
To insert Unicode Direction Formatting Codes, use the Character Map dialog box. To easily find such a code, you can either enter directly the hexadecimal value, or use the Details tab to enter the codes name.
Oxygen XML Author offers the support for bi-directional text in all the side views (Outline view, Attributes view and so on) and text fields.