From 8322f72741462732322bdc88fe2ef52bfe4cd5fd Mon Sep 17 00:00:00 2001 From: Christian Liebel Date: Sun, 16 Jun 2024 11:02:49 +0200 Subject: [PATCH] Editorial: Less specific description for dir auto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Addison Phillips Co-authored-by: Marcos Cáceres --- index.html | 56 +++++++++++++++--------------------------------------- 1 file changed, 15 insertions(+), 41 deletions(-) diff --git a/index.html b/index.html index 40fc5925..47de99cc 100644 --- a/index.html +++ b/index.html @@ -446,9 +446,9 @@

The [=manifest's=] dir member specifies the base - direction for the localizable members of the - manifest. The [=manifest/dir=] member's value can be set to a + "manifest">dir member specifies the default string + direction for the localizable members of the manifest. + The [=manifest/dir=] member's value can be set to a text-direction.

@@ -487,20 +487,9 @@

"auto" (default)
-

- Direction determined from content using Rule P2 of the [[UAX9]] algorithm. -

- + Text direction is unknown. The user agent should use heuristics to + estimate the display of the text, for example the first-strong + algorithm as described in [[UAX9]].

@@ -508,22 +497,6 @@

"[=text-direction/ltr=]", "[=text-direction/rtl=]", "[=text-direction/auto=]" ».

-

- When displaying the localizable members to an end-user, the - use agent SHOULD: -

-
    -
  1. If the base direction is [=text-direction/ltr=] or - [=text-direction/rtl=], override Rule P3 - of [[UAX9]], setting the paragraph embedding level to 0 if the - base direction is [=text-direction/ltr=], or 1 if the base - direction is [=text-direction/rtl=]. -
  2. -
  3. Otherwise the base direction is "[=text-direction/auto=]", - in which case determine the text's direction by applying - Rule P1 of [[UAX9]]. -
  4. -

To process the `dir` member, given [=ordered map=] |json:ordered map| and [=ordered map=] |manifest:ordered map|: @@ -549,12 +522,14 @@

The [=manifest's=] lang member is a [=string=] in the form of a [=language tag=] that specifies the language for the values of the - manifest's [=localizable members=]. + manifest's [=localizable members=]. If the `lang` member is not + specified, the language is treated as unknown.

- Specifying the language improves the user experience by helping - user agents select the most appropriate processing or resources, - such as fonts, styling, hyphenation, or text-to-speech voices for accessibility. + Specifying the language improves the user experience by helping user + agents select the most appropriate processing or resources, such as + fonts, styling, hyphenation, or text-to-speech voices for + accessibility.

A language tag is a [=string=] that matches the production @@ -1664,10 +1639,9 @@

The user agent is free to display the icon where no [=manifest - image resource/purpose=] is required. For example, a - [=manifest image resource=] with a "any" purpose - wouldn't be used in a context where "[=icon purpose/monochrome=]" - is required. + image resource/purpose=] is required. For example, a [=manifest + image resource=] with a "any" purpose wouldn't be used in a context + where "[=icon purpose/monochrome=]" is required.