diff --git a/index.html b/index.html index a440f6ef..1119855b 100644 --- a/index.html +++ b/index.html @@ -1994,10 +1994,20 @@

Algorithm

  1. Initialize result to an empty map.
  2. -
  3. 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.
  4. +
  5. Initialize default lang dir as follows:
  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 @@ -2097,39 +2107,9 @@

    Algorithm

    being processed.
-
  • Otherwise, if term definition has a - direction mapping (might be null): -
      -
    1. If the direction mapping equals null, - set direction to @none; otherwise - to direction mapping preceded by an underscore (`"_"`).
    2. -
    3. If language map does not have a direction entry, - create one and set its value to the term - being processed.
    4. -
    -
  • -
  • Otherwise, if active context has a - default base direction: -
      -
    1. Initialize a variable lang dir - with the concatenation of default language and default base direction, - separate by an underscore (`"_"`), - normalized to lower case.
    2. -
    3. If language map does not have a lang dir entry, - create one and set its value to the term - being processed.
    4. -
    5. If language map does not have an `@none` entry, - create one and set its value to the term - being processed.
    6. -
    7. If type map does not have an `@none` entry, - create one and set its value to the term - being processed.
    8. -
    -
  • Otherwise:
      -
    1. If language map does not have a default language entry - (after being normalized to lower case), +
    2. If language map does not have a default lang dir entry, create one and set its value to the term being processed.
    3. If language map does not have an @none