Debian Codegraph @

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

raw
1 %%
2 %% This is file `imajlig.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% inslrmaj.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=y1;
66 draw z21--z22;
67 penlabels(1,2);
68 endchar; % end of "-"
69
70
71 cmchar "En dash";
72 beginchar(oct"173",sb#+hstretch*(x_height#),x_height#,0);
73 adjust_fit(0,0);
74 pcshiftx:=sb/2;
75 numeric alpha; alpha:=w/8;
76 pickup quill;
77 lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
78 x11=lft x1+alpha/2; y11=top y1-0.5thin;
79 x12=rt x2; y12=bot y1+0.5thin;
80 draw_triangle(11,alpha);
81 draw_rutriangle(12,alpha);
82 pickup thickstylus;
83 lft x21=pcshiftx; rt x22=w-pcshiftx; y21=y22=y1;
84 draw z21--z22;
85 penlabels(1,2);
86 endchar; % end of "--"
87
88
89 cmchar "Em dash";
90 beginchar(oct"174",sb#+hstretch*(2x_height#),x_height#,0);
91 adjust_fit(0,0);
92 pcshiftx:=sb/2;
93 numeric alpha; alpha:=w/8;
94 pickup quill;
95 lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
96 x11=lft x1+alpha/2; y11=top y1-0.5thin;
97 x12=rt x2; y12=bot y1+0.5thin;
98 draw_triangle(11,alpha);
99 draw_rutriangle(12,alpha);
100 pickup thickstylus;
101 lft x21=pcshiftx; rt x22=w-pcshiftx; y21=y22=y1;
102 draw z21--z22;
103 penlabels(1,2);
104 endchar; % end of "---"
105
106
107 cmchar "IMAJ ampersand";
108 beginchar("&", 2sb#+hstretch*(6/3x_height#), asc_height#, 0);
109 adjust_fit(0,0);
110 numeric n[];
111 path pth[];
112 pcshiftx:=sb;
113 pickup quill;
114 n10 := w-2pcshiftx; % width of character
115 %% crossbar
116 z1'=(0,h/ascratio);
117 rt x2=w-pcshiftx; y2=y1';
118 %% main bowl
119 n1 := 4/6n10; % width of bowl
120 n2 := h; % height of bowl
121 z3=(pcshiftx,0);
122 obowl(3, n1, n2);
123 z2'=(x3obc,y1');
124 z1 = (z1'--z2') intersectionpoint obinner;
125 z10o = (z2'--z2) intersectionpoint obouter;
126 z10i = (z2'--z2) intersectionpoint obinner;
127 %% wave
128 x4=x2; bot y4=0;
129 pth1 := z1{right}..z4{right};
130 %% wave/bowl
131 z20o = pth1 intersectionpoint subpath (0,2) of obouter;
132 z20i = pth1 intersectionpoint subpath (0,2) of obinner;
133 %%ductus:=true;
134 if ductus:
135 pickup stylus;
136 fi
137 fill z10o..z3minlo{-pdir}..z3maxlo{-ppdir}..z3minro{pdir}..z20o--
138 z20i..z3minri{-pdir}..z3maxli{ppdir}..z3minli{pdir}..z10i--
139 cycle;
140 draw z1--z2; % bar
141 draw pth1; % wave
142 ductus:=false;
143 penlabels(1,2,3,4,5,6,7,8,9,10,16,17,18,31,32,33);
144 endchar; % end of "&"
145