Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Mono-directional text

Different languages have different directions of writing. In the western world most languages write Left-to-Rights (or LTR). However, a good number of languages/scripts are Right-to-left, or RTL). They include: Arabic and Hebrew.

The LanguageAndScriptCode of the DDEX message should be used to determine the writing direction.

The title text in the example below should be presented from left to right (as the language is Hebrew)

Code Block
<Title LanguageAndScriptCode="he">
	<TitleText>אָלֶף־בֵּית עִבְרִי</TitleText>
<Title>

Bi-directional text

In some cases a text contains LRT and RTL portions. In that case the LanguageAndScriptCode shall be set to the main language used and the Unicode characters to switch direction shall be used. They are:

  • &#x202A       LTR
  • &#x202B        RTL
  • &#x202C       Pop Directional format
  • &#x202D        LTR Override
  • &#x202E       RTL Override

Details on how to use these can be found on http://www.i18nguy.com/markup/right-to-left.html