@@ -2003,10 +2003,25 @@ <h3>Algorithm</h3>
2003
2003
2004
2004
< ol >
2005
2005
< li > Initialize < var > result</ var > to an empty < a class ="changed "> map</ a > .</ li >
2006
- < li > Initialize < var > default language</ var > to < code > @none</ code > .
2006
+ < li >
2007
+ < div id ="change_pr639 " class ="candidate correction ">
2008
+ < span class ="marker "> Candidate Correction 8</ span >
2009
+ < p > Simplify the algorithm by handling the < a > default base direction</ a >
2010
+ once and for all in this step, rather than in each iteration at the end of the next step.
2011
+ For more information, refer to < a href ="https://github.com/w3c/json-ld-api/issues/633 "> issue 633</ a > .
2012
+ </ p >
2013
+ </ div >
2014
+
2015
+ Initialize < var > default language</ var > to < code > @none</ code > .
2007
2016
If the < var > active context</ var > has a < a > default language</ a > ,
2008
2017
set < var > default language</ var > to the < a > default language</ a > from the < var > active context</ var >
2009
- < span class ="changed "> normalized to lower case</ span > .</ li >
2018
+ < span class ="changed "> normalized to lower case</ span > .
2019
+ < ins cite ="#change_pr639 ">
2020
+ If the < var > active context</ var > has a < a > default base direction</ a > ,
2021
+ concatenate its value to < var > default language</ var > ,
2022
+ separated by an underscore (`"_"`).
2023
+ </ ins >
2024
+ </ li >
2010
2025
< li > For each key < a > term</ a > and value < a > term definition</ a > in
2011
2026
the < var > active context</ var > , ordered by shortest < a > term</ a >
2012
2027
first (breaking ties by choosing the lexicographically least
@@ -2117,6 +2132,7 @@ <h3>Algorithm</h3>
2117
2132
being processed.</ li >
2118
2133
</ ol >
2119
2134
</ li >
2135
+ < del cite ="#change_pr639 ">
2120
2136
< li class ="changed "> Otherwise, if < var > active context</ var > has a
2121
2137
< a > default base direction</ a > :
2122
2138
< ol >
@@ -2135,10 +2151,12 @@ <h3>Algorithm</h3>
2135
2151
being processed.</ li >
2136
2152
</ ol >
2137
2153
</ li >
2154
+ </ del >
2138
2155
< li > Otherwise:
2139
2156
< ol >
2140
- < li > If < var > language map</ var > does not have a < var > default language</ var > < a > entry</ a >
2157
+ < li > If < var > language map</ var > does not have a < var > default language</ var > < a > entry</ a > , < del cite =" #change_pr639 " >
2141
2158
< span class ="changed "> (after being normalized to lower case)</ span > ,
2159
+ </ del >
2142
2160
create one and set its value to the < a > term</ a >
2143
2161
being processed.</ li >
2144
2162
< li > If < var > language map</ var > does not have an < code > @none</ code >
@@ -7103,6 +7121,8 @@ <h2>Change log</h2>
7103
7121
as described in < a href ="#change_7 "> Candidate Correction 7</ a > </ li >
7104
7122
< li > 2025-02-28: Clarifiy language about < a > term definitions</ a > ,
7105
7123
as described in < a href ="#change_api_638 "> Candidate Correction 8</ a > </ li >
7124
+ < li > 2025-02-28: Simplify the < a href ="#algorithm-1 "> Inverse Context Creation algorithm</ a >
7125
+ as described in < a href ="#change_pr639 "> Candidate Correction 8</ a > </ li >
7106
7126
</ ul >
7107
7127
</ details >
7108
7128
0 commit comments