| 1 |
/* |
| 2 |
* Copyright (C) 1999-2006, 2012, 2016 Free Software Foundation, Inc. |
| 3 |
* This file is part of the GNU LIBICONV Library. |
| 4 |
* |
| 5 |
* The GNU LIBICONV Library is free software; you can redistribute it |
| 6 |
* and/or modify it under the terms of the GNU Library General Public |
| 7 |
* License as published by the Free Software Foundation; either version 2 |
| 8 |
* of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* The GNU LIBICONV Library is distributed in the hope that it will be |
| 11 |
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Library General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Library General Public |
| 16 |
* License along with the GNU LIBICONV Library; see the file COPYING.LIB. |
| 17 |
* If not, see <http://www.gnu.org/licenses/>. |
| 18 |
*/ |
| 19 |
|
| 20 |
/* |
| 21 |
* HKSCS:2001 |
| 22 |
*/ |
| 23 |
|
| 24 |
static const unsigned short hkscs2001_2uni_page8c[123] = { |
| 25 |
/* 0x8c */ |
| 26 |
0x0a3b, 0x1cfe, 0x5273, 0x37a6, 0x02c9, 0x2d8f, 0x414e, 0x1d77, |
| 27 |
0x12f5, 0x0620, 0x45cd, 0x0059, 0x4830, 0x1622, 0x4f32, 0x30a7, |
| 28 |
0x31f6, 0x1e91, 0x1819, 0x20ba, 0x3e81, 0x5307, 0x018b, 0x3a80, |
| 29 |
0x0610, 0x24e4, 0x2102, 0x0bae, 0x4d0f, 0x0409, 0x1a63, 0x54ba, |
| 30 |
0x0523, 0x2c0f, 0x38fd, 0x252a, 0x5147, 0x4fea, 0x3455, 0x1d4d, |
| 31 |
0x0c24, 0x3c7e, 0x33f4, 0x22d9, 0x4ee3, 0x37a7, 0x23dd, 0x08a3, |
| 32 |
0x09f0, 0x0abc, 0x082f, 0x0917, 0x37a8, 0x0d34, 0x288b, 0x0f92, |
| 33 |
0x0fd0, 0x3bb6, 0x1492, 0x1499, 0x15c2, 0x3d12, 0x178b, 0x3ff9, |
| 34 |
0x1919, 0x1a43, 0x4063, 0x1bff, 0x38fd, 0x1f00, 0x4205, 0x208c, |
| 35 |
0x03db, 0x4413, 0x1115, 0x21b9, 0x2e83, 0x47a4, 0x4695, 0x2593, |
| 36 |
0x26ec, 0x27c3, 0x296c, 0x2af8, 0x2b97, 0x37a9, 0x2d90, 0x37aa, |
| 37 |
0x2fb9, 0x37ab, 0x30cf, 0x2b5f, 0x36e0, 0x3221, 0x37ac, 0x50b9, |
| 38 |
0x393f, 0x0471, 0x05a2, 0x101a, 0x38fd, 0x38fd, 0x38fd, 0x3568, |
| 39 |
0x186b, 0x0576, 0x0e3d, 0x38fd, 0x2bd6, 0x437b, 0x2abf, 0x4c0d, |
| 40 |
0x0781, 0x4a74, 0x137b, 0x4915, 0x4bbe, 0x37ad, 0x37ae, 0x1196, |
| 41 |
0x37af, 0x38fd, 0x295b, |
| 42 |
}; |
| 43 |
|
| 44 |
static const ucs4_t hkscs2001_2uni_upages[85] = { |
| 45 |
0x03500, 0x03c00, 0x03d00, 0x03e00, 0x04000, 0x04200, 0x04b00, 0x04c00, |
| 46 |
0x04e00, 0x04f00, 0x05000, 0x05100, 0x05300, 0x05400, 0x05700, 0x05800, |
| 47 |
0x05a00, 0x05b00, 0x05c00, 0x05d00, 0x05e00, 0x05f00, 0x06100, 0x06500, |
| 48 |
0x06700, 0x06900, 0x06a00, 0x06c00, 0x06d00, 0x07000, 0x07100, 0x07200, |
| 49 |
0x07300, 0x07400, 0x07600, 0x07700, 0x07800, 0x07a00, 0x07b00, 0x07c00, |
| 50 |
0x07d00, 0x07e00, 0x08200, 0x08500, 0x08600, 0x08800, 0x08b00, 0x08e00, |
| 51 |
0x08f00, 0x09100, 0x09200, 0x09300, 0x09700, 0x09800, 0x09900, 0x09f00, |
| 52 |
0x0ff00, 0x21400, 0x21900, 0x21d00, 0x22000, 0x22700, 0x23200, 0x23300, |
| 53 |
0x23c00, 0x24100, 0x24500, 0x24900, 0x24a00, 0x25100, 0x25600, 0x25c00, |
| 54 |
0x25d00, 0x26b00, 0x26d00, 0x26f00, 0x27100, 0x28700, 0x28900, 0x28a00, |
| 55 |
0x28d00, 0x29900, 0x29c00, 0x2a100, 0x2a200, |
| 56 |
}; |
| 57 |
|
| 58 |
static int |
| 59 |
hkscs2001_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, size_t n) |
| 60 |
{ |
| 61 |
unsigned char c1 = s[0]; |
| 62 |
if ((c1 == 0x8c)) { |
| 63 |
if (n >= 2) { |
| 64 |
unsigned char c2 = s[1]; |
| 65 |
if ((c2 >= 0x40 && c2 < 0x7f) || (c2 >= 0xa1 && c2 < 0xff)) { |
| 66 |
unsigned int i = 157 * (c1 - 0x80) + (c2 - (c2 >= 0xa1 ? 0x62 : 0x40)); |
| 67 |
ucs4_t wc = 0xfffd; |
| 68 |
unsigned short swc; |
| 69 |
{ |
| 70 |
if (i < 2007) |
| 71 |
swc = hkscs2001_2uni_page8c[i-1884], |
| 72 |
wc = hkscs2001_2uni_upages[swc>>8] | (swc & 0xff); |
| 73 |
} |
| 74 |
if (wc != 0xfffd) { |
| 75 |
*pwc = wc; |
| 76 |
return 2; |
| 77 |
} |
| 78 |
} |
| 79 |
return RET_ILSEQ; |
| 80 |
} |
| 81 |
return RET_TOOFEW(0); |
| 82 |
} |
| 83 |
return RET_ILSEQ; |
| 84 |
} |
| 85 |
|
| 86 |
static const unsigned short hkscs2001_2charset[116] = { |
| 87 |
0x8c4b, 0x8c56, 0x8c44, 0x8caa, 0x8c5d, 0x8cc3, 0x8c60, 0x8ccb, |
| 88 |
0x8cc4, 0x8c58, 0x8c49, 0x8cd2, 0x8c72, 0x8c6f, 0x8c73, 0x8c70, |
| 89 |
0x8c40, 0x8c71, 0x8c5b, 0x8c68, 0x8c75, 0x8ccc, 0x8c77, 0x8c78, |
| 90 |
0x8cc5, 0x8cac, 0x8cd9, 0x8c48, 0x8cd4, 0x8c7a, 0x8c7b, 0x8c7c, |
| 91 |
0x8c4d, 0x8c7e, 0x8c52, 0x8cca, 0x8ca2, 0x8ca3, 0x8c5e, 0x8ca5, |
| 92 |
0x8c41, 0x8c67, 0x8c47, 0x8c51, 0x8ca7, 0x8ca9, 0x8c53, 0x8c5a, |
| 93 |
0x8cad, 0x8c6b, 0x8c6e, 0x8c59, 0x8c63, 0x8cb1, 0x8cb2, 0x8cb3, |
| 94 |
0x8c76, 0x8cdc, 0x8cb4, 0x8cd0, 0x8cb5, 0x8cbd, 0x8cb6, 0x8cce, |
| 95 |
0x8c61, 0x8c45, 0x8cb8, 0x8cae, 0x8cba, 0x8c4f, 0x8cbc, 0x8c50, |
| 96 |
0x8cbf, 0x8c6a, 0x8c66, 0x8cc9, 0x8cbe, 0x8c43, 0x8c6d, 0x8c74, |
| 97 |
0x8cb7, 0x8cb9, 0x8cbb, 0x8cc0, 0x8cd7, 0x8cd8, 0x8cda, 0x8cc2, |
| 98 |
0x8c57, 0x8c79, 0x8c69, 0x8c7d, 0x8c54, 0x8ca1, 0x8ca4, 0x8c46, |
| 99 |
0x8ca8, 0x8ccf, 0x8cab, 0x8c4a, 0x8cb0, 0x8caf, 0x8c4c, 0x8cd5, |
| 100 |
0x8cd3, 0x8cd6, 0x8cd1, 0x8c5c, 0x8c6c, 0x8c4e, 0x8c65, 0x8cc1, |
| 101 |
0x8c64, 0x8c42, 0x8c55, 0x8c5f, |
| 102 |
}; |
| 103 |
|
| 104 |
static const Summary16 hkscs2001_uni2indx_page35[6] = { |
| 105 |
/* 0x3500 */ |
| 106 |
{ 0, 0x0000 }, { 0, 0x0000 }, { 0, 0x0000 }, { 0, 0x0000 }, |
| 107 |
{ 0, 0x0000 }, { 0, 0x0200 }, |
| 108 |
}; |
| 109 |
static const Summary16 hkscs2001_uni2indx_page3c[46] = { |
| 110 |
/* 0x3c00 */ |
| 111 |
{ 1, 0x0000 }, { 1, 0x0000 }, { 1, 0x0000 }, { 1, 0x0000 }, |
| 112 |
{ 1, 0x0000 }, { 1, 0x0000 }, { 1, 0x0000 }, { 1, 0x0000 }, |
| 113 |
{ 1, 0x0800 }, { 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, |
| 114 |
{ 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, |
| 115 |
/* 0x3d00 */ |
| 116 |
{ 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, |
| 117 |
{ 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, |
| 118 |
{ 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, { 2, 0x0000 }, |
| 119 |
{ 2, 0x0200 }, { 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, |
| 120 |
/* 0x3e00 */ |
| 121 |
{ 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, |
| 122 |
{ 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, |
| 123 |
{ 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, { 3, 0x0000 }, |
| 124 |
{ 3, 0x0000 }, { 3, 0x0800 }, |
| 125 |
}; |
| 126 |
static const Summary16 hkscs2001_uni2indx_page40[8] = { |
| 127 |
/* 0x4000 */ |
| 128 |
{ 4, 0x0200 }, { 5, 0x0000 }, { 5, 0x0000 }, { 5, 0x0000 }, |
| 129 |
{ 5, 0x0000 }, { 5, 0x0000 }, { 5, 0x0000 }, { 5, 0x0002 }, |
| 130 |
}; |
| 131 |
static const Summary16 hkscs2001_uni2indx_page42[11] = { |
| 132 |
/* 0x4200 */ |
| 133 |
{ 6, 0x0000 }, { 6, 0x0000 }, { 6, 0x0008 }, { 7, 0x0000 }, |
| 134 |
{ 7, 0x0000 }, { 7, 0x0000 }, { 7, 0x0000 }, { 7, 0x0040 }, |
| 135 |
{ 8, 0x0000 }, { 8, 0x0000 }, { 8, 0x0004 }, |
| 136 |
}; |
| 137 |
static const Summary16 hkscs2001_uni2indx_page4b[25] = { |
| 138 |
/* 0x4b00 */ |
| 139 |
{ 9, 0x0000 }, { 9, 0x0001 }, { 10, 0x0001 }, { 11, 0x0000 }, |
| 140 |
{ 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, |
| 141 |
{ 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, |
| 142 |
{ 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, |
| 143 |
/* 0x4c00 */ |
| 144 |
{ 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, |
| 145 |
{ 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, { 11, 0x0000 }, |
| 146 |
{ 11, 0x0002 }, |
| 147 |
}; |
| 148 |
static const Summary16 hkscs2001_uni2indx_page4e[59] = { |
| 149 |
/* 0x4e00 */ |
| 150 |
{ 12, 0x0000 }, { 12, 0x0000 }, { 12, 0x8000 }, { 13, 0x0000 }, |
| 151 |
{ 13, 0x0000 }, { 13, 0x0000 }, { 13, 0x0000 }, { 13, 0x0000 }, |
| 152 |
{ 13, 0x0000 }, { 13, 0x0000 }, { 13, 0x0008 }, { 14, 0x0000 }, |
| 153 |
{ 14, 0x0000 }, { 14, 0x0000 }, { 14, 0x0000 }, { 14, 0x0000 }, |
| 154 |
/* 0x4f00 */ |
| 155 |
{ 14, 0x0000 }, { 14, 0x0080 }, { 15, 0x0000 }, { 15, 0x0000 }, |
| 156 |
{ 15, 0x0000 }, { 15, 0x0000 }, { 15, 0x0000 }, { 15, 0x0000 }, |
| 157 |
{ 15, 0x0000 }, { 15, 0x0000 }, { 15, 0x0000 }, { 15, 0x0000 }, |
| 158 |
{ 15, 0x0000 }, { 15, 0x0000 }, { 15, 0x0000 }, { 15, 0x0001 }, |
| 159 |
/* 0x5000 */ |
| 160 |
{ 16, 0x0000 }, { 16, 0x0000 }, { 16, 0x0000 }, { 16, 0x0800 }, |
| 161 |
{ 17, 0x0000 }, { 17, 0x0000 }, { 17, 0x0000 }, { 17, 0x0000 }, |
| 162 |
{ 17, 0x0000 }, { 17, 0x0000 }, { 17, 0x0000 }, { 17, 0x1000 }, |
| 163 |
{ 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x0000 }, |
| 164 |
/* 0x5100 */ |
| 165 |
{ 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x0000 }, |
| 166 |
{ 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x0000 }, |
| 167 |
{ 18, 0x0000 }, { 18, 0x0000 }, { 18, 0x4000 }, |
| 168 |
}; |
| 169 |
static const Summary16 hkscs2001_uni2indx_page53[20] = { |
| 170 |
/* 0x5300 */ |
| 171 |
{ 19, 0x0000 }, { 19, 0x0000 }, { 19, 0x0010 }, { 20, 0x0000 }, |
| 172 |
{ 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, |
| 173 |
{ 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, |
| 174 |
{ 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, |
| 175 |
/* 0x5400 */ |
| 176 |
{ 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0000 }, { 20, 0x0010 }, |
| 177 |
}; |
| 178 |
static const Summary16 hkscs2001_uni2indx_page57[30] = { |
| 179 |
/* 0x5700 */ |
| 180 |
{ 21, 0x0000 }, { 21, 0x0000 }, { 21, 0x0000 }, { 21, 0x2000 }, |
| 181 |
{ 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, |
| 182 |
{ 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, |
| 183 |
{ 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, |
| 184 |
/* 0x5800 */ |
| 185 |
{ 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, |
| 186 |
{ 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, { 22, 0x0000 }, |
| 187 |
{ 22, 0x0000 }, { 22, 0x0004 }, { 23, 0x0000 }, { 23, 0x0000 }, |
| 188 |
{ 23, 0x0000 }, { 23, 0x0001 }, |
| 189 |
}; |
| 190 |
static const Summary16 hkscs2001_uni2indx_page5a[93] = { |
| 191 |
/* 0x5a00 */ |
| 192 |
{ 24, 0x0000 }, { 24, 0x0400 }, { 25, 0x0000 }, { 25, 0x0000 }, |
| 193 |
{ 25, 0x0000 }, { 25, 0x0000 }, { 25, 0x0000 }, { 25, 0x0000 }, |
| 194 |
{ 25, 0x0000 }, { 25, 0x0000 }, { 25, 0x0000 }, { 25, 0x0000 }, |
| 195 |
{ 25, 0x0000 }, { 25, 0x0000 }, { 25, 0x0000 }, { 25, 0x0000 }, |
| 196 |
/* 0x5b00 */ |
| 197 |
{ 25, 0x0000 }, { 25, 0x0020 }, { 26, 0x0000 }, { 26, 0x0000 }, |
| 198 |
{ 26, 0x0000 }, { 26, 0x0000 }, { 26, 0x0000 }, { 26, 0x0000 }, |
| 199 |
{ 26, 0x0000 }, { 26, 0x0040 }, { 27, 0x0000 }, { 27, 0x0000 }, |
| 200 |
{ 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, |
| 201 |
/* 0x5c00 */ |
| 202 |
{ 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, |
| 203 |
{ 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, |
| 204 |
{ 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, |
| 205 |
{ 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0000 }, { 27, 0x0020 }, |
| 206 |
/* 0x5d00 */ |
| 207 |
{ 28, 0x0000 }, { 28, 0x0000 }, { 28, 0x0000 }, { 28, 0x0000 }, |
| 208 |
{ 28, 0x0000 }, { 28, 0x0000 }, { 28, 0x0000 }, { 28, 0x0800 }, |
| 209 |
{ 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, |
| 210 |
{ 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, |
| 211 |
/* 0x5e00 */ |
| 212 |
{ 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, |
| 213 |
{ 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, { 29, 0x0000 }, |
| 214 |
{ 29, 0x0000 }, { 29, 0x0204 }, { 31, 0x0000 }, { 31, 0x0000 }, |
| 215 |
{ 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, |
| 216 |
/* 0x5f00 */ |
| 217 |
{ 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, |
| 218 |
{ 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, |
| 219 |
{ 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, { 31, 0x0000 }, |
| 220 |
{ 31, 0x0004 }, |
| 221 |
}; |
| 222 |
static const Summary16 hkscs2001_uni2indx_page61[3] = { |
| 223 |
/* 0x6100 */ |
| 224 |
{ 32, 0x0000 }, { 32, 0x0000 }, { 32, 0x0004 }, |
| 225 |
}; |
| 226 |
static const Summary16 hkscs2001_uni2indx_page65[9] = { |
| 227 |
/* 0x6500 */ |
| 228 |
{ 33, 0x0000 }, { 33, 0x0000 }, { 33, 0x0000 }, { 33, 0x0000 }, |
| 229 |
{ 33, 0x0000 }, { 33, 0x0000 }, { 33, 0x0000 }, { 33, 0x0000 }, |
| 230 |
{ 33, 0x0800 }, |
| 231 |
}; |
| 232 |
static const Summary16 hkscs2001_uni2indx_page67[7] = { |
| 233 |
/* 0x6700 */ |
| 234 |
{ 34, 0x0000 }, { 34, 0x0200 }, { 35, 0x0000 }, { 35, 0x0000 }, |
| 235 |
{ 35, 0x0000 }, { 35, 0x0000 }, { 35, 0x0800 }, |
| 236 |
}; |
| 237 |
static const Summary16 hkscs2001_uni2indx_page69[23] = { |
| 238 |
/* 0x6900 */ |
| 239 |
{ 36, 0x0000 }, { 36, 0x0200 }, { 37, 0x0000 }, { 37, 0x0000 }, |
| 240 |
{ 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, |
| 241 |
{ 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, |
| 242 |
{ 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, |
| 243 |
/* 0x6a00 */ |
| 244 |
{ 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, { 37, 0x0000 }, |
| 245 |
{ 37, 0x0008 }, { 38, 0x0000 }, { 38, 0x0008 }, |
| 246 |
}; |
| 247 |
static const Summary16 hkscs2001_uni2indx_page6c[32] = { |
| 248 |
/* 0x6c00 */ |
| 249 |
{ 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, |
| 250 |
{ 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, |
| 251 |
{ 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, |
| 252 |
{ 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x0000 }, { 39, 0x8000 }, |
| 253 |
/* 0x6d00 */ |
| 254 |
{ 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, |
| 255 |
{ 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, |
| 256 |
{ 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, |
| 257 |
{ 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x0000 }, { 40, 0x4000 }, |
| 258 |
}; |
| 259 |
static const Summary16 hkscs2001_uni2indx_page70[76] = { |
| 260 |
/* 0x7000 */ |
| 261 |
{ 41, 0x0000 }, { 41, 0x0000 }, { 41, 0x0000 }, { 41, 0x0000 }, |
| 262 |
{ 41, 0x2000 }, { 42, 0x0000 }, { 42, 0x0000 }, { 42, 0x0080 }, |
| 263 |
{ 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, |
| 264 |
{ 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, |
| 265 |
/* 0x7100 */ |
| 266 |
{ 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, |
| 267 |
{ 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, { 43, 0x0000 }, |
| 268 |
{ 43, 0x0000 }, { 43, 0x0002 }, { 44, 0x0000 }, { 44, 0x0000 }, |
| 269 |
{ 44, 0x0000 }, { 44, 0x0000 }, { 44, 0x0000 }, { 44, 0x0000 }, |
| 270 |
/* 0x7200 */ |
| 271 |
{ 44, 0x0001 }, { 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, |
| 272 |
{ 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, |
| 273 |
{ 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, |
| 274 |
{ 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, |
| 275 |
/* 0x7300 */ |
| 276 |
{ 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, |
| 277 |
{ 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, { 45, 0x0000 }, |
| 278 |
{ 45, 0x1000 }, { 46, 0x0000 }, { 46, 0x0000 }, { 46, 0x0400 }, |
| 279 |
{ 47, 0x0000 }, { 47, 0x0000 }, { 47, 0x0000 }, { 47, 0x0000 }, |
| 280 |
/* 0x7400 */ |
| 281 |
{ 47, 0x0004 }, { 48, 0x0000 }, { 48, 0x0000 }, { 48, 0x0000 }, |
| 282 |
{ 48, 0x0000 }, { 48, 0x0000 }, { 48, 0x0000 }, { 48, 0x0000 }, |
| 283 |
{ 48, 0x0000 }, { 48, 0x0000 }, { 48, 0x0000 }, { 48, 0x0200 }, |
| 284 |
}; |
| 285 |
static const Summary16 hkscs2001_uni2indx_page76[47] = { |
| 286 |
/* 0x7600 */ |
| 287 |
{ 49, 0x0000 }, { 49, 0x0000 }, { 49, 0x0000 }, { 49, 0x0000 }, |
| 288 |
{ 49, 0x0000 }, { 49, 0x0000 }, { 49, 0x0000 }, { 49, 0x0000 }, |
| 289 |
{ 49, 0x0000 }, { 49, 0x0000 }, { 49, 0x0000 }, { 49, 0x0000 }, |
| 290 |
{ 49, 0x0000 }, { 49, 0x0200 }, { 50, 0x0000 }, { 50, 0x0000 }, |
| 291 |
/* 0x7700 */ |
| 292 |
{ 50, 0x0000 }, { 50, 0x0000 }, { 50, 0x0000 }, { 50, 0x0000 }, |
| 293 |
{ 50, 0x0000 }, { 50, 0x0000 }, { 50, 0x0000 }, { 50, 0x0000 }, |
| 294 |
{ 50, 0x0000 }, { 50, 0x0000 }, { 50, 0x0000 }, { 50, 0x0000 }, |
| 295 |
{ 50, 0x0000 }, { 50, 0x2000 }, { 51, 0x0000 }, { 51, 0x0000 }, |
| 296 |
/* 0x7800 */ |
| 297 |
{ 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0000 }, |
| 298 |
{ 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0000 }, |
| 299 |
{ 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0000 }, |
| 300 |
{ 51, 0x0000 }, { 51, 0x0000 }, { 51, 0x0010 }, |
| 301 |
}; |
| 302 |
static const Summary16 hkscs2001_uni2indx_page7a[71] = { |
| 303 |
/* 0x7a00 */ |
| 304 |
{ 52, 0x0000 }, { 52, 0x0000 }, { 52, 0x0400 }, { 53, 0x0000 }, |
| 305 |
{ 53, 0x0000 }, { 53, 0x0000 }, { 53, 0x0000 }, { 53, 0x0000 }, |
| 306 |
{ 53, 0x0000 }, { 53, 0x0008 }, { 54, 0x0000 }, { 54, 0x0000 }, |
| 307 |
{ 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, |
| 308 |
/* 0x7b00 */ |
| 309 |
{ 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, |
| 310 |
{ 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, |
| 311 |
{ 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x0000 }, |
| 312 |
{ 54, 0x0000 }, { 54, 0x0000 }, { 54, 0x1000 }, { 55, 0x0000 }, |
| 313 |
/* 0x7c00 */ |
| 314 |
{ 55, 0x0000 }, { 55, 0x0000 }, { 55, 0x0000 }, { 55, 0x0000 }, |
| 315 |
{ 55, 0x0000 }, { 55, 0x0000 }, { 55, 0x0000 }, { 55, 0x0000 }, |
| 316 |
{ 55, 0x0000 }, { 55, 0x0000 }, { 55, 0x0000 }, { 55, 0x0000 }, |
| 317 |
{ 55, 0x0008 }, { 56, 0x0000 }, { 56, 0x0000 }, { 56, 0x0000 }, |
| 318 |
/* 0x7d00 */ |
| 319 |
{ 56, 0x0000 }, { 56, 0x0000 }, { 56, 0x0000 }, { 56, 0x0000 }, |
| 320 |
{ 56, 0x0000 }, { 56, 0x0000 }, { 56, 0x0000 }, { 56, 0x0000 }, |
| 321 |
{ 56, 0x0800 }, { 57, 0x0000 }, { 57, 0x0000 }, { 57, 0x0000 }, |
| 322 |
{ 57, 0x0000 }, { 57, 0x0000 }, { 57, 0x0000 }, { 57, 0x0000 }, |
| 323 |
/* 0x7e00 */ |
| 324 |
{ 57, 0x0000 }, { 57, 0x0000 }, { 57, 0x0000 }, { 57, 0x0000 }, |
| 325 |
{ 57, 0x0000 }, { 57, 0x0800 }, { 58, 0x1000 }, |
| 326 |
}; |
| 327 |
static const Summary16 hkscs2001_uni2indx_page82[16] = { |
| 328 |
/* 0x8200 */ |
| 329 |
{ 59, 0x0000 }, { 59, 0x0000 }, { 59, 0x0000 }, { 59, 0x0000 }, |
| 330 |
{ 59, 0x0000 }, { 59, 0x0000 }, { 59, 0x0000 }, { 59, 0x0000 }, |
| 331 |
{ 59, 0x0000 }, { 59, 0x0000 }, { 59, 0x0000 }, { 59, 0x8000 }, |
| 332 |
{ 60, 0x0000 }, { 60, 0x0000 }, { 60, 0x0000 }, { 60, 0x0100 }, |
| 333 |
}; |
| 334 |
static const Summary16 hkscs2001_uni2indx_page85[17] = { |
| 335 |
/* 0x8500 */ |
| 336 |
{ 61, 0x0000 }, { 61, 0x0000 }, { 61, 0x0000 }, { 61, 0x0000 }, |
| 337 |
{ 61, 0x0000 }, { 61, 0x8000 }, { 62, 0x0000 }, { 62, 0x0000 }, |
| 338 |
{ 62, 0x0000 }, { 62, 0x0080 }, { 63, 0x0000 }, { 63, 0x0000 }, |
| 339 |
{ 63, 0x0000 }, { 63, 0x0040 }, { 64, 0x0000 }, { 64, 0x0000 }, |
| 340 |
/* 0x8600 */ |
| 341 |
{ 64, 0x8000 }, |
| 342 |
}; |
| 343 |
static const Summary16 hkscs2001_uni2indx_page88[10] = { |
| 344 |
/* 0x8800 */ |
| 345 |
{ 65, 0x0000 }, { 65, 0x0000 }, { 65, 0x0000 }, { 65, 0x0000 }, |
| 346 |
{ 65, 0x0000 }, { 65, 0x0000 }, { 65, 0x0000 }, { 65, 0x0000 }, |
| 347 |
{ 65, 0x8000 }, { 66, 0x0001 }, |
| 348 |
}; |
| 349 |
static const Summary16 hkscs2001_uni2indx_page8b[9] = { |
| 350 |
/* 0x8b00 */ |
| 351 |
{ 67, 0x0000 }, { 67, 0x0000 }, { 67, 0x0000 }, { 67, 0x0000 }, |
| 352 |
{ 67, 0x0000 }, { 67, 0x0000 }, { 67, 0x0000 }, { 67, 0x0000 }, |
| 353 |
{ 67, 0x0008 }, |
| 354 |
}; |
| 355 |
static const Summary16 hkscs2001_uni2indx_page8e[29] = { |
| 356 |
/* 0x8e00 */ |
| 357 |
{ 68, 0x0000 }, { 68, 0x0000 }, { 68, 0x0000 }, { 68, 0x0000 }, |
| 358 |
{ 68, 0x0000 }, { 68, 0x0000 }, { 68, 0x0000 }, { 68, 0x0000 }, |
| 359 |
{ 68, 0x0000 }, { 68, 0x0000 }, { 68, 0x0000 }, { 68, 0x0200 }, |
| 360 |
{ 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0000 }, |
| 361 |
/* 0x8f00 */ |
| 362 |
{ 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0000 }, |
| 363 |
{ 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0000 }, |
| 364 |
{ 69, 0x0000 }, { 69, 0x0000 }, { 69, 0x0080 }, { 70, 0x0000 }, |
| 365 |
{ 70, 0x8000 }, |
| 366 |
}; |
| 367 |
static const Summary16 hkscs2001_uni2indx_page91[48] = { |
| 368 |
/* 0x9100 */ |
| 369 |
{ 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, |
| 370 |
{ 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, |
| 371 |
{ 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, |
| 372 |
{ 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0000 }, { 71, 0x0040 }, |
| 373 |
/* 0x9200 */ |
| 374 |
{ 72, 0x0000 }, { 72, 0x0000 }, { 72, 0x0002 }, { 73, 0x0000 }, |
| 375 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, |
| 376 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, |
| 377 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, |
| 378 |
/* 0x9300 */ |
| 379 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, |
| 380 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, |
| 381 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, |
| 382 |
{ 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0000 }, { 73, 0x0010 }, |
| 383 |
}; |
| 384 |
static const Summary16 hkscs2001_uni2indx_page97[47] = { |
| 385 |
/* 0x9700 */ |
| 386 |
{ 74, 0x0000 }, { 74, 0x0000 }, { 74, 0x0000 }, { 74, 0x0000 }, |
| 387 |
{ 74, 0x0000 }, { 74, 0x0020 }, { 75, 0x0000 }, { 75, 0x0000 }, |
| 388 |
{ 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0000 }, |
| 389 |
{ 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0000 }, |
| 390 |
/* 0x9800 */ |
| 391 |
{ 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0000 }, |
| 392 |
{ 75, 0x0000 }, { 75, 0x0000 }, { 75, 0x0100 }, { 76, 0x0000 }, |
| 393 |
{ 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, |
| 394 |
{ 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, |
| 395 |
/* 0x9900 */ |
| 396 |
{ 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, |
| 397 |
{ 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, |
| 398 |
{ 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0000 }, |
| 399 |
{ 76, 0x0000 }, { 76, 0x0000 }, { 76, 0x0001 }, |
| 400 |
}; |
| 401 |
static const Summary16 hkscs2001_uni2indx_page9f[11] = { |
| 402 |
/* 0x9f00 */ |
| 403 |
{ 77, 0x0000 }, { 77, 0x0000 }, { 77, 0x0000 }, { 77, 0x0000 }, |
| 404 |
{ 77, 0x0000 }, { 77, 0x0000 }, { 77, 0x0000 }, { 77, 0x0000 }, |
| 405 |
{ 77, 0x0000 }, { 77, 0x0000 }, { 77, 0xffc0 }, |
| 406 |
}; |
| 407 |
static const Summary16 hkscs2001_uni2indx_page214[4] = { |
| 408 |
/* 0x21400 */ |
| 409 |
{ 87, 0x0000 }, { 87, 0x0000 }, { 87, 0x0000 }, { 87, 0x8000 }, |
| 410 |
}; |
| 411 |
static const Summary16 hkscs2001_uni2indx_page219[9] = { |
| 412 |
/* 0x21900 */ |
| 413 |
{ 88, 0x0000 }, { 88, 0x0000 }, { 88, 0x0000 }, { 88, 0x0000 }, |
| 414 |
{ 88, 0x0000 }, { 88, 0x0000 }, { 88, 0x0000 }, { 88, 0x0000 }, |
| 415 |
{ 88, 0x0001 }, |
| 416 |
}; |
| 417 |
static const Summary16 hkscs2001_uni2indx_page21d[12] = { |
| 418 |
/* 0x21d00 */ |
| 419 |
{ 89, 0x0000 }, { 89, 0x0000 }, { 89, 0x0000 }, { 89, 0x0000 }, |
| 420 |
{ 89, 0x0000 }, { 89, 0x0000 }, { 89, 0x0000 }, { 89, 0x0000 }, |
| 421 |
{ 89, 0x0000 }, { 89, 0x0000 }, { 89, 0x0000 }, { 89, 0x0040 }, |
| 422 |
}; |
| 423 |
static const Summary16 hkscs2001_uni2indx_page220[8] = { |
| 424 |
/* 0x22000 */ |
| 425 |
{ 90, 0x0000 }, { 90, 0x0000 }, { 90, 0x0000 }, { 90, 0x0000 }, |
| 426 |
{ 90, 0x0000 }, { 90, 0x0000 }, { 90, 0x0000 }, { 90, 0x4000 }, |
| 427 |
}; |
| 428 |
static const Summary16 hkscs2001_uni2indx_page227[2] = { |
| 429 |
/* 0x22700 */ |
| 430 |
{ 91, 0x0000 }, { 91, 0x0004 }, |
| 431 |
}; |
| 432 |
static const Summary16 hkscs2001_uni2indx_page232[32] = { |
| 433 |
/* 0x23200 */ |
| 434 |
{ 92, 0x0000 }, { 92, 0x0000 }, { 92, 0x0000 }, { 92, 0x0000 }, |
| 435 |
{ 92, 0x0000 }, { 92, 0x0000 }, { 92, 0x0000 }, { 92, 0x0000 }, |
| 436 |
{ 92, 0x0002 }, { 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, |
| 437 |
{ 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, |
| 438 |
/* 0x23300 */ |
| 439 |
{ 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, |
| 440 |
{ 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, |
| 441 |
{ 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, |
| 442 |
{ 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0000 }, { 93, 0x0200 }, |
| 443 |
}; |
| 444 |
static const Summary16 hkscs2001_uni2indx_page23c[7] = { |
| 445 |
/* 0x23c00 */ |
| 446 |
{ 94, 0x0000 }, { 94, 0x0000 }, { 94, 0x0000 }, { 94, 0x0000 }, |
| 447 |
{ 94, 0x0000 }, { 94, 0x0000 }, { 94, 0x0008 }, |
| 448 |
}; |
| 449 |
static const Summary16 hkscs2001_uni2indx_page241[5] = { |
| 450 |
/* 0x24100 */ |
| 451 |
{ 95, 0x0000 }, { 95, 0x0000 }, { 95, 0x0000 }, { 95, 0x0000 }, |
| 452 |
{ 95, 0x4000 }, |
| 453 |
}; |
| 454 |
static const Summary16 hkscs2001_uni2indx_page245[1] = { |
| 455 |
/* 0x24500 */ |
| 456 |
{ 96, 0x0020 }, |
| 457 |
}; |
| 458 |
static const Summary16 hkscs2001_uni2indx_page249[18] = { |
| 459 |
/* 0x24900 */ |
| 460 |
{ 97, 0x0000 }, { 97, 0x0000 }, { 97, 0x0000 }, { 97, 0x0000 }, |
| 461 |
{ 97, 0x0000 }, { 97, 0x0000 }, { 97, 0x0000 }, { 97, 0x0800 }, |
| 462 |
{ 98, 0x0000 }, { 98, 0x0000 }, { 98, 0x0000 }, { 98, 0x0000 }, |
| 463 |
{ 98, 0x0000 }, { 98, 0x0000 }, { 98, 0x0000 }, { 98, 0x0000 }, |
| 464 |
/* 0x24a00 */ |
| 465 |
{ 98, 0x0000 }, { 98, 0x0008 }, |
| 466 |
}; |
| 467 |
static const Summary16 hkscs2001_uni2indx_page251[13] = { |
| 468 |
/* 0x25100 */ |
| 469 |
{ 99, 0x0000 }, { 99, 0x0000 }, { 99, 0x0000 }, { 99, 0x0000 }, |
| 470 |
{ 99, 0x0000 }, { 99, 0x0000 }, { 99, 0x0000 }, { 99, 0x0000 }, |
| 471 |
{ 99, 0x0000 }, { 99, 0x0000 }, { 99, 0x0000 }, { 99, 0x0000 }, |
| 472 |
{ 99, 0x2000 }, |
| 473 |
}; |
| 474 |
static const Summary16 hkscs2001_uni2indx_page256[10] = { |
| 475 |
/* 0x25600 */ |
| 476 |
{ 100, 0x0000 }, { 100, 0x0000 }, { 100, 0x0000 }, { 100, 0x0000 }, |
| 477 |
{ 100, 0x0000 }, { 100, 0x0000 }, { 100, 0x0000 }, { 100, 0x0000 }, |
| 478 |
{ 100, 0x0000 }, { 100, 0x0020 }, |
| 479 |
}; |
| 480 |
static const Summary16 hkscs2001_uni2indx_page25c[20] = { |
| 481 |
/* 0x25c00 */ |
| 482 |
{ 101, 0x0000 }, { 101, 0x0000 }, { 101, 0x0000 }, { 101, 0x0000 }, |
| 483 |
{ 101, 0x0000 }, { 101, 0x0000 }, { 101, 0x0000 }, { 101, 0x0000 }, |
| 484 |
{ 101, 0x0000 }, { 101, 0x0000 }, { 101, 0x0010 }, { 102, 0x0000 }, |
| 485 |
{ 102, 0x0000 }, { 102, 0x0000 }, { 102, 0x0000 }, { 102, 0x0000 }, |
| 486 |
/* 0x25d00 */ |
| 487 |
{ 102, 0x0000 }, { 102, 0x0000 }, { 102, 0x0000 }, { 102, 0x0001 }, |
| 488 |
}; |
| 489 |
static const Summary16 hkscs2001_uni2indx_page26b[2] = { |
| 490 |
/* 0x26b00 */ |
| 491 |
{ 103, 0x0000 }, { 103, 0x0020 }, |
| 492 |
}; |
| 493 |
static const Summary16 hkscs2001_uni2indx_page26d[8] = { |
| 494 |
/* 0x26d00 */ |
| 495 |
{ 104, 0x0000 }, { 104, 0x0000 }, { 104, 0x0000 }, { 104, 0x0000 }, |
| 496 |
{ 104, 0x0000 }, { 104, 0x0000 }, { 104, 0x0000 }, { 104, 0x0010 }, |
| 497 |
}; |
| 498 |
static const Summary16 hkscs2001_uni2indx_page26f[12] = { |
| 499 |
/* 0x26f00 */ |
| 500 |
{ 105, 0x0000 }, { 105, 0x0000 }, { 105, 0x0000 }, { 105, 0x0000 }, |
| 501 |
{ 105, 0x0000 }, { 105, 0x0000 }, { 105, 0x0000 }, { 105, 0x0000 }, |
| 502 |
{ 105, 0x0000 }, { 105, 0x0000 }, { 105, 0x0000 }, { 105, 0x4000 }, |
| 503 |
}; |
| 504 |
static const Summary16 hkscs2001_uni2indx_page271[1] = { |
| 505 |
/* 0x27100 */ |
| 506 |
{ 106, 0x2000 }, |
| 507 |
}; |
| 508 |
static const Summary16 hkscs2001_uni2indx_page287[1] = { |
| 509 |
/* 0x28700 */ |
| 510 |
{ 107, 0x8000 }, |
| 511 |
}; |
| 512 |
static const Summary16 hkscs2001_uni2indx_page289[31] = { |
| 513 |
/* 0x28900 */ |
| 514 |
{ 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0000 }, |
| 515 |
{ 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0000 }, |
| 516 |
{ 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0000 }, |
| 517 |
{ 108, 0x0000 }, { 108, 0x0000 }, { 108, 0x0008 }, { 109, 0x0000 }, |
| 518 |
/* 0x28a00 */ |
| 519 |
{ 109, 0x0000 }, { 109, 0x0000 }, { 109, 0x0000 }, { 109, 0x0004 }, |
| 520 |
{ 110, 0x0000 }, { 110, 0x0000 }, { 110, 0x0000 }, { 110, 0x0000 }, |
| 521 |
{ 110, 0x0000 }, { 110, 0x0000 }, { 110, 0x0000 }, { 110, 0x0000 }, |
| 522 |
{ 110, 0x0000 }, { 110, 0x0000 }, { 110, 0x0400 }, |
| 523 |
}; |
| 524 |
static const Summary16 hkscs2001_uni2indx_page28d[12] = { |
| 525 |
/* 0x28d00 */ |
| 526 |
{ 111, 0x0000 }, { 111, 0x0000 }, { 111, 0x0000 }, { 111, 0x0000 }, |
| 527 |
{ 111, 0x0000 }, { 111, 0x0000 }, { 111, 0x0000 }, { 111, 0x0000 }, |
| 528 |
{ 111, 0x0000 }, { 111, 0x0000 }, { 111, 0x0000 }, { 111, 0x0200 }, |
| 529 |
}; |
| 530 |
static const Summary16 hkscs2001_uni2indx_page299[5] = { |
| 531 |
/* 0x29900 */ |
| 532 |
{ 112, 0x0000 }, { 112, 0x0000 }, { 112, 0x0000 }, { 112, 0x0000 }, |
| 533 |
{ 112, 0x0080 }, |
| 534 |
}; |
| 535 |
static const Summary16 hkscs2001_uni2indx_page29c[8] = { |
| 536 |
/* 0x29c00 */ |
| 537 |
{ 113, 0x0000 }, { 113, 0x0000 }, { 113, 0x0000 }, { 113, 0x0000 }, |
| 538 |
{ 113, 0x0000 }, { 113, 0x0000 }, { 113, 0x0000 }, { 113, 0x0008 }, |
| 539 |
}; |
| 540 |
static const Summary16 hkscs2001_uni2indx_page2a1[28] = { |
| 541 |
/* 0x2a100 */ |
| 542 |
{ 114, 0x0080 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, |
| 543 |
{ 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, |
| 544 |
{ 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, |
| 545 |
{ 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, |
| 546 |
/* 0x2a200 */ |
| 547 |
{ 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, |
| 548 |
{ 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, |
| 549 |
{ 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0000 }, { 115, 0x0400 }, |
| 550 |
}; |
| 551 |
|
| 552 |
static int |
| 553 |
hkscs2001_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, size_t n) |
| 554 |
{ |
| 555 |
if (n >= 2) { |
| 556 |
const Summary16 *summary = NULL; |
| 557 |
if (wc < 0x9f00) { |
| 558 |
if (wc < 0x6900) { |
| 559 |
if (wc >= 0x3500 && wc < 0x3560) |
| 560 |
summary = &hkscs2001_uni2indx_page35[(wc>>4)-0x350]; |
| 561 |
else if (wc >= 0x3c00 && wc < 0x3ee0) |
| 562 |
summary = &hkscs2001_uni2indx_page3c[(wc>>4)-0x3c0]; |
| 563 |
else if (wc >= 0x4000 && wc < 0x4080) |
| 564 |
summary = &hkscs2001_uni2indx_page40[(wc>>4)-0x400]; |
| 565 |
else if (wc >= 0x4200 && wc < 0x42b0) |
| 566 |
summary = &hkscs2001_uni2indx_page42[(wc>>4)-0x420]; |
| 567 |
else if (wc >= 0x4b00 && wc < 0x4c90) |
| 568 |
summary = &hkscs2001_uni2indx_page4b[(wc>>4)-0x4b0]; |
| 569 |
else if (wc >= 0x4e00 && wc < 0x51b0) |
| 570 |
summary = &hkscs2001_uni2indx_page4e[(wc>>4)-0x4e0]; |
| 571 |
else if (wc >= 0x5300 && wc < 0x5440) |
| 572 |
summary = &hkscs2001_uni2indx_page53[(wc>>4)-0x530]; |
| 573 |
else if (wc >= 0x5700 && wc < 0x58e0) |
| 574 |
summary = &hkscs2001_uni2indx_page57[(wc>>4)-0x570]; |
| 575 |
else if (wc >= 0x5a00 && wc < 0x5fd0) |
| 576 |
summary = &hkscs2001_uni2indx_page5a[(wc>>4)-0x5a0]; |
| 577 |
else if (wc >= 0x6100 && wc < 0x6130) |
| 578 |
summary = &hkscs2001_uni2indx_page61[(wc>>4)-0x610]; |
| 579 |
else if (wc >= 0x6500 && wc < 0x6590) |
| 580 |
summary = &hkscs2001_uni2indx_page65[(wc>>4)-0x650]; |
| 581 |
else if (wc >= 0x6700 && wc < 0x6770) |
| 582 |
summary = &hkscs2001_uni2indx_page67[(wc>>4)-0x670]; |
| 583 |
} else { |
| 584 |
if (wc >= 0x6900 && wc < 0x6a70) |
| 585 |
summary = &hkscs2001_uni2indx_page69[(wc>>4)-0x690]; |
| 586 |
else if (wc >= 0x6c00 && wc < 0x6e00) |
| 587 |
summary = &hkscs2001_uni2indx_page6c[(wc>>4)-0x6c0]; |
| 588 |
else if (wc >= 0x7000 && wc < 0x74c0) |
| 589 |
summary = &hkscs2001_uni2indx_page70[(wc>>4)-0x700]; |
| 590 |
else if (wc >= 0x7600 && wc < 0x78f0) |
| 591 |
summary = &hkscs2001_uni2indx_page76[(wc>>4)-0x760]; |
| 592 |
else if (wc >= 0x7a00 && wc < 0x7e70) |
| 593 |
summary = &hkscs2001_uni2indx_page7a[(wc>>4)-0x7a0]; |
| 594 |
else if (wc >= 0x8200 && wc < 0x8300) |
| 595 |
summary = &hkscs2001_uni2indx_page82[(wc>>4)-0x820]; |
| 596 |
else if (wc >= 0x8500 && wc < 0x8610) |
| 597 |
summary = &hkscs2001_uni2indx_page85[(wc>>4)-0x850]; |
| 598 |
else if (wc >= 0x8800 && wc < 0x88a0) |
| 599 |
summary = &hkscs2001_uni2indx_page88[(wc>>4)-0x880]; |
| 600 |
else if (wc >= 0x8b00 && wc < 0x8b90) |
| 601 |
summary = &hkscs2001_uni2indx_page8b[(wc>>4)-0x8b0]; |
| 602 |
else if (wc >= 0x8e00 && wc < 0x8fd0) |
| 603 |
summary = &hkscs2001_uni2indx_page8e[(wc>>4)-0x8e0]; |
| 604 |
else if (wc >= 0x9100 && wc < 0x9400) |
| 605 |
summary = &hkscs2001_uni2indx_page91[(wc>>4)-0x910]; |
| 606 |
else if (wc >= 0x9700 && wc < 0x99f0) |
| 607 |
summary = &hkscs2001_uni2indx_page97[(wc>>4)-0x970]; |
| 608 |
} |
| 609 |
} else { |
| 610 |
if (wc < 0x25600) { |
| 611 |
if (wc >= 0x9f00 && wc < 0x9fb0) |
| 612 |
summary = &hkscs2001_uni2indx_page9f[(wc>>4)-0x9f0]; |
| 613 |
else if (wc >= 0x21400 && wc < 0x21440) |
| 614 |
summary = &hkscs2001_uni2indx_page214[(wc>>4)-0x2140]; |
| 615 |
else if (wc >= 0x21900 && wc < 0x21990) |
| 616 |
summary = &hkscs2001_uni2indx_page219[(wc>>4)-0x2190]; |
| 617 |
else if (wc >= 0x21d00 && wc < 0x21dc0) |
| 618 |
summary = &hkscs2001_uni2indx_page21d[(wc>>4)-0x21d0]; |
| 619 |
else if (wc >= 0x22000 && wc < 0x22080) |
| 620 |
summary = &hkscs2001_uni2indx_page220[(wc>>4)-0x2200]; |
| 621 |
else if (wc >= 0x22700 && wc < 0x22720) |
| 622 |
summary = &hkscs2001_uni2indx_page227[(wc>>4)-0x2270]; |
| 623 |
else if (wc >= 0x23200 && wc < 0x23400) |
| 624 |
summary = &hkscs2001_uni2indx_page232[(wc>>4)-0x2320]; |
| 625 |
else if (wc >= 0x23c00 && wc < 0x23c70) |
| 626 |
summary = &hkscs2001_uni2indx_page23c[(wc>>4)-0x23c0]; |
| 627 |
else if (wc >= 0x24100 && wc < 0x24150) |
| 628 |
summary = &hkscs2001_uni2indx_page241[(wc>>4)-0x2410]; |
| 629 |
else if (wc >= 0x24500 && wc < 0x24510) |
| 630 |
summary = &hkscs2001_uni2indx_page245[(wc>>4)-0x2450]; |
| 631 |
else if (wc >= 0x24900 && wc < 0x24a20) |
| 632 |
summary = &hkscs2001_uni2indx_page249[(wc>>4)-0x2490]; |
| 633 |
else if (wc >= 0x25100 && wc < 0x251d0) |
| 634 |
summary = &hkscs2001_uni2indx_page251[(wc>>4)-0x2510]; |
| 635 |
} else { |
| 636 |
if (wc >= 0x25600 && wc < 0x256a0) |
| 637 |
summary = &hkscs2001_uni2indx_page256[(wc>>4)-0x2560]; |
| 638 |
else if (wc >= 0x25c00 && wc < 0x25d40) |
| 639 |
summary = &hkscs2001_uni2indx_page25c[(wc>>4)-0x25c0]; |
| 640 |
else if (wc >= 0x26b00 && wc < 0x26b20) |
| 641 |
summary = &hkscs2001_uni2indx_page26b[(wc>>4)-0x26b0]; |
| 642 |
else if (wc >= 0x26d00 && wc < 0x26d80) |
| 643 |
summary = &hkscs2001_uni2indx_page26d[(wc>>4)-0x26d0]; |
| 644 |
else if (wc >= 0x26f00 && wc < 0x26fc0) |
| 645 |
summary = &hkscs2001_uni2indx_page26f[(wc>>4)-0x26f0]; |
| 646 |
else if (wc >= 0x27100 && wc < 0x27110) |
| 647 |
summary = &hkscs2001_uni2indx_page271[(wc>>4)-0x2710]; |
| 648 |
else if (wc >= 0x28700 && wc < 0x28710) |
| 649 |
summary = &hkscs2001_uni2indx_page287[(wc>>4)-0x2870]; |
| 650 |
else if (wc >= 0x28900 && wc < 0x28af0) |
| 651 |
summary = &hkscs2001_uni2indx_page289[(wc>>4)-0x2890]; |
| 652 |
else if (wc >= 0x28d00 && wc < 0x28dc0) |
| 653 |
summary = &hkscs2001_uni2indx_page28d[(wc>>4)-0x28d0]; |
| 654 |
else if (wc >= 0x29900 && wc < 0x29950) |
| 655 |
summary = &hkscs2001_uni2indx_page299[(wc>>4)-0x2990]; |
| 656 |
else if (wc >= 0x29c00 && wc < 0x29c80) |
| 657 |
summary = &hkscs2001_uni2indx_page29c[(wc>>4)-0x29c0]; |
| 658 |
else if (wc >= 0x2a100 && wc < 0x2a2c0) |
| 659 |
summary = &hkscs2001_uni2indx_page2a1[(wc>>4)-0x2a10]; |
| 660 |
} |
| 661 |
} |
| 662 |
if (summary) { |
| 663 |
unsigned short used = summary->used; |
| 664 |
unsigned int i = wc & 0x0f; |
| 665 |
if (used & ((unsigned short) 1 << i)) { |
| 666 |
unsigned short c; |
| 667 |
/* Keep in 'used' only the bits 0..i-1. */ |
| 668 |
used &= ((unsigned short) 1 << i) - 1; |
| 669 |
/* Add 'summary->indx' and the number of bits set in 'used'. */ |
| 670 |
used = (used & 0x5555) + ((used & 0xaaaa) >> 1); |
| 671 |
used = (used & 0x3333) + ((used & 0xcccc) >> 2); |
| 672 |
used = (used & 0x0f0f) + ((used & 0xf0f0) >> 4); |
| 673 |
used = (used & 0x00ff) + (used >> 8); |
| 674 |
c = hkscs2001_2charset[summary->indx + used]; |
| 675 |
r[0] = (c >> 8); r[1] = (c & 0xff); |
| 676 |
return 2; |
| 677 |
} |
| 678 |
} |
| 679 |
return RET_ILUNI; |
| 680 |
} |
| 681 |
return RET_TOOSMALL; |
| 682 |
} |