| 1 |
%#!euptex |
| 2 |
\font\cmr=cmr10\cmr |
| 3 |
\ifx\kanjiskip\undefined\else |
| 4 |
\ifnum\jis"2121="3000 |
| 5 |
\jfont\jpy=umin10 at 10pt\jpy |
| 6 |
\else |
| 7 |
\jfont\jpy=min10 at 10pt\jpy |
| 8 |
\fi |
| 9 |
\fi |
| 10 |
|
| 11 |
\def\TEST#1{{\setbox0=\vbox{\noindent |
| 12 |
ああああああ% |
| 13 |
\ifx\scantokens\undefined\else\scantokens\fi |
| 14 |
{#1}}\showboxbreadth10000\showboxdepth10000\tracingonline1\showbox0}} |
| 15 |
|
| 16 |
\message{TEST} |
| 17 |
|
| 18 |
\chardef\CR=`す |
| 19 |
\TEST{す{\kcatcode`す=18 す}「。} |
| 20 |
\TEST{\CR。} |
| 21 |
\ifx\Ucharcat\undefined\else |
| 22 |
\TEST{\Ucharcat`す 16。} |
| 23 |
\TEST{\Ucharcat`す 17。} |
| 24 |
\TEST{\Ucharcat`す 18。} |
| 25 |
\TEST{\Ucharcat`す 19。} |
| 26 |
\fi |
| 27 |
|
| 28 |
\TEST{す。} |
| 29 |
\TEST{す\char\kuten"0103} |
| 30 |
\ifx\kchar\undefined\else |
| 31 |
\TEST{す\kchar\kuten"0103} |
| 32 |
\fi |
| 33 |
|
| 34 |
\TEST{\char\kuten"0419。} |
| 35 |
\TEST{\char\kuten"0419\char\kuten"0103} |
| 36 |
\ifx\kchar\undefined\else |
| 37 |
\TEST{\char\kuten"0419\kchar\kuten"0103} |
| 38 |
|
| 39 |
\kchardef\KR=`す |
| 40 |
\TEST{\KR。} |
| 41 |
\TEST{\kchar\kuten"0419。} |
| 42 |
\TEST{\kchar\kuten"0419\char\kuten"0103} |
| 43 |
\TEST{\kchar\kuten"0419\kchar\kuten"0103} |
| 44 |
\fi |
| 45 |
|
| 46 |
{\kcatcode"E0EA=15% 0xE0EA:: UTF-16:PUA(U+E0EA), EUC-JP:琲(U+7432), Shift_JIS:瑕(U+7455) |
| 47 |
\ifx\kchar\undefined\else |
| 48 |
\message{KCHAR"E0EA, kcatcode=15} |
| 49 |
\def\S{\kchar"E0EA} |
| 50 |
\TEST{い\kchar"E0EA。} |
| 51 |
\TEST{\kchar"E0EA。} |
| 52 |
\TEST{\relax\kchar"E0EA。} |
| 53 |
\TEST{\vrule\kchar"E0EA。} |
| 54 |
\TEST{b\kchar"E0EA。} |
| 55 |
\TEST{い\S。} |
| 56 |
\fi |
| 57 |
|
| 58 |
\message{CHAR"E0EA, kcatcode=15} |
| 59 |
\def\S{\char"E0EA} |
| 60 |
\TEST{い\char"E0EA。} |
| 61 |
\TEST{\char"E0EA。} |
| 62 |
\TEST{\relax\char"E0EA。} |
| 63 |
\TEST{\vrule\char"E0EA。} |
| 64 |
\TEST{b\char"E0EA。} |
| 65 |
\TEST{い\S。} |
| 66 |
|
| 67 |
\ifx\kchardef\undefined\else |
| 68 |
\message{KCHARDEF"E0EA, kcatcode=15} |
| 69 |
\kchardef\KA="E0EA |
| 70 |
\TEST{い\KA 。} |
| 71 |
\TEST{\KA 。} |
| 72 |
\TEST{\relax\KA 。} |
| 73 |
\TEST{\vrule\KA 。} |
| 74 |
\TEST{b\KA 。} |
| 75 |
\TEST{い\S。} |
| 76 |
\fi |
| 77 |
|
| 78 |
\message{CHARDEF"E0EA, kcatcode=15} |
| 79 |
\chardef\CA="E0EA |
| 80 |
\TEST{い\CA 。} |
| 81 |
\TEST{\CA 。} |
| 82 |
\TEST{\relax\CA 。} |
| 83 |
\TEST{\vrule\CA 。} |
| 84 |
\TEST{b\CA 。} |
| 85 |
} |
| 86 |
|
| 87 |
%% prebreakpenalty, postbreakpenalty |
| 88 |
\ifx\kchar\undefined\else\ifnum\jis"2121="3000 |
| 89 |
|
| 90 |
\showboxbreadth10000 |
| 91 |
\showboxdepth10000 |
| 92 |
|
| 93 |
% default |
| 94 |
\setbox0\hbox{さㇷ゚サしか゚シすあ゙スせ𛂦゙セそ𛂱゚ソたっタ} |
| 95 |
\showbox0 |
| 96 |
|
| 97 |
% prebreakpenalty |
| 98 |
\prebreakpenalty`ㇷ=41 |
| 99 |
\prebreakpenalty`か=42 |
| 100 |
\prebreakpenalty`あ=43 |
| 101 |
\prebreakpenalty`𛂦=44 |
| 102 |
\prebreakpenalty`𛂱=45 |
| 103 |
\prebreakpenalty`っ=46 |
| 104 |
\setbox1\hbox{たㇷ゚タちか゚チつあ゙ツて𛂦゙テと𛂱゚トなっナ} |
| 105 |
\showbox1 |
| 106 |
|
| 107 |
% postbreakpenalty |
| 108 |
\postbreakpenalty`ㇷ=51 |
| 109 |
\postbreakpenalty`か=52 |
| 110 |
\postbreakpenalty`あ=53 |
| 111 |
\postbreakpenalty`𛂦=54 |
| 112 |
\postbreakpenalty`𛂱=55 |
| 113 |
\postbreakpenalty`っ=56 |
| 114 |
\setbox2\hbox{なㇷ゚ナにか゚ニぬあ゙ヌね𛂦゙ネの𛂱゚ノはっハ} |
| 115 |
\showbox2 |
| 116 |
|
| 117 |
% reset |
| 118 |
\prebreakpenalty`ㇷ=0 |
| 119 |
\postbreakpenalty`か=0 |
| 120 |
\prebreakpenalty`あ=0 |
| 121 |
\postbreakpenalty`𛂦=0 |
| 122 |
\prebreakpenalty`𛂱=0 |
| 123 |
\postbreakpenalty`っ=0 |
| 124 |
\setbox3\hbox{はㇷ゚ハひか゚ヒふあ゙フへ𛂦゙ヘほ𛂱゚ホまっマ} |
| 125 |
\showbox3 |
| 126 |
|
| 127 |
\fi |
| 128 |
\fi |
| 129 |
|
| 130 |
\bye |
| 131 |
|