@@ -821,13 +821,13 @@ <h2 id="legacy-single-byte-encodings"><span class="secno">7 </span>Legacy single
821
821
822
822
< h2 id ="legacy-multi-byte-chinese-(simplified)-encodings "> < span class ="secno "> 8 </ span > Legacy multi-byte Chinese (simplified) encodings</ h2 >
823
823
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
826
826
< a href ="index-gbk.txt "> index-gbk.txt</ a > , or null if there is no code point
827
827
defined.
828
828
829
829
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 >
831
831
832
832
< p > The < dfn id ="gb18030-flag "> gb18030 flag</ dfn > flag is initially unset. It can only be set
833
833
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>
1482
1482
0x80 to 0xFC, run these substeps:
1483
1483
1484
1484
< 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 -->
1488
1488
1489
1489
< li > < p > If < var title =""> lead</ var > is in the range 0xF0 to 0xF9, this is a
1490
1490
< 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>
1497
1497
is less than 0x9F.
1498
1498
<!-- adjust = byte < 159 -->
1499
1499
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 -->
1503
1503
1504
1504
< 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 -->
1507
1507
1508
1508
< li > < p > Let < var title =""> row</ var > be the arithmetic left shift of
1509
1509
< var title =""> lead</ var > − < var title =""> lead offset</ var > by 1.
1510
1510
< 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 -->
1513
1513
1514
1514
< li > < p > Let < var title =""> code point</ var > be the
1515
1515
< a href ="#jis0208-code-point "> jis0208 code point</ a > for
0 commit comments