Bidirectional Text
Managing Hebrew and Arabic Text
For most texts, information about text directionality need not be explicitly
encoded in TEI, either because it follows unambiguously from
@xml:lang
values, or because it can be expected to be handled
unequivocally by the Unicode Bidi Algorithm. The Unicode characters for Hebrew and
Arabic, for example, include rtl
directionality, while Latin characters
include ltr
.
While usually not necessary, it is possible to use
directional formatting character codes to achieve the correct alignment when mixing
ltr
and rtl
text on the same line. In the Oxygen character map, locate the <right-to-left
Embedding>
character code at the start of the Arabic or Hebrew section.
Restore the normal directionality afterward by inserting the <Pop Directional
Formatting>
character code at the end of the passage.
For further information on Oxygen usage, see the video at https://www.oxygenxml.com/demo/BIDI_Support.html.