1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18\bgroup
19
20\catcodeB=\begingroupcatcode
21\catcodeE=\endgroupcatcode
22\catcode.=\escapecatcode
23
24.catcode .{ 12 .xdef .letterleftbrace B.string{E
25.catcode .} 12 .xdef .letterrightbrace B.string}E
26.catcode . 12 .xdef .letterampersand B.stringE
27.catcode .< 12 .xdef .letterless B.string<E
28.catcode .> 12 .xdef .lettermore B.string>E
29.catcode .# 12 .xdef .letterhash B.string#E
30.catcode ." 12 .xdef .letterdoublequote B.string"E
31.catcode . 12 .xdef .lettersinglequote B.stringE
32.catcode .$ 12 .xdef .letterdollar B.string$E
33.catcode .
34.catcode . 12 .xdef .letterhat B.stringE
35.catcode . 12 .xdef .letterunderscore B.stringE
36.catcode . 12 .xdef .letterbar B.stringE
37.catcode . 12 .xdef .lettertilde B.stringE
38.catcode .\ 12 .xdef .letterbackslash B.string\E
39.catcode . 12 .xdef .letterslash B.stringE
40.catcode .? 12 .xdef .letterquestionmark B.string?E
41.catcode .! 12 .xdef .letterexclamationmark B.string!E
42.catcode .@ 12 .xdef .letterat B.string@E
43.catcode .: 12 .xdef .lettercolon B.string:E
44
45.catcode .( 12 .xdef .letterleftparenthesis B.string(E
46.catcode .) 12 .xdef .letterrightparenthesis B.string)E
47.catcode .[ 12 .xdef .letterleftbracket B.string[E
48.catcode .] 12 .xdef .letterrightbracket B.string]E
49
50 .global .let .letterescape .letterbackslash
51 .global .let .letterbgroup .letterleftbrace
52 .global .let .letteregroup .letterrightbrace
53 .global .let .letteropenbrace .letterleftbrace
54 .global .let .letterclosebrace .letterrightbrace
55
56.egroup
57
58\bgroup
59
60\catcode=\lettercatcode
61
62
63
64\xdef\_s_t_x_{\expandafter\string\Uchar2}
65\xdef\_e_t_x_{\expandafter\string\Uchar3}
66\xdef\_e_o_t_{\expandafter\string\Uchar4}
67
68
69
70\egroup
71
72
73
74
75
76
77
78
79
80
81
82\protected\def\uncatcodespecials {\setcatcodetable\nilcatcodes \uncatcodespacetokens}
83\protected\def\setnaturalcatcodes {\setcatcodetable\nilcatcodes}
84\protected\def\setnormalcatcodes {\setcatcodetable\ctxcatcodes}
85\protected\def\uncatcodecharacters {\setcatcodetable\nilcatcodes}
86\protected\def\uncatcodeallcharacters{\setcatcodetable\nilcatcodes}
87
88\protected\def\uncatcodespacetokens
89 {\catcode\spaceasciicode \spacecatcode
90 \catcode\tabasciicode \spacecatcode
91 \catcode\formfeedasciicode \endoflinecatcode
92 \catcode\endoflineasciicode\endoflinecatcode
93 \catcode\delasciicode \ignorecatcode}
94
95
96
97
98
99
100
101
102\newtoks\everyverbosechacters
103
104\protected\def\setverbosecscharacter#1
105 {\edef#1{\string#1}}
106
107\protected\def\setverbosecscharacters
108 {\the\everyverbosechacters}
109
110\bgroup
111
112
113
114 \catcode\barasciicode \activecatcode
115 \catcode\tildeasciicode\activecatcode
116
117 \global \everyverbosechacters =
118 {\setverbosecscharacter \setverbosecscharacter
119 \setverbosecscharacter\|\setverbosecscharacter\~
120 \setverbosecscharacter\:\setverbosecscharacter\;
121 \setverbosecscharacter\+\setverbosecscharacter\-
122 \setverbosecscharacter\[\setverbosecscharacter\]
123 \setverbosecscharacter\.\setverbosecscharacter\\
124 \setverbosecscharacter\)\setverbosecscharacter\(
125 \setverbosecscharacter\0\setverbosecscharacter\1
126 \setverbosecscharacter\2\setverbosecscharacter\3
127 \setverbosecscharacter\4\setverbosecscharacter\5
128 \setverbosecscharacter\6\setverbosecscharacter\7
129 \setverbosecscharacter\8\setverbosecscharacter\9
130 \setverbosecscharacter\n\setverbosecscharacter\s
131 \setverbosecscharacter\/}
132
133\egroup
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\def\rescan #1{\scantokens{#1\ignorespaces}}
197\def\rescanwithsetup#1#2{\begingroup\directsetup{#1}\scantokens{#2\ignorespaces}\endgroup}
198
199\ifx\scantextokens\undefined \else
200 \def\rescan #1{\scantextokens{#1}}
201 \def\rescanwithsetup#1#2{\begingroup\directsetup{#1}\scantextokens{#2}\endgroup}
202\fi
203
204\endinput
205 |