@@ -1994,10 +1994,25 @@ <h3>Algorithm</h3>
1994
1994
1995
1995
< ol >
1996
1996
< li > Initialize < var > result</ var > to an empty < a class ="changed "> map</ a > .</ li >
1997
- < li > Initialize < var > default language</ var > to < code > @none</ code > .
1997
+ < li >
1998
+ < div id ="change_pr639 " class ="candidate correction ">
1999
+ < span class ="marker "> Candidate Correction 8</ span >
2000
+ < p > Simplify the algorithm by handling the < a > default base direction</ a >
2001
+ once and for all in this step, rather than in each iteration at the end of the next step.
2002
+ For more information, refer to < a href ="https://github.com/w3c/json-ld-api/issues/633 "> issue 633</ a > .
2003
+ </ p >
2004
+ </ div >
2005
+
2006
+ Initialize < var > default language</ var > to < code > @none</ code > .
1998
2007
If the < var > active context</ var > has a < a > default language</ a > ,
1999
2008
set < var > default language</ var > to the < a > default language</ a > from the < var > active context</ var >
2000
- < span class ="changed "> normalized to lower case</ span > .</ li >
2009
+ < span class ="changed "> normalized to lower case</ span > .
2010
+ < ins cite ="#change_pr639 ">
2011
+ If the < var > active context</ var > has a < a > default base direction</ a > ,
2012
+ concatenate its value to < var > default language</ var > ,
2013
+ separated by an underscore (`"_"`).
2014
+ </ ins >
2015
+ </ li >
2001
2016
< li > For each key < a > term</ a > and value < a > term definition</ a > in
2002
2017
the < var > active context</ var > , ordered by shortest < a > term</ a >
2003
2018
first (breaking ties by choosing the lexicographically least
@@ -2108,6 +2123,7 @@ <h3>Algorithm</h3>
2108
2123
being processed.</ li >
2109
2124
</ ol >
2110
2125
</ li >
2126
+ < del cite ="#change_pr639 ">
2111
2127
< li class ="changed "> Otherwise, if < var > active context</ var > has a
2112
2128
< a > default base direction</ a > :
2113
2129
< ol >
@@ -2126,10 +2142,12 @@ <h3>Algorithm</h3>
2126
2142
being processed.</ li >
2127
2143
</ ol >
2128
2144
</ li >
2145
+ </ del >
2129
2146
< li > Otherwise:
2130
2147
< ol >
2131
- < li > If < var > language map</ var > does not have a < var > default language</ var > < a > entry</ a >
2148
+ < li > If < var > language map</ var > does not have a < var > default language</ var > < a > entry</ a > , < del cite =" #change_pr639 " >
2132
2149
< span class ="changed "> (after being normalized to lower case)</ span > ,
2150
+ </ del >
2133
2151
create one and set its value to the < a > term</ a >
2134
2152
being processed.</ li >
2135
2153
< li > If < var > language map</ var > does not have an < code > @none</ code >
@@ -7092,6 +7110,8 @@ <h2>Change log</h2>
7092
7110
< li > 2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
7093
7111
for alternative formats,
7094
7112
as described in < a href ="#change_7 "> Candidate Correction 7</ a > </ li >
7113
+ < li > 2025-02-28: Simplify the < a href ="#algorithm-1 "> Inverse Context Creation algorithm</ a >
7114
+ as described in < a href ="#change_pr639 "> Candidate Correction 8</ a > </ li >
7095
7115
</ ul >
7096
7116
</ details >
7097
7117
0 commit comments