Right to Left (RTL) refers to the scripts of natural languages that are written and read from the right to the left instead from the left to the right, such as Hebrew, Arabic and Persian. For problems with interaction of right-to-left and left-to-right text, prefer the "bidi" tag.
Right to Left (RTL) refers to the scripts of natural languages that are written and read from the right to the left instead from the left to the right. Common examples include the Hebrew alphabet, used by the Hebrew and Yiddish languages, and the Arabic script, used by Arabic, Persian, and many others. For more examples and information, see this Wikipedia article.
Tag usage
- For problems with interaction of right-to-left and left-to-right text, prefer the bidi tag.
- Consider adding a tag for the specific language you are using, such as hebrew, arabic, persian, or urdu, as the specific language and/or alphabet may display different behaviors under different circumstances (for example, initial forms in Arabic that have no analogy in Hebrew).
HTML example
Some UI technologies support right to left out of the box. For example the HTML standard has a dir
attribute that may receive rtl
or ltr
(Left to Right) values.
Windows example
Most Windows forms controls also have a property called "RightToLeft", which is of type System.Windows.Forms.RightToLeft
and can have the following values:
System.Windows.Forms.RightToLeft.Yes
- right to left is switched on.System.Windows.Forms.RightToLeft.No
- right to left is switched off.System.Windows.Forms.RightToLeft.Inherit
- right to left is inherited from the parent control.