Bi-Directional Text ProcessingScripts like Hebrew and Arabic are bi-directional, starting from right-to-left, but containing left-to-right elements. Arabic numbers (i.e. Western numbers) are written left-to-right. For example, the following sentence is written in left-to-right:
But as bi-directional text adhering to Hebrew and Arabic rules:
Notice how the numbers change direction compared to the rest of the characters. Arabic and Hebrew texts are also right-justified. Many programming languages offer support for bi-directional text processing and display. A thorough review of the application code and user interface portion of the source code is advised before reengineering for bi-directionality. HTMLHTML implements bi-directionality using a BDO tag:
Displays the following text:
The BDO element overrides the bi-directional algorithm for enclosed
text. Characters in Unicode are assigned a directionality,
left-to-right or right-to-left, to allow the text to be rendered
properly. Many other tags also accept the "DIR"
attribute. For an exhaustive write-up, please see the HTML 4.0
specification. |