Debian Codegraph @

texmf-dist/fonts/source/public/bookhands/iminlig.mf

raw
1 %%
2 %% This is file `iminlig.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% inslrmin.dtx (with options: `lig')
8 %%
9 %% Copyright 1999 Peter R. Wilson
10 %%
11 %% This program is provided under the terms of the
12 %% LaTeX Project Public License distributed from CTAN
13 %% archives in directory macros/latex/base/lppl.txt.
14 %%
15 %% Author: Peter Wilson (CUA)
16 %% now at: [email protected]
17 %%
18
19
20 ligtable "`": "`"=:oct"134";
21 ligtable "'": "'"=:oct"042"; %% , "?" kern 2u#, "!" kern 2u#;
22
23 ligtable "-": "-"=:oct"173";
24 ligtable oct"173": "-"=:oct"174";
25
26 %%%%ligtable "f": "i"=:oct"014";
27
28
29 cmchar "Closing quotes";
30 beginchar(oct"042",2sb#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
31 adjust_fit(0,0);
32 pcshiftx:=sb;
33 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=y2=h;
34 x2=x1-(2hstretch*dot_size);
35 draw_pcomma(1,dot_size,comma_width); % right
36 draw_pcomma(2,dot_size,comma_width); % left
37 penlabels(1,2);
38 endchar; % end of "''"
39
40
41 cmchar "Opening quotes";
42 beginchar(oct"134",2sb#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
43 adjust_fit(0,0);
44 pcshiftx:=sb;
45 x1=pcshiftx+(0.5hstretch*dot_size); y1=y2=h;
46 x2=x1+(2hstretch*dot_size);
47 draw_plq(1,dot_size,comma_width); % left
48 draw_plq(2,dot_size,comma_width); % right
49 penlabels(1,2);
50 endchar; % end of "``"
51
52
53 cmchar "Hyphen";
54 beginchar("-",sb#+hstretch*(0.8x_height#),x_height#,0);
55 adjust_fit(0,0);
56 pcshiftx:=sb/2;
57 numeric alpha; alpha:=w/8;
58 %%pickup quill;
59 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
60 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
61 %%x12=rt x2; y12=bot y1+0.5thin;
62 %%draw_triangle(11,alpha);
63 %%draw_rutriangle(12,alpha);
64 pickup thickstylus;
65 lft x21=pcshiftx; rt x22=w-pcshiftx; y21=y22=1/2h;
66 draw z21--z22;
67 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
68 penlabels(1,2);
69 endchar; % end of "-"
70
71
72 cmchar "En dash";
73 beginchar(oct"173",sb#+hstretch*(x_height#),x_height#,0);
74 adjust_fit(0,0);
75 pcshiftx:=sb/2;
76 numeric alpha; alpha:=w/8;
77 pickup quill;
78 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
79 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
80 %%x12=rt x2; y12=bot y1+0.5thin;
81 %%draw_triangle(11,alpha);
82 %%draw_rutriangle(12,alpha);
83 pickup thickstylus;
84 lft x21=pcshiftx; rt x22=w-pcshiftx; y21=y22=1/2h;
85 draw z21--z22;
86 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
87 penlabels(1,2);
88 endchar; % end of "--"
89
90
91 cmchar "Em dash";
92 beginchar(oct"174",sb#+hstretch*(2x_height#),x_height#,0);
93 adjust_fit(0,0);
94 pcshiftx:=sb/2;
95 numeric alpha; alpha:=w/8;
96 pickup quill;
97 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
98 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
99 %%x12=rt x2; y12=bot y1+0.5thin;
100 %%draw_triangle(11,alpha);
101 %%draw_rutriangle(12,alpha);
102 pickup thickstylus;
103 lft x21=pcshiftx; rt x22=w-pcshiftx; y21=y22=1/2h;
104 draw z21--z22;
105 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
106 penlabels(1,2);
107 endchar; % end of "---"
108
109
110 cmchar "IMIN ampersand";
111 beginchar("&", 2sb#+hstretch*(5/4x_height#), asc_height#, 0);
112 adjust_fit(0,0);
113 numeric n[];
114 path pth[];
115 pcshiftx:=sb;
116 pickup quill;
117 %% E part
118 n1 := w-pcshiftx; % actual letter width
119 n2 := 4/8n1; % width of bowl
120 x1 = pcshiftx + 5/8n2; top y1=h;
121 lft x2 = pcshiftx; y2 = 1/2h;
122 x3 = pcshiftx + 1/2n2; bot y3 = 0;
123 rt x4 = pcshiftx + n2; y4 = 1/4h;
124 z98=(0,3/8h); z99=(w,y98);
125 pth1 := z98--z99;
126 pth2 := z1{left}..z2{down}..z3{right};
127 z7 = pth1 intersectionpoint pth2;
128 rt x9 = w-pcshiftx; y9 = 3/4h;
129 z8=6/8[z7,z9];
130
131 %% T part
132 x18=x8; bot y18=0;
133 x19=5/8[x18,x9];
134 y19=1/8h;
135
136 %%ductus:=true;
137 if ductus:
138 pickup stylus;
139 fi
140 %% E part
141 draw z7{pdir}..z1{left}..z2{down}..z3{right}..z4{up}..z8{right};
142 draw z7{pdir}..z8{right}..z9{pdir};
143 %% T bowl
144 draw z8{left}..z4{down}..z18{right}..z19{pdir};
145 ductus:=false;
146 penlabels(1,2,3,4,5,6,7,8,9,10,16,17,18,19,31,32,33);
147 endchar; % end of "&"
148