From 9d70fe92a8cd75a1eb4704b106eb5e505002d990 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 0b0e49d9..4e0c5fcc 100644 --- a/index.html +++ b/index.html @@ -2003,10 +2003,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 @@ -2117,6 +2132,7 @@

    Algorithm

    being processed.
+
  • Otherwise, if active context has a default base direction:
      @@ -2135,10 +2151,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 @@ -7103,6 +7121,8 @@

      Change log

      as described in Candidate Correction 7
    4. 2025-02-28: Clarifiy language about term definitions, as described in Candidate Correction 8
    5. +
    6. 2025-02-28: Simplify the Inverse Context Creation algorithm + as described in Candidate Correction 8
    7. From 905568df0f0094195bc0000f0735f75b0c0258df 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 4e0c5fcc..91934628 100644 --- a/index.html +++ b/index.html @@ -2132,8 +2132,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 @@ -2150,8 +2152,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 a04703dd6973224d2e15d74dec90e940ad6edfcc 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 91934628..07e66ace 100644 --- a/index.html +++ b/index.html @@ -2007,7 +2007,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.

      @@ -2132,7 +2132,7 @@

      Algorithm

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