Arabic, Hebrew and Right-To-Left Text in Markup Languages

Here are some notes on using RTL languages such as Arabic on websites i.e. drupal

Using The DIR Attribute :

CSS 2 :

.my-rtl {direction:RTL; unicode-bidi:embed;}
...
force neutrals right-to-left <-|

CSS 3 :

/* class="vertical" establishes vertical writing
top-to-bottom, columns proceeding right-to-left*/
.vertical {writing-mode: tb-rl;}

- Set the overall document direction on the HTML element, not the BODY element.
- Use character encodings that employ logical not visual ordering, such as Unicode, Windows-1255, Windows-1256, ISO-8859-6-i, ISO 8859-8-i.
- Don't use the visually ordered: ISO 8859-6, ISO 8859-8, ISO-8859-6-e, ISO-8859-8-e. See RFC 1555.
- Use markup instead of Unicode bidirectional control characters.

Really good article here : http://www.i18nguy.com/markup/right-to-left.html




Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.
Bg