446
446
</ h3 >
447
447
< p >
448
448
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
452
452
< a > text-direction</ a > .
453
453
</ p >
454
454
< p >
@@ -487,43 +487,16 @@ <h3>
487
487
"< dfn data-dfn-for ="text-direction "> auto</ dfn > " (default)
488
488
</ dt >
489
489
< 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]].
504
493
</ dd >
505
494
</ dl >
506
495
< p >
507
496
The < dfn > text-direction list</ dfn > is the [=list=] «
508
497
"[=text-direction/ltr=]", "[=text-direction/rtl=]",
509
498
"[=text-direction/auto=]" ».
510
499
</ 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 >
527
500
< p >
528
501
To < dfn > process the `dir` member</ dfn > , given [=ordered map=]
529
502
|json:ordered map| and [=ordered map=] |manifest:ordered map|:
@@ -549,12 +522,14 @@ <h3>
549
522
The [=manifest's=] < code > < dfn data-export ="" data-dfn-for =
550
523
"manifest "> lang</ dfn > </ code > member is a [=string=] in the form of a
551
524
[=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.
553
527
</ p >
554
528
< 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.
558
533
</ p >
559
534
< p >
560
535
A < dfn > language tag</ dfn > is a [=string=] that matches the production
@@ -1664,10 +1639,9 @@ <h3>
1664
1639
</ dt >
1665
1640
< dd >
1666
1641
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.
1671
1645
</ dd >
1672
1646
</ dl >
1673
1647
< p >
0 commit comments