From 315be380e3a58e0426b32c50fc4507b4bbfe70cb 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 --- index.html | 42 ++++++++---------------------------------- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/index.html b/index.html index 40fc5925..9be453c7 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 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,7 +522,8 @@

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