| 1 |
def laimoc_swab = |
| 2 |
penpos1.1(stem,0); penpos1.3(stem,0); |
| 3 |
penpos1.4(hair,90); penpos1.5(hair,-90); |
| 4 |
y1.1=y1.1'=foot; x1.1l=x1.2=0.413stem; |
| 5 |
x1.1'=x1.4=0; x1.3=x1.1; x1.5=x1.1r+0.761stem; |
| 6 |
y1.5l=cap_height+apex_o; |
| 7 |
z1.5l-z1.4r=whatever*dir17; |
| 8 |
y1.3=0.828cap_height; y1.2=0.273cap_height; |
| 9 |
filldraw z1.1'...z1.2---z1.3l... |
| 10 |
z1.4l & z1.4l--z1.4r--z1.5l--z1.5r |
| 11 |
& z1.5r{left}...z1.3r---z1.1r & |
| 12 |
z1.1r--z1.1' & cycle enddef; |
| 13 |
|
| 14 |
def podi_swab (expr theta) = |
| 15 |
penpos2.1(1.304stem,theta); |
| 16 |
penpos2.2(1.304stem,theta); |
| 17 |
z2.1l=(0,foot); |
| 18 |
z2.1l-z2.2l=whatever*dir151; |
| 19 |
y2.2l=-apex_o; penpos2.3(hair,theta-90); |
| 20 |
z2.3r=z2.2; |
| 21 |
z2.05=(2/3apex_o,2/3apex_o); |
| 22 |
penpos2.1'(1.304stem,theta); |
| 23 |
z2.1'=0.5[z2.1,z2.2]+z2.05; |
| 24 |
penstroke z2.2e..z2.1'e..z2.1e |
| 25 |
enddef; |
| 26 |
|
| 27 |
def long_s = numeric w',h',d'; |
| 28 |
w':=6.038u; h':=1.414x_height; |
| 29 |
d':=3.208u; |
| 30 |
penpos1.1(2/3hair,0); |
| 31 |
z1.1=(0.313w',-d'); |
| 32 |
penpos1.2(1.283stem,0); |
| 33 |
z1.2=(0.344w',0.589h'); |
| 34 |
penpos1.4(hair,90); |
| 35 |
z1.4l=(0,y1.2-1/3stem); |
| 36 |
z1.3=(z1.1l..{dir92.5}z1.2l) |
| 37 |
intersectionpoint |
| 38 |
((0,y1.4l)--(w',y1.4l)); |
| 39 |
z1.5=(0.35w',0.761h'); |
| 40 |
penpos1.6(0.957stem,-118); |
| 41 |
z1.6l=(0.669w',h'); |
| 42 |
penpos1.7(1.174stem,-125); |
| 43 |
z1.7l=(w',0.962h'); penpos1.8(hair,-35); |
| 44 |
z1.8r=z1.7l; z1.9-z1.8l=whatever*(z1.7l-z1.7r); |
| 45 |
x1.9=0.9w'; |
| 46 |
penpos1.11(2/3stem,-90); y1.11=y1.2; |
| 47 |
x1.11=0.763w'; |
| 48 |
penpos1.12(2/3stem,-90); z1.12=z1.2; |
| 49 |
filldraw z1.1r..z1.2r{dir87} & |
| 50 |
z1.2r{dir126}..z1.5{up}..z1.6r{right} |
| 51 |
..z1.7r{right}--z1.8r--z1.8l--z1.9 |
| 52 |
& z1.9{left}..z1.6l{left}.. |
| 53 |
z1.4r{dir218}--z1.4l{right}-- |
| 54 |
z1.3{dir272.5}..z1.1l--z1.1r & cycle; |
| 55 |
if isitf: filldraw z1.11r--z1.12r-- |
| 56 |
z1.12l--z1.5{down}...(x1.2r,y1.11l){right} |
| 57 |
---z1.11l--z1.11r & cycle; fi |
| 58 |
enddef; |
| 59 |
|
| 60 |
def dexi_podi_swab (expr yy) = |
| 61 |
penpos1.2(stem,0); |
| 62 |
z1.2r=(1.63stem,0.694x_height); |
| 63 |
penpos1.1(whatever,24); |
| 64 |
penpos1.3(whatever,43); |
| 65 |
x1.1l=x1.2l; z1.3l=z1.2l; |
| 66 |
x1.1r=x1.2r=x1.3r; y1.1l=yy; |
| 67 |
penpos1.4(1.348stem,43); |
| 68 |
x1.4l=0; y1.4r=x_height+apex_o; |
| 69 |
penstroke z1.1e---z1.3e... |
| 70 |
z1.4e{dir133} enddef; |
| 71 |
|
| 72 |
def aristero_podi_swab (expr xx) = |
| 73 |
w':=5.057u; penpos2.1(stem,0); |
| 74 |
z2.1l=(xx+1.261stem,0.694x_height); |
| 75 |
penpos2.2(whatever,34); |
| 76 |
z2.2l=(x2.1l,-apex_o); x2.2r=xx+w'; |
| 77 |
penpos2.3(hair,-90); z2.3r=z2.2r; |
| 78 |
z2.4=(x2.1r,0.378x_height); |
| 79 |
z2.6=(xx+0.545w',x_height+apex_o); |
| 80 |
penpos2.5(hair,-90); |
| 81 |
z2.5l-z2.6=whatever*dir-40; |
| 82 |
x2.5=xx+0.9w'; |
| 83 |
penpos2.7(hair,-90); |
| 84 |
z2.6-z2.7l=whatever*dir33; |
| 85 |
x2.7=xx; z2.8-z2.7r=whatever*(z2.6-z2.7l); |
| 86 |
z2.8=whatever[z2.6,z2.5r]; |
| 87 |
penpos2.9(1.217stem,33); |
| 88 |
z2.9r=z2.8; |
| 89 |
z2.9l-z2.11=whatever*(z2.6-z2.5l); |
| 90 |
x2.11=x2.1l; |
| 91 |
filldraw z2.7r--z2.9l--z2.11-- |
| 92 |
z2.2l--z2.3r--z2.3l{z2.2l-z2.2r}..{up} |
| 93 |
z2.4---z2.1r...z2.5r{right}-- |
| 94 |
z2.5l--z2.6--z2.7l--z2.7r & |
| 95 |
cycle enddef; |
| 96 |
|
| 97 |
def e_umlaut(suffix $) = |
| 98 |
penpos$.1(2u,45); z$.1=z$; |
| 99 |
pickup pensquare yscaled 0.5hair xscaled 0.3[hair,stem] rotated 30; |
| 100 |
z$.2=z$.1r; z$.3=z$.1l; rt x$.4=rt x$.2; top y$.4=y$; |
| 101 |
draw z$.3--z$.2..z$.3..z$.4; |
| 102 |
enddef; |
| 103 |
|