Debian Codegraph @

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

raw
1 %%
2 %% This is file `hminlig.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% humanist.dtx (with options: `lig')
8 %%
9 %% Author: Peter Wilson (CUA) now at [email protected]
10 %% (or [email protected])
11 %% Copyright 2002, 2003 Peter R. Wilson
12 %%
13 %% This work may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either
15 %% version 1.3 of this license or (at your option) any
16 %% later version.
17 %% The latest version of the license is in
18 %% http://www.latex-project.org/lppl.txt
19 %% and version 1.3 or later is part of all distributions of
20 %% LaTeX version 2003/06/01 or later.
21 %%
22 %% This work has the LPPL maintenance status "author-maintained".
23 %%
24 %% This work consists of the files listed in the README file.
25 %%
26
27
28 ligtable "`": "`"=:oct"134";
29 ligtable "'": "'"=:oct"042"; %% , "?" kern 2u#, "!" kern 2u#;
30
31 ligtable "-": "-"=:oct"173";
32 ligtable oct"173": "-"=:oct"174";
33
34 ligtable "c": "t"=:oct"014";
35 ligtable "s": "t"=:oct"015";
36
37 cmchar "HMIN ae conjunction";
38 beginchar(oct "032",
39 2sb#+hstretch*(18/11x_height#),
40 x_height#, 0);
41 adjust_fit(0,0);
42 pcshiftx := sb;
43 numeric n[];
44 path pth[];
45 pair pr[];
46 numeric rta, lfte; % right and left limits of a & e respectively
47 pickup quill;
48
49 z999=(0,0); n999 = rt x999 - lft x999; % width of vertical stroke
50 rta := 1/2w + n999 + pcshiftx;
51
52 %%% The "a"
53 n1 := rta - 2pcshiftx -jut; % effective letter width
54 %% "stem"
55 rt x1 = rta - pcshiftx-jut; top y1=h;
56 x2 = x1; bot y2=0;
57 z16 = 1/6[z2,z1];
58 rt x6 = x16; y6=y16;
59 lft x4 = pcshiftx; y4 = 1/2h;
60 %% stem path
61 pth1 := z1{down}..z2;
62 pr1 := direction 1 of pth1;
63 z20 = z2 shifted -10pr1;
64
65 z11 = point 3/13 of pth1; z15 = point 11/13 of pth1;
66 lft x13 = pcshiftx; y13=1/4h;
67
68 %%% The "e"
69
70 lfte = lft x11 - pcshiftx;
71
72 n51 := w-pcshiftx - lfte; % actual letter width
73 n52 := 7/8n51; % width of bowl
74 x51 = lfte + pcshiftx + 5/8n52; top y51=h;
75 lft x52 = lfte + pcshiftx; y52 = 1/2h;
76 x53 = lfte + pcshiftx + 1/2n52; bot y53 = 0;
77 rt x54 = lfte + pcshiftx + n52; y54 = 1/4h;
78 z98=(lfte,5/8h); z99=(2w,y98);
79 pth51 := z98--z99;
80 pth52 := z51{left}..z52{down}..z53{right};
81 z57 = pth51 intersectionpoint pth52;
82 rt x67 = w; y67=y57;
83 rt x58 =lfte + pcshiftx+n52; y58=y52;
84 pth53 := z51{right}..z58{down}..z53{left};
85 z59 = pth51 intersectionpoint pth53;
86
87 %%ductus:=true;
88 if ductus:
89 pickup stylus;
90 else:
91 % draw the a stem
92 draw pth1;
93 draw_roundserif(1,2,srad);
94 %% draw_roundserif(2,20,srad);
95 % draw the a bowl
96 draw z15{-pdir}..z13{up}..z57{right};
97 % draw the e
98 draw z59{up}..z51{left}..z52{down}..z53{right}..z54{pdir};
99 draw z57--z67;
100 fi
101 ductus:=false;
102 penlabels(1,2,3,4,5,6,7,8,11,12,13,14,15,100);
103 penlabels(51,52,53,54,55,56,57,58,59,67,70,98,99,100);
104 endchar; % end "ae"
105
106 cmchar "HMIN AE conjunction";
107 beginchar(oct "035",
108 %% sb#+caprat*hstretch*(14/18x_height#),
109 sb#+caprat*hstretch*(22/18x_height#),
110 caprat*x_height#, 0);
111 adjust_fit(0,0);
112 pcshiftx := sb;
113 numeric pcshifte;
114 numeric n[];
115 path pth[];
116 pickup quill;
117 x100 = 0;
118 n1 = rt x100 - lft x100;
119
120 %% the E
121 %% stem
122 pcshifte = 7/16w;
123 lft x1 = pcshifte+n1; top y1 = h;
124 x2 = x1; bot y2=0;
125 %% bars
126 lft x3 = pcshifte; y3 = y1; rt x4 = w-pcshiftx; y4=y3;
127 x5=x1; y5 = 1/2[y1,y2]; x6 = x4; y6 = y5;
128 x7 = x3; y7 = y2; x8 = x4; y8=y7;
129
130 %% bottom left A leg
131 lft x52 = pcshiftx; bot y52=0;
132 z62 = whatever[z52,z1]; y62=y5;
133
134 %%ductus:=true;
135 if ductus:
136 pickup stylus;
137 fi
138 draw z1--z2; % stem
139 draw z3--z4; draw z5--z6; draw z7--z8;
140 draw z52--z1; draw z62--z5; % the A
141 ductus:=false;
142 penlabels(1,2,3,4,5,6,7,8,9,17,70,100);
143 endchar; % end "AE"
144
145
146 cmchar "The ct ligature";
147 beginchar(oct"014", 2sb#+hstretch*(20/11x_height#),
148 asc_height#, 0);
149 adjust_fit(0,0);
150 pcshiftx := sb;
151 numeric n[];
152 path pth[];
153 pair vc[];
154 pickup quill;
155
156 %%%%%%%%%%% C
157
158 n1:=1/2(w-2pcshiftx); % actual letter width
159 n2 := h/ascratio; % x-height
160 x1=pcshiftx + 1/2n1; top y1 = n2;
161 lft x2 = pcshiftx; y2 = 1/2n2;
162 x3 = x1; bot y3 = 0;
163 rt x4 = n1; y4 = 1/4n2;
164 x6 = x4;
165 %%y6 = 3/4n2;
166 top y6 = y1;
167 pth1 := z6..z1{left}..z2{down}..z3{right}..z4{pdir};
168
169 %%%%%%%%%%%%% T
170
171 %% bar
172 top y33=n2; n3 := n2 - top y33;
173 %%lft x31 = n1+pcshiftx;
174 lft x31 = n1;
175 rt x32=w-pcshiftx;
176 %%top y31 = y33-n3; bot y32=y33+n3;
177 %%top y31 = y33-n3; y32=y33;
178 y31 = y32 = y33;
179 x33=1/2[x31,x32];
180 pth2 := z31--z32; % T bar
181
182 n4 := top y33 - y33;
183 x34 = x33; bot y34 = 2n4;
184 rt x36 = w - pcshiftx; bot y36 = n4;
185 x35 = 1/2[x34,x36]; bot y35 = 0;
186 pth3 := z33--z34..z35..z36; % T stem
187
188 %%%%%%%%%%%%%%%%% Ligature
189
190 z51=z6;
191 z55=z33;
192 x53 = 1/2[x51,x55];
193 top y53 = h;
194 vc51 := direction 0 of pth1;
195 vc55 := direction 0 of pth3;
196 pth4 := z51{vc51}..z53{right}..z55{vc55}; % loop
197 %%ductus:=true;
198 if ductus:
199 pickup stylus;
200 fi
201 draw pth1; % C
202 draw pth2; % T bar
203 draw pth3; % T bowl
204 draw pth4; % ligature loop
205 ductus:=false;
206 penlabels(1,2,3,4,5,6,14,16,17,18,31,32,33,34,35,36,100);
207 endchar; % end of "ct"
208
209
210 cmchar "The st ligature";
211 beginchar(oct"015", 2sb#+hstretch*(15/11x_height#+jut#),
212 asc_height#, 0);
213 adjust_fit(0,0);
214 pcshiftx := sb;
215 numeric n[];
216 path pth[];
217 pair vc[];
218 pickup quill;
219 %%%%%%%%%%% S
220
221 n1:=3/7(w-2pcshiftx-jut); % actual letter width
222 n2 := h/ascratio; % x-height
223
224 %% stem
225 lft x1=lft x2=pcshiftx+jut; top y1=n2; bot y2=0;
226 %% flick
227 x4=x2; y4 = 1/2n1;
228 %%%%%%%%%%%%% T
229
230 %% bar
231 top y33=n2; n3 := n2 - top y33;
232 %%lft x31 = n1+pcshiftx;
233 lft x31 = n1;
234 rt x32=w-pcshiftx;
235 %%top y31 = y33-n3; bot y32=y33+n3;
236 %%top y31 = y33-n3; y32=y33;
237 y31 = y32 = y33;
238 x33=1/2[x31,x32];
239 pth2 := z31--z32; % T bar
240
241 n4 := top y33 - y33;
242 x34 = x33; bot y34 = 2n4;
243 rt x36 = w - pcshiftx; bot y36 = n4;
244 x35 = 1/2[x34,x36]; bot y35 = 0;
245 pth3 := z33--z34..z35..z36; % T stem
246
247 %%%%%%%%%%%%%%%%% Ligature
248
249 z51=z4;
250 z55=z33;
251 x53 = 5/8[x51,x55];
252 top y53 = h;
253 vc51 := up;
254 vc55 := direction 0 of pth3;
255 pth4 := z51{vc51}...z53{right}..z55{vc55}; % loop
256 %%ductus:=true;
257 if ductus:
258 pickup stylus;
259 fi
260 draw z1--z2; % S stem
261 draw_flatserif(1,2,srad);
262 draw_roundserif(2,1,srad);
263 draw pth2; % T bar
264 draw pth3; % T bowl
265 draw pth4; % ligature loop
266 ductus:=false;
267 penlabels(1,2,3,4,5,6,14,16,17,18,31,32,33,34,35,36,100);
268 endchar; % end of "st"
269
270
271 cmchar "Closing quotes";
272 beginchar(oct"042",2sb#+hstretch*(comma_width#+3dot_size#),7/8asc_height#,0);
273 adjust_fit(0,0);
274 pcshiftx:=sb;
275 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=y2=h;
276 x2=x1-(2hstretch*dot_size);
277 draw_pcomma(1,dot_size,comma_width); % right
278 draw_pcomma(2,dot_size,comma_width); % left
279 penlabels(1,2);
280 endchar; % end of "''"
281
282
283 cmchar "Opening quotes";
284 beginchar(oct"134",2sb#+hstretch*(comma_width#+3dot_size#),7/8asc_height#,0);
285 adjust_fit(0,0);
286 pcshiftx:=sb;
287 x1=pcshiftx+(0.5hstretch*dot_size); y1=y2=h;
288 x2=x1+(2hstretch*dot_size);
289 draw_plq(1,dot_size,comma_width); % left
290 draw_plq(2,dot_size,comma_width); % right
291 penlabels(1,2);
292 endchar; % end of "``"
293
294
295 cmchar "Hyphen";
296 beginchar("-",sb#+hstretch*(0.8x_height#),x_height#,0);
297 adjust_fit(0,0);
298 pcshiftx:=sb/2;
299 numeric alpha; alpha:=w/8;
300 pickup threequarterquill;
301 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
302 z31 = z21 shifted (-jut*pdir);
303 draw z21--z22;
304 draw z31--z21;
305 draw_flatserif(22,21,srad);
306 penlabels(1,2);
307 endchar; % end of "-"
308
309
310 cmchar "En dash";
311 beginchar(oct"173",sb#+hstretch*(x_height#),x_height#,0);
312 adjust_fit(0,0);
313 pcshiftx:=sb/2;
314 numeric alpha; alpha:=w/8;
315 pickup threequarterquill;
316 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
317 z31 = z21 shifted (-jut*pdir);
318 draw z21--z22;
319 %%draw_roundserif(21,22,srad);
320 draw z31--z21;
321 draw_flatserif(22,21,srad);
322 penlabels(1,2);
323 endchar; % end of "--"
324
325
326 cmchar "Em dash";
327 beginchar(oct"174",sb#+hstretch*(2x_height#),x_height#,0);
328 adjust_fit(0,0);
329 pcshiftx:=sb/2;
330 numeric alpha; alpha:=w/8;
331 pickup threequarterquill;
332 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
333 z31 = z21 shifted (-jut*pdir);
334 draw z21--z22;
335 %%draw_roundserif(21,22,srad);
336 draw z31--z21;
337 draw_flatserif(22,21,srad);
338 penlabels(1,2);
339 endchar; % end of "---"
340
341
342 cmchar "HMIN ampersand";
343 beginchar("&", 2sb#+hstretch*(15/11x_height#+2jut#), asc_height#, 0);
344 adjust_fit(0,0);
345 numeric n[];
346 path pth[];
347 pcshiftx:=sb;
348 pickup quill;
349 %% alpha looking part
350 n1 := w-2pcshiftx-jut; % actual letter width
351 n2 := h/ascratio; % x-height
352 n3 := 16/16n2; % height of alpha
353 rt x1 = w-pcshiftx; bot y1=0;
354
355 x3 = pcshiftx + 12/16n1; y3 = 1/2n2;
356
357 lft x5 = pcshiftx + thick; y5 = 1/2[n2,h];
358 rt x7 = lft x5 + 1/2n1; y7 = y5;
359 x6 = 1/2[x5,x7]; top y6 = h;
360
361 lft x9 = pcshiftx; y9 = 1/2n2;
362 rt x10 = pcshiftx + 1/2n1; bot y10 = 0;
363
364 rt x12 = w - pcshiftx; y12 = y7;
365
366 x4 = x6; y4 = 1/2[y9,y5];
367
368 pth1 = z1..z4..z5{up}..z6{right}..z7{down}..z9{down}..z10{right}..{up}z12;
369
370 %%ductus:=true;
371 if ductus:
372 pickup stylus;
373 fi
374 draw pth1;
375 ductus:=false;
376 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,16,17,18,19,21,22,23,24,25);
377 endchar; % end of "&"
378