Skip to content

Commit

Permalink
Add big5 encoder quirk. Fixes https://www.w3.org/Bugs/Public/show_bug…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Aug 19, 2015
1 parent 52f08a6 commit 7f9dda7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
19 changes: 17 additions & 2 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,21 @@ <h2 id="indexes"><span class="secno">6 </span>Indexes</h2>
<var title="">index</var>.
</ol>

<p>The <dfn id="index-big5-pointer">index big5 pointer</dfn> for <var>code point</var> is the return value of
these steps:

<ol>
<li><p>Let <var>index</var> be <a href="#index-big5">index big5</a>.

<li><p>If <var>code point</var> is U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345,
return the <em>last</em> pointer corresponding to <var>code point</var> in
<var>index</var>.
<!-- https://www.w3.org/Bugs/Public/show_bug.cgi?id=27878 -->

<li><p>Return the <a href="#index-pointer">index pointer</a> for <var>code point</var> in
<var>index</var>.
</ol>

<hr>

<p class="note no-backref">All <a href="#index" title="index">indexes</a> are also available as
Expand Down Expand Up @@ -1873,8 +1888,8 @@ <h4 id="big5-encoder"><span class="secno">12.1.2 </span><dfn>big5 encoder</dfn><
<li><p>If <var title="">code point</var> is an <a href="#ascii-code-point">ASCII code point</a>, return
a byte whose value is <var title="">code point</var>.

<li><p>Let <var title="">pointer</var> be the <a href="#index-pointer">index pointer</a> for
<var title="">code point</var> in <a href="#index-big5">index big5</a>.
<li><p>Let <var>pointer</var> be the <a href="#index-big5-pointer">index big5 pointer</a> for
<var>code point</var>.

<li><p>If <var title="">pointer</var> is null, return <a href="#error">error</a> with
<var title="">code point</var>.
Expand Down
19 changes: 17 additions & 2 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,21 @@ <h2>Indexes</h2>
<var title>index</var>.
</ol>

<p>The <dfn>index big5 pointer</dfn> for <var>code point</var> is the return value of
these steps:

<ol>
<li><p>Let <var>index</var> be <span>index big5</span>.

<li><p>If <var>code point</var> is U+2550, U+255E, U+2561, U+256A, U+5341, or U+5345,
return the <em>last</em> pointer corresponding to <var>code point</var> in
<var>index</var>.
<!-- https://www.w3.org/Bugs/Public/show_bug.cgi?id=27878 -->

<li><p>Return the <span>index pointer</span> for <var>code point</var> in
<var>index</var>.
</ol>

<hr>

<p class="note no-backref">All <span title=index>indexes</span> are also available as
Expand Down Expand Up @@ -1787,8 +1802,8 @@ <h4><dfn>big5 encoder</dfn></h4>
<li><p>If <var title>code point</var> is an <span>ASCII code point</span>, return
a byte whose value is <var title>code point</var>.

<li><p>Let <var title>pointer</var> be the <span>index pointer</span> for
<var title>code point</var> in <span>index big5</span>.
<li><p>Let <var>pointer</var> be the <span>index big5 pointer</span> for
<var>code point</var>.

<li><p>If <var title>pointer</var> is null, return <span>error</span> with
<var title>code point</var>.
Expand Down

0 comments on commit 7f9dda7

Please sign in to comment.