1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
/*
* ja_JP.SJIS locale table for BSD4.4/rune
* version 1.0
* (C) Sin'ichiro MIYATANI / Phase One, Inc
* May 12, 1995
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Phase One, Inc.
* 4. The name of Phase One, Inc. may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
ENCODING "MSKanji"
/*
* ASCII byte code
*/
ALPHA 'A'-'Z' 'a'-'z'
CONTROL 0x00-0x1f 0x7f
DIGIT '0'-'9'
GRAPH 0x21-0x7e
LOWER 'a'-'z'
PUNCT 0x21-0x2f 0x3a-0x40 0x5b-0x60 0x7b-0x7e
SPACE 0x09-0x0d 0x20
UPPER 'A'-'Z'
XDIGIT 'a'-'f' 'A'-'F'
BLANK ' ' '\t'
PRINT 0x20-0x7e
/* SWIDTH1 0x20-0x7e */
MAPLOWER <'A'-'Z':'a'><'a'-'z':'a'>
MAPUPPER <'A'-'Z':'A'><'a'-'z':'A'>
TODIGIT <'0'-'9':0>
TODIGIT <'A'-'F':10><'a'-'f':10>
/*
* JIS X201
*/
PUNCT 0xa1-0xa5
SPACE 0xa0
BLANK 0xa0
PRINT 0xa0-0xdf
SPECIAL 0xa1-0xdf
PHONOGRAM 0xa6-0xdf
/* SWIDTH1 0xa0-0xdf*/
/*
* JIS X208/SJIS
*/
/* 100 */
PUNCT 0x8141-0x8151 0x8159-0x815a 0x815c-0x817e 0x8180-0x819e
SPACE 0x8140
PHONOGRAM 0x8152-0x8158 0x815b
/* 200 */
PUNCT 0x819f-0x81ac 0x81b8-0x81bf 0x81c8-0x81ce 0x81da-0x81e8
PUNCT 0x81f0-0x81f7 0x81fc
/* 300 */
DIGIT 0x824f-0x8258
XDIGIT 0x8260-0x8265 0x8281-0x8286
ALPHA 0x8260-0x8279 0x8281-0x829a
UPPER 0x8260-0x8279
LOWER 0x8281-0x829a
MAPLOWER <0x8260-0x8279:0x8281>
MAPLOWER <0x8281-0x829a:0x8281>
MAPUPPER <0x8260-0x8279:0x8260>
MAPUPPER <0x8281-0x829a:0x8260>
TODIGIT <0x824f-0x8258:0>
TODIGIT <0x8260-0x8265:10>
TODIGIT <0x8281-0x8286:10>
/* 400 */
PHONOGRAM 0x829f-0x82f1
/* 500 */
PHONOGRAM 0x8340-0x837e
PHONOGRAM 0x8380-0x8396
/* 600 */
UPPER 0x839f-0x83b6
LOWER 0x83bf-0x83d6
MAPLOWER <0x839f-0x83b6:0x83bf>
MAPLOWER <0x83bf-0x83d6:0x83bf>
MAPUPPER <0x839f-0x83b6:0x839f>
MAPUPPER <0x83bf-0x83d6:0x839f>
/* 700 */
UPPER 0x8440-0x8460
LOWER 0x8470-0x847e 0x8480-0x8491
MAPLOWER <0x8440-0x844e:0x8470><0x844f-0x8460:0x8480>
MAPLOWER <0x8470-0x847e:0x8470><0x8480-0x8491:0x8480>
MAPUPPER <0x8440-0x8460:0x8440>
MAPUPPER <0x8470-0x847e:0x8440><0x8480-0x8491:0x844f>
/* 800 */
SPECIAL 0x849f-0x84be
/*SWIDTH2 0x8140-0x817e 0x8180-0x819e */ /* 100 */
/*SWIDTH2 0x819f-0x81ac 0x81b8-0x81bf */ /* 200 */
/*SWIDTH2 0x81c8-0x81ce 0x81da-0x81e8 */
/*SWIDTH2 0x81f0-0x81f7 0x81fc */
/*SWIDTH2 0x824f-0x8258 0x8260-0x8279 */ /* 300 */
/*SWIDTH2 0x8281-0x829a */
/*SWIDTH2 0x829f-0x82f1 */ /* 400 */
/*SWIDTH2 0x8340-0x837e */ /* 500 */
/*SWIDTH2 0x8380-0x8396 */
/*SWIDTH2 0x839f-0x83b6 */ /* 600 */
/*SWIDTH2 0x83bf-0x83d6 */
/*SWIDTH2 0x8440-0x8460 */ /* 700 */
/*SWIDTH2 0x8470-0x847e 0x8480-0x8491 */
/*SWIDTH2 0x849f-0x84be */ /* 800 */
/* 1600- */
IDEOGRAM 0x889f-0x88fc /* 1600 */
IDEOGRAM 0x8940-0x897e 0x8980-0x899e /* 1700 */
IDEOGRAM 0x899f-0x89fc /* 1800 */
IDEOGRAM 0x8a40-0x8a7e 0x8a80-0x8a9e /* 1900 */
IDEOGRAM 0x8a9f-0x8afc /* 2000 */
IDEOGRAM 0x8b40-0x8b7e 0x8b80-0x8b9e /* 2100 */
IDEOGRAM 0x8b9f-0x8bfc /* 2200 */
IDEOGRAM 0x8c40-0x8c7e 0x8c80-0x8c9e /* 2300 */
IDEOGRAM 0x8c9f-0x8cfc /* 2400 */
IDEOGRAM 0x8d40-0x8d7e 0x8d80-0x8d9e /* 2500 */
IDEOGRAM 0x8d9f-0x8dfc /* 2600 */
IDEOGRAM 0x8e40-0x8e7e 0x8e80-0x8e9e /* 2700 */
IDEOGRAM 0x8e9f-0x8efc /* 2800 */
IDEOGRAM 0x8f40-0x8f7e 0x8f80-0x8f9e /* 2900 */
IDEOGRAM 0x8f9f-0x8ffc /* 3000 */
IDEOGRAM 0x9040-0x907e 0x9080-0x909e /* 3100 */
IDEOGRAM 0x909f-0x90fc /* 3200 */
IDEOGRAM 0x9140-0x917e 0x9180-0x919e /* 3300 */
IDEOGRAM 0x919f-0x91fc /* 3400 */
IDEOGRAM 0x9240-0x927e 0x9280-0x929e /* 3500 */
IDEOGRAM 0x929f-0x92fc /* 3600 */
IDEOGRAM 0x9340-0x937e 0x9380-0x939e /* 3700 */
IDEOGRAM 0x939f-0x93fc /* 3800 */
IDEOGRAM 0x9440-0x947e 0x9480-0x949e /* 3900 */
IDEOGRAM 0x949f-0x94fc /* 4000 */
IDEOGRAM 0x9540-0x957e 0x9580-0x959e /* 4100 */
IDEOGRAM 0x959f-0x95fc /* 4200 */
IDEOGRAM 0x9640-0x967e 0x9680-0x969e /* 4300 */
IDEOGRAM 0x969f-0x96fc /* 4400 */
IDEOGRAM 0x9740-0x977e 0x9780-0x979e /* 4500 */
IDEOGRAM 0x979f-0x97fc /* 4600 */
IDEOGRAM 0x9840-0x987e 0x9880-0x989e /* 4700 */
IDEOGRAM 0x989f-0x98fc /* 4800 */
IDEOGRAM 0x9940-0x997e 0x9980-0x999e /* 4900 */
IDEOGRAM 0x999f-0x99fc /* 5000 */
IDEOGRAM 0x9a40-0x9a7e 0x9a80-0x9a9e /* 5100 */
IDEOGRAM 0x9a9f-0x9afc /* 5200 */
IDEOGRAM 0x9b40-0x9b7e 0x9b80-0x9b9e /* 5300 */
IDEOGRAM 0x9b9f-0x9bfc /* 5400 */
IDEOGRAM 0x9c40-0x9c7e 0x9c80-0x9c9e /* 5500 */
IDEOGRAM 0x9c9f-0x9cfc /* 5600 */
IDEOGRAM 0x9d40-0x9d7e 0x9d80-0x9d9e /* 5700 */
IDEOGRAM 0x9d9f-0x9dfc /* 5800 */
IDEOGRAM 0x9e40-0x9e7e 0x9e80-0x9e9e /* 5900 */
IDEOGRAM 0x9e9f-0x9efc /* 6000 */
IDEOGRAM 0x9f40-0x9f7e 0x9f80-0x9f9e /* 6100 */
IDEOGRAM 0x9f9f-0x9ffc /* 6200 */
IDEOGRAM 0xe040-0xe07e 0xe080-0xe09e /* 6300 */
IDEOGRAM 0xe09f-0xe0fc /* 6400 */
IDEOGRAM 0xe140-0xe17e 0xe180-0xe19e /* 6500 */
IDEOGRAM 0xe19f-0xe1fc /* 6600 */
IDEOGRAM 0xe240-0xe27e 0xe280-0xe29e /* 6700 */
IDEOGRAM 0xe29f-0xe2fc /* 6800 */
IDEOGRAM 0xe340-0xe37e 0xe380-0xe39e /* 6900 */
IDEOGRAM 0xe39f-0xe3fc /* 7000 */
IDEOGRAM 0xe440-0xe47e 0xe480-0xe49e /* 7100 */
IDEOGRAM 0xe49f-0xe4fc /* 7200 */
IDEOGRAM 0xe540-0xe57e 0xe580-0xe59e /* 7300 */
IDEOGRAM 0xe59f-0xe5fc /* 7400 */
IDEOGRAM 0xe640-0xe67e 0xe680-0xe69e /* 7500 */
IDEOGRAM 0xe69f-0xe6fc /* 7600 */
IDEOGRAM 0xe740-0xe77e 0xe780-0xe79e /* 7700 */
IDEOGRAM 0xe79f-0xe7fc /* 7800 */
IDEOGRAM 0xe840-0xe87e 0xe880-0xe89e /* 7900 */
IDEOGRAM 0xe89f-0xe8fc /* 8000 */
IDEOGRAM 0xe940-0xe97e 0xe980-0xe99e /* 8100 */
IDEOGRAM 0xe99f-0xe9fc /* 8200 */
IDEOGRAM 0xea40-0xea7e 0xea80-0xea9e /* 8300 */
IDEOGRAM 0xea9f-0xeaa4 /* 8400 */
/*SWIDTH2 0x889f-0x88fc */ /* 1600 */
/*SWIDTH2 0x8940-0x897e 0x8980-0x899e */ /* 1700 */
/*SWIDTH2 0x899f-0x89fc */ /* 1800 */
/*SWIDTH2 0x8a40-0x8a7e 0x8a80-0x8a9e */ /* 1900 */
/*SWIDTH2 0x8a9f-0x8afc */ /* 2000 */
/*SWIDTH2 0x8b40-0x8b7e 0x8b80-0x8b9e */ /* 2100 */
/*SWIDTH2 0x8b9f-0x8bfc */ /* 2200 */
/*SWIDTH2 0x8c40-0x8c7e 0x8c80-0x8c9e */ /* 2300 */
/*SWIDTH2 0x8c9f-0x8cfc */ /* 2400 */
/*SWIDTH2 0x8d40-0x8d7e 0x8d80-0x8d9e */ /* 2500 */
/*SWIDTH2 0x8d9f-0x8dfc */ /* 2600 */
/*SWIDTH2 0x8e40-0x8e7e 0x8e80-0x8e9e */ /* 2700 */
/*SWIDTH2 0x8e9f-0x8efc */ /* 2800 */
/*SWIDTH2 0x8f40-0x8f7e 0x8f80-0x8f9e */ /* 2900 */
/*SWIDTH2 0x8f9f-0x8ffc */ /* 3000 */
/*SWIDTH2 0x9040-0x907e 0x9080-0x909e */ /* 3100 */
/*SWIDTH2 0x909f-0x90fc */ /* 3200 */
/*SWIDTH2 0x9140-0x917e 0x9180-0x919e */ /* 3300 */
/*SWIDTH2 0x919f-0x91fc */ /* 3400 */
/*SWIDTH2 0x9240-0x927e 0x9280-0x929e */ /* 3500 */
/*SWIDTH2 0x929f-0x92fc */ /* 3600 */
/*SWIDTH2 0x9340-0x937e 0x9380-0x939e */ /* 3700 */
/*SWIDTH2 0x939f-0x93fc */ /* 3800 */
/*SWIDTH2 0x9440-0x947e 0x9480-0x949e */ /* 3900 */
/*SWIDTH2 0x949f-0x94fc */ /* 4000 */
/*SWIDTH2 0x9540-0x957e 0x9580-0x959e */ /* 4100 */
/*SWIDTH2 0x959f-0x95fc */ /* 4200 */
/*SWIDTH2 0x9640-0x967e 0x9680-0x969e */ /* 4300 */
/*SWIDTH2 0x969f-0x96fc */ /* 4400 */
/*SWIDTH2 0x9740-0x977e 0x9780-0x979e */ /* 4500 */
/*SWIDTH2 0x979f-0x97fc */ /* 4600 */
/*SWIDTH2 0x9840-0x987e 0x9880-0x989e */ /* 4700 */
/*SWIDTH2 0x989f-0x98fc */ /* 4800 */
/*SWIDTH2 0x9940-0x997e 0x9980-0x999e */ /* 4900 */
/*SWIDTH2 0x999f-0x99fc */ /* 5000 */
/*SWIDTH2 0x9a40-0x9a7e 0x9a80-0x9a9e */ /* 5100 */
/*SWIDTH2 0x9a9f-0x9afc */ /* 5200 */
/*SWIDTH2 0x9b40-0x9b7e 0x9b80-0x9b9e */ /* 5300 */
/*SWIDTH2 0x9b9f-0x9bfc */ /* 5400 */
/*SWIDTH2 0x9c40-0x9c7e 0x9c80-0x9c9e */ /* 5500 */
/*SWIDTH2 0x9c9f-0x9cfc */ /* 5600 */
/*SWIDTH2 0x9d40-0x9d7e 0x9d80-0x9d9e */ /* 5700 */
/*SWIDTH2 0x9d9f-0x9dfc */ /* 5800 */
/*SWIDTH2 0x9e40-0x9e7e 0x9e80-0x9e9e */ /* 5900 */
/*SWIDTH2 0x9e9f-0x9efc */ /* 6000 */
/*SWIDTH2 0x9f40-0x9f7e 0x9f80-0x9f9e */ /* 6100 */
/*SWIDTH2 0x9f9f-0x9ffc */ /* 6200 */
/*SWIDTH2 0xe040-0xe07e 0xe080-0xe09e */ /* 6300 */
/*SWIDTH2 0xe09f-0xe0fc */ /* 6400 */
/*SWIDTH2 0xe140-0xe17e 0xe180-0xe19e */ /* 6500 */
/*SWIDTH2 0xe19f-0xe1fc */ /* 6600 */
/*SWIDTH2 0xe240-0xe27e 0xe280-0xe29e */ /* 6700 */
/*SWIDTH2 0xe29f-0xe2fc */ /* 6800 */
/*SWIDTH2 0xe340-0xe37e 0xe380-0xe39e */ /* 6900 */
/*SWIDTH2 0xe39f-0xe3fc */ /* 7000 */
/*SWIDTH2 0xe440-0xe47e 0xe480-0xe49e */ /* 7100 */
/*SWIDTH2 0xe49f-0xe4fc */ /* 7200 */
/*SWIDTH2 0xe540-0xe57e 0xe580-0xe59e */ /* 7300 */
/*SWIDTH2 0xe59f-0xe5fc */ /* 7400 */
/*SWIDTH2 0xe640-0xe67e 0xe680-0xe69e */ /* 7500 */
/*SWIDTH2 0xe69f-0xe6fc */ /* 7600 */
/*SWIDTH2 0xe740-0xe77e 0xe780-0xe79e */ /* 7700 */
/*SWIDTH2 0xe79f-0xe7fc */ /* 7800 */
/*SWIDTH2 0xe840-0xe87e 0xe880-0xe89e */ /* 7900 */
/*SWIDTH2 0xe89f-0xe8fc */ /* 8000 */
/*SWIDTH2 0xe940-0xe97e 0xe980-0xe99e */ /* 8100 */
/*SWIDTH2 0xe99f-0xe9fc */ /* 8200 */
/*SWIDTH2 0xea40-0xea7e 0xea80-0xea9e */ /* 8300 */
/*SWIDTH2 0xea9f-0xeaa4 */ /* 8400 */
|