| 1 |
%あaª |
| 2 |
\tracingstats=1000 |
| 3 |
\noautoxspacing\scrollmode |
| 4 |
\tracingscantokens=1 |
| 5 |
\everyeof{\noexpand} |
| 6 |
\font\x=ec-lmtt10 \x |
| 7 |
\immediate\openout1=\jobname.out |
| 8 |
\def\MSG#1{% |
| 9 |
\message{\string{MSG #1\string}}% |
| 10 |
\immediate\write17{\string{TOT #1\string}}% |
| 11 |
\immediate\write1{#1}% |
| 12 |
} |
| 13 |
\def\head#1{\message{■#1.}\par\noindent\hbox{■\null}#1.\par} |
| 14 |
\message{^^J} |
| 15 |
\count255="80 |
| 16 |
\loop\ifnum\count255<"100 |
| 17 |
\catcode\count255=11\relax |
| 18 |
\advance\count255 1\relax |
| 19 |
\repeat |
| 20 |
|
| 21 |
%======== |
| 22 |
\head{detokenize} |
| 23 |
\def\A{^^c5^^bf ſ 顛 } |
| 24 |
|
| 25 |
\detokenize\expandafter{\meaning\A} |
| 26 |
\MSG{\detokenize\expandafter{\meaning\A}} |
| 27 |
|
| 28 |
%======== |
| 29 |
\head{scantokens} |
| 30 |
\def\c{捉^^c2^^aaª} |
| 31 |
|
| 32 |
\scantokens{\noexpand\^^a4^^a2あ^^e3^^81^^82.^^a4^^a2あ^^e3^^81^^82.\c} |
| 33 |
\def\a{\scantokens{\noexpand\^^a4^^a2あ^^e3^^81^^82.^^a4^^a2あ^^e3^^81^^82.\c}} |
| 34 |
|
| 35 |
\edef\b{\scantokens{\noexpand\^^a4^^a2あ^^e3^^81^^82.^^a4^^a2あ^^e3^^81^^82.\c}} |
| 36 |
\MSG{\a:\b:\meaning\b} |
| 37 |
|
| 38 |
\def\あ{a} |
| 39 |
\MSG{ |
| 40 |
\ifcsname あ\endcsname Y\csname あ\endcsname\else n\fi, |
| 41 |
\ifcsname ^^e3^^81^^82\endcsname Y\csname ^^e3^^81^^82\endcsname\else n\fi, |
| 42 |
\ifcsname ^^a4^^a2\endcsname Y\csname ^^a4^^a2\endcsname\else n\fi} |
| 43 |
|
| 44 |
%======== |
| 45 |
\head{pdfstrcmp} |
| 46 |
|
| 47 |
\MSG{あ \pdfstrcmp{あ}{^^e3^^81^^82} ^^e3^^81^^82} |
| 48 |
\MSG{あ \pdfstrcmp{あ}{^^a4^^a2} ^^a4^^a2} |
| 49 |
\MSG{捉 \pdfstrcmp{捉}{^^c2^^aa} ^^c2^^aa} |
| 50 |
\MSG{捉 \pdfstrcmp{捉}{ª} ^^c2^^aa} |
| 51 |
\MSG{ª \pdfstrcmp{ª}{^^c2^^aa} ^^c2^^aa} |
| 52 |
|
| 53 |
%======== |
| 54 |
\head{other pdf* util.} |
| 55 |
|
| 56 |
\MSG{\detokenize\expandafter{\pdffiledump length 20{\jobname.tex}}} |
| 57 |
|
| 58 |
\MSG{\pdfmdfivesum{}} |
| 59 |
\MSG{\pdfmdfivesum{あ}} |
| 60 |
\MSG{\pdfmdfivesum{^^e3^^81^^82}} |
| 61 |
\MSG{\pdfcreationdate} |
| 62 |
\MSG{\pdffilemoddate{\jobname.tex}} |
| 63 |
\MSG{\pdffilesize{\jobname.tex}} |
| 64 |
\MSG{\the\pdfelapsedtime} |
| 65 |
\MSG{\expanded{^^c2^^aaª捉.^^e3^^81^^82あ^^a4^^a2}} |
| 66 |
|
| 67 |
\immediate\closeout1 |
| 68 |
\bye |