Skip to content

Commit 3b16ca1

Browse files
committed
fix #633, in a better way
and using the markup for candidate corrections
1 parent 746ece8 commit 3b16ca1

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

index.html

+23-3
Original file line numberDiff line numberDiff line change
@@ -1994,10 +1994,25 @@ <h3>Algorithm</h3>
19941994

19951995
<ol>
19961996
<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>.
19982007
If the <var>active context</var> has a <a>default language</a>,
19992008
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>
20012016
<li>For each key <a>term</a> and value <a>term definition</a> in
20022017
the <var>active context</var>, ordered by shortest <a>term</a>
20032018
first (breaking ties by choosing the lexicographically least
@@ -2108,6 +2123,7 @@ <h3>Algorithm</h3>
21082123
being processed.</li>
21092124
</ol>
21102125
</li>
2126+
<del cite="#change_pr639">
21112127
<li class="changed">Otherwise, if <var>active context</var> has a
21122128
<a>default base direction</a>:
21132129
<ol>
@@ -2126,10 +2142,12 @@ <h3>Algorithm</h3>
21262142
being processed.</li>
21272143
</ol>
21282144
</li>
2145+
</del>
21292146
<li>Otherwise:
21302147
<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">
21322149
<span class="changed">(after being normalized to lower case)</span>,
2150+
</del>
21332151
create one and set its value to the <a>term</a>
21342152
being processed.</li>
21352153
<li>If <var>language map</var> does not have an <code>@none</code>
@@ -7092,6 +7110,8 @@ <h2>Change log</h2>
70927110
<li>2024-10-31: Abstract JSON serialization from WebIDL interfaces to allow
70937111
for alternative formats,
70947112
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>
70957115
</ul>
70967116
</details>
70977117

0 commit comments

Comments
 (0)