diff --git a/index.html b/index.html index 67e75b78..cbbf7f8e 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. + 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,7 +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 @@ -2125,11 +2143,13 @@

      Algorithm

      create one and set its value to the term 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 +7112,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