Debian Codegraph @

texk/web2c/uptexdir/tests/ctlsym_num.tex

raw
1 % Copyright 2024 Japanese TeX Development Community <[email protected]>
2 % You may freely use, modify and/or distribute this file.
3 %
4 \scrollmode
5 \newlinechar=10
6
7
8 %
9 % Following runs on ptex, uptex, eptex and euptex
10 %
11 \count255=0
12
13 \count255=`♪ \relax
14 \message{P: \the\count255^^J}
15
16 \def\♪{baz}
17 \def\雪{qux}
18
19 \count255=0
20 \count255=`\♪ \relax
21 \message{Q: \the\count255. ♪\string\♪ \♪^^J}
22
23 \count255=0
24 \count255=`雪 \relax
25 \message{R: \the\count255^^J}
26 \count255=0
27 \count255=`\雪 \relax
28 \message{S: \the\count255. 雪\string\雪 \雪^^J}
29
30 \message{\expandafter\meaning\csname ♪\endcsname.^^J}
31 \message{\expandafter\meaning\csname 雪\endcsname.^^J}
32 \ifx\Uchar\undefined\else
33 \message{\expandafter\meaning\csname \Uchar\jis"2276\endcsname.^^J}
34 \message{\expandafter\meaning\csname \Uchar\jis"4063\endcsname.^^J}
35 \fi
36
37 %
38 % Following runs on euptex
39 %
40 \ifnum\jis"2121="3000
41 \ifx\Uchar\undefined
42 \else
43
44 \count1000=0
45
46 \def\🍌{foo}
47 \def\𝕯{bar}
48 \count1000=`🍌 \relax
49 \message{A: \the\count1000^^J}
50 \count1000=0
51 \count1000=`\🍌 \relax
52 \message{B: \the\count1000. 🍌\string\🍌 \🍌^^J}
53
54 \count1000=0
55 \count1000=`𝕯 \relax
56 \message{C: \the\count1000^^J}
57 \count1000=0
58 \count1000=`\𝕯 \relax
59 \message{D: \the\count1000. 𝕯 \string\𝕯 \𝕯^^J}
60
61 \message{\expandafter\meaning\csname 🍌\endcsname.^^J}
62 \message{\expandafter\meaning\csname 𝕯\endcsname.^^J}
63 \message{\expandafter\meaning\csname \Uchar"1F34C\endcsname.^^J}
64 \message{\expandafter\meaning\csname \Uchar"1D56F\endcsname.^^J}
65
66 \fi
67 \fi
68
69 \bye