| 1 |
% mathematical symbols by Anthony Phan. |
| 2 |
% file: matharrw.mf (arrow kit) |
| 3 |
% last modification: May 16, 2005. |
| 4 |
% Only known charcodes will be generated. |
| 5 |
|
| 6 |
use_rule1; |
| 7 |
|
| 8 |
%turningcheck:=0; |
| 9 |
|
| 10 |
arrow_head_fitting:=false; |
| 11 |
arrow_width := 2ceiling 0.84spread1+rth; |
| 12 |
arrow_height# := 4.2u#; |
| 13 |
arrow_height := round 4.2u; |
| 14 |
arrow_breadth := rth; |
| 15 |
arrow_stress := 0.52;%0.65; |
| 16 |
arrow_tense1 := 0.75; |
| 17 |
arrow_tense2 := 0.875; |
| 18 |
|
| 19 |
% Funny thing: using def for the next definition would |
| 20 |
% lead to strange things with transforms. The path must |
| 21 |
% be a whole thing (grouping). One could also use |
| 22 |
% parentheses. |
| 23 |
|
| 24 |
vardef straight_path(expr dir,overshot)= |
| 25 |
save x_; x_=hround(0.5w+0.5rth)-0.5rth; |
| 26 |
if dir=up:(x_,-d)..(x_,h+overshot-pen_top) |
| 27 |
elseif dir=down:(x_,h)..(x_,-d-overshot-pen_bot) |
| 28 |
elseif dir=left:(w-appr,math_axis)..(appr-overshot-pen_lft,math_axis) |
| 29 |
else:(appr,math_axis)..(w-appr+overshot-pen_rt,math_axis) fi |
| 30 |
enddef; |
| 31 |
|
| 32 |
% ARROWS |
| 33 |
|
| 34 |
beginchar(arrow_left, |
| 35 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 36 |
"Left arrow"; |
| 37 |
pickup tiny.nib; |
| 38 |
arrow_head1(straight_path(left,0),both); |
| 39 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 40 |
filldraw stroke z1e..z2e; |
| 41 |
penlabels(1,2); |
| 42 |
endchar; |
| 43 |
|
| 44 |
beginchar(arrow_right, |
| 45 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 46 |
"Right arrow"; |
| 47 |
pickup tiny.nib; |
| 48 |
arrow_head1(straight_path(right,0),both); |
| 49 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 50 |
filldraw stroke z1e..z2e; |
| 51 |
penlabels(1,2); |
| 52 |
endchar; |
| 53 |
|
| 54 |
beginchar(arrow_left_right, |
| 55 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 56 |
"Left-right arrow"; |
| 57 |
pickup tiny.nib; |
| 58 |
arrow_head1(straight_path(left,0),both); |
| 59 |
arrow_head2(straight_path(right,0),both); |
| 60 |
filldraw z1l--z2r--z2l--z1r--cycle; |
| 61 |
penlabels(1,2); |
| 62 |
endchar; |
| 63 |
|
| 64 |
beginchar(arrow_left_not, |
| 65 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 66 |
"Negated left arrow"; |
| 67 |
pickup tiny.nib; |
| 68 |
arrow_head1(straight_path(left,0),both); |
| 69 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 70 |
filldraw stroke z1e..z2e; |
| 71 |
v_adjust(3r,4l,y1,arrow_width);% to be checked |
| 72 |
lft x4l=w-rt x3r=appr+hround 6u; |
| 73 |
adjust_slanted_bar(4l,3r,4r,3l)(rth-tiny,-1); |
| 74 |
filldraw stroke z3e..z4e; |
| 75 |
penlabels(1,2,3,4); |
| 76 |
endchar; |
| 77 |
|
| 78 |
beginchar(arrow_right_not, |
| 79 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 80 |
"Negated right arrow"; |
| 81 |
pickup tiny.nib; |
| 82 |
arrow_head1(straight_path(right,0),both); |
| 83 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 84 |
filldraw stroke z1e..z2e; |
| 85 |
v_adjust(3r,4l,y1,arrow_width);% to be checked |
| 86 |
lft x4l=w-rt x3r=appr+hround 6u; |
| 87 |
adjust_slanted_bar(4l,3r,4r,3l)(rth-tiny,-1); |
| 88 |
filldraw stroke z3e..z4e; |
| 89 |
penlabels(1,2,3,4); |
| 90 |
endchar; |
| 91 |
|
| 92 |
beginchar(arrow_left_right_not, |
| 93 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 94 |
"Negated left-right arrow"; |
| 95 |
pickup tiny.nib; |
| 96 |
arrow_head1(straight_path(left,0),both); |
| 97 |
arrow_head2(straight_path(right,0),both); |
| 98 |
filldraw z1l--z2r--z2l--z1r--cycle; |
| 99 |
v_adjust(3r,4l,y1,arrow_width);% to be checked |
| 100 |
lft x4l=w-rt x3r=appr+hround 6u; |
| 101 |
adjust_slanted_bar(4l,3r,4r,3l)(rth-tiny,-1); |
| 102 |
filldraw stroke z3e..z4e; |
| 103 |
penlabels(1,2,3,4); |
| 104 |
endchar; |
| 105 |
|
| 106 |
beginchar(arrow_up, |
| 107 |
7u#+2appr#,asc_height#,asc_depth#); |
| 108 |
"Upward arrow"; |
| 109 |
pickup tiny.nib; |
| 110 |
arrow_head1(straight_path(up,0),both);% corrected 2002/07/29 |
| 111 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 112 |
filldraw stroke z1e..z2e; |
| 113 |
penlabels(1,2); |
| 114 |
endchar; |
| 115 |
|
| 116 |
beginchar(arrow_down, |
| 117 |
7u#+2appr#,asc_height#,asc_depth#); |
| 118 |
"Downward arrow"; |
| 119 |
pickup tiny.nib; |
| 120 |
arrow_head1(straight_path(down,0),both);% corrected 2002/07/29 |
| 121 |
top y2=h; x2=x1; pos2(rth,180); |
| 122 |
filldraw stroke z1e..z2e; |
| 123 |
penlabels(1,2); |
| 124 |
endchar; |
| 125 |
|
| 126 |
beginchar(arrow_up_down, |
| 127 |
7u#+2appr#,asc_height#,asc_depth#); |
| 128 |
"Upward-Downward arrow"; |
| 129 |
pickup tiny.nib; |
| 130 |
arrow_head1(straight_path(up,0),both);% corrected 2002/07/29 |
| 131 |
arrow_head2(straight_path(down,0),both);% corrected 2002/07/29 |
| 132 |
filldraw z1l--z2r--z2l--z1r--cycle;; |
| 133 |
penlabels(1,2); |
| 134 |
endchar; |
| 135 |
|
| 136 |
beginchar(arrow_northwest, |
| 137 |
16u#+2appr#,asc_height#,asc_depth#); |
| 138 |
"Northwest arrow"; |
| 139 |
pickup rule.nib; bot y2=-d; rt x2=w-appr; |
| 140 |
pickup tiny.nib; top y3=h; lft x3=appr; |
| 141 |
arrow_head1(z2..z3,both); |
| 142 |
pickup rule.nib; draw z1..z2; |
| 143 |
penlabels(1); labels(2,3); |
| 144 |
endchar; |
| 145 |
|
| 146 |
beginchar(arrow_northeast, |
| 147 |
16u#+2appr#,asc_height#,asc_depth#); |
| 148 |
"Northeast arrow"; |
| 149 |
pickup rule.nib; bot y2=-d; lft x2=appr; |
| 150 |
pickup tiny.nib; top y3=h; rt x3=w-appr; |
| 151 |
arrow_head1(z2..z3,both); |
| 152 |
pickup rule.nib; draw z1..z2; |
| 153 |
penlabels(1); labels(2,3); |
| 154 |
endchar; |
| 155 |
|
| 156 |
beginchar(arrow_southwest, |
| 157 |
16u#+2appr#,asc_height#,asc_depth#); |
| 158 |
"Southwest arrow"; |
| 159 |
pickup rule.nib; top y2=h; rt x2=w-appr; |
| 160 |
pickup tiny.nib; bot y3=-d; lft x3=appr; |
| 161 |
arrow_head1(z2..z3,both); |
| 162 |
pickup rule.nib; draw z1..z2; |
| 163 |
penlabels(1); labels(2,3); |
| 164 |
endchar; |
| 165 |
|
| 166 |
beginchar(arrow_southeast, |
| 167 |
16u#+2appr#,asc_height#,asc_depth#); |
| 168 |
"Southeast arrow"; |
| 169 |
pickup rule.nib; top y2=h; lft x2=appr; |
| 170 |
pickup tiny.nib; bot y3=-d; rt x3=w-appr; |
| 171 |
arrow_head1(z2..z3,both); |
| 172 |
pickup rule.nib; draw z1..z2; |
| 173 |
penlabels(1); labels(2,3); |
| 174 |
endchar; |
| 175 |
|
| 176 |
beginchar(arrows_left_left, |
| 177 |
16u#+2appr#,v_center(spread2#+spread1#+rth#)); |
| 178 |
"Left-left arrows"; |
| 179 |
pickup tiny.nib; |
| 180 |
arrow_head1(straight_path(left,0) shifted (0,0.5spread2),both); |
| 181 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 182 |
filldraw stroke z1e..z2e; |
| 183 |
arrow_head3(straight_path(left,0) shifted (0,-0.5spread2),both); |
| 184 |
rt x4=w-appr; y4=y3; pos4(rth,90); |
| 185 |
filldraw stroke z3e..z4e; |
| 186 |
penlabels(1,2,3,4); |
| 187 |
endchar; |
| 188 |
|
| 189 |
beginchar(arrows_right_right, |
| 190 |
16u#+2appr#,v_center(spread2#+spread1#+rth#)); |
| 191 |
"Right_right arrows"; |
| 192 |
pickup tiny.nib; |
| 193 |
arrow_head1(straight_path(right,0) shifted (0,0.5spread2),both); |
| 194 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 195 |
filldraw stroke z1e..z2e; |
| 196 |
arrow_head3(straight_path(right,0) shifted (0,-0.5spread2),both); |
| 197 |
lft x4=appr; y4=y3; pos4(rth,-90); |
| 198 |
filldraw stroke z3e..z4e; |
| 199 |
penlabels(1,2,3,4); |
| 200 |
endchar; |
| 201 |
|
| 202 |
beginchar(arrows_left_right, |
| 203 |
16u#+2appr#,v_center(spread2#+spread1#+rth#)); |
| 204 |
"Left-right arrows"; |
| 205 |
pickup tiny.nib; |
| 206 |
arrow_head1(straight_path(left,0) shifted (0,0.5spread2),both); |
| 207 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 208 |
filldraw stroke z1e..z2e; |
| 209 |
arrow_head3(straight_path(right,0) shifted (0,-0.5spread2),both); |
| 210 |
lft x4=appr; y4=y3; pos4(rth,-90); |
| 211 |
filldraw stroke z3e..z4e; |
| 212 |
penlabels(1,2,3,4); |
| 213 |
endchar; |
| 214 |
|
| 215 |
beginchar(arrows_right_left, |
| 216 |
16u#+2appr#,v_center(spread2#+spread1#+rth#)); |
| 217 |
"Right-left arrows"; |
| 218 |
pickup tiny.nib; |
| 219 |
arrow_head1(straight_path(right,0) shifted (0,0.5spread2),both); |
| 220 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 221 |
filldraw stroke z1e..z2e; |
| 222 |
arrow_head3(straight_path(left,0) shifted (0,-0.5spread2),both); |
| 223 |
rt x4=w-appr; y4=y3; pos4(rth,90); |
| 224 |
filldraw stroke z3e..z4e; |
| 225 |
penlabels(1,2,3,4); |
| 226 |
endchar; |
| 227 |
|
| 228 |
beginchar(arrows_up_up, |
| 229 |
7u#+spread2#+2appr#,asc_height#,asc_depth#); |
| 230 |
"Upward arrows"; |
| 231 |
pickup tiny.nib; |
| 232 |
arrow_head1(straight_path(up,0)% corrected 2002/07/29 |
| 233 |
shifted (-0.5spread2,0),both); |
| 234 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 235 |
filldraw stroke z1e..z2e; |
| 236 |
arrow_head3(straight_path(up,0)% corrected 2002/07/29 |
| 237 |
shifted (0.5spread2,0),both); |
| 238 |
bot y4=-d; x4=x3; pos4(rth,0); |
| 239 |
filldraw stroke z3e..z4e; |
| 240 |
penlabels(1,2,3,4); |
| 241 |
endchar; |
| 242 |
|
| 243 |
beginchar(arrows_down_down, |
| 244 |
7u#+spread2#+2appr#,asc_height#,asc_depth#); |
| 245 |
"Downward arrows"; |
| 246 |
pickup tiny.nib; |
| 247 |
arrow_head1(straight_path(down,0)% corrected 2002/07/29 |
| 248 |
shifted (-0.5spread2,0),both); |
| 249 |
top y2=h; x2=x1; pos2(rth,180); |
| 250 |
filldraw stroke z1e..z2e; |
| 251 |
arrow_head3(straight_path(down,0)% corrected 2002/07/29 |
| 252 |
shifted (0.5spread2,0),both); |
| 253 |
top y4=h; x4=x3; pos4(rth,180); |
| 254 |
filldraw stroke z3e..z4e; |
| 255 |
penlabels(1,2,3,4); |
| 256 |
endchar; |
| 257 |
|
| 258 |
beginchar(arrows_up_down, |
| 259 |
7u#+spread2#+2appr#,asc_height#,asc_depth#); |
| 260 |
"Upward_downward arrows"; |
| 261 |
pickup tiny.nib; |
| 262 |
arrow_head1(straight_path(up,0)% corrected 2002/07/29 |
| 263 |
shifted (-0.5spread2,0),both); |
| 264 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 265 |
filldraw stroke z1e..z2e; |
| 266 |
arrow_head3(straight_path(down,0)% corrected 2002/07/29 |
| 267 |
shifted (0.5spread2,0),both); |
| 268 |
top y4=h; x4=x3; pos4(rth,180); |
| 269 |
filldraw stroke z3e..z4e; |
| 270 |
penlabels(1,2,3,4); |
| 271 |
endchar; |
| 272 |
|
| 273 |
beginchar(arrows_down_up, |
| 274 |
7u#+spread2#+2appr#,asc_height#,asc_depth#); |
| 275 |
"Downward-upward arrows"; |
| 276 |
pickup tiny.nib; |
| 277 |
arrow_head1(straight_path(down,0)% corrected 2002/07/29 |
| 278 |
shifted (-0.5spread2,0),both); |
| 279 |
top y2=h; x2=x1; pos2(rth,180); |
| 280 |
filldraw stroke z1e..z2e; |
| 281 |
arrow_head3(straight_path(up,0)% corrected 2002/07/29 |
| 282 |
shifted (0.5spread2,0),both); |
| 283 |
bot y4=-d; x4=x3; pos4(rth,0); |
| 284 |
filldraw stroke z3e..z4e; |
| 285 |
penlabels(1,2,3,4); |
| 286 |
endchar; |
| 287 |
|
| 288 |
% STRANGE ARROWS |
| 289 |
|
| 290 |
beginchar(arrow_shift_up_left, |
| 291 |
arithmetic_bounds); |
| 292 |
"Up_left shift arrow"; |
| 293 |
pickup tiny.nib; |
| 294 |
pos3(rth,0); rt x3r=w-Appr; bot y3=-d-o; |
| 295 |
arrow_head1(straight_path(left,0) shifted (0,vround 3u),both); |
| 296 |
forsuffixes $=,r,l: y2$=y1$; x2$=x3$; endfor |
| 297 |
filldraw stroke z1e--z2e--z3e; |
| 298 |
penlabels(1,2,3); |
| 299 |
endchar; |
| 300 |
|
| 301 |
beginchar(arrow_shift_up_right, |
| 302 |
arithmetic_bounds); |
| 303 |
"Up_right shift arrow"; |
| 304 |
pickup tiny.nib; |
| 305 |
pos3(rth,0); lft x3l=Appr; bot y3=-d-o; |
| 306 |
arrow_head1(straight_path(right,0) shifted (0,vround 3u),both); |
| 307 |
forsuffixes $=,r,l: y2$=y1$; x2$=x3$; endfor |
| 308 |
filldraw stroke z1e--z2e--z3e; |
| 309 |
penlabels(1,2,3); |
| 310 |
endchar; |
| 311 |
|
| 312 |
beginchar(arrow_shift_down_left, |
| 313 |
arithmetic_bounds); |
| 314 |
"Down-left shift arrow"; |
| 315 |
pickup tiny.nib; |
| 316 |
pos3(rth,180); rt x3l=w-Appr; top y3=h+o; |
| 317 |
arrow_head1(straight_path(left,0) shifted (0,-vround 3u),both); |
| 318 |
forsuffixes $=,r,l: y2$=y1$; x2$=x3$; endfor |
| 319 |
filldraw stroke z1e--z2e--z3e; |
| 320 |
penlabels(1,2,3); |
| 321 |
endchar; |
| 322 |
|
| 323 |
beginchar(arrow_shift_down_right, |
| 324 |
arithmetic_bounds); |
| 325 |
"Down-right shift arrow"; |
| 326 |
pickup tiny.nib; |
| 327 |
pos3(rth,180); lft x3r=Appr; top y3=h+o; |
| 328 |
arrow_head1(straight_path(right,0) shifted (0,-vround 3u),both); |
| 329 |
forsuffixes $=,r,l: y2$=y1$; x2$=x3$; endfor |
| 330 |
filldraw stroke z1e--z2e--z3e; |
| 331 |
penlabels(1,2,3); |
| 332 |
endchar; |
| 333 |
|
| 334 |
beginchar(arrow_squig_left, |
| 335 |
6*3.5u#+arrow_height#+2appr#,v_center(spread1#+rth#)); |
| 336 |
"Left squig-arrow"; |
| 337 |
pickup tiny.nib; |
| 338 |
arrow_head1(straight_path(left,0),both); |
| 339 |
pickup rule.nib; |
| 340 |
y2=y1; |
| 341 |
y3=y5=y7=math_axis+0.5spread1; |
| 342 |
y4=y6=y8=math_axis-0.5spread1; |
| 343 |
x8=w-appr; x8-x2=6*3.5u; |
| 344 |
x2-x3=x3-x4=x4-x5=x5-x6=x6-x7=x7-x8; |
| 345 |
autorounded; |
| 346 |
draw z1---z2...0.5[z3,z2]{(z3-z2) yscaled 2}... |
| 347 |
z3{right}...0.5[z4,z3]{(z4-z3) yscaled 3}... |
| 348 |
z4{right}...0.5[z5,z4]{(z5-z4) yscaled 3}... |
| 349 |
z5{right}...0.5[z6,z5]{(z6-z5) yscaled 3}... |
| 350 |
z6{right}...0.5[z7,z6]{(z7-z6) yscaled 3}... |
| 351 |
z7{right}...0.5[z8,z7]{(z8-z7) yscaled 3}... |
| 352 |
z8{right}; |
| 353 |
cullit; unfill (x8+1,top y8+1)--(x8+1,bot y8-1) |
| 354 |
--(rt x8+1,bot y8-1)--(rt x8+1,top y8+1)--cycle; |
| 355 |
labels(2,3,4,5,6,7,8); penlabels(1); |
| 356 |
endchar; |
| 357 |
|
| 358 |
beginchar(arrow_squig_right, |
| 359 |
6*3.5u#+arrow_height#+2appr#,v_center(spread1#+rth#)); |
| 360 |
"Right squig-arrow"; |
| 361 |
pickup tiny.nib; |
| 362 |
arrow_head1(straight_path(right,0),both); |
| 363 |
pickup rule.nib; |
| 364 |
y2=y1; |
| 365 |
y3=y5=y7=math_axis-0.5spread1; |
| 366 |
y4=y6=y8=math_axis+0.5spread1; |
| 367 |
x8=appr; x2-x8=6*3.5u; |
| 368 |
x2-x3=x3-x4=x4-x5=x5-x6=x6-x7=x7-x8; |
| 369 |
autorounded; |
| 370 |
draw z1---z2...0.5[z3,z2]{(z3-z2) yscaled 2}... |
| 371 |
z3{left}...0.5[z4,z3]{(z4-z3) yscaled 3}... |
| 372 |
z4{left}...0.5[z5,z4]{(z5-z4) yscaled 3}... |
| 373 |
z5{left}...0.5[z6,z5]{(z6-z5) yscaled 3}... |
| 374 |
z6{left}...0.5[z7,z6]{(z7-z6) yscaled 3}... |
| 375 |
z7{left}...0.5[z8,z7]{(z8-z7) yscaled 3}... |
| 376 |
z8{left}; |
| 377 |
cullit; unfill (x8-1,top y8+1)--(x8-1,bot y8-1) |
| 378 |
--(lft x8-1,bot y8-1)--(lft x8-1,top y8+1)--cycle; |
| 379 |
labels(2,3,4,5,6,7,8); penlabels(1); |
| 380 |
endchar; |
| 381 |
|
| 382 |
beginchar(arrow_squig_left_right, |
| 383 |
7*3.5u#+2*arrow_height#+2appr#,v_center(spread1#+rth#)); |
| 384 |
"Left right squig-arrow"; |
| 385 |
pickup tiny.nib; |
| 386 |
arrow_head1(straight_path(left,0),both); |
| 387 |
arrow_head10(straight_path(right,0),both); |
| 388 |
pickup rule.nib; |
| 389 |
y2=y1; y9=y10; |
| 390 |
y3=y5=y7=math_axis+0.5spread1; |
| 391 |
y4=y6=y8=math_axis-0.5spread1; |
| 392 |
x9-x2=7*3.5u; 0.5[x2,x9]=0.5w; |
| 393 |
x2-x3=x3-x4=x4-x5=x5-x6=x6-x7=x7-x8=x8-x9; |
| 394 |
autorounded; |
| 395 |
draw z1---z2...0.5[z3,z2]{(z3-z2) yscaled 3}... |
| 396 |
z3{right}...0.5[z4,z3]{(z4-z3) yscaled 3}... |
| 397 |
z4{right}...0.5[z5,z4]{(z5-z4) yscaled 3}... |
| 398 |
z5{right}...0.5[z6,z5]{(z6-z5) yscaled 3}... |
| 399 |
z6{right}...0.5[z7,z6]{(z7-z6) yscaled 3}... |
| 400 |
z7{right}...0.5[z8,z7]{(z8-z7) yscaled 3}... |
| 401 |
z8{right}...0.5[z9,z8]{(z9-z8) yscaled 3}... |
| 402 |
z9---z10; |
| 403 |
labels(2,3,4,5,6); penlabels(1,7); |
| 404 |
endchar; |
| 405 |
|
| 406 |
beginchar(arrow_curve_top_left, |
| 407 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 408 |
"Top-left curved arrow"; |
| 409 |
pickup tiny.nib; |
| 410 |
bot y1=bot y3=-d-eps; y2+0.5rth=h+o; |
| 411 |
rt x1=w-appr; x2=0.5w; lft x3=appr; |
| 412 |
z0=(z2-z1) yscaled 3; |
| 413 |
tmp_path:=z1{z0}...z2{left}...z3{(z3-z2) yscaled 3}; |
| 414 |
arrow_head4(tmp_path,both); |
| 415 |
pos1(rth,angle z0-90); pos2(rth,90); |
| 416 |
filldraw stroke z1e{z0}...z2e{left} |
| 417 |
...z4e{direction arrow_time of tmp_path}; |
| 418 |
penlabels(1,2,3,4); |
| 419 |
endchar; |
| 420 |
|
| 421 |
beginchar(arrow_curve_top_right, |
| 422 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 423 |
"Top-right curved arrow"; |
| 424 |
pickup tiny.nib; |
| 425 |
bot y1=bot y3=-d-eps; y2+0.5rth=h+o; |
| 426 |
lft x1=appr; x2=0.5w; rt x3=w-appr; |
| 427 |
z0=(z2-z1) yscaled 3; |
| 428 |
tmp_path:=z1{z0}...z2{right}...z3{(z3-z2) yscaled 3}; |
| 429 |
arrow_head4(tmp_path,both); |
| 430 |
pos1(rth,angle z0-90); pos2(rth,-90); |
| 431 |
filldraw stroke z1e{z0}...z2e{right} |
| 432 |
...z4e{direction arrow_time of tmp_path}; |
| 433 |
penlabels(1,2,3,4); |
| 434 |
endchar; |
| 435 |
|
| 436 |
beginchar(arrow_curve_top_left_right, |
| 437 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 438 |
"Top-left-right curved arrow"; |
| 439 |
pickup tiny.nib; |
| 440 |
bot y1=bot y3=-d-eps; y2+0.5rth=h+o; |
| 441 |
rt x1=w-appr; x2=0.5w; lft x3=appr; |
| 442 |
tmp_path:=z1{(z2-z1) yscaled 3}...z2{left}...z3{(z3-z2) yscaled 3}; |
| 443 |
arrow_head0(reverse tmp_path,both); t:=2-arrow_time; |
| 444 |
arrow_head4(tmp_path,both); |
| 445 |
pickup rule.nib; |
| 446 |
draw subpath (t,arrow_time) of tmp_path; |
| 447 |
labels(1,2,3); penlabels(0,4); |
| 448 |
endchar; |
| 449 |
|
| 450 |
beginchar(arrow_curve_bot_left, |
| 451 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 452 |
"Bot-left curved arrow"; |
| 453 |
pickup tiny.nib; |
| 454 |
top y1=top y3=h+eps; y2-0.5rth=-d-o; |
| 455 |
rt x1=w-appr; x2=0.5w; lft x3=appr; |
| 456 |
z0=(z2-z1) yscaled 3; |
| 457 |
tmp_path:=z1{z0}...z2{left}...z3{(z3-z2) yscaled 3}; |
| 458 |
arrow_head4(tmp_path,both); |
| 459 |
pos1(rth,angle z0-90); pos2(rth,90); |
| 460 |
filldraw stroke z1e{z0}...z2e{left} |
| 461 |
...z4e{direction arrow_time of tmp_path}; |
| 462 |
penlabels(1,2,3,4); |
| 463 |
endchar; |
| 464 |
|
| 465 |
beginchar(arrow_curve_bot_right, |
| 466 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 467 |
"Bot-right curved arrow"; |
| 468 |
pickup tiny.nib; |
| 469 |
top y1=top y3=h+eps; y2-0.5rth=-d-o; |
| 470 |
lft x1=appr; x2=0.5w; rt x3=w-appr; |
| 471 |
z0=(z2-z1) yscaled 3; |
| 472 |
tmp_path:=z1{z0}...z2{right}...z3{(z3-z2) yscaled 3}; |
| 473 |
arrow_head4(tmp_path,both); |
| 474 |
pos1(rth,angle z0-90); pos2(rth,-90); |
| 475 |
filldraw stroke z1e{z0}...z2e{right} |
| 476 |
...z4e{direction arrow_time of tmp_path}; |
| 477 |
penlabels(1,2,3,4); |
| 478 |
endchar; |
| 479 |
|
| 480 |
beginchar(arrow_curve_bot_left_right, |
| 481 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 482 |
"Bot-left-right curved arrow"; |
| 483 |
pickup tiny.nib; |
| 484 |
top y1=top y3=h+eps; y2-0.5rth=-d-o; |
| 485 |
rt x1=w-appr; x2=0.5w; lft x3=appr; |
| 486 |
tmp_path:=z1{(z2-z1) yscaled 3}...z2{left}...z3{(z3-z2) yscaled 3}; |
| 487 |
arrow_head0(reverse tmp_path,both); t:=2-arrow_time; |
| 488 |
arrow_head4(tmp_path,both); |
| 489 |
pickup rule.nib; |
| 490 |
draw subpath (t,arrow_time) of tmp_path; |
| 491 |
labels(1,2,3); penlabels(0,4); |
| 492 |
endchar; |
| 493 |
|
| 494 |
beginchar(arrow_loop_up_left, |
| 495 |
16u#+2appr#,v_center(12u#)); |
| 496 |
"Up-left loop-arrow"; |
| 497 |
pickup tiny.nib; |
| 498 |
arrow_head1(straight_path(left,0),both); |
| 499 |
lft x8l=w-appr-hround 6u; bot y8=-d; |
| 500 |
pos7(rth,180); pos8(rth,180); |
| 501 |
y1=y2=y3=y7; x2=x6=x7=x8; |
| 502 |
filldraw stroke z8e..z7e; |
| 503 |
pickup rule.nib; autorounded; |
| 504 |
top y5=h; rt x4=w-appr; |
| 505 |
y4=y6=0.5[y3,y5]; x3=x5=0.5[x4,x6]; |
| 506 |
draw z1..z2..z3 right_to_up z4 |
| 507 |
up_to_left z5 left_to_down z6..z7; |
| 508 |
labels(1,2,3,4,5,6); penlabels(7,8); |
| 509 |
endchar; |
| 510 |
|
| 511 |
beginchar(arrow_loop_up_right, |
| 512 |
16u#+2appr#,v_center(12u#)); |
| 513 |
"Up-right loop-arrow"; |
| 514 |
pickup tiny.nib; |
| 515 |
arrow_head1(straight_path(right,0),both); |
| 516 |
rt x8r=appr+hround 6u; bot y8=-d; |
| 517 |
pos7(rth,180); pos8(rth,180); |
| 518 |
y1=y2=y3=y7; x2=x6=x7=x8; |
| 519 |
filldraw stroke z8e..z7e; |
| 520 |
pickup rule.nib; autorounded; |
| 521 |
top y5=h; lft x4=appr; |
| 522 |
y4=y6=0.5[y3,y5]; x3=x5=0.5[x4,x6]; |
| 523 |
draw z1..z2..z3 left_to_up z4 |
| 524 |
up_to_right z5 right_to_down z6..z7; |
| 525 |
labels(1,2,3,4,5,6); penlabels(7,8); |
| 526 |
endchar; |
| 527 |
|
| 528 |
beginchar(arrow_loop_down_left, |
| 529 |
16u#+2appr#,v_center(12u#)); |
| 530 |
"Down-left loop-arrow"; |
| 531 |
pickup tiny.nib; |
| 532 |
arrow_head1(straight_path(left,0),both); |
| 533 |
lft x8r=w-appr-hround 6u; top y8=h; |
| 534 |
pos7(rth,0); pos8(rth,0); |
| 535 |
y1=y2=y3=y7; x2=x6=x7=x8; |
| 536 |
filldraw stroke z8e..z7e; |
| 537 |
pickup rule.nib; autorounded; |
| 538 |
bot y5=-d; rt x4=w-appr; |
| 539 |
y4=y6=0.5[y3,y5]; x3=x5=0.5[x4,x6]; |
| 540 |
draw z1..z2..z3 right_to_down z4 |
| 541 |
down_to_left z5 left_to_up z6..z7; |
| 542 |
labels(1,2,3,4,5,6); penlabels(7,8); |
| 543 |
endchar; |
| 544 |
|
| 545 |
beginchar(arrow_loop_down_right, |
| 546 |
16u#+2appr#,v_center(12u#)); |
| 547 |
"Down-right loop-arrow"; |
| 548 |
pickup tiny.nib; |
| 549 |
arrow_head1(straight_path(right,0),both); |
| 550 |
rt x8l=appr+hround 6u; top y8=h; |
| 551 |
pos7(rth,0); pos8(rth,0); |
| 552 |
y1=y2=y3=y7; x2=x6=x7=x8; |
| 553 |
filldraw stroke z8e..z7e; |
| 554 |
pickup rule.nib; autorounded; |
| 555 |
bot y5=-d; lft x4=appr; |
| 556 |
y4=y6=0.5[y3,y5]; x3=x5=0.5[x4,x6]; |
| 557 |
draw z1..z2..z3 left_to_down z4 |
| 558 |
down_to_right z5 right_to_up z6..z7; |
| 559 |
labels(1,2,3,4,5,6); penlabels(7,8); |
| 560 |
endchar; |
| 561 |
|
| 562 |
beginchar(arrow_circle_left, |
| 563 |
arithmetic_bounds); |
| 564 |
"Left circle-arrow"; |
| 565 |
arrow_head_fitting:=true; |
| 566 |
a:=6.75u; t:=0.25; |
| 567 |
pickup rule.nib; |
| 568 |
x0=x1=x3=good.x 0.5w; |
| 569 |
y0=y2=y4=math_axis; |
| 570 |
y1-y0=y0-y3=x4-x0=x0-x2=round(a-0.5rth); |
| 571 |
tmp_path:=subpath (t,8-t) of |
| 572 |
(z1 left_to_down z2 down_to_right |
| 573 |
z3 right_to_up z4 up_to_left z1); |
| 574 |
pickup tiny.nib; |
| 575 |
arrow_head5(tmp_path,both); |
| 576 |
pickup rule.nib; |
| 577 |
cutdraw subpath(0,arrow_time) of tmp_path; |
| 578 |
labels(1,2,3,4); penlabels(1); |
| 579 |
endchar; |
| 580 |
|
| 581 |
beginchar(arrow_circle_right, |
| 582 |
arithmetic_bounds); |
| 583 |
"Right circle-arrow"; |
| 584 |
arrow_head_fitting:=true; |
| 585 |
a:=6.75u; t:=0.25; |
| 586 |
pickup rule.nib; |
| 587 |
x0=x1=x3=good.x 0.5w; |
| 588 |
y0=y2=y4=math_axis; |
| 589 |
y1-y0=y0-y3=x2-x0=x0-x4=round(a-0.5rth); |
| 590 |
tmp_path:=subpath (t,8-t) of |
| 591 |
(z1 right_to_down z2 down_to_left |
| 592 |
z3 left_to_up z4 up_to_right z1); |
| 593 |
pickup tiny.nib; |
| 594 |
arrow_head5(tmp_path,both); |
| 595 |
pickup rule.nib; |
| 596 |
cutdraw subpath(0,arrow_time) of tmp_path; |
| 597 |
labels(1,2,3,4); penlabels(1); |
| 598 |
endchar; |
| 599 |
|
| 600 |
beginchar(arrow_left_to_right, |
| 601 |
16u#+2appr#,v_center(12u#)); |
| 602 |
"Left to right arrow"; |
| 603 |
arrow_head_fitting:=true; |
| 604 |
pickup rule.nib; |
| 605 |
x1=x5=w-appr; lft x3=appr; top y2=h-vround 0.5u; y1-y5=spread1; |
| 606 |
0.5[y1,y5]=0.5[y2,y4]=y3=math_axis; |
| 607 |
x2=x4=3/8[appr,w-appr]; |
| 608 |
tmp_path:=z1{(z2-z1) yscaled 2}...z2 left_to_down |
| 609 |
z3 down_to_right z4...z5{(z5-z4) yscaled 2}; |
| 610 |
pickup tiny.nib; |
| 611 |
arrow_head6(tmp_path,both); |
| 612 |
pickup rule.nib; |
| 613 |
cutdraw subpath (0,arrow_time) of tmp_path; |
| 614 |
labels(1,2,3,4,5); penlabels(6); |
| 615 |
endchar; |
| 616 |
|
| 617 |
beginchar(arrow_right_to_left, |
| 618 |
16u#+2appr#,v_center(12u#)); |
| 619 |
"Right to left arrow"; |
| 620 |
arrow_head_fitting:=true; |
| 621 |
pickup rule.nib; |
| 622 |
x1=x5=appr; rt x3=w-appr; top y4=h-vround 0.5u; y5-y1=spread1; |
| 623 |
0.5[y1,y5]=0.5[y2,y4]=y3=math_axis; |
| 624 |
x2=x4=5/8[appr,w-appr]; |
| 625 |
tmp_path:=z1{(z2-z1) yscaled 2}...z2 right_to_up |
| 626 |
z3 up_to_left z4...z5{(z5-z4) yscaled 2}; |
| 627 |
pickup tiny.nib; |
| 628 |
arrow_head6(tmp_path,both); |
| 629 |
pickup rule.nib; |
| 630 |
cutdraw subpath (0,arrow_time) of tmp_path; |
| 631 |
labels(1,2,3,4,5); penlabels(6); |
| 632 |
endchar; |
| 633 |
|
| 634 |
beginchar(arrow_up_to_down, |
| 635 |
12u#+2appr#,asc_height#,asc_depth#); |
| 636 |
"Up to down arrow"; |
| 637 |
arrow_head_fitting:=true; |
| 638 |
pickup rule.nib; |
| 639 |
y1=y5=-d; top y3=h; lft x4=appr+hround 0.5u; x1-x5=spread1; |
| 640 |
0.5[x1,x5]=0.5[x2,x4]=x3=0.5w; |
| 641 |
y2=y4=5/8[-d,h]; |
| 642 |
tmp_path:=z1{(z2-z1) xscaled 2}...z2 up_to_left |
| 643 |
z3 left_to_down z4...z5{(z5-z4) xscaled 2}; |
| 644 |
pickup tiny.nib; |
| 645 |
arrow_head6(tmp_path,both); |
| 646 |
pickup rule.nib; |
| 647 |
cutdraw subpath (0,arrow_time) of tmp_path; |
| 648 |
labels(1,2,3,4,5); penlabels(6); |
| 649 |
endchar; |
| 650 |
|
| 651 |
beginchar(arrow_down_to_up, |
| 652 |
12u#+2appr#,asc_height#,asc_depth#); |
| 653 |
"Down to up arrow"; |
| 654 |
arrow_head_fitting:=true; |
| 655 |
pickup rule.nib; |
| 656 |
y1=y5=h; bot y3=-d; lft x2=appr+hround 0.5u; x5-x1=spread1; |
| 657 |
0.5[x1,x5]=0.5[x2,x4]=x3=0.5w; |
| 658 |
y2=y4=3/8[-d,h]; |
| 659 |
tmp_path:=z1{(z2-z1) xscaled 2}...z2 down_to_right |
| 660 |
z3 right_to_up z4...z5{(z5-z4) xscaled 2}; |
| 661 |
pickup tiny.nib; |
| 662 |
arrow_head6(tmp_path,both); |
| 663 |
pickup rule.nib; |
| 664 |
cutdraw subpath (0,arrow_time) of tmp_path; |
| 665 |
labels(1,2,3,4,5); penlabels(6); |
| 666 |
endchar; |
| 667 |
|
| 668 |
% HARPOONS |
| 669 |
|
| 670 |
beginchar(harpoon_left_up, |
| 671 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 672 |
"Left up-harpoon"; |
| 673 |
pickup tiny.nib; |
| 674 |
arrow_head1(straight_path(left,0),right); |
| 675 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 676 |
filldraw stroke z1e..z2e; |
| 677 |
penlabels(1,2); |
| 678 |
endchar; |
| 679 |
|
| 680 |
beginchar(harpoon_right_up, |
| 681 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 682 |
"Right up-harpoon"; |
| 683 |
pickup tiny.nib; |
| 684 |
arrow_head1(straight_path(right,0),left); |
| 685 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 686 |
filldraw stroke z1e..z2e; |
| 687 |
penlabels(1,2); |
| 688 |
endchar; |
| 689 |
|
| 690 |
beginchar(harpoon_left_down, |
| 691 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 692 |
"Left down-harpoon"; |
| 693 |
pickup tiny.nib; |
| 694 |
arrow_head1(straight_path(left,0),left); |
| 695 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 696 |
filldraw stroke z1e..z2e; |
| 697 |
penlabels(1,2); |
| 698 |
endchar; |
| 699 |
|
| 700 |
beginchar(harpoon_right_down, |
| 701 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 702 |
"Right down-harpoon"; |
| 703 |
pickup tiny.nib; |
| 704 |
arrow_head1(straight_path(right,0),right); |
| 705 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 706 |
filldraw stroke z1e..z2e; |
| 707 |
penlabels(1,2); |
| 708 |
endchar; |
| 709 |
|
| 710 |
beginchar(harpoon_up_left, |
| 711 |
7u#+2appr#,asc_height#,asc_depth#); |
| 712 |
"Upward left-harpoon"; |
| 713 |
pickup tiny.nib; |
| 714 |
arrow_head1(straight_path(up,0),left); |
| 715 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 716 |
filldraw stroke z1e..z2e; |
| 717 |
penlabels(1,2); |
| 718 |
endchar; |
| 719 |
|
| 720 |
beginchar(harpoon_down_left, |
| 721 |
7u#+2appr#,asc_height#,asc_depth#); |
| 722 |
"Upward left-harpoon"; |
| 723 |
pickup tiny.nib; |
| 724 |
arrow_head1(straight_path(down,0),right); |
| 725 |
top y2=h; x2=x1; pos2(rth,180); |
| 726 |
filldraw stroke z1e..z2e; |
| 727 |
penlabels(1,2); |
| 728 |
endchar; |
| 729 |
|
| 730 |
beginchar(harpoon_up_right, |
| 731 |
7u#+2appr#,asc_height#,asc_depth#); |
| 732 |
"Downward right-harpoon"; |
| 733 |
pickup tiny.nib; |
| 734 |
arrow_head1(straight_path(up,0),right); |
| 735 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 736 |
filldraw stroke z1e..z2e; |
| 737 |
penlabels(1,2); |
| 738 |
endchar; |
| 739 |
|
| 740 |
beginchar(harpoon_down_right, |
| 741 |
7u#+2appr#,asc_height#,asc_depth#); |
| 742 |
"Downward right-harpoon"; |
| 743 |
pickup tiny.nib; |
| 744 |
arrow_head1(straight_path(down,0),left); |
| 745 |
top y2=h; x2=x1; pos2(rth,180); |
| 746 |
filldraw stroke z1e..z2e; |
| 747 |
penlabels(1,2); |
| 748 |
endchar; |
| 749 |
|
| 750 |
beginchar(harpoons_left_left, |
| 751 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 752 |
"Left-left harpoons"; |
| 753 |
pickup tiny.nib; |
| 754 |
arrow_head1(straight_path(left,0) shifted (0,0.5spread1),right); |
| 755 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 756 |
filldraw stroke z1e..z2e; |
| 757 |
arrow_head3(straight_path(left,0) shifted (0,-0.5spread1),left); |
| 758 |
rt x4=w-appr; y4=y3; pos4(rth,90); |
| 759 |
filldraw stroke z3e..z4e; |
| 760 |
penlabels(1,2,3,4); |
| 761 |
endchar; |
| 762 |
|
| 763 |
beginchar(harpoons_right_right, |
| 764 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 765 |
"Right-right harpoon"; |
| 766 |
pickup tiny.nib; |
| 767 |
arrow_head1(straight_path(right,0) shifted (0,0.5spread1),left); |
| 768 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 769 |
filldraw stroke z1e..z2e; |
| 770 |
arrow_head3(straight_path(right,0) shifted (0,-0.5spread1),right); |
| 771 |
lft x4=appr; y4=y3; pos4(rth,-90); |
| 772 |
filldraw stroke z3e..z4e; |
| 773 |
penlabels(1,2,3,4); |
| 774 |
endchar; |
| 775 |
|
| 776 |
beginchar(harpoons_left_right, |
| 777 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 778 |
"Left-right harpoon"; |
| 779 |
pickup tiny.nib; |
| 780 |
arrow_head1(straight_path(left,0) shifted (0,0.5spread1),right); |
| 781 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 782 |
filldraw stroke z1e..z2e; |
| 783 |
arrow_head3(straight_path(right,0) shifted (0,-0.5spread1),right); |
| 784 |
lft x4=appr; y4=y3; pos4(rth,-90); |
| 785 |
filldraw stroke z3e..z4e; |
| 786 |
penlabels(1,2,3,4); |
| 787 |
endchar; |
| 788 |
|
| 789 |
beginchar(harpoons_right_left, |
| 790 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 791 |
"Right-left harpoon"; |
| 792 |
pickup tiny.nib; |
| 793 |
arrow_head1(straight_path(right,0) shifted (0,0.5spread1),left); |
| 794 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 795 |
filldraw stroke z1e..z2e; |
| 796 |
arrow_head3(straight_path(left,0) shifted (0,-0.5spread1),left); |
| 797 |
rt x4=w-appr; y4=y3; pos4(rth,90); |
| 798 |
filldraw stroke z3e..z4e; |
| 799 |
penlabels(1,2,3,4); |
| 800 |
endchar; |
| 801 |
|
| 802 |
beginchar(harpoons_up_up, |
| 803 |
7u#+spread1#+2appr#,asc_height#,asc_depth#); |
| 804 |
"Upward-upward hapoons"; |
| 805 |
pickup tiny.nib; |
| 806 |
arrow_head1(straight_path(up,0) shifted (-0.5spread1,0),left); |
| 807 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 808 |
filldraw stroke z1e..z2e; |
| 809 |
arrow_head3(straight_path(up,0) shifted (0.5spread1,0),right); |
| 810 |
bot y4=-d; x4=x3; pos4(rth,0); |
| 811 |
filldraw stroke z3e..z4e; |
| 812 |
penlabels(1,2,3,4); |
| 813 |
endchar; |
| 814 |
|
| 815 |
beginchar(harpoons_down_down, |
| 816 |
7u#+spread1#+2appr#,asc_height#,asc_depth#); |
| 817 |
"Downward-downward hapoons"; |
| 818 |
pickup tiny.nib; |
| 819 |
arrow_head1(straight_path(down,0) shifted (-0.5spread1,0),right); |
| 820 |
top y2=h; x2=x1; pos2(rth,180); |
| 821 |
filldraw stroke z1e..z2e; |
| 822 |
arrow_head3(straight_path(down,0) shifted (0.5spread1,0),left); |
| 823 |
top y4=h; x4=x3; pos4(rth,180); |
| 824 |
filldraw stroke z3e..z4e; |
| 825 |
penlabels(1,2,3,4); |
| 826 |
endchar; |
| 827 |
|
| 828 |
beginchar(harpoons_up_down, |
| 829 |
7u#+spread1#+2appr#,asc_height#,asc_depth#); |
| 830 |
"Upward-downward hapoons"; |
| 831 |
pickup tiny.nib; |
| 832 |
arrow_head1(straight_path(up,0) shifted (-0.5spread1,0),left); |
| 833 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 834 |
filldraw stroke z1e..z2e; |
| 835 |
arrow_head3(straight_path(down,0) shifted (0.5spread1,0),left); |
| 836 |
top y4=h; x4=x3; pos4(rth,180); |
| 837 |
filldraw stroke z3e..z4e; |
| 838 |
penlabels(1,2,3,4); |
| 839 |
endchar; |
| 840 |
|
| 841 |
beginchar(harpoons_down_up, |
| 842 |
7u#+spread1#+2appr#,asc_height#,asc_depth#); |
| 843 |
"Downward-upward hapoons"; |
| 844 |
pickup tiny.nib; |
| 845 |
arrow_head1(straight_path(down,0) shifted (-0.5spread1,0),right); |
| 846 |
top y2=h; x2=x1; pos2(rth,180); |
| 847 |
filldraw stroke z1e..z2e; |
| 848 |
arrow_head3(straight_path(up,0) shifted (0.5spread1,0),right); |
| 849 |
bot y4=-d; x4=x3; pos4(rth,0); |
| 850 |
filldraw stroke z3e..z4e; |
| 851 |
penlabels(1,2,3,4); |
| 852 |
endchar; |
| 853 |
|
| 854 |
% |
| 855 |
% T. Chaundy uniquely |
| 856 |
% |
| 857 |
|
| 858 |
beginchar(harpoon_left_bar, |
| 859 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 860 |
"Left-bar harpoon"; |
| 861 |
pickup tiny.nib; |
| 862 |
arrow_head1(straight_path(left,0) shifted (0,0.5spread1),right); |
| 863 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 864 |
filldraw stroke z1e..z2e; |
| 865 |
lft x3=appr; rt x4=w-appr; |
| 866 |
y4=y3=math_axis-0.5spread1; |
| 867 |
pos3(rth,90); pos4(rth,90); |
| 868 |
filldraw stroke z3e..z4e; |
| 869 |
penlabels(1,2,3,4); |
| 870 |
endchar; |
| 871 |
|
| 872 |
beginchar(harpoon_right_bar, |
| 873 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 874 |
"Right-bar harpoon"; |
| 875 |
pickup tiny.nib; |
| 876 |
arrow_head1(straight_path(right,0) shifted (0,0.5spread1),left); |
| 877 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 878 |
filldraw stroke z1e..z2e; |
| 879 |
lft x3=appr; rt x4=w-appr; |
| 880 |
y4=y3=math_axis-0.5spread1; |
| 881 |
pos3(rth,90); pos4(rth,90); |
| 882 |
filldraw stroke z3e..z4e; |
| 883 |
penlabels(1,2,3,4); |
| 884 |
endchar; |
| 885 |
|
| 886 |
beginchar(harpoon_bar_left, |
| 887 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 888 |
"Bar-left harpoon"; |
| 889 |
pickup tiny.nib; |
| 890 |
arrow_head1(straight_path(left,0) shifted (0,-0.5spread1),left); |
| 891 |
rt x2=w-appr; y2=y1; pos2(rth,90); |
| 892 |
filldraw stroke z1e..z2e; |
| 893 |
lft x3=appr; rt x4=w-appr; |
| 894 |
y4=y3=math_axis+0.5spread1; |
| 895 |
pos3(rth,90); pos4(rth,90); |
| 896 |
filldraw stroke z3e..z4e; |
| 897 |
penlabels(1,2,3,4); |
| 898 |
endchar; |
| 899 |
|
| 900 |
beginchar(harpoon_bar_right, |
| 901 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 902 |
"Bar-right harpoon"; |
| 903 |
pickup tiny.nib; |
| 904 |
arrow_head1(straight_path(right,0) shifted (0,-0.5spread1),right); |
| 905 |
lft x2=appr; y2=y1; pos2(rth,-90); |
| 906 |
filldraw stroke z1e..z2e; |
| 907 |
lft x3=appr; rt x4=w-appr; |
| 908 |
y4=y3=math_axis+0.5spread1; |
| 909 |
pos3(rth,90); pos4(rth,90); |
| 910 |
filldraw stroke z3e..z4e; |
| 911 |
penlabels(1,2,3,4); |
| 912 |
endchar; |
| 913 |
|
| 914 |
beginchar(harpoon_left_right, |
| 915 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 916 |
"Left-right harpoon"; |
| 917 |
pickup tiny.nib; |
| 918 |
arrow_head1(straight_path(left,0),right); |
| 919 |
arrow_head2(straight_path(right,0),right); |
| 920 |
filldraw z1l--z2r--z2l--z1r--cycle; |
| 921 |
endchar; |
| 922 |
|
| 923 |
beginchar(harpoon_right_left, |
| 924 |
16u#+2appr#,v_center(spread1#+rth#)); |
| 925 |
"Right-left harpoon"; |
| 926 |
pickup tiny.nib; |
| 927 |
arrow_head1(straight_path(right,0),left); |
| 928 |
arrow_head2(straight_path(left,0),left); |
| 929 |
filldraw z1l--z2r--z2l--z1r--cycle; |
| 930 |
endchar; |
| 931 |
|
| 932 |
% ARROW KIT |
| 933 |
|
| 934 |
beginchar(maps_to_char,0,v_center(spread1#+rth#)); |
| 935 |
"Maps to char"; |
| 936 |
pickup tiny.nib; |
| 937 |
pos1(rth,0); pos2(rth,0); pos3(rth,90); pos4(rth,90); |
| 938 |
lft x1l=lft x2l=appr; x3=x1r; x4=x3+ceiling 0.5u; |
| 939 |
y3=y4=math_axis; 0.5[y1,y2]=y3; |
| 940 |
top y1-bot y2=arrow_width;%2vround 0.60arrow_width; |
| 941 |
filldraw stroke z1e..z2e; filldraw stroke z3e..z4e; |
| 942 |
penlabels(1,2,3,4); |
| 943 |
endchar; |
| 944 |
|
| 945 |
beginchar(maps_from_char,0,v_center(spread1#+rth#)); |
| 946 |
"Maps from char"; |
| 947 |
pickup tiny.nib; |
| 948 |
pos1(rth,0); pos2(rth,0); pos3(rth,-90); pos4(rth,-90); |
| 949 |
rt x1r=rt x2r=-appr; x3=x1l; x4=x3-ceiling 0.5u; |
| 950 |
y3=y4=math_axis; 0.5[y1,y2]=y3; |
| 951 |
top y1-bot y2=arrow_width; %2vround 0.60arrow_width; |
| 952 |
filldraw stroke z1e..z2e; filldraw stroke z3e..z4e; |
| 953 |
penlabels(1,2,3,4); |
| 954 |
endchar; |
| 955 |
|
| 956 |
beginchar(relbar_char,12u#+2appr#,v_center(spread1#+rth#)); |
| 957 |
"Relation bar char"; |
| 958 |
pickup tiny.nib; pos1(rth,90); pos2(rth,90); |
| 959 |
y1=y2=math_axis; lft x1=appr; rt x2=w-appr; |
| 960 |
filldraw stroke z1e..z2e; penlabels(1,2); |
| 961 |
endchar; |
| 962 |
|
| 963 |
% |
| 964 |
% trop \'ecras\'es \`a mon go\^ut. |
| 965 |
% |
| 966 |
|
| 967 |
beginchar(hook_left,3u#+2appr#,v_center(spread1#+rth#)); |
| 968 |
"Left hook"; |
| 969 |
pickup tiny.nib; pos1(rth,90); pos2(rth,0); pos3(rth,-90); |
| 970 |
y3=math_axis; y1-y3=vround min(1.4spread1,3u); |
| 971 |
y2=0.5[y1,y3]; lft x1=lft x3=appr; rt x2r=w-appr; |
| 972 |
filldraw stroke z1e right_to_down z2e down_to_left z3e; |
| 973 |
penlabels(1,2,3); |
| 974 |
endchar; |
| 975 |
|
| 976 |
beginchar(hook_right,3u#+2appr#,v_center(spread1#+rth#)); |
| 977 |
"Right hook"; |
| 978 |
pickup tiny.nib; pos1(rth,-90); pos2(rth,0); pos3(rth,90); |
| 979 |
y3=math_axis; y1-y3=vround min(1.4spread1,3u); |
| 980 |
y2=0.5[y1,y3]; rt x1=rt x3=w-appr; lft x2l=appr; |
| 981 |
filldraw stroke z1e left_to_down z2e down_to_right z3e; |
| 982 |
penlabels(1,2,3); |
| 983 |
endchar; |
| 984 |
|
| 985 |
beginchar(diag_up,16u#+2appr#,asc_height#,asc_depth#); |
| 986 |
"Diagonal up"; |
| 987 |
pickup rule.nib; |
| 988 |
lft x1=appr; rt x2=w-appr; bot y1=-d; top y2=h; |
| 989 |
draw z1..z2; labels(1,2); |
| 990 |
endchar; |
| 991 |
|
| 992 |
beginchar(diag_down,16u#+2appr#,asc_height#,asc_depth#); |
| 993 |
"Diagonal down"; |
| 994 |
pickup rule.nib; |
| 995 |
lft x1=appr; rt x2=w-appr; top y1=h; bot y2=-d; |
| 996 |
draw z1..z2; labels(1,2); |
| 997 |
endchar; |
| 998 |
|
| 999 |
% DOUBLE ARROWS |
| 1000 |
|
| 1001 |
% for horizontal arrows... |
| 1002 |
|
| 1003 |
double_arrow_width := 2ceiling 0.70spread1+spread1+rth1; |
| 1004 |
double_arrow_height := round 6.5u; |
| 1005 |
double_arrow_tense := 0.65; |
| 1006 |
double_arrow_flatness:= 0.25; |
| 1007 |
|
| 1008 |
beginchar(double_arrow_left, |
| 1009 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 1010 |
"Left double arrow"; |
| 1011 |
pickup tiny.nib; |
| 1012 |
double_arrow_head1((appr,math_axis),left); |
| 1013 |
pos2r(rth,90); pos2l(rth,90); |
| 1014 |
rt x2r=rt x2l=w-appr; y2r=y1r; y2l=y1l; |
| 1015 |
filldraw stroke z1r.e..z2r.e; |
| 1016 |
filldraw stroke z1l.e..z2l.e; |
| 1017 |
penlabels(2r,2l); |
| 1018 |
endchar; |
| 1019 |
|
| 1020 |
beginchar(double_arrow_right, |
| 1021 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 1022 |
"Right double arrow"; |
| 1023 |
pickup tiny.nib; |
| 1024 |
double_arrow_head1((w-appr,math_axis),right); |
| 1025 |
pos2r(rth,-90); pos2l(rth,-90); |
| 1026 |
lft x2r=lft x2l=appr; y2r=y1r; y2l=y1l; |
| 1027 |
filldraw stroke z1r.e..z2r.e; |
| 1028 |
filldraw stroke z1l.e..z2l.e; |
| 1029 |
penlabels(2r,2l); |
| 1030 |
endchar; |
| 1031 |
|
| 1032 |
beginchar(double_arrow_left_right, |
| 1033 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 1034 |
"Left-right double arrow"; |
| 1035 |
pickup tiny.nib; |
| 1036 |
double_arrow_head1((appr-o,math_axis),left); |
| 1037 |
double_arrow_head2((w-appr+o,math_axis),right); |
| 1038 |
filldraw z1r.r--z1r.l--z2l.r--z2l.l--cycle; |
| 1039 |
filldraw z1l.r--z1l.l--z2r.r--z2r.l--cycle; |
| 1040 |
endchar; |
| 1041 |
|
| 1042 |
beginchar(double_arrow_left_not, |
| 1043 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 1044 |
"Left double arrow"; |
| 1045 |
pickup tiny.nib; |
| 1046 |
double_arrow_head1((appr,math_axis),left); |
| 1047 |
pos2r(rth,90); pos2l(rth,90); |
| 1048 |
rt x2r=rt x2l=w-appr; y2r=y1r; y2l=y1l; |
| 1049 |
filldraw stroke z1r.e..z2r.e; |
| 1050 |
filldraw stroke z1l.e..z2l.e; |
| 1051 |
v_adjust(3r,4l,y1,double_arrow_width);% to be checked |
| 1052 |
lft x4l-appr=hround 7u; w-appr-rt x3r=hround 5u; |
| 1053 |
adjust_slanted_bar(4l,3r,4r,3l)(rth-tiny,-1); |
| 1054 |
filldraw stroke z3e..z4e; |
| 1055 |
penlabels(2r,2l,3,4); |
| 1056 |
endchar; |
| 1057 |
|
| 1058 |
beginchar(double_arrow_right_not, |
| 1059 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 1060 |
"Right double arrow"; |
| 1061 |
pickup tiny.nib; |
| 1062 |
double_arrow_head1((w-appr,math_axis),right); |
| 1063 |
pos2r(rth,-90); pos2l(rth,-90); |
| 1064 |
lft x2r=lft x2l=appr; y2r=y1r; y2l=y1l; |
| 1065 |
filldraw stroke z1r.e..z2r.e; |
| 1066 |
filldraw stroke z1l.e..z2l.e; |
| 1067 |
v_adjust(3r,4l,y1,double_arrow_width);% to be checked |
| 1068 |
lft x4l=appr+hround 5u; w-rt x3r=appr+hround 7u; |
| 1069 |
adjust_slanted_bar(4l,3r,4r,3l)(rth-tiny,-1); |
| 1070 |
filldraw stroke z3e..z4e; |
| 1071 |
penlabels(2r,2l,3,4); |
| 1072 |
endchar; |
| 1073 |
|
| 1074 |
beginchar(double_arrow_left_right_not, |
| 1075 |
16u#+2appr#,v_center(2spread1#+rth#)); |
| 1076 |
"Left-right double arrow"; |
| 1077 |
pickup tiny.nib; |
| 1078 |
double_arrow_head1((appr-o,math_axis),left); |
| 1079 |
double_arrow_head2((w-appr+o,math_axis),right); |
| 1080 |
filldraw z1r.r--z1r.l--z2l.r--z2l.l--cycle; |
| 1081 |
filldraw z1l.r--z1l.l--z2r.r--z2r.l--cycle; |
| 1082 |
v_adjust(3r,4l,y1,double_arrow_width);% to be checked |
| 1083 |
lft x4l=w-rt x3r=appr+hround 6.5u; |
| 1084 |
adjust_slanted_bar(4l,3r,4r,3l)(rth-tiny,-1); |
| 1085 |
filldraw stroke z3e..z4e; |
| 1086 |
penlabels(3,4); |
| 1087 |
endchar; |
| 1088 |
|
| 1089 |
% for horizontal arrows... |
| 1090 |
|
| 1091 |
double_arrow_width := 2ceiling 0.70spread1+spread1+rth1; |
| 1092 |
double_arrow_height := round 6.5u; |
| 1093 |
double_arrow_tense := 0.65; |
| 1094 |
double_arrow_flatness:= 0.25; |
| 1095 |
|
| 1096 |
beginchar(double_arrow_up, |
| 1097 |
9u#+2appr#,asc_height#,asc_depth#); |
| 1098 |
"Up double arrow"; |
| 1099 |
pickup tiny.nib; |
| 1100 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1101 |
h+o),up); |
| 1102 |
pos2r(rth,0); pos2l(rth,0); |
| 1103 |
bot y2r=bot y2l=-d; x2r=x1r; x2l=x1l; |
| 1104 |
filldraw stroke z1r.e..z2r.e; |
| 1105 |
filldraw stroke z1l.e..z2l.e; |
| 1106 |
penlabels(2r,2l); |
| 1107 |
endchar; |
| 1108 |
|
| 1109 |
beginchar(double_arrow_down, |
| 1110 |
9u#+2appr#,asc_height#,asc_depth#); |
| 1111 |
"Down double arrow"; |
| 1112 |
pickup tiny.nib; |
| 1113 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1114 |
-d-o),down); |
| 1115 |
pos2r(rth,180); pos2l(rth,180); |
| 1116 |
top y2r=top y2l=h; x2r=x1r; x2l=x1l; |
| 1117 |
filldraw stroke z1r.e..z2r.e; |
| 1118 |
filldraw stroke z1l.e..z2l.e; |
| 1119 |
penlabels(2r,2l); |
| 1120 |
endchar; |
| 1121 |
|
| 1122 |
beginchar(double_arrow_up_down, |
| 1123 |
9u#+2appr#,body_height#,paren_depth#); |
| 1124 |
"Up-down double arrow"; |
| 1125 |
pickup tiny.nib; |
| 1126 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1127 |
h+o),up); |
| 1128 |
double_arrow_head2((hround 0.5(w-rth)+0.5rth, |
| 1129 |
-d-o),down); |
| 1130 |
filldraw z1r.r--z1r.l--z2l.r--z2l.l--cycle; |
| 1131 |
filldraw z1l.r--z1l.l--z2r.r--z2r.l--cycle; |
| 1132 |
endchar; |
| 1133 |
|
| 1134 |
beginchar(Relbar_char,12u#+2appr#,v_center(2spread1#+rth#)); |
| 1135 |
"Double relation bar char"; |
| 1136 |
pickup tiny.nib; |
| 1137 |
pos1(rth,90); pos2(rth,90); pos3(rth,90); pos4(rth,90); |
| 1138 |
lft x1=lft x3=appr; rt x2=rt x4=w-appr; |
| 1139 |
y1=y2; y3=y4; y1-y3=spread1; .5[y1,y3]=math_axis; |
| 1140 |
filldraw stroke z1e..z2e; % upper bar |
| 1141 |
filldraw stroke z3e..z4e; % lower bar |
| 1142 |
penlabels(1,2,3,4); |
| 1143 |
endchar; |
| 1144 |
|
| 1145 |
beginchar(Maps_to_char,0,v_center(2spread1#+rth#)); |
| 1146 |
"Double maps to char"; |
| 1147 |
pickup tiny.nib; |
| 1148 |
pos1(rth,0); pos2(rth,0); pos3(rth,90); pos4(rth,90); |
| 1149 |
pos5(rth,90); pos6(rth,90); |
| 1150 |
lft x1l=lft x2l=appr; x3=x5r=x1r; x4=x6=x3+ceiling 0.5u; |
| 1151 |
y3=y4=math_axis+0.5spread1; y5=y6=math_axis-0.5spread1; |
| 1152 |
0.5[y1,y2]=math_axis; |
| 1153 |
top y1-bot y2=arrow_width % 2vround 0.60arrow_width |
| 1154 |
+spread1; |
| 1155 |
filldraw stroke z1e..z2e; filldraw stroke z3e..z4e; |
| 1156 |
filldraw stroke z5e..z6e; penlabels(1,2,3,4,5,6); |
| 1157 |
endchar; |
| 1158 |
|
| 1159 |
beginchar(Maps_from_char,0,v_center(2spread1#+rth#)); |
| 1160 |
"Double maps from char"; |
| 1161 |
pickup tiny.nib; |
| 1162 |
pos1(rth,0); pos2(rth,0); pos3(rth,-90); pos4(rth,-90); |
| 1163 |
pos5(rth,-90); pos6(rth,-90); |
| 1164 |
rt x1r=rt x2r=-appr; x3=x5r=x1l; x4=x6=x3-ceiling 0.5u; |
| 1165 |
y3=y4=math_axis+0.5spread1; y5=y6=math_axis-0.5spread1; |
| 1166 |
0.5[y1,y2]=math_axis; |
| 1167 |
top y1-bot y2=arrow_width % 2vround 0.60arrow_width |
| 1168 |
+spread1; |
| 1169 |
filldraw stroke z1e..z2e; filldraw stroke z3e..z4e; |
| 1170 |
filldraw stroke z5e..z6e; penlabels(1,2,3,4,5,6); |
| 1171 |
endchar; |
| 1172 |
|
| 1173 |
% EXTENSIBLE ARROWS (revoir les parametres) |
| 1174 |
|
| 1175 |
use_rule1; |
| 1176 |
|
| 1177 |
arrow_width := 2ceiling 0.70spread1+rth; |
| 1178 |
arrow_height# := 4u#; |
| 1179 |
arrow_height := round 4u; |
| 1180 |
arrow_breadth := rth; |
| 1181 |
arrow_stress := 0.65; |
| 1182 |
arrow_tense1 := 0.75; |
| 1183 |
arrow_tense2 := 0.875; |
| 1184 |
|
| 1185 |
beginchar(arrow_top,10u#+2appr#,0,dh#); |
| 1186 |
pickup tiny.nib; |
| 1187 |
a:=hround rth1+0.2dw; save rth; rth:=a; |
| 1188 |
lft x2l=hround 0.5(w-rth); |
| 1189 |
y2=-d-eps; pos2(rth,0); top y3=h; x3=x2; |
| 1190 |
arrow_head1(z2..z3,both); |
| 1191 |
filldraw stroke z1e--z2e; penlabels(1,2); |
| 1192 |
endchar; |
| 1193 |
|
| 1194 |
beginchar(arrow_bot,10u#+2appr#,0,dh#); |
| 1195 |
pickup tiny.nib; |
| 1196 |
a:=hround rth1+0.2dw; save rth; rth:=a; |
| 1197 |
lft x2r=hround 0.5(w-rth); |
| 1198 |
y2=h+eps; pos2(rth,180); bot y3=-d; x3=x2; |
| 1199 |
arrow_head1(z2..z3,both); |
| 1200 |
filldraw stroke z1e--z2e; penlabels(1,2); |
| 1201 |
endchar; |
| 1202 |
|
| 1203 |
beginchar(arrow_mod,10u#+2appr#,0,dh#); |
| 1204 |
pickup tiny.nib; |
| 1205 |
a:=hround rth1+0.2dw; save rth; rth:=a; |
| 1206 |
lft x1l=lft x2l=hround 0.5(w-rth); |
| 1207 |
y1=h+eps; y2=-d-eps; pos1(rth,0); pos2(rth,0); |
| 1208 |
filldraw stroke z1e--z2e; penlabels(1,2); |
| 1209 |
endchar; |
| 1210 |
|
| 1211 |
% for horizontal arrows... |
| 1212 |
|
| 1213 |
double_arrow_width := 2ceiling 0.70spread1+spread1+rth; |
| 1214 |
double_arrow_height := round 6.5u; |
| 1215 |
double_arrow_tense := 0.65; |
| 1216 |
double_arrow_flatness:= 0.25; |
| 1217 |
|
| 1218 |
beginchar(double_arrow_top, |
| 1219 |
12u#+2appr#,0,dh#); |
| 1220 |
"double arrow top"; |
| 1221 |
pickup tiny.nib; |
| 1222 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1223 |
h+o),up); |
| 1224 |
pos2r(rth,0); pos2l(rth,0); |
| 1225 |
y2r=y2l=-d-1-eps; x2r=x1r; x2l=x1l; |
| 1226 |
filldraw stroke z1r.e..z2r.e; |
| 1227 |
filldraw stroke z1l.e..z2l.e; |
| 1228 |
penlabels(2r,2l); |
| 1229 |
endchar; |
| 1230 |
|
| 1231 |
beginchar(double_arrow_bot, |
| 1232 |
12u#+2appr#,0,dh#); |
| 1233 |
"double arrow bot"; |
| 1234 |
pickup tiny.nib; |
| 1235 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1236 |
-d-o),down); |
| 1237 |
pos2r(rth,180); pos2l(rth,180); |
| 1238 |
y2r=y2l=h+1+eps; x2r=x1r; x2l=x1l; |
| 1239 |
filldraw stroke z1r.e..z2r.e; |
| 1240 |
filldraw stroke z1l.e..z2l.e; |
| 1241 |
penlabels(2r,2l); |
| 1242 |
endchar; |
| 1243 |
|
| 1244 |
beginchar(double_arrow_mod, |
| 1245 |
12u#+2appr#,0,dh#); |
| 1246 |
"double arrow extension's module"; |
| 1247 |
pickup tiny.nib; |
| 1248 |
x3-x1=x4-x2=spread1; |
| 1249 |
0.5[x1,x3]=0.5[x2,x4]=hround 0.5(w-rth)+0.5rth; |
| 1250 |
pos1(rth,0); pos2(rth,0); pos3(rth,0); pos4(rth,0); |
| 1251 |
y1=y3=h+1+eps; y2=y4=-d-1-eps; |
| 1252 |
filldraw stroke z1e..z2e; |
| 1253 |
filldraw stroke z3e..z4e; |
| 1254 |
penlabels(1,2,3,4); |
| 1255 |
endchar; |
| 1256 |
|
| 1257 |
endinput; |
| 1258 |
|
| 1259 |
beginchar(arrow_up_not, |
| 1260 |
7u#+2appr#,asc_height#,asc_depth#); |
| 1261 |
"Negated upward arrow"; |
| 1262 |
pickup tiny.nib; |
| 1263 |
arrow_head1(straight_path(up,0),both);% corrected 2002/07/29 |
| 1264 |
bot y2=-d; x2=x1; pos2(rth,0); |
| 1265 |
filldraw stroke z1e..z2e; |
| 1266 |
% |
| 1267 |
x3r=x3l=x1c.l; x4r=x4l=x1c.r; 0.5[y3l,y4r]=0.5[-d,h]; |
| 1268 |
y1c.r-y4r=vround 1/3(y1c.r-0.5[-d,h]); |
| 1269 |
a:=rth-tiny; b:=abs(z4r-z3l); |
| 1270 |
y3r-y3l=y4r-y4l=a/(((x4r-x3l)/b)*((b+-+a)/b)+((y4r-y3l)/b)*(a/b)); |
| 1271 |
filldraw stroke z3e..z4e; |
| 1272 |
penlabels(1,2,3,4); |
| 1273 |
endchar; |
| 1274 |
|
| 1275 |
beginchar(arrow_down_not, |
| 1276 |
7u#+2appr#,asc_height#,asc_depth#); |
| 1277 |
"Negated downward arrow"; |
| 1278 |
pickup tiny.nib; |
| 1279 |
arrow_head1(straight_path(down,o),both);% corrected 2002/07/29 |
| 1280 |
top y2=h; x2=x1; pos2(rth,180); |
| 1281 |
filldraw stroke z1e..z2e; |
| 1282 |
% |
| 1283 |
x3r=x3l=x1c.r; x4r=x4l=x1c.l; 0.5[y3l,y4r]=0.5[-d,h]; |
| 1284 |
y3l-y1c.r=vround 1/3(0.5[-d,h]-y1c.r); |
| 1285 |
a:=rth-tiny; b:=abs(z4r-z3l); |
| 1286 |
y3r-y3l=y4r-y4l=a/(((x4r-x3l)/b)*((b+-+a)/b)+((y4r-y3l)/b)*(a/b)); |
| 1287 |
filldraw stroke z3e..z4e; |
| 1288 |
penlabels(1,2,3,4); |
| 1289 |
endchar; |
| 1290 |
|
| 1291 |
beginchar(arrow_up_down_not, |
| 1292 |
7u#+2appr#,asc_height#,asc_depth#); |
| 1293 |
"Negated Upward-Downward arrow"; |
| 1294 |
pickup tiny.nib; |
| 1295 |
arrow_head1(straight_path(up,o),both);% corrected 2002/07/29 |
| 1296 |
arrow_head2(straight_path(down,o),both);% corrected 2002/07/29 |
| 1297 |
filldraw z1l--z2r--z2l--z1r--cycle;; |
| 1298 |
% |
| 1299 |
x3r=x3l=x1c.l; x4r=x4l=x1c.r; 0.5[y3l,y4r]=0.5[-d,h]; |
| 1300 |
y1c.r-y4r=vround 1/3(y1c.r-0.5[-d,h]); |
| 1301 |
a:=rth-tiny; b:=abs(z4r-z3l); |
| 1302 |
y3r-y3l=y4r-y4l=a/(((x4r-x3l)/b)*((b+-+a)/b)+((y4r-y3l)/b)*(a/b)); |
| 1303 |
filldraw stroke z3e..z4e; |
| 1304 |
penlabels(1,2,3,4); |
| 1305 |
endchar; |
| 1306 |
|
| 1307 |
beginchar(double_arrow_up_not, |
| 1308 |
9u#+2appr#,asc_height#,asc_depth#); |
| 1309 |
"Negated Up double arrow"; |
| 1310 |
pickup tiny.nib; |
| 1311 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1312 |
h+o),up); |
| 1313 |
pos2r(rth,0); pos2l(rth,0); |
| 1314 |
bot y2r=bot y2l=-d; x2r=x1r; x2l=x1l; |
| 1315 |
filldraw stroke z1r.e..z2r.e; |
| 1316 |
filldraw stroke z1l.e..z2l.e; |
| 1317 |
penlabels(2r,2l); |
| 1318 |
% |
| 1319 |
rt x4r=rt x4l=x1a.l; x3l=x3r=2x1-x4r; |
| 1320 |
0.5[y3l,y4r]=0.5[-d,h]; |
| 1321 |
y1a.l-top y4r=vround 1/5(y1a.l-0.5[-d,h]); |
| 1322 |
a:=rth-tiny; b:=abs(z4r-z3l); |
| 1323 |
y3r-y3l=y4r-y4l=a/(((x4r-x3l)/b)*((b+-+a)/b)+((y4r-y3l)/b)*(a/b)); |
| 1324 |
filldraw stroke z3e..z4e; |
| 1325 |
penlabels(3,4); |
| 1326 |
endchar; |
| 1327 |
|
| 1328 |
beginchar(double_arrow_down_not, |
| 1329 |
9u#+2appr#,asc_height#,asc_depth#); |
| 1330 |
"Negated down double arrow"; |
| 1331 |
pickup tiny.nib; |
| 1332 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1333 |
-d-o),down); |
| 1334 |
pos2r(rth,180); pos2l(rth,180); |
| 1335 |
top y2r=top y2l=h; x2r=x1r; x2l=x1l; |
| 1336 |
filldraw stroke z1r.e..z2r.e; |
| 1337 |
filldraw stroke z1l.e..z2l.e; |
| 1338 |
penlabels(2r,2l); |
| 1339 |
% |
| 1340 |
lft x3r=lft x3l=x1a.l; x4l=x4r=2x1-x3r; |
| 1341 |
0.5[y3l,y4r]=0.5[-d,h]; |
| 1342 |
bot y3l-y1a.l=vround 1/5(0.5[-d,h]-y1a.l); |
| 1343 |
a:=rth-tiny; b:=abs(z4r-z3l); |
| 1344 |
y3r-y3l=y4r-y4l=a/(((x4r-x3l)/b)*((b+-+a)/b)+((y4r-y3l)/b)*(a/b)); |
| 1345 |
filldraw stroke z3e..z4e; |
| 1346 |
penlabels(3,4); |
| 1347 |
endchar; |
| 1348 |
|
| 1349 |
beginchar(double_arrow_up_down_not, |
| 1350 |
9u#+2appr#,body_height#,paren_depth#); |
| 1351 |
"Negated up-down double arrow"; |
| 1352 |
pickup tiny.nib; |
| 1353 |
double_arrow_head1((hround 0.5(w-rth)+0.5rth, |
| 1354 |
h+o),up); |
| 1355 |
double_arrow_head2((hround 0.5(w-rth)+0.5rth, |
| 1356 |
-d-o),down); |
| 1357 |
filldraw z1r.r--z1r.l--z2l.r--z2l.l--cycle; |
| 1358 |
filldraw z1l.r--z1l.l--z2r.r--z2r.l--cycle; |
| 1359 |
% |
| 1360 |
rt x4r=rt x4l=x1a.l; x3l=x3r=2x1-x4r; |
| 1361 |
0.5[y3l,y4r]=0.5[-d,h]; |
| 1362 |
y1a.l-top y4r=vround 1/5(y1a.l-0.5[-d,h]); |
| 1363 |
a:=rth-tiny; b:=abs(z4r-z3l); |
| 1364 |
y3r-y3l=y4r-y4l=a/(((x4r-x3l)/b)*((b+-+a)/b)+((y4r-y3l)/b)*(a/b)); |
| 1365 |
filldraw stroke z3e..z4e; |
| 1366 |
penlabels(3,4); |
| 1367 |
endchar; |