From 3b16ca10f6a820464eee47542aa6bd5747dc4373 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Fri, 28 Feb 2025 11:29:29 +0100 Subject: [PATCH 1/3] fix #633, in a better way and using the markup for candidate corrections --- index.html | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 67e75b78..72e97b5b 100644 --- a/index.html +++ b/index.html @@ -1994,10 +1994,25 @@

Algorithm

  1. Initialize result to an empty map.
  2. -
  3. Initialize default language to @none. +
  4. +
    + Candidate Correction 8 +

    Simplify the algorithm by handling the default base direction + once and for all in this step, rather than in each iteration at the end of the next step. + For more information, refer to issue 633. +

    +
    + + Initialize default language to @none. If the active context has a default language, set default language to the default language from the active context - normalized to lower case.
  5. + normalized to lower case. + + If the active context has a default base direction, + concatenate its value to default language, + separated by an underscore (`"_"`). + +
  6. For each key term and value term definition in the active context, ordered by shortest term first (breaking ties by choosing the lexicographically least @@ -2108,6 +2123,7 @@

    Algorithm

    being processed.
+
  • Otherwise, if active context has a default base direction:
      @@ -2126,10 +2142,12 @@

      Algorithm

      being processed.
  • +
  • Otherwise:
      -
    1. If language map does not have a default language entry +
    2. If language map does not have a default language entry, (after being normalized to lower case), + create one and set its value to the term being processed.
    3. If language map does not have an @none @@ -7092,6 +7110,8 @@

      Change log

    4. 2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow for alternative formats, as described in Candidate Correction 7
    5. +
    6. 2025-02-28: Simplify the Inverse Context Creation algorithm + as described in Candidate Correction 8
    7. From bdde251047fe1ee1542ddeadb6d286d216b98fad Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Fri, 28 Feb 2025 11:48:46 +0100 Subject: [PATCH 2/3] fix validation error
    8. elements can not be wrapped by (or ) so I had to keep the element in place, with some placeholder text explaining that this step is gone. The idea is to remove it entirely when the candidate correction is accepted. --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 72e97b5b..e9f790ae 100644 --- a/index.html +++ b/index.html @@ -2123,8 +2123,10 @@

      Algorithm

      being processed.
  • - -
  • Otherwise, if active context has a +
  • + (this step was removed by a candidate correction) + + Otherwise, if active context has a default base direction:
    1. Initialize a variable lang dir @@ -2141,8 +2143,8 @@

      Algorithm

      create one and set its value to the term being processed.
    +
  • -
  • Otherwise:
    1. If language map does not have a default language entry, From 08b5b7e4ea6ec4a5ab215ab5d114fac022bd286a Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Wed, 12 Mar 2025 14:13:56 +0100 Subject: [PATCH 3/3] explicitly refer to step 3.16 in change marker --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e9f790ae..cbbf7f8e 100644 --- a/index.html +++ b/index.html @@ -1998,7 +1998,7 @@

      Algorithm

      Candidate Correction 8

      Simplify the algorithm by handling the default base direction - once and for all in this step, rather than in each iteration at the end of the next step. + once and for all in this step, rather than in each iteration. For more information, refer to issue 633.

      @@ -2123,7 +2123,7 @@

      Algorithm

      being processed.
  • -
  • +
  • (this step was removed by a candidate correction) Otherwise, if active context has a