Debian Codegraph @

texmf-dist/fonts/source/public/cm/symbol.mf

raw
1 % THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE symbol.mf BY D E KNUTH.
2 % IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED!
3
4 % This file defines the symbols of a \TeX\ math symbol font.
5 % Character codes \0000--\0100 and \0133--\0177 are generated.
6
7 % (Improvements to the author's original characters were worked out in 1982
8 % by Ronald F. Whitney and other members of
9 % the American Mathematical Society.)
10
11 % Italic corrections have not been computed for most of these characters,
12 % since they are generally not slanted.
13
14 minus=oct"000"; cdot=oct"001"; diamond=oct"005";
15 plus_minus=oct"006"; o_plus=oct"010"; o_times=oct"012";
16 eqv=oct"021"; leq=oct"024"; geq=oct"025";
17 subset=oct"032"; superset=oct"033";
18 left_arrow=oct"040"; right_arrow=oct"041";
19 up_arrow=oct"042"; down_arrow=oct"043"; double_arrow=oct"044";
20 infty=oct"061"; elt=oct"062";
21 for_all=oct"070"; there_exists=oct"071"; false_that=oct"072";
22 cup=oct"133"; cap=oct"134"; meet=oct"136"; join=oct"137";
23 left_brace=oct"146"; right_brace=oct"147"; vertical=oct"152";
24 backslash=oct"156"; integral=oct"163";
25
26 input sym; % symbols common to other fonts
27
28 cmchar "Times operator";
29 beginarithchar(oct"002"); pickup rule.nib;
30 x1=good.x(1/sqrt2)[.5w,rt u]; y1=good.y(1/sqrt2)[math_axis,bot h];
31 x2=x3=w-x1; x4=x1; .5[y1,y2]=.5[y3,y4]=math_axis; y2=y4;
32 draw z1--z2; draw z3--z4; % diagonals
33 labels(1,2,3,4); endchar;
34
35 cmchar "Asterisk at the axis";
36 beginchar(oct"003",9u#,v_center(x_height#));
37 adjust_fit(0,0);
38 numeric ast_flare; ast_flare=hround .7[thin_join,stem];
39 x0=.5w; y0=h-.5x_height;
40 for d=-150 step 60 until 150: z[d]=z0+.5dir d xscaled 7.5u yscaled x_height;
41 numeric theta; theta=angle(z[d]-z0);
42 fill z0+.5(0,-thin_join)rotated theta
43 ---z[d]+.5(-ast_flare,-ast_flare)rotated theta
44 ..z[d]..z[d]+.5(-ast_flare,ast_flare)rotated theta
45 ---z0+.5(0,thin_join)rotated theta--cycle; endfor % diagonal at angle |d|
46 labels(0,[-150],[-90],[-30],30,90,150); endchar;
47
48 cmchar "Elementary division operator";
49 beginarithchar(oct"004"); pickup fine.nib; pickup rule.nib;
50 numeric del; del=dot_size-currentbreadth; % currentbreadth=fine
51 x3-.5del=good.x(.5w-.5del); center_on(x3);
52 y3+.5del=good.y(math_axis+math_spread[.5x_height,.6x_height]+.5del);
53 lft x1=hround u-eps; x2=w-x1; y1=y2=math_axis;
54 draw z1--z2; % bar
55 pos3(dot_size,0); pos4(dot_size,90); z3=z4;
56 pos5(dot_size,0); pos6(dot_size,90); z5=z6; x5=x3; .5[y3,y5]=math_axis;
57 dot(3,4); dot(5,6); % dots
58 penlabels(1,2,3,4,5,6); endchar;
59
60 cmchar "Minus-or-plus sign";
61 beginarithchar(oct"007"); pickup rule.nib;
62 numeric shiftup; shiftup=-vround 1.5u;
63 x1=x2=.5w; lft x3=lft x5=hround u-eps; x4=x6=w-x3;
64 .5[y1,y2]=y3=y4=math_axis+shiftup; top y1=h+shiftup; y5=y6=y1;
65 draw z1--z2; % stem
66 draw z3--z4; % plus bar
67 draw z5--z6; % minus bar
68 labels(1,2,3,4,5,6); endchar;
69
70 cmchar "Circle-minus operator";
71 beginarithchar(oct"011"); pickup light_rule.nib; autorounded;
72 lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h;
73 circle_points; draw_circle; % circle
74 draw z2--z6; % bar
75 labels(1,2,3,4,5,6,7,8); endchar;
76
77 cmchar "Circle-divide operator";
78 beginarithchar(oct"013"); pickup light_rule.nib; autorounded;
79 lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h;
80 circle_points; draw_circle; % circle
81 draw z1--z5; % diagonal
82 labels(1,2,3,4,5,6,7,8); endchar;
83
84 cmchar "Circle-dot operator";
85 beginarithchar(oct"014"); pickup light_rule.nib; autorounded;
86 lft x6=hround u; x2=w-x6; y2=math_axis; top y8=h;
87 circle_points; draw_circle; % circle
88 fill fullcircle scaled(1.3dot_size+eps) shifted(.5[z4,z8]); % dot
89 labels(1,2,3,4,5,6,7,8); endchar;
90
91 cmchar "Circle for copyright, etc.";
92 beginchar(oct"015",18u#,asc_height#,desc_depth#); autorounded;
93 adjust_fit(if monospace:-3u#,-3u# else: 0,0 fi); pickup rule.nib;
94 lft x6=hround u; x2=w-x6; top y8=h+o; bot y4=-d-o;
95 circle_points; draw_circle; % circle
96 labels(1,2,3,4,5,6,7,8); endchar;
97
98 cmchar "Circle operator";
99 beginchar(oct"016",9u#,v_center(7u#));
100 adjust_fit(0,0); pickup rule.nib; autorounded;
101 lft x6=hround u; x2=w-x6; top y8=h; y8-y4=x2-x6;
102 circle_points; draw_circle; % circle
103 labels(1,2,3,4,5,6,7,8); endchar;
104
105 cmchar "Bullet";
106 beginchar(oct"017",9u#,v_center(7u#));
107 adjust_fit(0,0); pickup rule.nib; autorounded;
108 lft x6=hround u; x2=w-x6; top y8=h; y8-y4=x2-x6; circle_points;
109 filldraw z8{right}...z1{z2-z8}...z2{down}...z3{z4-z2}...z4{left}
110 ...z5{z6-z4}...z6{up}...z7{z8-z6}...cycle; % circle and interior
111 labels(1,2,3,4,5,6,7,8); endchar;
112
113 cmchar "Hardy's asymptotic equivalence sign";
114 compute_spread(.45x_height#,.55x_height#);
115 beginchar(oct"020",14u#,v_center(2spread#+rule_thickness#));
116 adjust_fit(0,0); pickup rule.nib; autorounded;
117 lft x1=hround u-eps; x3=x1; x2=x4=w-x1; x5=x6=.5w;
118 y1=y2=good.y h; y3=y4; .5[y1,y3]=.5[y5,y6]=math_axis;
119 y5=good.y .3[y1,y3];
120 draw z1{x5-x1,2(y5-y1)}...z5{right}...z2{x2-x5,2(y2-y5)}; % upper bar
121 draw z3{x6-x3,2(y6-y3)}...z6{right}...z4{x4-x6,2(y4-y6)}; % lower bar
122 labels(1,2,3,4,5,6); endchar;
123
124 cmchar "Subset or equal to sign";
125 compute_spread(.45x_height#,.55x_height#);
126 spread#':=spread#; spread':=spread; % the spread of `$=$'
127 compute_spread(5/4x_height#,3/2x_height#);
128 beginchar(oct"022",14u#,v_center(spread#'+spread#+rule_thickness#));
129 adjust_fit(0,0); pickup rule.nib; autorounded;
130 lft x2=hround 1.5u-eps; x1=x3=w-x2;
131 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
132 x4=x5=.5w; y4=y1; y5=y3;
133 draw z1---z4...z2{down}...z5---z3; % arc and bars
134 x8=x1; lft x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar
135 labels(1,2,3,4,5,8,9); endchar;
136
137 cmchar "Superset or equal to sign";
138 compute_spread(.45x_height#,.55x_height#);
139 spread#':=spread#; spread':=spread; % the spread of `$=$'
140 compute_spread(5/4x_height#,3/2x_height#);
141 beginchar(oct"023",14u#,v_center(spread#'+spread#+rule_thickness#));
142 adjust_fit(0,0); pickup rule.nib; autorounded;
143 lft x1=hround 1.5u-eps; x2=w-x1; x3=x1;
144 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
145 x4=x5=.5w; y4=y1; y5=y3;
146 draw z1---z4...z2{down}...z5---z3; % arc and bars
147 x8=x1; rt x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % lower bar
148 labels(1,2,3,4,5,8,9); endchar;
149
150 cmchar "Precedes or equals sign";
151 compute_spread(.45x_height#,.55x_height#);
152 spread#':=spread#; spread':=spread; % the spread of `$=$'
153 compute_spread(5/4x_height#,3/2x_height#);
154 beginchar(oct"026",14u#,v_center(spread#'+spread#+rule_thickness#));
155 adjust_fit(0,0); pickup rule.nib; autorounded;
156 lft x2=hround 1.5u-eps; x1=x3=w-x2;
157 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
158 draw z1{-u,-spread}...{left}z2; % upper diagonal
159 draw z3{-u,spread}...{left}z2; % lower diagonal
160 x8=x1; x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % bar
161 labels(1,2,3,8,9); endchar;
162
163 cmchar "Follows or equals sign";
164 compute_spread(.45x_height#,.55x_height#);
165 spread#':=spread#; spread':=spread; % the spread of `$=$'
166 compute_spread(5/4x_height#,3/2x_height#);
167 beginchar(oct"027",14u#,v_center(spread#'+spread#+rule_thickness#));
168 adjust_fit(0,0); pickup rule.nib; autorounded;
169 lft x1=hround 1.5u-eps; x2=w-x1; x3=x1;
170 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
171 draw z1{u,-spread}...{right}z2; % upper diagonal
172 draw z3{u,spread}...{right}z2; % lower diagonal
173 x8=x1; x9=x2; y8=y9; y3-y9=spread'; draw z8--z9; % bar
174 labels(1,2,3,8,9); endchar;
175
176 cmchar "Similarity sign";
177 compute_spread(.45x_height#,.55x_height#);
178 beginchar(oct"030",14u#,v_center(spread#+rule_thickness#));
179 adjust_fit(0,0);
180 pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness;
181 if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline
182 lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1;
183 bot y1=bot y3=-d; top y2=top y4=h;
184 draw z1{up}...z2{right}..{right}z3...{up}z4; % stroke
185 labels(1,2,3,4); endchar;
186
187 cmchar "Approximate equality sign";
188 compute_spread(.45x_height#,.55x_height#);
189 spread#':=spread#; spread':=spread; % the spread of `$=$'
190 compute_spread(.54x_height#,.66x_height#);
191 beginchar(oct"031",14u#,v_center(spread#'+spread#+rule_thickness#));
192 adjust_fit(0,0);
193 pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness;
194 if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline
195 lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1;
196 y1=y3; top y2=top y4=h; top y2-bot y1=spread';
197 draw z1{up}...z2{right}..{right}z3...{up}z4; % upper stroke
198 z1-z5=z2-z6=z3-z7=z4-z8=(0,spread);
199 draw z5{up}...z6{right}..{right}z7...{up}z8; % lower stroke
200 labels(1,2,3,4,5,6,7,8); endchar;
201
202 cmchar "Much less than sign";
203 compute_spread(5/4x_height#,3/2x_height#);
204 beginchar(oct"034",18u#,v_center(spread#+rule_thickness#));
205 adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup rule.nib;
206 lft x2=hround u-epsilon; x1=x3=hround 12.5u-x2;
207 y1-y3=ceiling 1.1spread; y2=.5[y1,y3]=math_axis;
208 draw z1--z2--z3; % left diagonals
209 z4-z1=z5-z2=z6-z3; x4=w-x2; y4=y1;
210 draw z4--z5--z6; % right diagonals
211 labels(1,2,3,4,5,6); endchar;
212
213 cmchar "Much greater than sign";
214 compute_spread(5/4x_height#,3/2x_height#);
215 beginchar(oct"035",18u#,v_center(spread#+rule_thickness#));
216 adjust_fit(if monospace:-u#,-u# else: 0,0 fi); pickup rule.nib;
217 lft x1=hround u-epsilon; x2=hround 12.5u-x1; x3=x1;
218 y1-y3=ceiling 1.1spread; y2=.5[y1,y3]=math_axis;
219 draw z1--z2--z3; % left diagonals
220 z4-z1=z5-z2=z6-z3; x4=w-x2; y4=y1;
221 draw z4--z5--z6; % right diagonals
222 labels(1,2,3,4,5,6); endchar;
223
224 cmchar "Precedes sign";
225 compute_spread(5/4x_height#,3/2x_height#);
226 beginchar(oct"036",14u#,v_center(spread#+rule_thickness#));
227 adjust_fit(0,0); pickup rule.nib; autorounded;
228 lft x2=hround 1.5u-epsilon; x1=x3=w-x2;
229 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
230 draw z1{-u,-spread}...{left}z2; % upper diagonal
231 draw z3{-u,spread}...{left}z2; % lower diagonal
232 labels(1,2,3); endchar;
233
234 cmchar "Follows sign";
235 compute_spread(5/4x_height#,3/2x_height#);
236 beginchar(oct"037",14u#,v_center(spread#+rule_thickness#));
237 adjust_fit(0,0); pickup rule.nib; autorounded;
238 lft x1=hround 1.5u-epsilon; x2=w-x1; x3=x1;
239 y1-y3=spread; y2=.5[y1,y3]; top y1=h;
240 draw z1{u,-spread}...{right}z2; % upper diagonal
241 draw z3{u,spread}...{right}z2; % lower diagonal
242 labels(1,2,3); endchar;
243
244 cmchar "Northeast arrow";
245 beginchar(oct"045",18u#,asc_height#,asc_depth#);
246 adjust_fit(0,0); pickup crisp.nib;
247 x1-.5rule_thickness=hround u; rt x0=hround(w-u);
248 y1-.5rule_thickness=-d; top y0=h;
249 numeric theta,delta; theta=angle(z0-z1); delta=3u++.24asc_height;
250 if abs(theta-45)<2.5: theta:=45; y1:=y0+x1-x0; fi % near-45$^\circ$ angle
251 pos1(rule_thickness,90+theta); pos2(rule_thickness,90+theta);
252 pos3(rule_thickness,theta); pos4(rule_thickness,theta);
253 z3-z0=(-4u,.36asc_height) rotated theta;
254 z4-z0=(-4u,-.36asc_height) rotated theta;
255 pos5(rule_thickness,-90); z5l=z0; pos6(rule_thickness,-180); z6l=z0;
256 z9=.2[.5[z3,z4],z0];
257 numeric t; path p; p=z4l{z9-z4}..z6r;
258 t=xpart(p intersectiontimes (z1l--(z1l+2(z0-z1)))); z2l=point t of p;
259 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
260 ---z1l..z1r---subpath (t,0) of\\(z3l{z9-z3}..z5r)
261 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
262 penlabels(0,1,2,3,4,5,6,9); endchar;
263
264 cmchar "Southeast arrow";
265 beginchar(oct"046",18u#,asc_height#,asc_depth#);
266 adjust_fit(0,0); pickup crisp.nib;
267 x1-.5rule_thickness=hround u; rt x0=hround(w-u);
268 y1+.5rule_thickness=h; bot y0=-d;
269 numeric theta,delta; theta=angle(z0-z1); delta=3u++.24asc_height;
270 if abs(theta+45)<2.5: theta:=-45; y1:=y0+x0-x1; fi % near-45$^\circ$ angle
271 pos1(rule_thickness,90+theta); pos2(rule_thickness,90+theta);
272 pos3(rule_thickness,theta); pos4(rule_thickness,theta);
273 z3-z0=(-4u,.36asc_height) rotated theta;
274 z4-z0=(-4u,-.36asc_height) rotated theta;
275 pos5(rule_thickness,180); z5l=z0; pos6(rule_thickness,90); z6l=z0;
276 z9=.2[.5[z3,z4],z0];
277 numeric t; path p; p=z4l{z9-z4}..z6r;
278 t=xpart(p intersectiontimes (z1l--(z1l+2(z0-z1)))); z2l=point t of p;
279 filldraw z0..{z4-z9}z4r
280 --subpath (0,t) of\\(z4l{z9-z4}..z6r)
281 ---z1l..z1r---subpath (t,0) of\\(z3l{z9-z3}..z5r)
282 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
283 penlabels(0,1,2,3,4,5,6,9); endchar;
284
285 cmchar "Similar or equal sign";
286 compute_spread(.45x_height#,.55x_height#);
287 beginchar(oct"047",14u#,v_center(2spread#+rule_thickness#));
288 adjust_fit(0,0);
289 pickup pencircle xscaled .7rule_thickness yscaled 1.4rule_thickness;
290 if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline
291 lft x1=hround u; x2=4u; x3=w-x2; x4=w-x1;
292 bot y1=bot y3=floor math_axis; top y2=top y4=h;
293 draw z1{up}...z2{right}..{right}z3...{up}z4; % stroke
294 pickup rule.nib; lft x5=hround u-eps; x6=w-x5; y5=y6=math_axis-spread;
295 draw z5--z6; % bar
296 labels(1,2,3,4,5,6); endchar;
297
298 cmchar "Double leftward arrow";
299 compute_spread(.45x_height#,.55x_height#);
300 beginchar(oct"050",18u#,v_center(spread#+rule_thickness#));
301 adjust_fit(0,0); pickup rule.nib;
302 lft x7=hround u-eps; x8=x7; x1=x2=w-x7;
303 y1=y7; y2=y8; y1-y2=spread; .5[y1,y2]=math_axis;
304 draw z1--z7; draw z2--z8; % bars
305 pickup crisp.nib; lft x0=hround u-eps; y0=good.y math_axis;
306 pos3(rule_thickness,0); pos4(rule_thickness,0);
307 y3-y1=y2-y4=.24asc_height+eps; x3=x4=x0+6u+eps;
308 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
309 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
310 z9=.381966[.5[z3,z4],z0];
311 erase filldraw z0..{z3-z9}z3--(0,y3)
312 --(0,y4)--z4{z9-z4}..z0 & cycle; % erase excess
313 numeric t; path p; p=z4r{z9-z4}..z6r;
314 t=xpart(p intersectiontimes((0,y0)--(w,y0)));
315 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
316 --subpath (t,0) of\\(z3r{z9-z3}..z5r)--z3l{z9-z3}..z0 & cycle; % arrowhead
317 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
318
319 cmchar "Double rightward arrow";
320 compute_spread(.45x_height#,.55x_height#);
321 beginchar(oct"051",18u#,v_center(spread#+rule_thickness#));
322 adjust_fit(0,0); pickup rule.nib;
323 lft x1=hround u-eps; x2=x1; x7=x8=w-x1;
324 y1=y7; y2=y8; y1-y2=spread; .5[y1,y2]=math_axis;
325 draw z1--z7; draw z2--z8; % bars
326 pickup crisp.nib; rt x0=hround(w-u)+eps; y0=good.y math_axis;
327 pos3(rule_thickness,0); pos4(rule_thickness,0);
328 y3-y1=y2-y4=.24asc_height+eps; x3=x4=x0-6u-eps;
329 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
330 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
331 z9=.381966[.5[z3,z4],z0];
332 erase filldraw z0..{z3-z9}z3--(w,y3)
333 --(w,y4)--z4{z9-z4}..z0 & cycle; % erase excess
334 numeric t; path p; p=z4l{z9-z4}..z6r;
335 t=xpart(p intersectiontimes((0,y0)--(w,y0)));
336 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
337 --subpath (t,0) of\\(z3l{z9-z3}..z5r)--z3r{z9-z3}..z0 & cycle; % arrowhead
338 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
339
340 cmchar "Double upward arrow";
341 beginchar(oct"052",11u#,asc_height#,asc_depth#);
342 adjust_fit(0,0); pickup rule.nib;
343 compute_spread(.45x_height#,.55x_height#);
344 bot y1=bot y2=-d-eps; top y7=h; y8=y7;
345 x1=x7; x2=x8; x1-x2=spread; .5[x1,x2]=crisp.lft hround(crisp.rt .5w);
346 draw z1--z7; draw z2--z8; % bars
347 pickup crisp.nib; top y0=h+eps; x0=good.x .5w;
348 pos3(rule_thickness,90); pos4(rule_thickness,90);
349 x2-x3=x4-x1=3u+eps; y3=y4=y0-.48asc_height-eps;
350 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
351 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
352 z9=.381966[.5[z3,z4],z0];
353 erase filldraw z0..{z3-z9}z3--(x3,h)
354 --(x4,h)--z4{z9-z4}..z0 & cycle; % erase excess
355 numeric t; path p; p=z4l{z9-z4}..z6r;
356 t=xpart(p intersectiontimes((x0,-d)--(x0,h)));
357 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
358 --subpath (t,0) of\\(z3l{z9-z3}..z5r)--z3r{z9-z3}..z0 & cycle; % arrowhead
359 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
360
361 cmchar "Double downward arrow";
362 beginchar(oct"053",11u#,asc_height#,asc_depth#);
363 adjust_fit(0,0); pickup rule.nib;
364 compute_spread(.45x_height#,.55x_height#);
365 top y1=top y2=h+eps; bot y7=-d; y8=y7;
366 x1=x7; x2=x8; x1-x2=spread; .5[x1,x2]=crisp.lft hround(crisp.rt .5w);
367 draw z1--z7; draw z2--z8; % bars
368 pickup crisp.nib; bot y0=-d-eps; x0=good.x .5w;
369 pos3(rule_thickness,90); pos4(rule_thickness,90);
370 x2-x3=x4-x1=3u+eps; y3=y4=y0+.48asc_height-eps;
371 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
372 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
373 z9=.381966[.5[z3,z4],z0];
374 erase filldraw z0..{z3-z9}z3--(x3,-d)
375 --(x4,-d)--z4{z9-z4}..z0 & cycle; % erase excess
376 numeric t; path p; p=z4r{z9-z4}..z6r;
377 t=xpart(p intersectiontimes((x0,-d)--(x0,h)));
378 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
379 --subpath (t,0) of\\(z3r{z9-z3}..z5r)--z3l{z9-z3}..z0 & cycle; % arrowhead
380 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
381
382 cmchar "Double left-and-right arrow";
383 compute_spread(.45x_height#,.55x_height#);
384 beginchar(oct"054",18u#,v_center(spread#+rule_thickness#));
385 adjust_fit(if monospace: -u#,-u# else: 0,0 fi); pickup rule.nib;
386 lft x7=hround u-eps; x8=x7; x1=x2=w-x7;
387 y1=y7; y2=y8; y1-y2=spread; .5[y1,y2]=math_axis;
388 draw z1--z7; draw z2--z8; % bars
389 pickup crisp.nib; lft x0=hround u-o; y0=good.y math_axis;
390 pos3(rule_thickness,0); pos4(rule_thickness,0);
391 y3-y1=y2-y4=.24asc_height+eps; x3=x4=x0+5u+eps;
392 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
393 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
394 z9=.381966[.5[z3,z4],z0];
395 erase filldraw z0..{z3-z9}z3--(0,y3)
396 --(0,y4)--z4{z9-z4}..z0 & cycle; % erase excess at left
397 numeric t; path p; p=z4r{z9-z4}..z6r;
398 t=xpart(p intersectiontimes((0,y0)--(w,y0)));
399 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
400 --subpath (t,0) of\\(z3r{z9-z3}..z5r)
401 --z3l{z9-z3}..z0 & cycle; % left arrowhead
402 rt x10=hround(w-u)+o; y10=good.y math_axis;
403 pos13(rule_thickness,0); pos14(rule_thickness,0);
404 y13=y3; y14=y4; x13=x14=x10-5u-eps;
405 pos15(rule_thickness,angle(z14-z10)); z15l=z10;
406 pos16(rule_thickness,angle(z13-z10)); z16l=z10;
407 z19=.381966[.5[z13,z14],z10];
408 erase filldraw z10..{z13-z19}z13--(w,y13)
409 --(w,y14)--z14{z19-z14}..z10 & cycle; % erase excess at right
410 numeric t; path p; p=z14l{z19-z14}..z16r;
411 t=xpart(p intersectiontimes((0,y10)--(w,y10)));
412 filldraw z10..{z14-z19}z14r--subpath (0,t) of\\(z14l{z19-z14}..z16r)
413 --subpath (t,0) of\\(z13l{z19-z13}..z15r)
414 --z13r{z19-z13}..z10 & cycle; % right arrowhead
415 penlabels(0,1,2,3,4,5,6,7,8,9,10,13,14,15,16,19); endchar;
416
417 cmchar "Northwest arrow";
418 beginchar(oct"055",18u#,asc_height#,asc_depth#);
419 adjust_fit(0,0); pickup crisp.nib;
420 x1+.5rule_thickness=hround(w-u); lft x0=hround u;
421 y1-.5rule_thickness=-d; top y0=h;
422 numeric theta,delta; theta=angle(z1-z0); delta=3u++.24asc_height;
423 if abs(theta+45)<2.5: theta:=-45; y1:=y0+x0-x1; fi % near-45$^\circ$ angle
424 pos1(rule_thickness,-90+theta); pos2(rule_thickness,-90+theta);
425 pos3(rule_thickness,-180+theta); pos4(rule_thickness,-180+theta);
426 z4-z0=(4u,.36asc_height) rotated theta;
427 z3-z0=(4u,-.36asc_height) rotated theta;
428 pos5(rule_thickness,0); z5l=z0; pos6(rule_thickness,-90); z6l=z0;
429 z9=.2[.5[z3,z4],z0];
430 numeric t; path p; p=z4l{z9-z4}..z6r;
431 t=xpart(p intersectiontimes (z1l--(z1l+2(z0-z1)))); z2l=point t of p;
432 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
433 ---z1l..z1r---subpath (t,0) of\\(z3l{z9-z3}..z5r)
434 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
435 penlabels(0,1,2,3,4,5,6,9); endchar;
436
437 cmchar "Southwest arrow";
438 beginchar(oct"056",18u#,asc_height#,asc_depth#);
439 adjust_fit(0,0); pickup crisp.nib;
440 x1+.5rule_thickness=hround(w-u); lft x0=hround u;
441 y1+.5rule_thickness=h; bot y0=-d;
442 numeric theta,delta; theta=angle(z1-z0); delta=3u++.24asc_height;
443 if abs(theta-45)<2.5: theta:=45; y1:=y0+x1-x0; fi % near-45$^\circ$ angle
444 pos1(rule_thickness,-90+theta); pos2(rule_thickness,-90+theta);
445 pos3(rule_thickness,-180+theta); pos4(rule_thickness,-180+theta);
446 z4-z0=(4u,.36asc_height) rotated theta;
447 z3-z0=(4u,-.36asc_height) rotated theta;
448 pos5(rule_thickness,90); z5l=z0; pos6(rule_thickness,0); z6l=z0;
449 z9=.2[.5[z3,z4],z0];
450 numeric t; path p; p=z4l{z9-z4}..z6r;
451 t=xpart(p intersectiontimes (z1l--(z1l+2(z0-z1)))); z2l=point t of p;
452 filldraw z0..{z4-z9}z4r
453 --subpath (0,t) of\\(z4l{z9-z4}..z6r)
454 ---z1l..z1r---subpath (t,0) of\\(z3l{z9-z3}..z5r)
455 --z3r{z9-z3}..z0 & cycle; % arrowhead and stem
456 penlabels(0,1,2,3,4,5,6,9); endchar;
457
458 cmchar "Proportionality sign";
459 beginchar(oct"057",16.5u#,x_height#,0);
460 italcorr x_height#*slant-.5u#;
461 adjust_fit(0,-2.5u#); pickup fine.nib;
462 numeric theta,phi; phi=angle(3u,h); theta=angle(5u,-h);
463 pos1(vair,180); pos2(.5[vair,stem],90+.5theta); pos3(stem,90+theta);
464 pos4(stem,90+theta); pos5(.5[vair,stem],90+.5theta);
465 pos6(vair,180); pos7(.2[vair,stem],270+.5phi);
466 pos8(.3[vair,stem],270+phi); pos9(.2[vair,stem],270+.5phi);
467 lft x1r=w-rt x6l=hround u; x2=x9=.4[x1,x8]; x5=x7=.6[x8,x6];
468 if monospace: x2l:=x2r; x5r:=x5l; x7r:=x7l; x9l:=x9r; fi
469 y1=y6=.5h; top y2r=top y7l=h+oo; bot y5l=bot y9r=-oo;
470 x8=.5[x3,x4]=.5w; y8=.5[y3,y4]=.5h;
471 y3-y4=h/3; z3-z4=whatever*dir theta;
472 filldraw stroke z1e{up}...z2e{right}...z3e---z4e...z5e{right}...z6e{up}
473 ...z7e{left}...{-dir phi}z8e...{left}z9e...z1e{up}; % `infinity' bowls
474 erase fill (w-3.5u,h+o)--(w,h+o)
475 --(w,-o)--(w-3.5u,-o)--cycle; % erase excess
476 penlabels(1,2,3,4,5,6,7,8,9); endchar;
477
478 cmchar "Prime symbol (intended as superscript only)";
479 beginchar(oct"060",3u#+max(1.75u#,curve#+2(curve#-stem#)),
480 .8asc_height#,0);
481 adjust_fit(0,0); pickup fine.nib;
482 numeric light_stem,heavy_stem;
483 light_stem=hround .5[vair,stem]; heavy_stem=hround(bold+2dw);
484 x1+.5heavy_stem=hround(w-.25u); y1+.5heavy_stem=h;
485 x2-.5light_stem=hround .5u; y2=1/12asc_height;
486 numeric theta; theta=angle(z1-z2)-90;
487 pos1(heavy_stem,theta); pos2(light_stem,theta);
488 filldraw circ_stroke z1e--z2e; % diagonal
489 penlabels(1,2); endchar;
490
491 cmchar "Ownership sign";
492 compute_spread(5/4x_height#,3/2x_height#);
493 beginchar(oct"063",12u#,v_center(spread#+rule_thickness#));
494 adjust_fit(0,0); pickup rule.nib; autorounded;
495 lft x1=hround 1.5u-eps; x1=x3=x6=w-x2;
496 y1-y3=spread; y2=y6=.5[y1,y3]=math_axis;
497 x4=x5=.5w-u; y4=y1; y5=y3;
498 draw z1---z4...z2{down}...z5---z3; % arc and bars
499 draw z2--z6; % middle bar
500 labels(1,2,3,4,5,6); endchar;
501
502 cmchar "Large triangle";
503 beginchar(oct"064",16u#,asc_height#,desc_depth#);
504 adjust_fit(0,0); pickup rule.nib;
505 bot y1=0; y2=y1; top y3=h+o;
506 .5[x1,x2]=x3=good.x .5w; center_on(x3); lft x1=hround(.5w-u*sqrt48);
507 draw z1--z2--z3--cycle; % stroke
508 labels(1,2,3); endchar;
509
510 cmchar "Large inverted triangle";
511 beginchar(oct"065",16u#,asc_height#,desc_depth#);
512 adjust_fit(0,0); pickup rule.nib;
513 top y1=h-d; y2=y1; bot y3=-d-o;
514 .5[x1,x2]=x3=good.x .5w; center_on(x3); lft x1=hround(.5w-u*sqrt48);
515 draw z1--z2--z3--cycle; % stroke
516 labels(1,2,3); endchar;
517
518 cmchar "Zero-width slash to negate a relation";
519 beginchar(oct"066",14u#,asc_height#,asc_depth#);
520 adjust_fit(0,0); pickup rule.nib;
521 rt x5=hround(w-2.5u)-eps; lft x6=hround 2.5u+eps;
522 top y5=h+o; .5[y5,y6]=math_axis;
523 draw z5--z6; % diagonal
524 labels(5,6); zero_width; endchar;
525
526 cmchar "Maps-to relation";
527 compute_spread(.45x_height#,.55x_height#);
528 beginchar(oct"067",14u#,v_center(spread#+rule_thickness#));
529 % this character should be followed immediately by minus or rightarrow
530 adjust_fit(0,0); pickup rule.nib;
531 lft x1=hround u; x2=x1+.5u; x3=x4=x1;
532 y1=y2=math_axis; y1-y3=y4-y1=.24asc_height+eps;
533 draw z3--z4; % stem
534 draw z1--z2; % bar stub
535 labels(1,2,3,4); zero_width; endchar;
536
537 cmchar "Empty set symbol";
538 beginchar(oct"073",9u#,body_height#,body_height#-asc_height#);
539 adjust_fit(0,0);
540 penpos1(vair,90); penpos3(vair,-90); penpos2(stem,180); penpos4(stem,0);
541 if not monospace: interim superness:=sqrt(more_super*hein_super); fi
542 x2r=hround max(.7u,1.45u-.5stem);
543 x4r=w-x2r; x1=x3=.5w; y1r=asc_height+o; y3r=-o;
544 y2=y4=.5asc_height-vair_corr; y2l:=y4l:=.52asc_height;
545 penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
546 & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl
547 pickup rule.nib; lft x6=hround 2u-eps; x5=w-x6; top y5=h+o; bot y6=-d-o;
548 draw z5--z6; % diagonal
549 penlabels(1,2,3,4,5,6); endchar;
550
551 cmchar "Uppercase Fraktur R";
552 beginchar(oct"074",13u#,asc_height#,0);
553 adjust_fit(0,0); pickup fine.nib;
554 pos1(hair,0); pos2(vair,90); pos3(1/6[hair,stem],190);
555 pos4(1/4[hair,stem],210); pos5(1/8[hair,stem],190);
556 pos6(vair,90); pos7(cap_stem,0); pos8(cap_stem,0);
557 pos9(vair,-90); pos10(hair,-135); pos11(hair,-135);
558 pos12(vair,135); pos13(vair,135);
559 lft x1l=lft x5r=hround u; x2=.4[x1,x3]; rt x3l=hround 3.5u; x4=.6[x3,x5];
560 x6=3u; lft x7=hround(6u-.5cap_stem); x8=x7;
561 x9=3.5u; x10=5/3u; x11=4/3u; x12=u; x13=2u;
562 y1=.47h; bot y2l=vround.35h; y3=1/3[y2,y6]; y5=3/4[y2,y6]; y4=.6[y3,y5];
563 top y6r=h+oo; y7=.64h; y8=.57y7; bot y9r=-o;
564 y10=1/6y7; y12=1/5y7; y13=1/4y7;
565 z11-z10=whatever*(z13-z12) rotated 90;
566 filldraw stroke z1e{down}...z2e{right}...z3e{up}..z4e..z5e{up}
567 ...pulled_arc.e(6,7)..pulled_arc.e(8,9)
568 ...z10e---z11e; % flourish and left stem
569 filldraw stroke z12e--z13e; % cross
570 pos20(cap_bar,180); pos21(cap_bar,90);
571 x20=x7; y20=.75h; rt x21=hround(w-3.5u+.5cap_stem); top y21r=h+o;
572 filldraw stroke z20e{up}...{right}z21e; % top of bowl
573 rt x22r=hround(w-.1u); y22r=good.y .64h;
574 numeric theta; theta=angle(z21r-z22r);
575 pos22(cap_stem,theta-90); pos23(cap_bar,theta); z22l=z23l;
576 path p; p=z20{up}...(z21--(w,y21));
577 z=p intersectionpoint(z22l--z22l+(h,0) rotated theta);
578 filldraw z--z21r--z22r--z22l--cycle; % diagonal of bowl
579 pos24(cap_bar,90); pos25(cap_bar,90); x24=w-4u; x25=x7;
580 y24=y25; top y24r=vround(.52h+.5cap_bar);
581 filldraw stroke z23e{dir(theta+90)}...z24e---z25e; % bottom of bowl
582 pos26(cap_stem,0); pos27(cap_stem,0); pos28(cap_stem,0);
583 x26=x24; x27=x26+.25u; x28l=w-2.5u; y26=y24r; y27=1/3y26; bot y28=-o;
584 filldraw stroke z26e--z27e...{right}z28e; % lower diagonal
585 pos29(cap_bar,0); pos30(cap_bar,-30); z29l=z28l;
586 x30r=good.x(w-.5u); y30r=good.y .09h;
587 erase filldraw z29r--z28r--z30r--cycle; % erase excess
588 filldraw stroke z29e--z30e; % serif of lower diagonal
589 %% \begingroup\thinmuskip=3mu
590 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,20,21,22,23,24,25,26,27,28,29,30);
591 %% \endgroup
592 endchar;
593
594 cmchar "Uppercase Fraktur I";
595 beginchar(oct"075",13u#,asc_height#,0);
596 adjust_fit(0,0); pickup fine.nib;
597 pos1(vair,270); pos2(cap_hair,180); pos3(vair,90);
598 pos4(cap_stem,0); pos5(vair,90); pos6(cap_hair,180);
599 x1=5u; lft x2r=hround u; x3=.5[x2,x4l]; x4r=x5-.75u;
600 x5=.5[x4l,x6l]; rt x6l=hround(w-.5u);
601 top y1l=vround.5h; y2=.5[y1,y3]; top y3r=h+oo;
602 y4=.2[y5,y3]; y6=.3[y5,y3]; bot y5l=ceiling(1/6[x_height,h]);
603 filldraw stroke z1e{left}...z2e{up}...z3e{right}
604 ..z4e..z5e{right}...{up}z6e; % upper stroke
605 pos7(vair,90); pos8(cap_stem,0); pos9(cap_stem,0);
606 lft x7=hround u; z7r=z8l; x9=.5w+u; y8=good.y .25h; bot y9=-oo;
607 filldraw z8l---z8r..{right}z9r+(0,eps)
608 --z9r---z9l..{left}z7l--cycle; % lower left stroke
609 pos10(cap_stem,0); pos11(cap_stem,0); pos12(vair,-90); pos13(cap_hair,-180);
610 x10=w-2.5u; x11r=x12-u; x12=x5; x13=x6;
611 y10=1/3y12; y11=3/4y12; top y12l=x_height; y13=4/5y12;
612 filldraw z9l+(0,eps){right}...{up}z10l
613 --z10r{down}...z9r---z9l--cycle; % lower link
614 filldraw stroke z10e{up}...z11e{up}
615 ...z12e{right}...{down}z13e; % lower right stroke
616 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
617
618 cmchar "Lattice top";
619 beginchar(oct"076",14u#,asc_height#,0);
620 adjust_fit(0,0); pickup rule.nib;
621 x1=x2=good.x .5w; center_on(x1); lft x3=hround u; x4=w-x3;
622 bot y1=0; y2-y1=x4-x3;
623 if top y2>h: y2:=bot h; fi
624 y3=y4=y2;
625 draw z1--z2; % stem
626 draw z3--z4; % bar
627 labels(1,2,3,4); endchar;
628
629 cmchar "Perpendicular sign or lattice bottom";
630 beginchar(oct"077",14u#,asc_height#,0);
631 adjust_fit(0,0); pickup rule.nib;
632 x1=x2=good.x .5w; center_on(x1); lft x3=hround u; x4=w-x3;
633 bot y1=0; y2-y1=x4-x3;
634 if top y2>h: y2:=bot h; fi
635 y3=y4=y1;
636 draw z1--z2; % stem
637 draw z3--z4; % bar
638 labels(1,2,3,4); endchar;
639
640 cmchar "Hebrew letter aleph";
641 beginchar(oct"100",11u#,asc_height#,0);
642 adjust_fit(0,0); pickup fine.nib;
643 pos1(cap_stem,75); pos2(cap_stem,90); pos3(cap_stem,90); pos4(cap_stem,75);
644 lft x1l=hround u-eps; x2=2.5u=w-x3; rt x4r=hround(w-u)+eps;
645 top y1r=h; bot y4l=0; z2=whatever[z1l,z4r]; z3=whatever[z1l,z4r];
646 filldraw z1r{4(x1l-x1r),y1l-y1r}...{down}z1l...z2l
647 ---z3l...{down}z4l{4(x4r-x4l),y4r-y4l}...{up}z4r...z3r
648 ---z2r...{up}cycle; % long diagonal
649 pos5(cap_stem,75); pos6(cap_stem,90); pos7(cap_stem,75);
650 lft x5l=hround(w-4u)-eps; x6=.5[x5,x7]; x7=x4;
651 y5=y1; bot y7l=x_height-o; z6=whatever[z5l,z7r];
652 filldraw z5r{4(x5l-x5r),y5l-y5r}...{down}z5l
653 ...z6l{z7r-z5l}...{down}z7l{4(x7r-x7l),y7r-y7l}...{up}z7r
654 ...z6r{z5l-z7l}...{up}cycle; % short diagonal
655 pos8(cap_hair,0); pos9(cap_hair,0); z8=z6; x9=x8-.75u; z9=whatever[z2,z3];
656 filldraw stroke z8e{down}..{down}z9e; % right stem
657 pos10(cap_hair,-30); pos11(stem,0);
658 pos12(cap_curve,0); pos13(cap_curve,0); pos14(vair,90);
659 lft x11l=hround 1.5u; x10=x12=.4[x11,.5w]; z10=whatever[z2,z3];
660 lft x13l=hround u; z13l=z14l; y11=.5y10; y12=.2[y14r,y11]; bot y13=0;
661 filldraw stroke z10e{2(x11-x10),y11-y10}
662 ...z11e{down}..{down}z12e; % left stem
663 filldraw z12r{down}...z13r---z13l--z14r{right}...{up}z12l--cycle; % flourish
664 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
665
666 cmchar "Multiset union sign";
667 beginchar(oct"135",12u#,.8asc_height#,0); autorounded;
668 adjust_fit(if monospace:-.5u#,-.5u# else: 0,0 fi); pickup rule.nib;
669 lft x1=hround u; x2=x1; x3=w-x3; x4=x5=w-x1;
670 y1=good.y h+o; bot y3=-o; y2=y4=2/3[y1,y3]; y5=y1;
671 draw z1---z2...z3...z4---z5; % stems and cup
672 y8=y9=.47[y1,y3]; x8=w-x9=x1+2rule_thickness+eps;
673 x6=x7=x3; .5[y6,y7]=y8; y7-y6=x9-x8;
674 draw z8--z9; draw z6--z7; % enclosed plus sign
675 labels(1,2,3,4,5,6,7,8,9); endchar;
676
677 cmchar "Left turnstile";
678 beginchar(oct"140",11u#,asc_height#,0);
679 adjust_fit(0,0); pickup rule.nib;
680 .5[y1,y2]=y3=y4; x1=x2=x3;
681 lft x3=hround u; x4=w-x3; top y1=h; bot y2=0;
682 draw z1--z2; % stem
683 draw z3--z4; % bar
684 labels(1,2,3,4); endchar;
685
686 cmchar "Right turnstile";
687 beginchar(oct"141",11u#,asc_height#,0);
688 adjust_fit(0,0); pickup rule.nib;
689 .5[y1,y2]=y3=y4; x1=x2=x4;
690 lft x3=hround u; x4=w-x3; top y1=h; bot y2=0;
691 draw z1--z2; % stem
692 draw z3--z4; % bar
693 labels(1,2,3,4); endchar;
694
695 cmchar "Left floor bracket";
696 beginchar(oct"142",8u#,body_height#,paren_depth#);
697 adjust_fit(0,0); pickup rule.nib;
698 x1=x2=good.x 3.5u; x3=x1+3.75u+eps;
699 top y1=h; .5[y1,y2]=math_axis; y3=y2;
700 draw z1--z2--z3; % stem and bar
701 labels(1,2,3); endchar;
702
703 cmchar "Right floor bracket";
704 beginchar(oct"143",8u#,body_height#,paren_depth#);
705 adjust_fit(0,0); pickup rule.nib;
706 x1=x2=good.x(w-3.5u); x3=x1-3.75u-eps;
707 top y1=h; .5[y1,y2]=math_axis; y3=y2;
708 draw z1--z2--z3; % stem and bar
709 labels(1,2,3); endchar;
710
711 cmchar "Left ceiling bracket";
712 beginchar(oct"144",8u#,body_height#,paren_depth#);
713 adjust_fit(0,0); pickup rule.nib;
714 x1=x2=good.x 3.5u; x3=x1+3.75u+eps;
715 top y1=h; .5[y1,y2]=math_axis; y3=y1;
716 draw z3--z1--z2; % stem and bar
717 labels(1,2,3); endchar;
718
719 cmchar "Right ceiling bracket";
720 beginchar(oct"145",8u#,body_height#,paren_depth#);
721 adjust_fit(0,0); pickup rule.nib;
722 x1=x2=good.x(w-3.5u); x3=x1-3.75u-eps;
723 top y1=h; .5[y1,y2]=math_axis; y3=y1;
724 draw z3--z1--z2; % stem and bar
725 labels(1,2,3); endchar;
726
727 cmchar "Left angle bracket";
728 beginchar(oct"150",7u#,body_height#,paren_depth#);
729 adjust_fit(0,0); pickup rule.nib;
730 rt x1=hround(w-u)+eps; x1=x3; lft x2=hround 2u-1-eps;
731 top y1=h+eps; .5[y1,y3]=y2=math_axis;
732 draw z1--z2--z3; % diagonals
733 labels(1,2,3); endchar;
734
735 cmchar "Right angle bracket";
736 beginchar(oct"151",7u#,body_height#,paren_depth#);
737 adjust_fit(0,0); pickup rule.nib;
738 rt(w-x1)=hround(w-u)+eps; x1=x3; lft(w-x2)=hround 2u-1-eps;
739 top y1=h+eps; .5[y1,y3]=y2=math_axis;
740 draw z1--z2--z3; % diagonals
741 labels(1,2,3); endchar;
742
743 cmchar "Double vertical line (norm or cardinality)";
744 beginchar(oct"153",9u#,body_height#,paren_depth#);
745 adjust_fit(0,0); pickup rule.nib;
746 x1=x2; top y1=h; .5[y1,y2]=math_axis;
747 x3=x4=w-x1; y3=y1; y4=y2;
748 compute_spread(.45x_height#,.55x_height#); x3-x1=spread;
749 draw z1--z2; draw z3--z4; % stems
750 labels(1,2,3,4); endchar;
751
752 cmchar "Up-and-down arrow";
753 beginchar(oct"154",9u#,body_height#,paren_depth#);
754 adjust_fit(0,0); pickup crisp.nib;
755 pos1(rule_thickness,0); pos2(rule_thickness,0);
756 pos3(rule_thickness,90); pos4(rule_thickness,90);
757 lft x1l=hround(.5w-.5rule_thickness); y1=.5[-d,h];
758 x0=x1=x2; bot y0=-d-o; x0-x3=x4-x0=4u+eps;
759 y3=y4=y0+.36asc_height+eps;
760 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
761 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
762 z9=.2[.5[z3,z4],z0];
763 numeric t; path p; p=z4r{z9-z4}..z6r;
764 t=xpart(p intersectiontimes((x2r,-d)--(x2r,h))); y2=ypart point t of p;
765 filldraw z0..{z4-z9}z4l--subpath (0,t) of\\(z4r{z9-z4}..z6r)
766 ---z1r..z1l---subpath (t,0) of\\(z3r{z9-z3}..z5r)
767 --z3l{z9-z3}..z0 & cycle; % lower arrowhead and stem
768 pos11(rule_thickness,0); pos12(rule_thickness,0); z11=z1;
769 pos13(rule_thickness,90); pos14(rule_thickness,90);
770 x10=x11=x12; top y10=h+o; x10-x13=x14-x10=4u+eps;
771 y13=y14=y10-.36asc_height-eps;
772 pos15(rule_thickness,angle(z14-z10)); z15l=z10;
773 pos16(rule_thickness,angle(z13-z10)); z16l=z10;
774 z19=.2[.5[z13,z14],z10];
775 numeric t; path p; p=z14l{z19-z14}..z16r;
776 t=xpart(p intersectiontimes((x12r,-d)--(x12r,h))); y12=ypart point t of p;
777 filldraw z10..{z14-z19}z14r--subpath (0,t) of\\(z14l{z19-z14}..z16r)
778 ---z11r..z11l---subpath (t,0) of\\(z13l{z19-z13}..z15r)
779 --z13r{z19-z13}..z10 & cycle; % upper arrowhead and stem
780 penlabels(0,1,2,3,4,5,6,9,10,11,12,13,14,15,16,19); endchar;
781
782 cmchar "Double up-and-down arrow";
783 beginchar(oct"155",11u#,body_height#,paren_depth#);
784 adjust_fit(0,0); pickup rule.nib;
785 compute_spread(.45x_height#,.55x_height#);
786 bot y1=bot y2=-d-eps; top y7=h; y8=y7;
787 x1=x7; x2=x8; x1-x2=spread; .5[x1,x2]=crisp.lft hround(crisp.rt .5w);
788 draw z1--z7; draw z2--z8; % bars
789 pickup crisp.nib; top y0=h+o; x0=good.x .5w;
790 pos3(rule_thickness,90); pos4(rule_thickness,90);
791 x2-x3=x4-x1=3u+eps; y3=y4=y0-.4asc_height-eps;
792 pos5(rule_thickness,angle(z4-z0)); z5l=z0;
793 pos6(rule_thickness,angle(z3-z0)); z6l=z0;
794 z9=.381966[.5[z3,z4],z0];
795 erase filldraw z0..{z3-z9}z3--(x3,h)
796 --(x4,h)--z4{z9-z4}..z0 & cycle; % erase excess at top
797 numeric t; path p; p=z4l{z9-z4}..z6r;
798 t=xpart(p intersectiontimes((x0,-d)--(x0,h)));
799 filldraw z0..{z4-z9}z4r--subpath (0,t) of\\(z4l{z9-z4}..z6r)
800 --subpath (t,0) of\\(z3l{z9-z3}..z5r)
801 --z3r{z9-z3}..z0 & cycle; % top arrowhead
802 bot y10=-d-o; x10=good.x .5w;
803 pos13(rule_thickness,90); pos14(rule_thickness,90);
804 x13=x3; x14=x4; y13=y14=y10+.4asc_height-eps;
805 pos15(rule_thickness,angle(z14-z10)); z15l=z10;
806 pos16(rule_thickness,angle(z13-z10)); z16l=z10;
807 z19=.381966[.5[z13,z14],z10];
808 erase filldraw z10..{z13-z19}z13--(x13,-d)
809 --(x14,-d)--z14{z19-z14}..z10 & cycle; % erase excess at bottom
810 numeric t; path p; p=z14r{z19-z14}..z16r;
811 t=xpart(p intersectiontimes((x10,-d)--(x10,h)));
812 filldraw z10..{z14-z19}z14l--subpath (0,t) of\\(z14r{z19-z14}..z16r)
813 --subpath (t,0) of\\(z13r{z19-z13}..z15r)
814 --z13l{z19-z13}..z10 & cycle; % bottom arrowhead
815 penlabels(0,1,2,3,4,5,6,7,8,9,13,14,15,16,19); endchar;
816
817 cmchar "Wreath product";
818 beginchar(oct"157",5u#,asc_height#,asc_depth#);
819 adjust_fit(if monospace: u#,u# else: 0,0 fi);
820 pickup pencircle yscaled .7rule_thickness xscaled 1.4rule_thickness;
821 if vair#>.8curve#: pickup rule.nib; autorounded; fi % monoline
822 lft x1=lft x3=hround u; x2=x4=w-x1;
823 top y1=vround .75[math_axis,h];
824 .5[y1,y4]=.5[y2,y3]=math_axis; y1-y2=1/4(y1-y4);
825 draw z1{right}...z2{down}..{down}z3...{right}z4; % stroke
826 labels(1,2,3,4); endchar;
827
828 cmchar "Radical sign";
829 beginchar(oct"160",15u#,rule_thickness#,
830 body_height#+paren_depth#-rule_thickness#);
831 big_sqrt; endchar;
832
833 cmchar "Amalgamation symbol or coproduct symbol";
834 beginchar(oct"161",13u#+width_adj#,cap_height#,0);
835 italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
836 adjust_fit(cap_serif_fit#,cap_serif_fit#);
837 pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
838 pos3(cap_stem,0); pos4(cap_stem,0);
839 lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1;
840 top y1=top y3=h; bot y2=bot y4=0;
841 filldraw stroke z1e--z2e; % left stem
842 filldraw stroke z3e--z4e; % right stem
843 penpos5(cap_bar,90); penpos6(cap_bar,90);
844 x5=x1; x6=x3; y5=y6; y5l=0;
845 fill stroke z5e--z6e; % bar
846 if serifs: numeric inner_jut;
847 if rt x1r+cap_jut+u+2<=lft x3l-cap_jut: inner_jut=cap_jut;
848 else: rt x1r+inner_jut+u+2=lft x3l-inner_jut; fi
849 dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif
850 nodish_serif(2,1,c,1/3,cap_jut,d,1/3,eps); % lower left serif
851 dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper right serif
852 nodish_serif(4,3,g,1/3,eps,h,1/3,cap_jut); fi % lower right serif
853 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar;
854
855 cmchar "Nabla or backwards-difference operator";
856 beginchar(oct"162",15u#,cap_height#,0);
857 adjust_fit(0,0);
858 numeric right_stem,alpha;
859 right_stem=cap_hair if hefty: -3stem_corr fi;
860 x1l=w-x4r=.75u; y1=y4=h;
861 x2-x1=x4-x3; x3l=x2l+apex_corr; y2=y3=-apex_o-apex_oo;
862 alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr);
863 penpos1(alpha*cap_stem,0); penpos2(alpha*cap_stem,0);
864 penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
865 fill diag_end(2l,1l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)--cycle; % triangle
866 z0=whatever[z1r,z2r]=whatever[z3l,z4l];
867 y5=y6=h-cap_vstem; z5=whatever[z1r,z2r]; z6=whatever[z3l,z4l];
868 if y0>cap_notch_cut: y0:=cap_notch_cut;
869 unfill z0+.5right{up}...{z4-z3}z6--z5{z2-z1}
870 ...{down}z0+.5left--cycle; % counter
871 else: unfill z0--z5--z6--cycle; fi % counter
872 penlabels(0,1,2,3,4,5,6); endchar;
873
874 cmchar "Square set union sign (Scott lub)";
875 beginchar(oct"164",12u#,.8asc_height#,0);
876 adjust_fit(0,0); pickup rule.nib;
877 lft x1=hround 1.1u; x2=x1; x4=x5=w-x1;
878 y1=good.y h+o; bot y2=0; y4=y2; y5=y1;
879 draw z1---z2---z4---z5; % stems and bar
880 labels(1,2,4,5); endchar;
881
882 cmchar "Square set intersection sign (Scott glb)";
883 beginchar(oct"165",12u#,.8asc_height#,0);
884 adjust_fit(0,0); pickup rule.nib;
885 lft x1=hround 1.1u; x2=x1; x4=x5=w-x1;
886 y2=good.y h+o; bot y1=0; y4=y2; y5=y1;
887 draw z1---z2---z4---z5; % stems and bar
888 labels(1,2,4,5); endchar;
889
890 cmchar "Square subset or equal to sign";
891 compute_spread(.45x_height#,.55x_height#);
892 spread#':=spread#; spread':=spread; % the spread of `$=$'
893 compute_spread(5/4x_height#,3/2x_height#);
894 beginchar(oct"166",14u#,v_center(spread#'+spread#+rule_thickness#));
895 adjust_fit(0,0); pickup rule.nib;
896 lft x2=hround(1.5u+oo); x1=x4=hround(w-1.5u)+eps; x3=x2;
897 y1-y4=spread; y2=y1; y3=y4; top y1=h;
898 draw z1--z2--z3--z4; % bars and stem
899 x8=x1; x9=x2-oo-eps; y8=y9; y4-y9=spread';
900 draw z8--z9; % lower bar
901 labels(1,2,3,4,8,9); endchar;
902
903 cmchar "Square superset or equal to sign";
904 compute_spread(.45x_height#,.55x_height#);
905 spread#':=spread#; spread':=spread; % the spread of `$=$'
906 compute_spread(5/4x_height#,3/2x_height#);
907 beginchar(oct"167",14u#,v_center(spread#'+spread#+rule_thickness#));
908 adjust_fit(0,0); pickup rule.nib;
909 x1=x4=hround 1.5u-eps; rt x2=hround(w-1.5u-oo); x3=x2;
910 y1-y4=spread; y2=y1; y3=y4; top y1=h;
911 draw z1--z2--z3--z4; % bars and stem
912 x8=x1; x9=x2+oo+eps; y8=y9; y4-y9=spread';
913 draw z8--z9; % lower bar
914 labels(1,2,3,4,8,9); endchar;
915
916 cmchar "Section sign";
917 beginchar(oct"170",6.5u#+max(1.5u#,stem#),asc_height#,desc_depth#);
918 adjust_fit(0,0); pickup fine.nib;
919 numeric sstem; sstem=hround .75[hair,stem];
920 pos0(stem,0); pos1(hair,0); pos2(vair,90); pos3(sstem,180); pos4(vair,270);
921 pos5'(sstem,0); pos5(sstem,180);
922 pos6(vair,90); pos7(sstem,0); pos8(vair,-90); pos9(hair,-180); pos10(stem,-180);
923 top y2r=h+oo; bot y8r=-d-oo; y2-y1=y9-y8=(y2-y8)/8;
924 y3=.52[y4,y2]; y5=.52[y4,y6]; y7=.52[y6,y8]; y5'=.52[y6,y4];
925 y2-y4=y4-y6=y6-y8;
926 rt x1r=hround(w-1.5u); lft x3r=hround 1.25u;
927 x2=x4=x6=x8=.5w; x5=x7=w-x3; x5'=x3; x9=w-x1;
928 bulb(2,1,0); bulb(8,9,10); % bulbs
929 filldraw stroke z2e{left}...z3e{down}...z4e{3(x5-x3),y5-y3}
930 ...z5e{down}...{left}z6e; % upper stroke
931 filldraw stroke z4e{left}...z5'e{down}...z6e{3(x7-x5'),y7-y5'}
932 ...z7e{down}...{left}z8e; % upper stroke
933 penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
934
935 cmchar "Dagger mark";
936 beginchar(oct"171",8u#,asc_height#,desc_depth#);
937 adjust_fit(0,0); pickup fine.nib;
938 pos1(stem,0); pos2(thin_join,0); pos3(stem,0); pos4(hair,0);
939 pos5(stem,90); pos2'(thin_join,90); pos6(stem,90); z2'=z2;
940 x1=x2=x3=x4; x1-.5stem=hround(.5w-.5stem); center_on(x1);
941 x5-.5stem=hround u; x6=w-x5;
942 y1+.5stem=h+oo; y2=y5=y6; y3=.57y2; bot y4=-d-o;
943 y5+.5stem=floor(x_height+.5stem);
944 filldraw circ_stroke z1e{down}..z2e{down}..z3e{down}..z4e; % stem
945 filldraw circ_stroke z5e{right}..{right}z2'e; % left bulb
946 filldraw circ_stroke z6e{left}..{left}z2'e; % right bulb
947 penlabels(1,2,3,4,5,6); endchar;
948
949 cmchar "Double dagger mark";
950 beginchar(oct"172",8u#,asc_height#,desc_depth#);
951 adjust_fit(0,0); pickup fine.nib;
952 pos1(stem,0); pos2(thin_join,0); pos3(stem,0);
953 pos4(stem,90); pos2'(thin_join,90); pos5(stem,90); z2'=z2;
954 x1=x2=x3; x1-.5stem=hround(.5w-.5stem); center_on(x1);
955 x4-.5stem=hround u; x5=w-x4;
956 y1+.5stem=h+oo; y2=y4=y5=.5[y1,y3]; y3-.5stem=ceiling(.5[-d,h]);
957 filldraw circ_stroke z1e{down}..{down}z2e; % top stem
958 filldraw circ_stroke z3e{up}..{up}z2e; % upper middle stem
959 filldraw circ_stroke z4e{right}..{right}z2'e; % top left bulb
960 filldraw circ_stroke z5e{left}..{left}z2'e; % top right bulb
961 pos6(stem,0); pos7(thin_join,0); pos8(stem,0);
962 pos9(stem,90); pos7'(thin_join,90); pos0(stem,90); z7'=z7;
963 x6=x7=x8=x1; x9=x4; x0=x5;
964 y6=y3-stem-1; y7=y9=y0=.5[y6,y8]; y8-.5stem=-d-oo;
965 filldraw circ_stroke z6e{down}..{down}z7e; % lower middle stem
966 filldraw circ_stroke z8e{up}..{up}z7e; % bottom stem
967 filldraw circ_stroke z9e{right}..{right}z7'e; % bottom left bulb
968 filldraw circ_stroke z0e{left}..{left}z7'e; % bottom right bulb
969 penlabels(1,2,3,4,5,6,7,8,9,0); endchar;
970
971 cmchar "Paragraph mark";
972 beginchar(oct"173",11u#,asc_height#,desc_depth#);
973 adjust_fit(0,0); pickup rule.nib; autorounded;
974 top y1=h; bot y6=-d-eps; y4=y7=y9=y1;
975 y8=y6; y3=y5=good.y .5[y1,y6];
976 x7-x4=ceiling(rule_thickness+1.25u);
977 lft x2=hround u; y2=.5[y1,y3]; x4=x5=x6; rt x9=hround(w-.5u);
978 x7=x8=good.x(x9-1.5u); x1=x3=min(.5w,x4);
979 filldraw z4..z1{left}...z2{down}...{right}z5--cycle; % filled bowl
980 draw z9--z4--z6; % left stem and upper serif
981 draw z7--z8; % right stem
982 labels(1,2,3,4,5,6,7,8,9); endchar;
983
984 cmchar "Club suit";
985 beginchar(oct"174",14u#,asc_height#,2/3desc_depth#);
986 adjust_fit(0,0); pickup rule.nib; autorounded;
987 x1=x4=x30=x33=good.x .5w; center_on(x1);
988 x2=good.x(x1-.5u)-eps; lft x1-rt x10=hround .5pt; lft x12=hround .5u;
989 x11=.6[x12,x10]; x13=.5[x12,x10]=x5; x32-x31=x1-.5u-x12;
990 x2+x3=x5+x6=x10+x20=x11+x21=x12+x22=x13+x23=x31+x32=2x1;
991 top y30=h+o+oo; bot y11=bot y21=-o; top y13=top y23=vround .53h;
992 y30-y33=y13-y11; y31=y32=y4=.5[y30,y33]; y12=y22=.5[y11,y13];
993 y1=y10=y20=good.y .1h; bot y5=bot y6=y1+.75; bot y2=bot y3=-d;
994 filldraw z30{left}...z31{down}...z33{right}...z32{up}...cycle; % top bowl
995 filldraw z13{left}...z12{down}...z11{right}...z10{up}...cycle; % left bowl
996 filldraw z23{left}...z20{down}...z21{right}...z22{up}...cycle; % right bowl
997 filldraw z1{down}...{2(x2-x1),y2-y1}z2--z3{2(x1-x3),y1-y3}
998 ...{up}cycle; % stem
999 filldraw z4--z5--z6--cycle; % filling
1000 labels(1,2,3,4,5,6,10,11,12,13,20,21,22,23,30,31,32,33); endchar;
1001
1002 cmchar "Diamond suit";
1003 beginchar(oct"175",14u#,asc_height#,2/3desc_depth#);
1004 adjust_fit(0,0); pickup rule.nib; autorounded;
1005 x1=x4=good.x .5w; center_on(x1);
1006 lft x2=hround u; x3=w-x2;
1007 top y1=h+o+oo; bot y4=-d-o-oo; y2=y3=.5[y1,y4];
1008 draw z1{x3-x1,1.5(y3-y1)}...z3{1.5(x3-x1),y3-y1}; % upper right diagonal
1009 draw z1{x2-x1,1.5(y2-y1)}...z2{1.5(x2-x1),y2-y1}; % upper left diagonal
1010 draw z4{x2-x4,1.5(y2-y4)}...z2{1.5(x2-x4),y2-y4}; % lower left diagonal
1011 draw z4{x3-x4,1.5(y3-y4)}...z3{1.5(x3-x4),y3-y4}; % lower right diagonal
1012 labels(1,2,3,4); endchar;
1013
1014 cmchar "Heart suit";
1015 beginchar(oct"176",14u#,asc_height#,2/3desc_depth#);
1016 adjust_fit(0,0); pickup rule.nib; autorounded;
1017 x1=x5=good.x .5w; center_on(x1);
1018 lft x7=hround u; x8=4u; x2+x8=x3+x7=x4+x6=w;
1019 y1=good.y .77h; top y2=h+o; y3=.7h; y4=.2h; bot y5=-o-oo;
1020 y2=y8; y3=y7; y4=y6; z4=whatever[z3,z5];
1021 x0=x9=w; y0=1.5h; y9=.6h;
1022 draw z1{x2-x1,8(y2-y1)}...z2{right}....z3{down}...{z4-z9}z4
1023 ...{z5-z0}z5; % right half bowl
1024 draw z1{x8-x1,8(y8-y1)}...z8{left}....z7{down}...{(z4-z9)xscaled-1}z6
1025 ...{(z5-z0)xscaled-1}z5; % left half bowl
1026 labels(1,2,3,4,5,6,7,8,9); endchar;
1027
1028 cmchar "Spade suit";
1029 beginchar(oct"177",14u#,asc_height#,2/3desc_depth#);
1030 adjust_fit(0,0); pickup rule.nib; autorounded;
1031 x1=x10=good.x .5w; center_on(x1);
1032 x2=good.x(x1-.5u)-eps; lft x1-rt x6=hround .5pt; x5=x6;
1033 x7=.5[x8,x6]; lft x8=hround u;
1034 x2+x3=x5+x15=x6+x14=x7+x13=x8+x12=x9+x11=2x10;
1035 top y10=h+o+oo; y9=y11=.7h; y8=y12=.3h;
1036 y1=y6=y14=good.y .1h; bot y5=bot y15=y1+.75;
1037 bot y7=bot y13=-o; bot y2=bot y3=-d; z9=whatever[z8,z10];
1038 filldraw z10{-w,-3h}...z9{-w,-h}...z8{down}...z7{right}...z6---z5
1039 --z15---z14...{right}z13...{up}z12...{-w,h}z11
1040 ...{-w,3h}cycle; % filled bowl
1041 filldraw z1{down}...{2(x2-x1),y2-y1}z2--z3{2(x1-x3),y1-y3}
1042 ...{up}cycle; % stem
1043 labels(1,2,3,5,6,7,8,9,10,11,12,13,14,15); endchar;