2 # Directory containing conversion tables.
3 # You have to unpack the conversion-tables.tar.gz package.
4 TABLESDIR
= /home
/bruno
/chs
/conversion-tables
184 ascii.h
: $(TABLESDIR
)/glibc-2.1
-iconv
/ASCII.TXT
8bit_tab_to_h
185 .
/8bit_tab_to_h ASCII ascii
< $<
187 iso8859_1.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-1.TXT
8bit_tab_to_h
188 .
/8bit_tab_to_h ISO-8859-1 iso8859_1
< $<
190 iso8859_2.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-2.TXT
8bit_tab_to_h
191 .
/8bit_tab_to_h ISO-8859-2 iso8859_2
< $<
193 iso8859_3.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-3.TXT
8bit_tab_to_h
194 .
/8bit_tab_to_h ISO-8859-3 iso8859_3
< $<
196 iso8859_4.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-4.TXT
8bit_tab_to_h
197 .
/8bit_tab_to_h ISO-8859-4 iso8859_4
< $<
199 iso8859_5.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-5.TXT
8bit_tab_to_h
200 .
/8bit_tab_to_h ISO-8859-5 iso8859_5
< $<
202 iso8859_6.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-6.TXT
8bit_tab_to_h
203 .
/8bit_tab_to_h ISO-8859-6 iso8859_6
< $<
205 iso8859_7.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-7-2003.TXT
8bit_tab_to_h
206 .
/8bit_tab_to_h ISO-8859-7 iso8859_7
< $<
208 iso8859_8.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-8.TXT
8bit_tab_to_h
209 .
/8bit_tab_to_h ISO-8859-8 iso8859_8
< $<
211 iso8859_9.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-9.TXT
8bit_tab_to_h
212 .
/8bit_tab_to_h ISO-8859-9 iso8859_9
< $<
214 iso8859_10.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-10.TXT
8bit_tab_to_h
215 .
/8bit_tab_to_h ISO-8859-10 iso8859_10
< $<
217 iso8859_11.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-11.TXT
8bit_tab_to_h
218 .
/8bit_tab_to_h ISO-8859-11 iso8859_11
< $<
220 iso8859_13.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-13.TXT
8bit_tab_to_h
221 .
/8bit_tab_to_h ISO-8859-13 iso8859_13
< $<
223 iso8859_14.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-14.TXT
8bit_tab_to_h
224 .
/8bit_tab_to_h ISO-8859-14 iso8859_14
< $<
226 iso8859_15.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-15.TXT
8bit_tab_to_h
227 .
/8bit_tab_to_h ISO-8859-15 iso8859_15
< $<
229 iso8859_16.h
: $(TABLESDIR
)/unicode.org-mappings
/ISO8859
/8859-16.TXT
8bit_tab_to_h
230 .
/8bit_tab_to_h ISO-8859-16 iso8859_16
< $<
232 koi8_r.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MISC
/KOI8-R.TXT
8bit_tab_to_h
233 .
/8bit_tab_to_h KOI8-R koi8_r
< $<
235 koi8_u.h
: $(TABLESDIR
)/csets-new
/KOI8-U.TXT
8bit_tab_to_h
236 .
/8bit_tab_to_h KOI8-U koi8_u
< $<
238 koi8_ru.h
: $(TABLESDIR
)/freebsd-iconv-0.4
/KOI8-RU.TXT
8bit_tab_to_h
239 .
/8bit_tab_to_h KOI8-RU koi8_ru
< $<
241 cp1250.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1250.TXT
8bit_tab_to_h
242 .
/8bit_tab_to_h CP1250 cp1250
< $<
244 cp1251.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1251.TXT
8bit_tab_to_h
245 .
/8bit_tab_to_h CP1251 cp1251
< $<
247 cp1252.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1252.TXT
8bit_tab_to_h
248 .
/8bit_tab_to_h CP1252 cp1252
< $<
250 cp1253.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1253.TXT
8bit_tab_to_h
251 .
/8bit_tab_to_h CP1253 cp1253
< $<
253 cp1254.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1254.TXT
8bit_tab_to_h
254 .
/8bit_tab_to_h CP1254 cp1254
< $<
256 cp1255.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1255.TXT
8bit_tab_to_h
257 .
/8bit_tab_to_h CP1255 cp1255
< $<
259 cp1256.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1256.TXT
8bit_tab_to_h
260 .
/8bit_tab_to_h CP1256 cp1256
< $<
262 cp1257.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1257.TXT
8bit_tab_to_h
263 .
/8bit_tab_to_h CP1257 cp1257
< $<
265 cp1258.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP1258.TXT
8bit_tab_to_h
266 .
/8bit_tab_to_h CP1258 cp1258
< $<
268 cp850.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP850.TXT
8bit_tab_to_h
269 .
/8bit_tab_to_h CP850 cp850
< $<
271 cp862.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP862.TXT
8bit_tab_to_h
272 .
/8bit_tab_to_h CP862 cp862
< $<
274 cp866.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP866.TXT
8bit_tab_to_h
275 .
/8bit_tab_to_h CP866 cp866
< $<
277 cp1131.h
: $(TABLESDIR
)/other
/CP1131.TXT
8bit_tab_to_h
278 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP1131 cp1131
280 mac_roman.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-ROMAN.TXT
8bit_tab_to_h
281 .
/8bit_tab_to_h MacRoman mac_roman
< $<
283 mac_centraleurope.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-CENTRAL-EUROPE.TXT
8bit_tab_to_h
284 .
/8bit_tab_to_h MacCentralEurope mac_centraleurope
< $<
286 mac_iceland.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-ICELAND.TXT
8bit_tab_to_h
287 .
/8bit_tab_to_h MacIceland mac_iceland
< $<
289 mac_croatian.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-CROATIAN.TXT
8bit_tab_to_h
290 .
/8bit_tab_to_h MacCroatian mac_croatian
< $<
292 mac_romania.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-ROMANIA.TXT
8bit_tab_to_h
293 .
/8bit_tab_to_h MacRomania mac_romania
< $<
295 mac_cyrillic.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-CYRILLIC.TXT
8bit_tab_to_h
296 .
/8bit_tab_to_h MacCyrillic mac_cyrillic
< $<
298 mac_ukraine.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-UKRAINE.TXT
8bit_tab_to_h
299 .
/8bit_tab_to_h MacUkraine mac_ukraine
< $<
301 mac_greek.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-GREEK.TXT
8bit_tab_to_h
302 .
/8bit_tab_to_h MacGreek mac_greek
< $<
304 mac_turkish.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-TURKISH.TXT
8bit_tab_to_h
305 .
/8bit_tab_to_h MacTurkish mac_turkish
< $<
307 mac_hebrew.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-HEBREW.TXT
8bit_tab_to_h
308 .
/8bit_tab_to_h MacHebrew mac_hebrew
< $<
310 mac_arabic.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-ARABIC.TXT
8bit_tab_to_h
311 .
/8bit_tab_to_h MacArabic mac_arabic
< $<
313 mac_thai.h
: $(TABLESDIR
)/jdk-1.1
.7b
/MAC-THAI.TXT
8bit_tab_to_h
314 .
/8bit_tab_to_h MacThai mac_thai
< $<
316 hp_roman8.h
: $(TABLESDIR
)/glibc-2.1
-iconv
/HP-ROMAN8.TXT
8bit_tab_to_h
317 .
/8bit_tab_to_h HP-ROMAN8 hp_roman8
< $<
319 nextstep.h
: $(TABLESDIR
)/clisp
/NEXTSTEP.TXT
8bit_tab_to_h
320 .
/8bit_tab_to_h NEXTSTEP nextstep
< $<
322 armscii_8.h
: $(TABLESDIR
)/glibc-2.2
.90-iconv
/ARMSCII-8.TXT
8bit_tab_to_h
323 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h ARMSCII-8 armscii_8
325 georgian_academy.h
: $(TABLESDIR
)/csets-1.6
/GEO-ITA.TXT
8bit_tab_to_h
326 .
/8bit_tab_to_h GEORGIAN-ACADEMY georgian_academy
< $<
328 georgian_ps.h
: $(TABLESDIR
)/csets-1.6
/GEO-PS.TXT
8bit_tab_to_h
329 .
/8bit_tab_to_h GEORGIAN-PS georgian_ps
< $<
331 koi8_t.h
: $(TABLESDIR
)/glibc-2.2
.90-iconv
/KOI8-T.TXT
332 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h KOI8-T koi8_t
334 pt154.h
: $(TABLESDIR
)/IANA
/PTCP154.TXT
335 .
/8bit_tab_to_h PT154 pt154
< $<
337 rk1048.h
: $(TABLESDIR
)/IANA
/KZ-1048.TXT
338 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h RK1048 rk1048
340 mulelao.h
: $(TABLESDIR
)/csets-new
/MULELAO1.TXT
8bit_tab_to_h
341 .
/8bit_tab_to_h MULELAO-1 mulelao
< $<
343 cp1133.h
: $(TABLESDIR
)/csets-new
/CP1133.TXT
8bit_tab_to_h
344 .
/8bit_tab_to_h IBM-CP1133 cp1133
< $<
346 tis620.h
: $(TABLESDIR
)/glibc-2.1
-iconv
/TIS-620.TXT
8bit_tab_to_h
347 .
/8bit_tab_to_h TIS620.2533
-1 tis620
< $<
349 cp874.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP874.TXT
8bit_tab_to_h
350 .
/8bit_tab_to_h CP874 cp874
< $<
352 viscii.h
: $(TABLESDIR
)/csets-1.6
/VISCII.TXT
8bit_tab_to_h
353 .
/8bit_tab_to_h VISCII1.1
-1 viscii
< $<
355 tcvn.h
: $(TABLESDIR
)/csets-1.6
/VN5712-1.TXT
8bit_tab_to_h
356 .
/8bit_tab_to_h TCVN-5712 tcvn
< $<
358 jisx0201.h
: $(TABLESDIR
)/clisp
/JIS_X0201.TXT
8bit_tab_to_h
359 .
/8bit_tab_to_h JISX0201.1976
-0 jisx0201
< $<
361 # We use modified JISX0208 and JISX0212 tables. Why?
362 # Hironori Sakamoto and Tomohiro Kubota explain that
363 # - EUC-JP and SHIFT_JIS contain JISX0208 exactly,
364 # - Their round-trip conversion to Unicode and back must be the identity,
365 # - Conversions between EUC-JP, SHIFT_JIS, CP932, ISO-2022-JP must behave
366 # as if no Unicode conversion was involved,
367 # - When JISX0208 is used as a CES (i.e. combined with ASCII) its mapping of
368 # REVERSE SOLIDUS becomes a FULLWIDTH REVERSE SOLIDUS, apparently because
369 # round-trip conversion stability is more important than a particular glyph.
370 # Only with CCS the character is a REVERSE SOLIDUS.
371 # As a consequence, we use FULLWIDTH REVERSE SOLIDUS in EUC-JP's JISX0208 part,
372 # and for consistency also in SHIFT_JIS and ISO-2022-JP, i.e. everywhere.
373 # JISX0208 never occurs as a CCS in practice. Similarly with JISX0212.
375 # Unicode.org maps 0x2140 to U+005C. We map it to U+FF3C.
376 jisx0208.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/JIS
/JIS0208.TXT cjk_tab_to_h
377 sed
-e
's,^0x....[ ]*\(0x....[ ]*0x.....*\)$$,\1,' < $< | sed
-e
's,\([ ]\)0x005C,\10xFF3C,' | .
/cjk_tab_to_h JISX0208.1990
-0 jisx0208
> $@
379 # Unicode.org maps 0x2237 to U+007E. We map it to U+FF5E.
380 jisx0212.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/JIS
/JIS0212.TXT cjk_tab_to_h
381 sed
-e
's,\([ ]\)0x007E,\10xFF5E,' < $< | .
/cjk_tab_to_h JISX0212.1990
-0 jisx0212
> $@
383 cp932ext.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP932.TXT cjk_tab_to_h
384 (echo
'#' ; grep
'^0x\(87\|E[D-F]\|F[0-9A-F]\)[0-9A-F][0-9A-F]' < $< ) | .
/cjk_tab_to_h
'CP932 extensions' cp932ext
> $@
386 cp50221_0208_ext.h
: CP50221-0208-EXT.TXT
8bit_tab_to_h
387 .
/8bit_tab_to_h
'CP50221 JISX0208 extensions' cp50221_0208_ext
< $<
389 cp50221_0212_ext.h
: CP50221-0212-EXT.TXT
8bit_tab_to_h
390 .
/8bit_tab_to_h
'CP50221 JISX0212 extensions' cp50221_0212_ext
< $<
392 gb2312.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB2312.TXT cjk_tab_to_h
393 .
/cjk_tab_to_h GB2312.1980
-0 gb2312
< $< > $@
395 isoir165ext.h
: $(TABLESDIR
)/csets-new
/ISO-IR-165-additions.TXT cjk_tab_to_h
396 (echo
'#' ; grep
-v
'^0x2[8A]' < $<) | .
/cjk_tab_to_h
'ISO-IR-165 extensions' isoir165ext
> $@
398 gb12345ext.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB2312.TXT
$(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB12345-FIXED.TXT
$(TABLESDIR
)/csets-new
/GB12345-more.TXT cjk_tab_to_h
399 (echo
'#' ; sed
-e
'/^0x..[ ]*#UNDEFINED/d' -e
's/#.*$$//' -e
'/^[ ]*$$/d' $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB2312.TXT
> tmp1.TXT
; sed
-e
'/^0x..[ ]*#UNDEFINED/d' -e
's/#.*$$//' -e
'/^[ ]*$$/d' $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB12345-FIXED.TXT
> tmp2.TXT
; diff tmp1.TXT tmp2.TXT | grep
'^> ' | sed
-e
's,^> ,,' ; cat
$(TABLESDIR
)/csets-new
/GB12345-more.TXT
) | .
/cjk_tab_to_h
'GB/T 12345.1990-0 extensions' gb12345ext
> $@
&& rm -f tmp1.TXT tmp2.TXT
401 gbkext1.h
: GBKext.TXT cjk_tab_to_h
402 (echo
'#' ; grep
'^0x\([89].\|A0\)' < GBKext.TXT
) | .
/cjk_tab_to_h
'GBK/3 extensions' gbkext1
> $@
404 gbkext2.h
: GBKext.TXT cjk_tab_to_h
405 (echo
'#' ; grep
'^0x\(A[1-9A-F]\|[B-F][0-9A-F]\)\([4-9].\|A0\)' < GBKext.TXT
) | .
/cjk_tab_to_h
'GBK/4 and GBK/5 extensions' gbkext2
> $@
407 gbkext_inv.h
: GBKext.TXT cjk_tab_to_h
408 (echo
'#' ; grep
'^0x\([89].\|A0\)' < GBKext.TXT
; grep
'^0x\(A[1-9A-F]\|[B-F][0-9A-F]\)\([4-9].\|A0\)' < GBKext.TXT
) | .
/cjk_tab_to_h
'GBK extensions' gbkext_inv
> $@
410 cp936ext.h
: GBKext.TXT cjk_tab_to_h
411 (echo
'#' ; grep
'^0xA[1-9][B-F].' < GBKext.TXT
) | .
/cjk_tab_to_h
'CP936 extensions' cp936ext
> $@
413 GBKext.TXT
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB2312.TXT
$(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP936.TXT
414 sed
-e
's,^0x2,0xA,' -e
's,^0x3,0xB,' -e
's,^0x4,0xC,' -e
's,^0x5,0xD,' -e
's,^0x6,0xE,' -e
's,^0x7,0xF,' -e
's,^0x\(..\)2,0x\1A,' -e
's,^0x\(..\)3,0x\1B,' -e
's,^0x\(..\)4,0x\1C,' -e
's,^0x\(..\)5,0x\1D,' -e
's,^0x\(..\)6,0x\1E,' -e
's,^0x\(..\)7,0x\1F,' $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/GB
/GB2312.TXT
> tmpEUCCN.TXT
; sed
-e
'/^0x..[ ]*#UNDEFINED/d' -e
's/#.*$$//' -e
'/^[ ]*$$/d' tmpEUCCN.TXT
> tmp1.TXT
; sed
-e
'/^0x..[ ]/d' -e
's/#.*$$//' -e
'/^[ ]*$$/d' $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP936.TXT
> tmp2.TXT
; diff
-c1 tmp1.TXT tmp2.TXT | grep
'^+ ' | sed
-e
's,^+ ,,' > $@
&& rm -f tmpEUCCN.TXT tmp1.TXT tmp2.TXT
416 gb18030ext.h
: GB18030ext.TXT cjk_tab_to_h
417 (echo
'#' ; cat GB18030ext.TXT
) | .
/cjk_tab_to_h
'GB18030 two-byte extension' gb18030ext
> $@
419 GB18030ext.TXT
: $(TABLESDIR
)/glibc-2.2
.2-iconv
/GB18030.TXT
$(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP936.TXT
420 cat
$(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP936.TXT | sed
-e
's/[ ]*#.*$$//' | grep
'^0x[0-9A-F]* 0x....$$' > tmpGBK.TXT
; diff tmpGBK.TXT
$(TABLESDIR
)/glibc-2.2
.2-iconv
/GB18030.TXT | grep
'^> 0x.... 0x....$$' | sed
-e
's/^> //' > $@
&& rm -f tmpGBK.TXT
422 gb18030uni.h
: GB18030uni.TXT cjk_tab_to_h
423 .
/cjk_tab_to_h
'GB18030 four-byte extension' gb18030uni
< GB18030uni.TXT
> $@
425 GB18030uni.TXT
: $(TABLESDIR
)/gb18030
/filled-GB18030.TXT
426 grep
'^0x........ 0x....$$' < $(TABLESDIR
)/gb18030
/filled-GB18030.TXT
> $@
428 cns11643_1.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
429 grep
'^\(#\|0x1\)' < $< | sed
-e
's,^0x1,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 1' cns11643_1
> $@
431 cns11643_2.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
432 grep
'^\(#\|0x2\)' < $< | sed
-e
's,^0x2,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 2' cns11643_2
> $@
434 cns11643_3.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
435 grep
'^\(#\|0x3\)' < $< | sed
-e
's,^0x3,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 3' cns11643_3
> $@
437 cns11643_4a.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
438 grep
'^\(#\|0x4[0-3]\)' < $< | sed
-e
's,^0x4,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 4 part a' cns11643_4a
> $@
440 cns11643_4b.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
441 grep
'^\(#\|0x4[4-7]\)' < $< | sed
-e
's,^0x4,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 4 part b' cns11643_4b
> $@
443 cns11643_5.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
444 grep
'^\(#\|0x5\)' < $< | sed
-e
's,^0x5,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 5' cns11643_5
> $@
446 cns11643_6.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
447 grep
'^\(#\|0x6\)' < $< | sed
-e
's,^0x6,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 6' cns11643_6
> $@
449 cns11643_7.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
450 grep
'^\(#\|0x7\)' < $< | sed
-e
's,^0x7,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 7' cns11643_7
> $@
452 cns11643_15.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
453 grep
'^\(#\|0xF\)' < $< | sed
-e
's,^0xF,0x,' | .
/cjk_tab_to_h
'CNS 11643-1992 plane 15' cns11643_15
> $@
455 cns11643_inv.h
: $(TABLESDIR
)/csets-new
/CNS11643-Unicode32.TXT cjk_tab_to_h
456 .
/cjk_tab_to_h
'CNS 11643-1992 planes 1-7, CNS 11643-1986 plane 15' cns11643_inv
< $< > $@
458 big5.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/OTHER
/BIG5.TXT cjk_tab_to_h
459 .
/cjk_tab_to_h BIG5 big5
< $< > $@
461 cp950ext.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/WINDOWS
/CP950.TXT cjk_tab_to_h
462 (echo
'#' ; grep
'^0xF9\(D[6-9A-F]\|[EF][0-9A-F]\)' < $< ) | .
/cjk_tab_to_h
'CP950 extensions' cp950ext
> $@
464 hkscs1999.h
: $(TABLESDIR
)/big5hkscs
/HKSCS-1999_2006.TXT cjk_tab_to_h
465 (echo
'#' ; grep
-v
, $<) | .
/cjk_tab_to_h HKSCS
:1999 hkscs1999
> $@
467 hkscs2001.h
: $(TABLESDIR
)/big5hkscs
/HKSCS-2001_2006-DELTA.TXT cjk_tab_to_h
468 (echo
'#' ; grep
-v
, $<) | .
/cjk_tab_to_h HKSCS
:2001 hkscs2001
> $@
470 hkscs2004.h
: $(TABLESDIR
)/big5hkscs
/HKSCS-2004_2006-DELTA.TXT cjk_tab_to_h
471 (echo
'#' ; grep
-v
, $<) | .
/cjk_tab_to_h HKSCS
:2004 hkscs2004
> $@
473 hkscs2008.h
: $(TABLESDIR
)/big5hkscs
/HKSCS-2008_2010-DELTA.TXT cjk_tab_to_h
474 (echo
'#' ; grep
-v
, $<) | .
/cjk_tab_to_h HKSCS
:2008 hkscs2008
> $@
476 # We use a modified KSC 5601 = KSX 1001 table. Jungshik Shin <jshin@mailaps.org>
477 # reports that Prof. GIM Geongseog (KIM Keyongseok) <gimgs@asadal.cs.pusan.ac.kr>
478 # (who represents South Korea in ISO/IEC JTC1 SC2/WG2 and SC22/WG20) says that
479 # these two characters were added to KSX 1001 in December 1998. According to
480 # http://std.dkuug.dk/jtc1/sc2/wg2/docs/N2815.doc, one more character
481 # (Korean postal code sign) was added in 2002.
482 ksc5601.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/KSC
/KSC5601.TXT cjk_tab_to_h
483 (cat
$< ; echo
'0xA2E6 0x20AC'; echo
'0xA2E7 0x00AE'; echo
'0xA2E8 0x327E') | .
/cjk_tab_to_h
'KSC5601.1987-0, now KS X 1001:2002' ksc5601
> $@
485 uhc_1.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/KSC
/KSC5601.TXT cjk_tab_to_h
486 (echo
'#' ; grep
'^0x\([8-9]\|A0\)' < $< ) | .
/cjk_tab_to_h
'Unified Hangul Code part 1' uhc_1
> $@
488 uhc_2.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/KSC
/KSC5601.TXT cjk_tab_to_h
489 (echo
'#' ; grep
'^0x\(A[1-9A-F]\|[B-F][0-9A-F]\)\([0-9]\|A0\)' < $< ) | .
/cjk_tab_to_h
'Unified Hangul Code part 2' uhc_2
> $@
491 johab_hangul.h
: $(TABLESDIR
)/unicode.org-mappings
/EASTASIA
/KSC
/JOHAB.TXT cjk_tab_to_h
492 (echo
'#' ; grep
'^0x\([8-C]...\|D[0-7]..\)' < $< ) | .
/cjk_tab_to_h
'JOHAB Hangul' johab_hangul
> $@
495 cp856.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MISC
/CP856.TXT
8bit_tab_to_h
496 .
/8bit_tab_to_h CP856 cp856
< $<
498 cp922.h
: $(TABLESDIR
)/aix-4.3
.2/IBM-922.TXT
8bit_tab_to_h
499 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP922 cp922
501 cp1046.h
: $(TABLESDIR
)/aix-4.3
.2/IBM-1046.TXT
8bit_tab_to_h
502 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP1046 cp1046
504 cp1124.h
: $(TABLESDIR
)/aix-4.3
.2/IBM-1124.TXT
8bit_tab_to_h
505 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP1124 cp1124
507 cp1129.h
: $(TABLESDIR
)/aix-4.3
.2/IBM-1129.TXT
8bit_tab_to_h
508 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP1129 cp1129
510 cp1161.h
: $(TABLESDIR
)/glibc-2.2
.90-iconv
/IBM1161.TXT
511 (echo
'#' ; cat
$(TABLESDIR
)/glibc-2.2
-iconv
/ASCII.TXT
; grep
-v
'^0x[0-7]' $<) | .
/8bit_tab_to_h CP1161 cp1161
513 cp1162.h
: $(TABLESDIR
)/glibc-2.2
.90-iconv
/IBM1162.TXT
514 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP1162 cp1162
516 cp1163.h
: $(TABLESDIR
)/glibc-2.2
.90-iconv
/IBM1163.TXT
517 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP1163 cp1163
520 cp437.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP437.TXT
8bit_tab_to_h
521 .
/8bit_tab_to_h CP437 cp437
< $<
523 cp737.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP737.TXT
8bit_tab_to_h
524 .
/8bit_tab_to_h CP737 cp737
< $<
526 cp775.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP775.TXT
8bit_tab_to_h
527 .
/8bit_tab_to_h CP775 cp775
< $<
529 cp852.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP852.TXT
8bit_tab_to_h
530 .
/8bit_tab_to_h CP852 cp852
< $<
532 cp853.h
: $(TABLESDIR
)/other
/CP853.TXT
8bit_tab_to_h
533 (echo
'#'; cat
$<) | .
/8bit_tab_to_h CP853 cp853
535 cp855.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP855.TXT
8bit_tab_to_h
536 .
/8bit_tab_to_h CP855 cp855
< $<
538 cp857.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP857.TXT
8bit_tab_to_h
539 .
/8bit_tab_to_h CP857 cp857
< $<
541 cp858.h
: $(TABLESDIR
)/windows-2000
/CP858.TXT
8bit_tab_to_h
542 (echo
'#' ; cat
$<) | .
/8bit_tab_to_h CP858 cp858
544 cp860.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP860.TXT
8bit_tab_to_h
545 .
/8bit_tab_to_h CP860 cp860
< $<
547 cp861.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP861.TXT
8bit_tab_to_h
548 .
/8bit_tab_to_h CP861 cp861
< $<
550 cp863.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP863.TXT
8bit_tab_to_h
551 .
/8bit_tab_to_h CP863 cp863
< $<
553 cp864.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP864.TXT
8bit_tab_to_h
554 .
/8bit_tab_to_h CP864 cp864
< $<
556 cp865.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP865.TXT
8bit_tab_to_h
557 .
/8bit_tab_to_h CP865 cp865
< $<
559 cp869.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MICSFT
/PC
/CP869.TXT
8bit_tab_to_h
560 .
/8bit_tab_to_h CP869 cp869
< $<
562 cp1125.h
: $(TABLESDIR
)/csets-new
/CP1125.TXT
8bit_tab_to_h
563 .
/8bit_tab_to_h CP1125 cp1125
< $<
566 ebcdic037.h
: ..
/tests
/IBM-037.TXT
8bit_tab_to_h
567 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-037 ebcdic037
569 ebcdic273.h
: ..
/tests
/IBM-273.TXT
8bit_tab_to_h
570 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-273 ebcdic273
572 ebcdic277.h
: ..
/tests
/IBM-277.TXT
8bit_tab_to_h
573 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-277 ebcdic277
575 ebcdic278.h
: ..
/tests
/IBM-278.TXT
8bit_tab_to_h
576 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-278 ebcdic278
578 ebcdic280.h
: ..
/tests
/IBM-280.TXT
8bit_tab_to_h
579 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-280 ebcdic280
581 ebcdic282.h
: ..
/tests
/IBM-282.TXT
8bit_tab_to_h
582 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-282 ebcdic282
584 ebcdic284.h
: ..
/tests
/IBM-284.TXT
8bit_tab_to_h
585 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-284 ebcdic284
587 ebcdic285.h
: ..
/tests
/IBM-285.TXT
8bit_tab_to_h
588 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-285 ebcdic285
590 ebcdic297.h
: ..
/tests
/IBM-297.TXT
8bit_tab_to_h
591 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-297 ebcdic297
593 ebcdic423.h
: ..
/tests
/IBM-423.TXT
8bit_tab_to_h
594 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-423 ebcdic423
596 ebcdic424.h
: ..
/tests
/IBM-424.TXT
8bit_tab_to_h
597 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-424 ebcdic424
599 ebcdic425.h
: ..
/tests
/IBM-425.TXT
8bit_tab_to_h
600 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-425 ebcdic425
602 ebcdic500.h
: ..
/tests
/IBM-500.TXT
8bit_tab_to_h
603 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-500 ebcdic500
605 ebcdic838.h
: ..
/tests
/IBM-838.TXT
8bit_tab_to_h
606 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-838 ebcdic838
608 ebcdic870.h
: ..
/tests
/IBM-870.TXT
8bit_tab_to_h
609 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-870 ebcdic870
611 ebcdic871.h
: ..
/tests
/IBM-871.TXT
8bit_tab_to_h
612 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-871 ebcdic871
614 ebcdic875.h
: ..
/tests
/IBM-875.TXT
8bit_tab_to_h
615 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-875 ebcdic875
617 ebcdic880.h
: ..
/tests
/IBM-880.TXT
8bit_tab_to_h
618 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-880 ebcdic880
620 ebcdic905.h
: ..
/tests
/IBM-905.TXT
8bit_tab_to_h
621 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-905 ebcdic905
623 ebcdic924.h
: ..
/tests
/IBM-924.TXT
8bit_tab_to_h
624 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-924 ebcdic924
626 ebcdic1025.h
: ..
/tests
/IBM-1025.TXT
8bit_tab_to_h
627 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1025 ebcdic1025
629 ebcdic1026.h
: ..
/tests
/IBM-1026.TXT
8bit_tab_to_h
630 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1026 ebcdic1026
632 ebcdic1047.h
: ..
/tests
/IBM-1047.TXT
8bit_tab_to_h
633 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1047 ebcdic1047
635 ebcdic1097.h
: ..
/tests
/IBM-1097.TXT
8bit_tab_to_h
636 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1097 ebcdic1097
638 ebcdic1112.h
: ..
/tests
/IBM-1112.TXT
8bit_tab_to_h
639 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1112 ebcdic1112
641 ebcdic1122.h
: ..
/tests
/IBM-1122.TXT
8bit_tab_to_h
642 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1122 ebcdic1122
644 ebcdic1123.h
: ..
/tests
/IBM-1123.TXT
8bit_tab_to_h
645 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1123 ebcdic1123
647 ebcdic1130.h
: ..
/tests
/IBM-1130.TXT
8bit_tab_to_h
648 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1130 ebcdic1130
650 ebcdic1132.h
: ..
/tests
/IBM-1132.TXT
8bit_tab_to_h
651 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1132 ebcdic1132
653 ebcdic1137.h
: ..
/tests
/IBM-1137.TXT
8bit_tab_to_h
654 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1137 ebcdic1137
656 ebcdic1140.h
: ..
/tests
/IBM-1140.TXT
8bit_tab_to_h
657 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1140 ebcdic1140
659 ebcdic1141.h
: ..
/tests
/IBM-1141.TXT
8bit_tab_to_h
660 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1141 ebcdic1141
662 ebcdic1142.h
: ..
/tests
/IBM-1142.TXT
8bit_tab_to_h
663 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1142 ebcdic1142
665 ebcdic1143.h
: ..
/tests
/IBM-1143.TXT
8bit_tab_to_h
666 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1143 ebcdic1143
668 ebcdic1144.h
: ..
/tests
/IBM-1144.TXT
8bit_tab_to_h
669 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1144 ebcdic1144
671 ebcdic1145.h
: ..
/tests
/IBM-1145.TXT
8bit_tab_to_h
672 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1145 ebcdic1145
674 ebcdic1146.h
: ..
/tests
/IBM-1146.TXT
8bit_tab_to_h
675 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1146 ebcdic1146
677 ebcdic1147.h
: ..
/tests
/IBM-1147.TXT
8bit_tab_to_h
678 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1147 ebcdic1147
680 ebcdic1148.h
: ..
/tests
/IBM-1148.TXT
8bit_tab_to_h
681 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1148 ebcdic1148
683 ebcdic1149.h
: ..
/tests
/IBM-1149.TXT
8bit_tab_to_h
684 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1149 ebcdic1149
686 ebcdic1153.h
: ..
/tests
/IBM-1153.TXT
8bit_tab_to_h
687 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1153 ebcdic1153
689 ebcdic1154.h
: ..
/tests
/IBM-1154.TXT
8bit_tab_to_h
690 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1154 ebcdic1154
692 ebcdic1155.h
: ..
/tests
/IBM-1155.TXT
8bit_tab_to_h
693 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1155 ebcdic1155
695 ebcdic1156.h
: ..
/tests
/IBM-1156.TXT
8bit_tab_to_h
696 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1156 ebcdic1156
698 ebcdic1157.h
: ..
/tests
/IBM-1157.TXT
8bit_tab_to_h
699 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1157 ebcdic1157
701 ebcdic1158.h
: ..
/tests
/IBM-1158.TXT
8bit_tab_to_h
702 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1158 ebcdic1158
704 ebcdic1160.h
: ..
/tests
/IBM-1160.TXT
8bit_tab_to_h
705 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1160 ebcdic1160
707 ebcdic1164.h
: ..
/tests
/IBM-1164.TXT
8bit_tab_to_h
708 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1164 ebcdic1164
710 ebcdic1165.h
: ..
/tests
/IBM-1165.TXT
8bit_tab_to_h
711 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1165 ebcdic1165
713 ebcdic1166.h
: ..
/tests
/IBM-1166.TXT
8bit_tab_to_h
714 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-1166 ebcdic1166
716 ebcdic4971.h
: ..
/tests
/IBM-4971.TXT
8bit_tab_to_h
717 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-4971 ebcdic4971
719 ebcdic12712.h
: ..
/tests
/IBM-12712.TXT
8bit_tab_to_h
720 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-12712 ebcdic12712
722 ebcdic16804.h
: ..
/tests
/IBM-16804.TXT
8bit_tab_to_h
723 (echo
'#'; cat
$<) | .
/8bit_tab_to_h IBM-16804 ebcdic16804
726 jisx0213.h
: JISX0213.TXT cjk_tab_to_h
727 .
/cjk_tab_to_h JISX0213
:2004 jisx0213
< $< > $@
729 tds565.h
: $(TABLESDIR
)/recode-cvs
/TDS565.TXT
8bit_tab_to_h
730 (echo
'#'; cat
$<) | .
/8bit_tab_to_h TDS565 tds565
> $@
732 atarist.h
: $(TABLESDIR
)/unicode.org-mappings
/VENDORS
/MISC
/ATARIST.TXT
733 .
/8bit_tab_to_h
'Atari ST' atarist
< $< > $@
735 riscos1.h
: $(TABLESDIR
)/recode-cvs
/RISCOS-LATIN1.TXT
8bit_tab_to_h
736 (echo
'#'; cat
$<) | .
/8bit_tab_to_h RISCOS-LATIN1 riscos1
> $@
739 cjk_variants.h
: $(TABLESDIR
)/yasuoka
/UniVariants cjk_variants
740 .
/cjk_variants
< $< > $@
743 8bit_tab_to_h
: 8bit_tab_to_h.c
744 gcc
-O
-Wall
-g
$< -o
$@
746 cjk_tab_to_h
: cjk_tab_to_h.c
747 gcc
-O
-Wall
-g
$< -o
$@
749 cjk_variants
: cjk_variants.c
750 gcc
-O
-Wall
-g
$< -o
$@
754 rm -f
8bit_tab_to_h cjk_tab_to_h cjk_variants
$(ALL
) GBKext.TXT