Debian Codegraph @

texk/web2c/uptexdir/tests/gk256.tex

raw
1 %#!uptex
2
3 %% まずは kern が 256 を超える時:
4 % * (u)pPLtoTF はエラー発生しないが正常に格納できず→修正
5 % * (u)pTFtoPL は元々読み出し OK
6 % * (u)pTeX は元々読み出し OK
7 % ※オリジナルの TeX は max_kerns=5000 まで許容
8
9 \prebreakpenalty`…=0
10 \prebreakpenalty`・=0
11 \prebreakpenalty`。=0
12
13 \tracingonline1
14 \showboxdepth10000
15 \showboxbreadth10000
16 \ptextracingfonts2
17
18 \font\x=upjisr-h\x
19 \setbox0=\hbox{あ……あ}\showbox0
20 \box0
21
22 \font\y=gk-over256-kern\y
23 \setbox2=\hbox{あ……あ}\showbox2
24 \box2
25
26 \newfam\mx
27 \newfam\my
28 \textfont\mx=\x \scriptfont\mx=\x \scriptscriptfont\mx=\x
29 \textfont\my=\y \scriptfont\my=\y \scriptscriptfont\my=\y
30
31 \jfam\mx
32 \setbox4=\hbox{$あ……あ$}\showbox4
33 \box4
34
35 \jfam\my
36 \setbox6=\hbox{$あ……あ$}\showbox6
37 \box6
38
39 %% 次に glue が 256 を超える時:
40 % * (u)pPLtoTF は 256 を超えるとエラー→修正
41 % * (u)pTFtoPL は読み出せず→修正
42 % * (u)pTeX も正常に読み出せず→修正
43 % →新しい (u)pTeX では max_kerns*3 = 15000 まで許容してみた
44
45 \font\z=upjisg-h\z
46 \setbox0=\hbox{あ・・あ。あ}\showbox0
47 \box0
48
49 \font\w=gk-over256-glue\w
50 \setbox2=\hbox{あ・・あ。あ}\showbox2
51 \box2
52
53 \newfam\mz
54 \newfam\mw
55 \textfont\mz=\z \scriptfont\mz=\z \scriptscriptfont\mz=\z
56 \textfont\mw=\w \scriptfont\mw=\w \scriptscriptfont\mw=\w
57
58 \jfam\mz
59 \setbox4=\hbox{$あ・・あ。あ$}\showbox4
60 \box4
61
62 \jfam\mw
63 \setbox6=\hbox{$あ・・あ。あ$}\showbox6
64 \box6
65
66 \bye