| 1 |
%\scrollmode |
| 2 |
\tracingstats=1000 |
| 3 |
\noautoxspacing |
| 4 |
\newlinechar=`\^^J |
| 5 |
\font\x=ec-lmr10 \x |
| 6 |
\ifx\kanjiskip\undefined\else |
| 7 |
\ifnum\jis"2121="3000 |
| 8 |
\jfont\jpy=umin10 at 10pt\jpy |
| 9 |
\else |
| 10 |
\jfont\jpy=min10 at 10pt\jpy |
| 11 |
\fi |
| 12 |
\fi |
| 13 |
|
| 14 |
|
| 15 |
\immediate\openout1=\jobname.out |
| 16 |
\def\MSG#1{% |
| 17 |
\message{\string{MSG #1\string}}% |
| 18 |
\immediate\write17{\string{TOT #1\string}}% |
| 19 |
\immediate\write1{#1}% |
| 20 |
} |
| 21 |
\def\head#1{\message{■#1.}\par\noindent\hbox{■\null}#1.\par} |
| 22 |
\message{^^J} |
| 23 |
|
| 24 |
%================ |
| 25 |
\def\A{^^c5^^bf ſ 顛 } |
| 26 |
A: \A |
| 27 |
|
| 28 |
\MSG{\A} |
| 29 |
\show\A |
| 30 |
|
| 31 |
%================ |
| 32 |
\par |
| 33 |
\head{\string\meaning} |
| 34 |
|
| 35 |
\edef\B{\meaning\A} |
| 36 |
\meaning\B |
| 37 |
|
| 38 |
\B |
| 39 |
\MSG{\meaning\B} |
| 40 |
\show\B |
| 41 |
|
| 42 |
%================ |
| 43 |
\head{\string\jobname} |
| 44 |
\edef\C{:\jobname:} |
| 45 |
\MSG{*あ*\jobname *\C*\meaning\C*} |
| 46 |
\message{^^J} |
| 47 |
|
| 48 |
%================ |
| 49 |
\catcode`\^^c5=11 |
| 50 |
\catcode`\^^bf=11 |
| 51 |
\catcode`\^^e1=11 |
| 52 |
\catcode`\^^e3=11 |
| 53 |
\catcode`\^^81=11 |
| 54 |
\catcode`\^^82=11 |
| 55 |
|
| 56 |
\head{oneletter} |
| 57 |
|
| 58 |
\string\^^c4.\string\^^c5.\string\^^ff. |
| 59 |
\count0=`\^^c5% |
| 60 |
\MSG{\string\catcode`\string\^^c5 = \the\count0}% |
| 61 |
\count0=`^^c5% |
| 62 |
\MSG{\string\catcode`^^c5 = \the\count0}% |
| 63 |
\count0=`^^c5^^bf% |
| 64 |
\MSG{\string\catcode`^^c5^^bf = \the\count0}% |
| 65 |
\count0=`顛% |
| 66 |
\MSG{\string\catcode`顛 = \the\count0}% |
| 67 |
|
| 68 |
%================ |
| 69 |
\head{csname1} |
| 70 |
|
| 71 |
{\def\顛{hoge}\def\^^c5^^bf{piyo} |
| 72 |
\show\顛 |
| 73 |
\show\^^c5^^bf |
| 74 |
\expandafter\show\csname ^^c5^^bf\endcsname |
| 75 |
\MSG{\string\顛=>\meaning\顛} |
| 76 |
\MSG{\string\^^c5^^bf=>\meaning\^^c5^^bf} |
| 77 |
\MSG{\expandafter\string\csname ^^c5^^bf\endcsname |
| 78 |
=>\expandafter\meaning\csname ^^c5^^bf\endcsname}} |
| 79 |
|
| 80 |
\string\^^c5^^bf |
| 81 |
\expandafter\string\csname ^^c5^^bf\endcsname, |
| 82 |
\expandafter\string\csname ſ\endcsname, |
| 83 |
\expandafter\string\csname 顛\endcsname |
| 84 |
\MSG{\string\^^c5^^bf, |
| 85 |
\expandafter\string\csname ^^c5^^bf\endcsname, |
| 86 |
\expandafter\string\csname ſ\endcsname, |
| 87 |
\expandafter\string\csname 顛\endcsname.} |
| 88 |
|
| 89 |
%================ |
| 90 |
|
| 91 |
\def\あ{hoge} |
| 92 |
\message{^^J} |
| 93 |
\def\TEST#1#2{% |
| 94 |
\expandafter\def\csname#2\endcsname{piyo} |
| 95 |
\par\toks0={#2} |
| 96 |
\expandafter\string\csname #1\endcsname => \csname #1\endcsname,\par |
| 97 |
\expandafter\string\csname #2\endcsname => \csname #2\endcsname,\par |
| 98 |
\expandafter\string\csname \the\toks0\endcsname => \csname \the\toks0\endcsname. |
| 99 |
\MSG{% |
| 100 |
\expandafter\string\csname #1\endcsname => \csname #1\endcsname, |
| 101 |
\expandafter\string\csname #2\endcsname => \csname #2\endcsname. |
| 102 |
\expandafter\string\csname \the\toks0\endcsname => \csname \the\toks0\endcsname. |
| 103 |
}% |
| 104 |
} |
| 105 |
\ifnum\euc"A4A2="A4A2\relax |
| 106 |
\TEST{あ}{^^a4^^a2} |
| 107 |
\else |
| 108 |
\TEST{あ}{^^e3^^81^^82} |
| 109 |
\fi |
| 110 |
|
| 111 |
%================ |
| 112 |
\head{0xFF} |
| 113 |
\catcode"FF=11 |
| 114 |
\message{^^J} |
| 115 |
|
| 116 |
\def\^^ff^^c5^^ff^^bf{あ} |
| 117 |
\edef\E{(\string\^^ff^^c5^^ff^^bf:\meaning\^^ff^^c5^^ff^^bf)} |
| 118 |
\^^ff^^c5^^ff^^bf, \E, \string\^^ff^^c5^^ff^^bf, \meaning\E. |
| 119 |
\MSG{\^^ff^^c5^^ff^^bf, \A, \string\^^ff^^c5^^ff^^bf, \meaning\E.} |
| 120 |
|
| 121 |
\def\^^ff{い} |
| 122 |
\edef\E{(\string\^^ff :\meaning\^^ff)} |
| 123 |
\^^ff, \E, \string\^^ff, \meaning\E. |
| 124 |
\MSG{\^^ff, \E, \string\^^ff, \meaning\E.} |
| 125 |
|
| 126 |
\immediate\closeout1 |
| 127 |
|
| 128 |
%======== |
| 129 |
\head{contexts} |
| 130 |
|
| 131 |
\errorcontextlines=10000 |
| 132 |
\def\@{\A\undefined} |
| 133 |
\edef\a{^^c5^^bf a\A\noexpand\@ ſ 顛 } |
| 134 |
\edef\+#1{\noexpand\^^c5^^bf\noexpand\顛\noexpand\^^ff^^c5^^ff^^bf#1 |
| 135 |
\noexpand\^^ff\meaning\A\noexpand\^^c5^^bf\noexpand\顛} |
| 136 |
\+\a |
| 137 |
|
| 138 |
\^^ff^^c5^^ff^^bf ^^c5^^bf \^^c5^^bf ſ顛\a \^^ff ^^ff\^^c5^^bf |
| 139 |
|
| 140 |
\^^c5\^^ff\^^c4\^^fe |
| 141 |
|
| 142 |
\catcode`\^^c5=11 |
| 143 |
\catcode`\^^be=11 |
| 144 |
\catcode`\^^bf=11 |
| 145 |
\catcode`\^^bd=11 |
| 146 |
\catcode`\^^ff=11 |
| 147 |
|
| 148 |
\def\^^c5^^bf{a} |
| 149 |
\def\顛{b} |
| 150 |
\def\転{c} |
| 151 |
\message{\string\^^c5^^bf \string\^^ff^^c5} |
| 152 |
|
| 153 |
\def\b{\ž.\ſ.\Ž..\転.\顛.\貼.} |
| 154 |
\b |
| 155 |
|
| 156 |
\ž.\ſ.\Ž..\転.\顛.\貼. |
| 157 |
|
| 158 |
|
| 159 |
%======== |
| 160 |
\head{csname2} |
| 161 |
|
| 162 |
SHOW \show\ſ.\show\顛.% |
| 163 |
\expandafter\show\csname ſ\endcsname.% |
| 164 |
\expandafter\show\csname 顛\endcsname |
| 165 |
|
| 166 |
STRING \string\ſ.\string\顛.% |
| 167 |
\expandafter\string\csname ſ\endcsname.% |
| 168 |
\expandafter\string\csname 顛\endcsname |
| 169 |
|
| 170 |
MEANING \meaning\ſ.\meaning\顛.% |
| 171 |
\expandafter\meaning\csname ſ\endcsname.% |
| 172 |
\expandafter\meaning\csname 顛\endcsname.% |
| 173 |
|
| 174 |
\message{\string\^^e3^^81^^82 \string\あ} |
| 175 |
|
| 176 |
\uppercase{\immediate\write16{snow SNOW 雪}} |
| 177 |
\lowercase{\immediate\write16{snow SNOW 雪}} |
| 178 |
|
| 179 |
% check whether ^^^^0000 works or not |
| 180 |
\catcode`\@=11 |
| 181 |
\def\@empty{} |
| 182 |
\begingroup |
| 183 |
\catcode0=9 % |
| 184 |
\catcode`\^=7 % |
| 185 |
\catcode`\^^^=12 % |
| 186 |
\def\x{^^^^0000}% |
| 187 |
\expandafter\endgroup |
| 188 |
\ifx\x\@empty |
| 189 |
\def\cmd{ifx:TRUE} |
| 190 |
\else |
| 191 |
\def\cmd{ifx:FALSE} |
| 192 |
\fi |
| 193 |
\message{^^J\cmd^^J} |
| 194 |
|
| 195 |
\end |