Bidi test

Version (0) seems to be displayed correctly by all(?) major browsers. Version (1) should be rendered identically to (0). Versions (2) and (3) should be different (from each other and also from (0)/(1)) and serve to illustrate why embeddings are not suitable for proper bidi isolation (pay attention to the directionality of quotes and position of commas). Opening parentheses (U+0028 LEFT PARENTHESIS) have been marked red and closing parentheses (U+0029 RIGHT PARENTHESIS) have been marked green.

(0) With HTML <span dir="rtl"> / <span dir="ltr"> and </span>
If I say “طبعا”, “نعم”, you know I mean “of course”, “yes”.
If I say “طبعا (of course)”, “نعم (yes)”, you know I mean “of course”, “yes”.
(1) With U+2067 RIGHT-TO-LEFT ISOLATE / U+2066 LEFT-TO-RIGHT ISOLATE and U+2069 POP DIRECTIONAL ISOLATE
If I say “⁧طبعا⁩”, “⁧نعم⁩”, you know I mean “of course”, “yes”.
If I say “⁧طبعا (⁦of course⁩)⁩”, “⁧نعم (⁦yes⁩)⁩”, you know I mean “of course”, “yes”.
(2) With U+202B RIGHT-TO-LEFT EMBEDDING / U+202A LEFT-TO-RIGHT EMBEDDING and U+202C POP DIRECTIONAL FORMATTING
If I say “‫طبعا‬”, “‫نعم‬”, you know I mean “of course”, “yes”.
If I say “‫طبعا (‪of course‬)‬”, “‫نعم (‪yes‬)‬”, you know I mean “of course”, “yes”.
(3) Without any directionality control
If I say “طبعا”, “نعم”, you know I mean “of course”, “yes”.
If I say “طبعا (of course)”, “نعم (yes)”, you know I mean “of course”, “yes”.