Skip to content

Commit

Permalink
Update I18N description of implicit initial text direction
Browse files Browse the repository at this point in the history
Co-authored-by: Addison Phillips <[email protected]>
  • Loading branch information
gkellogg and aphillips authored Oct 28, 2024
1 parent 0fea3f3 commit 68de459
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,12 @@ <h3>Initial Text Direction</h3>
</p>
<div lang="he" dir="rtl">פעילות הבינאום, W3C</div>

<p>In the absence of an explicit initial text direction, the [[?UAX9]] algorithm
can detect text direction from the initial character.
<p>In the absence of an explicit initial text direction,
the [=Unicode Bidirectional Algorithm=] detects the text direction from the content.
This depends on the first strongly directional character in the text
or on the context.
Users need to provide [=bidi isolation=] whenever text is inserted into a larger document
in order to avoid [=spillover effects=].
For example "<bdi lang="ar">اَلأَعْشَى</bdi> - 1st place" displays the
Arabic characters in a right-to-left fashion, while in memory
they would be stored as "<bdo dir="ltr" lang="ar">اَلأَعْشَى</bdo> - 1st place"</p>
Expand Down

0 comments on commit 68de459

Please sign in to comment.