| 1 |
font_identifier:="Tapir"; |
| 2 |
u#:=20/36pt#; |
| 3 |
asc_height#:=12u#; |
| 4 |
cap_height#:=14.5u#; |
| 5 |
Asc_height#:=19u#; |
| 6 |
desc_depth#:=4.5u#; |
| 7 |
par_height#:=15.5u#; |
| 8 |
par_depth#:=u#; |
| 9 |
x_height#:=8u#; |
| 10 |
stem#:=1.1u#; |
| 11 |
cap_stem#:=1.1u#; |
| 12 |
fig_width#:=.5cap_height#+2u#+.5stem#; |
| 13 |
can:=15; |
| 14 |
dot_height#:=1.5cap_stem#; |
| 15 |
math_axis#:=5u#; |
| 16 |
font_size 10pt#; |
| 17 |
font_x_height 8u#; |
| 18 |
font_normal_space 4u#; |
| 19 |
font_normal_shrink 2u#; |
| 20 |
font_normal_stretch 3u#; |
| 21 |
|
| 22 |
mode_setup; |
| 23 |
define_pixels(u, cap_height, asc_height, Asc_height, x_height, desc_depth, stem, cap_stem, dot_height, math_axis, par_height, par_depth, fig_width); |
| 24 |
|
| 25 |
if unknown tapir_extended_charset: input tap-enc fi; |
| 26 |
|
| 27 |
let semi_ =;; let colon_ = :; let endchar_ = endchar; |
| 28 |
def iff expr b = if b:let next_=use_it else:let next_=lose_it fi; next_ enddef; |
| 29 |
def use_it = let : = restore_colon; enddef; |
| 30 |
def restore_colon = let : = colon_; enddef; |
| 31 |
def lose_it = let endchar=fi; inner cmchar; let ;=fix_ semi_ if false enddef; |
| 32 |
def fix_=let ;=semi_; let endchar=endchar_; outer cmchar; enddef; |
| 33 |
def always_iff = let : = endgroup; killboolean enddef; |
| 34 |
def killboolean text t = use_it enddef; |
| 35 |
|
| 36 |
%%Taken from cmbase |
| 37 |
vardef diag_ratio(expr a,b,y,c) = % assuming that $a>\vert b/y\vert$, |
| 38 |
% compute the value $\alpha=(x\6{++}y)/y$ such that $ax+b\alpha=c$ |
| 39 |
numeric aa_,bb_,cc_; bb_=b/y; cc_=c/y; aa_=a*a-bb_*bb_; |
| 40 |
(a*(cc_++sqrt aa_)-bb_*cc_)/aa_ enddef; |
| 41 |
|
| 42 |
|
| 43 |
def t_:=slanted slant enddef; |
| 44 |
if unknown serifs: boolean serifs; serifs:=false; fi |
| 45 |
if unknown italic: boolean italic; italic:=false; fi |
| 46 |
if unknown slant: numeric slant ; slant:=0; fi |
| 47 |
numeric c_height; |
| 48 |
picture used_p; |
| 49 |
boolean low, low.low, upper, upper.upper; |
| 50 |
low=upper=false; low.low=upper.upper=true; |
| 51 |
extra_beginchar:="pickup pencircle scaled .005pt;"; |
| 52 |
|
| 53 |
def savep:= used_p:=currentpicture; enddef; |
| 54 |
def usep:= addto currentpicture also used_p; enddef; |
| 55 |
def v_center(expr t):= .5t+math_axis#, .5t-math_axis# enddef; |
| 56 |
def serif(suffix $)(expr tha, thb):= |
| 57 |
if serifs: |
| 58 |
penpos$sa(.45stem,thb); penpos$sb(.45stem,90+tha); |
| 59 |
z$sa.l=z$; z$sb=z$sa+(1.5stem,0) rotated tha; |
| 60 |
z$sc=z$+(.5stem,0) rotated tha; |
| 61 |
filldraw z$sa.l---z$sb.l..z$sb.r---z$sa.r--cycle; |
| 62 |
penlabels($sa,$sb); |
| 63 |
fi |
| 64 |
enddef; |
| 65 |
|
| 66 |
def hpos(suffix $)(expr wid, ang):= |
| 67 |
x$r-x$l=wid; .5[x$r,x$l]=x$; y$=y$l=y$r-wid*sind(ang)*aspect_ratio; |
| 68 |
enddef; |
| 69 |
|
| 70 |
def vpos(suffix $)(expr wid, ang):= |
| 71 |
y$r-y$l=wid; .5[y$r,y$l]=y$; x$=x$l=x$r-wid*sind(ang)*aspect_ratio; |
| 72 |
enddef; |
| 73 |
|
| 74 |
def kruh(suffix $)(expr rad):= |
| 75 |
.5[z$a,z$c]=.5[z$b,z$d]=z$; x$a-x$c=y$b-y$d=rad; x$b=x$d; y$a=y$c; |
| 76 |
penpos$a(stem,0); penpos$b(stem,90); penpos$c(stem,180); penpos$d(stem,270); |
| 77 |
filldraw z$a.r{up}..{left}z$b.r..{down}z$c.r..{right}z$d.r..{up}z$a.r--z$a.l{down}..{left}z$d.l..{up}z$c.l..{right}z$b.l..{down}z$a.l--cycle; |
| 78 |
penlabels($,$a,$b,$c,$d); |
| 79 |
enddef; |
| 80 |
|
| 81 |
def italic_a(suffix $)(expr rad):= |
| 82 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 83 |
penpos14(stem,0); |
| 84 |
.5[z10,z12]=.5[z11,z13]; .5[y13,y11]=y$; y10=y12; x11=x13; y11-y13=x10-x12; x10-x12=rad; |
| 85 |
x11=x$; %.5[x12,x14]=x$; |
| 86 |
y14=y10; x14=x11+2stem; z15r=(x14r,y11r); z15l=(x14l,y11l); |
| 87 |
filldraw z14r--z15r---z11r..{down}z12r..{right}z13r..{up}z14r--z14l{down}..{left}z13l..{up}z12l..{right}z11l |
| 88 |
---z15l--z14l--cycle; |
| 89 |
enddef; |
| 90 |
|
| 91 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Accent macros |
| 92 |
def acute(suffix $)suffix modifier:= |
| 93 |
numeric acutewid; |
| 94 |
y$'=y$=y$''+3u; .5[x$',x$'']=x$; x$'-x$''=2.5u; |
| 95 |
acutewid:=(if low.modifier: cap_stem else: stem fi)/cosd(90+angle(z$''-z$')); |
| 96 |
penpos$'(acutewid,0); penpos$''(.75acutewid,0); |
| 97 |
filldraw (z$'l--z$'r--z$''r--z$''l--cycle) if low.modifier: shifted -z$ yscaled .75 shifted z$ fi; |
| 98 |
enddef; |
| 99 |
|
| 100 |
def grave(suffix $)suffix modifier:= |
| 101 |
numeric acutewid; |
| 102 |
y$'=y$=y$''+3u; .5[x$',x$'']=x$; x$'-x$''=-2.5u; |
| 103 |
acutewid:=(if low.modifier: cap_stem else: stem fi)/cosd(90+angle(z$''-z$')); |
| 104 |
penpos$'(acutewid,0); penpos$''(.75acutewid,0); |
| 105 |
filldraw (z$'l--z$'r--z$''r--z$''l--cycle) if low.modifier: shifted -z$ yscaled .75 shifted z$ fi; |
| 106 |
enddef; |
| 107 |
|
| 108 |
def dot(suffix $):= |
| 109 |
.5[y$c,y$d]=y$b=y$a=y$; .5[x$a,x$b]=x$c=x$d=x$; x$a-x$b=dot_height=.8(y$c-y$d); |
| 110 |
filldraw z$a--z$c--z$b--z$d--cycle; |
| 111 |
enddef; |
| 112 |
|
| 113 |
def acc_dot(suffix $):= |
| 114 |
.5[y$c,y$d]=y$b=y$a=y$; .5[x$a,x$b]=x$c=x$d=x$; x$a-x$b=1.2stem=.75(y$c-y$d); |
| 115 |
filldraw z$a--z$c--z$b--z$d--cycle; |
| 116 |
enddef; |
| 117 |
|
| 118 |
def caron(suffix $)suffix modifier:= |
| 119 |
numeric carontheta, caron_stem; |
| 120 |
caron_stem:=if low.modifier: cap_stem else: stem fi; |
| 121 |
hpos($a)(caron_stem,can); hpos($b)(caron_stem,-can); |
| 122 |
y$a.r=y$=y$b.l; |
| 123 |
x$c.r=.5[x$a.r,x$b.l]=x$; y$-y$c.r=3u; x$b.l-x$a.r=2.5u; |
| 124 |
carontheta:=90+angle(z$a.l-z$c.r); |
| 125 |
penpos$c(if low.modifier: 0.8\\fi caron_stem/sind(carontheta),90); |
| 126 |
filldraw (z$a.l--z$c.r--z$b.r--z$b.l--z$c.l--z$a.r--cycle);% if low.modifier: shifted -z$ scaled .8 shifted z$ fi; |
| 127 |
penlabels($c); |
| 128 |
enddef; |
| 129 |
|
| 130 |
def ring(suffix $)suffix modifier:= |
| 131 |
numeric ring_stem; |
| 132 |
ring_stem:=.7* if low.modifier: cap_stem else: stem fi; |
| 133 |
.5[z$a,z$c]=.5[z$d,z$b]; .5[x$a,x$c]=x$; x$a-x$c=y$b-y$d=2.5u; y$b=y$-.5ring_stem; y$a=y$c; x$b=x$d; |
| 134 |
penpos$a(ring_stem,0);penpos$b(ring_stem,90);penpos$c(ring_stem,180);penpos$d(ring_stem,270); |
| 135 |
filldraw z$a.r{up}..z$b.r{left}..z$c.r{down}..{right}z$d.r..{up}z$a.r--z$a.l{down}..z$d.l{left}..{up}z$c.l..{right}z$b.l..{down}z$a.l--cycle; |
| 136 |
penlabels($a,$b,$c,$d); |
| 137 |
enddef; |
| 138 |
|
| 139 |
def ac_caron(suffix $)suffix modifier:= |
| 140 |
numeric ac_carwid; |
| 141 |
y$'=y$=y$''+2u; .5[x$',x$'']=x$; x$'-x$''=.8u; |
| 142 |
ac_carwid:=(if low.modifier: cap_stem else: stem fi)/cosd(90+angle(z$''-z$')); |
| 143 |
penpos$'(ac_carwid,0); penpos$''(.75ac_carwid,0); |
| 144 |
filldraw (z$'l--z$'r--z$''r--z$''l--cycle) if low.modifier: shifted -z$ yscaled .75 shifted z$ fi; |
| 145 |
enddef; |
| 146 |
|
| 147 |
def umlaut(suffix $):= |
| 148 |
.5[x$a,x$b]=x$; y$a=y$b=y$; x$b-x$a=2.5u; |
| 149 |
acc_dot($a); acc_dot($b); |
| 150 |
enddef; |
| 151 |
|
| 152 |
def H_acute(suffix $)suffix modifier:= |
| 153 |
numeric H_acutewid; |
| 154 |
y$'=y$=y$''+3u; .5[x$',x$'']=x$; x$'-x$''=1.4u; |
| 155 |
H_acutewid:=(if low.modifier: cap_stem else: stem fi)/cosd(90+angle(z$''-z$')); |
| 156 |
penpos$'(H_acutewid,0); penpos$''(.75H_acutewid,0); |
| 157 |
filldraw (z$'l--z$'r--z$''r--z$''l--cycle) if low.modifier: shifted -z$ yscaled .75 shifted z$ fi; |
| 158 |
enddef; |
| 159 |
|
| 160 |
def H_umlaut(suffix $)suffix modifier:= |
| 161 |
.5[x$a,x$b]=x$; y$a=y$b=y$; x$b-x$a=2u; |
| 162 |
H_acute($a).modifier; H_acute($b).modifier; |
| 163 |
enddef; |
| 164 |
|
| 165 |
def quota(suffix $)suffix modifier:= |
| 166 |
y$'=y$=y$''+3.5u; .5[x$',x$'']=x$; x$'=x$''; |
| 167 |
hpos($')(if not upper.modifier: 1.5\\fi stem,if not upper.modifier: 0\\fi can); hpos($'')(if upper.modifier: 1.5\\fi stem, if upper.modifier:0\\fi can); |
| 168 |
filldraw z$'l--z$'r--z$''r--z$''l--cycle; |
| 169 |
enddef; |
| 170 |
|
| 171 |
def circumflex(suffix $)suffix modifier:= |
| 172 |
numeric circtheta, circ_stem; |
| 173 |
circ_stem:=if low.modifier: cap_stem else: stem fi; |
| 174 |
hpos($a)(circ_stem,-can); hpos($b)(circ_stem,can); |
| 175 |
y$a.r=y$b.l; y$c.r=y$; |
| 176 |
x$c.r=.5[x$a.r,x$b.l]=x$; y$-y$a.r=3u; x$b.l-x$a.r=2.5u; |
| 177 |
circtheta:=180+angle(z$c.r-z$a.r); |
| 178 |
penpos$c(1.5*if low.modifier: 0.8\\fi circ_stem/sind(circtheta),270); |
| 179 |
filldraw (z$a.l--z$c.r--z$b.r--z$b.l--z$c.l--z$a.r--cycle); |
| 180 |
penlabels($c); |
| 181 |
enddef; |
| 182 |
|
| 183 |
def cedilla(suffix $):= |
| 184 |
vpos($')(.75stem,can); vpos($'')(.75stem,can); vpos($'''')(.5stem,can); penpos$'''(.5stem,90); |
| 185 |
.5[x$',x$'']=x$; x$''-x$'=3u; y$'r=y$''r=y$; y$'''l=y$''''l=-d; x$'''=x$; x$''''=x$'; |
| 186 |
filldraw z$'l+u*right--z$''l{down}..{left}z$'''r..z$''''r--z$''''l..z$'''l{right}..z$''r---z$'r+u*right--cycle; |
| 187 |
penlabels($',$'',$''',$''''); |
| 188 |
enddef; |
| 189 |
|
| 190 |
def breve(suffix $)suffix modifier:= |
| 191 |
hpos($')(stem,can); hpos($''')(stem,can); penpos$''(stem,90); |
| 192 |
.5[x$'l,x$'''r]=x$; x$'''r-x$'l=5u; x$''=x$; y$'r=y$'''r=y$; y$''=y$-if low.modifier: .35 else: .5fi\\(x$'''-x$'); |
| 193 |
filldraw z$'l{down}..{right}z$''l..{up}z$'''r--z$'''l{down}..{left}z$''r..{up}z$'r--cycle; |
| 194 |
penlabels($',$'',$''',$); |
| 195 |
enddef; |
| 196 |
|
| 197 |
def macron(suffix $):= |
| 198 |
vpos($')(stem,can); penpos$''(stem,90); |
| 199 |
y$'r=y$''r=y$; x$''-x$'l=4u; .5[x$'l,x$'']=x$; |
| 200 |
filldraw z$'l--z$''l--z$''r--z$'r--cycle; |
| 201 |
enddef; |
| 202 |
|
| 203 |
def tilde(suffix $):= |
| 204 |
hpos($')(stem,-can); hpos($'''')(stem,-can); penpos$''(stem,90); penpos$'''(stem,90); |
| 205 |
x$'l-x$''''r=-7u; .5[x$'l,x$''''r]=x$; x$''=.5[x$',x$]; x$'''=.5[x$'''',x$]; |
| 206 |
y$''r=y$; y$''-y$'=1.5u; y$''-y$'=y$''''-y$'''=.75(y$''-y$'''); |
| 207 |
penpos$''a(stem, angle(z$''-z$''')-90); z$''a=.5[z$'',z$''']; |
| 208 |
filldraw z$'r{up}..z$''l..z$''a.l..z$'''l ..{up}z$''''r--z$''''l{down}..z$'''r..z$''a.r..z$''r..{down}z$'l--cycle; |
| 209 |
penlabels($',$'',$''a,$''',$'''',$); |
| 210 |
enddef; |
| 211 |
|
| 212 |
def acc_tilde(suffix $)suffix modifier:= |
| 213 |
hpos($')(.9stem,-can); hpos($'''')(.9stem,-can); penpos$''(.9stem,90); penpos$'''(.9stem,90); |
| 214 |
x$'l-x$''''r=-7u; .5[x$'l,x$''''r]=x$; x$''=.5[x$',x$]; x$'''=.5[x$'''',x$]; |
| 215 |
y$''r=y$; y$''-y$'=if not low.modifier: 1.5fi\\u; y$''-y$'=y$''''-y$'''=.75(y$''-y$'''); |
| 216 |
penpos$''a(stem, angle(z$''-z$''')-90); z$''a=.5[z$'',z$''']; |
| 217 |
filldraw z$'r{up}..z$''l..z$''a.l..z$'''l ..{up}z$''''r--z$''''l{down}..z$'''r..z$''a.r..z$''r..{down}z$'l--cycle; |
| 218 |
penlabels($',$'',$''a,$''',$'''',$); |
| 219 |
enddef; |
| 220 |
|
| 221 |
def ogonek(suffix $):= |
| 222 |
.5[z$',z$''']=.5[z$'',z$'''']; y$''''=y$-desc_depth+.5stem; .5[x$',x$''']=x$; x$'''-x$'=-3.5u; |
| 223 |
y$'=y$'''; x$''=x$''''; y$''=y$-.5stem; |
| 224 |
penpos$'(stem,0); penpos$''(stem,90); penpos$'''(stem,180); penpos$''''(stem,-90); |
| 225 |
p:= z$'{up}..{left}z$''..{down}z$'''..{right}z$''''..cycle; |
| 226 |
vpos($''''')(stem,-can); z$'''''=point 3.5 of p; penpos$''''''(stem,135); |
| 227 |
filldraw z$'''l{down}..z$''''l..{direction 3.5 of p}z$'''''r--z$'''''l{dir (angle(direction 3.5 of p)-180)}..z$''''r..{up}z$'''r..z$''r+stem*up--z$''l+stem*up..cycle; |
| 228 |
penlabels($',$'',$''',$''''); |
| 229 |
enddef; |
| 230 |
|
| 231 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Lowercase |
| 232 |
if italic: |
| 233 |
beginchar("a", x_height#+stem#, x_height#,0); |
| 234 |
z0=(.5w+.5stem,.5h); vpos(1)(stem,can); |
| 235 |
x1r=w-.5u; y1l=0; |
| 236 |
italic_a(0)(w-2u); |
| 237 |
filldraw z14l{down}..{right}z1l--z1r{left}..{up}z14r--cycle; |
| 238 |
penlabels(1,10,11,12,13,14); |
| 239 |
savep; |
| 240 |
endchar; |
| 241 |
|
| 242 |
iff known latin_aacute: |
| 243 |
beginchar(latin_aacute,x_height#+stem#,asc_height#,0); |
| 244 |
usep; |
| 245 |
z0=(5.3u,h); |
| 246 |
acute(0); |
| 247 |
endchar; |
| 248 |
|
| 249 |
iff known latin_aumlaut: |
| 250 |
beginchar(latin_aumlaut,x_height#+stem#,.15[asc_height#,x_height#],0); |
| 251 |
usep; |
| 252 |
z0=(.5w+u,h-.6stem); |
| 253 |
umlaut(0); |
| 254 |
endchar; |
| 255 |
|
| 256 |
iff known latin_agrave: |
| 257 |
beginchar(latin_agrave,x_height#+stem#,asc_height#,0); |
| 258 |
usep; |
| 259 |
z0=(.5w+1.5u,h); |
| 260 |
grave(0); |
| 261 |
endchar; |
| 262 |
|
| 263 |
iff known latin_acircumflex: |
| 264 |
beginchar(latin_acircumflex,7.6u#,asc_height#,0); |
| 265 |
usep; |
| 266 |
z0=(.5w+1.8u,h); |
| 267 |
circumflex(0); |
| 268 |
endchar; |
| 269 |
|
| 270 |
iff known latin_atilde: |
| 271 |
beginchar(latin_atilde,8.6u#,asc_height#,0); |
| 272 |
addto currentpicture also used_p shifted (.2u,0); |
| 273 |
z0=(.5w+u,h); |
| 274 |
acc_tilde(0); |
| 275 |
endchar; |
| 276 |
|
| 277 |
iff known latin_aring: |
| 278 |
beginchar(latin_aring,7.6u#,asc_height#,0); |
| 279 |
usep; |
| 280 |
z0=(.5w+1.7u,h); |
| 281 |
ring(0); |
| 282 |
endchar; |
| 283 |
|
| 284 |
iff known latin_amacron: |
| 285 |
beginchar(latin_amacron,7.6u#,asc_height#,0); |
| 286 |
usep; |
| 287 |
z0=(.5w+u,h); |
| 288 |
macron(0); |
| 289 |
endchar; |
| 290 |
|
| 291 |
iff known latin_abreve: |
| 292 |
beginchar(latin_abreve,7.6u#,asc_height#,0); |
| 293 |
usep; |
| 294 |
z0=(.5w+1.5u,h); |
| 295 |
breve(0); |
| 296 |
endchar; |
| 297 |
|
| 298 |
iff known latin_aogonek: |
| 299 |
beginchar(latin_aogonek, x_height#+stem#, x_height#,desc_depth#); |
| 300 |
z0=(.5w+.5stem,.5h); vpos(1)(stem,can); |
| 301 |
x1r=w-.5u; y1l=0; |
| 302 |
italic_a(0)(w-2u); |
| 303 |
penlabels(1,10,11,12,13,14); |
| 304 |
.5[z20,z22]=.5[z21,z23]; y23=-d+.5stem; x20+.5stem=(w+u)-u; y20=y22; x21=x23; y21-y23=x20-x22; y21=-.5stem; |
| 305 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 306 |
path p; |
| 307 |
p:= z20{up}..{left}z21..{down}z22..{right}z23..cycle; |
| 308 |
vpos(24)(stem,-can); z24=point 3.5 of p; penpos25(stem,135); |
| 309 |
path p[]; numeric t[]; |
| 310 |
p1:=z22r{up}..{z1l-z22r}z1r; |
| 311 |
p2:=z1l{left}..{up}z14l--z14r{down}..{right}z1r; |
| 312 |
(t1,t2)=p1 intersectiontimes p2; |
| 313 |
t3-2=xpart(subpath (2,infinity) of p2 intersectiontimes (z21--z10r)); |
| 314 |
filldraw z22l{down}..z23l..{direction 3.5 of p}z24r--z24l{dir (angle(direction 3.5 of p)-180)}..z23r..subpath (0,t1) of p1-- |
| 315 |
subpath (t2,t3) of p2..z1l{z22r-z1l}..cycle; |
| 316 |
penlabels(20,21,22,23,24,25,100); |
| 317 |
endchar; |
| 318 |
|
| 319 |
else: |
| 320 |
beginchar("a", 7.6u#, x_height#,0); |
| 321 |
hpos(1)(stem,can); penpos2(stem,0); penpos3(stem,90); vpos(4)(stem,-can); |
| 322 |
lft x1r=w-u; y1=0; x2=x1; y2=.72h; x3=.5w; top y3r=h; y4=.9h; x4l=2u; |
| 323 |
filldraw z1l--z1r--z2r{up}..{left}z3r..z4r--z4l..z3l{right}..{down}z2l--cycle; |
| 324 |
serif(4r,angle(z4l-z4r),180+angle(direction 1 of (z3r{left}..z4r))); |
| 325 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 326 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 327 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 328 |
labels(4l); |
| 329 |
savep; |
| 330 |
endchar; |
| 331 |
|
| 332 |
iff known latin_aacute: |
| 333 |
beginchar(latin_aacute,7.6u#,asc_height#,0); |
| 334 |
usep; |
| 335 |
z0=(5.3u,h); |
| 336 |
acute(0); |
| 337 |
endchar; |
| 338 |
|
| 339 |
iff known latin_aumlaut: |
| 340 |
beginchar(latin_aumlaut,7.6u#,.15[asc_height#,x_height#],0); |
| 341 |
usep; |
| 342 |
z0=(.5w,h-.6stem); |
| 343 |
umlaut(0); |
| 344 |
endchar; |
| 345 |
|
| 346 |
iff known latin_agrave: |
| 347 |
beginchar(latin_agrave,7.6u#,asc_height#,0); |
| 348 |
usep; |
| 349 |
z0=(.5w,h); |
| 350 |
grave(0); |
| 351 |
endchar; |
| 352 |
|
| 353 |
iff known latin_acircumflex: |
| 354 |
beginchar(latin_acircumflex,7.6u#,asc_height#,0); |
| 355 |
usep; |
| 356 |
z0=(.5w+.25u,h); |
| 357 |
circumflex(0); |
| 358 |
endchar; |
| 359 |
|
| 360 |
iff known latin_atilde: |
| 361 |
beginchar(latin_atilde,8.6u#,asc_height#,0); |
| 362 |
addto currentpicture also used_p shifted (.2u,0); |
| 363 |
z0=(.5w,h); |
| 364 |
acc_tilde(0); |
| 365 |
endchar; |
| 366 |
|
| 367 |
iff known latin_aring: |
| 368 |
beginchar(latin_aring,7.6u#,asc_height#,0); |
| 369 |
usep; |
| 370 |
z0=(.5w+.25u,h); |
| 371 |
ring(0); |
| 372 |
endchar; |
| 373 |
|
| 374 |
iff known latin_amacron: |
| 375 |
beginchar(latin_amacron,7.6u#,asc_height#,0); |
| 376 |
usep; |
| 377 |
z0=(.5w+.5u,h); |
| 378 |
macron(0); |
| 379 |
endchar; |
| 380 |
|
| 381 |
iff known latin_abreve: |
| 382 |
beginchar(latin_abreve,7.6u#,asc_height#,0); |
| 383 |
usep; |
| 384 |
z0=(.5w+.5u,h); |
| 385 |
breve(0); |
| 386 |
endchar; |
| 387 |
|
| 388 |
iff known latin_aogonek: |
| 389 |
beginchar(latin_aogonek,7.6u#,x_height#,desc_depth#); |
| 390 |
path p; |
| 391 |
hpos(1)(stem,can); penpos2(stem,0); penpos3(stem,90); vpos(4)(stem,-can); |
| 392 |
lft x1r=w-u; y1=0; x2=x1; y2=.72h; x3=.5w; top y3r=h; y4=.9h; x4l=2u; |
| 393 |
filldraw z1l--z1r--z2r{up}..{left}z3r..z4r--z4l..z3l{right}..{down}z2l--cycle; |
| 394 |
serif(4r,angle(z4l-z4r),180+angle(direction 1 of (z3r{left}..z4r))); |
| 395 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 396 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 397 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 398 |
penlabels(1,2,3,4); |
| 399 |
.5[z20,z22]=.5[z21,z23]; y23=-d+.5stem; x20+.5stem=(w+u)-u; y20=y22; x21=x23; y21-y23=x20-x22; y21=-.5stem; |
| 400 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 401 |
p:= z20{up}..{left}z21..{down}z22..{right}z23..cycle; |
| 402 |
vpos(24)(stem,-can); z24=point 3.5 of p; penpos25(stem,135); |
| 403 |
filldraw z22l{down}..z23l..{direction 3.5 of p}z24r--z24l{dir (angle(direction 3.5 of p)-180)}..z23r..{up}z22r..{z1l-z22r}z1l--z1r{down}..z21l..cycle; |
| 404 |
penlabels(20,21,22,23,24,25); |
| 405 |
endchar; |
| 406 |
fi |
| 407 |
|
| 408 |
beginchar("b", 10u#,cap_height#,0); |
| 409 |
penpos1(stem,0); hpos(2)(stem,can); |
| 410 |
x1l=u=x2l; y1=y10; y2r=h; |
| 411 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 412 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 413 |
serif(2r)(angle(z2l-z2r),270); |
| 414 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 415 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 416 |
endchar; |
| 417 |
|
| 418 |
beginchar("c", 9u#,x_height#,0); |
| 419 |
path p; |
| 420 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 421 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 422 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 423 |
z1=point .5 of p; |
| 424 |
z2=point 3.5 of p; |
| 425 |
penpos1(stem,(170-angle(direction.5 of p))); penpos2(stem,(100+angle(direction 3.5 of p))); |
| 426 |
filldraw z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1l--cycle; |
| 427 |
c_height:=y2l; |
| 428 |
penlabels(1,2); |
| 429 |
serif(1r,angle(z1l-z1r),180+angle(direction.5 of p)); |
| 430 |
savep; |
| 431 |
endchar; |
| 432 |
|
| 433 |
iff known latin_ccaron: |
| 434 |
beginchar(latin_ccaron,9u#,asc_height#,0); |
| 435 |
usep; |
| 436 |
z0=(.5w+.7u,h); |
| 437 |
caron(0); |
| 438 |
endchar; |
| 439 |
|
| 440 |
iff known latin_cacute: |
| 441 |
beginchar(latin_cacute,9u#,asc_height#,0); |
| 442 |
usep; |
| 443 |
z0=(.5w+1.9u,h); |
| 444 |
acute(0); |
| 445 |
endchar; |
| 446 |
|
| 447 |
iff known latin_ccircumflex: |
| 448 |
beginchar(latin_ccircumflex,9u#,asc_height#,0); |
| 449 |
usep; |
| 450 |
z0=(.5w+.75u,h); |
| 451 |
circumflex(0); |
| 452 |
endchar; |
| 453 |
|
| 454 |
iff known latin_cdotabove: |
| 455 |
beginchar(latin_cdotabove,9u#,.15[asc_height#,x_height#],0); |
| 456 |
usep; |
| 457 |
z0=(.5w+.5u,h-.6stem); |
| 458 |
acc_dot(0); |
| 459 |
endchar; |
| 460 |
|
| 461 |
|
| 462 |
iff known latin_ccedilla: |
| 463 |
beginchar(latin_ccedilla,9u#,x_height#,.75desc_depth#-.5stem#); |
| 464 |
usep; |
| 465 |
z0=(.5w,.5stem); |
| 466 |
cedilla(0); |
| 467 |
endchar; |
| 468 |
|
| 469 |
beginchar("d", 10u#,cap_height#,0); |
| 470 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 471 |
x1r=w-u=x2r; y1=0; y2r=h; |
| 472 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 473 |
serif(2r)(angle(z2l-z2r),270); |
| 474 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 475 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 476 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 477 |
savep; |
| 478 |
endchar; |
| 479 |
|
| 480 |
iff known latin_dcaron: |
| 481 |
beginchar(latin_dcaron,12u#,cap_height#,0); |
| 482 |
usep; |
| 483 |
z0=(w-1.8u,h); |
| 484 |
ac_caron(0); |
| 485 |
endchar; |
| 486 |
|
| 487 |
iff known latin_dslash: |
| 488 |
beginchar(latin_dslash,10.5u#,cap_height#,0); |
| 489 |
usep; |
| 490 |
y0=.75h; rt x0''=w-.75u; |
| 491 |
macron(0); |
| 492 |
endchar; |
| 493 |
|
| 494 |
iff known latin_eth: |
| 495 |
beginchar(latin_eth, 10u#,cap_height#,0); |
| 496 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 497 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 498 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 499 |
hpos(1)(stem,can); vpos(2)(stem,-can); |
| 500 |
x1r=w-u; x2=.3w; y1=y10; y2r=.9h; |
| 501 |
filldraw z1l--z1r{up}..z2r--z2l..{down}cycle; |
| 502 |
z0=((.5w,0)--(.5w,h)) intersectionpoint (z1{up}..z2); |
| 503 |
.5[z3,z4]=z0; z3-z4=(4u,0) rotated 30; |
| 504 |
penpos3(.9stem,120); penpos4(.9stem,120-can); |
| 505 |
filldraw z3r--z3l--z4l--z4r--cycle; |
| 506 |
penlabels(3,4); |
| 507 |
endchar; |
| 508 |
|
| 509 |
beginchar("e", 9u#,x_height#,0); |
| 510 |
path p; |
| 511 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 512 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 513 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 514 |
z1=point .5 of p; |
| 515 |
z2=point 3.5 of p; |
| 516 |
z3=((0,.25h)--(.5w,.25h)) intersectionpoint p; |
| 517 |
penpos1(stem,(170-angle(direction.5 of p))); penpos2(stem,(100+angle(direction 3.5 of p))); |
| 518 |
penpos3(stem,(90+angle(z3-z1))); z1''=(subpath (0,.5) of (z1r--z3r)) intersectionpoint p; z1'''=z1''+stem*dir(270+angle(z3-z1)); |
| 519 |
z1'=(z1'''--z3l) intersectionpoint (z11l{right}..z1l); |
| 520 |
filldraw z3r--z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1'--z3l--cycle; |
| 521 |
penlabels(3); labels(1'', 1'); |
| 522 |
savep; |
| 523 |
endchar; |
| 524 |
|
| 525 |
iff known latin_eacute: |
| 526 |
beginchar(latin_eacute,9u#,asc_height#,0); |
| 527 |
usep; |
| 528 |
z0=(6.5u,h); |
| 529 |
acute(0); |
| 530 |
endchar; |
| 531 |
|
| 532 |
iff known latin_ecaron: |
| 533 |
beginchar(latin_ecaron,9u#,asc_height#,0); |
| 534 |
usep; |
| 535 |
z0=(.5w+.56u,h); |
| 536 |
caron(0); |
| 537 |
endchar; |
| 538 |
|
| 539 |
iff known latin_egrave: |
| 540 |
beginchar(latin_egrave,9u#,asc_height#,0); |
| 541 |
usep; |
| 542 |
z0=(.5w-.56u,h); |
| 543 |
grave(0); |
| 544 |
endchar; |
| 545 |
|
| 546 |
iff known latin_eumlaut: |
| 547 |
beginchar(latin_eumlaut,9u#,.15[asc_height#,x_height#],0); |
| 548 |
usep; |
| 549 |
z0=(.5w+.5u,h-.6stem); |
| 550 |
umlaut(0); |
| 551 |
endchar; |
| 552 |
|
| 553 |
iff known latin_ecircumflex: |
| 554 |
beginchar(latin_ecircumflex,9u#,asc_height#,0); |
| 555 |
usep; |
| 556 |
z0=(.5w+.56u,h); |
| 557 |
circumflex(0); |
| 558 |
endchar; |
| 559 |
|
| 560 |
iff known latin_emacron: |
| 561 |
beginchar(latin_emacron,9u#,asc_height#,0); |
| 562 |
usep; |
| 563 |
z0=(.5w+.4u,h); |
| 564 |
macron(0); |
| 565 |
endchar; |
| 566 |
|
| 567 |
iff known latin_ebreve: |
| 568 |
beginchar(latin_ebreve,9u#,asc_height#,0); |
| 569 |
usep; |
| 570 |
z0=(.5w+.56u,h); |
| 571 |
breve(0); |
| 572 |
endchar; |
| 573 |
|
| 574 |
iff known latin_edotabove: |
| 575 |
beginchar(latin_edotabove,9u#,.15[asc_height#,x_height#],0); |
| 576 |
usep; |
| 577 |
z0=(.5w+.75u,h-.6stem); |
| 578 |
acc_dot(0); |
| 579 |
endchar; |
| 580 |
|
| 581 |
iff known latin_eogonek: |
| 582 |
beginchar(latin_eogonek,9u#,x_height#,desc_depth#); |
| 583 |
path p; |
| 584 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 585 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 586 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 587 |
z1=point .5 of p; |
| 588 |
z2=point 3.5 of p; |
| 589 |
z3=((0,.25h)--(.5w,.25h)) intersectionpoint p; |
| 590 |
penpos1(stem,(170-angle(direction.5 of p))); penpos2(stem,(100+angle(direction 3.5 of p))); |
| 591 |
penpos3(stem,(90+angle(z3-z1))); z1''=(subpath (0,.5) of (z1r--z3r)) intersectionpoint p; z1'''=z1''+stem*dir(270+angle(z3-z1)); |
| 592 |
z1'=(z1'''--z3l) intersectionpoint (z11l{right}..z1l); |
| 593 |
filldraw z3r--z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1'--z3l--cycle; |
| 594 |
penlabels(1,2,3,4,12); labels(1'', 1'); |
| 595 |
vpos(5)(stem,-can); x5=x2; y5=-.8d; penpos6(stem,0); y6=-.5d; (x5-x6)/(y6-y5)=(x2-x12)/(y12-y2); |
| 596 |
filldraw z2l{dir (angle(direction 3.5 of p)-180)}..{down}z6r..z5r--z5l..z6l{up}..{dir angle(direction 3.5 of p)}z2r--cycle; |
| 597 |
penlabels(5,6); |
| 598 |
endchar; |
| 599 |
|
| 600 |
beginchar("f", 6u#,cap_height#,0); |
| 601 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 602 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 603 |
path p; |
| 604 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 605 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w+4u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 606 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 607 |
z3l=z11l; |
| 608 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 609 |
vpos(4)(stem,can); penpos5(stem,90); |
| 610 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 611 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 612 |
penlabels(3); |
| 613 |
serif(3r)(angle(z3l-z3r),180-angle(direction 0 of (z3r..{left}z11r))); |
| 614 |
endchar; |
| 615 |
|
| 616 |
iff known latin_long_s: |
| 617 |
beginchar(latin_long_s, 6u#,cap_height#,0); |
| 618 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 619 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 620 |
path p; |
| 621 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 622 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w+4u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 623 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 624 |
z3l=z11l; |
| 625 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 626 |
penlabels(3); |
| 627 |
serif(3r)(angle(z3l-z3r),180-angle(direction 0 of (z3r..{left}z11r))); |
| 628 |
endchar; |
| 629 |
|
| 630 |
if italic: |
| 631 |
beginchar("g", x_height#+stem#, x_height#,desc_depth#); |
| 632 |
z0=(.5w+.5stem,.5h); vpos(1)(stem,can); penpos2(stem,0); |
| 633 |
x1r=x12l; y1l=-.95d; y2=0; x2=x14; |
| 634 |
italic_a(0)(w-2u); |
| 635 |
filldraw z14l---z2l..z1r--z1l..z2r---z14r--cycle; |
| 636 |
savep; |
| 637 |
penlabels(1,2,10,11,12,13,14); |
| 638 |
endchar; |
| 639 |
else: |
| 640 |
beginchar("g", 9.5u#,x_height#,desc_depth#); |
| 641 |
.5[z10,z12]=.5[z11,z13]; |
| 642 |
x10+.5stem=w-1.5u; y10=y12; x11=x13; y11=h-.5stem; x12-.5stem=2u; |
| 643 |
penpos20(stem,180); penpos21(stem,270); penpos23(stem,90); |
| 644 |
.5[z20,z22]=.5[z21,z23]; y23=-d+.5stem; x20+.5stem=w-u; y20=y22; x21=x23; |
| 645 |
y21=y13; y21-y23=x20-x22; |
| 646 |
x22-.5stem=u; |
| 647 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 648 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 649 |
path p; |
| 650 |
p:=subpath(2.2,5.4) of (z20{up}..{left}z21..{down}z22..{right}z23..cycle); |
| 651 |
z1=point 0 of p; z2=point 4 of p; |
| 652 |
penpos1(stem,90+angle(direction 0 of p)+can); penpos2(stem,90+angle(direction 4 of p)-can); |
| 653 |
filldraw (z1l..{right}z23l..{up}z20l..{left}z21l..z2l--z2r..{right}z21r..{down}z20r..{left}z23r..z1r--cycle); |
| 654 |
vpos(3)(stem,can); penpos4(stem,90); |
| 655 |
z4=z11; x3r=w-u; y3r=h; |
| 656 |
filldraw z4r--z3r--z3l--z4l--cycle; |
| 657 |
serif(2l)(angle(z2r-z2l),0); |
| 658 |
savep; |
| 659 |
penlabels(1,2,3,4); |
| 660 |
endchar; |
| 661 |
fi |
| 662 |
|
| 663 |
iff known latin_gcircumflex: |
| 664 |
beginchar(latin_gcircumflex,9.5u#,asc_height#,desc_depth#); |
| 665 |
usep; |
| 666 |
z0=(.5w+.5u,h); |
| 667 |
circumflex(0); |
| 668 |
endchar; |
| 669 |
|
| 670 |
iff known latin_gbreve: |
| 671 |
beginchar(latin_gbreve,9.5u#,asc_height#,desc_depth#); |
| 672 |
usep; |
| 673 |
z0=(.5w+.5u,h); |
| 674 |
breve(0); |
| 675 |
endchar; |
| 676 |
|
| 677 |
iff known latin_gdotabove: |
| 678 |
beginchar(latin_gdotabove,9.5u#,.15[asc_height#,x_height#],desc_depth#); |
| 679 |
usep; |
| 680 |
z0=(.5w+.5u,h-.6stem); |
| 681 |
acc_dot(0); |
| 682 |
endchar; |
| 683 |
|
| 684 |
iff known latin_gcedilla: |
| 685 |
beginchar(latin_gcedilla,9.5u#,x_height#,1.75desc_depth#-.5stem#); |
| 686 |
usep; |
| 687 |
z0=(.5w-u,-desc_depth+.5stem); |
| 688 |
cedilla(0); |
| 689 |
endchar; |
| 690 |
|
| 691 |
beginchar("h", 9u#,cap_height#,0); |
| 692 |
hpos(1)(stem,can); hpos(2)(stem,can); vpos(3)(stem,can); penpos4(stem,0); hpos(5)(stem,can); |
| 693 |
x1l=u=x2l; y1=y5=0; y2r=h; y4=.7x_height; x5r=x4r=w-u; |
| 694 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 695 |
serif(2r)(angle(z2l-z2r),270); |
| 696 |
path p; |
| 697 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 698 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+1u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 699 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 700 |
z3l=z11l; |
| 701 |
filldraw z4r{up}..z11r{left}..{down}z12l--z12r{up}..{right}z11l..{down}z4l--z5l--z5r--cycle; |
| 702 |
penlabels(3); |
| 703 |
savep; |
| 704 |
endchar; |
| 705 |
|
| 706 |
iff known latin_hcircumflex: |
| 707 |
beginchar(latin_hcircumflex,9u#,Asc_height#,0); |
| 708 |
usep; |
| 709 |
z0=(.5w+.5u,h); |
| 710 |
circumflex(0); |
| 711 |
endchar; |
| 712 |
|
| 713 |
iff known latin_hbar: |
| 714 |
beginchar(latin_hbar,10u#,cap_height#,0); |
| 715 |
addto currentpicture also used_p shifted (u,0);; |
| 716 |
vpos(1)(.75stem,can); vpos(2)(.75stem,0); |
| 717 |
lft x1l=u; rt x2=.75w; y1=y2=.75h; |
| 718 |
filldraw z1r--z2r--z2l--z1l--cycle; |
| 719 |
penlabels(1,2); |
| 720 |
endchar; |
| 721 |
|
| 722 |
beginchar(16, 3u#,x_height#,0); %dotless i |
| 723 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 724 |
x1=.5w=x2; y1=0; y2r=h; |
| 725 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 726 |
serif(2r)(angle(z2l-z2r),270); |
| 727 |
savep; |
| 728 |
endchar; |
| 729 |
|
| 730 |
beginchar("i", 3u#,.15[asc_height#,x_height#],0); |
| 731 |
usep; |
| 732 |
z0=(.5w,h-.6stem); |
| 733 |
acc_dot(0); |
| 734 |
endchar; |
| 735 |
|
| 736 |
iff known latin_iacute: |
| 737 |
beginchar(latin_iacute, 3u#,asc_height#,0); |
| 738 |
usep; |
| 739 |
z0=(2.75u,h); |
| 740 |
acute(0); |
| 741 |
endchar; |
| 742 |
|
| 743 |
iff known latin_igrave: |
| 744 |
beginchar(latin_igrave, 3u#,asc_height#,0); |
| 745 |
usep; |
| 746 |
z0=(.45u,h); |
| 747 |
grave(0); |
| 748 |
endchar; |
| 749 |
|
| 750 |
iff known latin_icircumflex: |
| 751 |
beginchar(latin_icircumflex, 5u#,asc_height#,0); |
| 752 |
addto currentpicture also used_p shifted (u,0); |
| 753 |
z0=(.5w,h); |
| 754 |
circumflex(0); |
| 755 |
endchar; |
| 756 |
|
| 757 |
iff known latin_iumlaut: |
| 758 |
beginchar(latin_iumlaut, 5u#,.15[asc_height#,x_height#],0); |
| 759 |
addto currentpicture also used_p shifted (u,0); |
| 760 |
z0=(.5w,h-.6stem); |
| 761 |
umlaut(0); |
| 762 |
endchar; |
| 763 |
|
| 764 |
iff known latin_itilde: |
| 765 |
beginchar(latin_itilde, 8u#,asc_height#,0); |
| 766 |
addto currentpicture also used_p shifted (2.5u,0); |
| 767 |
z0=(.5w,h); |
| 768 |
acc_tilde(0); |
| 769 |
endchar; |
| 770 |
|
| 771 |
iff known latin_imacron: |
| 772 |
beginchar(latin_imacron, 5.5u#,asc_height#,0); |
| 773 |
addto currentpicture also used_p shifted (1.25u,0); |
| 774 |
z0=(.5w,h); |
| 775 |
macron(0); |
| 776 |
endchar; |
| 777 |
|
| 778 |
iff known latin_ibreve: |
| 779 |
beginchar(latin_ibreve, 6.5u#,asc_height#,0); |
| 780 |
addto currentpicture also used_p shifted (1.75u,0); |
| 781 |
z0=(.5w,h); |
| 782 |
breve(0); |
| 783 |
endchar; |
| 784 |
|
| 785 |
iff known latin_iogonek: |
| 786 |
beginchar(latin_iogonek, 3u#,.15[asc_height#,x_height#],desc_depth#); |
| 787 |
usep; |
| 788 |
z0=(.5w,h-.6stem); z1=(.5w+.5stem,0); |
| 789 |
acc_dot(0); |
| 790 |
ogonek(1); |
| 791 |
endchar; |
| 792 |
|
| 793 |
beginchar(17, 3u#,x_height#,4u#-.5stem#); %dotless j |
| 794 |
hpos(1)(stem,0); hpos(2)(stem,can); vpos(3)(stem,can); |
| 795 |
x1=.5w=x2; y1=-u; y2r=h; |
| 796 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 797 |
serif(2r)(angle(z2l-z2r),270); |
| 798 |
path p; |
| 799 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 800 |
.5[z10,z12]=.5[z11,z13]; y10=0; x10+.5stem=w-u; y10=y12; |
| 801 |
x11=x13; y11-y13=x10-x12; x12-.5stem=2u-(w+4u); |
| 802 |
p:= z10{down}..{left}z13..{up}z12..{right}z11..cycle; |
| 803 |
z3l=z13l; |
| 804 |
filldraw z3l{right}..{up}z1r--z2r--z2l--z1l{down}..{left}z3r--cycle; |
| 805 |
serif(3l)(angle(z3r-z3l),angle(direction 0 of (z3l..{right}z13r))); |
| 806 |
savep; |
| 807 |
penlabels(3,10,11,12,13); |
| 808 |
endchar; |
| 809 |
|
| 810 |
beginchar("j", 3u#,.15[asc_height#,x_height#],4u#-.5stem#); |
| 811 |
usep; |
| 812 |
z0=(.5w,h-.6stem); |
| 813 |
acc_dot(0); |
| 814 |
endchar; |
| 815 |
|
| 816 |
iff known latin_jcircumflex: |
| 817 |
beginchar(latin_jcircumflex, 5u#,asc_height#,4u#-.5stem#); |
| 818 |
addto currentpicture also used_p shifted (u,0); |
| 819 |
z0=(.5w,h); |
| 820 |
circumflex(0); |
| 821 |
endchar; |
| 822 |
|
| 823 |
beginchar("k", 8u#, cap_height#,0); |
| 824 |
hpos(1)(stem,can); hpos(2)(stem,can); hpos(4)(stem,-can); hpos(6)(stem,can); |
| 825 |
x1l=u=x2l; y1=0; y2r=h; x4r=x6r=w-u; y4r=x_height; y6=0; x5l=.25[x2r,x2l]; y5l=.6y4; |
| 826 |
penpos5(stem/cosd(angle(z4l-z5l)),0); |
| 827 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 828 |
filldraw z4l--z5l--z6l--z6r--z5r--z4r--cycle; |
| 829 |
serif(2r)(angle(z2l-z2r),270); serif(4r)(angle(z4l-z4r),180+ angle(z4r-z5r)); |
| 830 |
penlabels(1,2,3,4,5,6); |
| 831 |
savep; |
| 832 |
endchar; |
| 833 |
|
| 834 |
iff known latin_kcedilla: |
| 835 |
beginchar(latin_kcedilla, 8u#,cap_height#,.75desc_depth#-.5stem#); |
| 836 |
usep; |
| 837 |
z0=(.5w-u,0); |
| 838 |
cedilla(0); |
| 839 |
endchar; |
| 840 |
|
| 841 |
iff known latin_kra: |
| 842 |
"Greenlandic kra"; |
| 843 |
beginchar(latin_kra, 8u#, x_height#,0); |
| 844 |
hpos(1)(stem,can); hpos(2)(stem,can); hpos(4)(stem,-can); hpos(6)(stem,can); |
| 845 |
x1l=u=x2l; y1=0; y2r=h; x4r=x6r=w-u; y4r=x_height; y6=0; x5l=.25[x2r,x2l]; y5l=.6y4; |
| 846 |
penpos7(stem,-90); y7l=h; x7=.78w; |
| 847 |
x8l=w-u; z8r=z7r; y8l=y8r+stem+-+(x8l-x8r); |
| 848 |
penpos5(stem/cosd(angle(z4l-z5l)),0); |
| 849 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 850 |
filldraw z8l..z7l{left}..z5l--z6l--z6r--z5r..{right}z7r--cycle; |
| 851 |
serif(2r)(angle(z2l-z2r),270); |
| 852 |
penlabels(1,2,3,5,6,7,8); |
| 853 |
endchar; |
| 854 |
|
| 855 |
beginchar("l", 3u#,cap_height#,0); |
| 856 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 857 |
x1=.5w=x2; y1=0; y2r=h; |
| 858 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 859 |
serif(2r)(angle(z2l-z2r),270); |
| 860 |
savep; |
| 861 |
endchar; |
| 862 |
|
| 863 |
iff known latin_lacute: |
| 864 |
beginchar(latin_lacute, 3u#, Asc_height#,0); |
| 865 |
usep; |
| 866 |
z0=(2.75u,h); |
| 867 |
acute(0); |
| 868 |
endchar; |
| 869 |
|
| 870 |
iff known latin_lcaron: |
| 871 |
beginchar(latin_lcaron, 5u#, cap_height#,0); |
| 872 |
usep; |
| 873 |
z0=(w-1.5u,h); |
| 874 |
ac_caron(0); |
| 875 |
endchar; |
| 876 |
|
| 877 |
iff known latin_lstroke: |
| 878 |
beginchar(latin_lstroke, 5u#, cap_height#,0); |
| 879 |
addto currentpicture also (used_p shifted (u,0)); |
| 880 |
vpos(1)(stem,can); penpos2(stem,90); |
| 881 |
y1=.65h; y2=.8h; x1l=.5u; x2=w-.5u; |
| 882 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 883 |
penlabels(1,2); |
| 884 |
endchar; |
| 885 |
|
| 886 |
iff known latin_lcedilla: |
| 887 |
beginchar(latin_lcedilla, 5u#, cap_height#,.75desc_depth#-.5stem#); |
| 888 |
addto currentpicture also used_p shifted (u,0); |
| 889 |
z0=(.3w,.5stem); |
| 890 |
cedilla(0); |
| 891 |
endchar; |
| 892 |
|
| 893 |
iff known latin_ldot: |
| 894 |
beginchar(latin_ldot, 5u#, cap_height#,0); |
| 895 |
usep; |
| 896 |
z0=(3.5u,.6h); |
| 897 |
dot(0); |
| 898 |
endchar; |
| 899 |
|
| 900 |
beginchar("m", 12u#,x_height#,0); |
| 901 |
hpos(1)(stem,can); hpos(2)(stem,can); vpos(3)(stem,can); penpos4(stem,0); hpos(5)(stem,can); |
| 902 |
penpos6(stem,0); hpos(7)(stem,can); |
| 903 |
x1l=u=x2l; y1=y5=y7=0; y2r=h; y4=y6=.7h; x5=x4; x6r=x7r=w-u; x6r-x4r=x4r-x1r; |
| 904 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 905 |
serif(2r)(angle(z2l-z2r),270); |
| 906 |
path p; |
| 907 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 908 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w-3u)-u; y10=y12; x11=x13; y11-y13-u=x10-x12; x12-.5stem=u; |
| 909 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 910 |
z3l=z11l; |
| 911 |
filldraw z4r{up}..z11r{left}..{down}z12l--z12r{up}..{right}z11l..{down}z4l--z5l--z5r--cycle; |
| 912 |
filldraw z6r{up}..((z11r{left}..{down}z12l--z12r{up}..{right}z11l) shifted (z6r-z4r))..{down}z6l--z7l--z7r--cycle; |
| 913 |
penlabels(3); |
| 914 |
endchar; |
| 915 |
|
| 916 |
beginchar("n", 9u#,x_height#,0); |
| 917 |
hpos(1)(stem,can); hpos(2)(stem,can); vpos(3)(stem,can); penpos4(stem,0); hpos(5)(stem,can); |
| 918 |
x1l=u=x2l; y1=y5=0; y2r=h; y4=.7h; x5r=x4r=w-u; |
| 919 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 920 |
serif(2r)(angle(z2l-z2r),270); |
| 921 |
path p; |
| 922 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 923 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+1u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 924 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 925 |
z3l=z11l; |
| 926 |
filldraw z4r{up}..z11r{left}..{down}z12l--z12r{up}..{right}z11l..{down}z4l--z5l--z5r--cycle; |
| 927 |
penlabels(3); |
| 928 |
savep; |
| 929 |
endchar; |
| 930 |
|
| 931 |
iff known latin_ncaron: |
| 932 |
beginchar(latin_ncaron,9u#,asc_height#,0); |
| 933 |
usep; |
| 934 |
z0=(.5w+.5u,h); |
| 935 |
caron(0); |
| 936 |
endchar; |
| 937 |
|
| 938 |
iff known latin_nacute: |
| 939 |
beginchar(latin_nacute,9u#,asc_height#,0); |
| 940 |
usep; |
| 941 |
z0=(.5w+1.5u,h); |
| 942 |
acute(0); |
| 943 |
endchar; |
| 944 |
|
| 945 |
iff known latin_ntilde: |
| 946 |
beginchar(latin_ntilde,9u#,asc_height#,0); |
| 947 |
usep; |
| 948 |
z0=(.5w,h); |
| 949 |
acc_tilde(0); |
| 950 |
endchar; |
| 951 |
|
| 952 |
iff known latin_ncedilla: |
| 953 |
beginchar(latin_ncedilla,9u#,x_height#,.75desc_depth#-.5stem#); |
| 954 |
usep; |
| 955 |
z0=(.5w-.75u,0); |
| 956 |
cedilla(0); |
| 957 |
endchar; |
| 958 |
|
| 959 |
iff known latin_napostrophe: |
| 960 |
beginchar(latin_napostrophe,10.5u#,asc_height#,0); |
| 961 |
addto currentpicture also used_p shifted (1.5u,0); |
| 962 |
z0=(2u,h); |
| 963 |
quota(0); |
| 964 |
endchar; |
| 965 |
|
| 966 |
iff known latin_eng: |
| 967 |
beginchar(latin_eng, 9u#,x_height#,desc_depth#); |
| 968 |
hpos(1)(stem,can); hpos(2)(stem,can); vpos(3)(stem,can); penpos4(stem,0); hpos(5)(stem,can); |
| 969 |
x1l=u=x2l; y1=0; y5=-d; y2r=h; y4=.7h; x5r=x4r=w-u; |
| 970 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 971 |
serif(2r)(angle(z2l-z2r),270); |
| 972 |
path p; |
| 973 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 974 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+1u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 975 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 976 |
z3l=z11l; |
| 977 |
filldraw z4r{up}..z11r{left}..{down}z12l--z12r{up}..{right}z11l..{down}z4l--z5l--z5r--cycle; |
| 978 |
penlabels(1,2,3,4,5); |
| 979 |
endchar; |
| 980 |
|
| 981 |
beginchar("o", 10u#,x_height#,0); |
| 982 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 983 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 984 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 985 |
savep; |
| 986 |
endchar; |
| 987 |
|
| 988 |
iff known latin_oacute: |
| 989 |
beginchar(latin_oacute,10u#,asc_height#,0); |
| 990 |
usep; |
| 991 |
z0=(6.5u,h); |
| 992 |
acute(0); |
| 993 |
endchar; |
| 994 |
|
| 995 |
iff known latin_oacute: |
| 996 |
beginchar(latin_ograve,10u#,asc_height#,0); |
| 997 |
usep; |
| 998 |
z0=(4u,h); |
| 999 |
grave(0); |
| 1000 |
endchar; |
| 1001 |
|
| 1002 |
iff known latin_ocircumflex: |
| 1003 |
beginchar(latin_ocircumflex,10u#,asc_height#,0); |
| 1004 |
usep; |
| 1005 |
z0=(.5w,h); |
| 1006 |
circumflex(0); |
| 1007 |
endchar; |
| 1008 |
|
| 1009 |
iff known latin_oumlaut: |
| 1010 |
beginchar(latin_oumlaut,10u#,.15[asc_height#,x_height#],0); |
| 1011 |
usep; |
| 1012 |
z0=(.5w,h-.6stem); |
| 1013 |
umlaut(0); |
| 1014 |
endchar; |
| 1015 |
|
| 1016 |
iff known latin_otilde: |
| 1017 |
beginchar(latin_otilde,10u#,asc_height#,0); |
| 1018 |
usep; |
| 1019 |
z0=(.5w+.5u,h); |
| 1020 |
acc_tilde(0); |
| 1021 |
endchar; |
| 1022 |
|
| 1023 |
iff known latin_omacron: |
| 1024 |
beginchar(latin_omacron,10u#,asc_height#,0); |
| 1025 |
usep; |
| 1026 |
z0=(.5w,h); |
| 1027 |
macron(0); |
| 1028 |
endchar; |
| 1029 |
|
| 1030 |
iff known latin_obreve: |
| 1031 |
beginchar(latin_obreve,10u#,asc_height#,0); |
| 1032 |
usep; |
| 1033 |
z0=(.5w+.25u,h); |
| 1034 |
breve(0); |
| 1035 |
endchar; |
| 1036 |
|
| 1037 |
iff known latin_ohungarumlaut: |
| 1038 |
beginchar(latin_ohungarumlaut,10u#,asc_height#,0); |
| 1039 |
usep; |
| 1040 |
z0=(.5w+u,h); |
| 1041 |
H_umlaut(0); |
| 1042 |
endchar; |
| 1043 |
|
| 1044 |
beginchar("p", 10u#,x_height#,desc_depth#); |
| 1045 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 1046 |
x1l=u=x2l; y1=-d; y2r=h; |
| 1047 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1048 |
serif(2r)(angle(z2l-z2r),270); |
| 1049 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 1050 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 1051 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 1052 |
endchar; |
| 1053 |
|
| 1054 |
iff known latin_thorn: |
| 1055 |
beginchar(latin_thorn, 10u#,cap_height#,desc_depth#); |
| 1056 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 1057 |
x1l=u=x2l; y1=-d; y2r=h; |
| 1058 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1059 |
serif(2r)(angle(z2l-z2r),270); |
| 1060 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 1061 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 1062 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 1063 |
endchar; |
| 1064 |
|
| 1065 |
beginchar("q", 10u#,x_height#,desc_depth#); |
| 1066 |
hpos(1)(stem,can); hpos(2)(stem,-can); |
| 1067 |
x1r=w-u=x2r; y1=-d; y2l=h; |
| 1068 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1069 |
z2l'=z2l+.45stem*down; |
| 1070 |
serif(2l')(angle(z2r-z2l),90); |
| 1071 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 1072 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 1073 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 1074 |
endchar; |
| 1075 |
|
| 1076 |
beginchar("r", 6u#,x_height#,0); |
| 1077 |
hpos(1)(stem,can); hpos(2)(stem,can); vpos(3)(stem,can); |
| 1078 |
x1l=u=x2l; y1=0; y2r=h; |
| 1079 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1080 |
path p; |
| 1081 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 1082 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+4u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 1083 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1084 |
z3l=z11l; |
| 1085 |
filldraw z3r..z11r{left}..{down}z12l--z12r{up}..{right}z11l--cycle; |
| 1086 |
serif(2r)(angle(z2l-z2r),270); serif(3r)(angle(z3l-z3r),180+angle(direction 0 of (z3r..{left}z11r))); |
| 1087 |
penlabels(3); |
| 1088 |
savep; |
| 1089 |
endchar; |
| 1090 |
|
| 1091 |
iff known latin_rcaron: |
| 1092 |
beginchar(latin_rcaron,6u#,asc_height#,0); |
| 1093 |
usep; |
| 1094 |
z0=(.5w+.2u,h); |
| 1095 |
caron(0); |
| 1096 |
endchar; |
| 1097 |
|
| 1098 |
iff known latin_racute: |
| 1099 |
beginchar(latin_racute,6u#,asc_height#,0); |
| 1100 |
usep; |
| 1101 |
z0=(.5w-.2u,h); |
| 1102 |
acute(0); |
| 1103 |
endchar; |
| 1104 |
|
| 1105 |
iff known latin_rcedilla: |
| 1106 |
beginchar(latin_rcedilla,6u#,x_height#,.75desc_depth#-stem#); |
| 1107 |
usep; |
| 1108 |
z0=(1.5u,stem); |
| 1109 |
cedilla(0); |
| 1110 |
endchar; |
| 1111 |
|
| 1112 |
beginchar("s",8u#,x_height#,0); |
| 1113 |
numeric theta; |
| 1114 |
path p; |
| 1115 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 1116 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w); y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=0; |
| 1117 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1118 |
z1=point .5 of p; |
| 1119 |
z2=point 1.5 of p; |
| 1120 |
z3=point 2.5 of p; |
| 1121 |
z4=point 3.5 of p; |
| 1122 |
theta:=280+angle(z4-z2); |
| 1123 |
penpos1(stem,(170-angle(direction .5 of p))); penpos2(stem,theta); |
| 1124 |
penpos3(stem,(-10-angle(direction 2.5 of p))); penpos4(stem,theta); |
| 1125 |
penpos5(stem,theta); z5=(.5w,.5h); |
| 1126 |
%z2l'=z2l+(.8stem,0) rotated (90+theta); |
| 1127 |
z2l'=z2r+1.1stem*dir10; |
| 1128 |
z4r'=z4r+(.8stem,0) rotated (theta-90); |
| 1129 |
filldraw z1r..{left}z11r..z2r..z5r..z4r'..{left}z13r..z3r--z3l..{right}z13l..z4l..z5l..z2l'..{right}z11l..z1l--cycle; |
| 1130 |
penlabels(1,2,3,4,5,11); |
| 1131 |
labels(2l',4r'); |
| 1132 |
serif(1r)(angle(z1l-z1r),90-angle(direction 0 of (z1r..{left}z11r))); |
| 1133 |
savep; |
| 1134 |
endchar; |
| 1135 |
|
| 1136 |
iff known latin_scaron: |
| 1137 |
beginchar(latin_scaron,8u#,asc_height#,0); |
| 1138 |
usep; |
| 1139 |
z0=(.5w+.3u,h); |
| 1140 |
caron(0); |
| 1141 |
endchar; |
| 1142 |
|
| 1143 |
iff known latin_sacute: |
| 1144 |
beginchar(latin_sacute,8u#,asc_height#,0); |
| 1145 |
usep; |
| 1146 |
z0=(.5w+u,h); |
| 1147 |
acute(0); |
| 1148 |
endchar; |
| 1149 |
|
| 1150 |
iff known latin_scircumflex: |
| 1151 |
beginchar(latin_scircumflex,8u#,asc_height#,0); |
| 1152 |
usep; |
| 1153 |
z0=(.5w+.25u,h); |
| 1154 |
circumflex(0); |
| 1155 |
endchar; |
| 1156 |
|
| 1157 |
iff known latin_scedilla: |
| 1158 |
beginchar(latin_scedilla,8u#,x_height#,.75desc_depth#-.5stem#); |
| 1159 |
usep; |
| 1160 |
z0=(.5w-u,.5stem); |
| 1161 |
cedilla(0); |
| 1162 |
endchar; |
| 1163 |
|
| 1164 |
beginchar("t", 7u#,.5[x_height#,cap_height#],0); |
| 1165 |
hpos(1)(stem,0); hpos(2)(stem,can); vpos(3)(stem,-can); |
| 1166 |
vpos(4)(stem,can); penpos5(stem,90); |
| 1167 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 1168 |
x1l=2u=x2l; y2r=h; |
| 1169 |
path p; |
| 1170 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 1171 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+4u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 1172 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1173 |
z3l=z13l; y1=y12-2u; |
| 1174 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1175 |
filldraw z12r+2u*down{down}..{right}z3r--z3l{left}..{up}z12l+2u*down--cycle; |
| 1176 |
filldraw z4l--z5l--z5r--z4r--cycle; |
| 1177 |
serif(3l)(angle(z3r-z3l),+angle(direction 0 of (z3r..{left}z13r))); |
| 1178 |
penlabels(1,2,3,4,5); |
| 1179 |
savep; |
| 1180 |
endchar; |
| 1181 |
|
| 1182 |
iff known latin_tcaron: |
| 1183 |
beginchar(latin_tcaron,7u#,.4[cap_height#,x_height#],0); |
| 1184 |
usep; |
| 1185 |
z0=(2u+2stem+.5u,h); |
| 1186 |
ac_caron(0); |
| 1187 |
endchar; |
| 1188 |
|
| 1189 |
iff known latin_tcommaaccent: |
| 1190 |
beginchar(latin_tcommaaccent,7u#,.5[cap_height#,x_height#],2.5u#); |
| 1191 |
usep; |
| 1192 |
y1r=-.5u; y2l=-d; x1r-x2l=2u; .5[x1r,x2l]=.5w; |
| 1193 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 1194 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 1195 |
endchar; |
| 1196 |
|
| 1197 |
iff known latin_tbar: |
| 1198 |
beginchar(latin_tbar,7u#,.4[cap_height#,x_height#],0); |
| 1199 |
usep; |
| 1200 |
vpos(1)(.75stem,can); vpos(2)(.75stem,0); |
| 1201 |
lft x1l=u; rt x2=w-2u; y1=y2=.7x_height; |
| 1202 |
filldraw z1r--z2r--z2l--z1l--cycle; |
| 1203 |
penlabels(1,2); |
| 1204 |
endchar; |
| 1205 |
|
| 1206 |
beginchar("u", 9u#,x_height#,0); |
| 1207 |
hpos(1)(stem,can); hpos(2)(stem,-can); vpos(3)(stem,can); penpos4(stem,0); hpos(5)(stem,can); |
| 1208 |
x1r=w-u=x2r; y1=0; y2l=y5r=h; y4=.3h; x5l=u; x4r=w-u; |
| 1209 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1210 |
serif(2r)(angle(z2l-z2r),270); |
| 1211 |
path p; |
| 1212 |
penpos10(stem,180);penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 1213 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+0u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 1214 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1215 |
filldraw z10l{down}..z13l{left}..{up}z12l--z5l--z5r--z12r{down}..{right}z13r..{up}z10r--cycle; |
| 1216 |
serif(5r)(angle(z5l-z5r),270); |
| 1217 |
penlabels(1,2,3,4,5,6); |
| 1218 |
savep; |
| 1219 |
endchar; |
| 1220 |
|
| 1221 |
iff known latin_uacute: |
| 1222 |
beginchar(latin_uacute,9u#,asc_height#,0); |
| 1223 |
usep; |
| 1224 |
z0=(5u,h); |
| 1225 |
acute(0); |
| 1226 |
endchar; |
| 1227 |
|
| 1228 |
iff known latin_ugrave: |
| 1229 |
beginchar(latin_ugrave,9u#,asc_height#,0); |
| 1230 |
usep; |
| 1231 |
z0=(3.5u,h); |
| 1232 |
grave(0); |
| 1233 |
endchar; |
| 1234 |
|
| 1235 |
iff known latin_ucircumflex: |
| 1236 |
beginchar(latin_ucircumflex,9u#,asc_height#,0); |
| 1237 |
usep; |
| 1238 |
z0=(.5w,h); |
| 1239 |
circumflex(0); |
| 1240 |
endchar; |
| 1241 |
|
| 1242 |
iff known latin_uring: |
| 1243 |
beginchar(latin_uring,9u#, asc_height#,0); |
| 1244 |
usep; |
| 1245 |
z0=(.5w,h); |
| 1246 |
ring(0); |
| 1247 |
endchar; |
| 1248 |
|
| 1249 |
iff known latin_utilde: |
| 1250 |
beginchar(latin_utilde,9u#, asc_height#,0); |
| 1251 |
usep; |
| 1252 |
z0=(.5w,h); |
| 1253 |
acc_tilde(0); |
| 1254 |
endchar; |
| 1255 |
|
| 1256 |
iff known latin_uumlaut: |
| 1257 |
beginchar(latin_uumlaut,9u#, .15[asc_height#,x_height#],0); |
| 1258 |
usep; |
| 1259 |
z0=(.5w,h-.6stem); |
| 1260 |
umlaut(0); |
| 1261 |
endchar; |
| 1262 |
|
| 1263 |
iff known latin_umacron: |
| 1264 |
beginchar(latin_umacron,9u#, asc_height#,0); |
| 1265 |
usep; |
| 1266 |
z0=(.5w,h); |
| 1267 |
macron(0); |
| 1268 |
endchar; |
| 1269 |
|
| 1270 |
iff known latin_ubreve: |
| 1271 |
beginchar(latin_ubreve,9u#, asc_height#,0); |
| 1272 |
usep; |
| 1273 |
z0=(.5w,h); |
| 1274 |
breve(0); |
| 1275 |
endchar; |
| 1276 |
|
| 1277 |
iff known latin_uhungarumlaut: |
| 1278 |
beginchar(latin_uhungarumlaut,9u#, asc_height#,0); |
| 1279 |
usep; |
| 1280 |
z0=(.5w+.75u,h); |
| 1281 |
H_umlaut(0); |
| 1282 |
endchar; |
| 1283 |
|
| 1284 |
iff known latin_uogonek: |
| 1285 |
beginchar(latin_uogonek,9u#, x_height#,desc_depth#); |
| 1286 |
usep; |
| 1287 |
z0=(.5w+.75u,0); |
| 1288 |
ogonek(0); |
| 1289 |
endchar; |
| 1290 |
|
| 1291 |
beginchar("v", 10u#,x_height#,0); |
| 1292 |
numeric theta; |
| 1293 |
hpos(1)(stem,-can); hpos(2)(stem,can); |
| 1294 |
x1r=w-u; y1l=h=y2r; x2l=u; z3l=(.5w,0); |
| 1295 |
theta:=90+angle(z1r-z3l); |
| 1296 |
penpos3(stem/sind(theta),90); |
| 1297 |
filldraw z1l--z3r--z2r--z2l--z3l--z1r--cycle; |
| 1298 |
penlabels(1,2,3,4); |
| 1299 |
serif(1r)(angle(z1l-z1r),180+angle(z1r-z3r));serif(2r)(angle(z2l-z2r),180+angle(z2r-z3r)); |
| 1300 |
endchar; |
| 1301 |
|
| 1302 |
beginchar("w", 14u#,x_height#,0); |
| 1303 |
numeric theta; |
| 1304 |
hpos(1)(stem,-can); hpos(2)(stem,can); |
| 1305 |
x1r=w-u; y1l=h=y2r; x2l=u; z3r=(.5w,h); y4l=y5l=0; .5[x4l,x5l]=x3; x5l=.75w-u; |
| 1306 |
theta:=90+angle(z1r-z5l); |
| 1307 |
penpos4(stem/sind(theta),90); penpos5(stem/sind(theta),90); |
| 1308 |
penpos3(stem/cosd(angle(z5r-z3r)),90); |
| 1309 |
z4'=whatever[z2r,z4r]=whatever[z3r,z4l+z3r-z3l]; |
| 1310 |
z5'=whatever[z1r,z5r]=whatever[z3r,z5l+z3r-z3l]; |
| 1311 |
filldraw z1l--z1r--z5l--z3l--z4l--z2l--z2r--z4'--z3r--z5'--cycle; |
| 1312 |
penlabels(1,2,3,4,5); |
| 1313 |
serif(1r)(angle(z1l-z1r),180+angle(z1r-z3r));serif(2r)(angle(z2l-z2r),180+angle(z2r-z3r)); |
| 1314 |
savep; |
| 1315 |
endchar; |
| 1316 |
|
| 1317 |
iff known latin_wcircumflex: |
| 1318 |
beginchar(latin_wcircumflex,14u#, asc_height#,0); |
| 1319 |
usep; |
| 1320 |
z0=(.5w,h); |
| 1321 |
circumflex(0); |
| 1322 |
endchar; |
| 1323 |
|
| 1324 |
beginchar("x", 8.5u#,x_height#,0); |
| 1325 |
numeric theta; |
| 1326 |
hpos(1)(stem,-can); hpos(2)(stem,can); |
| 1327 |
hpos(3)(stem,-can); hpos(4)(stem,can); |
| 1328 |
x1r=w-u=x4r; y1l=h=y2r; x2l=x3l=u; y3r=y4l=0; |
| 1329 |
filldraw z1l--z3l--z3r--z1r--cycle; |
| 1330 |
filldraw z2l--z4l--z4r--z2r--cycle; |
| 1331 |
penlabels(1,2,3,4); |
| 1332 |
serif(1r)(angle(z1l-z1r),180+angle(z1r-z3r));serif(2r)(angle(z2l-z2r),180+angle(z2r-z4r)); |
| 1333 |
endchar; |
| 1334 |
|
| 1335 |
beginchar("y", 10u#,x_height#,desc_depth#); |
| 1336 |
hpos(1)(stem,-can); hpos(2)(stem,-can); hpos(3)(stem,can); |
| 1337 |
x1r=w-u; y1l=h=y3r; x3l=u; y2r=-d; x2l=2u; z4l=whatever[z1l,z2l]; y4l=c_height; |
| 1338 |
z4r=z4l+(stem/sind(angle(z3l-z4l)),0) rotated (angle(z1l-z4l)-10); |
| 1339 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1340 |
filldraw z3l--z3r--z4r--z4l--cycle; |
| 1341 |
penlabels(1,2,3,4); |
| 1342 |
serif(3r)(angle(z3l-z3r),180+angle(z3r-z4r));serif(1r)(angle(z1l-z1r),180+angle(z1r-z2r)); |
| 1343 |
savep; |
| 1344 |
endchar; |
| 1345 |
|
| 1346 |
iff known latin_yacute: |
| 1347 |
beginchar(latin_yacute, 10u#,asc_height#,desc_depth#); |
| 1348 |
usep; |
| 1349 |
z0=(.5w+.5u,h); |
| 1350 |
acute(0); |
| 1351 |
endchar; |
| 1352 |
|
| 1353 |
iff known latin_yumlaut: |
| 1354 |
beginchar(latin_yumlaut,10u#, .15[asc_height#,x_height#],desc_depth#); |
| 1355 |
usep; |
| 1356 |
z0=(.5w,h-.6stem); |
| 1357 |
umlaut(0); |
| 1358 |
endchar; |
| 1359 |
|
| 1360 |
iff known latin_ycircumflex: |
| 1361 |
beginchar(latin_ycircumflex, 10u#,asc_height#,desc_depth#); |
| 1362 |
usep; |
| 1363 |
z0=(.5w,h); |
| 1364 |
circumflex(0); |
| 1365 |
endchar; |
| 1366 |
|
| 1367 |
beginchar("z", 8u#, x_height#, 0); |
| 1368 |
vpos(1)(stem,can); vpos(4)(stem,0); |
| 1369 |
x1l=u=x3; x2=w-u=x4r; y1r=h=y2; y4l=y3=0; |
| 1370 |
y3'=stem; y2'=h-stem; x3'-x3=x2-x2'; y2''=h; x2''=x2-1.2stem; z2'=whatever[z3,z2'']; |
| 1371 |
filldraw z1r--z2--z3'--z4r--z4l--z3--z2'--z1l--cycle; |
| 1372 |
serif(1r)(angle(z1l-z1r),0); |
| 1373 |
penlabels(1,4); labels(2,2',3,3'); |
| 1374 |
savep; |
| 1375 |
endchar; |
| 1376 |
|
| 1377 |
iff known latin_zcaron: |
| 1378 |
beginchar(latin_zcaron,8u#,asc_height#,0); |
| 1379 |
usep; |
| 1380 |
z0=(.5w,h); |
| 1381 |
caron(0); |
| 1382 |
endchar; |
| 1383 |
|
| 1384 |
iff known latin_zacute: |
| 1385 |
beginchar(latin_zacute,8u#,asc_height#,0); |
| 1386 |
usep; |
| 1387 |
z0=(.5w+u,h); |
| 1388 |
acute(0); |
| 1389 |
endchar; |
| 1390 |
|
| 1391 |
iff known latin_zdotabove: |
| 1392 |
beginchar(latin_zdotabove,8u#,.15[asc_height#,x_height#],0); |
| 1393 |
usep; |
| 1394 |
z0=(.5w,h-.6stem); |
| 1395 |
acc_dot(0); |
| 1396 |
endchar; |
| 1397 |
|
| 1398 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Uppercase |
| 1399 |
beginchar("A", 14u#,cap_height#,0); |
| 1400 |
numeric theta; |
| 1401 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,-can); |
| 1402 |
x1r=w-u; y1l=0=y2r; x2l=u; z3r=(.5w,h); |
| 1403 |
theta:=90+angle(z1r-z3r); |
| 1404 |
penpos3(cap_stem/sind(theta),90); |
| 1405 |
filldraw z1r--z3r--z2l--z2r--z3l--z1l--cycle; |
| 1406 |
y4r-y4l=cap_stem; y5r=y4r; y5l=y4l; .5[y4r,y4l]=.6x_height; |
| 1407 |
z4r=whatever[z1,z3]; z4l=whatever[z1,z3]; z5l=whatever[z3,z2]; z5r=whatever[z3,z2]; |
| 1408 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 1409 |
penlabels(1,2,3,4,5); |
| 1410 |
savep; |
| 1411 |
endchar; |
| 1412 |
|
| 1413 |
iff known latin_Aacute: |
| 1414 |
beginchar(latin_Aacute,14u#,Asc_height#,0); |
| 1415 |
usep; |
| 1416 |
z0=(.5w,h); |
| 1417 |
acute(0).low; |
| 1418 |
endchar; |
| 1419 |
|
| 1420 |
iff known latin_Aumlaut: |
| 1421 |
beginchar(latin_Aumlaut,14u#,.3[Asc_height#,cap_height#],0); |
| 1422 |
usep; |
| 1423 |
z0=(.5w,h-.6stem); |
| 1424 |
umlaut(0); |
| 1425 |
endchar; |
| 1426 |
|
| 1427 |
iff known latin_Agrave: |
| 1428 |
beginchar(latin_Agrave,14u#,Asc_height#,0); |
| 1429 |
usep; |
| 1430 |
z0=(.5w,h); |
| 1431 |
grave(0).low; |
| 1432 |
endchar; |
| 1433 |
|
| 1434 |
iff known latin_Acircumflex: |
| 1435 |
beginchar(latin_Acircumflex,14u#,Asc_height#,0); |
| 1436 |
usep; |
| 1437 |
z0=(.5w,h); |
| 1438 |
circumflex(0).low; |
| 1439 |
endchar; |
| 1440 |
|
| 1441 |
iff known latin_Atilde: |
| 1442 |
beginchar(latin_Atilde,14u#,Asc_height#,0); |
| 1443 |
usep; |
| 1444 |
z0=(.5w+.5u,h); |
| 1445 |
acc_tilde(0).low; |
| 1446 |
endchar; |
| 1447 |
|
| 1448 |
iff known latin_Amacron: |
| 1449 |
beginchar(latin_Amacron,14u#,Asc_height#,0); |
| 1450 |
usep; |
| 1451 |
z0=(.5w,h); |
| 1452 |
macron(0); |
| 1453 |
endchar; |
| 1454 |
|
| 1455 |
iff known latin_Abreve: |
| 1456 |
beginchar(latin_Abreve,14u#,Asc_height#,0); |
| 1457 |
usep; |
| 1458 |
z0=(.5w,h); |
| 1459 |
breve(0); |
| 1460 |
endchar; |
| 1461 |
|
| 1462 |
iff known latin_Aring: |
| 1463 |
beginchar(latin_Aring,14u#,Asc_height#-1.25u#-.75cap_stem#,0); |
| 1464 |
usep; |
| 1465 |
z0=(.5w,h); |
| 1466 |
ring(0).low; |
| 1467 |
endchar; |
| 1468 |
|
| 1469 |
iff known latin_Aogonek: |
| 1470 |
beginchar(latin_Aogonek,14u#,cap_height#,desc_depth#); |
| 1471 |
numeric theta; |
| 1472 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,-can); |
| 1473 |
x1r=w-u; y1l=0=y2r; x2l=u; z3r=(.5w,h); |
| 1474 |
theta:=90+angle(z1r-z3r); |
| 1475 |
penpos3(cap_stem/sind(theta),90); |
| 1476 |
filldraw z1r--z3r--z2l--z2r--z3l--z1l--cycle; |
| 1477 |
y4r-y4l=cap_stem; y5r=y4r; y5l=y4l; .5[y4r,y4l]=.6x_height; |
| 1478 |
z4r=whatever[z1,z3]; z4l=whatever[z1,z3]; z5l=whatever[z3,z2]; z5r=whatever[z3,z2]; |
| 1479 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 1480 |
penlabels(1,2,3,4,5); |
| 1481 |
.5[z20,z22]=.5[z21,z23]; y23=-d+.5stem; x20+.5stem=(w+u)-u; y20=y22; x21=x23; y21-y23=x20-x22; y21=-.5stem; |
| 1482 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 1483 |
p:= z20{up}..{left}z21..{down}z22..{right}z23..cycle; |
| 1484 |
vpos(24)(stem,-can); z24=point 3.5 of p; penpos25(stem,135); |
| 1485 |
filldraw z22l{down}..z23l..{direction 3.5 of p}z24r--z24l{dir (angle(direction 3.5 of p)-180)}..z23r..{up}z22r..{z1l-z22r}z1l--z1r{down}..z21l..cycle; |
| 1486 |
penlabels(20,21,22,23,24,25); |
| 1487 |
endchar; |
| 1488 |
|
| 1489 |
beginchar("B", 12u#,cap_height#,0); |
| 1490 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); |
| 1491 |
x1l=u=x2l; y1=0; y2r=h; |
| 1492 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1493 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; y13=.5h;%x12-.5cap_stem=2u; |
| 1494 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 1495 |
penpos2'(cap_stem,90); penpos2''(cap_stem,270); |
| 1496 |
.5[y2'',y2']=y10; x2'=x2''=x2r; y2'r=y2r; |
| 1497 |
filldraw z2'r---z11r..{down}z10r..{left}z13r---z2''r--z2''l---z13l{right}..{up}z10l..{left}z11l---z2'l--cycle; |
| 1498 |
filldraw (z2'r---z11r..{down}z10r..{left}z13r---z2''r--z2''l---z13l{right}..{up}z10l..{left}z11l---z2'l--cycle) shifted (0,-.5h+.5cap_stem); |
| 1499 |
endchar; |
| 1500 |
|
| 1501 |
beginchar("C", 12.5u#,cap_height#,0); |
| 1502 |
path p; |
| 1503 |
penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 1504 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=(w+4u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 1505 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1506 |
z1=point .68 of p; |
| 1507 |
z2=point 3.28 of p; |
| 1508 |
vpos(1)(cap_stem,-.5can); vpos(2)(cap_stem,.5can); |
| 1509 |
filldraw z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1l--cycle; |
| 1510 |
penlabels(1,2); |
| 1511 |
savep; |
| 1512 |
endchar; |
| 1513 |
|
| 1514 |
iff known latin_Ccaron: |
| 1515 |
beginchar(latin_Ccaron,12.5u#,Asc_height#,0); |
| 1516 |
usep; |
| 1517 |
z0=(.65w,h); |
| 1518 |
caron(0).low; |
| 1519 |
endchar; |
| 1520 |
|
| 1521 |
iff known latin_Cacute: |
| 1522 |
beginchar(latin_Cacute,12.5u#,Asc_height#,0); |
| 1523 |
usep; |
| 1524 |
z0=(.75w,h); |
| 1525 |
acute(0).low; |
| 1526 |
endchar; |
| 1527 |
|
| 1528 |
iff known latin_Ccircumflex: |
| 1529 |
beginchar(latin_Ccircumflex,12.5u#,Asc_height#,0); |
| 1530 |
usep; |
| 1531 |
z0=(.5w+2u,h); |
| 1532 |
circumflex(0).low; |
| 1533 |
endchar; |
| 1534 |
|
| 1535 |
iff known latin_Cdotabove: |
| 1536 |
beginchar(latin_Cdotabove,12.5u#,.3[Asc_height#,cap_height#],0); |
| 1537 |
usep; |
| 1538 |
z0=(.5w+2u,h-.6stem); |
| 1539 |
acc_dot(0); |
| 1540 |
endchar; |
| 1541 |
|
| 1542 |
iff known latin_Ccedilla: |
| 1543 |
beginchar(latin_Ccedilla,12.5u#,Asc_height#,.75desc_depth#-.5stem#); |
| 1544 |
usep; |
| 1545 |
z0=(.5w,.5stem); |
| 1546 |
cedilla(0); |
| 1547 |
endchar; |
| 1548 |
|
| 1549 |
iff known sign_euro: |
| 1550 |
beginchar(sign_euro,11u#,cap_height#,0); |
| 1551 |
path p; |
| 1552 |
penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 1553 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=(w+3.5u)-u; y10=y12; x11=x13; y11=h-.5cap_stem; x12-.5cap_stem=u; |
| 1554 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1555 |
z1=point .68 of p; |
| 1556 |
z2=point 3.28 of p; |
| 1557 |
vpos(1)(cap_stem,-.5can); vpos(2)(cap_stem,.5can); |
| 1558 |
filldraw z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1l--cycle; |
| 1559 |
penpos3(.75stem,90); vpos(4)(.75stem,can); y3=.55h; y4=.6h; |
| 1560 |
x4r=.75w; x3l=x12; |
| 1561 |
filldraw z3r--z4r--z4l--z3l--cycle; |
| 1562 |
filldraw (z3r--z4r--z4l--z3l--cycle) shifted (0,-2stem); |
| 1563 |
penlabels(1,2,3,4); |
| 1564 |
endchar; |
| 1565 |
|
| 1566 |
beginchar("D", 13u#,cap_height#,0); |
| 1567 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); |
| 1568 |
x1l=u=x2l; y1=0; y2r=h; |
| 1569 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1570 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 1571 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y13=.5cap_stem; x12-.5cap_stem=0; |
| 1572 |
penpos2'(cap_stem,90); penpos2''(cap_stem,270); |
| 1573 |
.5[y2'',y2']=y10; x2'=x2''=x2r; y2'r=y2r; |
| 1574 |
filldraw z2'r---z11r..{down}z10r..{left}z13r---z2''r--z2''l---z13l{right}..{up}z10l..{left}z11l---z2'l--cycle; |
| 1575 |
savep; |
| 1576 |
endchar; |
| 1577 |
|
| 1578 |
iff known latin_Dcaron: |
| 1579 |
beginchar(latin_Dcaron,13u#,Asc_height#,0); |
| 1580 |
usep; |
| 1581 |
z0=(.35w,h); |
| 1582 |
caron(0).low; |
| 1583 |
endchar; |
| 1584 |
|
| 1585 |
iff known latin_Dstroke: |
| 1586 |
beginchar(latin_Dstroke,14u#,cap_height#,0); |
| 1587 |
addto currentpicture also used_p shifted (u,0); |
| 1588 |
z0=(3u,.55h); |
| 1589 |
macron(0); |
| 1590 |
endchar; |
| 1591 |
|
| 1592 |
iff known latin_Eth: |
| 1593 |
beginchar(latin_Eth,14u#,cap_height#,0); |
| 1594 |
addto currentpicture also used_p shifted (u,0); |
| 1595 |
z0=(3u,.55h); |
| 1596 |
macron(0); |
| 1597 |
endchar; |
| 1598 |
|
| 1599 |
beginchar("E", 11u#,cap_height#,0); |
| 1600 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); vpos(3)(cap_stem,-can); penpos4(cap_stem,90); vpos(5)(cap_stem,0); vpos(6)(cap_stem,can); |
| 1601 |
x1l=u=x2l; y1=y6l=0; y2r=h; y3r=h; x3l=x6r=w-u; x2r=x4; y4=y5=.5h; x5r=.75[x2r,x3r]; |
| 1602 |
filldraw z1l--z2l--z3r--z3l--(x2r,y3l)--z4r--z5r--z5l--z4l--(x1r,y6r)--z6r--z6l--cycle; |
| 1603 |
penlabels(1,2,3,4,5,6); |
| 1604 |
savep; |
| 1605 |
endchar; |
| 1606 |
|
| 1607 |
iff known latin_Eacute: |
| 1608 |
beginchar(latin_Eacute,11u#,Asc_height#,0); |
| 1609 |
usep; |
| 1610 |
z0=(.5w,h); |
| 1611 |
acute(0).low; |
| 1612 |
endchar; |
| 1613 |
|
| 1614 |
iff known latin_Ecaron: |
| 1615 |
beginchar(latin_Ecaron,11u#,Asc_height#,0); |
| 1616 |
usep; |
| 1617 |
z0=(.5w,h); |
| 1618 |
caron(0).low; |
| 1619 |
endchar; |
| 1620 |
|
| 1621 |
iff known latin_Emacron: |
| 1622 |
beginchar(latin_Emacron,11u#,Asc_height#,0); |
| 1623 |
usep; |
| 1624 |
z0=(.5w,h); |
| 1625 |
macron(0); |
| 1626 |
endchar; |
| 1627 |
|
| 1628 |
iff known latin_Edotabove: |
| 1629 |
beginchar(latin_Edotabove,11u#,.3[Asc_height#,cap_height#],0); |
| 1630 |
usep; |
| 1631 |
z0=(.5w+.3u,h-.6stem); |
| 1632 |
acc_dot(0); |
| 1633 |
endchar; |
| 1634 |
|
| 1635 |
iff known latin_Ebreve: |
| 1636 |
beginchar(latin_Ebreve,11u#,Asc_height#,0); |
| 1637 |
usep; |
| 1638 |
z0=(.5w,h); |
| 1639 |
breve(0); |
| 1640 |
endchar; |
| 1641 |
|
| 1642 |
iff known latin_Eogonek: |
| 1643 |
beginchar(latin_Eogonek,11u#,cap_height#,desc_depth#); |
| 1644 |
usep; |
| 1645 |
.5[z20,z22]=.5[z21,z23]; y23=-d+.5stem; x20+.5stem=(w+u)-u; y20=y22; x21=x23; y21-y23=x20-x22; y21=-.5stem; |
| 1646 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 1647 |
p:= z20{up}..{left}z21..{down}z22..{right}z23..cycle; |
| 1648 |
vpos(24)(stem,-can); z24=point 3.5 of p; penpos25(stem,135); |
| 1649 |
filldraw z22l{down}..z23l..{direction 3.5 of p}z24r--z24l{dir (angle(direction 3.5 of p)-180)}..z23r..{up}z22r..z21r+stem*up--z21l+stem*up..cycle; |
| 1650 |
penlabels(20,21,22,23,24,25); |
| 1651 |
endchar; |
| 1652 |
|
| 1653 |
iff known latin_Egrave: |
| 1654 |
beginchar(latin_Egrave,11u#,Asc_height#,0); |
| 1655 |
usep; |
| 1656 |
z0=(.45w,h); |
| 1657 |
grave(0).low; |
| 1658 |
endchar; |
| 1659 |
|
| 1660 |
iff known latin_Ecircumflex: |
| 1661 |
beginchar(latin_Ecircumflex,11u#,Asc_height#,0); |
| 1662 |
usep; |
| 1663 |
z0=(.5w,h); |
| 1664 |
circumflex(0).low; |
| 1665 |
endchar; |
| 1666 |
|
| 1667 |
iff known latin_Eumlaut: |
| 1668 |
beginchar(latin_Eumlaut,11u#,.3[Asc_height#,cap_height#],0); |
| 1669 |
usep; |
| 1670 |
z0=(.5w,h-.6stem); |
| 1671 |
umlaut(0); |
| 1672 |
endchar; |
| 1673 |
|
| 1674 |
beginchar("F", 11u#,cap_height#,0); |
| 1675 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); vpos(3)(cap_stem,-can); penpos4(cap_stem,90); vpos(5)(cap_stem,0); |
| 1676 |
x1l=u=x2l; y1=0; y2r=h; y3r=h; x3l=w-u; x2r=x4; y4=y5=.5h; x5r=.75[x2r,x3r]; |
| 1677 |
filldraw z1r--z1l--z2l--z3r--z3l--(x2r,y3l)--z4r--z5r--z5l--z4l--cycle; |
| 1678 |
penlabels(1,2,3,4,5); |
| 1679 |
endchar; |
| 1680 |
|
| 1681 |
beginchar("G", 14.5u#,cap_height#,0); |
| 1682 |
path p; |
| 1683 |
penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 1684 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=(w+2u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 1685 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 1686 |
z1'=point .5 of p; |
| 1687 |
z2'=point 3.4 of p; |
| 1688 |
penpos1(cap_stem,170-(angle(direction .5 of p))); penpos2(cap_stem,90+(angle(direction 3.5 of p))); |
| 1689 |
penpos3(cap_stem,0); penpos4(cap_stem,0); vpos(5)(cap_stem,can); |
| 1690 |
x1r=w-u; y1=y1'; |
| 1691 |
z3l=z2r; x4=x3; y4=.8x_height=y5r; y4l:=y5l; x5=.55w; x3r=w-u; y2=y2'; |
| 1692 |
filldraw z1r..{left}z11r..{down}z12l..{right}z13l..{direction 3.4 of p}z2l..{up}z3r--z4r--z5r--z5l--z4l--z3l--z2r..z13r{left}..z12r{up}..z11l{right}..z1l--cycle; |
| 1693 |
penlabels(1,2,3,4,5); |
| 1694 |
savep; |
| 1695 |
endchar; |
| 1696 |
|
| 1697 |
iff known latin_Gcircumflex: |
| 1698 |
beginchar(latin_Gcircumflex,14.5u#,Asc_height#,0); |
| 1699 |
usep; |
| 1700 |
z0=(.5w+1.3u,h); |
| 1701 |
circumflex(0).low; |
| 1702 |
endchar; |
| 1703 |
|
| 1704 |
iff known latin_Gbreve: |
| 1705 |
beginchar(latin_Gbreve,14.5u#,Asc_height#,0); |
| 1706 |
usep; |
| 1707 |
z0=(.5w+1.3u,h); |
| 1708 |
breve(0); |
| 1709 |
endchar; |
| 1710 |
|
| 1711 |
iff known latin_Gdotabove: |
| 1712 |
beginchar(latin_Gdotabove,14.5u#,.3[Asc_height#,cap_height#],0); |
| 1713 |
usep; |
| 1714 |
z0=(.5w+u,h-.6stem); |
| 1715 |
acc_dot(0); |
| 1716 |
endchar; |
| 1717 |
|
| 1718 |
iff known latin_Gcedilla: |
| 1719 |
beginchar(latin_Gcedilla,14.5u#,cap_height#,.75desc_depth#-.5stem#); |
| 1720 |
usep; |
| 1721 |
z0=(.5w-.5u,.5stem); |
| 1722 |
cedilla(0); |
| 1723 |
endchar; |
| 1724 |
|
| 1725 |
beginchar("H", 11.5u#,cap_height#,0); |
| 1726 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); hpos(3)(cap_stem,can); hpos(4)(cap_stem,can); |
| 1727 |
penpos5(cap_stem,90); penpos6(cap_stem,90); |
| 1728 |
x1l=u=x2l; y1=y3=0; y2r=y4r=h; x3r=x4r=w-u; |
| 1729 |
y5=y6=.5h; x5=x1r; x6=x3l; |
| 1730 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 1731 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 1732 |
filldraw z5l--z6l--z6r--z5r--cycle; |
| 1733 |
penlabels(1,2,3,4); |
| 1734 |
savep; |
| 1735 |
endchar; |
| 1736 |
|
| 1737 |
iff known latin_Hcircumflex: |
| 1738 |
beginchar(latin_Hcircumflex,11.5u#,Asc_height#,0); |
| 1739 |
usep; |
| 1740 |
z0=(.5w,h); |
| 1741 |
circumflex(0).low; |
| 1742 |
endchar; |
| 1743 |
|
| 1744 |
iff known latin_Hbar: |
| 1745 |
beginchar(latin_Hbar,13.5u#,cap_height#,0); |
| 1746 |
addto currentpicture also used_p shifted (u,0);; |
| 1747 |
vpos(1)(.75stem,can); vpos(2)(.75stem,0); |
| 1748 |
lft x1l=u; rt x2=w-u; y1=y2=.75h; |
| 1749 |
filldraw z1r--z2r--z2l--z1l--cycle; |
| 1750 |
penlabels(1,2); |
| 1751 |
endchar; |
| 1752 |
|
| 1753 |
beginchar("I", 3.5u#,cap_height#,0); |
| 1754 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 1755 |
x1=.5w=x2; y1=0; y2r=h; |
| 1756 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1757 |
savep; |
| 1758 |
endchar; |
| 1759 |
|
| 1760 |
iff known latin_Iacute: |
| 1761 |
beginchar(latin_Iacute,3.5u#,Asc_height#,0); |
| 1762 |
usep; |
| 1763 |
z0=(.5w,h); |
| 1764 |
acute(0).low; |
| 1765 |
endchar; |
| 1766 |
|
| 1767 |
iff known latin_Igrave: |
| 1768 |
beginchar(latin_Igrave,3.5u#,Asc_height#,0); |
| 1769 |
usep; |
| 1770 |
z0=(.5w,h); |
| 1771 |
grave(0).low; |
| 1772 |
endchar; |
| 1773 |
|
| 1774 |
iff known latin_Icircumflex: |
| 1775 |
beginchar(latin_Icircumflex,3.5u#,Asc_height#,0); |
| 1776 |
usep; |
| 1777 |
z0=(.5w,h); |
| 1778 |
circumflex(0).low; |
| 1779 |
endchar; |
| 1780 |
|
| 1781 |
iff known latin_Iumlaut: |
| 1782 |
beginchar(latin_Iumlaut,4u#,.3[Asc_height#,cap_height#],0); |
| 1783 |
addto currentpicture also used_p shifted (.25u,0); |
| 1784 |
z0=(.5w,h-.6stem); |
| 1785 |
umlaut(0); |
| 1786 |
endchar; |
| 1787 |
|
| 1788 |
iff known latin_Itilde: |
| 1789 |
beginchar(latin_Itilde,3.5u#,Asc_height#,0); |
| 1790 |
usep; |
| 1791 |
z0=(.5w,h); |
| 1792 |
acc_tilde(0).low; |
| 1793 |
endchar; |
| 1794 |
|
| 1795 |
iff known latin_Imacron: |
| 1796 |
beginchar(latin_Imacron,3.5u#,Asc_height#,0); |
| 1797 |
usep; |
| 1798 |
z0=(.5w,h); |
| 1799 |
macron(0); |
| 1800 |
endchar; |
| 1801 |
|
| 1802 |
iff known latin_Ibreve: |
| 1803 |
beginchar(latin_Ibreve,3.5u#,Asc_height#,0); |
| 1804 |
usep; |
| 1805 |
z0=(.5w,h); |
| 1806 |
breve(0); |
| 1807 |
endchar; |
| 1808 |
|
| 1809 |
iff known latin_Idot: |
| 1810 |
beginchar(latin_Idot,3.5u#,.3[Asc_height#,cap_height#],0); |
| 1811 |
usep; |
| 1812 |
z0=(.5w,h-.6stem); |
| 1813 |
acc_dot(0); |
| 1814 |
endchar; |
| 1815 |
|
| 1816 |
iff known latin_Iogonek: |
| 1817 |
beginchar(latin_Iogonek,3.5u#,cap_height#,desc_depth#); |
| 1818 |
usep; |
| 1819 |
z0=(.5w+.5cap_stem,0); |
| 1820 |
ogonek(0); |
| 1821 |
endchar; |
| 1822 |
|
| 1823 |
beginchar("J", 10u#,cap_height#,0); |
| 1824 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,can); vpos(3)(cap_stem,can); |
| 1825 |
x1r=x2r=w-u; y1=.5x_height; y2r=h; |
| 1826 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1827 |
path p; |
| 1828 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 1829 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; |
| 1830 |
x11=x13; y11-y13=x10-x12; x13=.5w; x3=x12l; y3=.25x_height; |
| 1831 |
p:= z10{down}..{left}z13..{up}z12..{right}z11..cycle; |
| 1832 |
filldraw z3l..z13l{right}..{up}z1r--z2r--z2l--z1l{down}..{left}z13r..z3r--cycle; |
| 1833 |
penlabels(1,2,3,10,11,12,13); |
| 1834 |
savep; |
| 1835 |
endchar; |
| 1836 |
|
| 1837 |
iff known latin_Jcircumflex: |
| 1838 |
beginchar(latin_Jcircumflex, 10u#,Asc_height#,0); |
| 1839 |
usep; |
| 1840 |
z0=(w-1.5u,h); |
| 1841 |
circumflex(0).low; |
| 1842 |
endchar; |
| 1843 |
|
| 1844 |
beginchar("K", 11u#, cap_height#,0); |
| 1845 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); hpos(4)(cap_stem,-can); hpos(6)(cap_stem,can); |
| 1846 |
x1l=u=x2l; y1=0; y2r=h; x4r=x6r=w-u; y4l=h; y6=0; x5l=.25[x2r,x2l]; y5l=.5y4; |
| 1847 |
penpos5(.9cap_stem/cosd(angle(z4l-z5l)),0); |
| 1848 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 1849 |
filldraw z4l--z5l--z6l--z6r--z5r--z4r--cycle; |
| 1850 |
penlabels(1,2,3,4,5,6); |
| 1851 |
savep; |
| 1852 |
endchar; |
| 1853 |
|
| 1854 |
iff known latin_Kcedilla: |
| 1855 |
beginchar(latin_Kcedilla, 11u#,cap_height#,.75desc_depth#-.5stem#); |
| 1856 |
usep; |
| 1857 |
z0=(.5w-u,.5stem); |
| 1858 |
cedilla(0); |
| 1859 |
endchar; |
| 1860 |
|
| 1861 |
beginchar("L", 10u#,cap_height#,0); |
| 1862 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,can); vpos(3)(cap_stem,can); |
| 1863 |
x1l=u=x2l; y1=0; y2r=h; y3l=0; x3r=w-u; |
| 1864 |
filldraw z3l--z1l--z2l--z2r--(x2r,y3r)--z3r--cycle; |
| 1865 |
penlabels(1,2,3); |
| 1866 |
savep; |
| 1867 |
endchar; |
| 1868 |
|
| 1869 |
iff known latin_Lacute: |
| 1870 |
beginchar(latin_Lacute, 10u#,Asc_height#,0); |
| 1871 |
usep; |
| 1872 |
z0=(2u+stem,h); |
| 1873 |
acute(0).low; |
| 1874 |
endchar; |
| 1875 |
|
| 1876 |
iff known latin_Lcaron: |
| 1877 |
beginchar(latin_Lcaron, 10u#,cap_height#,0); |
| 1878 |
usep; |
| 1879 |
z0=(stem+3u,h); |
| 1880 |
ac_caron(0); |
| 1881 |
endchar; |
| 1882 |
|
| 1883 |
iff known latin_Lstroke: |
| 1884 |
beginchar(latin_Lstroke, 11u#,cap_height#,0); |
| 1885 |
addto currentpicture also used_p shifted (u,0); |
| 1886 |
vpos(1)(stem,can); penpos2(stem,90); |
| 1887 |
y1=.65h; y2=.8h; x1l=.5u; x2=w-6u; |
| 1888 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 1889 |
endchar; |
| 1890 |
|
| 1891 |
iff known latin_Lcedilla: |
| 1892 |
beginchar(latin_Lcedilla, 10u#,cap_height#,.75desc_depth#-.5stem#); |
| 1893 |
usep; |
| 1894 |
z0=(.5w-u,.25stem); |
| 1895 |
cedilla(0); |
| 1896 |
endchar; |
| 1897 |
|
| 1898 |
iff known latin_Ldot: |
| 1899 |
beginchar(latin_Ldot, 10u#,cap_height#,0); |
| 1900 |
usep; |
| 1901 |
z0=(4u,.6h); |
| 1902 |
dot(0); |
| 1903 |
endchar; |
| 1904 |
|
| 1905 |
beginchar("M", 18u#,cap_height#,0); |
| 1906 |
numeric theta; |
| 1907 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,-can); |
| 1908 |
x1r=w-u; y1l=0=y2r; x2l=u; z3l=(.5w,0); y4r=y5r=h; .5[x4l,x5l]=x3; x5r=.85w-u; |
| 1909 |
theta:=angle(z1r-z5r); |
| 1910 |
penpos4(cap_stem/cosd(theta),90); penpos5(cap_stem/cosd(theta),90); |
| 1911 |
penpos3(cap_stem/cosd(angle(z5-z3l)),90); |
| 1912 |
z4'=z3l+whatever*(z4r-z3r)=z2r+whatever*(z4r-z2l); |
| 1913 |
z5'=z3l+whatever*(z5r-z3r)=z1l+whatever*(z5r-z1r); |
| 1914 |
filldraw z1r--z5r--z3r--z4r--z2l--z2r--z4'--z3l--z5'--z1l--cycle; |
| 1915 |
penlabels(1,2,3,4,5); labels(4',5'); |
| 1916 |
endchar; |
| 1917 |
|
| 1918 |
beginchar("N", 12u#,cap_height#,0); |
| 1919 |
numeric theta; |
| 1920 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); hpos(3)(cap_stem,0); hpos(4)(cap_stem,can); |
| 1921 |
x1l=w-x4r=u; x2=x1; x3=x4; y1l=y3=0; y2=y4r=h; |
| 1922 |
theta:=(angle(z2l-z3r)); |
| 1923 |
z3''=z3r+((cap_stem,0) rotated (theta-90)); z3'=whatever[z3'',(z2l)]=whatever[z4l,z3l]; |
| 1924 |
z2''=z2l+((cap_stem,0) rotated (theta+90)); z2'=whatever[z2'',(z3r)]=whatever[z1r,z2r]; |
| 1925 |
filldraw z1l--z1r--z2'--z3r--z4r--z4l--z3'--z2l--cycle; |
| 1926 |
penlabels(1,2,3,4); labels(2',2'',3',3''); |
| 1927 |
savep; |
| 1928 |
endchar; |
| 1929 |
|
| 1930 |
iff known latin_Ncaron: |
| 1931 |
beginchar(latin_Ncaron,12u#,Asc_height#,0); |
| 1932 |
usep; |
| 1933 |
z0=(.5w,h); |
| 1934 |
caron(0); |
| 1935 |
endchar; |
| 1936 |
|
| 1937 |
iff known latin_Nacute: |
| 1938 |
beginchar(latin_Nacute,12u#,Asc_height#,0); |
| 1939 |
usep; |
| 1940 |
z0=(.5w,h); |
| 1941 |
acute(0).low; |
| 1942 |
endchar; |
| 1943 |
|
| 1944 |
iff known latin_Ntilde: |
| 1945 |
beginchar(latin_Ntilde,12u#,Asc_height#,0); |
| 1946 |
usep; |
| 1947 |
z0=(.5w,h); |
| 1948 |
acc_tilde(0).low; |
| 1949 |
endchar; |
| 1950 |
|
| 1951 |
iff known latin_Ncedilla: |
| 1952 |
beginchar(latin_Ncedilla,12u#,cap_height#,.75desc_depth#-.5stem#); |
| 1953 |
usep; |
| 1954 |
z0=(u+.45stem,.5stem); |
| 1955 |
cedilla(0); |
| 1956 |
endchar; |
| 1957 |
|
| 1958 |
iff known latin_Eng: |
| 1959 |
beginchar(latin_Eng, 12u#,cap_height#,desc_depth#); |
| 1960 |
numeric theta; |
| 1961 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); hpos(3)(cap_stem,0); hpos(4)(cap_stem,can); |
| 1962 |
hpos(5)(cap_stem,can); |
| 1963 |
x1l=w-x4r=u; x2=x1; x3=x4; y1l=y3=0; y2=y4r=h; x5=x3; y5l=-d; |
| 1964 |
theta:=(angle(z2l-z3r)); |
| 1965 |
z3''=z3r+((cap_stem,0) rotated (theta-90)); z3'=whatever[z3'',(z2l)]=whatever[z4l,z3l]; |
| 1966 |
z2''=z2l+((cap_stem,0) rotated (theta+90)); z2'=whatever[z2'',(z3r)]=whatever[z1r,z2r]; |
| 1967 |
filldraw z1l--z1r--z2'--z3r--z4r--z4l--z3'--z2l--cycle; |
| 1968 |
filldraw z4l--z5l--z5r--z4r--cycle; |
| 1969 |
penlabels(1,2,3,4); labels(2',2'',3',3''); |
| 1970 |
endchar; |
| 1971 |
|
| 1972 |
beginchar("O", 16.5u#,cap_height#,0); |
| 1973 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 1974 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 1975 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 1976 |
savep; |
| 1977 |
endchar; |
| 1978 |
|
| 1979 |
iff known latin_Oacute: |
| 1980 |
beginchar(latin_Oacute,16.5u#,Asc_height#,0); |
| 1981 |
usep; |
| 1982 |
z0=(.5w+1.5u,h); |
| 1983 |
acute(0).low; |
| 1984 |
endchar; |
| 1985 |
|
| 1986 |
iff known latin_Ocircumflex: |
| 1987 |
beginchar(latin_Ocircumflex,16.5u#,Asc_height#,0); |
| 1988 |
usep; |
| 1989 |
z0=(.5w,h); |
| 1990 |
circumflex(0).low; |
| 1991 |
endchar; |
| 1992 |
|
| 1993 |
iff known latin_Oumlaut: |
| 1994 |
beginchar(latin_Oumlaut,16.5u#,.3[Asc_height#,cap_height#],0); |
| 1995 |
usep; |
| 1996 |
z0=(.5w,h-.6stem); |
| 1997 |
umlaut(0); |
| 1998 |
endchar; |
| 1999 |
|
| 2000 |
iff known latin_Ograve: |
| 2001 |
beginchar(latin_Ograve,16.5u#,Asc_height#,0); |
| 2002 |
usep; |
| 2003 |
z0=(.5w-1.5u,h); |
| 2004 |
grave(0); |
| 2005 |
endchar; |
| 2006 |
|
| 2007 |
iff known latin_Otilde: |
| 2008 |
beginchar(latin_Otilde,16.5u#,Asc_height#,0); |
| 2009 |
usep; |
| 2010 |
z0=(.5w+.5u,h); |
| 2011 |
acc_tilde(0).low; |
| 2012 |
endchar; |
| 2013 |
|
| 2014 |
iff known latin_Omacron: |
| 2015 |
beginchar(latin_Omacron,16.5u#,Asc_height#,0); |
| 2016 |
usep; |
| 2017 |
z0=(.5w,h); |
| 2018 |
macron(0); |
| 2019 |
endchar; |
| 2020 |
|
| 2021 |
iff known latin_Obreve: |
| 2022 |
beginchar(latin_Obreve,16.5u#,Asc_height#,0); |
| 2023 |
usep; |
| 2024 |
z0=(.5w,h); |
| 2025 |
breve(0); |
| 2026 |
endchar; |
| 2027 |
|
| 2028 |
iff known latin_Ohungarumlaut: |
| 2029 |
beginchar(latin_Ohungarumlaut,16.5u#,Asc_height#,0); |
| 2030 |
usep; |
| 2031 |
z0=(.5w+.8u,h); |
| 2032 |
H_umlaut(0).low; |
| 2033 |
endchar; |
| 2034 |
|
| 2035 |
beginchar("P", 11u#,cap_height#,0); |
| 2036 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); |
| 2037 |
x1l=u=x2l; y1=0; y2r=h; |
| 2038 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 2039 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=2u; |
| 2040 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2041 |
penpos2'(cap_stem,90); penpos2''(cap_stem,270); |
| 2042 |
.5[y2'',y2']=y10; x2'=x2''=x2r; y2'r=y2r; |
| 2043 |
filldraw z2'r---z11r..{down}z10r..{left}z13r---z2''r--z2''l---z13l{right}..{up}z10l..{left}z11l---z2'l--cycle; |
| 2044 |
penlabels(1,2,10,11,12,13); |
| 2045 |
endchar; |
| 2046 |
|
| 2047 |
beginchar(latin_Thorn, 11u#,cap_height#,0); |
| 2048 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); |
| 2049 |
x1l=u=x2l; y1=0; y2r=h; |
| 2050 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 2051 |
.5[z10,z12]=.5[z11,z13]; y10=.55h; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=2u; |
| 2052 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2053 |
penpos2'(cap_stem,90); penpos2''(cap_stem,270); |
| 2054 |
.5[y2'',y2']=y10; x2'=x2''=x2r; y2'=y11; |
| 2055 |
filldraw z2'r---z11r..{down}z10r..{left}z13r---z2''r--z2''l---z13l{right}..{up}z10l..{left}z11l---z2'l--cycle; |
| 2056 |
penlabels(1,2,2',2'',10,11,12,13); |
| 2057 |
endchar; |
| 2058 |
|
| 2059 |
beginchar("Q", 16.5u#,cap_height#,.5desc_depth#); |
| 2060 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2061 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 2062 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2063 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 2064 |
y1l=-d; x1r=w-u; y2=.5x_height; z2=z1+whatever*(-1,1.5); |
| 2065 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2066 |
penlabels(1,2); |
| 2067 |
endchar; |
| 2068 |
|
| 2069 |
beginchar("R", 11u#,cap_height#,0); |
| 2070 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); |
| 2071 |
x1l=u=x2l; y1=0; y2r=h; |
| 2072 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 2073 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=2u; |
| 2074 |
z2'=z2r+.5cap_stem*down; x2'=x2''; .5[y2',y2'']=.5[y11,y13]; |
| 2075 |
penpos2'(cap_stem,90); penpos2''(cap_stem,270); penpos11(cap_stem,90); penpos10(cap_stem,0); penpos13(cap_stem,270); |
| 2076 |
hpos(3)(cap_stem,0); hpos(4)(cap_stem,can); |
| 2077 |
z3l=z2''l; x4r=w-u; y4l=0; |
| 2078 |
z0=(z4r--z3r) intersectionpoint (z13r--z2''r); |
| 2079 |
filldraw z2'r---z11r..{down}z10r..{left}z13r--- z0--z4r--z4l --z2''l---z13l..{up}z10l..z11l---z2'l--cycle; |
| 2080 |
penlabels(2',2'',3,4,10,11,13); labels(0); |
| 2081 |
savep; |
| 2082 |
endchar; |
| 2083 |
|
| 2084 |
iff known latin_Rcaron: |
| 2085 |
beginchar(latin_Rcaron,11u#,Asc_height#,0); |
| 2086 |
usep; |
| 2087 |
z0=(.45w,h); |
| 2088 |
caron(0).low; |
| 2089 |
endchar; |
| 2090 |
|
| 2091 |
iff known latin_Racute: |
| 2092 |
beginchar(latin_Racute,11u#,Asc_height#,0); |
| 2093 |
usep; |
| 2094 |
z0=(.45w,h); |
| 2095 |
acute(0).low; |
| 2096 |
endchar; |
| 2097 |
|
| 2098 |
iff known latin_Rcedilla: |
| 2099 |
beginchar(latin_Rcedilla,11u#,cap_height#,.75desc_depth#-stem#); |
| 2100 |
usep; |
| 2101 |
z0=(1.5u,stem); |
| 2102 |
cedilla(0); |
| 2103 |
endchar; |
| 2104 |
|
| 2105 |
beginchar("S", 12u#,cap_height#,0); |
| 2106 |
hpos(1)(cap_stem,0); penpos2(cap_stem,(-can+90)); vpos(3)(cap_stem,can); hpos(4)(cap_stem,0); penpos0(cap_stem,90); |
| 2107 |
x1r=w-u; y1=.5x_height; y4=h-.5x_height; x4l=u; |
| 2108 |
path p; |
| 2109 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 2110 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; |
| 2111 |
x11=x13; y11-y13=x10-x12; x13=.5w; x3=x12l; y3=.35x_height; |
| 2112 |
p:= z10{down}..{left}z13..{up}z12..{right}z11..cycle; |
| 2113 |
penpos20(cap_stem,0); penpos21(cap_stem,90); penpos22(cap_stem,0); penpos23(cap_stem,90); |
| 2114 |
.5[z20,z22]=.5[z21,z23]; y21=h-.5cap_stem; x20+.5cap_stem=w-u; y20=y22; |
| 2115 |
x21=x23; y21-y23=x20-x22; x23=.5w; x2r=x10r; y2r=h-.25x_height; |
| 2116 |
filldraw z3l..z13l{right}..{up}z1r--z1l{down}..{left}z13r..z3r--cycle; |
| 2117 |
filldraw z2l..z21l{left}..{down}z4r--z4l{up}..{right}z21r..z2r--cycle; |
| 2118 |
p:=z4r{down}..{down}z1r; z0=((.5w,0)--(.5w,h)) intersectionpoint p; |
| 2119 |
filldraw z4l{down}..z0l..{down}z1l--z1r{up}..z0r..{up}z4r--cycle; |
| 2120 |
penlabels(1,2,3,4,10,11,12,13,20,21,22,23); |
| 2121 |
savep; |
| 2122 |
endchar; |
| 2123 |
|
| 2124 |
iff known latin_Scaron: |
| 2125 |
beginchar(latin_Scaron,12u#,Asc_height#,0); |
| 2126 |
usep; |
| 2127 |
z0=(.55w,h); |
| 2128 |
caron(0).low; |
| 2129 |
endchar; |
| 2130 |
|
| 2131 |
iff known latin_Sacute: |
| 2132 |
beginchar(latin_Sacute,12u#,Asc_height#,0); |
| 2133 |
usep; |
| 2134 |
z0=(.6w,h); |
| 2135 |
acute(0).low; |
| 2136 |
endchar; |
| 2137 |
|
| 2138 |
iff known latin_Scedilla: |
| 2139 |
beginchar(latin_Scedilla,12u#,cap_height#,.75desc_depth#-.5stem#); |
| 2140 |
usep; |
| 2141 |
z0=(.45w,.5stem); |
| 2142 |
cedilla(0); |
| 2143 |
endchar; |
| 2144 |
|
| 2145 |
iff known latin_Scircumflex: |
| 2146 |
beginchar(latin_Scircumflex,12u#,Asc_height#,0); |
| 2147 |
usep; |
| 2148 |
z0=(.5w+.5u,h); |
| 2149 |
circumflex(0).low; |
| 2150 |
endchar; |
| 2151 |
|
| 2152 |
beginchar("T", 12u#, cap_height#, 0); |
| 2153 |
hpos(1)(cap_stem,can); penpos2(cap_stem,0); penpos3(cap_stem,90); vpos(4)(cap_stem,can) |
| 2154 |
z1=(.5w,0); z2=(x1,h-cap_stem); x3=w-x4l=w-u; y3=y4=h-.5cap_stem; |
| 2155 |
filldraw z1l--z1r--z2r--z3l--z3r--z4r--z4l--z2l--cycle; |
| 2156 |
%serif(3r,angle(z3l-z3r),0); serif(4r,angle(z4l-z4r),0); |
| 2157 |
savep; |
| 2158 |
endchar; |
| 2159 |
|
| 2160 |
iff known latin_Tcaron: |
| 2161 |
beginchar(latin_Tcaron,12u#,Asc_height#,0); |
| 2162 |
usep; |
| 2163 |
z0=(.5w,h); |
| 2164 |
caron(0).low; |
| 2165 |
endchar; |
| 2166 |
|
| 2167 |
iff known latin_Tcommaaccent: |
| 2168 |
beginchar(latin_Tcommaaccent,12u#,cap_height#,2.5u#); |
| 2169 |
usep; |
| 2170 |
y1r=-.5u; y2l=-d; x1r-x2l=2u; .5[x1r,x2l]=.5w-.5cap_stem; |
| 2171 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 2172 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 2173 |
endchar; |
| 2174 |
|
| 2175 |
iff known latin_Tbar: |
| 2176 |
beginchar(latin_Tbar,12u#,cap_height#,0); |
| 2177 |
usep; |
| 2178 |
vpos(1)(.75stem,can); vpos(2)(.75stem,0); |
| 2179 |
lft x1l=3u; rt x2=w-3u; y1=y2=x_height; |
| 2180 |
filldraw z1r--z2r--z2l--z1l--cycle; |
| 2181 |
penlabels(1,2); |
| 2182 |
endchar; |
| 2183 |
|
| 2184 |
beginchar("U", 13u#,cap_height#,0); |
| 2185 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,can); hpos(3)(cap_stem,0); hpos(4)(cap_stem,can); |
| 2186 |
x1r=x2r=w-u; y1=.5x_height=y3; y2r=y4r=h; x4l=x3l=u; |
| 2187 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 2188 |
filldraw z3l--z3r--z4r--z4l--cycle; |
| 2189 |
path p; |
| 2190 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 2191 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; |
| 2192 |
x11=x13; y11-y13=x10-x12; x13=.5w; |
| 2193 |
p:= z10{down}..{left}z13..{up}z12..{right}z11..cycle; |
| 2194 |
filldraw z3l{down}..z13l{right}..{up}z1r--z2r--z2l--z1l{down}..{left}z13r..{up}z3r--cycle; |
| 2195 |
penlabels(1,2,3,10,11,12,13); |
| 2196 |
savep; |
| 2197 |
endchar; |
| 2198 |
|
| 2199 |
iff known latin_Uacute: |
| 2200 |
beginchar(latin_Uacute,13u#,Asc_height#,0); |
| 2201 |
usep; |
| 2202 |
z0=(.5w+.5u,h); |
| 2203 |
acute(0).low; |
| 2204 |
endchar; |
| 2205 |
|
| 2206 |
iff known latin_Uring: |
| 2207 |
beginchar(latin_Uring,13u#, Asc_height#,0); |
| 2208 |
usep; |
| 2209 |
z0=(.5w,h); |
| 2210 |
ring(0).low; |
| 2211 |
endchar; |
| 2212 |
|
| 2213 |
iff known latin_Uumlaut: |
| 2214 |
beginchar(latin_Uumlaut,13u#, .3[Asc_height#,cap_height#],0); |
| 2215 |
usep; |
| 2216 |
z0=(.5w,h-.6stem); |
| 2217 |
umlaut(0); |
| 2218 |
endchar; |
| 2219 |
|
| 2220 |
iff known latin_Ugrave: |
| 2221 |
beginchar(latin_Ugrave,13u#, Asc_height#,0); |
| 2222 |
usep; |
| 2223 |
z0=(.5w,h); |
| 2224 |
grave(0).low; |
| 2225 |
endchar; |
| 2226 |
|
| 2227 |
iff known latin_Ucircumflex: |
| 2228 |
beginchar(latin_Ucircumflex,13u#, Asc_height#,0); |
| 2229 |
usep; |
| 2230 |
z0=(.5w,h); |
| 2231 |
circumflex(0).low; |
| 2232 |
endchar; |
| 2233 |
|
| 2234 |
iff known latin_Utilde: |
| 2235 |
beginchar(latin_Utilde,13u#, Asc_height#,0); |
| 2236 |
usep; |
| 2237 |
z0=(.5w,h); |
| 2238 |
acc_tilde(0).low; |
| 2239 |
endchar; |
| 2240 |
|
| 2241 |
iff known latin_Umacron: |
| 2242 |
beginchar(latin_Umacron,13u#, Asc_height#,0); |
| 2243 |
usep; |
| 2244 |
z0=(.5w,h); |
| 2245 |
macron(0); |
| 2246 |
endchar; |
| 2247 |
|
| 2248 |
iff known latin_Uhungarumlaut: |
| 2249 |
beginchar(latin_Uhungarumlaut,13u#, Asc_height#,0); |
| 2250 |
usep; |
| 2251 |
z0=(.5w+.75u,h); |
| 2252 |
H_umlaut(0).low; |
| 2253 |
endchar; |
| 2254 |
|
| 2255 |
iff known latin_Ubreve: |
| 2256 |
beginchar(latin_Ubreve,13u#, Asc_height#,0); |
| 2257 |
usep; |
| 2258 |
z0=(.5w,h); |
| 2259 |
breve(0); |
| 2260 |
endchar; |
| 2261 |
|
| 2262 |
iff known latin_Uogonek: |
| 2263 |
beginchar(latin_Uogonek,13u#, cap_height#,desc_depth#); |
| 2264 |
usep; |
| 2265 |
z0=(.5w+u,0); |
| 2266 |
ogonek(0); |
| 2267 |
endchar; |
| 2268 |
|
| 2269 |
beginchar("V", 13u#,cap_height#,0); |
| 2270 |
numeric theta; |
| 2271 |
hpos(1)(cap_stem,-can); hpos(2)(cap_stem,can); |
| 2272 |
x1r=w-u; y1l=h=y2r; x2l=u; z3l=(.5w,0); |
| 2273 |
theta:=90+angle(z1r-z3l); |
| 2274 |
penpos3(cap_stem/sind(theta),90); |
| 2275 |
filldraw z1l--z3r--z2r--z2l--z3l--z1r--cycle; |
| 2276 |
penlabels(1,2,3,4); |
| 2277 |
endchar; |
| 2278 |
|
| 2279 |
beginchar("W", 18u#,cap_height#,0); |
| 2280 |
numeric theta, wid; |
| 2281 |
wid=12u; |
| 2282 |
hpos(1)(cap_stem,-can); hpos(2)(cap_stem,can); |
| 2283 |
x1r=wid; y1l=h=y2r; x2l=u; z3l=(.5[x1,x2],0); x4=w-u; y4=y1r; |
| 2284 |
theta:=90+angle(z1r-z3l); |
| 2285 |
penpos3(cap_stem/sind(theta),90); |
| 2286 |
filldraw z1l--z3r--z2r--z2l--z3l--z1r--cycle; |
| 2287 |
filldraw (z1l--z3r--z2r--z2l--z3l--z1r--cycle) shifted (z4-z1r); |
| 2288 |
penlabels(1,2,3,4); |
| 2289 |
savep; |
| 2290 |
endchar; |
| 2291 |
|
| 2292 |
iff known latin_Wcircumflex: |
| 2293 |
beginchar(latin_Wcircumflex,18u#, Asc_height#,0); |
| 2294 |
usep; |
| 2295 |
z0=(.5w+.25u,h); |
| 2296 |
circumflex(0); |
| 2297 |
endchar; |
| 2298 |
|
| 2299 |
beginchar("X", 14u#,cap_height#,0); |
| 2300 |
numeric theta; |
| 2301 |
hpos(1)(cap_stem,-can); hpos(2)(cap_stem,can); |
| 2302 |
hpos(3)(cap_stem,-can); hpos(4)(cap_stem,can); |
| 2303 |
x1r=w-u=x4r; y1l=h=y2r; x2l=x3l=u; y3r=y4l=0; |
| 2304 |
filldraw z1l--z3l--z3r--z1r--cycle; |
| 2305 |
filldraw z2l--z4l--z4r--z2r--cycle; |
| 2306 |
penlabels(1,2,3,4); |
| 2307 |
endchar; |
| 2308 |
|
| 2309 |
beginchar("Y", 13u#,cap_height#,0); |
| 2310 |
hpos(1)(cap_stem,-can); hpos(2)(cap_stem,-can); hpos(3)(cap_stem,can); |
| 2311 |
x1r=w-u; y1l=h=y3r; x3l=u; y2r=0; x2l=3.5u; z4l=whatever[z1l,z2l]; y4l=.4h; |
| 2312 |
z4r=z4l+(cap_stem/sind(angle(z3l-z4l)),0) rotated (angle(z1l-z4l)-10); |
| 2313 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 2314 |
filldraw z3l--z3r--z4r--z4l--cycle; |
| 2315 |
penlabels(1,2,3,4); |
| 2316 |
savep; |
| 2317 |
endchar; |
| 2318 |
|
| 2319 |
iff known latin_Yacute: |
| 2320 |
beginchar(latin_Yacute,13u#,Asc_height#,0); |
| 2321 |
usep; |
| 2322 |
z0=(.5w,h); |
| 2323 |
acute(0).low; |
| 2324 |
endchar; |
| 2325 |
|
| 2326 |
iff known latin_Ycircumflex: |
| 2327 |
beginchar(latin_Ycircumflex,13u#,Asc_height#,0); |
| 2328 |
usep; |
| 2329 |
z0=(.5w,h); |
| 2330 |
circumflex(0).low; |
| 2331 |
endchar; |
| 2332 |
|
| 2333 |
iff known latin_Yumlaut: |
| 2334 |
beginchar(latin_Yumlaut,13u#,.3[Asc_height#,cap_height#],0); |
| 2335 |
usep; |
| 2336 |
z0=(.5w+.5u,h-.6stem); |
| 2337 |
umlaut(0); |
| 2338 |
endchar; |
| 2339 |
|
| 2340 |
beginchar("Z", 14u#,cap_height#,0); |
| 2341 |
numeric theta; |
| 2342 |
vpos(1)(cap_stem,can); vpos(2)(cap_stem,0); vpos(3)(cap_stem,0); vpos(4)(cap_stem,-can); |
| 2343 |
x1l=w-x4r=u; x1l=x3; x4r=x2; y1r=y2r=h; y4l=y3l=0; |
| 2344 |
theta:=(-angle(z2r-z3l)); |
| 2345 |
z3''=z3l+((0,cap_stem) rotated (theta-90)); z3'=whatever[z3'',(z2r)]=whatever[z4r,z3r]; |
| 2346 |
z2''=z2r+((0,cap_stem) rotated (theta+90)); z2'=whatever[z2'',(z3l)]=whatever[z1l,z2l]; |
| 2347 |
filldraw z1l--z2'--z3l--z4l--z4r--z3'--z2r--z1r--cycle; |
| 2348 |
penlabels(1,2,3,4); labels(2',2'',3',3''); |
| 2349 |
savep; |
| 2350 |
endchar; |
| 2351 |
|
| 2352 |
iff known latin_Zcaron: |
| 2353 |
beginchar(latin_Zcaron,14u#,Asc_height#,0); |
| 2354 |
usep; |
| 2355 |
z0=(.5w,h); |
| 2356 |
caron(0).low; |
| 2357 |
endchar; |
| 2358 |
|
| 2359 |
iff known latin_Zacute: |
| 2360 |
beginchar(latin_Zacute,14u#,Asc_height#,0); |
| 2361 |
usep; |
| 2362 |
z0=(.5w,h); |
| 2363 |
acute(0).low; |
| 2364 |
endchar; |
| 2365 |
|
| 2366 |
iff known latin_Zdotabove: |
| 2367 |
beginchar(latin_Zdotabove,14u#,.3[Asc_height#,cap_height#],0); |
| 2368 |
usep; |
| 2369 |
z0=(.5w,h-.6stem); |
| 2370 |
acc_dot(0); |
| 2371 |
endchar; |
| 2372 |
|
| 2373 |
"German sharp s"; |
| 2374 |
beginchar(oct"031", 10.5u#, cap_height#,0); |
| 2375 |
hpos(1)(stem,can); |
| 2376 |
z1l=(x12r,0); |
| 2377 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=w-2.5u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2378 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); vpos(13)(stem,can); |
| 2379 |
.5[z20,z22]=.5[z21,z23]; y21=y13; x20+.5stem=w-u; y20=y22; x21=x23; y23-.5stem=0; x22-.5stem=u; |
| 2380 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,90); vpos(2)(stem,can); |
| 2381 |
y2=y23; x2=.5[x23,x1l]; |
| 2382 |
filldraw z1l---z12r..{right}z11r..{down}z10r..{left}z13l--z13r{right}..z10l{up}..z11l{left}..z12l---z1r--cycle; |
| 2383 |
filldraw z13r{right}..{down}z20r..z23l---z2l--z2r---z23r..z20l{up}..{left}z13l--cycle; |
| 2384 |
penlabels(1,10,11,12,13,14,20,21,22,23); |
| 2385 |
endchar; |
| 2386 |
|
| 2387 |
"ae"; |
| 2388 |
beginchar(oct"032", 12.8u#,x_height#,0); |
| 2389 |
path p, op[]; numeric t[]; |
| 2390 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 2391 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=w-8u; |
| 2392 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 2393 |
z1=point .5 of p; |
| 2394 |
z2=point 3.5 of p; |
| 2395 |
z3=((0,.25h)--(.75w,.25h)) intersectionpoint p; |
| 2396 |
penpos1(stem,(170-angle(direction.5 of p))); penpos2(stem,(100+angle(direction 3.5 of p))); |
| 2397 |
penpos3(stem,(90+angle(z3-z1))); z1''=(subpath (0,.5) of (z1r--z3r)) intersectionpoint p; z1'''=z1''+stem*dir(270+angle(z3-z1)); |
| 2398 |
z1'=(z1'''--z3l) intersectionpoint (z11l{right}..z1l); |
| 2399 |
filldraw z3r--z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1'--z3l--cycle; |
| 2400 |
penlabels(3); labels(1'', 1'); |
| 2401 |
.5[z20,z22]=.5[z21,z23]; y23=.5stem; x20-x22=5.6u-stem; y20=y22; x21=x23; y21-y23=x20-x22; x22-.5stem=u; |
| 2402 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 2403 |
op1:=z20r{up}..{left}z21r; |
| 2404 |
op2:=z21l{right}..{down}z20l; |
| 2405 |
op0:=z11{left}..{down}z12..{right}z13; |
| 2406 |
op3:=z11l{left}..{down}z12l..{right}z13l; |
| 2407 |
op4:=z11r{left}..{down}z12r..{right}z13r; |
| 2408 |
t1=xpart(op1 intersectiontimes op0); |
| 2409 |
t2=xpart(op2 intersectiontimes op0); |
| 2410 |
filldraw subpath (t1,1) of op1..{down}z22r..{right}z23r..z3r--z3l..{left}z23l..{up}z22l.. |
| 2411 |
subpath (0,t2) of op2--cycle; |
| 2412 |
z5r=op4 intersectionpoint op1; z5l=op3 intersectionpoint op2; |
| 2413 |
penpos6(stem,0); penpos7(stem,90); vpos(8)(stem,-can); |
| 2414 |
x6l=x5l; y6=.72h; x7=.5[x5l,x8l]; top y7r=h; y8=.9h; x8l=2u; |
| 2415 |
filldraw z5l--z5r--z6r{up}..{left}z7r..z8r--z8l..z7l{right}..{down}z6l--cycle; |
| 2416 |
endchar; |
| 2417 |
|
| 2418 |
"oe"; |
| 2419 |
beginchar(oct"033", 14.7u#,x_height#,0); |
| 2420 |
path p, op[]; numeric t[]; |
| 2421 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 2422 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=w-8u; |
| 2423 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 2424 |
z1=point .5 of p; |
| 2425 |
z2=point 3.5 of p; |
| 2426 |
z3=((0,.25h)--(.75w,.25h)) intersectionpoint p; |
| 2427 |
penpos1(stem,(170-angle(direction.5 of p))); penpos2(stem,(100+angle(direction 3.5 of p))); |
| 2428 |
penpos3(stem,(90+angle(z3-z1))); z1''=(subpath (0,.5) of (z1r--z3r)) intersectionpoint p; z1'''=z1''+stem*dir(270+angle(z3-z1)); |
| 2429 |
z1'=(z1'''--z3l) intersectionpoint (z11l{right}..z1l); |
| 2430 |
filldraw z3r--z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1'--z3l--cycle; |
| 2431 |
penlabels(3); labels(1'', 1'); |
| 2432 |
.5[z20,z22]=.5[z21,z23]; y23=.5stem; x20-x22=8u-stem; y20=y22; x21=x23; y21-y23=x20-x22; x22-.5stem=u; |
| 2433 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 2434 |
op1:=z20r{up}..{left}z21r; |
| 2435 |
op2:=z21l{right}..{down}z20l; |
| 2436 |
op0:=z11{left}..{down}z12; |
| 2437 |
t1=xpart(op1 intersectiontimes op0); |
| 2438 |
t2=xpart(op2 intersectiontimes op0); |
| 2439 |
filldraw subpath (t1,1) of op1..{down}z22r..{right}z23r..z3r--z3l..{left}z23l..{up}z22l.. |
| 2440 |
subpath (0,t2) of op2--cycle; |
| 2441 |
endchar; |
| 2442 |
|
| 2443 |
"oslash"; |
| 2444 |
beginchar(oct"034", 10u#,x_height#,0); |
| 2445 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2446 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2447 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2448 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 2449 |
y1l=0; y2r=h; x1l=u; x2r=w-u; |
| 2450 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2451 |
endchar; |
| 2452 |
|
| 2453 |
"AE"; |
| 2454 |
beginchar(oct"035", 18u#,cap_height#,0); |
| 2455 |
numeric theta; |
| 2456 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); vpos(3)(cap_stem,-can); penpos4(cap_stem,90); vpos(5)(cap_stem,0); vpos(6)(cap_stem,can); |
| 2457 |
x1l=8u=x2l; y1=y6l=0; y2r=h; y3r=h; x3l=x6r=w-u; x2r=x4; y4=y5=.8x_height; x5r=.75[x2r,x3r]; |
| 2458 |
filldraw z1l--z2l--z3r--z3l--(x2r,y3l)--z4r--z5r--z5l--z4l--(x1r,y6r)--z6r--z6l--cycle; |
| 2459 |
hpos(7)(cap_stem,-can); |
| 2460 |
y7r=0; x7l=u; z8r=(x1l,h); |
| 2461 |
theta:=90+angle(z8r-z7l); |
| 2462 |
penpos8(cap_stem/sind(theta),90); |
| 2463 |
filldraw z8r--z7l--z7r--z8l--cycle; |
| 2464 |
y14r-y14l=cap_stem; y15r=y14r; y15l=y14l; .5[y14r,y14l]=y4; |
| 2465 |
x14r=x14l=x1l; z15l=whatever[z8,z7]; z15r=whatever[z8,z7]; |
| 2466 |
filldraw z14r--z15r--z15l--z14l--cycle; |
| 2467 |
penlabels(1,2,3,4,5,6,7,8); |
| 2468 |
endchar; |
| 2469 |
|
| 2470 |
"OE"; |
| 2471 |
beginchar(oct"036", 18u#,cap_height#,0); |
| 2472 |
numeric theta; |
| 2473 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); vpos(3)(cap_stem,-can); penpos4(cap_stem,90); vpos(5)(cap_stem,0); vpos(6)(cap_stem,can); penpos7(cap_stem,270); penpos8(cap_stem,0); penpos9(cap_stem,90); |
| 2474 |
x1l=8u=x2l; y1=y6l=0; y2r=h; y3r=h; x3l=x6r=w-u; x2r=x4; y4=y5=.5h; x5r=.75[x2r,x3r]; |
| 2475 |
z7l=z2l; z9l=z1l; x8l=u; y8l=.5h; |
| 2476 |
filldraw z1l--z2l--z3r--z3l--(x2r,y3l)--z4r--z5r--z5l--z4l--(x1r,y6r)--z6r--z6l--cycle; |
| 2477 |
filldraw z7l{left}..{down}z8l..{right}z9l--z9r{left}..{up}z8r..{right}z7r--cycle; |
| 2478 |
penlabels(1,2,3,4,5,6,7,8,9); |
| 2479 |
endchar; |
| 2480 |
|
| 2481 |
"Oslash"; |
| 2482 |
beginchar(oct"037", 16.5u#,cap_height#,0); |
| 2483 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2484 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 2485 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2486 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 2487 |
y1l=0; y2r=h; x1l=u; x2r=w-u; |
| 2488 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2489 |
endchar; |
| 2490 |
|
| 2491 |
beginchar("@", asc_height#+2u#, asc_height#,0); |
| 2492 |
z0=(.5w,.5h); |
| 2493 |
italic_a(0)(.4w); |
| 2494 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); vpos(23)(stem,-can); |
| 2495 |
penpos1(stem,90); z1l=(.5[x14r,x20l],y13r); |
| 2496 |
.5[z20,z22]=.5[z21,z23]; y23=.5stem; x20+.5stem=w-u; y20=y22; x21=x23; y21-y23=x20-x22; x22-.5stem=u; |
| 2497 |
filldraw z14l{down}..{right}z1l..z20r{up}..{left}z21r..{down}z22r..{right}z23l--z23r{left}..{up}z22l..{right}z21l |
| 2498 |
..{down}z20l..z1r{left}..{up}z14r--cycle; |
| 2499 |
penlabels(1,10,11,12,13,14,15,20,21,22,23); |
| 2500 |
endchar; |
| 2501 |
|
| 2502 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Greek uppercase |
| 2503 |
beginchar(0, 10u#,cap_height#,0);%Gamma |
| 2504 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,0); vpos(3)(cap_stem,can); |
| 2505 |
x1l=u=x2l; y1=0; y2r=h; y3r=h; x3r=w-u; |
| 2506 |
filldraw z1r--z1l--z2l--z3r--z3l--(x2r,y3l)--cycle; |
| 2507 |
penlabels(1,2,3); |
| 2508 |
endchar; |
| 2509 |
|
| 2510 |
beginchar(1, 15u#,cap_height#,0);%Delta |
| 2511 |
numeric theta; |
| 2512 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); |
| 2513 |
penpos4(cap_stem,90); penpos5(cap_stem,90); |
| 2514 |
x1r=w-u; y1l=0=y2r; x2l=u; z3r=(.5w,h); |
| 2515 |
theta:=90+angle(z1r-z3r); |
| 2516 |
penpos3(cap_stem/sind(theta),90); |
| 2517 |
z4l=z1l; z5l=z2r; |
| 2518 |
filldraw z1r--z3r--z2l--z2r--z3l--z1l--cycle; |
| 2519 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 2520 |
penlabels(1,2,3,4,5); |
| 2521 |
endchar; |
| 2522 |
|
| 2523 |
beginchar(2, 16.5u#,cap_height#,0);%Theta |
| 2524 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2525 |
.5[z10,z12]=.5[z11,z13]; y13=.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 2526 |
vpos(5)(cap_stem,can); vpos(6)(cap_stem,0); |
| 2527 |
.5[x5l,x6r]=.5w; y5=y6=.5h; x6r=.65w; |
| 2528 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2529 |
filldraw z5l--z6l--z6r--z5r--cycle; |
| 2530 |
endchar; |
| 2531 |
|
| 2532 |
beginchar(3, 13u#,cap_height#,0);%Lambda |
| 2533 |
numeric theta; |
| 2534 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,-can); |
| 2535 |
x1r=w-u; y1l=0=y2r; x2l=u; z3r=(.5w,h); |
| 2536 |
theta:=90+angle(z1r-z3r); |
| 2537 |
penpos3(cap_stem/sind(theta),90); |
| 2538 |
filldraw z1r--z3r--z2l--z2r--z3l--z1l--cycle; |
| 2539 |
penlabels(1,2,3,4,5); |
| 2540 |
endchar; |
| 2541 |
|
| 2542 |
beginchar(4, 11u#,cap_height#,0); |
| 2543 |
vpos(1)(cap_stem,can); vpos(2)(cap_stem,0); |
| 2544 |
vpos(3)(cap_stem,0); vpos(4)(cap_stem,-can); |
| 2545 |
vpos(5)(cap_stem,0); vpos(6)(cap_stem,0); |
| 2546 |
x1l=u=x3l; x2r=x4l=w-u; y1r=y2r=h; y3l=y4l=0; |
| 2547 |
.5[x5l,x6r]=.5w; y5=y6=x_height; x6r=.75w; |
| 2548 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2549 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 2550 |
filldraw z5l--z6l--z6r--z5r--cycle; |
| 2551 |
penlabels(1,2,3,4,5,6); |
| 2552 |
endchar; |
| 2553 |
|
| 2554 |
beginchar(5, 13.5u#, cap_height#, 0);%Pi |
| 2555 |
hpos(1)(cap_stem,can); penpos2(cap_stem,0); penpos3(cap_stem,90); vpos(4)(cap_stem,can) |
| 2556 |
z1l=(2.5u,0); z2=(x1,h-cap_stem); x3=w-x4l=w-u; y3=y4=h-.5cap_stem; |
| 2557 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 2558 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (w-2x1,0); |
| 2559 |
filldraw z3l--z3r--z4r--z4l--cycle; |
| 2560 |
penlabels(1,2,3,4); |
| 2561 |
endchar; |
| 2562 |
|
| 2563 |
beginchar(6,14u#, cap_height#,0);%Sigma |
| 2564 |
vpos(1)(cap_stem,can); vpos(5)(cap_stem,-can); penpos3(cap_stem,180); |
| 2565 |
x1r=x5l=w-u; y1r=y2r=h; y4r=y5l=0; y3=.5h; x3=.65w; x2r=x4r=u; y2l=y1l; y4l=y5r; |
| 2566 |
z4'=z4r+((cap_stem,0) rotated (angle((z3r-z4r))-90)); |
| 2567 |
z2'=z2r+((cap_stem,0) rotated (angle((z3r-z2r))+90)); |
| 2568 |
z4l=z4'+whatever*(z3r-z4r); z2l=z2'+whatever*(z3r-z2r); |
| 2569 |
filldraw z1r--z2r--z3r--z4r--z5l--z5r--z4l--z3l--z2l--z1l--cycle; |
| 2570 |
penlabels(1,2,3,4,5); labels(2',4'); |
| 2571 |
endchar; |
| 2572 |
|
| 2573 |
beginchar(7,12u#,cap_height#,0); |
| 2574 |
path lp, rp; |
| 2575 |
numeric t[]; |
| 2576 |
vpos(1)(cap_stem,-can); penpos2(cap_stem,0); hpos(3)(cap_stem,can); vpos(4)(cap_stem,0); |
| 2577 |
x1r=u=w-x4r; x2=x3=.5w; y1r=y4r=h; y2=x_height; y3l=0; |
| 2578 |
lp:=z2r{up}..{left}z1r; |
| 2579 |
rp:=z2l{up}..{right}z4r; |
| 2580 |
(t2,t1)=lp intersectiontimes rp; |
| 2581 |
z2'=point t1 of lp; |
| 2582 |
filldraw z1l{right}..z2l---z3l--z3r---z2r..{right}z4l--subpath (0,1-t1) of (reverse rp)--z2'--subpath (t2,1) of lp --cycle; |
| 2583 |
penlabels(1,2,3); |
| 2584 |
endchar; |
| 2585 |
|
| 2586 |
beginchar(8, 13u#,cap_height#,0);%Phi |
| 2587 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2588 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 2589 |
x1=x2=.5w; y1l=0; y2r=h; |
| 2590 |
.5[z10,z12]=.5[z11,z13]=(.5w,.5h); x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=.75(x10-x12); %x12-.5cap_stem=u; |
| 2591 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2592 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2593 |
endchar; |
| 2594 |
|
| 2595 |
beginchar(9, 13u#,cap_height#,0);%Psi |
| 2596 |
hpos(10)(cap_stem,can); penpos11(cap_stem,90); hpos(12)(cap_stem,can); penpos13(cap_stem,-90); |
| 2597 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 2598 |
x1=x2=.5w; y1l=0; y2r=h; |
| 2599 |
.5[z10,z12]=.5[z11,z13]; x10+.5cap_stem=w-u; y10r=y12r=h; x11=x13; y11-y13=1.35(x10-x12); .5[x10,x12]=x1; |
| 2600 |
filldraw z12l{down}..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12r--cycle; |
| 2601 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2602 |
endchar; |
| 2603 |
|
| 2604 |
beginchar(10, 14u#,cap_height#,0);%Omega |
| 2605 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 2606 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=.9(x10-x12); x12-.5cap_stem=u; |
| 2607 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 2608 |
penpos3(cap_stem,0); penpos4(cap_stem,0); |
| 2609 |
y1l=y2l=0; .5[x1,x2]=.5w; x2-x1=.2w; x3=x1; x4=x2; |
| 2610 |
y3=y4=.3y13; |
| 2611 |
filldraw z2r--z4r{up}..z10r{up}..{left}z11r..{down}z12r..{down}z3l--z1l--z1r--z3r{up}..{up}z12l..{right}z11l..{down}z10l..{down}z4l--z2l--cycle; |
| 2612 |
endchar; |
| 2613 |
|
| 2614 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Digits |
| 2615 |
beginchar("0", fig_width#,cap_height#,0); |
| 2616 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2617 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; y11=h-.5stem; x10+.5stem=w-u; y10=y12; x11=x13; x12-.5stem=u; |
| 2618 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2619 |
endchar; |
| 2620 |
|
| 2621 |
beginchar("1", fig_width#,cap_height#,0); |
| 2622 |
numeric theta; |
| 2623 |
hpos(1)(stem,can); hpos(3)(stem,-can); |
| 2624 |
x1r=w-u; y1l=0; y3l=.6h; x3l=u; z2r=(w-u,h); |
| 2625 |
theta:=(angle(z2r-z3l)); |
| 2626 |
z2'=z2r+((stem,0) rotated (theta-90)); |
| 2627 |
z2l=whatever[z2',z3r]=whatever[z1l,z2r-(stem,0)]; |
| 2628 |
filldraw z1r--z2r--z3l--z3r--z2l--z1l--cycle; |
| 2629 |
penlabels(1,2,3); labels(2'); |
| 2630 |
endchar; |
| 2631 |
|
| 2632 |
beginchar("2", fig_width#,cap_height#,0); |
| 2633 |
numeric theta; |
| 2634 |
vpos(1)(stem,can); |
| 2635 |
x1r=w-u; y1l=0; z2l=(u,0); y2r=y1r; |
| 2636 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2637 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); penpos10'(stem,0); |
| 2638 |
y10'=y10; x10'r=w; |
| 2639 |
theta:=angle(z10'l-z2l); |
| 2640 |
z2'=z2l+((stem,0) rotated (theta-90)); |
| 2641 |
z2r=whatever[z2',z10'r]; |
| 2642 |
y3l=y3r=y13; z3=.5[z3l,z3r]; |
| 2643 |
z3l=whatever[z2l,z10'l]; z3r=whatever[z2r,z10'r]; |
| 2644 |
penpos4(stem,180+theta); z4=z13; |
| 2645 |
filldraw z1r--z2r---z3r..z10r{up}..{left}z11r..{down}z12r..{right}z4r--z4l{left}..z12l..{right}z11l..{down}z10l..z3l---z2l--z1l--cycle; |
| 2646 |
penlabels(1,2,3,4,10,10',11,12,13); labels(2'); |
| 2647 |
endchar; |
| 2648 |
|
| 2649 |
beginchar("3", fig_width#, cap_height#,0); |
| 2650 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2651 |
penpos10(stem,0); penpos11(stem,90); hpos(12)(stem,-can); vpos(13)(stem,can); |
| 2652 |
.5[z20,z22]=.5[z21,z23]; y21=y13; x20+.5stem=w-u; y20=y22; x21=x23; y23-.5stem=0; x22-.5stem=u; |
| 2653 |
penpos20(stem,0); penpos21(stem,90); hpos(22)(stem,can); penpos23(stem,90); vpos(2)(stem,can); |
| 2654 |
filldraw z12l{up}..{right}z11r..{down}z10r..{left}z13l--z13r{right}..z10l{up}..z11l{left}..{down}z12r--cycle; |
| 2655 |
filldraw z13r{right}..{down}z20r..{left}z23l..{up}z22l--z22r{down}..{right}z23r..z20l{up}..{left}z13l--cycle; |
| 2656 |
penlabels(10,11,12,13,14,20,21,22,23); |
| 2657 |
endchar; |
| 2658 |
|
| 2659 |
beginchar("4", fig_width#,cap_height#,0); |
| 2660 |
numeric theta; |
| 2661 |
hpos(1)(stem,can); penpos4(stem,90); |
| 2662 |
x1r=w-2.5u; y1l=0; y3l=.7x_height; x3l=u; z2r=(x1r,h); y4l=y3l; x4=w-u; y3r=y4r; |
| 2663 |
theta:=(angle(z2r-z3l)); |
| 2664 |
z2'=z2r+((stem,0) rotated (theta-90)); |
| 2665 |
z2l=z2'+whatever*(z3l-z2r)=whatever[z1l,z2r-(stem,0)]; |
| 2666 |
z3r=whatever[z2l,z2']; |
| 2667 |
filldraw z1r--z2r--z3l--z4l--z4r--z3r--z2l--z1l--cycle; |
| 2668 |
penlabels(1,2,3,4); labels(2'); |
| 2669 |
endchar; |
| 2670 |
|
| 2671 |
beginchar("5", fig_width#,cap_height#,0); |
| 2672 |
path op[]; numeric t[]; |
| 2673 |
vpos(1)(stem,can); |
| 2674 |
x1r=w-u; y1r=h; y2r=h; y2l=y1l; x2r=u; x2l=x2r+stem; |
| 2675 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=1(x10-x12); x12-.5stem=-.5u; |
| 2676 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2677 |
op1:=z11r{left}..{down}z12r; |
| 2678 |
op2:=z12l{up}..{right}z11l; |
| 2679 |
op3:=z2r--(x2r,0); |
| 2680 |
op4:=z2l--(x2l,0); |
| 2681 |
op5:=.5[z2l,z2r]--(.5[x2l,x2r],0); |
| 2682 |
op6:=z13{left}..{up}z12; |
| 2683 |
t1=xpart (op1 intersectiontimes op4); t2=xpart (op2 intersectiontimes op3); |
| 2684 |
z4=op5 intersectionpoint op6; |
| 2685 |
z3=op2 intersectionpoint op3; |
| 2686 |
op7:=z4--z4+w*(cosd(can),sind(can)); |
| 2687 |
op8:=z4--z4-w*(cosd(can),sind(can)); |
| 2688 |
op9:=z12r{down}..{right}z13r; |
| 2689 |
op10:=z13l{left}..{up}z12l; |
| 2690 |
filldraw z1r--z2r-- subpath (t2,1) of op2..{down}z10l..{left}z13l--subpath (0, xpart (op10 intersectiontimes op7)) of op10-- subpath (xpart (op9 intersectiontimes op8),1) of op9 --z13r{right}..{up}z10r..subpath (0,t1) of op1--z2l--z1l--cycle; |
| 2691 |
penlabels(1,2,10,11,12,13); labels(3); |
| 2692 |
endchar; |
| 2693 |
|
| 2694 |
beginchar("6", fig_width#,cap_height#,0); |
| 2695 |
vpos(1)(stem,-can); |
| 2696 |
x1=.65w; y1r=h; |
| 2697 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=1.2(x10-x12); x12-.5stem=u; |
| 2698 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2699 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2700 |
filldraw z12r{up}..z1r--z1l..{down}z12l--cycle; |
| 2701 |
penlabels(1,10,11,12,13); |
| 2702 |
endchar; |
| 2703 |
|
| 2704 |
beginchar("7", fig_width#,cap_height#,0); |
| 2705 |
numeric theta; |
| 2706 |
hpos(1)(stem,can); vpos(3)(stem,can); |
| 2707 |
x1=.5w; y1l=0; x3l=u; y3r=h; y2r=h; x2r=w-u; y2l=y3l; |
| 2708 |
theta:=(angle(z2r-z1r)); |
| 2709 |
z2'=z2r+((-stem,0) rotated (theta-90)); |
| 2710 |
z2l=whatever[z2',z1l]; |
| 2711 |
filldraw z1r--z2r--z3r--z3l--z2l--z1l--cycle; |
| 2712 |
penlabels(1,2,3); |
| 2713 |
endchar; |
| 2714 |
|
| 2715 |
beginchar("8", fig_width#,cap_height#,0); |
| 2716 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2717 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2718 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2719 |
filldraw (z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle) shifted (z11-z13); |
| 2720 |
endchar; |
| 2721 |
|
| 2722 |
beginchar("9", fig_width#,cap_height#,0); |
| 2723 |
vpos(1)(stem,-can); |
| 2724 |
x1=.35w; y1l=0; |
| 2725 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=1.2(x10-x12); x12-.5stem=u; |
| 2726 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2727 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 2728 |
filldraw z10r{down}..z1l--z1r..{up}z10l--cycle; |
| 2729 |
penlabels(1,10,11,12,13); |
| 2730 |
endchar; |
| 2731 |
|
| 2732 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Punctation, accents, etc. |
| 2733 |
beginchar(".",2u#+dot_height#, 2dot_height#/1.2,0); |
| 2734 |
z0=(.5w,dot_height/1.2); |
| 2735 |
dot(0); |
| 2736 |
endchar; |
| 2737 |
|
| 2738 |
beginchar("-", 6u#, x_height#,0); |
| 2739 |
vpos(1)(stem,can); penpos2(stem,90); |
| 2740 |
y1=y2=.65h; x1l=u; x2=w-u; |
| 2741 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2742 |
endchar; |
| 2743 |
|
| 2744 |
iff known latin_hyphen_alt: |
| 2745 |
beginchar(latin_hyphen_alt, 6u#, x_height#,0); |
| 2746 |
vpos(1)(stem,can); penpos2(stem,90); |
| 2747 |
y1=y2=.65h; x1l=u; x2=w-u; |
| 2748 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2749 |
endchar; |
| 2750 |
|
| 2751 |
beginchar(oct"173", 9u#, x_height#,0); |
| 2752 |
vpos(1)(stem,can); penpos2(stem,90); |
| 2753 |
y1=y2=.65h; x1l=u; x2=w-u; |
| 2754 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2755 |
endchar; |
| 2756 |
|
| 2757 |
beginchar(oct"174", 12u#, x_height#,0); |
| 2758 |
vpos(1)(stem,can); penpos2(stem,90); |
| 2759 |
y1=y2=.65h; x1l=u; x2=w-u; |
| 2760 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2761 |
endchar; |
| 2762 |
|
| 2763 |
beginchar("+", 10u#, v_center(8u#)); |
| 2764 |
vpos(1)(stem,can); penpos2(stem,90); hpos(3)(stem,can); hpos(4)(stem,can); |
| 2765 |
y1=y2=math_axis; x1l=u; x2=w-u; x3=x4=.5w; y3r=h; y4l=-d; |
| 2766 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2767 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 2768 |
endchar; |
| 2769 |
|
| 2770 |
beginchar("*", 8u#, cap_height#,0); |
| 2771 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 2772 |
hpos(3)(stem,-45+can); hpos(4)(stem,-45+can); |
| 2773 |
hpos(5)(stem,45-can); hpos(6)(stem,45-can); |
| 2774 |
x1=x2=x0=.5w; y1r=h; y2l=h-6u; .5[y1,y2]=y0; |
| 2775 |
.5[z3l,z4r]=z0=.5[z5r,z6l]; x3r=w-u=x6r; cosd(45)*(x3r-x4l)=y3l-y4r; |
| 2776 |
cosd(45)*(x5l-x6r)=y6l-y5r; |
| 2777 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2778 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 2779 |
filldraw z5l--z6l--z6r--z5r--cycle; |
| 2780 |
penlabels(1,2,3,4,5,6); |
| 2781 |
endchar; |
| 2782 |
|
| 2783 |
beginchar("&", 14u#, cap_height#,0); |
| 2784 |
vpos(1)(stem,-can); hpos(2)(stem,can); penpos3(stem,210); |
| 2785 |
y1l=0; x1r=w-u=x2r+u; y2l=x_height; z3=z11l; |
| 2786 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=.65w; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2787 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 2788 |
.5[z20,z22]=.5[z21,z23]; y21=h-.5stem; .5[x20,x22]=.5w-u; y20=y22; x21=x23; y21-y23=x20-x22; x20-x22=.3w+u; |
| 2789 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 2790 |
filldraw z2r{down}..z13r{left}..{up}z12r..{right}z11r..{up}z20l..{left}z21l..{down}z22l..z3l..{right}z1r--z1l{left}..z3r..z22r{up}..{right}z21r..{down}z20r..{left}z11l..{down}z12l..{right}z13l..{up}z2l--cycle; |
| 2791 |
penlabels(1,2,3,10,11,12,13,20,21,22,23); |
| 2792 |
endchar; |
| 2793 |
|
| 2794 |
beginchar("'",2.5u#,asc_height#,0); |
| 2795 |
z0=(.5w,h); |
| 2796 |
quota(0); |
| 2797 |
endchar; |
| 2798 |
|
| 2799 |
beginchar("`",2.5u#,asc_height#,0); |
| 2800 |
z0=(.5w,h); |
| 2801 |
quota(0).upper; |
| 2802 |
endchar; |
| 2803 |
|
| 2804 |
beginchar(34,7u#,asc_height#,0); |
| 2805 |
.5[z1,z2]=(.5w,h); y1=y2; x1=2u; |
| 2806 |
quota(1); quota(2); |
| 2807 |
endchar; |
| 2808 |
|
| 2809 |
beginchar(oct"134",7u#,asc_height#,0); |
| 2810 |
.5[z1,z2]=(.5w,h); y1=y2; x1=2u; |
| 2811 |
quota(1).upper; quota(2).upper; |
| 2812 |
endchar; |
| 2813 |
|
| 2814 |
iff known sign_czech_closing: |
| 2815 |
beginchar(sign_czech_closing,7u#,asc_height#,0); |
| 2816 |
.5[z1,z2]=(.5w,h); y1=y2; x1=2u; |
| 2817 |
quota(1).upper; quota(2).upper; |
| 2818 |
endchar; |
| 2819 |
|
| 2820 |
iff known sign_CE_opening: |
| 2821 |
beginchar(sign_CE_opening,7u#,1.5u#,2u#); |
| 2822 |
.5[z1,z2]=(.5w,h); y1=y2; x1=2u; |
| 2823 |
quota(1); quota(2); |
| 2824 |
endchar; |
| 2825 |
|
| 2826 |
"Grave accent"; |
| 2827 |
beginchar(oct"022",6u#,asc_height#,0); |
| 2828 |
z0=(.5w,h); |
| 2829 |
grave(0); |
| 2830 |
endchar; |
| 2831 |
|
| 2832 |
"Acute accent"; |
| 2833 |
beginchar(oct"023",6u#,asc_height#,0); |
| 2834 |
z0=(.5w,h); |
| 2835 |
acute(0); |
| 2836 |
endchar; |
| 2837 |
|
| 2838 |
"Caron"; |
| 2839 |
beginchar(oct"024",6u#,asc_height#,0); |
| 2840 |
z0=(.5w,h); |
| 2841 |
caron(0); |
| 2842 |
endchar; |
| 2843 |
|
| 2844 |
|
| 2845 |
"Breve"; |
| 2846 |
beginchar(oct"025",7u#,asc_height#,0); |
| 2847 |
z0=(.5w,h); |
| 2848 |
breve(0); |
| 2849 |
endchar; |
| 2850 |
|
| 2851 |
"Macron (bar)"; |
| 2852 |
beginchar(oct"026",6u#,asc_height#,0); |
| 2853 |
z0=(.5w,h); |
| 2854 |
macron(0); |
| 2855 |
endchar; |
| 2856 |
|
| 2857 |
"Ring accent"; |
| 2858 |
beginchar(oct"027",6u#,asc_height#,0); |
| 2859 |
z0=(.5w,h); |
| 2860 |
ring(0); |
| 2861 |
endchar; |
| 2862 |
|
| 2863 |
"Circumflex"; |
| 2864 |
beginchar(oct"136",6u#,asc_height#,0); |
| 2865 |
z0=(.5w,h); |
| 2866 |
circumflex(0); |
| 2867 |
endchar; |
| 2868 |
|
| 2869 |
"Dot accent"; |
| 2870 |
beginchar(oct"137",6u#,asc_height#,0); |
| 2871 |
z0=(.5w,h-.6stem); |
| 2872 |
acc_dot(0); |
| 2873 |
endchar; |
| 2874 |
|
| 2875 |
"Hungarian umlaut"; |
| 2876 |
beginchar(oct"175",6u#,asc_height#,0); |
| 2877 |
z0=(.5w,h); |
| 2878 |
H_umlaut(0); |
| 2879 |
endchar; |
| 2880 |
|
| 2881 |
"Tilde"; |
| 2882 |
beginchar(oct"176",9u#,asc_height#,0); |
| 2883 |
z0=(.5w,h); |
| 2884 |
tilde(0) |
| 2885 |
endchar; |
| 2886 |
|
| 2887 |
"Umlaut"; |
| 2888 |
beginchar(oct"177",6u#,asc_height#,0); |
| 2889 |
z0=(.5w,h-.6stem); |
| 2890 |
umlaut(0); |
| 2891 |
endchar; |
| 2892 |
|
| 2893 |
iff known sign_ogonek: |
| 2894 |
"Ogonek"; |
| 2895 |
beginchar(sign_ogonek,6u#,0,desc_depth#); |
| 2896 |
z0=(.5w+.7u,0); ogonek(0); |
| 2897 |
endchar; |
| 2898 |
|
| 2899 |
"Cedilla"; |
| 2900 |
beginchar(oct"030",6u#,0,.75desc_depth#); |
| 2901 |
z0=(.5w,0); cedilla(0); |
| 2902 |
penlabels(1,2,3); |
| 2903 |
endchar; |
| 2904 |
|
| 2905 |
beginchar(",",4u#,dot_height#,2u#); |
| 2906 |
y1r=h; y2l=-d; x1r=w-u; x2l=u; |
| 2907 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 2908 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 2909 |
endchar; |
| 2910 |
|
| 2911 |
beginchar(";",4u#,x_height#,2u#); |
| 2912 |
y1r=1.5dot_height; y2l=-d; x1r=w-u; x2l=u; |
| 2913 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 2914 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 2915 |
z0=(x1,h-.5dot_height); dot(0); |
| 2916 |
endchar; |
| 2917 |
|
| 2918 |
beginchar(":",4u#,x_height#,0); |
| 2919 |
.5[y1,y2]=.5h; x1=x2=.5w; y1=.75dot_height; |
| 2920 |
dot(1); dot(2); |
| 2921 |
endchar; |
| 2922 |
|
| 2923 |
beginchar("/", 7u#, cap_height#,0); |
| 2924 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 2925 |
x1l=u; x2r=w-u; y1l=0; y2r=h; |
| 2926 |
path slash_path; |
| 2927 |
slash_path:=z1l--z2l--z2r--z1r--cycle; |
| 2928 |
filldraw slash_path; |
| 2929 |
endchar; |
| 2930 |
|
| 2931 |
beginchar("=", 10u#, v_center(7u#)); |
| 2932 |
vpos(1)(stem,can); penpos2(stem,90); |
| 2933 |
x1l=u; x2=w-u; y1=y2; .5[y1,y3]=math_axis; y1-y3=2dot_height; |
| 2934 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2935 |
filldraw (z1l--z2l--z2r--z1r--cycle) shifted (0,y3-y1); |
| 2936 |
endchar; |
| 2937 |
|
| 2938 |
beginchar("#", 11u#, cap_height#, 0); |
| 2939 |
vpos(1)(stem,can); penpos2(stem,90); |
| 2940 |
hpos(3)(cap_stem,can); hpos(4)(cap_stem,can); |
| 2941 |
x1l=u; x2=w-u; y1=y2; .5[y1,y1']=.5h; y1-y1'=2dot_height; |
| 2942 |
x3l=u; x4r=.5w+u; y3l=0; y4r=h; |
| 2943 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 2944 |
filldraw (z3l--z4l--z4r--z3r--cycle) shifted (w-u-x4r,0); |
| 2945 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2946 |
filldraw (z1l--z2l--z2r--z1r--cycle) shifted (0,y1'-y1); |
| 2947 |
endchar; |
| 2948 |
|
| 2949 |
beginchar("$",8u#,cap_height#,par_depth#); |
| 2950 |
penpos10(stem,0); penpos11(stem,90); hpos(12)(stem,can); penpos13(stem,270); |
| 2951 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w-u); y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 2952 |
hpos(20)(stem,can); penpos21(stem,90); penpos22(stem,180); penpos23(stem,270); |
| 2953 |
penpos15(stem,45); z15=.5[z23,z11]; |
| 2954 |
.5[z20,z22]=.5[z21,z23]; y21=h-1.5stem; x20+.5stem=(w-u); y20=y22; x21=x23; y21-y23=x20-x22; x22-.5stem=u; |
| 2955 |
filldraw z20r{up}..{left}z21r..{down}z22r..z15l..{down}z10l..{left}z13l..{up}z12r--z12l{down}..{right}z13r..z10r{up} |
| 2956 |
..z15r..z22l{up}..{right}z21l..{down}z20l--cycle; |
| 2957 |
hpos(1)(stem,can); hpos(2)(stem,can); |
| 2958 |
x1=x2=.5w; y1r=h; y2l=-d; |
| 2959 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 2960 |
penlabels(10,11,12,13,20,21,22,23); |
| 2961 |
endchar; |
| 2962 |
|
| 2963 |
beginchar("%", 11u#, cap_height#, 0); |
| 2964 |
numeric circ; circ=3u; |
| 2965 |
.5[z1,z2]=.5(w,h); x1-.5circ-.5stem=u; y1+.5circ+.5stem=h; |
| 2966 |
kruh(1)(circ); kruh(2)(circ); |
| 2967 |
hpos(3)(cap_stem,can); hpos(4)(cap_stem,can); |
| 2968 |
y3l=0; y4r=h; x4r=w-u; x3l=u ; |
| 2969 |
filldraw z4l--z3l--z3r--z4r--cycle; |
| 2970 |
endchar; |
| 2971 |
|
| 2972 |
iff known sign_per_thousand: |
| 2973 |
beginchar(sign_per_thousand, 15u#, cap_height#, 0); |
| 2974 |
numeric circ; circ=3u; |
| 2975 |
.5[z1,z2]=.5(10u,h); x1-.5circ-.5stem=u; y1+.5circ+.5stem=h; |
| 2976 |
y2'=y2; x2'=w-u-.5circ-.5stem; |
| 2977 |
kruh(1)(circ); kruh(2)(circ); kruh(2')(circ); |
| 2978 |
hpos(3)(cap_stem,can); hpos(4)(cap_stem,can); |
| 2979 |
y3l=0; y4r=h; x4r=10u; x3l=u ; |
| 2980 |
filldraw z4l--z3l--z3r--z4r--cycle; |
| 2981 |
endchar; |
| 2982 |
|
| 2983 |
iff known sign_per_ten_thousand: |
| 2984 |
beginchar(sign_per_ten_thousand, 19u#, cap_height#, 0); |
| 2985 |
numeric circ; circ=3u; |
| 2986 |
.5[z1,z2]=.5(10u,h); x1-.5circ-.5stem=u; y1+.5circ+.5stem=h; |
| 2987 |
y2'=y2''=y2; x2''=w-u-.5circ-.5stem; x2'=x2''-circ-1.4stem; |
| 2988 |
kruh(1)(circ); kruh(2)(circ); kruh(2')(circ); kruh(2'')(circ); |
| 2989 |
hpos(3)(cap_stem,can); hpos(4)(cap_stem,can); |
| 2990 |
y3l=0; y4r=h; x4r=10u; x3l=u ; |
| 2991 |
filldraw z4l--z3l--z3r--z4r--cycle; |
| 2992 |
endchar; |
| 2993 |
|
| 2994 |
beginchar("(", 5u#, par_height#, par_depth#); |
| 2995 |
hpos(1)(stem,can); penpos2(stem,0); hpos(3)(stem,can); |
| 2996 |
x1r=x3r=w-u; x2l=u; y2=.5[y1,y3]; y3l=-d; y1r=h; |
| 2997 |
filldraw z1l..z2l..z3l--z3r..z2r..z1r--cycle; |
| 2998 |
penlabels(1,2,3); |
| 2999 |
endchar; |
| 3000 |
|
| 3001 |
beginchar(")", 5u#, par_height#, par_depth#); |
| 3002 |
hpos(1)(stem,-can); penpos2(stem,0); hpos(3)(stem,-can); |
| 3003 |
x1l=x3l=u; x2r=w-u; y2=.5[y1,y3]; y3r=-d; y1l=h; |
| 3004 |
filldraw z1l..z2l..z3l--z3r..z2r..z1r--cycle; |
| 3005 |
penlabels(1,2,3); |
| 3006 |
endchar; |
| 3007 |
|
| 3008 |
beginchar("[", 7u#, par_height#, par_depth#); |
| 3009 |
vpos(1)(stem,can); vpos(4)(stem,can); |
| 3010 |
x1r=x4r=w-u; x2r=x3r=u; y1r=y2r=h; y4l=y3r=-d; z3l=(x3r+stem,y4r); z2l=(x2r+stem,y1l); |
| 3011 |
filldraw z1r--z2r--z3r--z4l--z4r--z3l--z2l--z1l--cycle; |
| 3012 |
penlabels(1,2,3,4); |
| 3013 |
endchar; |
| 3014 |
|
| 3015 |
beginchar("]", 7u#, par_height#, par_depth#); |
| 3016 |
vpos(1)(stem,-can); vpos(4)(stem,-can); |
| 3017 |
x1r=x4r=u; x2r=x3r=w-u; y1r=y2r=h; y4l=y3r=-d; z3l=(x3r-stem,y4r); z2l=(x2r-stem,y1l); |
| 3018 |
filldraw z1r--z2r--z3r--z4l--z4r--z3l--z2l--z1l--cycle; |
| 3019 |
penlabels(1,2,3,4); |
| 3020 |
endchar; |
| 3021 |
|
| 3022 |
beginchar("!", 4u#, par_height#, 0); |
| 3023 |
hpos(1)(stem,can); hpos(2)(cap_stem,can); |
| 3024 |
x0=x1=x2=.5w; y2r=h; y1l=1.5dot_height; y0=.6stem; |
| 3025 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3026 |
dot(0); |
| 3027 |
endchar; |
| 3028 |
|
| 3029 |
"Reversed exclamation mark"; |
| 3030 |
beginchar(oct"074", 4u#, par_height#-desc_depth#, desc_depth#); |
| 3031 |
hpos(1)(stem,can); hpos(2)(cap_stem,can); |
| 3032 |
x0=x1=x2=.5w; y2l=-d; y1l=h-1.5dot_height; y0=h-.6stem; |
| 3033 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3034 |
dot(0); |
| 3035 |
endchar; |
| 3036 |
|
| 3037 |
beginchar("?", 9u#, par_height#, 0); |
| 3038 |
path p; |
| 3039 |
hpos(1)(stem,can); hpos(2)(stem,0); |
| 3040 |
x0=x1=x2=.5w; y2r=.5[y1,y13]; y1l=1.5dot_height; y0=.6stem; |
| 3041 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 3042 |
penpos10(stem,0); penpos11(stem,90); hpos(12)(stem,-can); penpos13(stem,-90); |
| 3043 |
p:=z2{up}..{up}z10; z3=point .5 of p; penpos3(stem,270+angle(direction .5 of p)); |
| 3044 |
filldraw z1l---z2l..z3l..z10l{up}..{left}z11l..{down}z12r--z12l{up}..z11r{right}..{down}z10r..z3r..z2r---z1r--cycle; |
| 3045 |
dot(0); |
| 3046 |
penlabels(1,2,3,10,11,12,13); |
| 3047 |
used_p:=nullpicture; addto used_p also currentpicture rotatedaround ((.5w,.5h),180); |
| 3048 |
endchar; |
| 3049 |
|
| 3050 |
"Reversed question sign"; |
| 3051 |
beginchar(oct"076", 9u#, par_height#-desc_depth#, desc_depth#); |
| 3052 |
addto currentpicture also used_p shifted (0,h-par_height); |
| 3053 |
endchar; |
| 3054 |
|
| 3055 |
iff known sign_less_than: |
| 3056 |
beginchar(sign_less_than, 10u#, .8cap_height#,0); |
| 3057 |
hpos(1)(stem/cosd(45),can); penpos2(stem/cosd(60),0);hpos(3)(stem/cosd(45),-can); |
| 3058 |
x2l=u; x1=x3; .5[y1l,y3l]=y2; y3l=h; y2=.5cap_height; rt x1r=w-u; |
| 3059 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3060 |
penlabels(1,2,3); |
| 3061 |
endchar; |
| 3062 |
|
| 3063 |
iff known sign_greater_than: |
| 3064 |
beginchar(sign_greater_than, 10u#, .8cap_height#,0); |
| 3065 |
hpos(1)(stem/cosd(45),-can); penpos2(stem/cosd(60),0);hpos(3)(stem/cosd(45),can); |
| 3066 |
x2r=w-u; x1=x3; .5[y1r,y3r]=y2; y3r=h; y2=.5cap_height; lft x1l=u; |
| 3067 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3068 |
endchar; |
| 3069 |
|
| 3070 |
iff known sign_french_opening: |
| 3071 |
"Left guillemot"; |
| 3072 |
beginchar(sign_french_opening, 8u#, .75[cap_height#,x_height#],0); |
| 3073 |
hpos(1)(stem,can); penpos2(stem,0);hpos(3)(stem,can); |
| 3074 |
x2l=u; x1=x3; y1l=0; y3r=h; y2=.5h; x1r=.6w; |
| 3075 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3076 |
filldraw (z1l--z2l--z3l--z3r--z2r--z1r--cycle) shifted (w-u-x1r,0); |
| 3077 |
endchar; |
| 3078 |
|
| 3079 |
iff known sign_french_closing: |
| 3080 |
"Right guillemot"; |
| 3081 |
beginchar(sign_french_closing, 8u#, .75[cap_height#,x_height#],0); |
| 3082 |
hpos(1)(stem,-can); penpos2(stem,0);hpos(3)(stem,-can); |
| 3083 |
x2r=w-u; x1=x3; y1r=0; y3l=h; y2=.5h; x1l=.4w; |
| 3084 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3085 |
filldraw (z1l--z2l--z3l--z3r--z2r--z1r--cycle) shifted (u-x1l,0); |
| 3086 |
endchar; |
| 3087 |
|
| 3088 |
"Polish crossbar"; |
| 3089 |
beginchar(oct"040", 3u#, cap_height#,0); |
| 3090 |
vpos(1)(stem,can); penpos2(stem,90); |
| 3091 |
y1=.65h; y2=.8h; x1l=0; x2=w; |
| 3092 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3093 |
endchar; |
| 3094 |
|
| 3095 |
"Ligature ff"; |
| 3096 |
beginchar(oct"013", 10u#,cap_height#,0); |
| 3097 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3098 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 3099 |
path p; pair shift; |
| 3100 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3101 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(.6w+4u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3102 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3103 |
z3l=z11l; |
| 3104 |
shift:=(w-u-x3r,0); |
| 3105 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 3106 |
filldraw (z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle) shifted shift; |
| 3107 |
filldraw z3r--z3r+shift--z3l+shift--z3l--cycle; |
| 3108 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3109 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 3110 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3111 |
penlabels(3); |
| 3112 |
z6r=z3r+shift; z6l=z3l+shift; |
| 3113 |
serif(6r)(angle(z6l-z6r),180-angle(direction 0 of (z3r..{left}z11r))); |
| 3114 |
endchar; |
| 3115 |
|
| 3116 |
"Ligature fi"; |
| 3117 |
beginchar(oct"014", 6u#+stem#,cap_height#,0); |
| 3118 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3119 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 3120 |
path p; pair shift; |
| 3121 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3122 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w+4u)-u-stem; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3123 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3124 |
z3l=z11l; |
| 3125 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 3126 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3127 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 3128 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3129 |
hpos(6)(stem,can); penpos7(stem,0); |
| 3130 |
x6r=x7r=w-u; y7r=x_height; y6l=0; |
| 3131 |
filldraw z6l--z7l--z7r--z6r--cycle; |
| 3132 |
z8a=(w-u,y3r); z8b=(x8a-(x3r-x3l),y3l); z8c=(x8a-.6stem,y8b-.8stem); z8d=(x8c-.6stem,y8b); |
| 3133 |
filldraw z3r--z8a--z8b--z8c--z8d--cycle; |
| 3134 |
penlabels(3); |
| 3135 |
endchar; |
| 3136 |
|
| 3137 |
"Ligature fl"; |
| 3138 |
beginchar(oct"015", 6u#+stem#,cap_height#,0); |
| 3139 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3140 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 3141 |
path p; pair shift; |
| 3142 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3143 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w+4u)-u-stem; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3144 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3145 |
z3l=z11l; |
| 3146 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 3147 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3148 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 3149 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3150 |
hpos(6)(stem,can); penpos7(stem,0); |
| 3151 |
x6r=x7r=w-u; y7r=h; y6l=0; |
| 3152 |
filldraw z6l--z7l--z7r--z6r--cycle; |
| 3153 |
penlabels(3); |
| 3154 |
endchar; |
| 3155 |
|
| 3156 |
"Ligature ffi"; |
| 3157 |
beginchar(oct"016", 10u#+stem#,cap_height#,0); |
| 3158 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3159 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 3160 |
path p; pair shift; |
| 3161 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3162 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w)-u-stem; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3163 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3164 |
z3l=z11l; |
| 3165 |
shift:=(w-u-stem-x3r,0); |
| 3166 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 3167 |
filldraw (z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle) shifted shift; |
| 3168 |
filldraw z3r--z3r+shift--z3l+shift--z3l--cycle; |
| 3169 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3170 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 3171 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3172 |
hpos(6)(stem,can); penpos7(stem,0); |
| 3173 |
x6r=x7r=w-u; y7r=x_height; y6l=0; |
| 3174 |
filldraw z6l--z7l--z7r--z6r--cycle; |
| 3175 |
z8a=(w-u,y3r); z8b=(x8a-(x3r-x3l),y3l); z8c=(x8a-.6stem,y8b-.8stem); z8d=(x8c-.6stem,y8b); |
| 3176 |
filldraw z3r+shift--z8a--z8b--z8c--z8d--cycle; |
| 3177 |
penlabels(3); |
| 3178 |
endchar; |
| 3179 |
|
| 3180 |
"Ligature ffl"; |
| 3181 |
beginchar(oct"017", 10u#+stem#,cap_height#,0); |
| 3182 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3183 |
x1l=2u=x2l; y1=0; y2=.8h; |
| 3184 |
path p; pair shift; |
| 3185 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3186 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w)-u-stem; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3187 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3188 |
z3l=z11l; |
| 3189 |
shift:=(w-u-stem-x3r,0); |
| 3190 |
filldraw z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle; |
| 3191 |
filldraw (z3r..z11r{left}..{down}z2l--z1l--z1r--z2r{up}..{right}z11l--cycle) shifted shift; |
| 3192 |
filldraw z3r--z3r+shift--z3l+shift--z3l--cycle; |
| 3193 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3194 |
y4=y5=x_height; x4l=u; x5=w-u; |
| 3195 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3196 |
hpos(6)(stem,can); penpos7(stem,0); |
| 3197 |
x6r=x7r=w-u; y7r=h; y6l=0; |
| 3198 |
filldraw z6l--z7l--z7r--z6r--cycle; |
| 3199 |
penlabels(3); |
| 3200 |
endchar; |
| 3201 |
|
| 3202 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Ligatures and specials |
| 3203 |
ligtable "!": "`"=:oct"074"; |
| 3204 |
ligtable "?": "`"=:oct"076"; |
| 3205 |
ligtable oct"040": "l" kern -3u#; |
| 3206 |
ligtable oct"013": "i"=:oct"016", "l"=:oct"017"; |
| 3207 |
ligtable "-": "-"=:oct"173"; |
| 3208 |
ligtable oct"173": "-"=:oct"174"; |
| 3209 |
ligtable "/": "/" kern -3u#; |
| 3210 |
|
| 3211 |
w:=fig_width; |
| 3212 |
h:=cap_height; |
| 3213 |
numeric theta, sstem; |
| 3214 |
path digit[]; |
| 3215 |
sstem:=3/2stem;%digit one |
| 3216 |
hpos(1)(sstem,can); hpos(3)(sstem,-can); |
| 3217 |
x1r=w-u; y1l=0; y3l=.6h; x3l=2u; z2r=(w-u,h); |
| 3218 |
theta:=(angle(z2r-z3l)); |
| 3219 |
z2'=z2r+((sstem,0) rotated (theta-90)); |
| 3220 |
z2l=whatever[z2',z3r]=whatever[z1l,z2r-(sstem,0)]; |
| 3221 |
digit[1]:=(z1r--z2r--z3l--z3r--z2l--z1l--cycle) scaled 2/3; |
| 3222 |
clearxy; %digit two |
| 3223 |
vpos(1)(sstem,can); |
| 3224 |
x1r=w-u; y1l=0; z2l=(u,0); y2r=y1r; |
| 3225 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5sstem; x10+.5sstem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5sstem=u; |
| 3226 |
penpos10(sstem,0); penpos11(sstem,90); penpos12(sstem,180); penpos13(sstem,-90); penpos10'(sstem,0); |
| 3227 |
y10'=y10; x10'r=w; |
| 3228 |
theta:=angle(z10'l-z2l); |
| 3229 |
z2'=z2l+((sstem,0) rotated (theta-90)); |
| 3230 |
z2r=whatever[z2',z10'r]; |
| 3231 |
y3l=y3r=y13; z3=.5[z3l,z3r]; |
| 3232 |
z3l=whatever[z2l,z10'l]; z3r=whatever[z2r,z10'r]; |
| 3233 |
penpos4(sstem,180+theta); z4=z13; |
| 3234 |
digit[2]:=(z1r--z2r---z3r..z10r{up}..{left}z11r..{down}z12r..{right}z4r--z4l{left}..z12l..{right}z11l..{down}z10l..z3l---z2l--z1l--cycle) scaled 2/3; |
| 3235 |
clearxy; %digit three |
| 3236 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5sstem; x10+.5sstem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5sstem=u; |
| 3237 |
penpos10(sstem,0); penpos11(sstem,90); hpos(12)(sstem,-can); vpos(13)(sstem,can); |
| 3238 |
.5[z20,z22]=.5[z21,z23]; y21=y13; x20+.5sstem=w-u; y20=y22; x21=x23; y23-.5sstem=0; x22-.5sstem=u; |
| 3239 |
penpos20(sstem,0); penpos21(sstem,90); hpos(22)(sstem,can); penpos23(sstem,90); vpos(2)(sstem,can); |
| 3240 |
digit[3]:= (z12l{up}..{right}z11r..{down}z10r..{left}z13l--z13r{right}..z10l{up}..z11l{left}..{down}z12r--cycle) scaled 2/3; |
| 3241 |
digit3.1:=(z13r{right}..{down}z20r..{left}z23l..{up}z22l--z22r{down}..{right}z23r..z20l{up}..{left}z13l--cycle) scaled 2/3; |
| 3242 |
clearxy; %digit four |
| 3243 |
hpos(1)(sstem,can); penpos4(sstem,90); |
| 3244 |
x1r=w-2.5u; y1l=0; y3l=.7x_height; x3l=u; z2r=(x1r,h); y4l=y3l; x4=w-u; y3r=y4r; |
| 3245 |
theta:=(angle(z2r-z3l)); |
| 3246 |
z2'=z2r+((sstem,0) rotated (theta-90)); |
| 3247 |
z2l=z2'+whatever*(z3l-z2r)=whatever[z1l,z2r-(sstem,0)]; |
| 3248 |
z3r=whatever[z2l,z2']; |
| 3249 |
digit4:=(z1r--z2r--z3l--z4l--z4r--z3r--z2l--z1l--cycle) scaled 2/3; |
| 3250 |
|
| 3251 |
iff known sign_sup_one: |
| 3252 |
"One superscript"; |
| 3253 |
beginchar(sign_sup_one,.75fig_width#,cap_height#,0); |
| 3254 |
filldraw digit1 shifted (.5u,1/3*cap_height); |
| 3255 |
endchar; |
| 3256 |
|
| 3257 |
iff known sign_sup_two: |
| 3258 |
"Two superscript"; |
| 3259 |
beginchar(sign_sup_two,.75fig_width#,cap_height#,0); |
| 3260 |
filldraw digit2 shifted (.5u,1/3*cap_height); |
| 3261 |
endchar; |
| 3262 |
|
| 3263 |
iff known sign_sup_three: |
| 3264 |
"Three superscript"; |
| 3265 |
beginchar(sign_sup_three,.75fig_width#,cap_height#,0); |
| 3266 |
filldraw digit3 shifted (.5u,1/3*cap_height); |
| 3267 |
filldraw digit3.1 shifted (.5u,1/3*cap_height); |
| 3268 |
endchar; |
| 3269 |
|
| 3270 |
iff known sign_sup_a: |
| 3271 |
"Underbared letter 'a' supperscript (ordfeminine)"; |
| 3272 |
beginchar(sign_sup_a, 5.4u#, cap_height#,0); |
| 3273 |
hpos(1)(sstem,can); penpos2(sstem,0); penpos3(sstem,90); vpos(4)(sstem,-can); |
| 3274 |
lft x1r=6.6u; y1=0; x2=x1; y2=.7x_height; x3=3.8u; top y3r=x_height; y4=.86x_height; x4l=2u; |
| 3275 |
filldraw (z1l--z1r--z2r{up}..{left}z3r..z4r--z4l..z3l{right}..{down}z2l--cycle) scaled 2/3 shifted (0,1/3cap_height+1/3x_height); |
| 3276 |
.5[z10,z12]=.5[z11,z13]; y13=.5sstem; x10+.5sstem=6.6u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5sstem=u; |
| 3277 |
penpos10(sstem,0); penpos11(sstem,90); penpos12(sstem,180); penpos13(sstem,-90); |
| 3278 |
filldraw (z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle) scaled 2/3 shifted (0,1/3*cap_height+1/3x_height); |
| 3279 |
z0=(.5w,1/3(cap_height+x_height)-.75stem); macron(0); |
| 3280 |
endchar; |
| 3281 |
|
| 3282 |
iff known sign_sup_o: |
| 3283 |
"Underbared letter 'o' superscript (ordmasculine)"; |
| 3284 |
beginchar(sign_sup_o, 6.7u#,cap_height#,0); |
| 3285 |
.5[z10,z12]=.5[z11,z13]; y13=.5sstem; x10+.5sstem=9u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5sstem=u; |
| 3286 |
penpos10(sstem,0); penpos11(sstem,90); penpos12(sstem,180); penpos13(sstem,-90); |
| 3287 |
filldraw (z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle) scaled 2/3 shifted (0, 1/3cap_height+1/3x_height); |
| 3288 |
z0=(.5w,1/3(cap_height+x_height)-.75stem); macron(0); |
| 3289 |
endchar; |
| 3290 |
|
| 3291 |
iff known sign_onequarter: |
| 3292 |
"One quarter sign"; |
| 3293 |
beginchar(sign_onequarter,13u#,cap_height#+stem#,-stem#); |
| 3294 |
filldraw digit[1] shifted (-.5u,1/3cap_height+2stem); |
| 3295 |
filldraw slash_path shifted (3.5u,stem); |
| 3296 |
filldraw digit[4] shifted (w-.7fig_width,0); |
| 3297 |
endchar; |
| 3298 |
|
| 3299 |
iff known sign_threequarters: |
| 3300 |
"Three quarters sign"; |
| 3301 |
beginchar(sign_threequarters,13.5u#,cap_height#+stem#,-stem#); |
| 3302 |
filldraw digit[3] shifted (.5u,1/3cap_height+2stem); |
| 3303 |
filldraw digit3.1 shifted (.5u,1/3cap_height+2stem); |
| 3304 |
filldraw slash_path shifted (4u,stem); |
| 3305 |
filldraw digit[4] shifted (w-.7fig_width,0); |
| 3306 |
endchar; |
| 3307 |
|
| 3308 |
iff known sign_onehalf: |
| 3309 |
"One half sign"; |
| 3310 |
beginchar(sign_onehalf,14u#,cap_height#+stem#,-stem#); |
| 3311 |
filldraw digit[1] shifted (-.5u,1/3cap_height+2stem); |
| 3312 |
filldraw slash_path shifted (3.5u,stem); |
| 3313 |
filldraw digit[2] shifted (w-.7fig_width,0); |
| 3314 |
endchar; |
| 3315 |
|
| 3316 |
iff known sign_registered: |
| 3317 |
"Registered sign"; |
| 3318 |
beginchar(sign_registered, 16.5u#,cap_height#,0); |
| 3319 |
numeric scap_stem; scap_stem:=cap_stem/.65; |
| 3320 |
pair shift_it; |
| 3321 |
shift_it:=(.5*(16.5-.65*11)*u+.5u,.5*.35h); |
| 3322 |
hpos(1)(scap_stem,can); hpos(2)(scap_stem,0); |
| 3323 |
x1l=u=x2l; y1=0; y2r=h; |
| 3324 |
filldraw (z1l--z1r--z2r--z2l--cycle) scaled .65 shifted shift_it; |
| 3325 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5scap_stem; x10+.5scap_stem=10u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5scap_stem=2u; |
| 3326 |
z2'=z2r+.5scap_stem*down; x2'=x2''; .5[y2',y2'']=.5[y11,y13]; |
| 3327 |
penpos2'(scap_stem,90); penpos2''(scap_stem,270); penpos11(scap_stem,90); penpos10(scap_stem,0); penpos13(scap_stem,270); |
| 3328 |
hpos(3)(scap_stem,0); hpos(4)(scap_stem,can); |
| 3329 |
z3l=z2''l; x4r=10u; y4l=0; |
| 3330 |
z0=(z4r--z3r) intersectionpoint (z13r--z2''r); |
| 3331 |
filldraw (z2'r---z11r..{down}z10r..{left}z13r--- z0--z4r--z4l --z2''l---z13l..{up}z10l..z11l---z2'l--cycle) scaled .65 shifted shift_it; |
| 3332 |
penpos20(cap_stem,0); penpos21(cap_stem,90); penpos22(cap_stem,180); penpos23(cap_stem,-90); |
| 3333 |
.5[z20,z22]=.5[z21,z23]; y23=.5cap_stem; x20+.5cap_stem=w-u; y20=y22; x21=x23; y21-y23=x20-x22; x22-.5cap_stem=u; |
| 3334 |
filldraw z20r{up}..{left}z21r..{down}z22r..{right}z23r..{up}z20r--z20l{down}..{left}z23l..{up}z22l..{right}z21l..{down}z20l--cycle; |
| 3335 |
endchar; |
| 3336 |
|
| 3337 |
iff known sign_copyright: |
| 3338 |
"Copyright sign"; |
| 3339 |
beginchar(sign_copyright, 16.5u#,cap_height#,0); |
| 3340 |
numeric scap_stem; scap_stem:=cap_stem/.65; |
| 3341 |
path p; |
| 3342 |
penpos11(scap_stem,90); penpos12(scap_stem,0); penpos13(scap_stem,90); |
| 3343 |
.5[z10,z12]=.5[z11,z13]; y13=.5scap_stem; x10+.5scap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5scap_stem=u; |
| 3344 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3345 |
z1=point .68 of p; |
| 3346 |
z2=point 3.28 of p; |
| 3347 |
vpos(1)(scap_stem,-.5can); vpos(2)(scap_stem,.5can); |
| 3348 |
filldraw (z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1l--cycle) scaled .65 shifted (.22*w,.5*.35h); |
| 3349 |
penpos20(cap_stem,0); penpos21(cap_stem,90); penpos22(cap_stem,180); penpos23(cap_stem,-90); |
| 3350 |
.5[z20,z22]=.5[z21,z23]; y23=.5cap_stem; x20+.5cap_stem=w-u; y20=y22; x21=x23; y21-y23=x20-x22; x22-.5cap_stem=u; |
| 3351 |
filldraw z20r{up}..{left}z21r..{down}z22r..{right}z23r..{up}z20r--z20l{down}..{left}z23l..{up}z22l..{right}z21l..{down}z20l--cycle; |
| 3352 |
endchar; |
| 3353 |
|
| 3354 |
iff known sign_period_centered: |
| 3355 |
"Centered period"; |
| 3356 |
beginchar(sign_period_centered,2u#+dot_height#, .5cap_height#+dot_height#/1.2,0); |
| 3357 |
z0=(.5w,h-2dot_height); |
| 3358 |
dot(0); |
| 3359 |
endchar; |
| 3360 |
|
| 3361 |
iff known sign_logicalnot: |
| 3362 |
"Logical not sign"; |
| 3363 |
beginchar(sign_logicalnot,10u#,x_height#,0); |
| 3364 |
vpos(1)(stem,can); penpos3(stem,0); |
| 3365 |
lft z1l=(u,h-stem); rt x3r=w-u; y3l=.45h; z2r=(x3r,y1r); z2l=(x3l,y1l); |
| 3366 |
filldraw z1r--z2r--z3r--z3l--z2l--z1l--cycle; |
| 3367 |
penlabels(1,2,3); |
| 3368 |
endchar; |
| 3369 |
|
| 3370 |
iff known sign_alinea: |
| 3371 |
"Paragraph sign"; |
| 3372 |
beginchar(sign_alinea, 11u#,cap_height#,0); |
| 3373 |
hpos(1)(cap_stem,0); hpos(2)(cap_stem,0); |
| 3374 |
x1r=w-u=x2r; y1=0; y2r=h; |
| 3375 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 3376 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5cap_stem; x10+.5cap_stem=w-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5cap_stem=u; |
| 3377 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,180); penpos13(cap_stem,-90); |
| 3378 |
penpos2'(cap_stem,90); penpos2''(cap_stem,270); |
| 3379 |
.5[y2'',y2']=y10; x2'=x2''+2.5stem=x2l; y2'r=y2r; |
| 3380 |
filldraw z2'r---z11r..{down}z12r..{right}z13r---z2''r--z2''l---z13l{left}..{up}z12l..{right}z11l---z2'l--cycle; |
| 3381 |
z3=(x2''+stem,y2r); hpos(4)(cap_stem,can); x4r=x3; y4l=0; |
| 3382 |
filldraw z3--z4r--z4l--z2''r---z13r{left}..{up}z12r..z11r--cycle; |
| 3383 |
penlabels(1,2,2',3,4,10,11,12,13); |
| 3384 |
endchar; |
| 3385 |
|
| 3386 |
iff known sign_micron: |
| 3387 |
"Micron sign (greek mu)"; |
| 3388 |
beginchar(sign_micron, 9u#,x_height#,desc_depth#); |
| 3389 |
hpos(1)(stem,0); hpos(2)(stem,-can); vpos(3)(stem,can); penpos4(stem,0); hpos(5)(stem,can); |
| 3390 |
vpos(1')(stem,can); |
| 3391 |
x1l=u=x2l; y1=-.35d; y2l=y5r=h; y4=.3h; x5r=w-u; x4r=w-u; y1'l=-d; x1-x1'=y1'-y1; |
| 3392 |
filldraw z1'r--z1'l..z1l---z2l--z2r--z1r..{right}cycle; |
| 3393 |
path p; |
| 3394 |
penpos10(stem,180);penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3395 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=(w+0u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 3396 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3397 |
filldraw z5l--z5r--z10l{down}..z13l{left}..{up}z12l--z12r{down}..{right}z13r..{up}z10r--cycle; |
| 3398 |
endchar; |
| 3399 |
|
| 3400 |
iff known sign_plusminus: |
| 3401 |
"Plus minus sign"; |
| 3402 |
beginchar(sign_plusminus, 10u#, v_center(8u#)); |
| 3403 |
vpos(1)(stem,can); penpos2(stem,90); hpos(3)(stem,can); hpos(4)(stem,can); |
| 3404 |
y1=y2=math_axis; x1l=u; x2=w-u; x3=x4=.5w; y3r=h; y4l=-d; |
| 3405 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3406 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 3407 |
filldraw (z1l--z2l--z2r--z1r--cycle) shifted (0,y2-y3); |
| 3408 |
endchar; |
| 3409 |
|
| 3410 |
iff known sign_minusplus: |
| 3411 |
"Minus plus sign"; |
| 3412 |
beginchar(sign_minusplus, 10u#, v_center(8u#)); |
| 3413 |
vpos(1)(stem,can); penpos2(stem,90); hpos(3)(stem,can); hpos(4)(stem,can); |
| 3414 |
y1=y2=math_axis; x1l=u; x2=w-u; x3=x4=.5w; y3r=h; y4l=-d; |
| 3415 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3416 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 3417 |
filldraw (z1l--z2l--z2r--z1r--cycle) shifted (0,y3-y1); |
| 3418 |
endchar; |
| 3419 |
|
| 3420 |
iff known sign_cent: |
| 3421 |
"Cent sign"; |
| 3422 |
beginchar(sign_cent, 9u#,cap_height#,0); |
| 3423 |
path p; |
| 3424 |
penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3425 |
.5[z10,z12]=.5[z11,z13]; y13=.25h; x10+.5stem=(w+u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=u; |
| 3426 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3427 |
z1=point .5 of p; |
| 3428 |
z2=point 3.5 of p; |
| 3429 |
penpos1(stem,(170-angle(direction.5 of p))); penpos2(stem,(100+angle(direction 3.5 of p))); |
| 3430 |
filldraw z1r..{left}z11r..{down}z12l..{right}z13l..z2l--z2r..z13r{left}..z12r{up}..z11l{right}..z1l--cycle; |
| 3431 |
serif(1r,angle(z1l-z1r),180+angle(direction.5 of p)); |
| 3432 |
filldraw slash_path shifted (u,0); |
| 3433 |
endchar; |
| 3434 |
|
| 3435 |
iff known sign_yen: |
| 3436 |
"Yen sign"; |
| 3437 |
beginchar(sign_yen, 13u#,cap_height#,0); |
| 3438 |
hpos(1)(cap_stem,-can); hpos(2)(cap_stem,-can); hpos(3)(cap_stem,can); |
| 3439 |
x1r=w-u; y1l=h=y3r; x3l=u; y2r=0; x2l=3.5u; z4l=whatever[z1l,z2l]; y4l=.4h; |
| 3440 |
z4r=z4l+(cap_stem/sind(angle(z3l-z4l)),0) rotated (angle(z1l-z4l)-10); |
| 3441 |
filldraw z1l--z1r--z2r--z2l--cycle; |
| 3442 |
filldraw z3l--z3r--z4r--z4l--cycle; |
| 3443 |
vpos(6)(.75stem,can); vpos(7)(.75stem,0); |
| 3444 |
lft x6l=2u; rt x7=w-2u; y6=y7=y4l; |
| 3445 |
filldraw z6r--z7r--z7l--z6l--cycle; |
| 3446 |
filldraw (z6r--z7r--z7l--z6l--cycle) shifted (0,-2stem); |
| 3447 |
endchar; |
| 3448 |
|
| 3449 |
iff known sign_currency: |
| 3450 |
beginchar(sign_currency, 12u#,cap_height#,0); |
| 3451 |
"Currency sign"; |
| 3452 |
.5[z10,z12]=.5[z11,z13]=z0=(.5w,.5h); y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3453 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 3454 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 3455 |
path p; p:=z10{up}..{left}z11..{down}z12..{right}z13..{up}cycle; |
| 3456 |
x1'l=x4'r=w-u; x2'r=x3'l=u; |
| 3457 |
for i=1,2,3,4: |
| 3458 |
z[i]=point (i-.5) of p; penpos[i](stem,angle(direction (i-.5) of p)); |
| 3459 |
penpos[i]'(stem,angle(direction (i-.5) of p)); |
| 3460 |
z[i]'=whatever[z0,z[i]]; |
| 3461 |
filldraw z[i]r--z[i]l--z[i]'l--z[i]'r--cycle; |
| 3462 |
endfor; |
| 3463 |
penlabels(1,1',2,2',3,3',4,4'); |
| 3464 |
endchar; |
| 3465 |
|
| 3466 |
iff known sign_sterling: |
| 3467 |
"Sterling sing"; |
| 3468 |
beginchar(sign_sterling, 10u#,cap_height#,0); |
| 3469 |
vpos(1)(cap_stem,can); vpos(2)(cap_stem,can); penpos3(cap_stem,0); penpos4(cap_stem,0); vpos(5)(cap_stem,can); |
| 3470 |
y1l=0; x1r=w-u; y2l=0; x2l=u; y3=.15x_height; x3l-x2=y3-y2l; x4=x3; y4=.75h; y5r=h; x5-x4r=y5r-y4; |
| 3471 |
filldraw z1r--z1l--z2l{dir10}..{up}z3l---z4l..z5r--z5l..z4r---z3r--(x3r,y1r)--cycle; |
| 3472 |
vpos(6)(cap_stem,can); penpos7(cap_stem,90); |
| 3473 |
y6=y7=.5h; x6l=u; x7=.55w; |
| 3474 |
filldraw z6r--z6l--z7l--z7r--cycle; |
| 3475 |
penlabels(1,2,3,4,5,6,7); |
| 3476 |
endchar; |
| 3477 |
|
| 3478 |
iff known sign_bar: |
| 3479 |
"Vertical bar"; |
| 3480 |
beginchar(sign_bar, 5u#, cap_height#,0); |
| 3481 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 3482 |
x1=x2=.5w; y1l=0; y2r=h; |
| 3483 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3484 |
endchar; |
| 3485 |
|
| 3486 |
iff known sign_broken_bar: |
| 3487 |
"Vertical broken bar"; |
| 3488 |
beginchar(sign_broken_bar, 5u#, cap_height#,0); |
| 3489 |
hpos(1)(cap_stem,can); penpos2(cap_stem,0); hpos(3)(cap_stem,can); penpos4(cap_stem,0); |
| 3490 |
x1=x2=x3=x4=.5w; y1l=0; y4r=h; .5[y2,y3]=.5h; y3l-y2=2cap_stem; |
| 3491 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3492 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 3493 |
penlabels(1,2,3,4); |
| 3494 |
endchar; |
| 3495 |
|
| 3496 |
iff known sign_section: |
| 3497 |
"Section sign"; |
| 3498 |
beginchar(sign_section, 12u#,cap_height#,desc_depth#); |
| 3499 |
hpos(1)(cap_stem,0); penpos2(cap_stem,(-can+90)); vpos(3)(cap_stem,can); hpos(4)(cap_stem,0); penpos0(cap_stem,90); |
| 3500 |
x1r=w-u; y1=.6x_height; y4=h-.4x_height; x4l=u; |
| 3501 |
path p; |
| 3502 |
penpos10(cap_stem,0); penpos11(cap_stem,90); penpos12(cap_stem,0); penpos13(cap_stem,90); |
| 3503 |
.5[z10,z12]=.5[z11,z13]; y13=cap_stem+.1x_height; x10+.5cap_stem=w-u; y10=y12; |
| 3504 |
x11=x13; y11-y13=x10-x12; x13=.5w; x3=x12l; y3=.45x_height; |
| 3505 |
p:= z10{down}..{left}z13..{up}z12..{right}z11..cycle; |
| 3506 |
penpos20(cap_stem,0); penpos21(cap_stem,90); penpos22(cap_stem,0); penpos23(cap_stem,90); |
| 3507 |
.5[z20,z22]=.5[z21,z23]; y21=h-cap_stem+.1x_height; x20+.5cap_stem=w-u; y20=y22; |
| 3508 |
x21=x23; y21-y23=x20-x22; x23=.5w; x2r=x10r; y2r=h-.15x_height; |
| 3509 |
filldraw z13l{right}..{up}z1r--z1l{down}..{left}z13r--cycle; |
| 3510 |
filldraw z2l..z21l{left}..{down}z4r--z4l{up}..{right}z21r..z2r--cycle; |
| 3511 |
p:=z4r{down}..{down}z1r; z0=((.5w,0)--(.5w,h)) intersectionpoint p; |
| 3512 |
filldraw z4l{down}..z0l..{down}z1l--z1r{up}..z0r..{up}z4r--cycle; |
| 3513 |
filldraw (z4r{up}..{right}z21l--z21r{left}..{down} z4l) shifted (z0-z21)..{right}z13l..(z1l{down}..{left}z13r..z3r--z3l..z13l{right}..{up}z1r) shifted (z0-z21)..z13r{left}..{up}cycle; |
| 3514 |
penlabels(0,1,2,3,4,10,11,12,13,20,21,22,23); |
| 3515 |
endchar; |
| 3516 |
|
| 3517 |
iff known sign_divide: |
| 3518 |
"Divide sign"; |
| 3519 |
beginchar(sign_divide, 10u#, v_center(8u#)); |
| 3520 |
vpos(1)(stem,can); penpos2(stem,90); |
| 3521 |
y1=y2=math_axis; x1l=u; x2=w-u; .5[y3,y4]=math_axis; x3=x4=.5w; y3=dot_height; |
| 3522 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3523 |
dot(3); dot(4); |
| 3524 |
endchar; |
| 3525 |
|
| 3526 |
iff known sign_backslash: |
| 3527 |
beginchar(sign_backslash, 8u#, cap_height#,0); |
| 3528 |
hpos(1)(cap_stem,-can); hpos(2)(cap_stem,-can); |
| 3529 |
x1r=w-u; x2l=u; y1r=0; y2l=h; |
| 3530 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3531 |
endchar; |
| 3532 |
|
| 3533 |
iff known sign_underscore: |
| 3534 |
beginchar(sign_underscore, 9u#, 0,stem#); |
| 3535 |
vpos(1)(stem,can); penpos2(stem,90); |
| 3536 |
y1=y2=-.5stem; x1l=0; x2=w; |
| 3537 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3538 |
endchar; |
| 3539 |
|
| 3540 |
iff known sign_times: |
| 3541 |
"Times sign"; |
| 3542 |
beginchar(sign_times, 9u#, v_center(6u#)); |
| 3543 |
numeric mstem; mstem=stem/cosd(15); |
| 3544 |
hpos(1)(stem/cosd(15),0); hpos(2)(stem/cosd(15),0); hpos(3)(mstem,can); hpos(4)(mstem,can); |
| 3545 |
x1l=x4l=u; x2r=x3r=w-u; y1l=y3l=0; y2r=y4r=h; |
| 3546 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3547 |
filldraw z3l--z4l--z4r--z3r--cycle; |
| 3548 |
penlabels(1,2,3,4); |
| 3549 |
endchar; |
| 3550 |
|
| 3551 |
iff known sign_brace_left: |
| 3552 |
"Brace left"; |
| 3553 |
beginchar(sign_brace_left, 6.5u#, par_height#, par_depth#); |
| 3554 |
vpos(0)(.5stem,can); |
| 3555 |
vpos(1)(stem,can); penpos2(stem,180); penpos3(stem,180); |
| 3556 |
penpos4(stem,180); penpos5(stem,180); vpos(6)(stem,-can); |
| 3557 |
z0=(u,.5(h-d)); x1r=x6r=w-u; y1r=h; y2=.85h; y1-y2=x1-x2l; y3-y0=y1-y2; x3=x4=x5=x2; |
| 3558 |
y7=y0; x7=x3l-stem; |
| 3559 |
y6l=-d; y5=-d+.15h; .5[y4,y3]=y0; |
| 3560 |
filldraw z1r..z2r---z3r..{left}z0r--z0l{right}..z4r---z5r..{right}z6l--z6r{left}..z5l---z4l..{left}z7{right}..z3l---z2l..z1l--cycle; |
| 3561 |
penlabels(0,1,2,3,4,5,6,7); |
| 3562 |
endchar; |
| 3563 |
|
| 3564 |
iff known sign_brace_right: |
| 3565 |
"Brace right"; |
| 3566 |
beginchar(sign_brace_right, 6.5u#, par_height#, par_depth#); |
| 3567 |
vpos(0)(.5stem,-can); |
| 3568 |
vpos(1)(stem,-can); penpos2(stem,0); penpos3(stem,0); |
| 3569 |
penpos4(stem,0); penpos5(stem,0); vpos(6)(stem,can); |
| 3570 |
z0=(w-u,.5(h-d)); x1l=x6l=u; y1r=h; y2=.85h; y1-y2=x2l-x1; y3-y0=y1-y2; x3=x4=x5=x2; |
| 3571 |
y7=y0; x7=x3l+stem; |
| 3572 |
y6l=-d; y5=-d+.15h; .5[y4,y3]=y0; |
| 3573 |
filldraw z1r..z2r---z3r..{right}z0r--z0l{left}..z4r---z5r..{left}z6l--z6r{right}..z5l---z4l..{right}z7{left}..z3l---z2l..z1l--cycle; |
| 3574 |
penlabels(0,1,2,3,4,5,6,7); |
| 3575 |
endchar; |
| 3576 |
|
| 3577 |
iff known sign_dag: |
| 3578 |
"Dagger sign"; |
| 3579 |
beginchar(sign_dag, 8u#,cap_height#,0); |
| 3580 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3581 |
x1=.5w=x2; y1=0; y2=h; |
| 3582 |
filldraw z2l--z1l--z1r--z2r--cycle; |
| 3583 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3584 |
y4=y5=.4[x_height,h]; x4l=u; x5=w-u; |
| 3585 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3586 |
endchar; |
| 3587 |
|
| 3588 |
iff known sign_dagg: |
| 3589 |
"Double dagger sign"; |
| 3590 |
beginchar(sign_dagg, 8u#,cap_height#,0); |
| 3591 |
hpos(1)(stem,can); penpos2(stem,0); vpos(3)(stem,can); |
| 3592 |
x1=.5w=x2; y1=0; y2=h; |
| 3593 |
filldraw z2l--z1l--z1r--z2r--cycle; |
| 3594 |
vpos(4)(stem,can); penpos5(stem,90); |
| 3595 |
vpos(7)(stem,can); penpos6(stem,90); |
| 3596 |
y4=y5=.4[x_height,h]; x4l=u; x5=w-u; |
| 3597 |
y6=y7=.5x_height; x6l=u; x7=w-u; |
| 3598 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3599 |
filldraw z6r--z7r--z7l--z6l--cycle; |
| 3600 |
endchar; |
| 3601 |
|
| 3602 |
iff known sign_bullet: |
| 3603 |
"Bullet sign"; |
| 3604 |
beginchar(sign_bullet, 8u#,v_center(6u#)); |
| 3605 |
filldraw fullcircle scaled 6u shifted (.5w,.5(h-d)); |
| 3606 |
endchar; |
| 3607 |
|
| 3608 |
iff known sign_bullet_triangle: |
| 3609 |
"Triangle bullet sign"; |
| 3610 |
beginchar(sign_bullet_triangle, 7u#,v_center(6u#)); |
| 3611 |
filldraw (u,-d)--(w-u,math_axis)--(u,h)--cycle; |
| 3612 |
endchar; |
| 3613 |
|
| 3614 |
iff known sign_prime: |
| 3615 |
"Prime sign"; |
| 3616 |
beginchar(sign_prime,4u#,asc_height#,0); |
| 3617 |
y1r=h; y2l=.9x_height; x1r=w-u; x2l=u; |
| 3618 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 3619 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 3620 |
endchar; |
| 3621 |
|
| 3622 |
iff known sign_doubleprime: |
| 3623 |
"Double prime sign"; |
| 3624 |
beginchar(sign_doubleprime,6u#,asc_height#,0); |
| 3625 |
y1r=h; y2l=.9x_height; x1r=w-3u; x2l=u; |
| 3626 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 3627 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 3628 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (2u,0); |
| 3629 |
endchar; |
| 3630 |
|
| 3631 |
iff known sign_tripleprime: |
| 3632 |
"Triple prime sign"; |
| 3633 |
beginchar(sign_tripleprime,8u#,asc_height#,0); |
| 3634 |
y1r=h; y2l=.9x_height; x1r=w-5u; x2l=u; |
| 3635 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 3636 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 3637 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (2u,0); |
| 3638 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (4u,0); |
| 3639 |
endchar; |
| 3640 |
|
| 3641 |
iff known sign_prime_reversed: |
| 3642 |
"Reversed prime sign"; |
| 3643 |
beginchar(sign_prime_reversed,4u#,asc_height#,0); |
| 3644 |
y1r=h; y2l=.9x_height; x1l=u; x2r=w-u; |
| 3645 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 3646 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 3647 |
endchar; |
| 3648 |
|
| 3649 |
iff known sign_doubleprime_reversed: |
| 3650 |
"Reversed double prime sign"; |
| 3651 |
beginchar(sign_doubleprime_reversed,6u#,asc_height#,0); |
| 3652 |
y1r=h; y2l=.9x_height; x1l=u; x2r=w-3u; |
| 3653 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 3654 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 3655 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (2u,0); |
| 3656 |
endchar; |
| 3657 |
|
| 3658 |
iff known sign_tripleprime_reversed: |
| 3659 |
"Reversed triple prime sign"; |
| 3660 |
beginchar(sign_tripleprime_reversed,8u#,asc_height#,0); |
| 3661 |
y1r=h; y2l=.9x_height; x1l=u; x2r=w-5u; |
| 3662 |
hpos(2)(stem,-can); hpos(1)(cap_stem,-can); |
| 3663 |
filldraw (z1l--z1r--z2r--z2l--cycle); |
| 3664 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (2u,0); |
| 3665 |
filldraw (z1l--z1r--z2r--z2l--cycle) shifted (4u,0); |
| 3666 |
endchar; |
| 3667 |
|
| 3668 |
iff known sign_arrow_left: |
| 3669 |
"Left arrow"; |
| 3670 |
beginchar(sign_arrow_left, 18u#, .8cap_height#,0); |
| 3671 |
hpos(1)(stem/cosd(30),can); penpos2(stem/cosd(45),0);hpos(3)(stem/cosd(30),-can); |
| 3672 |
penpos4(stem,90); vpos(5)(stem,-can); |
| 3673 |
x2l=u; x1=x3; .5[y1l,y3l]=y2; y3l=h; y2=.5cap_height; rt x1l=.3w; |
| 3674 |
rt x5r=w-u; y5=y2; z4=z2r; |
| 3675 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3676 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3677 |
penlabels(1,2,3,4,5); |
| 3678 |
endchar; |
| 3679 |
|
| 3680 |
iff known sign_arrow_right: |
| 3681 |
"Right arrow"; |
| 3682 |
beginchar(sign_arrow_right, 18u#, .8cap_height#,0); |
| 3683 |
hpos(1)(stem/cosd(30),-can); penpos2(stem/cosd(45),0);hpos(3)(stem/cosd(30),can); |
| 3684 |
penpos4(stem,90); vpos(5)(stem,can); |
| 3685 |
x2r=w-u; x1=x3; .5[y1r,y3r]=y2; y3r=h; y2=.5cap_height; lft x1r=.7w; |
| 3686 |
lft x5l=u; y5=y2; z4=z2l; |
| 3687 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3688 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3689 |
penlabels(1,2,3,4,5); |
| 3690 |
endchar; |
| 3691 |
|
| 3692 |
iff known sign_arrow_left_filled: |
| 3693 |
"Filled left arrow"; |
| 3694 |
beginchar(sign_arrow_left_filled, 18u#, .8cap_height#,0); |
| 3695 |
hpos(1)(stem/cosd(30),can); penpos2(stem/cosd(45),0);hpos(3)(stem/cosd(30),-can); |
| 3696 |
penpos4(stem,90); vpos(5)(stem,-can); |
| 3697 |
x2l=u; x1=x3; .5[y1l,y3l]=y2; y3l=h; y2=.5cap_height; rt x1l=.3w; |
| 3698 |
rt x5r=w-u; y4=y5=y2; x4=x3l; |
| 3699 |
filldraw z1l--z2l--z3l--z3r--z4r--z5r--z5l--z4l--z1r--cycle; |
| 3700 |
penlabels(1,2,3,4,5); |
| 3701 |
endchar; |
| 3702 |
|
| 3703 |
iff known sign_arrow_leftright: |
| 3704 |
"Left-right arrow"; |
| 3705 |
beginchar(sign_arrow_leftright, 18u#, .8cap_height#,0); |
| 3706 |
hpos(1)(stem/cosd(30),can); penpos2(stem/cosd(45),0);hpos(3)(stem/cosd(30),-can); |
| 3707 |
hpos(6)(stem/cosd(30),-can); penpos7(stem/cosd(45),0);hpos(8)(stem/cosd(30),can); |
| 3708 |
penpos4(stem,90); vpos(5)(stem,can); |
| 3709 |
x7r=w-u; x6=x8; .5[y6r,y8r]=y7; y8r=h; y7=.5cap_height; lft x6r=.7w; |
| 3710 |
x2l=u; x1=x3; .5[y1l,y3l]=y2; y3l=h; y2=.5cap_height; rt x1l=.3w; |
| 3711 |
z5=z7l; z4=z2r; |
| 3712 |
filldraw z1l--z2l--z3l--z3r--z2r--z1r--cycle; |
| 3713 |
filldraw z6l--z7l--z8l--z8r--z7r--z6r--cycle; |
| 3714 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3715 |
penlabels(1,2,3,4,5,6,7,8); |
| 3716 |
endchar; |
| 3717 |
|
| 3718 |
iff known sign_arrow_up: |
| 3719 |
"Up arrow"; |
| 3720 |
beginchar(sign_arrow_up, 10u#, cap_height#,0); |
| 3721 |
hpos(1)(stem/cosd(30),-can); penpos2(stem/cosd(60),90);hpos(3)(stem/cosd(30),can); |
| 3722 |
penpos4(stem,0); hpos(5)(stem,can); |
| 3723 |
y2r=h; y1=y3; .5[x1l,x3r]=x2; rt x3r=w-u; x2=.5w; y1=x_height; |
| 3724 |
y5l=0; x5=x2; z4=z2l; |
| 3725 |
filldraw z1l--z2r--z3r--z3l--z2l--z1r--cycle; |
| 3726 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3727 |
penlabels(1,2,3,4,5); |
| 3728 |
endchar; |
| 3729 |
|
| 3730 |
iff known sign_arrow_down: |
| 3731 |
"Down arrow"; |
| 3732 |
beginchar(sign_arrow_down, 10u#, cap_height#,0); |
| 3733 |
hpos(1)(stem/cosd(30),can); penpos2(stem/cosd(60),90);hpos(3)(stem/cosd(30),-can); |
| 3734 |
penpos4(stem,0); hpos(5)(stem,can); |
| 3735 |
y2l=0; y1=y3; .5[x1l,x3r]=x2; rt x3r=w-u; x2=.5w; y1=h-x_height; |
| 3736 |
y5r=h; x5=x2; z4=z2r; |
| 3737 |
filldraw z1l--z2l--z3r--z3l--z2r--z1r--cycle; |
| 3738 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3739 |
penlabels(1,2,3,4,5); |
| 3740 |
endchar; |
| 3741 |
|
| 3742 |
iff known sign_arrow_updown: |
| 3743 |
"Up-down arrow"; |
| 3744 |
beginchar(sign_arrow_updown, 10u#, cap_height#,0); |
| 3745 |
hpos(1)(stem/cosd(30),-can); penpos2(stem/cosd(50),90);hpos(3)(stem/cosd(30),can); |
| 3746 |
hpos(6)(stem/cosd(30),can); penpos7(stem/cosd(50),90);hpos(8)(stem/cosd(30),-can); |
| 3747 |
penpos4(stem,0); hpos(5)(stem,can); |
| 3748 |
y2r=h; y1=y3; .5[x1l,x3r]=x2; rt x3r=w-u; x2=.5w; y1=1.2x_height; |
| 3749 |
y7l=0; y6=y8; .5[x6l,x8r]=x7; rt x8r=w-u; x7=.5w; y6=h-1.2x_height; |
| 3750 |
z5=z7r; z4=z2l; |
| 3751 |
filldraw z1l--z2r--z3r--z3l--z2l--z1r--cycle; |
| 3752 |
filldraw z6l--z7l--z8r--z8l--z7r--z6r--cycle; |
| 3753 |
filldraw z4r--z5r--z5l--z4l--cycle; |
| 3754 |
penlabels(1,2,3,4,5); |
| 3755 |
endchar; |
| 3756 |
|
| 3757 |
iff known sign_sum: |
| 3758 |
"Sumation sign (text mode)"; |
| 3759 |
beginchar(sign_sum,14u#, par_height#,desc_depth#); |
| 3760 |
vpos(1)(cap_stem,can); vpos(5)(cap_stem,-can); penpos3(cap_stem/cosd(45),180); |
| 3761 |
x1r=x5l=w-u; y1r=y2r=h; y4r=y5l=-d; y3=.5(h-d); x3=.65w; x2r=x4r=u; y2l=y1l; y4l=y5r; |
| 3762 |
z4'=z4r+((cap_stem,0) rotated (angle((z3r-z4r))-90)); |
| 3763 |
z2'=z2r+((cap_stem,0) rotated (angle((z3r-z2r))+90)); |
| 3764 |
z4l=z4'+whatever*(z3r-z4r); z2l=z2'+whatever*(z3r-z2r); |
| 3765 |
filldraw z1r--z2r--z3r--z4r--z5l--z5r--z4l--z3l--z2l--z1l--cycle; |
| 3766 |
penlabels(1,2,3,4,5); labels(2',4'); |
| 3767 |
endchar; |
| 3768 |
|
| 3769 |
iff known sign_integral: |
| 3770 |
"Simple integral sign (text mode)"; |
| 3771 |
beginchar(sign_integral, 6u#,par_height#,desc_depth#); |
| 3772 |
penpos1(stem,0); penpos2(stem,0); vpos(3)(stem,can); vpos(3')(stem,-can); |
| 3773 |
x1=.5w=x2; y1=0; y2=.8cap_height;path p; |
| 3774 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,0); penpos13(stem,90); |
| 3775 |
.5[z10,z12]=.5[z11,z13]; y11=h-.5stem; x10+.5stem=(w+6u)-u; y10=y12; x11=x13; y11-y13=x10-x12; x12-.5stem=2u; |
| 3776 |
p:= z10{up}..{left}z11..{down}z12..{right}z13..cycle; |
| 3777 |
z3l=z11l; z3'=z13; |
| 3778 |
filldraw z3r..z11r{left}..{down}z2l---z1l..{left}((z3'r--z3'l) shifted (z1l-z10l)){right}..z1r--z2r{up}..{right}z11l--cycle; |
| 3779 |
penlabels(1,2,3,3'); |
| 3780 |
endchar; |
| 3781 |
|
| 3782 |
iff known sign_exist: |
| 3783 |
"Exists sign"; |
| 3784 |
beginchar(sign_exist, 8u#,cap_height#,0); |
| 3785 |
hpos(1)(stem,0); hpos(2)(stem,0); vpos(3)(stem,-can); penpos4(stem,90); vpos(5)(stem,0); vpos(6)(stem,can); |
| 3786 |
x1r=w-u=x2r; y1=y6l=0; y2r=h; y3r=h; x3r=x6l=u; x2l=x4; y4=y5=.5h; x5=x3; |
| 3787 |
filldraw z1r--z2r--z3r--z3l--(x2l,y3l)--z4r--z5r--z5l--z4l--(x1l,y6r)--z6r--z6l--cycle; |
| 3788 |
penlabels(1,2,3,4,5,6); |
| 3789 |
endchar; |
| 3790 |
|
| 3791 |
iff known sign_forall: |
| 3792 |
"For all sign"; |
| 3793 |
beginchar(sign_forall, 11u#,cap_height#,2u#); |
| 3794 |
numeric theta; |
| 3795 |
hpos(1)(stem,-can); hpos(2)(stem,can); |
| 3796 |
x1r=w-u; y1l=h=y2r; x2l=u; z3l=(.5w,-d); |
| 3797 |
theta:=90+angle(z1r-z3l); |
| 3798 |
penpos3(stem/sind(theta),90); |
| 3799 |
penpos4(stem,90); penpos5(stem,90); |
| 3800 |
y5=y4=.6h; z4=whatever[z2,z3]; z5=whatever[z1,z3]; |
| 3801 |
filldraw z1l--z3r--z2r--z2l--z3l--z1r--cycle; |
| 3802 |
filldraw z4l--z5l--z5r--z4r--cycle; |
| 3803 |
penlabels(1,2,3,4,5); |
| 3804 |
endchar; |
| 3805 |
|
| 3806 |
iff known sign_infinity: |
| 3807 |
"Infinity"; |
| 3808 |
beginchar(sign_infinity, 17u#,x_height#,0); |
| 3809 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 3810 |
penpos20(stem,0); penpos21(stem,90); penpos22(stem,180); penpos23(stem,-90); |
| 3811 |
.5[z10,z12]=.5[z11,z13]; y13=y23=.5stem; y10=y20=y12=y22; x11=x13; y11-y13=x10-x12=y21-y23=x20-x22; |
| 3812 |
.5[z20,z22]=.5[z21,z23]; x21=x23; x12-.5stem=u; x10=.5w; .5[x12,x20]=.5w; |
| 3813 |
filldraw z13r{left}..{up}z12r..{right}z11r..z10r..{right}z23l..{up}z20l..{left}z21l..z22l..{left}z13r--z13l{right}..z22r..z21r{right}..z20r{down}..z23r{left}..z10l..z11l{left}..{down}z12l..{right}z13l--cycle; |
| 3814 |
penlabels(10,11,12,13,20,21,22,23); |
| 3815 |
endchar; |
| 3816 |
|
| 3817 |
iff known sign_partial: |
| 3818 |
"Partial derivative sign"; |
| 3819 |
beginchar(sign_partial, 10u#,cap_height#,0); |
| 3820 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; x10+.5stem=w-u; y10=y12; x11=x13; y11-y13=1.1(x10-x12); x12-.5stem=u; |
| 3821 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 3822 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 3823 |
penpos1(stem,30); vpos(2)(stem,-can); |
| 3824 |
x1r=w-2u; y1=.75h; x2l=.3w; y2r=h; |
| 3825 |
filldraw z10r{up}..z1r..{left}z2r--z2l{right}..z1l..{down}z10l--cycle; |
| 3826 |
penlabels(0,1,2,10,11,12,13); |
| 3827 |
endchar; |
| 3828 |
|
| 3829 |
iff known sign_root: |
| 3830 |
"Square root sign"; |
| 3831 |
beginchar(sign_root, 13u#,par_height#,desc_depth#); |
| 3832 |
numeric theta; |
| 3833 |
hpos(1)(stem,-can); |
| 3834 |
x1r=w-u; y1l=h; z3l=(.5w,-d); |
| 3835 |
theta:=90+angle(z1r-z3l); |
| 3836 |
penpos3(stem/sind(theta),90); |
| 3837 |
x4l=u; y2r=.5cap_height; x2r=4u; z4l=z2r+whatever*dir(angle(z3r-z2r)+90); |
| 3838 |
z4r=z4l+stem*dir(angle(z2r-z4l)-90); |
| 3839 |
z2l=z4r+whatever*(z2r-z4l)=z3l+whatever*(z2r-z3r); |
| 3840 |
filldraw z1l--z3r--z3l--z1r--cycle; |
| 3841 |
filldraw z4l--z2r--z3r--z3l--z2l--z4r--cycle; |
| 3842 |
penlabels(1,2,3,4,5); |
| 3843 |
endchar; |
| 3844 |
|
| 3845 |
iff known sign_in_set: |
| 3846 |
"In set sign"; |
| 3847 |
beginchar(sign_in_set, 8u#,v_center(.75cap_height#)); |
| 3848 |
hpos(2)(stem,0); vpos(3)(stem,can); penpos4(stem,90); vpos(5)(stem,0); vpos(6)(stem,-can); |
| 3849 |
x2l=u; y1=y6l=-d; z2r=z4; y3r=h; x3r=x6l=w-u; y4=y5=.5(h-d); x5r=x3l; |
| 3850 |
filldraw z2l{up}...{right}z3r--z3l{left}..{down}z4r--z5r--z5l--z4l{down}..{right}z6r--z6l{left}...cycle; |
| 3851 |
penlabels(2,3,4,5,6); |
| 3852 |
endchar; |
| 3853 |
|
| 3854 |
iff known sign_empty_set: |
| 3855 |
"Empty set"; |
| 3856 |
beginchar(sign_empty_set, fig_width#,cap_height#,0); |
| 3857 |
penpos10(stem,0); penpos11(stem,90); penpos12(stem,180); penpos13(stem,-90); |
| 3858 |
.5[z10,z12]=.5[z11,z13]; y13=.5stem; y11=h-.5stem; x10+.5stem=w-u; y10=y12; x11=x13; x12-.5stem=u; |
| 3859 |
filldraw z10r{up}..{left}z11r..{down}z12r..{right}z13r..{up}z10r--z10l{down}..{left}z13l..{up}z12l..{right}z11l..{down}z10l--cycle; |
| 3860 |
hpos(1)(cap_stem,can); hpos(2)(cap_stem,can); |
| 3861 |
x1l=u; x2r=w-u; y1l=0; y2r=h; |
| 3862 |
filldraw z1l--z2l--z2r--z1r--cycle; |
| 3863 |
endchar; |
| 3864 |
|
| 3865 |
end. |
| 3866 |
|