Skip to content

Commit bec0f43

Browse files
committed
use hex notation in shift_jis
1 parent 5bbceb2 commit bec0f43

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

Overview.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,13 @@ <h2 id="legacy-single-byte-encodings"><span class="secno">7 </span>Legacy single
821821

822822
<h2 id="legacy-multi-byte-chinese-(simplified)-encodings"><span class="secno">8 </span>Legacy multi-byte Chinese (simplified) encodings</h2>
823823

824-
<p>The <dfn id="gbk-code-point">gbk code point</dfn> for <var title="">index<var> is the code point
825-
located at <var title="">index</var> in
824+
<p>The <dfn id="gbk-code-point">gbk code point</dfn> for <var title="">index</var> is the
825+
code point located at <var title="">index</var> in
826826
<a href="index-gbk.txt">index-gbk.txt</a>, or null if there is no code point
827827
defined.
828828

829829

830-
</var></var><h3 id="gbk"><span class="secno">8.1 </span><dfn>gbk</dfn></h3>
830+
<h3 id="gbk"><span class="secno">8.1 </span><dfn>gbk</dfn></h3>
831831

832832
<p>The <dfn id="gb18030-flag">gb18030 flag</dfn> flag is initially unset. It can only be set
833833
by the <a href="#gb18030-decoder">gb18030 decoder</a> and <a href="#gb18030-encoder">gb18030 encoder</a>.
@@ -1482,9 +1482,9 @@ <h3 id="shift_jis"><span class="secno">10.3 </span><dfn>shift_jis</dfn></h3>
14821482
0x80 to 0xFC, run these substeps:
14831483

14841484
<ol>
1485-
<li><p>Set <var title="">offset</var> to 64 if <var title="">byte</var> is
1486-
less than 0x7F, or 65 otherwise.
1487-
<!-- offset = byte > 127 ? 65 : 64 -->
1485+
<li><p>Set <var title="">offset</var> to 0x40 if <var title="">byte</var> is
1486+
less than 0x7F, or 0x41 otherwise.
1487+
<!-- offset = byte < 0x7F ? 0x40 : 0x41 -->
14881488

14891489
<li><p>If <var title="">lead</var> is in the range 0xF0 to 0xF9, this is a
14901490
<a href="#decoder-error">decoder error</a>; emit a code point whose value is
@@ -1497,19 +1497,19 @@ <h3 id="shift_jis"><span class="secno">10.3 </span><dfn>shift_jis</dfn></h3>
14971497
is less than 0x9F.
14981498
<!-- adjust = byte < 159 -->
14991499

1500-
<li><p>Let <var title="">lead offset</var> be 176, or 112 if
1501-
<var title="">lead</var> is less than 160.
1502-
<!-- lead offset = lead < 160 ? 112 : 176 -->
1500+
<li><p>Let <var title="">lead offset</var> 0x70 if <var title="">lead</var>
1501+
is less than 0xA0, or 0xB0 otherwise.
1502+
<!-- lead offset = lead < 0xA0 ? 0x70 : 0xB0 -->
15031503

15041504
<li><p>If <var title="">adjust</var> is 0, set <var title="">offset</var> to
1505-
159.
1506-
<!-- offset = adjust ? offset : 159 -->
1505+
0x9F.
1506+
<!-- offset = adjust ? offset : 0x9F -->
15071507

15081508
<li><p>Let <var title="">row</var> be the arithmetic left shift of
15091509
<var title="">lead</var><var title="">lead offset</var> by 1.
15101510
<li><p>Set <var title="">row</var> to
1511-
<var title="">row</var><var title="">adjust</var>33.
1512-
<!-- row = ((lead - lead offset) << 1) - adjust - 33 -->
1511+
<var title="">row</var><var title="">adjust</var>0x21.
1512+
<!-- row = ((lead - lead offset) << 1) - adjust - 0x21 -->
15131513

15141514
<li><p>Let <var title="">code point</var> be the
15151515
<a href="#jis0208-code-point">jis0208 code point</a> for

Overview.src.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -788,8 +788,8 @@ <h2>Legacy single-byte encodings</h2>
788788

789789
<h2>Legacy multi-byte Chinese (simplified) encodings</h2>
790790

791-
<p>The <dfn>gbk code point</dfn> for <var title>index<var> is the code point
792-
located at <var title>index</var> in
791+
<p>The <dfn>gbk code point</dfn> for <var title>index</var> is the
792+
code point located at <var title>index</var> in
793793
<a href=index-gbk.txt>index-gbk.txt</a>, or null if there is no code point
794794
defined.
795795

@@ -1449,9 +1449,9 @@ <h3><dfn>shift_jis</dfn></h3>
14491449
0x80 to 0xFC, run these substeps:
14501450

14511451
<ol>
1452-
<li><p>Set <var title>offset</var> to 64 if <var title>byte</var> is
1453-
less than 0x7F, or 65 otherwise.
1454-
<!-- offset = byte > 127 ? 65 : 64 -->
1452+
<li><p>Set <var title>offset</var> to 0x40 if <var title>byte</var> is
1453+
less than 0x7F, or 0x41 otherwise.
1454+
<!-- offset = byte < 0x7F ? 0x40 : 0x41 -->
14551455

14561456
<li><p>If <var title>lead</var> is in the range 0xF0 to 0xF9, this is a
14571457
<span>decoder error</span>; emit a code point whose value is
@@ -1464,19 +1464,19 @@ <h3><dfn>shift_jis</dfn></h3>
14641464
is less than 0x9F.
14651465
<!-- adjust = byte < 159 -->
14661466

1467-
<li><p>Let <var title>lead offset</var> be 176, or 112 if
1468-
<var title>lead</var> is less than 160.
1469-
<!-- lead offset = lead < 160 ? 112 : 176 -->
1467+
<li><p>Let <var title>lead offset</var> 0x70 if <var title>lead</var>
1468+
is less than 0xA0, or 0xB0 otherwise.
1469+
<!-- lead offset = lead < 0xA0 ? 0x70 : 0xB0 -->
14701470

14711471
<li><p>If <var title>adjust</var> is 0, set <var title>offset</var> to
1472-
159.
1473-
<!-- offset = adjust ? offset : 159 -->
1472+
0x9F.
1473+
<!-- offset = adjust ? offset : 0x9F -->
14741474

14751475
<li><p>Let <var title>row</var> be the arithmetic left shift of
14761476
<var title>lead</var> &minus; <var title>lead offset</var> by 1.
14771477
<li><p>Set <var title>row</var> to
1478-
<var title>row</var> &minus; <var title>adjust</var> &minus; 33.
1479-
<!-- row = ((lead - lead offset) << 1) - adjust - 33 -->
1478+
<var title>row</var> &minus; <var title>adjust</var> &minus; 0x21.
1479+
<!-- row = ((lead - lead offset) << 1) - adjust - 0x21 -->
14801480

14811481
<li><p>Let <var title>code point</var> be the
14821482
<span>jis0208 code point</span> for

0 commit comments

Comments
 (0)