| 1 |
% mathematical symbols by Anthony Phan. |
| 2 |
% file: mathmbcb.mf (symbols medium or big in circles or boxes) |
| 3 |
% last modification: May 16, 2005. |
| 4 |
% Only known charcodes will be generated. |
| 5 |
|
| 6 |
def horizontal_rules_list= |
| 7 |
0.5[-d,h]-math_axis,0.5[-d,h]-math_axis+x_height, |
| 8 |
0.25[-d,h],0.5[-d,h],0.75[-d,h] enddef; |
| 9 |
|
| 10 |
extra_beginchar_save:=extra_beginchar; |
| 11 |
numeric display_over_text; |
| 12 |
|
| 13 |
% Beware: one can not execute conditionnal commands |
| 14 |
% thru the following construction. For instance, |
| 15 |
% on_size(use_rule1,use_rule2,use_rule3) would |
| 16 |
% lead to the use of rule3. |
| 17 |
|
| 18 |
def on_size(expr $,$$,$$$)= |
| 19 |
if substring (0,1) of main_name_string="m": $ |
| 20 |
elseif substring (0,1) of main_name_string="b": $$ |
| 21 |
else: $$$ fi% "B" case or else |
| 22 |
enddef; |
| 23 |
|
| 24 |
if substring (0,1) of main_name_string="m": |
| 25 |
let tmp_bounds=arithmetic_bounds; |
| 26 |
def tmp_radius=6.75u enddef; |
| 27 |
use_rule1; |
| 28 |
elseif substring (0,1) of main_name_string="b": |
| 29 |
def tmp_bounds=10/6dh#+2appr#,0,10/6dh# enddef; |
| 30 |
% def tmp_bounds=18u#+2appr#,0,10/6dh# enddef; |
| 31 |
def tmp_radius=0.5(h+d) enddef; |
| 32 |
use_rule2; |
| 33 |
else:% "B" case or else |
| 34 |
def tmp_bounds= 1.20*10/6dh#+2appr#, |
| 35 |
0,1.20*10/6dh# enddef; |
| 36 |
% def tmp_bounds= 25.2u#+2appr#,0,14/6dh# enddef; |
| 37 |
def tmp_radius=0.5(h+d) enddef; |
| 38 |
use_rule3; |
| 39 |
fi |
| 40 |
|
| 41 |
numeric tmp_dtsz; |
| 42 |
a:=on_size(max(0.82u,1.25u-rth1),1.33u,1.20*1.33u); |
| 43 |
tmp_dtsz=on_size(dtsz,1.2dtsz,1.20*1.2dtsz); |
| 44 |
tmp_string:=on_size("Medium ","Textstyle ","Displaystyle ") |
| 45 |
& substring (1,infinity) of main_name_string; |
| 46 |
extra_beginchar:=extra_beginchar & on_size("","","padded bigop_padding#;"); |
| 47 |
|
| 48 |
% I know what anyone will think while reading this file: |
| 49 |
% ``this guy had totally messed up with boundaries''. |
| 50 |
% Believe me, I had not. |
| 51 |
|
| 52 |
% The next programs put a circle or a box exactly around the point |
| 53 |
% z0. So that z0 must be adjusted with respect to the pen |
| 54 |
% with which the circle will be drawn. |
| 55 |
|
| 56 |
if substring (1,infinity) of main_name_string="circle": |
| 57 |
vardef tmp_program= |
| 58 |
autorounded; pickup rule.nib; |
| 59 |
x0=good.x 0.5w; y0=good.y 0.5[-d,h]; |
| 60 |
for i=1 upto 8: |
| 61 |
z[i]=z0+round(tmp_radius-0.5rth)*right rotated(45*(i-1)); |
| 62 |
endfor; labels(0,1,2,3,4,5,6,7,8); |
| 63 |
tmp_path:=z1{up}...z2{z3-z1} |
| 64 |
...z3{left}...z4{z5-z3}...z5{down}...z6{z7-z5} |
| 65 |
...z7{right}...z8{z1-z7}...cycle; draw tmp_path; |
| 66 |
enddef; |
| 67 |
def dot_spread=4*tmp_radius/(3*3.14159) enddef; |
| 68 |
% average point of some half disc |
| 69 |
def prepare_triangle(expr orientation)= |
| 70 |
save b,c; pickup tiny.nib; |
| 71 |
b=min(on_size(7u,12u,1.20*12u), |
| 72 |
2*sqrt(3)*(tmp_radius-rth-a)); |
| 73 |
c=on_size(rth0,rth1,rth2); |
| 74 |
tmp_boolean:=true |
| 75 |
enddef; |
| 76 |
else: |
| 77 |
vardef tmp_program= |
| 78 |
pickup rule.nib; |
| 79 |
x0=good.x 0.5w; y0=good.y 0.5[-d,h]; |
| 80 |
pickup tiny.nib; |
| 81 |
for i=1 step 2 until 7: |
| 82 |
z[i]=z0+round(tmp_radius-0.5rth)*right rotated(45*(i-1)); |
| 83 |
endfor; |
| 84 |
pos1(rth,0); pos5(rth,180); |
| 85 |
pos3(rth,90); pos7(rth,-90); |
| 86 |
forsuffixes $=,r,l: |
| 87 |
x1$=x2$=x8$; x5$=x4$=x6$; |
| 88 |
y2$=y3$=y4$; y6$=y7$=y8$; |
| 89 |
endfor |
| 90 |
penlabels(0,1,2,3,4,5,6,7,8); |
| 91 |
filldraw stroke z8e--z6e--z4e--z2e--z8e; |
| 92 |
tmp_path:=z1--z2--z3--z4--z5--z6--z7--z8--cycle; |
| 93 |
pickup rule.nib; |
| 94 |
enddef; |
| 95 |
def dot_spread=0.5(y3-y0) enddef; |
| 96 |
def prepare_triangle(expr orientation)= |
| 97 |
save b,c; pickup tiny.nib; |
| 98 |
b=min(on_size(7u,12u,1.20*12u), |
| 99 |
2*sqrt(3)*(tmp_radius-rth-a)); |
| 100 |
c=on_size(rth0,rth1,rth2); |
| 101 |
tmp_boolean:=false; |
| 102 |
save triangle_foot; |
| 103 |
triangle_foot= |
| 104 |
if (orientation=up)or(orientation=down): y0 else: x0 fi |
| 105 |
if (orientation=up)or(orientation=right): - else: + fi |
| 106 |
0.5[1/3,1/2]*0.5b*sqrt 3 |
| 107 |
enddef; |
| 108 |
fi |
| 109 |
|
| 110 |
% |
| 111 |
% Let's go |
| 112 |
% |
| 113 |
|
| 114 |
beginchar(main_name_with(_plus),tmp_bounds); |
| 115 |
tmp_string & " plus"; |
| 116 |
tmp_program; |
| 117 |
pickup tiny.nib; |
| 118 |
top y9=vround(y3-0.5rth-a); y3-y9=y10-y7; y11=y12=y0; |
| 119 |
rt x12=hround(x1-0.5rth-a); x1-x12=x11-x5; x9=x10=x0; |
| 120 |
pos9(rth,0); pos10(rth,0); pos11(rth,90); pos12(rth,90); |
| 121 |
filldraw stroke z9e..z10e; filldraw stroke z11e..z12e; |
| 122 |
penlabels(9,10,11,12); |
| 123 |
endchar; |
| 124 |
|
| 125 |
beginchar(main_name_with(_minus),tmp_bounds); |
| 126 |
tmp_string & " minus"; |
| 127 |
tmp_program; |
| 128 |
pickup tiny.nib; |
| 129 |
rt x9=hround(x1-0.5rth-a); |
| 130 |
x10-x5=x1-x9; y9=y10=y0; pos9(rth,90); pos10(rth,90); |
| 131 |
filldraw stroke z10e..z9e; penlabels(9,10,11,12); |
| 132 |
endchar; |
| 133 |
|
| 134 |
beginchar(main_name_with(_times),tmp_bounds); |
| 135 |
tmp_string & " times"; |
| 136 |
tmp_program; |
| 137 |
pickup tiny.nib; |
| 138 |
rt x0'=hround(x1-0.5rth-a); y0=y0'; |
| 139 |
z9-z0=z0-z10=(z0'-z0) rotated 45; z11-z0=z0-z12=(z0'-z0) rotated -45; |
| 140 |
pos9(rth+2eps,-45); pos10(rth+2eps,-45); |
| 141 |
pos11(rth+2eps,45); pos12(rth+2eps,45); |
| 142 |
filldraw stroke z9e..z10e; filldraw stroke z12e..z11e; |
| 143 |
penlabels(9,10,11,12); |
| 144 |
endchar; |
| 145 |
|
| 146 |
beginchar(main_name_with(_division),tmp_bounds); |
| 147 |
tmp_string & " division"; |
| 148 |
tmp_program; |
| 149 |
pickup tiny.nib; |
| 150 |
rt x9=hround(x1-0.5rth-a); x10-x5=x1-x9; |
| 151 |
y9=y10=y0; pos9(rth,90); pos10(rth,90); |
| 152 |
filldraw stroke z10e..z9e; penlabels(9,10); |
| 153 |
pickup null.nib; |
| 154 |
adjust_dot11((x0,y0+dot_spread),tmp_dtsz,true,false); dot(11,11'); |
| 155 |
adjust_dot12((x0,y0-dot_spread),tmp_dtsz,true,false); dot(12,12'); |
| 156 |
endchar; |
| 157 |
|
| 158 |
beginchar(main_name_with(_dot),tmp_bounds); |
| 159 |
tmp_string & " dot"; |
| 160 |
tmp_program; |
| 161 |
pickup null.nib; |
| 162 |
adjust_dot9(z0,1.3tmp_dtsz,true,true); dot(9,9'); |
| 163 |
endchar; |
| 164 |
|
| 165 |
beginchar(main_name_with(_circle),tmp_bounds); |
| 166 |
tmp_string & " circle"; |
| 167 |
tmp_program; |
| 168 |
numeric b; |
| 169 |
b=min(max(on_size(7u,7u,1.20*7u),tmp_dtsz),tmp_radius-rth-a); |
| 170 |
pickup rule.nib0; adjust_dot9((x0,y0),b,true,true); |
| 171 |
full_dot:=false; dot(9,9'); |
| 172 |
endchar; |
| 173 |
|
| 174 |
% the asterisk is the same in textstyle and displaystyle |
| 175 |
|
| 176 |
beginchar(main_name_with(_asterisk),tmp_bounds); |
| 177 |
tmp_string & " asterisk"; |
| 178 |
tmp_program; |
| 179 |
autorounded; |
| 180 |
interim stress:=0.5; |
| 181 |
pickup null.nib; |
| 182 |
numeric b,c,dag_stem,dag_curve; |
| 183 |
dag_curve=on_size(ast_curve,round 1.1cap_curve,round 1.1cap_curve); |
| 184 |
dag_stem=on_size(ast_stem,hair,hair); |
| 185 |
b=on_size(1.8ast_stem,2.6hair,2.6hair); |
| 186 |
c=on_size(1.4dag_stem,0.625b,0.625b); |
| 187 |
spread:=min(on_size(ast_size,12u,12u),2(tmp_radius-rth-a)); |
| 188 |
for $=9 upto 14: z[$]=b*dir(($-9)*60+30)+z0; |
| 189 |
z[$]'=c*dir(($-9)*60+60)+z0; endfor |
| 190 |
filldraw for $=9 upto 14: dagger_stroke[$](round(0.5spread-b)+eps, |
| 191 |
dag_curve,dag_stem,dir(($-9)*60+30))...z[$]'...endfor cycle; |
| 192 |
endchar; |
| 193 |
|
| 194 |
% the asterisk is the same in textstyle and displaystyle |
| 195 |
|
| 196 |
beginchar(main_name_with(_co_asterisk),tmp_bounds); |
| 197 |
tmp_string & " co-asterisk"; |
| 198 |
tmp_program; |
| 199 |
autorounded; |
| 200 |
interim stress:=0.5; |
| 201 |
pickup null.nib; |
| 202 |
numeric b,c,dag_stem,dag_curve; |
| 203 |
dag_curve=on_size(ast_curve,round 1.1cap_curve,round 1.1cap_curve); |
| 204 |
dag_stem=on_size(ast_stem,hair,hair); |
| 205 |
b=1.8dag_stem; c=1.4dag_stem; |
| 206 |
spread:=min(on_size(ast_size,12u,12u),2(tmp_radius-rth-a)); |
| 207 |
for $=9 upto 14: z[$]=b*dir(($-9)*60)+z0; |
| 208 |
z[$]'=c*dir(($-9)*60+30)+z0; endfor |
| 209 |
filldraw for $=9 upto 14: dagger_stroke[$](round(0.5spread-b)+eps, |
| 210 |
dag_curve,dag_stem,dir(($-9)*60))...z[$]'...endfor cycle; |
| 211 |
endchar; |
| 212 |
|
| 213 |
beginchar(main_name_with(_left),tmp_bounds); |
| 214 |
tmp_string & " left"; |
| 215 |
tmp_program; |
| 216 |
draw z3..z7; draw z0..z5; |
| 217 |
endchar; |
| 218 |
|
| 219 |
beginchar(main_name_with(_right),tmp_bounds); |
| 220 |
tmp_string & " right"; |
| 221 |
tmp_program; |
| 222 |
draw z3..z7; draw z0..z1; |
| 223 |
endchar; |
| 224 |
|
| 225 |
beginchar(main_name_with(_top),tmp_bounds); |
| 226 |
tmp_string & " top"; |
| 227 |
tmp_program; |
| 228 |
draw z1..z5; draw z0..z7; |
| 229 |
endchar; |
| 230 |
|
| 231 |
beginchar(main_name_with(_bot),tmp_bounds); |
| 232 |
tmp_string & " bot"; |
| 233 |
tmp_program; |
| 234 |
draw z1..z5; draw z0..z3; |
| 235 |
endchar; |
| 236 |
|
| 237 |
beginchar(main_name_with(_slash),tmp_bounds); |
| 238 |
tmp_string & " slash"; |
| 239 |
tmp_program; |
| 240 |
draw z2..z6; |
| 241 |
endchar; |
| 242 |
|
| 243 |
beginchar(main_name_with(_backslash),tmp_bounds); |
| 244 |
tmp_string & " backslash"; |
| 245 |
tmp_program; |
| 246 |
draw z4..z8; |
| 247 |
endchar; |
| 248 |
|
| 249 |
beginchar(main_name_with(_sign),tmp_bounds); |
| 250 |
tmp_string & " sign"; |
| 251 |
tmp_program; |
| 252 |
endchar; |
| 253 |
|
| 254 |
beginchar(main_name_with(_triangle_up),tmp_bounds); |
| 255 |
tmp_string & " triangle up"; |
| 256 |
tmp_program; |
| 257 |
begingroup save math_axis; math_axis=y0; |
| 258 |
prepare_triangle(up); |
| 259 |
set_triangle'(up,b,c,tmp_boolean,false); |
| 260 |
filldraw stroke z1'e--z2'e--z3'e--z1'e; |
| 261 |
endgroup; |
| 262 |
endchar; |
| 263 |
|
| 264 |
% UNSUPPORTED |
| 265 |
|
| 266 |
beginchar(main_name_with(_truc),tmp_bounds); |
| 267 |
tmp_string & " truc"; |
| 268 |
tmp_program; |
| 269 |
x9=x0; y9=good.y |
| 270 |
if substring (1,infinity) of main_name_string="circle": |
| 271 |
0.632466 else: 2/3 fi [top y7,bot y3]; |
| 272 |
z10=tmp_path intersectionpoint (z9..(x5,y9)); |
| 273 |
z11=tmp_path intersectionpoint (z9..(x1,y9)); |
| 274 |
draw z7..z9; draw z10..z11; labels(9,10,11); |
| 275 |
endchar; |
| 276 |
|
| 277 |
% numerics are such that all the three parts |
| 278 |
% have almost the same area. (look at the circle's case) |
| 279 |
|
| 280 |
beginchar(main_name_with(_curt),tmp_bounds); |
| 281 |
tmp_string & " curt"; |
| 282 |
tmp_program; |
| 283 |
x9=x0; y9=good.y |
| 284 |
if substring (1,infinity) of main_name_string="circle": |
| 285 |
0.632466 else: 2/3 fi [bot y3,top y7]; |
| 286 |
z10=tmp_path intersectionpoint (z9..(x5,y9)); |
| 287 |
z11=tmp_path intersectionpoint (z9..(x1,y9)); |
| 288 |
draw z3..z9; draw z10..z11; labels(9,10,11); |
| 289 |
endchar; |
| 290 |
|
| 291 |
% hummm, too big |
| 292 |
beginchar(main_name_with(_full_circle),tmp_bounds); |
| 293 |
tmp_string & " full circle"; |
| 294 |
tmp_program; |
| 295 |
numeric b; |
| 296 |
b=min(max(on_size(7u-rth0,7u-rth0,1.20*7u-rth0), |
| 297 |
tmp_dtsz),tmp_radius-rth-a); |
| 298 |
pickup rule.nib0; adjust_dot9((x0,y0),b,true,true); |
| 299 |
dot(9,9'); |
| 300 |
endchar; |
| 301 |
|
| 302 |
% the star is the same in textstyle and displaystyle |
| 303 |
|
| 304 |
beginchar(main_name_with(_five_star),tmp_bounds); |
| 305 |
tmp_string & " five star"; |
| 306 |
tmp_program; |
| 307 |
pickup tiny.nib; |
| 308 |
save b,tense; |
| 309 |
b=on_size(3.5u+o,6u+o,6u+o); |
| 310 |
tense=on_size(0.2,0.1,0.1); |
| 311 |
draw_star.a(z0,5,b,tense,90,false); |
| 312 |
labels(a); |
| 313 |
endchar; |
| 314 |
|
| 315 |
% the star is the same in textstyle and displaystyle |
| 316 |
|
| 317 |
beginchar(main_name_with(_six_star),tmp_bounds); |
| 318 |
tmp_string & " six star"; |
| 319 |
tmp_program; |
| 320 |
pickup tiny.nib; |
| 321 |
save b,tense; |
| 322 |
b=on_size(3.5u,6u+o,6u+o); |
| 323 |
tense=on_size(0.4,0.3,0.3); |
| 324 |
draw_star.a(z0,6,b,tense,90,false); |
| 325 |
labels(a); |
| 326 |
endchar; |
| 327 |
|
| 328 |
beginchar(main_name_with(_triangle_down),tmp_bounds); |
| 329 |
tmp_string & " triangle down"; |
| 330 |
tmp_program; |
| 331 |
begingroup save math_axis; math_axis=y0; |
| 332 |
prepare_triangle(down); |
| 333 |
set_triangle'(down,b,c,tmp_boolean,false); |
| 334 |
filldraw stroke z1'e--z2'e--z3'e--z1'e; |
| 335 |
endgroup; |
| 336 |
endchar; |
| 337 |
|
| 338 |
beginchar(main_name_with(_triangle_left),tmp_bounds); |
| 339 |
tmp_string & " triangle left"; |
| 340 |
tmp_program; |
| 341 |
begingroup save math_axis; math_axis=y0; |
| 342 |
prepare_triangle(left); |
| 343 |
set_triangle'(left,b,c,tmp_boolean,false); |
| 344 |
filldraw stroke z1'e--z2'e--z3'e--z1'e; |
| 345 |
endgroup; |
| 346 |
endchar; |
| 347 |
|
| 348 |
beginchar(main_name_with(_triangle_right),tmp_bounds); |
| 349 |
tmp_string & " triangle right"; |
| 350 |
tmp_program; |
| 351 |
begingroup save math_axis; math_axis=y0; |
| 352 |
prepare_triangle(right); |
| 353 |
set_triangle'(right,b,c,tmp_boolean,false); |
| 354 |
filldraw stroke z1'e--z2'e--z3'e--z1'e; |
| 355 |
endgroup; |
| 356 |
endchar; |
| 357 |
|
| 358 |
beginchar(main_name_with(_top_dot_minus),tmp_bounds); |
| 359 |
tmp_string & " top dot minus"; |
| 360 |
tmp_program; pickup tiny.nib; |
| 361 |
rt x9=hround(x1-0.5rth-a); x10-x5=x1-x9; |
| 362 |
y9=y10=y0; pos9(rth,90); pos10(rth,90); |
| 363 |
filldraw stroke z10e..z9e; penlabels(9,10); |
| 364 |
pickup null.nib; |
| 365 |
adjust_dot11((x0,y0+dot_spread),tmp_dtsz,true,false); dot(11,11'); |
| 366 |
endchar; |
| 367 |
|
| 368 |
beginchar(main_name_with(_bot_dot_minus),tmp_bounds); |
| 369 |
tmp_string & " bot dot minus"; |
| 370 |
tmp_program; |
| 371 |
pickup tiny.nib; |
| 372 |
rt x9=hround(x1-0.5rth-a); x10-x5=x1-x9; |
| 373 |
y9=y10=y0; pos9(rth,90); pos10(rth,90); |
| 374 |
filldraw stroke z10e..z9e; penlabels(9,10); |
| 375 |
pickup null.nib; |
| 376 |
adjust_dot11((x0,y0-dot_spread),tmp_dtsz,true,false); dot(11,11'); |
| 377 |
endchar; |
| 378 |
|
| 379 |
beginchar(main_name_with(_horiz),tmp_bounds); |
| 380 |
tmp_string & " horizontal"; |
| 381 |
tmp_program; |
| 382 |
draw z1..z5; |
| 383 |
endchar; |
| 384 |
|
| 385 |
beginchar(main_name_with(_vert),tmp_bounds); |
| 386 |
tmp_string & " vertical"; |
| 387 |
tmp_program; |
| 388 |
draw z3..z7; |
| 389 |
endchar; |
| 390 |
|
| 391 |
beginchar(main_name_with(_cross),tmp_bounds); |
| 392 |
tmp_string & " cross"; |
| 393 |
tmp_program; |
| 394 |
draw z1..z5; draw z3..z7; |
| 395 |
endchar; |
| 396 |
|
| 397 |
beginchar(main_name_with(_across),tmp_bounds); |
| 398 |
tmp_string & " across"; |
| 399 |
tmp_program; |
| 400 |
draw z2..z6; draw z4..z8; |
| 401 |
endchar; |
| 402 |
|
| 403 |
beginchar(main_name_with(_wedge),tmp_bounds); |
| 404 |
tmp_string & " wedge"; |
| 405 |
tmp_program; |
| 406 |
draw z8--z3--z6; |
| 407 |
endchar; |
| 408 |
|
| 409 |
beginchar(main_name_with(_vee),tmp_bounds); |
| 410 |
tmp_string & " vee"; |
| 411 |
tmp_program; |
| 412 |
draw z2--z7--z4; |
| 413 |
endchar; |
| 414 |
|
| 415 |
beginchar(main_name_with(_black_left),tmp_bounds); |
| 416 |
tmp_string & " black left"; |
| 417 |
tmp_program; |
| 418 |
fill subpath (2,6) of tmp_path--cycle; |
| 419 |
endchar; |
| 420 |
|
| 421 |
beginchar(main_name_with(_black_right),tmp_bounds); |
| 422 |
tmp_string & " black right"; |
| 423 |
tmp_program; |
| 424 |
fill subpath (6,8) of tmp_path |
| 425 |
& subpath (0,2) of tmp_path--cycle; |
| 426 |
endchar; |
| 427 |
|
| 428 |
beginchar(main_name_with(_black_top),tmp_bounds); |
| 429 |
tmp_string & " black top"; |
| 430 |
tmp_program; |
| 431 |
fill subpath (0,4) of tmp_path--cycle; |
| 432 |
endchar; |
| 433 |
|
| 434 |
beginchar(main_name_with(_black_bot),tmp_bounds); |
| 435 |
tmp_string & " black bot"; |
| 436 |
tmp_program; |
| 437 |
fill subpath (4,8) of tmp_path--cycle; |
| 438 |
endchar; |
| 439 |
|
| 440 |
beginchar(main_name_with(_black_northwest),tmp_bounds); |
| 441 |
tmp_string & " black north-west"; |
| 442 |
tmp_program; |
| 443 |
fill subpath (1,5) of tmp_path--cycle; |
| 444 |
endchar; |
| 445 |
|
| 446 |
beginchar(main_name_with(_black_northeast),tmp_bounds); |
| 447 |
tmp_string & " black north-east"; |
| 448 |
tmp_program; |
| 449 |
fill subpath (7,8) of tmp_path |
| 450 |
--subpath (0,3) of tmp_path--cycle; |
| 451 |
endchar; |
| 452 |
|
| 453 |
beginchar(main_name_with(_black_southwest),tmp_bounds); |
| 454 |
tmp_string & " black south-west"; |
| 455 |
tmp_program; |
| 456 |
fill subpath (3,7) of tmp_path--cycle; |
| 457 |
endchar; |
| 458 |
|
| 459 |
beginchar(main_name_with(_black_southeast),tmp_bounds); |
| 460 |
tmp_string & " black south-east"; |
| 461 |
tmp_program; |
| 462 |
fill subpath (5,8) of tmp_path |
| 463 |
--subpath (0,1) of tmp_path--cycle; |
| 464 |
endchar; |
| 465 |
|
| 466 |
% There is no normalization for the next symbol as it seems... |
| 467 |
|
| 468 |
beginchar(main_name_with(_ying_yang),tmp_bounds); |
| 469 |
tmp_string & " Ying-Yang"; |
| 470 |
tmp_program; |
| 471 |
autorounded; |
| 472 |
y9=bot y3; y10=0.5[y9,y0]; y11=0.5[y0,y12]; y12=top y7; |
| 473 |
x0=x9=x12; x10=ceiling(x0+y0-y11); x10-x0=x0-x11; |
| 474 |
pickup null.nib; |
| 475 |
fill subpath (6,8) of tmp_path |
| 476 |
-- subpath (0,2) of tmp_path |
| 477 |
--z9 right_to_down z10 down_to_left |
| 478 |
z0 left_to_down z11 down_to_right z12 |
| 479 |
--cycle; |
| 480 |
adjust_dot13((x0,y10),tmp_dtsz,true,true); |
| 481 |
adjust_dot14((x0,y11),tmp_dtsz,true,true); |
| 482 |
dot(13,13'); unfill dot_path(14,14'); |
| 483 |
labels(9,10,11,12,14,14'); |
| 484 |
endchar; |
| 485 |
|
| 486 |
beginchar(main_name_with(_peace_and_love),tmp_bounds); |
| 487 |
tmp_string & " peace and love"; |
| 488 |
tmp_program; |
| 489 |
z9=tmp_path intersectionpoint (z0..(z0+2(tmp_radius)*dir 210)); |
| 490 |
z10=tmp_path intersectionpoint (z0..(z0+2(tmp_radius)*dir 330)); |
| 491 |
draw z3..z7; draw z0..z9; draw z0..z10; |
| 492 |
labels(9,10); |
| 493 |
endchar; |
| 494 |
|
| 495 |
% numerics are such that all the three parts |
| 496 |
% have almost the same area. (look at the circle's case) |
| 497 |
|
| 498 |
extra_beginchar:=extra_beginchar_save; |