Debian Codegraph @

texk/web2c/uptexdir/tests/kcat.tex

raw
1 % for INITEX
2 \catcode`\{=1
3 \catcode`\}=2
4 \def\space{ }
5 \edef\NAME{Engine \ifx\eTeXversion\undefined\else e-\fi
6 \ifx\enablecjktoken\undefined\else u\fi
7 pTeX p\the\ptexversion.\the\ptexminorversion\ptexrevision
8 \ifx\enablecjktoken\undefined\else -u\the\uptexversion\uptexrevision\fi
9 \ifx\epTeXversion\undefined\else -\the\epTeXversion
10 -\the\eTeXversion\eTeXrevision\fi
11 \space (dummy)}
12 \write16{\NAME}
13 % not_cjk=15 {is not cjk characters}
14 % kanji=16 {kanji}
15 % kana=17 {hiragana, katakana}
16 % other_kchar=18 {cjk symbol codes}
17 % hangul=19 {hangul codes}
18
19 \ifnum\jis"2121="3000
20 % upTeX, UCS code
21
22 % separate in blocks
23 \write16{0x00C0::\the\kcatcode"00C0}% U+00C0 "Latin-1 Letters" in Latin-1 Supplement
24 \write16{§::\the\kcatcode"00A7}% U+00A7 Latin-1 Supplement
25 \write16{!::\the\kcatcode"FF01}% U+FF01 Halfwidth and Fullwidth Forms
26 \write16{0::\the\kcatcode"FF10}% U+FF10 "Fullwidth ASCII variants" in Halfwidth and Fullwidth Forms
27 \write16{ヲ::\the\kcatcode"FF66}% U+FF66 "Halfwidth Katakana variants" in Halfwidth and Fullwidth Forms
28
29 % not_cjk=15 {is not cjk characters}
30 \write16{A::\the\kcatcode"0041}% U+0041 Basic Latin
31 \write16{0x0100::\the\kcatcode"0100}% U+0100 Latin Extended-A
32 \write16{0x0180::\the\kcatcode"0180}% U+0180 Latin Extended-B
33 \write16{0x1E00::\the\kcatcode"1E00}% U+1E00 Latin Extended Additional
34
35 % kanji=16 {kanji}
36 \write16{⺀::\the\kcatcode"2E80}% U+2E80 CJK Radicals Supplement
37 \write16{⼀::\the\kcatcode"2F00}% U+2F00 Kangxi Radicals
38 \write16{ㄅ::\the\kcatcode"3105}% U+3105 Bopomofo
39 \write16{㆐::\the\kcatcode"3190}% U+3190 Kanbun
40 \write16{ㆠ::\the\kcatcode"31A0}% U+31A0 Bopomofo Extended
41 \write16{㇀::\the\kcatcode"31C0}% U+31C0 CJK Strokes
42 \write16{㐀::\the\kcatcode"3400}% U+3400 CJK Unified Ideographs Extension A
43 \write16{一::\the\kcatcode"4E00}% U+4E00 CJK Unified Ideographs
44 \write16{豈::\the\kcatcode"F900}% U+F900 CJK Compatibility Ideographs
45 \write16{𠀀::\the\kcatcode"20000}% U+20000 CJK Unified Ideographs Extension B
46 \write16{𪜀::\the\kcatcode"2A700}% U+2A700 CJK Unified Ideographs Extension C
47 \write16{𫝀::\the\kcatcode"2B740}% U+2B740 CJK Unified Ideographs Extension D
48 \write16{𫠠::\the\kcatcode"2B820}% U+2B820 CJK Unified Ideographs Extension E
49 \write16{𬺰::\the\kcatcode"2CEB0}% U+2CEB0 CJK Unified Ideographs Extension F
50 \write16{𮯰::\the\kcatcode"2EBF0}% U+2EBF0 CJK Unified Ideographs Extension I
51 \write16{丽::\the\kcatcode"2F800}% U+2F800 CJK Compatibility Ideographs Supplement
52 \write16{𰀀::\the\kcatcode"30000}% U+30000 CJK Unified Ideographs Extension G
53 \write16{𱍐::\the\kcatcode"31350}% U+31350 CJK Unified Ideographs Extension H
54 \write16{𲎰::\the\kcatcode"323B0}% U+323B0 CJK Unified Ideographs Extension J
55
56 % kana=17 {hiragana, katakana}
57 \write16{あ::\the\kcatcode"3042}% U+3042 Hiragana
58 \write16{ア::\the\kcatcode"30A2}% U+30A2 Katakana
59 \write16{ㇰ::\the\kcatcode"31F0}% U+31F0 Katakana Phonetic Extensions
60 \write16{𚿰::\the\kcatcode"1AFF0}% U+1AFF0 Kana Extended-B
61 \write16{𛀀::\the\kcatcode"1B000}% U+1B000 Kana Supplement
62 \write16{𛄀::\the\kcatcode"1B100}% U+1B100 Kana Extended-A
63 \write16{𛅐::\the\kcatcode"1B150}% U+1B150 Small Kana Extension
64
65 % other_kchar=18 {cjk symbol codes}
66 \write16{※::\the\kcatcode"203B}% U+203B General Punctuation
67 \write16{℃::\the\kcatcode"2103}% U+2103 Letterlike Symbols
68 \write16{Ⅻ::\the\kcatcode"216B}% U+216B Number Forms
69 \write16{⇒::\the\kcatcode"21D2}% U+21D2 Arrows
70 \write16{∂::\the\kcatcode"2202}% U+2202 Mathematical Operators
71 \write16{①::\the\kcatcode"2460}% U+2460 Enclosed Alphanumerics
72 \write16{┟::\the\kcatcode"251F}% U+251F Box Drawing
73 \write16{☃::\the\kcatcode"2603}% U+2603 Miscellaneous Symbols
74 \write16{⿰::\the\kcatcode"2FF0}% U+2FF0 Ideographic Description Characters
75 \write16{〠::\the\kcatcode"3020}% U+3020 CJK Symbols and Punctuation
76 \write16{㋐::\the\kcatcode"32D0}% U+32D0 Enclosed CJK Letters and Months
77 \write16{㍿::\the\kcatcode"337F}% U+337F CJK Compatibility
78
79 % hangul=19 {hangul codes}
80 \write16{ᄀ::\the\kcatcode"1100}% U+1100 Hangul Jamo
81 \write16{ㄱ::\the\kcatcode"3131}% U+3131 Hangul Compatibility Jamo
82 \write16{ꥠ::\the\kcatcode"A960}% U+A960 Hangul Jamo Extended-A
83 \write16{가::\the\kcatcode"AC00}% U+AC00 Hangul Syllables
84 \write16{ힰ::\the\kcatcode"D7B0}% U+D7B0 Hangul Jamo Extended-B
85
86 % modifier=20 {modifier codes}
87 \write16{゚\the\kcatcode"309A}% U+309A Combining Kana (Semi-)Voiced Sound Mark
88 \write16{⃣::\the\kcatcode"20E3}% U+20E3 Combining Enclosing Keycap
89 \write16{🇦::\the\kcatcode"1F1E6}% U+1F1E6 Regional Indicator Symbol Letter
90 \write16{🏻::\the\kcatcode"1F3FB}% U+1F3FB Emoji Modifier Fitzpatrick
91 \write16{︀::\the\kcatcode"FE00}% U+FE00 Variation Selector
92 \write16{󠄀::\the\kcatcode"E0100}% U+E0100 Variation Selector
93
94 \else
95 % pTeX-compatible, EUC / Shift_JIS code, 1..94ku
96
97 \write16{1区::\the\expandafter\kcatcode\jis"2121}
98 \write16{2区::\the\expandafter\kcatcode\jis"2221}
99 \write16{3区::\the\expandafter\kcatcode\jis"2321}
100 \write16{4区::\the\expandafter\kcatcode\jis"2421}
101 \write16{5区::\the\expandafter\kcatcode\jis"2521}
102 \write16{6区::\the\expandafter\kcatcode\jis"2621}
103 \write16{7区::\the\expandafter\kcatcode\jis"2721}
104 \write16{8区::\the\expandafter\kcatcode\jis"2821}
105 \write16{9区::\the\expandafter\kcatcode\jis"2921}
106 \write16{10区::\the\expandafter\kcatcode\jis"2A21}
107 \write16{11区::\the\expandafter\kcatcode\jis"2B21}
108 \write16{12区::\the\expandafter\kcatcode\jis"2C21}
109 \write16{13区::\the\expandafter\kcatcode\jis"2D21}
110 \write16{14区::\the\expandafter\kcatcode\jis"2E21}
111 \write16{15区::\the\expandafter\kcatcode\jis"2F21}
112 \write16{16区::\the\expandafter\kcatcode\jis"3021}
113 \write16{17区::\the\expandafter\kcatcode\jis"3121}
114 \write16{18区::\the\expandafter\kcatcode\jis"3221}
115 \write16{19区::\the\expandafter\kcatcode\jis"3321}
116 \write16{20区::\the\expandafter\kcatcode\jis"3421}
117 \write16{21区::\the\expandafter\kcatcode\jis"3521}
118 \write16{22区::\the\expandafter\kcatcode\jis"3621}
119 \write16{23区::\the\expandafter\kcatcode\jis"3721}
120 \write16{24区::\the\expandafter\kcatcode\jis"3821}
121 \write16{80区::\the\expandafter\kcatcode\jis"7021}
122 \write16{81区::\the\expandafter\kcatcode\jis"7121}
123 \write16{82区::\the\expandafter\kcatcode\jis"7221}
124 \write16{83区::\the\expandafter\kcatcode\jis"7321}
125 \write16{84区::\the\expandafter\kcatcode\jis"7421}
126 \write16{90区::\the\expandafter\kcatcode\jis"7A21}
127 \write16{91区::\the\expandafter\kcatcode\jis"7B21}
128 \write16{92区::\the\expandafter\kcatcode\jis"7C21}
129 \write16{93区::\the\expandafter\kcatcode\jis"7D21}
130 \write16{94区::\the\expandafter\kcatcode\jis"7E21}
131 \ifnum\jis"2121="8140
132 % extended Shift_JIS code, 95..120ku
133 \write16{95区(ext)::\the\expandafter\kcatcode\sjis"F040}
134 \write16{96区(ext)::\the\expandafter\kcatcode\sjis"F09F}
135 \write16{97区(ext)::\the\expandafter\kcatcode\sjis"F140}
136 \write16{98区(ext)::\the\expandafter\kcatcode\sjis"F19F}
137 \write16{117区(ext)::\the\expandafter\kcatcode\sjis"FB40}
138 \write16{118区(ext)::\the\expandafter\kcatcode\sjis"FB9F}
139 \write16{119区(ext)::\the\expandafter\kcatcode\sjis"FC40}
140 \write16{120区(ext)::\the\expandafter\kcatcode\sjis"FC9F}
141 \fi
142 \fi
143
144 % upTeX internal encoding
145
146 \write16{0x110000::\the\kcatcode"110000}% japanese-otf-uptex
147 \write16{0x120000::\the\kcatcode"120000}% japanese-otf-uptex
148 \write16{0x130000::\the\kcatcode"130000}% japanese-otf-uptex
149 \write16{0x140000::\the\kcatcode"140000}% japanese-otf-uptex
150 \write16{あ゙::\the\kcatcode"223042}% U+3042 U+3099 Kana with Voiced Sound Mark
151 \write16{か゚::\the\kcatcode"24304B}% U+304B U+309A Kana with Semi-Voiced Sound Mark
152 \write16{🇯🇵::\the\kcatcode"25EFF5}% U+1F1EF U+1F1F5 Emoji Flag Sequence
153 \write16{👶🏽::\the\kcatcode"2BF476}% U+1F476 U+1F3FD Emoji with Modifier Fitzpatrick
154 \write16{0x800030::\the\kcatcode"800030}% U+0030 U+FE0F U+20E3 Emoji Keycap Sequence
155 \write16{逸︀::\the\kcatcode"409038}% U+9038 U+FE00 Standardized Variation Sequence
156 \write16{逸󠄀::\the\kcatcode"809038}% U+9038 U+E0100 Ideographic Variation Sequence
157
158 \relax\end