Directional typing

No markup or special characters used. Relies on the bidirectional algorithm.

Check test data looks the same as this graphic:
The line below should look like this.

مفتاح معايير الويب

No markup or special characters used. Relies on the bidirectional algorithm.

Check test data looks the same as this graphic:
The line below should look like this.

פעילות הבינאום

No markup or special characters used. Relies on the bidirectional algorithm. Adds spaces between Arabic words that should take on the rtl direction.

Check test data looks the same as this graphic:
The line below should look like this.

The title is مفتاح معايير الويب in Arabic.

Directional context

No markup or special characters used, but the surrounding div includes dir="ltr".

Check test data looks the same as this graphic:
The line below should look like this.

bahrain مصر kuwait

No markup or special characters used, but the surrounding div includes dir="ltr".

Check test data looks the same as this graphic:
The line below should look like this.

bahrain مصر kuwait

Inline dir attribute

The Arabic phrase is surrounded by <span dir="rtl">.

Check the exclamation mark is in the same place as in this graphic:
The line below should look like this.

The title is "مفتاح معايير الويب!" in Arabic.

The Hebrew phrase is surrounded by <span dir="rtl">.

Check text between quotes is in the same order as in this graphic:
The line below should look like this.

The title says "פעילות הבינאום, W3C" in Hebrew.

Directional character escapes and entities

The exclamation mark is followed by &rlm;.

Check the exclamation mark is in the same place as in this graphic:
The line below should look like this.

The title is "مفتاح معايير الويب!‏" in Arabic.

The exclamation mark is followed by &#x200F;.

Check the exclamation mark is in the same place as in this graphic:
The line below should look like this.

The title is "مفتاح معايير الويب!‏" in Arabic.

Numbers

No markup or special characters used. Relies on the bidirectional algorithm.

Check test data looks the same as this graphic:
The line below should look like this.

one two ثلاثة four خمسة

Relies on the bidirectional algorithm. In some versions of user agents, the fourth item in the second row will be rendered as ١٢٣٤ rather than 1234. It means the same.

Check test data looks the same as this graphic:
The line below should look like this.

one two ثلاثة 1234 خمسة

bdo

The code is <p><bdo dir="ltr">...</bdo></p>. Note that this test only applies to user agents that normally render text using the bidirectional algorithm. On user agents that fail the above tests, this may look as expected. Both this and the following test should be checked together.

Check that all characters run in the same direction as in this graphic:
The line below should look like this.

פעילות הבינאום, W3C

The code is <p><bdo dir="rtl">...</bdo></p>.

Check that all characters run in the same direction as in this graphic:
The line below should look like this.

פעילות הבינאום, W3C

Version: $Id: sec-inline-bidi-1.html,v 1.6 2004/11/04 20:51:20 rishida Exp $