| 1 |
% Deutsche Normalschrift(DN) wedn |
| 2 |
% Parameter und Makrodefinitionen |
| 3 |
% 21.09.2011 |
| 4 |
% 11.10.2011: latin e eingebaut |
| 5 |
|
| 6 |
% Parameter |
| 7 |
% Einheit in Vielfachen von ht/12: |
| 8 |
U:=ht/12; % 2.5ut |
| 9 |
% kl. Abstand in der Groesse der Strichstaerke |
| 10 |
eta:=ht/30; % 1ut; |
| 11 |
% Steigung des Verbindungsstrichs |
| 12 |
m:=1.5; |
| 13 |
% Superellipse |
| 14 |
b:=ht/2; |
| 15 |
k:=1.425; |
| 16 |
a*k=b; |
| 17 |
sigma:=0.73345; |
| 18 |
|
| 19 |
% Delta, delta |
| 20 |
z1=(0,b); z2=(-a,0); |
| 21 |
z5=(-sigma*a,sigma*b); |
| 22 |
p := z1{left}..z5{z2-z1}..{down}z2; |
| 23 |
x0:=whatever;y0:=whatever; |
| 24 |
z0=(directionpoint(1,m) of (reverse (subpath (0,2) of p))); |
| 25 |
delta:=a+x0;Delta:=b-y0; |
| 26 |
|
| 27 |
% typische kleine Masse |
| 28 |
dd:=ht/12; % 2.5ut |
| 29 |
D:=ht/6; % 5ut |
| 30 |
s:=ht/4; % 7.5ut |
| 31 |
% Radius z.B. bei "a" |
| 32 |
rho:=ht/12; % 2.5ut |
| 33 |
rho':=5ut; % groesserer Radius am Wortende bei "a", etc |
| 34 |
% |
| 35 |
% Unterschleife, Hoehe dt=20ut (Beugshoehe), |
| 36 |
% Schnittpunkt bei (0,0) |
| 37 |
% Steigung m |
| 38 |
sb:=9ut; |
| 39 |
sbf:=0.35; % sb*sbf |
| 40 |
sbfh:=0.25; % dt*sbfh |
| 41 |
% lat. e, Steigung m'=3/4 |
| 42 |
m':=3/4; |
| 43 |
sb':=9ut; |
| 44 |
sbf':=sbf; |
| 45 |
sbfh':=0.35; |
| 46 |
% Oberschleife, Schnittpunkt bei (0,ht-Delta), |
| 47 |
% jedoch Bezugshoehe = dt = 20ut, |
| 48 |
% Steigung m |
| 49 |
sb'':=9ut; |
| 50 |
sbf'':=0.35; % sb''*sbf'' |
| 51 |
sbfh'':=0.25; % dt*sbfh'' |
| 52 |
% |
| 53 |
% Fahne am Wortende |
| 54 |
xend:=ht/3; |
| 55 |
yend:=ht/6; |
| 56 |
% Breite von "h" etc (breite=ht/kh) |
| 57 |
kh:=1.66; |
| 58 |
% Breite der Fahne bei r |
| 59 |
rfahne:=ht/2-dd/2; % 13.75ut |
| 60 |
% Einrollmass |
| 61 |
einroll:=ht/9; % 3.333ut |
| 62 |
% Breite der Fahne bei o, v, w |
| 63 |
ofahne:=ht/2+einroll; % 18.33ut |
| 64 |
% Breite der Fahne bei b |
| 65 |
bfahne:=ofahne; |
| 66 |
% Steigung der Fahne bei b, v, w |
| 67 |
mfahne:=2; |
| 68 |
% Breite von "s" |
| 69 |
sbreite:=ht/3; |
| 70 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 71 |
% Parameter fuer Grossbuchstaben: |
| 72 |
|
| 73 |
% Stamm |
| 74 |
% Steigung oben |
| 75 |
mS:=1; |
| 76 |
% Radius |
| 77 |
R:=ht/3; % 10ut |
| 78 |
% Abstand der Umlautstriche bei Grossbuchstaben: |
| 79 |
% (2mm Zeilenabstand bei 15mm-Lineatur) |
| 80 |
%dumlaut:=(2/15)*(Ht+dt)-s/2; % 5.58ut (der Wert ist aber zu klein!!!) |
| 81 |
dumlaut:=(2/15)*(Ht+dt)-dd; % deshalb gewaehlt. |
| 82 |
% Dach |
| 83 |
mDach:=0.25; |
| 84 |
% Oberschleifenbreite: |
| 85 |
Sb:=9*ht/12; % 22.5ut bei C, G |
| 86 |
SbL:=17.5ut;% L |
| 87 |
% Schleifenbreitenfaktor |
| 88 |
Sbf:=0.267; |
| 89 |
sporn:=5*ht/12; % 12.5ut |
| 90 |
spornL:=ht/2; % 15ut |
| 91 |
spornA:=2*ht/3; % 20ut |
| 92 |
spornM:=spornA; |
| 93 |
over:=ht/3; % 10ut |
| 94 |
Abreite:=2*ht/3; % 20ut |
| 95 |
Mbreite:=Abreite; |
| 96 |
% Superellipse: O, Q |
| 97 |
A:=7*ht/12; % 17.5ut |
| 98 |
B:=Ht/2; |
| 99 |
X:=ht/2; % X |
| 100 |
% H-Kurve: |
| 101 |
Hf:=0.18; |
| 102 |
Hfx:=0.35; |
| 103 |
Hbreite:=ht/2; % 15ut |
| 104 |
mt:=m; |
| 105 |
% Parameter fuer Ziffern: |
| 106 |
s':=Hz/8; % seitlicher Abstand |
| 107 |
w':=Wz-2s'; % effektive Breite der Ziffern |
| 108 |
r:=(w'-dd)/2; % Radius bei "2" |
| 109 |
% Zeichen: |
| 110 |
hmath:=ht/2; |
| 111 |
hdash:=ht/2; |
| 112 |
% Kerning: |
| 113 |
Bkern#:=-13.5ut#; |
| 114 |
Dkern#:=-12.5ut#; |
| 115 |
Fkern#:=-32.5ut#; |
| 116 |
Ikern#:=-17.5ut#; |
| 117 |
Nkern#:=-30ut#; |
| 118 |
Okern#:=-17.5ut#; |
| 119 |
Pkern#:=-30ut#; |
| 120 |
Skern#:=-17.5ut#; |
| 121 |
Tkern#:=-32.5ut#; |
| 122 |
Vkern#:=-20.1316ut#; |
| 123 |
skern#:=-10ut#; |
| 124 |
sskern#:=-10.5263ut#; |
| 125 |
|
| 126 |
%%%%%%%%%%%%%% Makros %%%%% |
| 127 |
% Nur fuer Wartungszwecke |
| 128 |
% Makro aktivieren, um die 'width' der Zeichen auszugeben |
| 129 |
def zeigen= |
| 130 |
% weite:=30*xpos/ht; |
| 131 |
% showvariable weite; |
| 132 |
enddef; |
| 133 |
|
| 134 |
% Fuer Kleinbuchstaben: |
| 135 |
def oval(expr sx)= |
| 136 |
draw (superellipse((a,0),(0,b),(-a,0),(0,-b),sigma)) shifted (sx+a-delta,b); |
| 137 |
xpos:=sx+2*a-delta; |
| 138 |
enddef; |
| 139 |
|
| 140 |
\def stock(expr sx)= |
| 141 |
if not wortende: |
| 142 |
draw ((0,rho){down}..(rho,0){right}..tension2.5 and 4..{1,m}(2*rho+(ht-Delta)/m,ht-Delta)) shifted (sx,0); |
| 143 |
xpos:=sx+2*rho+(ht-Delta)/m; |
| 144 |
else: |
| 145 |
% draw ((0,rho){down}..(rho,0){right}..{1,m}(3*rho,yend)) shifted (sx,0); |
| 146 |
% xpos:=sx+rho+xend; |
| 147 |
draw ((0,rho'){down}..{right}(rho',0)) shifted (sx,0); |
| 148 |
xpos:=sx+rho'; |
| 149 |
fi |
| 150 |
enddef; |
| 151 |
|
| 152 |
def oschl(expr sx)= |
| 153 |
draw ((0,ht-Delta){1,m}..tension1.5..(sb'',Ht-dt*sbfh''){up}..((1-sbf'')*sb'',Ht){left}..tension 1.5..{down}(0,ht-Delta)) shifted (sx,0); |
| 154 |
xpos:=sx; |
| 155 |
enddef; |
| 156 |
|
| 157 |
def uschl(expr sx)= |
| 158 |
draw ((0,0){down}..tension 1.5..(-(1-sbf)*sb,-dt){left}..(-sb,-dt*(1-sbfh)){up}..tension1.5..{1,m}(0,0)) shifted (sx,0); |
| 159 |
xpos:=sx; |
| 160 |
enddef; |
| 161 |
|
| 162 |
def latin_eg (expr sx) = |
| 163 |
draw ((0,0)--(15ut/m',15ut){1,m'}..(27.5ut,ht-5ut){up}..(22.5ut,ht){left}..(12.5ut,ht/2){down}..{right}(22.5ut,0)) shifted (sx,0); |
| 164 |
xpos:=sx+22.5ut; |
| 165 |
enddef; |
| 166 |
|
| 167 |
def uschl_e (expr sx) = |
| 168 |
draw ((0,0){down}..tension 1.5..(-(1-sbf')*sb',-dt){left}..(-sb',-dt*(1-sbfh')){up}..tension1.5..{1,m'}(0,0)) shifted (sx,0); |
| 169 |
xpos:=sx; |
| 170 |
enddef; |
| 171 |
|
| 172 |
def stamm(expr ha, hb, sx)= |
| 173 |
draw ((0,ha)--(0,hb)) shifted (sx,0); |
| 174 |
enddef; |
| 175 |
|
| 176 |
def strich (expr sx)= |
| 177 |
if not wortende: |
| 178 |
draw ((0,0)--((ht-Delta)/m,ht-Delta)) shifted (sx,0); |
| 179 |
xpos:=sx+(ht-Delta)/m; |
| 180 |
else: |
| 181 |
% draw ((0,0)--(yend/m,yend)) shifted (sx,0); |
| 182 |
% xpos:=sx+yend/m; |
| 183 |
xpos:=sx; |
| 184 |
fi |
| 185 |
enddef; |
| 186 |
|
| 187 |
def kurzstrich(expr sx)= |
| 188 |
draw ((0,ht-Delta)--(Delta/m,ht)) shifted (sx,0); |
| 189 |
xpos:=sx+Delta/m; |
| 190 |
enddef; |
| 191 |
|
| 192 |
def ipunkt (expr sx)= |
| 193 |
draw ((0,s/2)--(0,-s/2)) shifted (sx,ht+dt/2); |
| 194 |
xpos:=sx; |
| 195 |
enddef; |
| 196 |
|
| 197 |
def schweif (expr hl, hr, bt, phil, phir, tens, sx) = |
| 198 |
p := (0,hl){dir phil}..tension tens..{dir phir}(bt,hr); |
| 199 |
draw p shifted (sx,0); |
| 200 |
if ((bt>0) and (phil<angle(1,mt)) and (angle(1,mt)<phir)) or ((bt<0) and (phir<angle(-1,-mt)) and (angle(-1,-mt)<phil)): |
| 201 |
x0:=whatever; y0:=whatever; |
| 202 |
z0=(directionpoint (1,mt) of if bt>0:(subpath (0,1) of p)else: reverse(subpath (0,1) of p)fi ) shifted (sx,0); |
| 203 |
fi |
| 204 |
xpos:=sx+bt; |
| 205 |
enddef; |
| 206 |
|
| 207 |
def fahne (expr hl, hr, bt, phil, phir, tens, sx) = |
| 208 |
if not wortende: |
| 209 |
schweif(hl, hr, bt, phil, phir, tens, sx); |
| 210 |
else: |
| 211 |
% if phil=0: |
| 212 |
% draw ((0,hl){dir phil}..(xend,hl+yend)) shifted (sx,0); |
| 213 |
% elseif phil=angle(1,m): |
| 214 |
% draw ((0,hl)--(xend,hl+m*xend)) shifted (sx,0); |
| 215 |
% elseif phil<0: |
| 216 |
% draw ((0,hl){dir phil}..{1,2}(xend,hl)) shifted (sx,0); |
| 217 |
% else: |
| 218 |
% draw ((0,hl){dir phil}..(xend,hl+xend*ypart(dir phil)/xpart(dir phil)+yend)) shifted (sx,0); |
| 219 |
% fi |
| 220 |
% xpos:=sx+xend; |
| 221 |
xpos:=sx; |
| 222 |
fi |
| 223 |
enddef; |
| 224 |
|
| 225 |
% Aufstrichlang bei b, f, h, k, l, s am Wortanfang |
| 226 |
% wird spaeter oct"030" |
| 227 |
def aufstrich_lang(expr sx)= |
| 228 |
draw ((0,ht/3)--((2*ht/3-Delta)/m,ht-Delta)) shifted (sx,0); |
| 229 |
xpos:=sx+(2*ht/3-Delta)/m; |
| 230 |
enddef; |
| 231 |
|
| 232 |
% Aufstrich kurz bei i, j, p, u am Wortanfang |
| 233 |
% wird spaeter oct"010" ??????? |
| 234 |
def aufstrich_kurz(expr sx)= |
| 235 |
draw ((0,2*ht/3)--((ht/3-Delta)/m,ht-Delta)) shifted (sx,0); |
| 236 |
xpos:=sx+(ht/3-Delta)/m; |
| 237 |
enddef; |
| 238 |
|
| 239 |
|
| 240 |
def spitz(expr sx)= |
| 241 |
% draw ((0,ht-Delta){1,m}..{up}(2*eta,ht)) shifted (sx,0); |
| 242 |
% xpos:=sx+2*eta; |
| 243 |
xpos:=sx; |
| 244 |
enddef; |
| 245 |
|
| 246 |
def bogen(expr hl,hm,hr,bt,fx,phil,phir,tensl,tensr,sx)= |
| 247 |
p:=((0,hl){dir phil}..tension tensl..(bt*fx,hm){bt,0}..tension tensr..{dir phir}(bt,hr)); |
| 248 |
draw p shifted (sx,0); |
| 249 |
if (hl>hm) and (hr>hm): |
| 250 |
x0:=whatever; y0:=whatever; |
| 251 |
z0=(directionpoint (1,mt) of if bt>0:(subpath (1,2) of p)else: reverse(subpath (0,1) of p)fi) shifted (sx,0); |
| 252 |
fi |
| 253 |
xpos:=sx+bt; |
| 254 |
enddef; |
| 255 |
|
| 256 |
def fuss(expr sx)= |
| 257 |
draw ((0,2*rho)..{right}(2*rho,0)) shifted (sx,0); |
| 258 |
xpos:=sx+2*rho; |
| 259 |
enddef; |
| 260 |
|
| 261 |
def quer(expr ha, sx)= |
| 262 |
draw ((-ht/4,0)--(ht/4,0)) shifted (sx,ha); |
| 263 |
enddef; |
| 264 |
|
| 265 |
def gerade (expr ha, hb, bt, sx)= |
| 266 |
draw ((0,ha)--(bt,hb)) shifted (sx,0); |
| 267 |
xpos:=sx+bt; |
| 268 |
enddef; |
| 269 |
|
| 270 |
def c_form (expr sx)= |
| 271 |
x1:=whatever;y1:=whatever; |
| 272 |
x2:=whatever;y2:=whatever; |
| 273 |
x3:=whatever;y3:=whatever; |
| 274 |
x4:=whatever;y4:=whatever; |
| 275 |
x5:=whatever;y5:=whatever; |
| 276 |
x6:=whatever;y6:=whatever; |
| 277 |
x7:=whatever;y7:=whatever; |
| 278 |
x8:=whatever;y8:=whatever; |
| 279 |
z1=(0,b); z2=(-a,0); z3=(0,-b); z4=(a,0); |
| 280 |
z5=(-sigma*a,sigma*b); |
| 281 |
z6=(-sigma*a,-sigma*b); |
| 282 |
z7=(sigma*a,-sigma*b); |
| 283 |
z8=(sigma*a,sigma*b); |
| 284 |
draw (z8{z1-z4}..z1{left}..z5{z2-z1}..z2{down}..z6{z3-z2}.. |
| 285 |
% {right}z3..{1,m}z7) shifted (sx+a-delta,b); |
| 286 |
% x0:=whatever;y0:=whatever; |
| 287 |
% z0=z7 shifted (sx+a-delta,b); |
| 288 |
% xpos:=sx+(1+sigma)*a-delta; |
| 289 |
{right}z3) shifted (sx+a-delta,b); |
| 290 |
xpos:=sx+a-delta; |
| 291 |
enddef; |
| 292 |
|
| 293 |
def c_reflected(expr sx)= |
| 294 |
x1:=whatever;y1:=whatever; |
| 295 |
x2:=whatever;y2:=whatever; |
| 296 |
x3:=whatever;y3:=whatever; |
| 297 |
x4:=whatever;y4:=whatever; |
| 298 |
x5:=whatever;y5:=whatever; |
| 299 |
x6:=whatever;y6:=whatever; |
| 300 |
x7:=whatever;y7:=whatever; |
| 301 |
x8:=whatever;y8:=whatever; |
| 302 |
z1=(0,b); z2=(-a,0); z3=(0,-b); z4=(a,0); |
| 303 |
z5=(-sigma*a,sigma*b); |
| 304 |
z6=(-sigma*a,-sigma*b); |
| 305 |
z7=(sigma*a,-sigma*b); |
| 306 |
z8=(sigma*a,sigma*b); |
| 307 |
draw ((z8{z1-z4}..z1{left}..z5{z2-z1}..z2{down}..z6{z3-z2}.. |
| 308 |
{right}z3..{1,m}(x7,-b+Delta)) rotated 180) shifted (sx+a-delta,b); |
| 309 |
xpos:=sx+2*a; |
| 310 |
enddef; |
| 311 |
|
| 312 |
def tangente (expr ddx)= |
| 313 |
if not wortende: |
| 314 |
draw ((x0,y0){1,mt}..{1,m}(x0+ddx+(ht-Delta-y0)/m,ht-Delta)); |
| 315 |
mt:=m; |
| 316 |
xpos:=x0+ddx+(ht-Delta-y0)/m; |
| 317 |
fi |
| 318 |
enddef; |
| 319 |
|
| 320 |
def spazierstock (expr sx)= |
| 321 |
draw ((0,ht-Delta){1,m}..(Delta+rho,ht){right}..{down}(Delta+2*rho,ht-rho)) shifted (sx,0); |
| 322 |
xpos:=sx+Delta+2*rho; |
| 323 |
enddef; |
| 324 |
|
| 325 |
def s_form(expr sx)= |
| 326 |
p:= (0,ht){down}..(sbreite,sbreite){down}..(0,0){left}..(-sbreite,ht/6); |
| 327 |
draw p shifted (sx,0); |
| 328 |
x0:=whatever;y0:=whatever; |
| 329 |
z0=(directionpoint(1,mt) of (reverse (subpath (1,2) of p))) shifted (sx,0); |
| 330 |
xpos:=sx+sbreite; |
| 331 |
enddef; |
| 332 |
|
| 333 |
def schwalbe= |
| 334 |
p:=(0,0){1,1}..(ht-2*Delta,0){right}..{1,m}(ht,Delta); |
| 335 |
enddef; |
| 336 |
|
| 337 |
def z_form(expr sx)= |
| 338 |
schwalbe; |
| 339 |
q :=(p rotated 180) shifted (ht,ht); |
| 340 |
%draw p shifted (sx,0); |
| 341 |
draw ((0,0){1,1}..{right}(ht-2*Delta,0)) shifted (sx,0); |
| 342 |
draw q shifted (sx,0); |
| 343 |
gerade(0,ht,ht,sx); |
| 344 |
%x0:=whatever; y0:=whatever; |
| 345 |
%z0=(xpos,Delta); |
| 346 |
xpos:=sx+ht-2*Delta; |
| 347 |
enddef; |
| 348 |
|
| 349 |
def ss_form (expr sx)= |
| 350 |
draw ((0,ht){up}..(0.6*ht/kh,Ht){right}..(ht/kh,ht+0.6*dt){down}..{left}(ht/6,ht)) shifted (sx,0); |
| 351 |
p:=(ht/6,ht)--(ht/6+ht/12,ht){right}..(2*a,0.5*ht){down}..(a,0){left}..(ht/6,ht/12); |
| 352 |
draw p shifted (sx,0); |
| 353 |
x0:=whatever;y0:=whatever; |
| 354 |
z0=(directionpoint (-1,-mt) of (subpath (2,3) of p)) shifted (sx,0); |
| 355 |
xpos:=sx+2*a; |
| 356 |
enddef; |
| 357 |
|
| 358 |
def ss_ansatz(expr sx)= |
| 359 |
draw ((0,ht-Delta){1,m}..(Delta,ht){right}..{down}(Delta+rho,ht-rho)) shifted (sx,0); |
| 360 |
xpos:=sx+Delta+rho; |
| 361 |
enddef; |
| 362 |
|
| 363 |
def a_char= |
| 364 |
oval(xpos); |
| 365 |
if not wortende: |
| 366 |
stamm(ht,rho,xpos); |
| 367 |
else: |
| 368 |
stamm(ht,rho',xpos); |
| 369 |
fi |
| 370 |
stock(xpos); |
| 371 |
enddef; |
| 372 |
|
| 373 |
def o_char= |
| 374 |
oval(xpos); |
| 375 |
gerade((1+sigma)*b,ht,-(ht-(1+sigma)*b)/k,xpos-(1-sigma)*a); |
| 376 |
fahne(ht,ht-Delta,ofahne,angle(1,-k),angle(1,m),1,xpos); |
| 377 |
enddef; |
| 378 |
|
| 379 |
def u_char= |
| 380 |
spitz(xpos); |
| 381 |
stamm(ht,ht/3,xpos); |
| 382 |
bogen(ht/3,0,ht/2,ht/kh,0.4,-90,90,1,1,xpos); |
| 383 |
if not wortende: |
| 384 |
stamm(ht,rho,xpos); |
| 385 |
else: |
| 386 |
stamm(ht,rho',xpos); |
| 387 |
fi |
| 388 |
stock(xpos); |
| 389 |
enddef; |
| 390 |
|
| 391 |
def umlaut(expr dx,sx)= |
| 392 |
draw ((0,s/2)--(0,-s/2)) shifted (sx+dx,ht+dt/2); |
| 393 |
draw ((ht/6,s/2)--(ht/6,-s/2)) shifted (sx+dx,ht+dt/2); |
| 394 |
xpos:=sx; |
| 395 |
enddef; |
| 396 |
|
| 397 |
% Koepfchen_e |
| 398 |
def e_form(expr sx)= |
| 399 |
x1:=whatever;y1:=whatever; |
| 400 |
x2:=whatever;y2:=whatever; |
| 401 |
x3:=whatever;y3:=whatever; |
| 402 |
x4:=whatever;y4:=whatever; |
| 403 |
x5:=whatever;y5:=whatever; |
| 404 |
x6:=whatever;y6:=whatever; |
| 405 |
x7:=whatever;y7:=whatever; |
| 406 |
x8:=whatever;y8:=whatever; |
| 407 |
z1=(0,b); z2=(-a,0); z3=(0,-b); z4=(a,0); |
| 408 |
z5=(-sigma*a,sigma*b); |
| 409 |
z6=(-sigma*a,-sigma*b); |
| 410 |
z7=(sigma*a,-sigma*b); |
| 411 |
z8=(sigma*a,sigma*b); |
| 412 |
draw (z1{left}..z5{z2-z1}..z2{down}..z6{z3-z2}.. |
| 413 |
{right}z3..{1,m}z7) shifted (sx+a-delta,b); |
| 414 |
x0:=whatever;y0:=whatever; |
| 415 |
z0=z7 shifted (sx+a-delta,b); |
| 416 |
draw (z1{right}..(x1+0.2*ht,y1-ht/4){down}..tension1.2 |
| 417 |
..(x1-ht/10,y1-0.6*ht){left}..{z1-z2}z5) |
| 418 |
shifted (sx+a-delta,b); |
| 419 |
xpos:=sx+(1+sigma)*a-delta; |
| 420 |
enddef; |
| 421 |
|
| 422 |
def k_form(expr sx)= |
| 423 |
draw ((0,ht/3){up}..(1.5*a,ht){right}..(2*a,0.8*ht){down}..tension1.2..{left}(ht/6,0.45*ht)) shifted (sx,0); |
| 424 |
draw ((ht/6,0.45*ht){right}..tension1.2..{right}(2*a,0)) shifted (sx,0); |
| 425 |
xpos:=sx+2*a; |
| 426 |
enddef; |
| 427 |
|
| 428 |
% lat. e, Normalform |
| 429 |
def latin_e (expr sx)= |
| 430 |
draw ((0,0){right}..(27.5ut,22.5ut){up}..(22.5ut,ht){left}..(12.5ut,ht/2){down}..{right}(25ut,0)) shifted (sx,0); |
| 431 |
xpos:=sx+25ut; |
| 432 |
enddef; |
| 433 |
|
| 434 |
% lat. e, nach A und f |
| 435 |
def latin_eA (expr sx)= |
| 436 |
draw ((0,7.5ut){right}..(27.5ut,22.5ut){up}..(22.5ut,ht){left}..(12.5ut,ht/2){down}..{right}(25ut,0)) shifted (sx,0); |
| 437 |
xpos:=sx+25ut; |
| 438 |
enddef; |
| 439 |
|
| 440 |
|
| 441 |
% lat. e nach b, o, v, w |
| 442 |
def latin_eb (expr sx)= |
| 443 |
draw ((0,ht){1,-mfahne}..(20ut,ht/2){right}..(27.5ut,ht-5ut){up}..(22.5ut,ht){left}..(12.5ut,ht/2){down}..{right}(22.5ut,0)) shifted (sx,0); |
| 444 |
xpos:=sx+22.5ut; |
| 445 |
enddef; |
| 446 |
|
| 447 |
% lat. e nach r |
| 448 |
def latin_er (expr sx)= |
| 449 |
draw ((0,ht){down}..(17.5ut,ht/2){right}..(25ut,ht-5ut){up}..(20ut,ht){left}..(10ut,ht/2){down}..{right}(20ut,0)) shifted (sx,0); |
| 450 |
xpos:=sx+20ut; |
| 451 |
enddef; |
| 452 |
|
| 453 |
% lat. e nach s und 'scharfem s' |
| 454 |
def latin_es= |
| 455 |
draw ((xtmp,ytmp)--(xtmp+(10ut-ytmp)/mt,10ut){1,mt}..(xtmp+15ut+(10ut-ytmp)/mt,ht-5ut){up}..(xtmp+10ut+(10ut-ytmp)/mt,ht){left}..(xtmp+(10ut-ytmp)/mt,ht/2){down}..{right}(xtmp+(10ut-ytmp)/mt+10ut,0)); |
| 456 |
xpos:=xtmp+(10ut-ytmp)/mt+10ut; |
| 457 |
mt:=m; |
| 458 |
enddef; |
| 459 |
|
| 460 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 461 |
% Makros fuer Grossbuchstaben |
| 462 |
def Umlaut (expr dx,sx)= |
| 463 |
draw ((0,s/2)--(0,-s/2)) shifted (sx+dx,Ht+dumlaut); |
| 464 |
draw ((ht/6,s/2)--(ht/6,-s/2)) shifted (sx+dx,Ht+dumlaut); |
| 465 |
xpos:=sx; |
| 466 |
enddef; |
| 467 |
|
| 468 |
def Stamm (expr sx)= |
| 469 |
p:=((0,dd)..(s,0){right}..{up}(s+R,ht/2)-- |
| 470 |
(s+R,Ht-dd-R){up}..{1,mS}(s+R+dd,Ht-dd)); |
| 471 |
draw p shifted (sx,0); |
| 472 |
x0:=whatever; y0:=whatever; |
| 473 |
z0=(directionpoint (1,mt) of (subpath (1,2) of p)) shifted (sx,0); |
| 474 |
xpos:=sx+s+R; |
| 475 |
enddef; |
| 476 |
|
| 477 |
def Dach (expr sx)= |
| 478 |
draw((dd,ht)..(0,ht+D){up}..(ht/2,Ht){right}..{1,mDach}(4*ht/3,Ht)) |
| 479 |
shifted (sx,0); |
| 480 |
xpos:=sx; |
| 481 |
enddef; |
| 482 |
|
| 483 |
def Haube (expr sx)= |
| 484 |
draw((dd,ht)..(0,ht+D){up}..(7U,Ht){right}..{down}(15U,ht+s)) shifted (sx-7U,0); |
| 485 |
xpos:=sx+8U; |
| 486 |
enddef; |
| 487 |
|
| 488 |
def HaubeD(expr sx)= |
| 489 |
p:= ((D,ht-dd){-1,1}..(0,Ht-5U){up}..(5U,Ht){right}..(14U,ht-D){down}..{left}(9U,0)); |
| 490 |
draw p shifted (sx,0); |
| 491 |
x0:=whatever; y0:=whatever; |
| 492 |
z0=(directionpoint (-1,-mt) of (subpath (3,4) of p)) shifted (sx,0); |
| 493 |
enddef; |
| 494 |
|
| 495 |
def schlinge_links (expr ha,dicke,bt,sx) = |
| 496 |
draw ((0,ha+dicke/2){left}..(-bt,ha){down}..{right}(0,ha-dicke/2)) shifted (sx,0); |
| 497 |
xpos:=sx; |
| 498 |
enddef; |
| 499 |
|
| 500 |
def Schwalbe= |
| 501 |
p:=(0,0){1,1}..(ht-2*Delta,0){right}..(ht,dd); |
| 502 |
enddef; |
| 503 |
|
| 504 |
def Oschl (expr sp, bt, sx)= |
| 505 |
bogen(ht+ht/3,ht,Ht-bt*Sbf,sp+bt,sp/(sp+bt),-90,90,1,1,sx); |
| 506 |
bogen(Ht-bt*Sbf,Ht,ht,-bt,Sbf,90,-90,1,1,xpos); |
| 507 |
enddef; |
| 508 |
|
| 509 |
def Oval(expr sx)= |
| 510 |
x1:=whatever;y1:=whatever; |
| 511 |
x2:=whatever;y2:=whatever; |
| 512 |
x3:=whatever;y3:=whatever; |
| 513 |
x4:=whatever;y4:=whatever; |
| 514 |
x5:=whatever;y5:=whatever; |
| 515 |
x6:=whatever;y6:=whatever; |
| 516 |
x7:=whatever;y7:=whatever; |
| 517 |
x8:=whatever;y8:=whatever; |
| 518 |
z1=(0,B); z2=(-A,0); z3=(0,-B); z4=(A,0); |
| 519 |
z5=(-sigma*A,sigma*B); |
| 520 |
z6=(-sigma*A,-sigma*B); |
| 521 |
z7=(sigma*A,-sigma*B); |
| 522 |
z8=(sigma*A,sigma*B); |
| 523 |
|
| 524 |
p:= (z1{left}..z5{z2-z1}..z2{down}..z6{z3-z2}.. |
| 525 |
{right}z3..{z4-z3}z7..z4{up}..z8{z1-z4}..{left}z1); |
| 526 |
draw p shifted (sx+A,B); |
| 527 |
x1:=whatever;y1:=whatever; |
| 528 |
z1=(directionpoint (-1,0.2) of (subpath (7,8) of p)) shifted (sx+A,B); |
| 529 |
x0:=whatever; y0:=whatever; |
| 530 |
z0=(directionpoint (1,mt) of (subpath (4,6) of p)) shifted (sx+A,B); |
| 531 |
xpos:=sx+2*A; % max Breite |
| 532 |
enddef; |
| 533 |
|
| 534 |
def Ohr = |
| 535 |
draw (z1{-1,0.2}.. |
| 536 |
(x1-dd,y1-dd/2){down}..tension1.5..{1,4}(2*A,Ht)); |
| 537 |
enddef; |
| 538 |
|
| 539 |
def V_ohr (expr sx)= |
| 540 |
draw ((0,Ht){left}..(-dd,Ht-dd){down}..tension1.2..{1,4}(5U,Ht)) shifted (sx,0); |
| 541 |
xpos:=sx+5U; |
| 542 |
enddef; |
| 543 |
|
| 544 |
def S_form(expr sx)= |
| 545 |
p:=((ht/3,Ht-dd)..(0,Ht){left}..(-5U,Ht-dt/2){down}..(0,ht)..(5U,ht/2){down}..(-D,0){left}..(-8U,D)); |
| 546 |
draw p shifted (sx+8U,0); |
| 547 |
x0:=whatever; y0:=whatever; |
| 548 |
z0=(directionpoint (-1,-mt) of (subpath (4,5) of p)) shifted (sx+8U,0); |
| 549 |
xpos:=sx+13U; |
| 550 |
enddef; |
| 551 |
|
| 552 |
def E_form(expr sx)= |
| 553 |
draw ((s,Ht-dd)..(0,Ht){left}..(-5U,Ht-ht/3){down}..(-dd,ht){right}..(dd,ht+ht/15){up}..(-dd,ht+2*ht/15){left}..(-ht/2,ht/2){down}..{right}(0,0)) shifted (sx+ht/2,0); |
| 554 |
xpos:=sx+ht/2; |
| 555 |
enddef; |
| 556 |
|
| 557 |
def Flanke(expr sp,bt,o,sx)= |
| 558 |
mA:=(Ht+o)/bt; |
| 559 |
draw ((0,dd)..(ht/3,0){right}..{1,mA}(sp+R/mA,R)--(sp+(Ht-R)/mA,Ht-R){1,mA}..(sp+bt,Ht)) shifted (sx,0); |
| 560 |
xpos:=sx+sp+bt; |
| 561 |
enddef; |
| 562 |
|
| 563 |
def A_schlaufe(expr sx )= |
| 564 |
draw ((0,0){up}..tension1.5..(-Abreite,20ut){-1,-Ht/Abreite}..{right}(0,7.5ut)) shifted (sx,0); |
| 565 |
xpos:=sx; |
| 566 |
enddef; |
| 567 |
|
| 568 |
def X_form(expr sx)= |
| 569 |
x1:=whatever;y1:=whatever; |
| 570 |
x2:=whatever;y2:=whatever; |
| 571 |
x3:=whatever;y3:=whatever; |
| 572 |
x4:=whatever;y4:=whatever; |
| 573 |
x5:=whatever;y5:=whatever; |
| 574 |
x6:=whatever;y6:=whatever; |
| 575 |
x7:=whatever;y7:=whatever; |
| 576 |
x8:=whatever;y8:=whatever; |
| 577 |
z1=(0,B); z2=(-X,0); z3=(0,-B); z4=(X,0); |
| 578 |
z5=(-sigma*X,sigma*B); |
| 579 |
z6=(-sigma*X,-sigma*B); |
| 580 |
z7=(sigma*X,-sigma*B); |
| 581 |
z8=(sigma*X,sigma*B); |
| 582 |
|
| 583 |
p:= ((X*sigma,B-dd)..z1{left}..z5{z2-z1}..z2{down}..z6{z3-z2}.. |
| 584 |
{right}z3); |
| 585 |
q:=((-X*sigma,-B+dd)..{right}z3..{z4-z3}z7..z4{up}..z8{z1-z4}..{left}z1..z5{z2-z1}); |
| 586 |
draw q shifted (sx+X*sigma,B); |
| 587 |
draw p shifted (sx+X*(2+sigma),B); |
| 588 |
xpos:=sx+X*(2+sigma); |
| 589 |
enddef; |
| 590 |
|
| 591 |
def S_kurve (expr sx)= |
| 592 |
p:=((-D,-Ht/2+R){down}..(-D-Hbreite*(1-Hfx),-Ht/2){left}..(-D-Hbreite,-Ht/2*(1-Hf)){up}..tension1.2..{1,0.65}(0,0)); |
| 593 |
draw p shifted (sx,Ht/2); |
| 594 |
draw (p rotated 180) shifted (sx,Ht/2); |
| 595 |
xpos:=sx+D; |
| 596 |
enddef; |
| 597 |
|
| 598 |
def A_char= |
| 599 |
Flanke(spornA,Abreite,over,xpos); |
| 600 |
stamm(Ht,0,xpos); |
| 601 |
A_schlaufe(xpos); |
| 602 |
fahne(7.5ut,ht-Delta,rho+(ht-Delta)/m,0,angle(1,m),1.5,xpos); |
| 603 |
enddef; |
| 604 |
|
| 605 |
def O_char= |
| 606 |
mt:=1; |
| 607 |
Oval(xpos); |
| 608 |
Ohr; |
| 609 |
tangente(D); |
| 610 |
enddef; |
| 611 |
|
| 612 |
def U_char= |
| 613 |
bogen(ht,Ht,ht,ht/2,0.5,90,-90,1,1,xpos); |
| 614 |
stamm(ht,R+D,xpos); |
| 615 |
bogen(R+D,0,2*ht/3,2*a,0.4,-90,90,1,1,xpos); |
| 616 |
if not wortende: |
| 617 |
stamm(Ht,rho,xpos); |
| 618 |
else: |
| 619 |
stamm(Ht,rho',xpos); |
| 620 |
fi |
| 621 |
stock(xpos); |
| 622 |
enddef; |
| 623 |
|
| 624 |
% Sonderzeichen |
| 625 |
def komma (expr ha,sx)= |
| 626 |
draw ((0,0){down}--(0,-ht/3)) shifted (sx,ha); |
| 627 |
enddef; |
| 628 |
%%%%%%%%%%%%%%%%%%%%%% Ende Makros %%%%%%%%%%%%%%%%%%%%%%%%%%% |