MANAGING BI-DIRECTIONAL TEXT

Arabic is a bi-directional (bidi) script. Arabic text flows from right to left, but Arabic numerals and Latin text appearing in Arabic text retain their left-to-right orientation, as shown in Figure 6.

Figure 6. What a “bidi” language looks like.

Before browsers supported bidi display, web developers created “visually ordered” pages, in which they entered text in the reverse order. This method was painstaking—imagine typing a paragraph backward, one letter at a time. Fortunately, current browsers display bidi text quite well, assuming that you encode and tag the web page properly. The web browser ensures ...

Get Beyond Borders: Web Globalization Strategies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.