Skip to content

Commit 8322f72

Browse files
christianliebelaphillipsmarcoscaceres
committed
Editorial: Less specific description for dir auto
Co-authored-by: Addison Phillips <[email protected]> Co-authored-by: Marcos Cáceres <[email protected]>
1 parent de3dcc6 commit 8322f72

File tree

1 file changed

+15
-41
lines changed

1 file changed

+15
-41
lines changed

index.html

+15-41
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,9 @@ <h3>
446446
</h3>
447447
<p>
448448
The [=manifest's=] <code><dfn data-export="" data-dfn-for=
449-
"manifest">dir</dfn></code> member specifies the <dfn>base
450-
direction</dfn> for the <a>localizable members</a> of the
451-
<a>manifest</a>. The [=manifest/dir=] member's value can be set to a
449+
"manifest">dir</dfn></code> member specifies the default string
450+
direction for the <a>localizable members</a> of the <a>manifest</a>.
451+
The [=manifest/dir=] member's value can be set to a
452452
<a>text-direction</a>.
453453
</p>
454454
<p>
@@ -487,43 +487,16 @@ <h3>
487487
"<dfn data-dfn-for="text-direction">auto</dfn>" (default)
488488
</dt>
489489
<dd>
490-
<p>
491-
Direction determined from content using <a data-cite=
492-
"UAX9#P2">Rule P2</a> of the [[UAX9]] algorithm.
493-
</p>
494-
<aside class="note">
495-
<p>
496-
[=text-direction/auto=] means that the directionality of each
497-
member is determined by its first strongly directional
498-
character (as per the <a data-cite="UAX9#P2">Rule P2</a>). An
499-
explicit direction value such as "[=text-direction/rtl=]" or
500-
"[=text-direction/ltr=]" is preferred to relying on the default
501-
of "[=text-direction/auto=]".
502-
</p>
503-
</aside>
490+
Text direction is unknown. The user agent should use heuristics to
491+
estimate the display of the text, for example the first-strong
492+
algorithm as described in [[UAX9]].
504493
</dd>
505494
</dl>
506495
<p>
507496
The <dfn>text-direction list</dfn> is the [=list=] «
508497
"[=text-direction/ltr=]", "[=text-direction/rtl=]",
509498
"[=text-direction/auto=]" ».
510499
</p>
511-
<p>
512-
When displaying the <a>localizable members</a> to an end-user, the
513-
use agent SHOULD:
514-
</p>
515-
<ol class="algorithm">
516-
<li>If the <a>base direction</a> is [=text-direction/ltr=] or
517-
[=text-direction/rtl=], override <a data-cite="UAX9#P3">Rule P3</a>
518-
of [[UAX9]], setting the paragraph embedding level to 0 if the
519-
<a>base direction</a> is [=text-direction/ltr=], or 1 if the <a>base
520-
direction</a> is [=text-direction/rtl=].
521-
</li>
522-
<li>Otherwise the <a>base direction</a> is "[=text-direction/auto=]",
523-
in which case determine the text's direction by applying
524-
<a data-cite="UAX9#P1">Rule P1</a> of [[UAX9]].
525-
</li>
526-
</ol>
527500
<p>
528501
To <dfn>process the `dir` member</dfn>, given [=ordered map=]
529502
|json:ordered map| and [=ordered map=] |manifest:ordered map|:
@@ -549,12 +522,14 @@ <h3>
549522
The [=manifest's=] <code><dfn data-export="" data-dfn-for=
550523
"manifest">lang</dfn></code> member is a [=string=] in the form of a
551524
[=language tag=] that specifies the language for the values of the
552-
manifest's [=localizable members=].
525+
manifest's [=localizable members=]. If the `lang` member is not
526+
specified, the language is treated as unknown.
553527
</p>
554528
<p class="note">
555-
Specifying the language improves the user experience by helping
556-
user agents select the most appropriate processing or resources,
557-
such as fonts, styling, hyphenation, or text-to-speech voices for accessibility.
529+
Specifying the language improves the user experience by helping user
530+
agents select the most appropriate processing or resources, such as
531+
fonts, styling, hyphenation, or text-to-speech voices for
532+
accessibility.
558533
</p>
559534
<p>
560535
A <dfn>language tag</dfn> is a [=string=] that matches the production
@@ -1664,10 +1639,9 @@ <h3>
16641639
</dt>
16651640
<dd>
16661641
The user agent is free to display the icon where no [=manifest
1667-
image resource/purpose=] is required. For example, a
1668-
[=manifest image resource=] with a "any" purpose
1669-
wouldn't be used in a context where "[=icon purpose/monochrome=]"
1670-
is required.
1642+
image resource/purpose=] is required. For example, a [=manifest
1643+
image resource=] with a "any" purpose wouldn't be used in a context
1644+
where "[=icon purpose/monochrome=]" is required.
16711645
</dd>
16721646
</dl>
16731647
<p>

0 commit comments

Comments
 (0)