Skip to content

Commit

Permalink
json-bidi, additional explanation about inline or multipara info bein…
Browse files Browse the repository at this point in the history
…g carried in the input string already
  • Loading branch information
r12a committed Aug 17, 2016
1 parent ace6d11 commit 37bd8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/json-bidi.html
Expand Up @@ -44,7 +44,7 @@ <h2>Why information is needed about the base direction for a string</h2>
<li> establish the overall base direction for a paragraph </li>
<li> change the base direction used for a range of inline text where needed </li>
</ol>
<p><b>These notes are only about the former</b> as it relates to the JSON-based format. Indications of direction change inline would just be carried over from whatever the original author used. </p>
<p><b>These notes are only about the former</b> as it relates to the JSON-based format. Indications of direction change inline or for subsequent paragraphs would just be carried over from whatever the original author used: those changes need to be signalled by markup or control characters in the input itself. They can't be applied automatically by an algorithm. In other words, if someone types in a string and wants it to have an embedded change in base direction, they need to make that happen, and whatever they did will become part of the string that is carried through, be it markup or controls. The same applies for paragraphs following the initial paragraph when there are more than one in the input.</p>
<p>For a simple introduction into how the Unicode bidirectional algorithm works, and where it needs additional help, see <a href="https://www.w3.org/International/articles/inline-bidi-markup/uba-basics">Unicode Bidirectional Algorithm basics</a>. You will need a grasp of these basics to understand what follows. </p>
<p>By default, strings are generally handled as if their base direction (directional context) is LTR. If the base direction for the string needs to be RTL, this information needs to be associated with the string in some way, since it affects the order in which elements in the string will be rendered to a user. Without this information, users may be unable to understand a message. For example, the following shows a string presented with a RTL base direction. </p>
<p><img alt="Rtl-base-direction.png" src="json-bidi-data/rtl-base-direction.png" height="43" width="666"> </p>
Expand Down

0 comments on commit 37bd8de

Please sign in to comment.