| 1 |
%#!eptex |
| 2 |
|
| 3 |
\catcode`\_=12 \catcode`\@=11 |
| 4 |
\def\typeout{\immediate\write17} |
| 5 |
\begingroup |
| 6 |
\catcode`\P=12 \catcode`\T=12 |
| 7 |
\lowercase{ |
| 8 |
\gdef\rem@pt#1.#2PT{#1\ifnum#2>\z@.#2\fi} |
| 9 |
} |
| 10 |
\endgroup |
| 11 |
\def\strip@pt{\expandafter\rem@pt\the} |
| 12 |
|
| 13 |
\def\TFC#1{\typeout{code #1: \iffontchar\jfont#1 T\else F\fi}} |
| 14 |
\def\TFT#1#2{\typeout{type \the\numexpr-#1-1\relax: |
| 15 |
\iffontchar#2#1 |
| 16 |
(\strip@pt\fontcharht#2#1+\strip@pt\fontchardp#2#1)*\strip@pt\fontcharwd#2#1 |
| 17 |
\else F\fi |
| 18 |
}} |
| 19 |
|
| 20 |
\TFC{"A1A1} |
| 21 |
\TFC{"FEFE} |
| 22 |
\TFC{"E0A1} |
| 23 |
\TFC{"FCFC} |
| 24 |
\TFC{"8140} |
| 25 |
\TFC{"9FFC} |
| 26 |
|
| 27 |
\typeout{TEST: \string\jfont: \fontname\sevenmin} |
| 28 |
\sevenmin |
| 29 |
\count@=-1 |
| 30 |
\loop \ifnum\count@>-15 |
| 31 |
\TFT\count@\jfont\advance\count@\m@ne |
| 32 |
\repeat |
| 33 |
|
| 34 |
\typeout{TEST: \string\tfont: \fontname\tfont} |
| 35 |
\count@=-1 |
| 36 |
\loop \ifnum\count@>-15 |
| 37 |
\TFT\count@\tfont\advance\count@\m@ne |
| 38 |
\repeat |
| 39 |
|
| 40 |
\protected\def\NEXT{\ten=1 |
| 41 |
\loop\ifnum\ten<95 |
| 42 |
\ifdim\fontcharwd\zs\kuten\numexpr\ku*256+\ten=10pt |
| 43 |
\global\count@=\kuten\numexpr\ku*256+\ten |
| 44 |
\global\count0\ku \global\count2\ten |
| 45 |
\global\ku=95 \ten=95 |
| 46 |
\fi |
| 47 |
\advance\ten1 |
| 48 |
\repeat} |
| 49 |
\count@=0 |
| 50 |
\jfont\zs=zero_search |
| 51 |
\newcount\ku |
| 52 |
\newcount\ten |
| 53 |
\ku=1 |
| 54 |
\loop\ifnum\ku<95 |
| 55 |
{\ifnum11=\ifnum\ku>8 1\else0\fi\ifnum\ku<16 1\else 0\fi\else\NEXT\fi}% |
| 56 |
\advance\ku1 |
| 57 |
\repeat |
| 58 |
\kansujichar1=\count@ |
| 59 |
\typeout{\kansuji1(internal code: \the\count@, \the\count0-ku \the\count2-ten)} |
| 60 |
|
| 61 |
\bye |