Debian Codegraph @

texk/web2c/euptexdir/tests/ucs.tex

raw
1 %#!eptex
2
3 \def\typeout{\immediate\write17}
4
5 \ifnum`あ="A4A2 \typeout{<EUC>}
6 \else\ifnum`ア="8341 \typeout{<SJIS>}
7 \else\typeout{<uptex>}\fi\fi
8
9 \typeout{\string\ucs.}
10 \newcount\cntA
11 \loop\ifnum\cntA<256
12 \ifnum0>\ucs\cntA\else\typeout{\the\cntA: \ucs\cntA %
13 \ifx\Uchar\undefined\else(\Uchar\ucs\cntA)\fi}\fi
14 \advance\cntA1
15 \repeat
16
17
18 \typeout{\string\toucs.}
19 \cntA=0
20 \loop\ifnum\cntA<256
21 \ifnum0>\toucs\cntA\else\typeout{\the\cntA: \toucs\cntA}\fi
22 \advance\cntA1
23 \repeat
24 \typeout{\toucs"0, \toucs"80, \toucs"D7, \toucs"A7, \toucs"10000}
25 \typeout{\toucs"8341, \toucs"EAA4, \toucs"EAA5}
26 \typeout{\toucs"A4A2, \toucs"F4A6, \toucs"F4A7}
27 \typeout{\jis"2131, \jis"213D, \jis"2141, \jis"2142, \jis"2144,
28 \jis"215D, \jis"216F, \jis"2171, \jis"2172, \jis"224C}
29 \typeout{\ucs"203E, \ucs"2014, \ucs"301C, \ucs"2016, \ucs"2026,
30 \ucs"2212, \ucs"00A5, \ucs"00A2, \ucs"00A3, \ucs"00AC}
31 \typeout{\ucs"FFE3, \ucs"2015, \ucs"FF5E, \ucs"2225, \ucs"22EF,
32 \ucs"FF0D, \ucs"FFE5, \ucs"FFE0, \ucs"FFE1, \ucs"FFE2}
33
34
35 \bye
36