diff --git a/index.html b/index.html
index a440f6ef..1119855b 100644
--- a/index.html
+++ b/index.html
@@ -1994,10 +1994,20 @@
Algorithm
- Initialize result to an empty map.
- - 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.
+ - Initialize default lang dir as follows:
- 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
):
-
- - If the direction mapping equals
null
,
- set direction to @none
; otherwise
- to direction mapping preceded by an underscore (`"_"`).
- - If language map does not have a direction entry,
- create one and set its value to the term
- being processed.
-
-
- Otherwise, if active context has a
- default base direction:
-
- - Initialize a variable lang dir
- with the concatenation of default language and default base direction,
- separate by an underscore (`"_"`),
- normalized to lower case.
- - If language map does not have a lang dir entry,
- create one and set its value to the term
- being processed.
- - If language map does not have an `@none` entry,
- create one and set its value to the term
- being processed.
- - If type map does not have an `@none` entry,
- create one and set its value to the term
- being processed.
-
-
Otherwise:
- - If language map does not have a default language entry
- (after being normalized to lower case),
+
- If language map does not have a default lang dir entry,
create one and set its value to the term
being processed.
- If language map does not have an
@none