Skip to content

Commit

Permalink
Enhance and correct plain fonts test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
brucemiller committed Sep 16, 2024
1 parent 1a27ba6 commit 6317280
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
Binary file modified t/fonts/plainfonts.pdf
Binary file not shown.
24 changes: 23 additions & 1 deletion t/fonts/plainfonts.tex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

\testfont{\textfont2}

Testing plain math fonts
Testing plain math fonts:
\def\sample{abc123}
\def\tester#1{%
\par{\string#1: {#1 \sample} and ${#1 \sample}$}}
Expand All @@ -64,4 +64,26 @@
\tester\bf
\tester\tt

Testing Text glyph lookup.
\font\tenbsy=cmbsy10
\font\tenmsa=msam10
\font\tenmsb=msbm10

Normal:
{\tenrm\char"10};{\tenrm\char"41}.
{\teni\char"10};{\teni\char"41}.
{\tenbf\char"10};{\tenbf\char"41}.
{\tentt\char"10};{\tentt\char"41}.
{\tensl\char"10};{\tensl\char"41}.
{\tenit\char"10};{\tenit\char"41}.

Symbol:
{\tensy\char"10};{\tensy\char"41}.
{\tenbsy\char"10};{\tenbsy\char"41}.
{\tenex\char"10};{\tenex\char"41}.

AMS:
{\tenmsa\char"10};{\tenmsa\char"41}.
{\tenmsb\char"10};{\tenmsb\char"41}.

\bye
29 changes: 26 additions & 3 deletions t/fonts/plainfonts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ but compare meanings:</p>
<p>– Font “fiverm(cmr5; select font cmr5):X<text fontsize="50%">X</text>X; hyphen=45.</p>
</para>
<para>
<p>– Font “textfont2(cmsy10; “textfont2):X<text font="symbol">𝒳</text>X; hyphen=45.</p>
<p>– Font “textfont2(cmsy10; “textfont2):X𝒳X; hyphen=45.</p>
</para>
<para>
<p>Testing plain math fonts</p>
<p>Testing plain math fonts:</p>
</para>
<para>
<p>“noop: abc123 and <Math mode="inline" tex="{abc123}" text="a * b * c * 123">
Expand Down Expand Up @@ -114,7 +114,7 @@ but compare meanings:</p>
</Math></p>
</para>
<para>
<p>“cal: abc123 and <Math mode="inline" tex="{abc123}" text="⊣ * ⌊ * ⌋ * ∞ * ∈ * ∋">
<p>“cal: abc123 and <Math mode="inline" tex="{\cal abc123}" text="⊣ * ⌊ * ⌋ * ∞ * ∈ * ∋">
<XMath>
<XMApp>
<XMTok meaning="times" role="MULOP">⁢</XMTok>
Expand Down Expand Up @@ -156,4 +156,27 @@ but compare meanings:</p>
</XMath>
</Math></p>
</para>
<para>
<p>Testing Text glyph lookup.</p>
</para>
<para>
<p>Normal:
ı;A.
<text font="italic">ζ</text>;<text font="italic">A</text>.
<text font="bold">ı</text>;<text font="bold">A</text>.
<text font="typewriter">ı</text>;<text font="typewriter">A</text>.
<text font="slanted">ı</text>;<text font="slanted">A</text>.
<text font="italic">ı</text>;<text font="italic">A</text>.</p>
</para>
<para>
<p>Symbol:
≍;𝒜.
<text font="bold">≍</text>;<text font="bold">𝒜</text>.
(;⎠.</p>
</para>
<para>
<p>AMS:
↠;⊐.
⋨;𝔸.</p>
</para>
</document>

0 comments on commit 6317280

Please sign in to comment.