Debian Codegraph @

texmf-dist/fonts/source/public/amsfonts/symbols/asymbols.mf

raw
1 %% filename: asymbols.mf
2 %% version: 2.2
3 %% date: 1995/01/04
4 %%
5 %% American Mathematical Society
6 %% Technical Support
7 %% Publications Technical Group
8 %% 201 Charles Street
9 %% Providence, RI 02904
10 %% USA
11 %% tel: (401) 455-4080
12 %% (800) 321-4267 (USA and Canada only)
13 %% fax: (401) 331-3842
14 %% email: [email protected]
15 %%
16 %% Copyright 1995, 2009 American Mathematical Society.
17 %%
18 %% This Font Software is licensed under the SIL Open Font License,
19 %% Version 1.1. This license is in the accompanying file OFL.txt, and
20 %% is also available with a FAQ at: http://scripts.sil.org/OFL.
21 %%
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23
24 % Italic corrections have not been computed for most of these characters,
25 % since they are generally not slanted.
26
27 % Changed some assignments for
28 %
29 % cmchar "Circle-R brand"
30 % cmchar "Circle-S brand"
31 %
32 % to avoid rounding problems and the differences in TFM files for
33 % different magnifications
34 %
35 % Changed by Stefan Lindner 15.03.1991
36 %
37 % original: radius=.5(6u++cap_height)+3u; radius=radius#*hppp;
38 % changed: radius#=.5(6u#++cap_height#)+3u#; radius:=radius#*hppp;
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40
41
42
43
44 def makesquare (suffix i,j,k,l) =
45 %% z.j, z.k are the lower left and right corners
46 %% assumed on baseline; ie, y.k=y.j=0
47 %% z.i, z.l are upper left and right corners
48 %% that is, start labeling with upper left corner, and
49 %% proceed to the successive corners counter-clockwise.
50 y.i-y.j=x.k-x.j; y.i:=good.y y.i+o; y.l=y.i
51 %% user must draw the square him/herself.
52 enddef;
53
54
55 cmchar "Square with dot";
56 beginchar(oct"000",14u#,12u#,0);
57 adjust_fit(0,0); pickup rule.nib;
58 lft x1=hround 1.0u; x2=x1; x4=x5=w-x1;
59 bot y2=0; y4=y2;
60 makesquare (1,2,4,5);
61 y3=good.y .5[y1,y2]; x3=good.x .5[x1,x5];
62 draw z1---z2---z4---z5---cycle; % square
63 fill fullcircle scaled dot_size shifted z3; % dot
64 penlabels(1,2,3,4,5); endchar;
65
66 cmchar "Square plus";
67 beginchar(oct"001",14u#,12u#,0);
68 adjust_fit(0,0); pickup rule.nib;
69 lft x1=hround 1.0u; x2=x1; x4=x5=w-x1;
70 bot y2=0; y4=y2; makesquare(1,2,4,5);
71 draw z1---z2---z4---z5---cycle; % square
72 x6=x1; x7=x4; y6=.5[y1,y2]; y7=y6; % cross strut
73 y8=y1; y9=y2; x8=.5[x1, x5]; x9=x8; % vertical strut
74 draw z6---z7; draw z8---z9; % plus
75 penlabels(1,2,4,5,6,7,8,9); endchar;
76
77 cmchar "Square times";
78 beginchar(oct"002",14u#,12u#,0);
79 adjust_fit(0,0); pickup rule.nib;
80 lft x1=hround 1.0u; x2=x1; x4=x5=w-x1;
81 bot y2=0; y4=y2; makesquare(1,2,4,5);
82 draw z1---z2---z4---z5---cycle; % square
83 draw z1---z4; draw z2---z5; % diagonals
84 penlabels(1,2,4,5); endchar;
85
86 cmchar "Square";
87 beginchar(oct"003",14u#,12u#,0);
88 adjust_fit(0,0); pickup rule.nib;
89 lft x1=hround 1.0u; x2=x1;
90 x4=x5=w-x1;
91 bot y2=0; y4=y2; makesquare(1,2,4,5);
92 draw z1---z2---z4---z5---cycle; % square
93 penlabels(1,2,4,5); endchar;
94
95 cmchar "Filled square";
96 beginchar(oct"004",14u#,12u#,0);
97 adjust_fit(0,0); pickup rule.nib;
98 lft x1=hround 1.0u; x2=x1; x4=x5=w-x1;
99 bot y2=0; y4=y2; makesquare(1,2,4,5);
100 filldraw z1---z2---z4---z5---cycle; % square
101 penlabels(1,2,4,5); endchar;
102
103 cmchar "Small filled square";
104 beginchar(oct"005",5u#,.8asc_height#,0);
105 adjust_fit(0,0); pickup rule.nib;
106 lft x1=hround 1.0u; x2=x1; x3=x4=w-x1;
107 bot y2=0; y3=y2; makesquare(1,2,3,4);
108 filldraw z1---z2---z3---z4---cycle; % draw and fill square
109 penlabels(1,2,3,4); endchar;
110
111
112 cmchar "Diamond";
113 beginchar(oct"006",12u#,asc_height#,2u#);
114 adjust_fit(0,0); pickup rule.nib;
115 %% z1, z2 are left & right vertices
116 %% z3, z4 are top and bottom points
117 lft x1=hround u; x2=w-x1; y1=y2;
118 x3=x4=.5[x1, x2]; bot y4=-d-o; top y3= good.y h+o;
119 y1=.5[y4,y3];
120 draw z1---z3---z2---z4---cycle; % draw diamond
121 penlabels(1,2,3,4); endchar;
122
123 cmchar "Filled Diamond";
124 beginchar(oct"007",12u#,asc_height#,2u#);
125 adjust_fit(0,0); pickup rule.nib;
126 %% z1, z2 are left & right vertices
127 %% z3, z4 are top and bottom points
128 lft x1=hround u; x2=w-x1; y1=y2;
129 x3=x4=.5[x1, x2]; bot y4=-d-o; top y3= good.y h+o;
130 y1=.5[y4,y3];
131 filldraw z1---z3---z2---z4---cycle; % draw diamond
132 penlabels(1,2,3,4); endchar;
133
134 % do char "011 before char "010.
135 cmchar "Counter-clockwise-circle indicator";
136 beginarithchar(oct"011"); pickup light_rule.nib;
137 autorounded; lft x6=hround u; x2=w-x6;
138 y2=math_axis; top y8=h;
139 circle_points; % define points on circumference
140 %% see page 487 of vol E
141 path p; numeric t;
142 p=z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left}
143 ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle;
144 t=xpart(p intersectiontimes ((4.5u,0)--(4.5u,y8)));
145 draw subpath (0,t) of p; % circle with gap
146 z0=.5[z5,z1]; % the origin of the circle
147 %% Now prepare for left arrowhead--see pg E465
148 pickup crisp.nib;
149 pos12(rule_thickness,90); pos13(bar,0); pos14(bar,0);
150 y10=y12=y8; lft x10=hround x8;
151 y13-y10=y10-y14=.19asc_height+eps; x13=x14=x10+3u+eps;
152 pos15(bar,angle(z14-z10)); z15l=z10;
153 pos16(bar,angle(z13-z10)); z16l=z10;
154 z19=.38[.5[z13,z14],z10];
155 numeric t; path p; % re-use t, p
156 p=z14r{z19-z14}..z16r;
157 t=xpart(p intersectiontimes((0,y12l)--(w,y12l)));
158 x12=xpart point t of p;
159 path p;
160 p=z10..{z14-z19}z14l--subpath(0,t) of
161 (z14r{z19-z14}..z16r)--z12l--z12r
162 --subpath(t,0) of (z13r{z19-z13}..z15r)
163 --z13l{z19-z13}..z10&cycle; % arrowhead
164 p:=p shifted -z8; % move back to origin
165 p:=p rotated -16; % rotate down a bit
166 p:=p shifted z8; % move back to tip of circle
167 filldraw p;
168 penlabels(0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,19);
169 picture v; v:=currentpicture; endchar;
170
171 cmchar "Clockwise-circle indicator";
172 beginarithchar(oct"010");
173 currentpicture:=v reflectedabout ((w/2,0),(w/2,h));
174 penlabels(0,1,2,3,5,6,7,8,9,10); endchar;
175
176 cmchar "Left-Right Harpoons";
177 compute_spread(.45x_height#,.55x_height#);
178 beginchar(oct"013",18u#,v_center(spread#+.48asc_height#));
179 path topleft; % for top left half arrow (harpoon)
180 adjust_fit(0,0);
181 pickup crisp.nib;
182 pos1(rule_thickness,90); pos2(rule_thickness,90);
183 pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis;
184 x1+.5rule_thickness=hround(w-u); lft x0=hround u;
185 y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps;
186 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
187 z6l=z0; numeric t; path p; p=z4r..{2(x0-x4),y0-y4}z6r;
188 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));
189 x2=xpart point t of p;
190 topleft=z0--(x0,y2l)---z1l..z1r---z2r
191 ..subpath (t,0) of\\(z3r..{2(x0-x3),y0-y3}z5r)
192 --z3l..{2(x0-x3),y0-y3}cycle; % arrowhead and stem
193 topleft:=
194 topleft shifted (0,.5spread); % shift above math_axis
195 path botright; % for bottom right half arrow
196 botright:=topleft reflectedabout ((w/2,0),(w/2,h));
197 botright:=botright reflectedabout
198 ((0,math_axis+eps),(w,math_axis+eps));
199 filldraw topleft; filldraw botright;
200 penlabels(0,1,2,3,4,5,6); endchar;
201
202 cmchar "Right-Left Harpoons";
203 compute_spread(.45x_height#,.55x_height#);
204 beginchar(oct"012",18u#,v_center(spread#+.48asc_height#));
205 path topright, botleft;
206 adjust_fit(0,0);
207 pickup crisp.nib;
208 topright:=topleft reflectedabout((w/2,0),(w/2,h));
209 botleft:=botright reflectedabout((w/2,0),(w/2,h));
210 filldraw topright; filldraw botleft; endchar;
211
212 cmchar "Square minus";
213 beginchar(oct"014",14u#,12u#,0); adjust_fit(0,0);
214 pickup rule.nib; lft x1=hround 1.0u; x2=x1; x4=x5=w-x1; bot
215 y2=0; y4=y2; makesquare(1,2,4,5);
216 draw z1---z2---z4---z5---cycle; % square
217 x6=x1; x7=x4; y6=.5[y1,y2]; y7=y6; % cross strut
218 draw z6---z7; % minus
219 penlabels(1,2,4,5,6,7); endchar;
220
221 cmchar "Forces";
222 beginchar(oct"015",13u#,asc_height#,0);
223 adjust_fit(0,0);; pickup rule.nib;
224 top y1=h; bot y2=0; y3=y4=good.y .5h; y5=y1; y6=y2;
225 lft x5=hround u; x4=w-x5;
226 compute_spread(.45x_height#,.55x_height#);
227 x1=x5+spread; x1=x2=x3; x6=x5;
228 draw z6--z5; draw z2--z1; draw z3--z4;
229 penlabels(1,2,3,4,5,6); endchar;
230
231 cmchar "Forces with extra bar";
232 beginchar(oct"016",16u#, asc_height#,0);
233 adjust_fit(0,0); pickup rule.nib;
234 compute_spread(.42x_height#,.52x_height#);
235 top y1=h; bot y2=0; y3=y4=good.y .5h;
236 y5=y7=y1; y6=y8=y2; lft x7=hround u; x4=w-x7;
237 x5=good.x x7+spread; x1=good.x x5+spread;
238 x1=x2=x3; x6=x5; x7=x8;
239 draw z7--z8; draw z5--z6; draw z1--z2; % verticals
240 draw z3--z4; % horizontal piece
241 penlabels(1,2,3,4,5,6,7,8); endchar;
242
243 cmchar "Satisfies";
244 beginchar(oct"017",11u#,asc_height#,0);
245 adjust_fit(0,0); pickup rule.nib;
246 compute_spread(.45x_height#,.55x_height#);
247 top y1=h; bot y2=0; y0=good.y .5[y1,y2];
248 y3=vround y0+.5spread;
249 y5=vround y0- .5spread; y4=y3; y6=y5;
250 lft x1=hround u; x4=w-x1;
251 x1=x2=x3=x5; x4=x6; x0=x1;
252 draw z1--z2; % vertical line
253 draw z3--z4; % draw top horizontal piece
254 draw z5--z6; % draw bottom horizontal piece
255 penlabels(0,1,2,3,4,5,6); endchar;
256
257 cmchar "Rightward double arrowhead";
258 compute_spread(.45x_height#,.55x_height#);
259 beginchar(oct"020",18u#,v_center(spread#+.48asc_height#)); adjust_fit(0,0);
260 pickup crisp.nib; pos1(rule_thickness,90); pos2(rule_thickness,90);
261 pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis; x1-.5rule_thickness=hround u;
262 rt x0=hround(w-u); y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps;
263 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0)); z6l=z0;
264 z9=.381966[.5[z3,z4],z0]; numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p
265 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p; path p;
266 p=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
267 --z2l--z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
268 --z3r{z9-z3}..z0 & cycle;
269 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
270 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
271 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
272 filldraw p shifted (x3l-x0,0);
273 penlabels(0,1,2,3,4,5,6,9); endchar;
274
275 cmchar "Leftward double arrowhead";
276 compute_spread(.45x_height#,.55x_height#);
277 beginchar(oct"021",18u#,v_center(spread#+.48asc_height#));
278 adjust_fit(0,0); pickup crisp.nib;
279 pos1(rule_thickness,90); pos2(rule_thickness,90);
280 pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis;
281 x1+.5rule_thickness=hround(w-u); lft x0=hround u;
282 y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps;
283 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
284 z6l=z0; z9=.381966[.5[z3,z4],z0];
285 numeric t; path p;
286 p=z4r{z9-z4}..z6r;
287 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));
288 x2=xpart point t of p;
289 path p; p=z0..{z4-z9}z4l--subpath (0,t)
290 of\\(z4r{z9-z4}..z6r)
291 --z2l--z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
292 --z3l{z9-z3}..z0 & cycle; % second arrowhead
293 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
294 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
295 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
296 filldraw p shifted (x3r-x0,0);
297 penlabels(0,1,2,3,4,5,6,9); endchar;
298
299 cmchar "Leftward double arrow";
300 compute_spread(.45x_height#,.55x_height#);
301 beginchar(oct"022",18u#,v_center(spread#+.96asc_height#));
302 adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90);
303 pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0);
304 y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft
305 x0=hround u; y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps;
306 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
307 z6l=z0; z9=.381966[.5[z3,z4],z0]; numeric t; path p;
308 p=z4r{z9-z4}..z6r; t=xpart(p
309 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
310 path p; % re-use p
311 p=z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
312 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
313 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
314 p:=p shifted (0,y2-y4+eps); filldraw p; % top arrow
315 p:= p shifted (0,y4-y3-eps); filldraw p; % bottom arrow
316 penlabels(0,1,2,3,4,5,6,9); endchar;
317
318 cmchar "Rightward double arrow";
319 compute_spread(.45x_height#,.55x_height#);
320 beginchar(oct"023",18u#,v_center(spread#+.96asc_height#));
321 adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90);
322 pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0);
323 y0=y1=y2=math_axis; x1-.5rule_thickness=hround u; rt
324 x0=hround(w-u); y3-y0=y0-y4=.24asc_height+eps;
325 x3=x4=x0-3u-eps; pos5(bar,angle(z4-z0)); z5l=z0;
326 pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0];
327 numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p
328 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
329 path p; p=z0..{z4-z9}z4r--subpath (0,t)
330 of\\(z4l{z9-z4}..z6r)
331 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
332 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
333 p:=p shifted (0,y2-y4+eps); filldraw p; % top
334 p:=p shifted (0,y4-y3-eps); filldraw p; %bottom
335 penlabels(0,1,2,3,4,5,6,9); endchar;
336
337 cmchar "Double upward arrow";
338 beginchar(oct"024",15u#,asc_height#,asc_depth#); italcorr
339 .76asc_height#*slant+.5crisp#-u#; adjust_fit(0,0); pickup
340 crisp.nib; pos1(rule_thickness,0); pos2(rule_thickness,0);
341 pos3(bar,90); pos4(bar,90); lft
342 x1l=hround(.5w-.5rule_thickness); y1-.5rule_thickness=-d;
343 x0=x1=x2; top y0=h; x0-x3=x4-x0=3u+eps;
344 y3=y4=y0-.24asc_height-eps; pos5(bar,angle(z4-z0)); z5l=z0;
345 pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0];
346 numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p
347 intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of
348 p;
349 path p; p=z0..{z4-z9}z4r--subpath (0,t)
350 of\\(z4l{z9-z4}..z6r)
351 --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3l{z9-z3}..z5r)
352 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
353 p:=p shifted (x0-x4-eps,0); filldraw p; % left arrow
354 p:=p shifted (x4-x3+eps,0); filldraw p;
355 penlabels(0,1,2,3,4,5,6,9); endchar;
356
357 cmchar "Double downward arrow";
358 beginchar(oct"025",15u#,asc_height#,asc_depth#);
359 adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,0);
360 pos2(rule_thickness,0); pos3(bar,90); pos4(bar,90); lft
361 x1l=hround(.5w-.5rule_thickness); y1+.5rule_thickness=h;
362 x0=x1=x2; bot y0=-d; x0-x3=x4-x0=3u+eps;
363 y3=y4=y0+.24asc_height+eps; pos5(bar,angle(z4-z0)); z5l=z0;
364 pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0];
365 numeric t; path p; p=z4r{z9-z4}..z6r; t=xpart(p
366 intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of
367 p;
368 path p; p=z0..{z4-z9}z4l--subpath (0,t)
369 of\\(z4r{z9-z4}..z6r)
370 --z2r---z1r..z1l---z2l--subpath (t,0) of\\(z3r{z9-z3}..z5r)
371 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
372 p:=p shifted (x0-x4-eps,0); filldraw p; % left arrow
373 p:=p shifted (x4-x3+eps,0); filldraw p;
374 penlabels(0,1,2,3,4,5,6,9); endchar;
375
376 %%
377 cmchar "Upward rightward harpoon";
378 beginchar(oct"026",7.5u#,asc_height#, asc_depth#);
379 %% see page E431
380 adjust_fit(0,0); pickup crisp.nib;
381 x0=x1=x2; lft x1l=hround(.5w-.5rule_thickness);
382 y1-.5rule_thickness=-d; pos1(rule_thickness,0);
383 pos2(rule_thickness,0); pos3(bar,-90); pos4(bar,-90);
384 top y0=vround h;
385 x3-x0=x0-x4=.24asc_height+eps; y3=y4=y0-3u-eps;
386 pos5(bar,angle(z4-z0)); z5l=z0;
387 pos6(bar,angle(z3-z0)); z6l=z0;
388 z9=.381966[.5[z3,z4],z0];
389 numeric t; path p;
390 p=z4r..{y0-y4,2(x0-x4)}z6r;
391 t=xpart (p intersectiontimes ((x2l,0)--(x2l,h)));
392 y2=ypart point t of p;
393 filldraw z0--(x2l,y0)---z1l..z1r---z2r
394 ..subpath(t,0) of (z3r..{x0-x3,2(y0-y3)}z5r)
395 --z3l..{x0-x3,2(y0-y3)}cycle;
396 picture v; v:=currentpicture;
397 penlabels(0,1,2,3,4,5,6,9); endchar;
398
399 cmchar "Downward rightward harpoon";
400 beginchar(oct"027",7.5u#,asc_height#,asc_depth#);
401 adjust_fit(0,0);
402 currentpicture:=v
403 reflectedabout((0,.5(h-d)*aspect_ratio+eps),(w,.5(h-d)*aspect_ratio+eps));
404 penlabels(0,1,2,3,4,5,6); endchar;
405
406 cmchar "Upward leftward harpoon";
407 beginchar(oct"030",7.5u#,asc_height#, asc_depth#);
408 adjust_fit(0,0);
409 currentpicture:=
410 v reflectedabout((w/2+eps,-d),(w/2+eps,h));
411 picture v; v:=currentpicture;
412 penlabels(0,1,2,3,4,5,6); endchar;
413
414 cmchar "Downward leftward harpoon";
415 beginchar(oct"031",7.5u#,asc_height#,asc_depth#);
416 adjust_fit(0,0);
417 currentpicture:=v
418 reflectedabout((0,.5(h-d)*aspect_ratio+eps),(w,.5(h-d)*aspect_ratio+eps));
419 penlabels(0,1,2,3,4,5,6); endchar;
420
421 cmchar "Rightward arrow with tail";
422 compute_spread(.45x_height#,.55x_height#);
423 beginchar(oct"032",20u#,v_center(spread#+.48asc_height#));
424 adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90);
425 pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0);
426 y0=y1=y2=math_axis; x1-.5rule_thickness=hround 1.5u; rt
427 x0=hround(w-3u); y3-y0=y0-y4=.24asc_height+eps;
428 x3=x4=x0-3u-eps; pos5(bar,angle(z4-z0)); z5l=z0;
429 pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0];
430 numeric t; path p; p=z4l{z9-z4}..z6r; t=xpart(p
431 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
432 path p;
433 p=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
434 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
435 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
436 path arrow;
437 arrow=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
438 --z2l---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
439 --z3r{z9-z3}..z0 & cycle;
440 p:=p shifted (2u,0); filldraw p;
441 arrow:=arrow shifted (-13u+bar,0); filldraw arrow;
442 penlabels(0,1,2,3,4,5,6,9); endchar;
443
444 cmchar "Leftward arrow with tail";
445 beginchar(oct"033",20u#,v_center(spread#+.48asc_height#));
446 adjust_fit(0,0); pickup crisp.nib;
447 p:= p reflectedabout ((w/2+eps,-d),(w/2+eps,h));
448 arrow:= arrow reflectedabout ((w/2+eps,-d),(w/2+eps,h));
449 filldraw p; filldraw arrow;
450 penlabels(0,1,2,3,4,5,6,9); endchar;
451
452 cmchar "Leftward-rightward parallel arrows";
453 compute_spread(.45x_height#,.55x_height#);
454 beginchar(oct"034",18u#,v_center(spread#+.96asc_height#));
455 adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90);
456 pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0);
457 y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft
458 x0=hround u; y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps;
459 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
460 z6l=z0; z9=.381966[.5[z3,z4],z0]; numeric t; path p;
461 p=z4r{z9-z4}..z6r; t=xpart(p
462 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
463 path p, q; % re-use p
464 p=z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
465 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
466 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
467 p:=p shifted (0,.5[y3,y4]+eps); filldraw p; % top arrow
468 p:= p shifted (0,y4-y3);
469 q:= p reflectedabout ((w/2+eps,-d),(w/2+eps,h));
470 p:=p shifted (0,y3-y4+eps); % restore p's position
471 filldraw q; % bottom arrow
472 penlabels(0,1,2,3,4,5,6,9); endchar;
473
474 cmchar "Rightward-leftward parallel arrow";
475 compute_spread(.45x_height#,.55x_height#);
476 beginchar(oct"035",18u#,v_center(spread#+.96asc_height#));
477 adjust_fit(0,0); pickup crisp.nib;
478 p:=p reflectedabout ((w/2+eps,-d),(w/2+eps,h));
479 q:=q reflectedabout ((w/2+eps,-d),(w/2+eps,h));
480 filldraw p; filldraw q;
481 penlabels(0,1,2,3,4,5,6,9); endchar;
482
483 cmchar "Leftward shift";
484 beginchar(oct"036",9u#,asc_height#, 0);
485 adjust_fit(0,0); pickup crisp.nib; pos1(rule_thickness,90);
486 pos2(rule_thickness,90); pos3(bar,0); pos4(bar,0);
487 y0=y1=y2=.8h; x1+.5rule_thickness=hround(w-u); lft x0=hround
488 u; y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps;
489 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
490 z6l=z0; z9=.381966[.5[z3,z4],z0];
491 z10=z1; x11=x10; y11-.5rule_thickness =vround -d;
492 pos10(rule_thickness,0); pos11(rule_thickness,0);
493 numeric t; path p; p=z4r{z9-z4}..z6r;
494 t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));
495 x2=xpart point t of p;
496 path p;
497 p=z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
498 --z2l---(x10l,y1l)--z11l..z11r---{up}z10r..{left}z1r---z2r--subpath
499 (t,0) of\\(z3r{z9-z3}..z5r)
500 --z3l{z9-z3}..z0 & cycle; % arrowhead and bent stem
501 filldraw p;
502 penlabels(0,1,2,3,4,5,6,9,10); endchar;
503
504 cmchar "Rightward shift";
505 beginchar(oct"037",9u#,asc_height#, 0);
506 adjust_fit(0,0); pickup crisp.nib;
507 p:=p reflectedabout((w/2+eps,-d),(w/2+eps,h));
508 filldraw p;
509 penlabels(0,1,2,3,4,5,6,9); endchar;
510
511 compute_spread(.45x_height#,.55x_height#);
512 cmchar "Rightward squiggly arrow";
513 beginchar(oct"040",18u#,v_center(spread# +
514 rule_thickness#));
515 adjust_fit(0,0); pickup crisp.nib;
516 pos1(rule_thickness,90); pos2(rule_thickness,90);
517 pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis;
518 x1-.5rule_thickness=hround 11u; rt x0=hround(w-u);
519 y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps;
520 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
521 z6l=z0; z9=.381966[.5[z3,z4],z0];
522 numeric t; path p;
523 p=z4l{z9-z4}..z6r; t=xpart(p
524 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
525 path p;
526 p=z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
527 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
528 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
529 filldraw p;
530 %% now for squiggle
531 x12-x11=x13-x12=x14-x13=x15-x14=x16-x15=x1-x16;
532 x1-x11=hround (w-2u-x0+x1-.5rule_thickness);
533 y11=y13=y15=y0; y12=y16=.5[y0,y3];
534 y14=.5[y4,y0];
535 pickup pencircle scaled rule_thickness;
536 draw z11---z12---z14---z16---z1;
537 penlabels(0,1,2,3,4,5,6,9,11,12,13,14,15,16); endchar;
538
539 compute_spread(.45x_height#,.55x_height#);
540 cmchar "Leftward rightward squiggly arrow";
541 beginchar(oct"041",25u#,v_center(spread# +
542 rule_thickness#));
543 adjust_fit(0,0); pickup crisp.nib;
544 arrow_length=4.5u+eps;
545 pos1(rule_thickness,90); pos2(rule_thickness,90);
546 pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis;
547 x1+.5rule_thickness=hround(u+arrow_length);
548 lft x0=hround u; y3-y0=y0-y4=.24asc_height+eps;
549 x3=x4=x0+3u+eps; pos5(bar,angle(z4-z0)); z5l=z0;
550 pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0];
551 numeric t; path p; p=z4r{z9-z4}..z6r; t=xpart(p
552 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
553 path p; p=z0..{z4-z9}z4l--subpath (0,t)
554 of\\(z4r{z9-z4}..z6r)
555 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
556 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
557 filldraw p; % left arrow
558 p:=p reflectedabout ((w/2+eps,-d),(w/2+eps,h));
559 filldraw p; % right arrow
560 z10=z1 reflectedabout ((w/2+eps,-d),(w/2+eps,h));
561 y11=y15=y19=.5[y0,y3]; y13=y17=.5[y4,y0];
562 y12=y14=y16=y18=y10;
563 x11-x1=x12-x11=x13-x12=x14-x13=x15-x14=x16-x15=x17-x16=x18-x17=
564 x19-x18=x10-x19;
565 pickup pencircle scaled rule_thickness;
566 draw z1---z11---z13---z15---z17---z19---z10;
567 penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,17,18,19);
568 endchar;
569
570 cmchar "Leftward curly arrow";
571 beginchar(oct"042",18u#,.8asc_height#,0#);
572 adjust_fit(0,0); pickup crisp.nib;
573 numeric arrow_length; arrow_length=.66*(w-2u+eps);
574 pos1(rule_thickness,90); pos2(rule_thickness,90);
575 pos3(bar,0); pos4(bar,0); y0=y1=y2=math_axis;
576 x1+.5rule_thickness=hround(u+arrow_length);
577 lft x0=hround u; y3-y0=y0-y4=.24asc_height+eps;
578 x3=x4=x0+3u+eps; pos5(bar,angle(z4-z0)); z5l=z0;
579 pos6(bar,angle(z3-z0)); z6l=z0; z9=.381966[.5[z3,z4],z0];
580 numeric t; path p; p=z4r{z9-z4}..z6r; t=xpart(p
581 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
582 path p; p=z0..{z4-z9}z4l--subpath (0,t)
583 of\\(z4r{z9-z4}..z6r)
584 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
585 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
586 filldraw p; % left arrow
587 z10=z1; x13=x14=hround(u+arrow_length+eps); y13=y1; y14=-o;
588 x12=.5[x11,x13]; y12=h; rt x11=hround(w-u); y11=.5[y10,y12];
589 pickup pencircle scaled rule_thickness;
590 path q;
591 q=z10{right}..tension0.8..{up}z11..tension0.8..{left}z12
592 ..tension0.8..{down}z13--z14;
593 draw q;
594 penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14); endchar;
595
596 cmchar "Rightward curly arrow";
597 beginchar(oct"043",18u#,.8asc_height#,0#);
598 adjust_fit(0,0); pickup crisp.nib;
599 p:=p reflectedabout ((w/2+eps,-d),(w/2+eps,h));
600 filldraw p;
601 pickup pencircle scaled rule_thickness;
602 q:=q reflectedabout ((w/2+eps,-d),(w/2+eps,h));
603 draw q; endchar;
604
605 numeric circ_diam; % diameter of little circle
606 circ_diam=2.5u;
607 cmchar "Equals circle sign";
608 compute_spread(.45x_height#,.55x_height#);
609 beginchar(oct"044",14u#,v_center(4spread#+rule_thickness#+2.5u#));
610 italcorr h#*slant-.5u#; adjust_fit(0,0); pickup rule.nib;
611 lft x1=hround u-eps; x3=x1; x2=x4=w-x1; y1=y2; y3=y4;
612 y1-y3=spread; .5[y1,y3]=math_axis; draw z1--z2; % upper bar
613 draw z3--z4; % lower bar %
614 penpos11(rule_thickness,90); penpos13(rule_thickness,-90);
615 penpos12(rule_thickness,180); penpos14(rule_thickness,0);
616 x12r=hround(.5w-.5circ_diam-rule_thickness); %
617 x14r=w-x12r; x11=x13=.5w; y11l=y13l+circ_diam;
618 y12=y14=.5[y11,y13]; y13r=vround(y1+.8spread); %
619 penstroke pulled_arc.e(11,12) & pulled_arc.e(12,13)
620 & pulled_arc.e(13,14) & pulled_arc.e(14,11) & cycle; %
621 penlabels(1,2,3,4,11,12,13,14); endchar;
622
623
624
625 cmchar "Follows or equals sign";
626 compute_spread(.45x_height#,.55x_height#);
627 spread#':=spread#; spread':=spread; % spread of similarity sign
628 compute_spread(.54 x_height#,.66 x_height#);
629 spread#'':=spread#; spread'':=spread; % spread between symbols
630 compute_spread(5/4 x_height#,3/2 x_height#); % spread of follows sign
631 beginchar(oct"045",14u#,v_center(spread#'+spread#+spread#''));
632 adjust_fit(0,0); pickup rule.nib; autorounded;
633 lft x1=hround 1.5u-eps; x1=x3; x2=w-x1;
634 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
635 draw z1{u,-spread}...{right}z2; %upper `diagonal'
636 draw z3{u,spread}...{right}z2; % lower diagonal
637 pickup pencircle xscaled .7rule_thickness yscaled
638 1.4rule_thickness;
639 if vair#>.8curve#: pickup rule.nib; autorounded; fi
640 lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11;
641 bot y11=bot y13; top y12=top y14;
642 top y12-bot y11=spread'';
643 y3-y14=spread';
644 draw z11{up}...z12{right}..{right}z13...{up}z14;
645 penlabels(1,2,3,11,12,13,14); endchar;
646
647 cmchar "Greater than or similar to sign";
648 compute_spread(.45x_height#,.55x_height#);
649 spread#':=spread#; spread':=spread;
650 compute_spread(.54x_height#,.66x_height#);
651 spread#'':=spread#; spread'':=spread;
652 compute_spread(5/4 x_height#,3/2 x_height#);
653 beginchar(oct"046",14u#,v_center(spread#'+spread#+spread#''));
654 adjust_fit(0,0); pickup rule.nib; autorounded;
655 lft x1=hround 1.5u-eps; x1=x3; x2=w-x1;
656 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
657 draw z1--z2--z3;
658 pickup pencircle xscaled .7rule_thickness yscaled
659 1.4rule_thickness;
660 if vair#>.8curve#: pickup rule.nib; autorounded; fi
661 lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11;
662 bot y11=bot y13; top y12=top y14;
663 top y12-bot y11=spread'';
664 y3-y14=spread';
665 draw z11{up}...z12{right}..{right}z13...{up}z14;
666 penlabels(1,2,3,4,11,12,13,14); endchar;
667
668 cmchar "Greater than or approximately equal to sign";
669 compute_spread(.45x_height#,.55x_height#);
670 spread#':=spread#; spread':=spread;
671 compute_spread(.54x_height#,.66x_height#);
672 spread#'':=spread#; spread'':=spread; % spread between similarities
673 compute_spread(1.111 x_height#,1.333 x_height#);
674 beginchar(oct"047",14u#,v_center(spread#+2spread#''+2rule_thickness#));
675 adjust_fit(0,0); pickup rule.nib; autorounded;
676 lft x1=hround 1.5u-eps; x1=x3; x2=w-x1;
677 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
678 draw z1--z2--z3;
679 pickup pencircle xscaled .7rule_thickness yscaled
680 1.4rule_thickness;
681 if vair#>.8curve#: pickup rule.nib; autorounded; fi
682 lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11;
683 bot y11=bot y13; top y12=top y14;
684 top y12-bot y11=spread';
685 bot y3- top y13 = spread'';
686 path p; p=z11{up}...z12{right}..{right}z13...{up}z14;
687 draw p; draw p shifted (0,-spread'');
688 penlabels(1,2,3,4,11,12,13,14); endchar;
689
690 cmchar "Multimap symbol";
691 beginchar(oct"050",20u#,.8asc_height#,0#);
692 adjust_fit(0,0); pickup rule.nib; autorounded;
693 numeric circ_diam; circ_diam=5u;
694 y2=math_axis; y8=y2+.5circ_diam; rt x2=w-u;
695 x6=x2-circ_diam;
696 circle_points; draw_circle;
697 x9=u+.5rule_thickness; y9=y10=y2; x10=x6-.5rule_thickness;
698 draw z9---z10;
699 penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
700
701 cmchar "Therefore";
702 beginchar(oct"051",12u#,asc_height#,0);
703 adjust_fit(0,0);
704 lft x1=hround 1.5u; x2=w-x1; bot y1=-o; y2=y1;
705 z3-z1=(z2-z1)rotated60;
706 fill fullcircle scaled dot_size shifted z1;
707 % left bottom dot
708 fill fullcircle scaled dot_size shifted z2;
709 % rigth bottom
710 fill fullcircle scaled dot_size shifted z3; % top dot
711 penlabels(1,2,3); endchar;
712
713
714 cmchar "Because";
715 beginchar(oct"052",12u#,asc_height#,0);
716 adjust_fit(0,0);
717 lft x1=hround 1.5u; x2=w-x1; y2=y1;
718 x3=w/2; y3=-o;
719 z3-z1=(z2-z1)rotated-60;
720 fill fullcircle scaled dot_size shifted z1; % top left dot
721 fill fullcircle scaled dot_size shifted z2;
722 % top right dot
723 fill fullcircle scaled dot_size shifted z3; % bottom dot
724 penlabels(1,2,3); endchar;
725
726 cmchar "Equals-and-dots sign";
727 beginarithchar(oct"053");
728 compute_spread(.45x_height#,.55x_height#);
729 pickup rule.nib;
730 lft x1=hround u-eps; x3=x1; x2=x4=w-x1;
731 y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis;
732 draw z1--z2; draw z3--z4; % draw bars
733 pickup light_rule.nib;
734 x5=x6=x7=x8=hround w/2+eps; z5=z6; z7=z8;
735 penpos5(.8dot_size,0); penpos6(.8dot_size,90);
736 penpos7(.8dot_size,0); penpos8(.8dot_size,90);
737 y5-y1=y3-y7=spread;
738 dot(5,6); dot(7,8); % draw dots
739 penlabels(1,2,3,4,5,6,7,8); endchar;
740
741 cmchar "Equals sign with triangle";
742 beginchar(oct"054", 14u#,12u#+math_axis# ,6u#-math_axis#);
743 compute_spread(.45x_height#,.55x_height#);
744 pickup rule.nib;
745 lft x1=hround u-eps; x3=x1; x2=x4=w-x1;
746 y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis;
747 draw z1--z2; draw z3--z4; % draw bars
748 numeric tri_side; % length of equilateral triangle
749 tri_side=7u;
750 x6-x5=tri_side; .5[x5,x6]=w/2; y5=y6; y5-y1=.8spread;
751 %top y7=body_height;x7=w/2;
752 z7-z5=(z6-z5) rotated 60;
753 draw z5--z6--z7--cycle;
754 penlabels(1,2,3,4,5,6,7); endchar;
755
756
757 cmchar "Precedes or equals sign";
758 compute_spread(.45x_height#,.55x_height#);
759 spread#':=spread#; spread':=spread;
760 compute_spread(.54x_height#,.55x_height#);
761 spread#'':=spread#; spread'':=spread;
762 compute_spread(5/4 x_height#,3/2 x_height#);
763 beginchar(oct"055",14u#,v_center(spread#'+spread#+spread#''));
764 adjust_fit(0,0); pickup rule.nib; autorounded;
765 lft x2=hround 1.5u-eps; x1=x3=w-x2;
766 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
767 draw z1{-u,-spread}...{left}z2; %upper `diagonal'
768 draw z3{-u,spread}...{left}z2; % lower diagonal
769 pickup pencircle xscaled .7rule_thickness yscaled
770 1.4rule_thickness;
771 if vair#>.8curve#: pickup rule.nib; autorounded; fi
772 lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11;
773 bot y11=bot y13; top y12=top y14;
774 top y12-bot y11=spread'';
775 y3-y14=spread';
776 draw z11{up}...z12{right}..{right}z13...{up}z14;
777 penlabels(1,2,3,11,12,13,14); endchar;
778
779 cmchar "Less than or similar to sign";
780 compute_spread(.45x_height#,.55x_height#);
781 spread#':=spread#; spread':=spread;
782 compute_spread(.54x_height#,.55x_height#);
783 spread#'':=spread#; spread'':=spread;
784 compute_spread(5/4 x_height#,3/2 x_height#);
785 beginchar(oct"056",14u#,v_center(spread#'+spread#+spread#''));
786 adjust_fit(0,0); pickup rule.nib; autorounded;
787 lft x2=hround 1.5u-eps; x1=x3=w-x2;
788 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
789 draw z1--z2--z3;
790 pickup pencircle xscaled .7rule_thickness yscaled
791 1.4rule_thickness;
792 if vair#>.8curve#: pickup rule.nib; autorounded; fi
793 lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11;
794 bot y11=bot y13; top y12=top y14;
795 top y12-bot y11=spread'';
796 y3-y14=spread';
797 draw z11{up}...z12{right}..{right}z13...{up}z14;
798 penlabels(1,2,3,4,11,12,13,14); endchar;
799
800 cmchar "Less than or approximately equal to sign";
801 compute_spread(.45x_height#,.55x_height#);
802 spread#':=spread#; spread':=spread;
803 compute_spread(.54x_height#,.66x_height#);
804 spread#'':=spread#; spread'':=spread; % spread between similarities
805 compute_spread(1.111 x_height#,1.333 x_height#);
806 beginchar(oct"057",14u#,v_center(spread#+2spread#''+2rule_thickness#));
807 adjust_fit(0,0); pickup rule.nib; autorounded;
808 lft x2=hround 1.5u-eps; x1=x3=w-x2;
809 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
810 draw z1--z2--z3;
811 pickup pencircle xscaled .7rule_thickness yscaled
812 1.4rule_thickness;
813 if vair#>.8curve#: pickup rule.nib; autorounded; fi
814 lft x11=hround u; x12=4u; x13=w-x12; x14=w-x11;
815 bot y11=bot y13; top y12=top y14;
816 top y12-bot y11=spread';
817 bot y3- top y13 = spread'';
818 path p; p=z11{up}...z12{right}..{right}z13...{up}z14;
819 draw p; draw p shifted (0,-spread'');
820 penlabels(1,2,3,4,11,12,13,14); endchar;
821
822 cmchar "Equal or less than sign";
823 compute_spread(.45x_height#,.55x_height#);
824 spread#':=spread#; spread':=spread;
825 compute_spread(5/4x_height#,3/2x_height#);
826 beginchar(oct"060",14u#,v_center(spread#'+spread#+rule_thickness#));
827 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
828 lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread;
829 y2=.5[y1,y3]; y8-y1=y9-y2=spread'; top y8=h;
830 x2=x9; x1=x8;
831 draw z1--z2--z3; % diagonals
832 draw z8--z9; % equal sign
833 penlabels(1,2,3,8,9); endchar;
834
835 cmchar "Equal or greater than sign";
836 compute_spread(.45x_height#,.55x_height#);
837 spread#':=spread#; spread':=spread;
838 compute_spread(5/4x_height#,3/2x_height#);
839 beginchar(oct"061",14u#,v_center(spread#'+spread#+rule_thickness#));
840 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
841 rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
842 x2=x9; x1=x8;
843 y2=.5[y1,y3]; y8-y1=y9-y2=spread'; top y8=h;
844 draw z1--z2--z3; % diagonals
845 draw z8--z9;
846 penlabels(1,2,3,8,9); endchar;
847
848 cmchar "Less than or (slanted) equal sign";
849 compute_spread(.45x_height#,.55x_height#);
850 spread#':=spread#; spread':=spread;
851 compute_spread(5/4x_height#,3/2x_height#);
852 beginchar(oct"066",14u#,v_center(spread#'+spread#+rule_thickness#));
853 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
854 lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread;
855 y2=.5[y1,y3]; y3-y8=y2-y9=spread'; top y1=h;
856 x2=x9; x1=x8;
857 draw z1--z2--z3; % diagonals
858 draw z8--z9; % equal sign
859 penlabels(1,2,3,8,9); endchar;
860
861 cmchar "Greater than or (slanted) equal sign";
862 compute_spread(.45x_height#,.55x_height#);
863 spread#':=spread#; spread':=spread;
864 compute_spread(5/4x_height#,3/2x_height#);
865 beginchar(oct"076",14u#,v_center(spread#'+spread#+rule_thickness#));
866 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
867 rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
868 x2=x9; x1=x8;
869 y2=.5[y1,y3]; y3-y8=y2-y9=spread'; top y1=h;
870 draw z1--z2--z3; % diagonals
871 draw z8--z9;
872 penlabels(1,2,3,8,9); endchar;
873 cmchar "Less than or greater than sign";
874 compute_spread(.4x_height#,.5x_height#);
875 spread#':=spread#; spread':=spread;
876 compute_spread(1.111 x_height#,1.333 x_height#);
877 beginchar(oct"067",14u#,v_center(2spread#'+spread#+rule_thickness#));
878 adjust_fit(0,0); pickup rule.nib; autorounded;
879 lft x1=hround w-1.5u+eps; x1=x3=x5; x2=x4=x6=w-x1;
880 y1-y3=spread; top y1=h; y2-y4=spread'; y4-y6=spread;
881 y2=.5[y1,y3]; y5=.5[y4,y6];
882 draw z1--z2--z3; draw z4--z5--z6;
883 penlabels(1,2,3,4,5,6); endchar;
884
885 cmchar "Greater than or less than sign";
886 compute_spread(.4x_height#,.5x_height#);
887 spread#':=spread#; spread':=spread;
888 compute_spread(1.111 x_height#,1.333x_height#);
889 beginchar(oct"077",14u#,v_center(2spread#'+spread#+rule_thickness#));
890 adjust_fit(0,0); pickup rule.nib; autorounded;
891 lft x1=hround 1.5u-eps; x1=x3=x5; x2=x4=x6=w-x1;
892 y1-y3=spread; top y1=h; y2-y4=spread'; y4-y6=spread;
893 y2=.5[y1,y3]; y5=.5[y4,y6];
894 draw z1--z2--z3; draw z4--z5--z6;
895 penlabels(1,2,3,4,5,6); endchar;
896
897 cmchar "Equals or precedes sign";
898 compute_spread(.45x_height#,.55x_height#);
899 spread#':=spread#; spread':=spread;
900 compute_spread(5/4x_height#,3/2x_height#);
901 beginchar(oct"062",14u#,v_center(spread#'+spread#+rule_thickness#));
902 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
903 lft x2=hround(1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
904 y2=.5[y1,y3]; top y8-bot y1=top y9-bot y2=spread'; bot y3=0;
905 x2=x9;x8=x1-2u;
906 draw z1{-u,-spread}...{left}z2;
907 draw z3{-u, spread}...{left}z2;
908 draw z8{-u,-spread}...{left}z9;
909 penlabels(1,2,3,8,9); endchar;
910
911 cmchar "Equals or follows sign";
912 compute_spread(.45x_height#,.55x_height#);
913 spread#':=spread#; spread':=spread;
914 compute_spread(5/4x_height#,3/2x_height#);
915 beginchar(oct"063",14u#,v_center(spread#'+spread#+rule_thickness#));
916 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
917 rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
918 y2=.5[y1,y3]; top y8-bot y1=top y9-bot y2=spread'; bot y3=0;% top y8=h;
919 x2=x9;x8=x1+2u;
920 draw z1{u,-spread}...{right}z2;
921 draw z3{u, spread}...{right}z2;
922 draw z8{u,-spread}...{right}z9;
923 penlabels(1,2,3,8,9); endchar;
924
925 cmchar "Precedes or curvy equals sign";
926 compute_spread(.45x_height#,.55x_height#);
927 spread#':=spread#; spread':=spread;
928 compute_spread(5/4x_height#,3/2x_height#);
929 beginchar(oct"064",14u#,v_center(spread#'+spread#+rule_thickness#));
930 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
931 lft x2=hround(1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
932 y2=.5[y1,y3]; top y3-bot y8=top y2-bot y9=spread'; bot y3=0;
933 x2=x9;x8=x1-2u;
934 %for i=1 upto 3: %lower entire character
935 %y[i]:=y[i]-spread'; endfor
936 %for i=8 upto 9:
937 %y[i]:=y[i]-spread'; endfor
938 draw z1{-u,-spread}...{left}z2;
939 draw z3{-u, spread}...{left}z2;
940 draw z8{-u, spread}...{left}z9;
941 penlabels(1,2,3,8,9); endchar;
942
943 cmchar "Follows or curvy equals sign";
944 compute_spread(.45x_height#,.55x_height#);
945 spread#':=spread#; spread':=spread;
946 compute_spread(5/4x_height#,3/2x_height#);
947 beginchar(oct"074",14u#,v_center(spread#'+spread#+rule_thickness#));
948 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
949 rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
950 y2=.5[y1,y3]; top y3-bot y8=top y2-bot y9=spread'; bot y3=0;
951 x2=x9;x8=x1+2u;
952 %for i=1 upto 3: %lower entire character
953 %y[i]:=y[i]-spread'; endfor
954 %for i=8 upto 9:
955 %y[i]:=y[i]-spread'; endfor
956 draw z1{u,-spread}...{right}z2;
957 draw z3{u, spread}...{right}z2;
958 draw z8{u, spread}...{right}z9;
959 penlabels(1,2,3,8,9); endchar;
960
961 cmchar "Less than or (double) equals sign";
962 compute_spread(.45x_height#,.55x_height#);
963 spread#':=spread#; spread':=spread;
964 compute_spread(5/4x_height#,3/2x_height#);
965 beginchar(oct"065",14u#,v_center(2spread#'+spread#+2rule_thickness#));
966 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
967 lft x2=hround 1.5u-eps; x1=x3=w-x2; y1-y3=spread;
968 y2=.5[y1,y3]; top y1=h;
969 x2=x9=x7; x1=x8=x6; y7=y6; y8=y9;
970 y7-y9=spread'; top y3-bot y6=spread';
971 draw z1--z2--z3; % diagonals
972 draw z6--z7; draw z8--z9; % equal sign
973 penlabels(1,2,3,6,7,8,9); endchar;
974
975 cmchar "Greater than or (double) equals sign";
976 compute_spread(.45x_height#,.55x_height#);
977 spread#':=spread#; spread':=spread;
978 compute_spread(5/4x_height#,3/2x_height#);
979 beginchar(oct"075",14u#,v_center(2spread#'+spread#+2rule_thickness#));
980 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
981 rt x2=hround(w-1.5u)+eps; x1=x3=w-x2; y1-y3=spread;
982 x2=x7=x9; x1=x6=x8; y6=y7; y8=y9;
983 y2=.5[y1,y3]; top y3-bot y6=spread'; top y1=h;
984 y7-y9=spread';
985 draw z1--z2--z3; % diagonals
986 draw z6--z7; draw z8--z9;
987 penlabels(1,2,3,6,7,8,9); endchar;
988
989 cmchar "Reverse prime symbol (superscript only)";
990 beginchar(oct"070",3u#+max(1.75u#,curve#+2(curve#-stem#)),
991 .8asc_height#,0); adjust_fit(0,0); pickup fine.nib; numeric
992 light_stem,heavy_stem; light_stem=hround .5[vair,stem];
993 heavy_stem=hround(bold+2dw); x1-.5heavy_stem=hround(.25u);
994 y1+.5heavy_stem=h; x2+.5light_stem=hround (w-.5u);
995 y2=1/12asc_height;
996 numeric theta; theta=angle(z1-z2)-90;
997 pos1(heavy_stem,theta); pos2(light_stem,theta);
998 filldraw circ_stroke z1e--z2e; % diagonal
999 penlabels(1,2); endchar;
1000
1001 cmchar "short axis line";
1002 beginchar(oct"071",9u#,27/7u#+math_axis#,27/7u#-math_axis#); pickup rule.nib;
1003 lft x1=hround 1.5u-eps; x2=w-x1; y1=y2=math_axis;
1004 draw z1--z2;
1005 labels(1,2); endchar;
1006
1007 cmchar "Dotted (right-left) equals sign";
1008 compute_spread(.45x_height#,.55x_height#);
1009 beginchar(oct"072",14u#,v_center(3spread#+2rule_thickness#));
1010 italcorr h#*slant-.5u#; adjust_fit(0,0); pickup rule.nib;
1011 lft x1=hround u-eps; x3=x1; x2=x4=w-x1; y1=y2; y3=y4;
1012 y1-y3=spread; .5[y1,y3]=math_axis; draw z1--z2; % upper bar
1013 draw z3--z4; % lower bar
1014 pickup tiny.nib;
1015 x6=x5=x2; y6=y5=y1+spread;
1016 pos5(dot_size,0); pos6(dot_size,90);
1017 x7=x8=x3; y7=y8=y4-spread;
1018 pos7(dot_size,0); pos8(dot_size,90);
1019 dot(5,6); dot(7,8);
1020 penlabels(1,2,3,4,5,6,7,8); endchar;
1021
1022 cmchar "Dotted (left-right) equals sign";
1023 compute_spread(.45x_height#,.55x_height#);
1024 beginchar(oct"073",14u#,v_center(3spread#+2rule_thickness#));
1025 italcorr h#*slant-.5u#; adjust_fit(0,0); pickup rule.nib;
1026 lft x1=hround u-eps; x3=x1; x2=x4=w-x1; y1=y2; y3=y4;
1027 y1-y3=spread; .5[y1,y3]=math_axis;
1028 draw z1--z2; % upper bar
1029 draw z3--z4; % lower bar
1030 pickup tiny.nib;
1031 x6=x5=x1; y6=y5=y1+spread;
1032 pos5(dot_size,0); pos6(dot_size,90);
1033 x7=x8=x4; y7=y8=y4-spread;
1034 pos7(dot_size,0); pos8(dot_size,90);
1035 dot(5,6); dot(7,8);
1036 penlabels(1,2,3,4,5,6,7,8); endchar;
1037
1038 cmchar "Square subset sign"; % taken from vol E, p533
1039 compute_spread(5/4x_height#,3/2x_height#);
1040 beginchar(oct"100",14u#,v_center(spread#+rule_thickness#));
1041 adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u);
1042 x1=x4=hround(w-x2)+eps; x3=x2; y1-y4=spread; y2=y1; y3=y4;
1043 top y1=h; draw z1--z2--z3--z4; % bars and stem x8=x1;
1044 penlabels(1,2,3,4); endchar;
1045
1046 cmchar "Square superset sign";
1047 compute_spread(5/4x_height#,3/2x_height#);
1048 beginchar(oct"101",14u#,v_center(spread#+rule_thickness#));
1049 adjust_fit(0,0); pickup rule.nib;
1050 x2=hround(w-1.5u); x1=x4=hround w-x2-eps; x3=x2;
1051 y1-y4=spread; y2=y1; y3=y4; top y1=h; draw z1--z2--z3--z4;
1052 % bars and stem
1053 penlabels(1,2,3,4); endchar;
1054
1055 cmchar "Rightward pointing isosceles triangle";
1056 compute_spread(.45x_height#,.55x_height#);
1057 spread#':=spread#; spread':=spread; % the spread of `$=$'
1058 compute_spread(5/4x_height#,3/2x_height#);
1059 beginchar(oct"102",14u#,v_center(spread#+rule_thickness#));
1060 adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u);
1061 x3=x2; x1=hround(w-x2);
1062 top y2=h; y2-y3=spread; y1=.5[y2,y3];
1063 draw z1--z2--z3--cycle;
1064 penlabels(1,2,3); endchar;
1065
1066 cmchar "Leftward pointing isosceles triangle";
1067 compute_spread(.45x_height#,.55x_height#);
1068 spread#':=spread#; spread':=spread; % the spread of `$=$'
1069 compute_spread(5/4x_height#,3/2x_height#);
1070 beginchar(oct"103",14u#,v_center(spread#+rule_thickness#));
1071 adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps);
1072 x3=x2; x1=hround(w-x2);
1073 top y2=h; y2-y3=spread; y1=.5[y2,y3];
1074 draw z1--z2--z3--cycle;
1075 penlabels(1,2,3); endchar;
1076
1077 cmchar "Rightward isosceles triangle with lower bar";
1078 compute_spread(.45x_height#,.55x_height#);
1079 spread#':=spread#; spread':=spread; % the spread of `$=$'
1080 compute_spread(5/4x_height#,3/2x_height#);
1081 beginchar(oct"104",14u#,v_center(spread#'+spread#+rule_thickness#));
1082 adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u);
1083 x3=x2; x1=hround(w-x2);
1084 top y2=h; y2-y3=spread; y1=.5[y2,y3];
1085 x4=x2; x5=x1; y3-y4=spread'; y5=y4;
1086 draw z1--z2--z3--cycle; draw z4--z5;
1087 penlabels(1,2,3,4,5); endchar;
1088
1089 cmchar "Leftward isosceles triangle with lower bar";
1090 compute_spread(.45x_height#,.55x_height#);
1091 spread#':=spread#; spread':=spread; % the spread of `$=$'
1092 compute_spread(5/4x_height#,3/2x_height#);
1093 beginchar(oct"105",14u#,v_center(spread#'+spread#+rule_thickness#));
1094 adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps);
1095 x3=x2; x1=hround(w-x2);
1096 top y2=h; y2-y3=spread; y1=.5[y2,y3];
1097 x4=x2; x5=x1; y3-y4=spread'; y5=y4;
1098 draw z1--z2--z3--cycle; draw z4--z5;
1099 penlabels(1,2,3,4,5); endchar;
1100
1101 cmchar "Large, filled, 5-pointed star";
1102 beginchar(oct"106",asc_height#+desc_depth#,asc_height#,desc_depth#);
1103 adjust_fit(.5u#, .5u#); pickup tiny.nib;
1104 numeric theta; theta=360/5;
1105 x0=good.x .5w; y0=good.y .5[h, -d]; x1=x0; top y1=h;
1106 for n=2 upto 5: z[n]=z0+(z1-z0) rotated((n-1)*theta); endfor
1107 % z0 is the `origin'
1108 % z1 thru z5 are the points; z1 at the top going
1109 % counterclockwise
1110 z6=(z1--z3)intersectionpoint(z2--z5);
1111 for n=7 upto10: z[n]=z0+(z6-z0)rotated((n-1)*theta); endfor
1112 filldraw z1--z6--z2--z7--z3--z8--z4--z9--z5--z10--cycle;
1113 penlabels(0,1,2,3,4,5); endchar;
1114
1115 cmchar "Vertical overlapping slurs";
1116 beginchar(oct"107",9u#,body_height#,paren_depth#);
1117 adjust_fit(0,0); pickup fine.nib;
1118 numeric light_stem; light_stem=Vround .5[vair,stem];
1119 y2=.5[h,-d]; x2r=hround w-1.5u; pos2(light_stem,0);
1120 x1-.5hair=hround w-x2; x3=x1; y1+.5hair=h; y3-.5hair=-d;
1121 numeric theta; theta= angle((z2-z1)xscaled3);
1122 numeric theta'; theta'=angle((z3-z2)xscaled3);
1123 pos1(hair, theta+90); pos3(hair, theta'+90);
1124 path p;
1125 p=z1l{dir theta}...z2l...{dir theta'}z3l
1126 ..z3r{-dir theta'}...z2r...{-dir theta}z1r..cycle;
1127 filldraw p;
1128 p:=p reflectedabout((.5w,-d),(.5w,h)); filldraw p;
1129 penlabels(1,2,3); endchar;
1130
1131 cmchar "Filled rightward pointing isosceles triangle";
1132 compute_spread(.45x_height#,.55x_height#);
1133 spread#':=spread#; spread':=spread; % the spread of `$=$'
1134 compute_spread(5/4x_height#,3/2x_height#);
1135 beginchar(oct"111",14u#,v_center(spread#+rule_thickness#));
1136 adjust_fit(0,0); pickup rule.nib; lft x2=hround(1.5u);
1137 x3=x2; x1=hround(w-x2);
1138 top y2=h; y2-y3=spread; y1=.5[y2,y3];
1139 filldraw z1--z2--z3--cycle;
1140 penlabels(1,2,3); endchar;
1141
1142 cmchar "Filled leftward pointing isosceles triangle";
1143 compute_spread(.45x_height#,.55x_height#);
1144 spread#':=spread#; spread':=spread; % the spread of `$=$'
1145 compute_spread(5/4x_height#,3/2x_height#);
1146 beginchar(oct"112",14u#,v_center(spread#+rule_thickness#));
1147 adjust_fit(0,0); pickup rule.nib; rt x2=hround(w-1.5u-eps);
1148 x3=x2; x1=hround(w-x2);
1149 top y2=h; y2-y3=spread; y1=.5[y2,y3];
1150 filldraw z1--z2--z3--cycle;
1151 penlabels(1,2,3); endchar;
1152
1153 cmchar "short axis right arrow";
1154 beginchar(oct"113",9u#,27/7u#+math_axis#,27/7u#-math_axis#);
1155 pickup rule.nib;
1156 penpos1(.25rule_thickness,90); penpos2(.25rule_thickness,90); penpos3(bar,0);
1157 penpos4(bar,0);
1158 y0=y1=y2=math_axis;
1159 x1=hround 1.5u-eps;
1160 rt x0=w-x1;
1161 y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0-3u-eps;
1162 penpos5(bar,angle(z4-z0)); z5l=z0; penpos6(bar,angle(z3-z0)); z6l=z0;
1163 z9=.381966[.5[z3,z4],z0];
1164 numeric t; path p; p=z4l{z9-z4}..z6r;
1165 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1166 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
1167 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5r)
1168 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
1169 penlabels(0,1,2,3,4,5,6,9); endchar;
1170
1171 cmchar "short axis left arrow";
1172 beginchar(oct"114",9u#,27/7u#+math_axis#,27/7u#-math_axis#);
1173 pickup rule.nib;
1174 penpos1(.25rule_thickness,90); penpos2(.25rule_thickness,90); penpos3(bar,0);
1175 penpos4(bar,0);
1176 y0=y1=y2=math_axis; x0=hround 1.5u-eps;
1177 rt x1=w-x0;
1178 y3-y0=y0-y4=.24asc_height+eps; x3=x4=x0+3u+eps;
1179 penpos5(bar,angle(z4-z0)); z5l=z0; penpos6(bar,angle(z3-z0)); z6l=z0;
1180 z9=.381966[.5[z3,z4],z0];
1181 numeric t; path p; p=z4r{z9-z4}..z6r;
1182 t=xpart(p intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1183 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
1184 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
1185 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
1186 penlabels(0,1,2,3,4,5,6,9); endchar;
1187
1188
1189 cmchar "Filled downward triangle";
1190 beginchar(oct"110",.8asc_height#+3u#,.8asc_height#,0pt#);
1191 adjust_fit(0,0); pickup rule.nib;
1192 y2=0; lft x1=1.5u;
1193 x3=hround w-x1;
1194 y1=y3=vround h-y2; x2=.5[x1,x3];
1195 filldraw z1--z2--z3--cycle;
1196 penlabels(1,2,3); endchar;
1197
1198 cmchar "Downward triangle";
1199 beginchar(oct"117",.8asc_height#+3u#,.8asc_height#,0pt#);
1200 adjust_fit(0,0); pickup rule.nib;
1201 y2=0; lft x1=1.5u;
1202 x3=hround w-x1;
1203 y1=y3=vround h-y2; x2=.5[x1,x3];
1204 draw z1--z2--z3--cycle;
1205 penlabels(1,2,3); endchar;
1206
1207 cmchar "Upward triangle";
1208 beginchar(oct"115",.8asc_height#+3u#,.8asc_height#,0pt#);
1209 adjust_fit(0,0); pickup rule.nib;
1210 y2=h; lft x1=1.5u;
1211 x3=hround w-x1;
1212 y1=y3=vround h-y2; x2=.5[x1,x3];
1213 draw z1--z2--z3--cycle;
1214 penlabels(1,2,3); endchar;
1215
1216 cmchar "Filled upward triangle";
1217 beginchar(oct"116",.8asc_height#+3u#,.8asc_height#,0pt#);
1218 adjust_fit(0,0); pickup rule.nib;
1219 y2=h; lft x1=1.5u;
1220 x3=hround w-x1;
1221 y1=y3=vround h-y2; x2=.5[x1,x3];
1222 filldraw z1--z2--z3--cycle;
1223 penlabels(1,2,3); endchar;
1224
1225 cmchar "Egg sandwich";
1226 compute_spread(.45x_height#,.55x_height#);
1227 beginchar(oct"120",14u#,asc_height#,0);
1228 italcorr h#*slant-.5u#; adjust_fit(0,0); pickup rule.nib;
1229 lft x1=hround u-eps; x3=x1; x2=x4=w-x1;
1230 y1=y2; y3=y4;
1231 y1-y3=spread;
1232 .5[y1,y3]=math_axis;
1233 draw z1--z2; % upper bar
1234 draw z3--z4; % lower bar
1235 pickup tiny.nib;
1236 x5=x6=hround w/2; bot y5=bot y1; top y6=top y3;
1237 y7=y8=math_axis;x8-x7=y5-y6;
1238 x6=.5[x7,x8];
1239 draw z5{right}..z8..z6{left}..z7..cycle;
1240 penlabels(1,2,3,4,5,6,7,8); endchar;
1241
1242 cmchar "Stacked symbols: <, bar, >";
1243 compute_spread(.45x_height#,.55x_height#);
1244 spread#':=spread#; spread':=spread;
1245 compute_spread(.98 x_height#,1.176 x_height#);
1246 beginchar(oct"121",14u#,v_center(2spread#'+2spread#+rule_thickness#));
1247 adjust_fit(0,0); pickup rule.nib;
1248 y1=y2; lft x1=hround 1.5u-eps; rt x2=w-x1;
1249 x4=x6=x8=x1; x3=x5=x7=x2;
1250 y5-y1=y1-y6=spread';top y3=h; y3-y5=spread;
1251 y6-y8=spread;
1252 y7=.5[y6,y8]; y4=.5[y3,y5];
1253 draw z3--z4--z5; draw z6--z7--z8; draw z1--z2;
1254 penlabels(1,2,3,4,5,6,7,8); endchar;
1255
1256 cmchar "Stacked symbls: greater than, bar, less than";
1257 compute_spread(.45x_height#,.55x_height#);
1258 spread#':=spread#; spread':=spread;
1259 compute_spread(.98 x_height#,1.176 x_height#);
1260 beginchar(oct"122",14u#,v_center(2spread#'+2spread#+rule_thickness#));
1261 adjust_fit(0,0); pickup rule.nib;
1262 y1=y2; lft x2=hround 1.5u-eps; rt x1=w-x2;
1263 x4=x6=x8=x1; x3=x5=x7=x2;
1264 y5-y1=y1-y6=spread';top y3=h; y3-y5=spread;
1265 y6-y8=spread;
1266 y7=.5[y6,y8]; y4=.5[y3,y5];
1267 draw z3--z4--z5; draw z6--z7--z8; draw z1--z2;
1268 numeric bar_ht; bar_ht=y1; %save height of bar
1269 penlabels(1,2,3,4,5,6,7,8); endchar;
1270
1271 cmchar "Stacked symbls: less than, =, greater than";
1272 compute_spread(.45x_height#,.55x_height#);
1273 spread#':=spread#; spread':=spread;
1274 compute_spread(.98 x_height#,1.176 x_height#);
1275 beginchar(oct"123",14u#,v_center(3spread#'+2spread#+rule_thickness#));
1276 adjust_fit(0,0); pickup rule.nib; autorounded;
1277 lft x1=hround 1.5u-eps; x2=w-x1;
1278 x1'=x1; x2=x2'; x4=x6=x8=x1;
1279 x3=x5=x7=x2;
1280 y1=y2; y1'=y2'; y2-y2'=spread'; bot y2=math_axis+.5spread';
1281 draw z1--z2; draw z1'--z2';
1282 y3-y5=y6-y8=spread;
1283 y5-y2=y2'-y6=spread';
1284 y7=.5[y6,y8]; y4=.5[y3,y5];
1285 draw z3--z4--z5; draw z6--z7--z8;
1286 penlabels(1,1',2,2',3,4,5,6,7,8); endchar;
1287
1288 cmchar "Stacked symbols: greater than, =, less than";
1289 compute_spread(.45x_height#,.55x_height#);
1290 spread#':=spread#; spread':=spread;
1291 compute_spread(.98 x_height#,1.176 x_height#);
1292 beginchar(oct"124",14u#,v_center(3spread#'+2spread#+rule_thickness#));
1293 adjust_fit(0,0); pickup rule.nib;
1294 lft x2=hround 1.5u-eps; x1=w-x2;
1295 x1'=x1; x2=x2'; x4=x6=x8=x1;
1296 x3=x5=x7=x2;
1297 y1=y2; y1'=y2'; y2-y2'=spread'; bot y2=math_axis+.5spread';
1298 draw z1--z2; draw z1'--z2';
1299 y3-y5=y6-y8=spread;
1300 y5-y2=y2'-y6=spread';
1301 y7=.5[y6,y8]; y4=.5[y3,y5];
1302 draw z3--z4--z5; draw z6--z7--z8;
1303 penlabels(1,1',2,2',3,4,5,6,7,8); endchar;
1304
1305 cmchar "Yen symbol";
1306 compute_spread(.45x_height#, .55x_height#);
1307 beginchar(oct"125",13u#,cap_height#,0); %% adapted from "Y"
1308 italcorr cap_height#*slant+.45u#;
1309 adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric
1310 left_stem,right_stem,outer_jut,dy,alpha;
1311 left_stem=cap_stem-stem_corr; right_stem=min(cap_hair if
1312 hefty:-2stem_corr fi,left_stem); outer_jut=.75cap_jut;
1313 x1l=w-x4r=l+letter_fit+outer_jut+.05u;
1314 x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h;
1315 y2=y3=y5=.4h; dy=y1-y2; alpha=((x2l-x1l)++dy)/dy;
1316 penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
1317 penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
1318 penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0;
1319 z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if
1320 y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut;
1321 fill
1322 z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r
1323 --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
1324 ...{down}z0+.5left--cycle; % diagonals and stem
1325 else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r
1326 --diag_end(5r,6r,1,1,6l,5l)--z5l
1327 --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals & stem
1328 if serifs: numeric inner_jut; pickup tiny.nib;
1329 prime_points_inside(1,2); prime_points_inside(4,3);
1330 prime_points_inside(6,5);
1331 if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut:
1332 inner_jut=cap_jut;
1333 else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
1334 dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut);
1335 %upper lft serif
1336 dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark);
1337 % upper right serif
1338 dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi
1339 % lower serif
1340 pickup pencircle scaled .5[fine, rule_thickness];
1341 x7=x9=x1l; x8=x10=x4r;
1342 y9=y10;
1343 top y7=bar_height; y7=y8; draw z7--z8;
1344 y9-y7=spread;
1345 draw z9--z10;
1346 penlabels(0,1,2,3,4,5,6,1',2',3',4',5',6',7,8,9,10); endchar;
1347
1348 cmchar "Triple rightward arrow";
1349 compute_spread(.45x_height#,.55x_height#);
1350 beginchar(oct"126",18u#,v_center(2spread#+.5asc_height#+rule_thickness#));
1351 adjust_fit(0,0); pickup rule.nib; penpos1(rule_thickness,90);
1352 penpos2(rule_thickness,90); penpos3(1.5bar,0); penpos4(1.5bar,0);
1353 y0=y1=y2=math_axis; x1-.5rule_thickness=u;
1354 rt x0=hround (w-u); x0'=x0''=x0; x1'=x1''=x1;
1355 y1'=y1+spread;y1''=y1-spread; y0'=y1'; y0''=y1'';
1356 draw z0'--z1'; draw z0''--z1''; % draw bars
1357 pickup crisp.nib;
1358 y3-y0'=y0''-y4=.24asc_height+eps; x3=x4=x0-6u-eps;
1359 penpos5(bar,angle(z0-z4)); z5r=z0; penpos6(bar,angle(z0-z3));
1360 z6r=z0; z9=.381966[.5[z3,z4],z0]; erase filldraw
1361 z0..{z3-z9}z3--(w,y3)--(w,y4)--z4{z9-z4}..z0& cycle;
1362 numeric t; path p;
1363 p=z4l{z9-z4}..z6l; t=xpart(p intersectiontimes((0,y2l)--(w,y2l)));
1364 x2=xpart point t of p;
1365 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6l)
1366 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3l{z9-z3}..z5l)
1367 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
1368 penlabels(0,1,2,3,4,5,6,9,0',0'',1',1''); endchar;
1369
1370
1371 cmchar "Triple leftward arrow";
1372 compute_spread(.45x_height#,.55x_height#);
1373 beginchar(oct"127",18u#,v_center(2spread#+.5asc_height#+rule_thickness#));
1374 adjust_fit(0,0); pickup rule.nib; penpos1(rule_thickness,90);
1375 penpos2(rule_thickness,90); penpos3(1.5bar,0); penpos4(1.5bar,0);
1376 y0=y1=y2=math_axis; x1+.5rule_thickness=hround(w-u); lft
1377 x0=hround u; x0'=x0''=x0; x1'=x1''=x1;
1378 y1'=y1+spread;y1''=y1-spread; y0'=y1'; y0''=y1''; draw
1379 z0'--z1'; draw z0''--z1''; % draw bars
1380 pickup crisp.nib;
1381 y3-y0'=y0''-y4=.24asc_height+eps; x3=x4=x0+6u+eps;
1382 pos5(bar,angle(z4-z0)); z5l=z0; pos6(bar,angle(z3-z0));
1383 z6l=z0; z9=.381966[.5[z3,z4],z0]; erase filldraw
1384 z0..{z3-z9}z3--(0,y3)
1385 --(0,y4)--z4{z9-z4}..z0& cycle; numeric t; path p;
1386 p=z4r{z9-z4}..z6r; t=xpart(p
1387 intersectiontimes((0,y2l)--(w,y2l))); x2=xpart point t of p;
1388 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
1389 --z2l---z1l..z1r---z2r--subpath (t,0) of\\(z3r{z9-z3}..z5r)
1390 --z3l{z9-z3}..z0 & cycle; % arrowhead and stem
1391 penlabels(0,1,2,3,4,5,6,9,0',0'',1',1''); endchar;
1392
1393 cmchar "Check mark"; beginchar(oct"130",15u#,asc_height#,
1394 0); adjust_fit(0,0); pickup cal.nib;
1395 lft x1=hround(1.5u);y1=math_axis; y2=0; x2=hround(w/3);
1396 x3=w-x1; y3=asc_height-o;
1397 x4=w-1.5x2; y4=asc_height;
1398 draw z1--z2{z4-z2}..z3;
1399 penlabels(1,2,3,4);
1400 endchar;
1401
1402 cmchar "Vee on bar";
1403 compute_spread(.45x_height#,.55x_height#);
1404 beginchar(oct"131",11u#,asc_height#, desc_depth#);
1405 adjust_fit(0,0); pickup rule.nib;
1406 lft x1=lft x4=hround u; x3=x5=w-x1; x2=hround(w/2);
1407 bot y4=bot y5=0; y2=y4+spread; top y1=top y3=h+o;
1408 draw z1--z2--z3; draw z4--z5;
1409 penlabels(1,2,3,4,5);
1410 endchar;
1411
1412 cmchar "Bar on mountain";
1413 compute_spread(.45x_height#,.55x_height#);
1414 beginchar(oct"132",11u#,asc_height#, desc_depth#); adjust_fit(0,0);
1415 pickup rule.nib;
1416 lft x1=lft x4=hround u; x3=x5=w-x1; x2=hround(w/2);
1417 top y4=top y5=h+o; y2=y4-spread; bot y1=bot y3=0;
1418 draw z1--z2--z3; draw z4--z5;
1419 numeric t; % t is used in char"133, = on mountain
1420 t=y2-y3;
1421 penlabels(1,2,3,4,5);
1422 endchar;
1423
1424 cmchar "Equal sign on mountain";
1425 compute_spread(.45x_height#,.55x_height#);
1426 beginchar(oct"133",11u#,body_height#, desc_depth#); adjust_fit(0,0);
1427 pickup rule.nib;
1428 lft x1=lft x4=lft x6=hround u; x3=x5=x7=w-x1; x2=hround(w/2);
1429 y4=y5; y6=y7; y6-y4=y4-y2=spread; top y4=asc_height+o-.5spread;
1430 y2-y1=t; % t is defined in char "132
1431 y1=y3;
1432 draw z1--z2--z3; draw z4--z5; draw z6--z7;
1433 penlabels(1,2,3,4,5,6,7);
1434 endchar;
1435
1436 cmchar "Angle sign (simple)";
1437 beginchar(oct"134",13u#,asc_height#, 0);
1438 adjust_fit(0,0); pickup rule.nib;
1439 lft x2=hround u; x1=x3=w-x2;
1440 bot y2=bot y3=0; top y1=h;
1441 draw z1--z2--z3;
1442 penlabels(1,2,3);
1443 endchar;
1444
1445 cmchar "Angle sign (with small arc)";
1446 beginchar(oct"135",13u#,asc_height#, 0);
1447 adjust_fit(0,0); pickup rule.nib;
1448 lft x2=hround u; x1=x3=w-x2;
1449 bot y2=bot y3=0; y1=h;
1450 draw z1--z2--z3;
1451 path p; p=quartercircle scaled 15u;
1452 numeric t; t= xpart(p intersectiontimes (z1--z2));
1453 draw subpath (0,t) of p;
1454 penlabels(1,2,3);
1455 endchar;
1456
1457 cmchar "Eye-like angle sign (with small arc)";
1458 beginchar(oct"136",13u#,v_center(.75body_height#));
1459 adjust_fit(0,0); pickup rule.nib;
1460 lft x2=hround u; x1=x3=w-x2;
1461 y2=math_axis; y2=.5[y1,y3]; y1-y3=.75body_height;
1462 draw z1--z2--z3;
1463 path p; p=quartercircle scaled 17u;
1464 numeric t; t= xpart(p intersectiontimes ((z1--z2)shifted
1465 -z2));
1466 draw subpath (0,t) of p shifted z2;
1467 draw subpath (0,t) of p shifted z2
1468 reflectedabout(z2,(w,y2));
1469 penlabels(1,2,3);
1470 endchar;
1471
1472 cmchar "Proportional sign made of circles";
1473 beginchar(oct"137",14u#,asc_height#,0);
1474 adjust_fit(0,0); pickup pencircle scaled rule_thickness;
1475 numeric radius; radius:=w-2u; radius:=radius/3;
1476 radius:=radius-.5rule_thickness;
1477 x2=hround w-u; x1=w-x2+radius;
1478 y1=y2=math_axis;
1479 pair m; m=(rule_thickness,0);
1480 draw fullcircle scaled 2radius shifted (z1+.5m);
1481 draw (halfcircle scaled 2radius rotated 90) shifted
1482 (z2-.5m);
1483 penlabels(1,2);
1484 endchar;
1485
1486 cmchar "Simple slur below (smile)";
1487 beginchar(oct"140",14u#,asc_height#,desc_depth#);
1488 adjust_fit(0,0); pickup rule.nib;
1489 lft x1=hround u; y1=vround(math_axis+.25x_height);
1490 x3=w-x1; y3=y1; penpos2(rule_thickness,90); x2=.5w;
1491 y2l=good.y -(.25x_height-math_axis);
1492 numeric theta; theta=angle((z2-z1)yscaled 3);
1493 penpos1(rule_thickness,90+theta);
1494 penpos3(rule_thickness,90-theta);
1495 draw z1{dir theta}...z2...{dir-theta}z3;
1496 penlabels(1,2,3); endchar;
1497
1498 cmchar "Simple slur above (frown)";
1499 beginchar(oct"141",14u#,asc_height#,desc_depth#);
1500 adjust_fit(0,0); pickup rule.nib;
1501 lft x1=hround u; y1=vround(math_axis-.25x_height);
1502 x3=w-x1; y3=y1;
1503 penpos2(rule_thickness,90); x2=.5w; y2=good.y(.25x_height+math_axis);
1504 numeric theta; theta=angle((z2-z1)yscaled 3);
1505 penpos1(rule_thickness,90+theta);
1506 penpos3(rule_thickness,90-theta);
1507 draw z1{dir theta}...z2...{dir-theta}z3; penlabels(1,2,3);
1508 endchar;
1509
1510 cmchar "Very proper subset sign";
1511 compute_spread(.45x_height#,.55x_height#);
1512 spread#':=spread#; spread':=spread; % the spread of `$=$'
1513 spread':=spread'-rule_thickness;
1514 compute_spread(5/4x_height#,3/2x_height#);
1515 beginchar(oct"142",14u#,v_center(spread#+rule_thickness#));
1516 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
1517 autorounded; lft x2=hround 1.5u-eps; x1=x3=w-x2;
1518 y1-y3=spread; y2=.5[y1,y3]=math_axis; x4=x5=.5w; y4=y1;
1519 y5=y3; draw z1---z4...z2{down}...z5---z3; % arc and bars
1520 x1'=x3'=x1; y1-y1'=y3'-y3=spread';
1521 x4'=x5'=x4; y4-y4'=y5'-y5=spread';
1522 y2'=y2; x2'-x2=spread';
1523 draw z1'--z4'..z2'{down}..z5'--z3';
1524 penlabels(1,2,3,4,5,1',2',3',4',5'); endchar;
1525
1526 cmchar "Very proper superset sign";
1527 compute_spread(.45x_height#,.55x_height#);
1528 spread#':=spread#; spread':=spread; % the spread of `$=$'
1529 spread':=spread'-rule_thickness;
1530 compute_spread(5/4x_height#,3/2x_height#);
1531 beginchar(oct"143",14u#,v_center(spread#+rule_thickness#));
1532 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
1533 autorounded; lft x1=hround 1.5u-eps; x2=w-x1; x3=x1;
1534 y1-y3=spread; y2=.5[y1,y3]=math_axis; x4=x5=.5w; y4=y1;
1535 y5=y3; draw z1---z4...z2{down}...z5---z3; % arc and bars
1536 x1'=x3'=x1; y1-y1'=y3'-y3=spread';
1537 x4'=x5'=x4; y4-y4'=y5'-y5=spread';
1538 y2'=y2; x2-x2'=spread';
1539 draw z1'--z4'..z2'..z5'--z3';
1540 penlabels(1,2,3,4,5,1',2',3',4',5'); endchar;
1541
1542 cmchar "Parallel set union sign";
1543 compute_spread(.45x_height#,.55x_height#);
1544 spread#':=spread#; spread':=spread; % the spread of `$=$'
1545 spread':=spread'-rule_thickness;
1546 beginchar(oct"144",12u#,.8asc_height#,0);
1547 italcorr .8asc_height#*slant-.5u#;
1548 adjust_fit(0,0); pickup rule.nib; autorounded;
1549 lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1;
1550 y1=good.y h+o; bot y3=-o; y2=y4=2/3[y1,y3]; y5=y1;
1551 draw z1---z2...z3...z4---z5; % stems and cup
1552 y1'=y5'=y1; x1'-x1=x5-x5'=spread';
1553 y2'=y4'=y2+u; x2'-x2=x4-x4'=spread';
1554 x3'=x3; y3'-y3=spread';
1555 draw z1'..{down}z2'..z3'{right}..z4'{up}..z5';
1556 penlabels(1,2,3,4,5,1',2',3',4',5'); endchar;
1557
1558 cmchar "Parallel set intersection sign";
1559 compute_spread(.45x_height#,.55x_height#);
1560 spread#':=spread#; spread':=spread; % the spread of `$=$'
1561 spread':=spread'-rule_thickness;
1562 beginchar(oct"145",12u#,.8asc_height#,0);
1563 italcorr .8asc_height#*slant-.5u#; adjust_fit(0,0);
1564 pickup rule.nib; autorounded;
1565 lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1;
1566 y3=good.y h+o; bot y1=-o; y2=y4=2/3[y1,y3]; y5=y1;
1567 draw z1---z2...z3...z4---z5; % stems and cap
1568 y1'=y5'=y1; x1'-x1=x5-x5'=spread';
1569 y2'=y4'=y2-u; x2'-x2=x4-x4'=spread';
1570 x3'=x3; y3-y3'=spread';
1571 draw z1'..{up}z2'..z3'{right}..z4'{down}..z5';
1572 penlabels(1,2,3,4,5,1',2',3',4',5'); endchar;
1573
1574 cmchar "Subset or (double) equal to sign";
1575 compute_spread(.45x_height#,.55x_height#);
1576 spread#':=spread#; spread':=spread; % the spread of `$=$'
1577 compute_spread(5/4x_height#,3/2x_height#);
1578 beginchar(oct"152",14u#,v_center(2spread#'+spread#+2rule_thickness#));
1579 adjust_fit(0,0); pickup rule.nib; autorounded; lft x2=hround
1580 1.5u-eps; x1=x3=w-x2; y1-y3=spread; y2=.5[y1,y3]; top y1=h;
1581 x4=x5=.5w; y4=y1; y5=y3; draw z1---z4...z2{down}...z5---z3;
1582 % arc and bars
1583 x8=x1; x9=x2;
1584 y8=y9; y3-y9=spread'; draw z8--z9; % lower bar
1585 x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9';
1586 penlabels(1,2,3,4,5,8,9,8',9'); endchar;
1587
1588 cmchar "Superset or (double) equal to sign";
1589 compute_spread(.45x_height#,.55x_height#);
1590 spread#':=spread#; spread':=spread; % the spread of `$=$'
1591 compute_spread(5/4x_height#,3/2x_height#);
1592 beginchar(oct"153",14u#,v_center(2spread#'+spread#+2rule_thickness#));
1593 adjust_fit(0,0); pickup rule.nib; autorounded; lft x1=hround
1594 1.5u-eps; x2=w-x1; x3=x1; y1-y3=spread; y2=.5[y1,y3]; top
1595 y1=h; x4=x5=.5w; y4=y1; y5=y3; draw
1596 z1---z4...z2{down}...z5---z3; % arc and bars
1597 x8=x1;
1598 x9=x2;
1599 y8=y9; y3-y9=spread'; draw z8--z9; % lower bar
1600 x9'=x9; x8'=x8; y9'=y8'; y9-y9'=spread'; draw z8'--z9';
1601 labels(1,2,3,4,5,8,9); endchar;
1602
1603 cmchar "Christmas tree symbol";
1604 compute_spread(5/4x_height#,3/2x_height#);
1605 beginchar(oct"146",spread#+4u#,.8asc_height#,0);
1606 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
1607 autorounded;
1608 lft x1=1.5u; x3=w-x1; x2=.5[x1,x3];
1609 bot y1=-d-o; y3=y1; top y2=h+o;
1610 draw z1{spread,u}...{up}z2;
1611 draw z3{-spread,u}...{up}z2;
1612 penlabels(1,2,3); endchar;
1613
1614 cmchar "Inverted Christmas tree symbol";
1615 compute_spread(5/4x_height#,3/2x_height#);
1616 beginchar(oct"147",spread#+4u#,.8asc_height#,0);
1617 italcorr h#*slant-u#; adjust_fit(0,0); pickup rule.nib;
1618 autorounded;
1619 lft x1=1.5u; x3=w-x1; x2=.5[x1,x3];
1620 top y1=h+o; y3=y1; bot y2=-d-o;
1621 draw z1{spread,-u}...{down}z2;
1622 draw z3{-spread,-u}...{down}z2;
1623 penlabels(1,2,3); endchar;
1624
1625 cmchar "Stylized lambda symbol";
1626 beginchar(oct"150",14u#,asc_height#,0);
1627 adjust_fit(0,0); pickup rule.nib; autorounded;
1628 lft x1=u; top y1=h;
1629 rt x2=w-u; bot y2=-o;
1630 draw z1--z2;
1631 z3=.5[z1,z2];
1632 x4=x1; y4=y2; draw z3--z4;
1633 penlabels(1,2,3,4); endchar;
1634
1635 cmchar "Reflected stylized lambda symbol";
1636 beginchar(oct"151",14u#,asc_height#,0);
1637 adjust_fit(0,0); pickup rule.nib; autorounded;
1638 lft x1=u; bot y1=-o;
1639 rt x2=w-u; top y2=h;
1640 draw z1--z2;
1641 z3=.5[z1,z2];
1642 x4=x2; y4=y1; draw z3--z4;
1643 penlabels(1,2,3,4); endchar;
1644
1645 cmchar "Sunrise symbol";
1646 compute_spread(.45x_height#,.55x_height#);
1647 beginchar(oct "154",14u#,v_center(3spread#+rule_thickness#));
1648 italcorr h#*slant-.5u#; adjust_fit(0,0); pickup rule.nib;
1649 lft x1=hround u-eps; x3=x1; x2=x4=w-x1; y1=y2; y3=y4;
1650 y1-y3=spread; .5[y1,y3]=math_axis;
1651 y5=y6=y1; x7=.5[x1,x2]; x5=.3[x1,x2];
1652 x2-x6=x5-x1;
1653 y7-y1=.5(x6-x5);
1654 draw z1--z5{up}...z7...{down}z6--z2; % upper bar
1655 draw z3--z4; % lower bar
1656 penlabels(1,2,3,4,5,6,7); endchar;
1657
1658 cmchar "Sunrise-over-water symbol";
1659 compute_spread(.45x_height#,.55x_height#);
1660 beginchar(oct "155",14u#,v_center(3spread#+rule_thickness#));
1661 italcorr h#*slant-.5u#; adjust_fit(0,0); pickup rule.nib;
1662 lft x1=hround u-eps; x3=x1; x2=x4=w-x1; y1=y2; y3=y4;
1663 y1-y3=spread; .5[y1,y3]=math_axis;
1664 y5=y6=y1; x7=.5[x1,x2]; x5=.3[x1,x2];
1665 x2-x6=x5-x1;
1666 y7-y1=.5(x6-x5);
1667 x5'=x5; x7'=x7; x6'=x6; y5'=y6'=y3; y3-y7'=y7-y1;
1668 draw z1--z5{up}...z7...{down}z6--z2; % upper bar
1669 draw z3--z5'{down}...z7'...{up}z6'--z4; % lower bar
1670 penlabels(1,2,3,4,5,6,7); endchar;
1671
1672 cmchar "Much, much less sign";
1673 compute_spread(5/4x_height#,3/2x_height#);
1674 beginchar(oct"156",24u#,v_center(spread#+rule_thickness#));
1675 adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup
1676 rule.nib; lft x2=hround u-epsilon; x1=x3=hround 12.5u-x2;
1677 y1-y3=ceiling 1.1spread; y2=.5[y1,y3]=math_axis;
1678 draw z1--z2--z3; % left diagonals
1679 z4-z1=z5-z2=z6-z3=z7-z4=z8-z5=z9-z6;
1680 x7=w-x2; y4=y1;
1681 draw z4--z5--z6; % middle diagonals
1682 draw z7--z8--z9; % right diagonals
1683 penlabels(1,2,3,4,5,6,7,8,9); endchar;
1684
1685 cmchar "Much, much greater sign";
1686 compute_spread(5/4x_height#,3/2x_height#);
1687 beginchar(oct"157",24u#,v_center(spread#+rule_thickness#));
1688 adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup
1689 rule.nib;
1690 lft x1=hround u-epsilon; x2=hround 12.5u-u; x1=x3;
1691 y1-y3=ceiling 1.1spread; y2=.5[y1,y3]=math_axis;
1692 draw z1--z2--z3; % left diagonals
1693 z4-z1=z5-z2=z6-z3=z7-z4=z8-z5=z9-z6;
1694 x8=w-x1; y4=y1;
1695 draw z4--z5--z6; % middle diagonals
1696 draw z7--z8--z9; % right diagonals
1697 penlabels(1,2,3,4,5,6,7,8,9); endchar;
1698
1699 cmchar "Northwest right angle symbol";
1700 beginchar(oct"160",9u#, asc_height#, 0);
1701 adjust_fit(0,0); pickup rule.nib;
1702 x1=x2; lft x1=u; x3=w-x1; y2=y3; top y2=h;
1703 y2-y1=x3-x2;
1704 draw z1--z2--z3;
1705 penlabels(1,2,3); endchar;
1706
1707 cmchar "Northeast right angle symbol";
1708 beginchar(oct"161",9u#,asc_height#,0);
1709 adjust_fit(0,0); pickup rule.nib;
1710 lft x3=u; x2=w-x3; top y3=h; y3=y2; x1=x2; x2-x3=y2-y1;
1711 draw z1--z2--z3;
1712 penlabels(1,2,3); endchar;
1713
1714 cmchar "Southwest right angle symbol";
1715 beginchar(oct"170", 9u#, 7u#,0);
1716 adjust_fit(0,0); pickup rule.nib;
1717 lft x2=u; x3=w-x2; x1=x2; bot y2=-o; y3=y2;
1718 y1-y2=x3-x2;
1719 draw z1--z2--z3;
1720 penlabels(1,2,3); endchar;
1721
1722 cmchar "Southeast right angle symbol";
1723 beginchar(oct"171", 9u#, 7u#,0);
1724 adjust_fit(0,0); pickup rule.nib;
1725 lft x3=u; x2=w-x3; x1=x2; bot y2=-o; y3=y2;
1726 y1-y2=x2-x3;
1727 draw z1--z2--z3;
1728 penlabels(1,2,3); endchar;
1729
1730 %% include these parameters to `shrink R and S so they
1731 %% fit inside a circle
1732 %
1733 begingroup
1734 save u, width_adj, cap_serif_fit, letter_fit,
1735 body_height, cap_height, x_height, bar_height, comma_depth,
1736 flare, cap_hair, stem, cap_stem, cap_curve, cap_ess,
1737 cap_jut, beak_jut, beak, slab, cap_bar, cap_band, cap_notch_cut,
1738 o, apex_o;
1739 numeric radius;
1740 old.u:=u; old.cap_curve:=cap_curve; old.cap_height:=cap_height;
1741 old.u#:=u#; old.cap_curve#:=cap_curve#; old.cap_height#:=cap_height#;
1742 forsuffixes $=u, width_adj, cap_serif_fit, letter_fit,
1743 body_height, cap_height, x_height, bar_height,
1744 comma_depth, flare, cap_hair,
1745 stem, cap_stem, cap_curve, cap_ess,
1746 cap_jut, beak_jut, beak,
1747 slab, cap_bar,
1748 cap_band, cap_notch_cut,
1749 o, apex_o: $.#:=lower.$.#; endfor
1750 fudge:=lower.fudge;
1751 font_setup;
1752 % Changed by Stefan Lindner 15.03.1991 -sl
1753 % original: radius=.5(6u++cap_height)+3u; radius=radius#*hppp;
1754 radius#=.5(6u#++cap_height#)+3u#; radius:=radius#*hppp;
1755 % end of change
1756 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1757
1758 cmchar "Circle-R brand";
1759 beginchar(oct"162",13u#, .52cap_height#+radius#,radius#-.52cap_height#);
1760 adjust_fit(4u#,4u#);
1761 pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
1762 lft x1l=lft x2l=hround max(2u,3u-.5cap_stem');
1763 top y1=cap_height; bot y2=0;
1764 filldraw stroke z1e--z2e; % stem
1765 penpos3(cap_band,90); penpos4(cap_band,90);
1766 penpos5(cap_curve,0);
1767 penpos6(vair,-90); penpos7(vair,-90);
1768 z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
1769 x7=x2; y7l=vround(.5cap_height+.5vair); x4=x6;
1770 x4=.5w-.5u; x5r=hround(w-2.25u);
1771 x4l:=x6l:=x4-.125cap_curve;
1772 fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe
1773 pos6'(vair,-90); pos0(cap_stem,180);
1774 pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0);
1775 z6'=z6; lft x0r=lft x8r=hround(x5-2/3u-.5cap_curve);
1776 y8=1/3[y2,y7]; y0=3/5[y2,y7]; x9=.5[x8l,x10r];
1777 bot y9r=-o; rt x10r=hround(w-.05u); y10=1/4[y2,y7];
1778 filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail
1779 nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
1780 dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower serif
1781 % tail
1782 math_fit(0,.75ic#);
1783 pickup rule.nib;
1784 z100=(hround w/2,.52cap_height); z101=z100+(0,radius); z103=z100-(0,radius);
1785 z102=z100+(radius,0); z104=z100-(radius,0);
1786 draw z101...z102...z103...z104...cycle;
1787 penlabels(0,1,2,3,4,5,6,7,8,9,10,100,101,102,103,104);
1788 endchar;
1789
1790 cmchar "Circle-S brand";
1791 beginchar(oct"163",10u#,radius#+.52cap_height#,radius#-.52cap_height#);
1792 adjust_fit(5u#,5u#);
1793 numeric theta; theta=90-angle(50u,cap_height); slope:=-cap_height/50u; % angle at middle
1794 numeric s_slab; s_slab=slab;
1795 numeric ess'; ess'=max(fine.breadth,cap_ess);
1796 pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-90);
1797 pos0(ess',theta); pos7(s_slab,-90);
1798 x2+x7=2x0=w; x7-x2=u; top y2l=cap_height+o; bot y7r=-o;
1799 y0=.52cap_height; lft x3l=hround u; rt x6r=hround(w-u);
1800 x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine;
1801 ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r;
1802 ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r;
1803 filldraw stroke super_arc.e(2,3) & z3e{down}
1804 ..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke
1805 pos1(hair,180); pos8(hair,180);
1806 rt x1l=hround(w-1.5u); lft x8r=hround u;
1807 bot y1=vround 2/3cap_height+1; top y8=vround 1/3cap_height-1;
1808 filldraw stroke z1e{x2-x1,10(y2-y1)}....{left}z2e; % upper arc
1809 filldraw stroke z7e{left}....{up}z8e; % lower arc
1810 path upper_arc, lower_arc;
1811 upper_arc=z1{x2-x1,10(y2-y1)}....{left}z2;
1812 lower_arc=z7{left}....{up}z8;
1813 pos10(.3[fine.breadth,cap_hair],0);
1814 pos9(.3[fine.breadth,cap_hair],0);
1815 x10r=x1l; top y10=top y2l; x9l=x8r; bot y9=bot y7r;
1816 x1l-x1'=x8'-x8r=1.6cap_curve-fine; y1'=y1; y8'=y8;
1817 numeric t; t=xpart(upper_arc intersectiontimes(z10l--z1'));
1818 filldraw z1l--z10r--z10l--subpath(t,0) of upper_arc--cycle; % upper barb
1819 t:=xpart(lower_arc intersectiontimes(z9r--z8'));
1820 filldraw z8r--z9l--z9r--subpath(t,1) of lower_arc--cycle; % lower barb
1821 % lower arc and terminal
1822 math_fit(0,.5ic#);
1823 pickup rule.nib;
1824 z100=(hround w/2,.52cap_height); z101=z100+(0,radius); z103=z100-(0,radius);
1825 z102=z100+(radius,0); z104=z100-(radius,0);
1826 draw z101...z102...z103...z104...cycle;
1827 penlabels(0,1,1',2,3,4,5,6,7,8,8',9,10,100,101,102,103,104);
1828 endchar;
1829 endgroup;
1830
1831
1832 cmchar "Pitchfork symbol";
1833 beginchar(oct"164",12u#,asc_height#,0);
1834 italcorr .8asc_height#*slant-.5u#;
1835 adjust_fit(0,0); pickup rule.nib; autorounded;
1836 lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1;
1837 y3=good.y .7h+o; bot y1=-o; y2=y4=2/3[y1,y3]; y5=y1;
1838 draw z1---z2...z3...z4---z5; % stems and cap
1839 x6=x7=good.x w/2; y6=y1; y7=h+o;
1840 draw z6--z7; % stem
1841 penlabels(1,2,3,4,5,6,7); endchar;
1842
1843 cmchar "Dotted plus sign";
1844 beginchar(oct"165",14u#,8u#+math_axis#,6u#-math_axis#);
1845 adjust_fit(0,0); pickup rule.nib;
1846 x1=x2=good.x .5w; top y1=h-2.5rule_thickness+eps; .5[y1,y2]=math_axis;
1847 lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis;
1848 draw z1--z2; % stem
1849 draw z3--z4; % crossbar
1850 x5=x1; y5=h+o;
1851 pickup pencircle scaled 2.5rule_thickness; drawdot z5;
1852 penlabels(1,2,3,4,5); endchar;
1853
1854 cmchar "Inverted similarity sign";
1855 compute_spread(.45x_height#,.55x_height#);
1856 beginchar(oct"166",14u#,v_center(spread#+rule_thickness#));
1857 adjust_fit(0,0);
1858 pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness;
1859 if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline
1860 lft x1=hround(u); x2=4u; x3=w-x2; x4=w-x1;
1861 bot y2=bot y4=-d; top y1=top y3=h;
1862 draw z1{down}...z2{right}..{right}z3...{down}z4; % stroke
1863 labels(1,2,3,4); endchar;
1864
1865 cmchar "Inverted similar or equal sign";
1866 compute_spread(.45x_height#,.55x_height#);
1867 beginchar(oct"167",14u#,v_center(2spread#+rule_thickness#));
1868 adjust_fit(0,0);
1869 pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness;
1870 if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline
1871 lft x1=hround(u); x2=4u; x3=w-x2; x4=w-x1;
1872 bot y2=bot y4=floor math_axis; top y1=top y3=h;
1873 draw z1{down}...z2{right}..{right}z3...{down}z4; % stroke
1874 pickup rule.nib; lft x5=hround u-eps; x6=w-x5; y5=y6=math_axis-spread;
1875 draw z5--z6; % bar
1876 labels(1,2,3,4,5,6); endchar;
1877
1878 cmchar "Iron cross";
1879 beginchar(oct"172",15u#,asc_height#,0); adjust_fit(0,0);
1880 pickup pencircle scaled .5rule_thickness;
1881 numeric cross_tension; cross_tension=.9;
1882 numeric cross_foot; cross_foot=4u;
1883 y0=.5[y1,y2]; x0=hround w/2;
1884 x1=x2=x0; bot y1=-o; lft x1l=3.5u; x1r=w-x1l; y1l=y1r=y1;
1885 top y2=h+o; x2r=x1l; x2l=x1r; y2l=y2r=y2;
1886 y3=y4=y0; x3=x0+eps; x4+x3=2x0;
1887 path p; p=z1l--z1r..tension cross_tension..z3..tension cross_tension
1888 ..z2l--z2r..tension cross_tension..z4..tension cross_tension..
1889 z1l..cycle;
1890 filldraw p;
1891 p:=p shifted -z0; p:=p rotated 90; p:=p shifted z0;
1892 filldraw p;
1893 penlabels(0,1,2,3,4); endchar;
1894
1895 cmchar "Bourbaki C symbol";
1896 beginchar(oct"173",9u#, 1.1body_height#, 0);
1897 adjust_fit(0,0); pickup pencircle scaled 2rule_thickness;
1898 lft x4=lft x5=u; x1=x2=x8=x7=w-x4; x3=x6=hround
1899 w/2;
1900 bot y6=-o; top y3=h+o; y2=y4=y3-1.8u; y5=y7=y6+1.8u;
1901 y1=y2-2u; y8=y7+2u;
1902 draw z1--z2{up}..{left}z3..{down}z4--z5{down}..z6{right}..{up}z7--z8;
1903 labels(1,2,3,4,5,6,7,8); endchar;
1904
1905 cmchar "Bourbaki T symbol";
1906 beginchar(oct "174", 10u#, x_height#, desc_depth#);
1907 adjust_fit(0,0); pickup pencircle scaled 2rule_thickness;
1908 lft x1=u; x2=w-x1; top y1=top y2=h; x3=x4=hround w/2; y3=y1;
1909 bot y4=-1.1d;
1910 draw z1--z2; draw z3--z4;
1911 labels(1,2,3,4); endchar;
1912
1913 cmchar "Circle-in-a-circle operator";
1914 beginarithchar(oct"175"); pickup light_rule.nib; autorounded;
1915 lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h;
1916 circle_points; draw_circle; % circle
1917 pickup rule.nib;
1918 numeric x[],y[];
1919 lft x6=hround 4.5u; x2=w-x6; y2=math_axis;
1920 top y8=y2+.5(rt x2-lft x6); circle_points; draw_circle;
1921 labels(1,2,3,4,5,6,7,8); endchar;
1922
1923 cmchar "Asterisk-in-a-circle";
1924 beginarithchar(oct"176");
1925 pickup light_rule.nib; autorounded;
1926 y2=math_axis; top y8=6u+math_axis;
1927 lft x6=hround w/2 - 6u; x2=w-x6;
1928 circle_points; draw_circle; % circle
1929 numeric x[], y[];
1930 numeric ast_flare; ast_flare=hround .7[thin_join,stem];
1931 x0=.5w; y0=math_axis; for d=-150 step 60 until 150:
1932 z[d]=z0+.5dir d xscaled 7.5u yscaled x_height;
1933 numeric theta; theta=angle(z[d]-z0);
1934 fill z0+.5(0,-thin_join)rotated theta
1935 ---z[d]+.5(-ast_flare,-ast_flare)rotated theta
1936 ..z[d]..z[d]+.5(-ast_flare,ast_flare)rotated theta
1937 ---z0+.5(0,thin_join)rotated theta--cycle; endfor % diagonal at angle |d|
1938 labels(0,[-150],[-90],[-30],30,90,150); endchar;
1939
1940 cmchar "Bar-in-a-circle operator";
1941 beginarithchar(oct"177"); pickup light_rule.nib; autorounded;
1942 lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h;
1943 circle_points; draw_circle; % circle
1944 y9=y10=y2; x9=x6+3u; x10=w-x9;
1945 draw z9--z10;
1946 labels(1,2,3,4,5,6,7,8,9,10); endchar;
1947