| 1 |
%% |
| 2 |
%% This is file `givbc10.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% greek4cbc.dtx (with options: `up') |
| 8 |
%% ------------------------------------------------------------------ |
| 9 |
%% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net |
| 10 |
%% Copyright 1999--2005 Peter R. Wilson |
| 11 |
%% |
| 12 |
%% This work may be distributed and/or modified under the |
| 13 |
%% conditions of the Latex Project Public License, either |
| 14 |
%% version 1.3 of this license or (at your option) any |
| 15 |
%% later version. |
| 16 |
%% The latest version of the license is in |
| 17 |
%% http://www.latex-project.org/lppl.txt |
| 18 |
%% and version 1.3 or later is part of all distributions of |
| 19 |
%% LaTeX version 2003/06/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status "author-maintained". |
| 22 |
%% |
| 23 |
%% This work consists of the files listed in the README file. |
| 24 |
%% ------------------------------------------------------------------ |
| 25 |
%%% GIVBC10.MF Computer Greek 4 century BC font 10 point design size. |
| 26 |
|
| 27 |
if unknown cmbase: input cmbase fi |
| 28 |
|
| 29 |
font_identifier:="GIVBC"; font_size 10pt#; |
| 30 |
|
| 31 |
u#:=20/36pt#; % unit width |
| 32 |
letter_fit#:=0pt#; % extra space added to all sidebars |
| 33 |
|
| 34 |
body_height#:=270/36pt#; % height of tallest characters |
| 35 |
asc_height#:=250/36pt#; % height of lowercase ascenders |
| 36 |
cap_height#:=246/36pt#; % height of caps |
| 37 |
fig_height#:=232/36pt#; % height of numerals |
| 38 |
x_height#:=155/36pt#; % height of lowercase without ascenders |
| 39 |
desc_depth#:=70/36pt#; % depth of lowercase descenders |
| 40 |
half_height#:=1/2cap_height#; % half the height of caps |
| 41 |
|
| 42 |
side#:=cap_height#; % Height and width of the square |
| 43 |
thickfudge:=1/9; |
| 44 |
thick#:=thickfudge*side#; % thickness of all lines in the font |
| 45 |
|
| 46 |
rule_thickness#:=.4pt#; % thickness of lines |
| 47 |
|
| 48 |
cap_stem#:=thick#; % thickness of majuscule stems |
| 49 |
|
| 50 |
o#:=8/36pt#; % amount of overshoot for curves |
| 51 |
apex_o#:=thin#; % amount of overshoot for diagonal junctions |
| 52 |
apex_corr#=0pt#; % fine tuning of overshoot |
| 53 |
|
| 54 |
slant:=0; % tilt ratio $(\Delta x/\Delta y)$ |
| 55 |
|
| 56 |
serifs:=false; % should serifs and bulbs be attached? |
| 57 |
monospace:=false; % should all characters have the same width? |
| 58 |
|
| 59 |
dot_size#:=38/36pt#; % size of dots |
| 60 |
square_dots:=false; % should dots be square? |
| 61 |
|
| 62 |
boolean whole_font; % try generating a complete font? |
| 63 |
whole_font:=false; |
| 64 |
|
| 65 |
|
| 66 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 67 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 68 |
|
| 69 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 70 |
%% MACRO SECTION %%%%%%%%%%%%%%%%%%%%%%%%%% |
| 71 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 72 |
|
| 73 |
def makebox(text rule) = |
| 74 |
for y=0,half_height,cap_height,body_height,x_height,-desc_depth,-body_depth: |
| 75 |
rule((l,y)t_,(r,y)t_); endfor % horizontals |
| 76 |
for x=l,r: rule((x,-body_depth)t_,(x,body_height)t_); endfor % verticals |
| 77 |
for x=u*(1+floor(1/u)) step u until r-1: |
| 78 |
rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals |
| 79 |
if charic<>0: |
| 80 |
rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction |
| 81 |
enddef; |
| 82 |
|
| 83 |
|
| 84 |
def proofpcbb(suffix $)(expr xoff, yoff) = |
| 85 |
if proofing > 0: |
| 86 |
x$bl = x$ - xoff; y$bl = y$ - yoff; % Bottom Left Hand Corner |
| 87 |
z$br = (x$bl+cap_height, y$bl); % BRHC |
| 88 |
z$tr = (x$bl+cap_height, y$bl+cap_height); % TRHC |
| 89 |
z$tl = (x$bl, y$bl+cap_height); % TLHC |
| 90 |
z$bc = 1/2[z$bl,z$br]; z$tc = 1/2[z$tl,z$tr]; % horizontal mid points |
| 91 |
pair hc, vc; |
| 92 |
hc = (2u,0); vc = (0,2u); |
| 93 |
pickup pensquare scaled 2; |
| 94 |
for s = z$bl, z$br, z$tr, z$tl, z$bc, z$tc: |
| 95 |
draw s-hc--s+hc; |
| 96 |
draw s-vc--s+vc; |
| 97 |
endfor |
| 98 |
fi |
| 99 |
enddef; |
| 100 |
|
| 101 |
|
| 102 |
let cm_font_setup=font_setup; % Knuth's original font_setup |
| 103 |
|
| 104 |
|
| 105 |
def greek_font_setup= % contains special stuff for archaic Greek font |
| 106 |
define_pixels(u); |
| 107 |
define_pixels(side,thick,half_height); |
| 108 |
let adjust_fit=normal_adjust_fit; |
| 109 |
define_whole_pixels(letter_fit); |
| 110 |
define_whole_vertical_pixels(body_height,asc_height, |
| 111 |
cap_height,x_height,desc_depth); |
| 112 |
body_depth:=desc_depth+body_height-asc_height; |
| 113 |
define_pixels(dot_size); |
| 114 |
shrink_fit:=1+hround(2letter_fit#*hppp)-2letter_fit; |
| 115 |
if not string mode: |
| 116 |
if mode<=smoke: |
| 117 |
shrink_fit:=0; |
| 118 |
fi |
| 119 |
fi |
| 120 |
enddef; |
| 121 |
|
| 122 |
|
| 123 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 124 |
%% END OF MACROS %%%%%%%%%%%%%%%%%%%%%%%%%% |
| 125 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 126 |
|
| 127 |
|
| 128 |
font_coding_scheme:="ASCII caps and miniscules"; |
| 129 |
|
| 130 |
mode_setup; |
| 131 |
|
| 132 |
greek_font_setup; |
| 133 |
|
| 134 |
numeric pcshiftx#; % x value of LHS of box wrt origin of char box |
| 135 |
define_pixels(pcshiftx); |
| 136 |
|
| 137 |
|
| 138 |
font_slant slant; |
| 139 |
font_x_height x_height#; |
| 140 |
if monospace: font_normal_space 9u#; % no stretching or shrinking |
| 141 |
font_quad 18u#; |
| 142 |
font_extra_space 9u#; |
| 143 |
else: font_normal_space 6u#+2letter_fit#; |
| 144 |
font_normal_stretch 3u#; font_normal_shrink 2u#; |
| 145 |
font_quad 18u#+4letter_fit#; |
| 146 |
font_extra_space 2u#; |
| 147 |
fi |
| 148 |
|
| 149 |
|
| 150 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 151 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 152 |
|
| 153 |
|
| 154 |
cmchar "Greek 394BC letter alpha (a)"; |
| 155 |
beginchar("a", 2u#+side#+2thick#, cap_height#, 0); |
| 156 |
adjust_fit(0,0); |
| 157 |
pcshiftx := u+thick; |
| 158 |
y100 = h/2; x100 = pcshiftx+y100; % center point |
| 159 |
numeric alpha[], hor, vert, hypot, theta; |
| 160 |
pair greek[]; |
| 161 |
hor := 0.5h; vert := h-thick; |
| 162 |
greek1 = (hor, vert); |
| 163 |
theta = 270 + angle(greek1); |
| 164 |
% for left leg |
| 165 |
penpos1(thick,theta); penpos2(thick,theta); |
| 166 |
% and for the right leg |
| 167 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 168 |
rt x1r=pcshiftx; lft x4l=x1r+side; |
| 169 |
bot y1r=bot y4l=0; |
| 170 |
top y3r= top y2l=h; |
| 171 |
x3r=x2l = 0.5[x1r,x4l]; |
| 172 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 173 |
% draw the legs |
| 174 |
filldraw z1l--z2l--z4r--z4l--z0--z1r--cycle; |
| 175 |
% now for the bar |
| 176 |
y5l=y6l=hround(1/3h); |
| 177 |
y5r-y5l=y6r-y6l=thick; |
| 178 |
penpos5(whatever, angle(z2-z1)); penpos6(whatever, angle(z3-z4)); |
| 179 |
z5=whatever[z1,z2]; z6=whatever[z3,z4]; |
| 180 |
penstroke z5e--z6e; % bar line |
| 181 |
proofpcbb(100, y100, y100); |
| 182 |
penlabels(0,1,2,3,4,5,6,100); endchar; |
| 183 |
|
| 184 |
|
| 185 |
cmchar "Greek 394BC letter beta (b)"; |
| 186 |
beginchar("b",4u#+5/9side#, cap_height#, 0); |
| 187 |
adjust_fit(0,0); |
| 188 |
pcshiftx := 2u; |
| 189 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 190 |
penpos1(thick,0); penpos2(thick,0); |
| 191 |
y2l=0; y1l=h; x1l=x2l=pcshiftx; |
| 192 |
numeric alpha, long, short, hypot; |
| 193 |
long=(w-2pcshiftx); short=h/4; hypot=short++long; |
| 194 |
alpha := hypot/long; |
| 195 |
penpos3(alpha*thick,90); penpos4(alpha*thick,90); |
| 196 |
penpos5(alpha*thick,90); penpos6(alpha*thick,90); |
| 197 |
z3l=z2l; |
| 198 |
x4l=w-pcshiftx; y4l=0.25[y2l,y1l]; |
| 199 |
z5r=z4l; |
| 200 |
x6l=x2r; y6l=0.5[y2l,y1l]; |
| 201 |
penpos7(alpha*thick,90); penpos8(alpha*thick,90); |
| 202 |
penpos9(alpha*thick,90); penpos10(alpha*thick,90); |
| 203 |
z7r=z6l; |
| 204 |
x8l=x4l; y8l=0.75[y2l,y1l]; |
| 205 |
z9r=z8l; |
| 206 |
z10r=z1l; |
| 207 |
z11=whatever[z2r,z1r]=whatever[z3r,z4r]; % bottom bowl and stem |
| 208 |
z12=whatever[z3r,z4r]=whatever[z6l,z5l]; % bottom bowl inner |
| 209 |
z13=whatever[z5r,z6r]=whatever[z7l,z8l]; % between the bowls |
| 210 |
z14=whatever[z7r,z8r]=whatever[z9l,z10l]; % top bowl inner |
| 211 |
z15=whatever[z2r,z1r]=whatever[z9l,z10l]; % top bowl and stem |
| 212 |
filldraw z1l--z2l--z4l--z13--z8l--cycle; |
| 213 |
unfilldraw z6l--z12--z11--cycle; |
| 214 |
unfilldraw z7r--z15--z14--cycle; |
| 215 |
proofpcbb(100, y100, y100); |
| 216 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,100); |
| 217 |
endchar; |
| 218 |
|
| 219 |
|
| 220 |
cmchar "Greek 394BC letter gamma (g)"; |
| 221 |
beginchar("g",2u#+thick#+2/3side#, cap_height#, 0); |
| 222 |
adjust_fit(0, 0); |
| 223 |
pcshiftx := u; |
| 224 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 225 |
penpos1(thick,0); penpos2(thick,0); |
| 226 |
x1l=x2l=pcshiftx; top y1l=h; bot y2l=0; |
| 227 |
filldraw stroke z1e--z2e; |
| 228 |
penpos3(thick,90); penpos4(thick,90); |
| 229 |
y3r=y4r=y1l; x3l=x1l; x4l=w-pcshiftx; |
| 230 |
filldraw stroke z3e--z4e; |
| 231 |
proofpcbb(100, y100, y100); |
| 232 |
penlabels(1,2,3,4,100); endchar; |
| 233 |
|
| 234 |
|
| 235 |
cmchar "Greek 394BC letter delat (d)"; |
| 236 |
beginchar("d", 2u#+side#+2thick#, cap_height#, 0); |
| 237 |
adjust_fit(0,0); |
| 238 |
pcshiftx := u+thick; |
| 239 |
y100 = h/2; x100 = pcshiftx+y100; % center point |
| 240 |
numeric alpha, hor, vert, hypot, theta; |
| 241 |
pair greek[]; |
| 242 |
hor := 0.5h; vert := h-thick; |
| 243 |
greek1 = (hor, vert); |
| 244 |
theta = 270 + angle(greek1); |
| 245 |
% for left leg |
| 246 |
penpos1(thick,theta); penpos2(thick,theta); |
| 247 |
% and for the right leg |
| 248 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 249 |
rt x1r=pcshiftx; lft x4l=x1r+side; |
| 250 |
bot y1r=bot y4l=0; |
| 251 |
top y2l= top y3r=h; |
| 252 |
x3r=x2l = 0.5[x1r,x4l]; |
| 253 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 254 |
% now for the bar |
| 255 |
penpos5(thick,90); penpos6(thick,90); |
| 256 |
bot y5l=bot y6l=0; |
| 257 |
x5l=pcshiftx; x6l=w-pcshiftx; |
| 258 |
z7=whatever[z1l,z2l]=whatever[z5l,z6l]; |
| 259 |
z8=whatever[z3r,z4r]=whatever[z5l,z6l]; |
| 260 |
z9=whatever[z1r,z2r]=whatever[z5r,z6r]; |
| 261 |
z10=whatever[z3l,z4l]=whatever[z5r,z6r]; |
| 262 |
filldraw z7--z2l--z8--cycle; |
| 263 |
unfilldraw z9--z0--z10--cycle; |
| 264 |
proofpcbb(100, y100, y100); |
| 265 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,100); endchar; |
| 266 |
|
| 267 |
|
| 268 |
cmchar "Greek 394BC letter epsilon (e)"; |
| 269 |
beginchar("e", 2u#+2/3side#+2thick#, cap_height#,0); |
| 270 |
adjust_fit(0,0); |
| 271 |
pcshiftx := u; |
| 272 |
y100=h/2; x100=pcshiftx+y100; % center point |
| 273 |
penpos1(thick,0); penpos2(thick,0); |
| 274 |
lft x1l=lft x2l=pcshiftx; top y1=h; bot y2=0; |
| 275 |
filldraw stroke z1e--z2e; % stem |
| 276 |
penpos5(thick,90); penpos6(thick,90); |
| 277 |
x5=x1; y5=y6=h/2; rt x6=pcshiftx + 2/3side; |
| 278 |
filldraw stroke z5e--z6e; |
| 279 |
penpos3(thick,90); penpos4(thick,90); |
| 280 |
x3=x1; top y3r=top y4r=h; x4=x6+thick; |
| 281 |
filldraw stroke z3e--z4e; |
| 282 |
penpos7(thick,90); penpos8(thick,90); |
| 283 |
x7=x1; bot y7l=bot y8l=0; x8=x6+2thick; |
| 284 |
filldraw stroke z7e--z8e; |
| 285 |
proofpcbb(100, y100, y100); |
| 286 |
penlabels(1,2,3,4,5,6,7,8,100); endchar; % end of "E" |
| 287 |
|
| 288 |
|
| 289 |
cmchar "Greek 394BC letter zeta (z)"; |
| 290 |
beginchar("z", 2u#+side#, cap_height#,0); |
| 291 |
adjust_fit(0, 0); |
| 292 |
pcshiftx := u; |
| 293 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 294 |
numeric alpha, hor, vert, hypot; |
| 295 |
vert=h; hor=4/5side; hypot=vert++hor; |
| 296 |
alpha=hypot/vert; |
| 297 |
penpos1(thick,90); penpos2(thick,90); penpos3(alpha*thick, 0); |
| 298 |
penpos4(alpha*thick, 0); |
| 299 |
top y1r=h; lft x1=pcshiftx; |
| 300 |
y2=y1; rt x2=x3; |
| 301 |
rt x3r=x1+4/5side;; top y3=h; x4l=x1; bot y4=0; |
| 302 |
filldraw stroke z1e--z2e; % top bar |
| 303 |
filldraw stroke z3e--z4e; % diagonal |
| 304 |
penpos8(thick,90); penpos9(thick,90); |
| 305 |
x8=x4; bot y8l=0; |
| 306 |
x9=pcshiftx+side; y9=y8; |
| 307 |
filldraw stroke z8e--z9e; |
| 308 |
proofpcbb(100, y100, y100); |
| 309 |
penlabels(1,2,3,4,5,6,7,8,9,100); endchar; |
| 310 |
|
| 311 |
|
| 312 |
cmchar "Greek 394BC letter eta (h)"; |
| 313 |
beginchar("h", 4u#+side#, cap_height#,0); |
| 314 |
adjust_fit(0,0); |
| 315 |
pcshiftx := 2u; |
| 316 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 317 |
penpos1(thick,0); penpos2(thick,0); |
| 318 |
lft x1l=lft x2l=pcshiftx; bot y1=0; top y2=h; |
| 319 |
filldraw stroke z1e--z2e; |
| 320 |
penpos3(thick,0); penpos4(thick,0); |
| 321 |
rt x3r= rt x4r= x1l+side; bot y3=0; top y4=h; |
| 322 |
filldraw stroke z3e--z4e; |
| 323 |
penpos5(thick,90); penpos6(thick,90); |
| 324 |
x5=x1; x6=x3; y5=y6=h/2; |
| 325 |
filldraw stroke z5e--z6e; |
| 326 |
proofpcbb(100, y100, y100); |
| 327 |
labels(1,2,3,4,5,6,100); endchar; |
| 328 |
|
| 329 |
|
| 330 |
cmchar "Greek 394BC letter theta (T)"; |
| 331 |
beginchar("T", 2u#+side#, cap_height#, 0); |
| 332 |
adjust_fit(0,0); |
| 333 |
pcshiftx := u; |
| 334 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 335 |
numeric alpha; alpha=0.75; |
| 336 |
x2r=pcshiftx; x4r=x2r+h; y2r=y4r=y100; |
| 337 |
y1r=h; y3r=0; x1r=x3r=x100; |
| 338 |
x2l=x2r+thick; x4l=x4r-thick; y2l=y4l=y2r; |
| 339 |
y1l=y1r-thick; y3l=y3r+thick; x1l=x3l=x1r; |
| 340 |
filldraw z1r..z2r..z3r..z4r..cycle; |
| 341 |
unfilldraw z1l..z2l..z3l..z4l..cycle; |
| 342 |
x12=x100-alpha*thick; x14=x100+alpha*thick; y12=y14=y100; |
| 343 |
y11=y100+alpha*thick; y13=y100-alpha*thick; x11=x13=x100; |
| 344 |
path p; |
| 345 |
p= z11..z12..z13..z14..cycle; |
| 346 |
filldraw p; filldraw p; |
| 347 |
proofpcbb(100, y100, y100); |
| 348 |
penlabels(1,2,3,4,100); endchar; |
| 349 |
|
| 350 |
|
| 351 |
cmchar "Greek 394BC letter iota (i)"; |
| 352 |
beginchar("i", 4u#+thick#, cap_height#,0); |
| 353 |
adjust_fit(0,0); |
| 354 |
pcshiftx := 2u; |
| 355 |
y100 = h/2; x100 = pcshiftx + 0.5thick; % center point |
| 356 |
penpos1(thick,0); penpos2(thick,0); |
| 357 |
x1=x2=hround(w/2); top y1=h; bot y2=0; |
| 358 |
filldraw stroke z1e--z2e; % vertical stem |
| 359 |
proofpcbb(100, y100, y100); |
| 360 |
penlabels(1, 2, 100); |
| 361 |
endchar; |
| 362 |
|
| 363 |
|
| 364 |
cmchar "Greek 394BC letter kappa (k)"; |
| 365 |
beginchar("k", 2u#+2/3side#, cap_height#,0); |
| 366 |
adjust_fit(0,0); |
| 367 |
pcshiftx := u; |
| 368 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 369 |
penpos1(thick,0); penpos2(thick,0); |
| 370 |
lft x1l=lft x2l=pcshiftx; |
| 371 |
top y1=h; bot y2=0; |
| 372 |
filldraw stroke z1e--z2e; % left stem |
| 373 |
numeric hor, vert, theta[]; |
| 374 |
pair greek[]; |
| 375 |
hor := 2/3side; vert := side/2; |
| 376 |
greek1 = (hor,vert); |
| 377 |
theta1=270+angle(greek1); |
| 378 |
penpos3(thick,theta1); penpos4(thick,theta1); |
| 379 |
x3l=x2r; y3l=side/2; |
| 380 |
y4l=h; x4r=x1l+2/3side; |
| 381 |
vert := -side/4; |
| 382 |
greek2 = (hor,vert); |
| 383 |
theta2=270+angle(greek2); |
| 384 |
penpos5(thick,theta2); penpos6(thick,theta2); |
| 385 |
z5r=z3l; |
| 386 |
x6l=x4r; y6l=side/4; |
| 387 |
z0=whatever[z3r,z4r]=whatever[z5l,z6l]; |
| 388 |
filldraw z3l--z4l--z4r--z0--z6l--z6r--cycle; |
| 389 |
proofpcbb(100, y100, y100); |
| 390 |
penlabels(0,1,2,3,4,5,6,100); endchar; |
| 391 |
|
| 392 |
|
| 393 |
cmchar "Greek 394BC letter lambda (l)"; |
| 394 |
beginchar("l", 2u#+side#+2thick#, cap_height#,0); |
| 395 |
adjust_fit(0,0); |
| 396 |
pcshiftx := u+thick; |
| 397 |
y100 = h/2; x100 = pcshiftx+y100; % center point |
| 398 |
numeric alpha[], hor, vert, hypot, theta; |
| 399 |
pair greek[]; |
| 400 |
hor := 0.5h; vert := h-thick; |
| 401 |
greek1 = (hor, vert); |
| 402 |
theta = 270 + angle(greek1); |
| 403 |
% for left leg |
| 404 |
penpos1(thick,theta); penpos2(thick,theta); |
| 405 |
% and for the right leg |
| 406 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 407 |
rt x1r=pcshiftx; lft x4l=x1r+side; |
| 408 |
bot y1r=bot y4l=0; |
| 409 |
top y3r= top y2l=h; |
| 410 |
x3r=x2l = 0.5[x1r,x4l]; |
| 411 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 412 |
% draw the legs |
| 413 |
filldraw z1l--z2l--z4r--z4l--z0--z1r--cycle; |
| 414 |
proofpcbb(100, y100, y100); |
| 415 |
penlabels(0,1,2,3,4,100); endchar; % end of "L" |
| 416 |
|
| 417 |
|
| 418 |
cmchar"Greek 394BC letter mu (m)"; |
| 419 |
beginchar("m", 2u#+side#+2thick#, cap_height#, 0); |
| 420 |
adjust_fit(0,0); |
| 421 |
pcshiftx := u+thick; |
| 422 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 423 |
numeric alpha, hor, vert, hypot, theta[]; |
| 424 |
pair greek[]; |
| 425 |
hor := 3thick; vert := side; |
| 426 |
greek1 = (hor, vert); |
| 427 |
theta1 = 270 + angle(greek1); |
| 428 |
penpos1(thick,theta1); penpos2(thick,theta1); |
| 429 |
z1r=(pcshiftx,0); z2l=(pcshiftx+2thick,h); |
| 430 |
penpos3(thick,-theta1); penpos4(thick,-theta1); |
| 431 |
z3l=(pcshiftx+side,0); z4r=(pcshiftx+side-2thick,h); |
| 432 |
z0=z100; |
| 433 |
theta2 = 270 + angle(z4r-z0); |
| 434 |
penpos5(thick,-theta2); penpos6(thick,-theta2); |
| 435 |
z5r=z0; z6r=z2l; |
| 436 |
penpos7(thick,theta2); penpos8(thick,theta2); |
| 437 |
z7l=z0; z8l=z4r; |
| 438 |
z9=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 439 |
z10=whatever[z5l,z6l]=whatever[z7r,z8r]; |
| 440 |
z11=whatever[z7r,z8r]=whatever[z3l,z4l]; |
| 441 |
filldraw z1l--z2l--z0--z4r--z3r--z3l--z11--z10--z9--z1r--cycle; |
| 442 |
proofpcbb(100, y100, y100); |
| 443 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,100); endchar; |
| 444 |
|
| 445 |
|
| 446 |
cmchar "Greek 394BC letter nu (n)"; |
| 447 |
beginchar("n", 4u#+side#, cap_height#,0); |
| 448 |
adjust_fit(0,0); |
| 449 |
pcshiftx := 2u; |
| 450 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 451 |
numeric hor, vert, theta; |
| 452 |
pair greek[]; |
| 453 |
hor = side-thick; vert = h; |
| 454 |
greek1=(hor,vert); |
| 455 |
theta=270 + angle(greek1); |
| 456 |
penpos1(thick,0); penpos2(thick,0); |
| 457 |
z1l=(pcshiftx,0); z2l=(pcshiftx,h); |
| 458 |
penpos3(thick,0); penpos4(thick,0); |
| 459 |
z3r=(pcshiftx+side,0); z4r=(pcshiftx+side,h); |
| 460 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 461 |
z5l=z3r; z6r=z2l; |
| 462 |
z7=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 463 |
z8=whatever[z5r,z6r]=whatever[z3l,z4l]; |
| 464 |
filldraw z1l--z2l--z8--z4l--z4r--z3r--z7--z1r--cycle; |
| 465 |
proofpcbb(100, y100, y100); |
| 466 |
penlabels(1,2,3,4,5,6,7,8,100); endchar; |
| 467 |
|
| 468 |
|
| 469 |
cmchar "Greek 394BC letter xi (x)"; |
| 470 |
beginchar("x", 2u#+side#, cap_height#, 0); |
| 471 |
adjust_fit(0,0); |
| 472 |
pcshiftx := u; |
| 473 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 474 |
penpos1(thick,0); penpos2(thick,0); |
| 475 |
z1=(x100,0); z2=(x100,h); |
| 476 |
filldraw stroke z1e--z2e; |
| 477 |
penpos3(thick,90); penpos4(thick,90); |
| 478 |
z3r=(pcshiftx,h); z4r=(pcshiftx+side,h); |
| 479 |
filldraw stroke z3e--z4e; |
| 480 |
penpos5(thick,90); penpos6(thick,90); |
| 481 |
z5=(pcshiftx,h/2); z6=(pcshiftx+side,h/2); |
| 482 |
filldraw stroke z5e--z6e; |
| 483 |
penpos7(thick,90); penpos8(thick,90); |
| 484 |
z7l=(pcshiftx,0); z8l=(pcshiftx+side,0); |
| 485 |
filldraw stroke z7e--z8e; |
| 486 |
proofpcbb(100, y100, y100); |
| 487 |
penlabels(1,2,3,4,5,6,7,8,100); |
| 488 |
endchar; |
| 489 |
|
| 490 |
|
| 491 |
cmchar "Greek 394BC letter omicron (o)"; |
| 492 |
beginchar("o", 2u#+side#, cap_height#, 0); |
| 493 |
adjust_fit(0,0); |
| 494 |
pcshiftx := u; |
| 495 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 496 |
x2r=pcshiftx; x4r=x2r+h; y2r=y4r=y100; |
| 497 |
y1r=h; y3r=0; x1r=x3r=x100; |
| 498 |
x2l=x2r+thick; x4l=x4r-thick; y2l=y4l=y2r; |
| 499 |
y1l=y1r-thick; y3l=y3r+thick; x1l=x3l=x1r; |
| 500 |
filldraw z1r..z2r..z3r..z4r..cycle; |
| 501 |
unfilldraw z1l..z2l..z3l..z4l..cycle; |
| 502 |
proofpcbb(100, y100, y100); |
| 503 |
penlabels(1,2,3,4,100); endchar; |
| 504 |
|
| 505 |
|
| 506 |
cmchar "Greek 394BC letter pi (p)"; |
| 507 |
beginchar("p", 4u#+side#, cap_height#, 0); |
| 508 |
adjust_fit(0, 0); |
| 509 |
pcshiftx := 2u; |
| 510 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 511 |
penpos1(thick,0); penpos2(thick,0); |
| 512 |
x1l=x2l=pcshiftx; top y1l=h; bot y2l=0; |
| 513 |
filldraw stroke z1e--z2e; |
| 514 |
penpos3(thick,90); penpos4(thick,90); |
| 515 |
y3r=y4r=y1l; x3l=x1l; x4l=w-pcshiftx; |
| 516 |
filldraw stroke z3e--z4e; |
| 517 |
penpos5(thick,0); penpos6(thick,0); |
| 518 |
x5r=x6r=x4; top y5=h; bot y6=h/2; |
| 519 |
filldraw stroke z5e--z6e; |
| 520 |
proofpcbb(100, y100, y100); |
| 521 |
penlabels(1,2,3,4,5,6,100); endchar; |
| 522 |
|
| 523 |
|
| 524 |
cmchar "Greek 394BC letter rho (r)"; |
| 525 |
beginchar("r", 2u#+5/9side#, cap_height#,0); |
| 526 |
adjust_fit(0, 0); |
| 527 |
pcshiftx := u; |
| 528 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 529 |
penpos1(thick,0); penpos2(thick,0); |
| 530 |
top lft z1l=(pcshiftx,h); bot lft z2l=(pcshiftx,0); |
| 531 |
filldraw stroke z1e--z2e; % vertical stem |
| 532 |
penpos3(thick,90); penpos4(thick,0); penpos5(thick,-90); |
| 533 |
top y3r=top y1; x3r=x1r; |
| 534 |
bot y5r=5/9[y1,y2]; x5=x3; |
| 535 |
x4r=x1l+5/9side; y4=0.5[y5r,y3r]; |
| 536 |
filldraw z3r{right}..z4r{down}..z5r{left}--z5l{right}..z4l{up}..z3l{left}--cycle; |
| 537 |
proofpcbb(100, y100, y100); |
| 538 |
penlabels(1,2,3,4,5,100); |
| 539 |
endchar; |
| 540 |
|
| 541 |
|
| 542 |
cmchar "Greek 394BC letter sigma (s)"; |
| 543 |
beginchar("s", 2u#+2/3side#, cap_height#, 0); |
| 544 |
adjust_fit(0,0); |
| 545 |
pcshiftx := u; |
| 546 |
y100 = h/2; x100 = pcshiftx+y100; % square center |
| 547 |
pair greek[]; |
| 548 |
numeric theta[]; |
| 549 |
numeric hor, vert; |
| 550 |
hor := 2/3side; vert := 1/3h; |
| 551 |
greek1=(hor,vert); |
| 552 |
theta1=270+angle(greek1); |
| 553 |
penpos1(thick,-theta1); penpos2(thick,-theta1); |
| 554 |
penpos7(thick,theta1); penpos8(thick,theta1); |
| 555 |
hor := 2/3side-thick; vert := h/2 - h/3; |
| 556 |
greek2=(hor,vert); |
| 557 |
theta2=270-angle(greek2); |
| 558 |
penpos3(thick,theta2); penpos4(thick,theta2); |
| 559 |
penpos5(thick,-theta2); penpos6(thick,-theta2); |
| 560 |
y1l=0; x1r=pcshiftx+2/3side; |
| 561 |
z2l=(pcshiftx,h/3); |
| 562 |
z3l=z2l; |
| 563 |
z4r=(pcshiftx+2/3side-thick, h/2); |
| 564 |
z5r=z4r; |
| 565 |
z6l=(pcshiftx,2/3h); |
| 566 |
z7l=z6l; |
| 567 |
y8l=h; x8r=x1r; |
| 568 |
z10=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 569 |
z11=whatever[z3l,z4l]=whatever[z5l,z6l]; |
| 570 |
z12=whatever[z5r,z6r]=whatever[z7r,z8r]; |
| 571 |
filldraw z1l--z2l--z11--z6l--z8l--z8r--z12--z4r--z10--z1r--cycle; |
| 572 |
proofpcbb(100, y100, y100); |
| 573 |
penlabels(1,2,3,4,5,6,7,8,10,11,12,100); endchar; |
| 574 |
|
| 575 |
|
| 576 |
cmchar "Greek 394BC letter tau (t)"; |
| 577 |
beginchar("t",2u#+side#, cap_height#,0); |
| 578 |
adjust_fit(0,0); |
| 579 |
pcshiftx := u; |
| 580 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 581 |
numeric hor, vert, theta; |
| 582 |
numeric alpha[]; pair greek[]; |
| 583 |
alpha1=h-thick; |
| 584 |
penpos1(thick,0); penpos2(thick,0); |
| 585 |
z1=(w/2,0); z2=(w/2,alpha1); |
| 586 |
filldraw stroke z1e--z2e; |
| 587 |
penpos3(thick,90); penpos4(thick,90); |
| 588 |
z3r=(pcshiftx,alpha1); z4r=(w/2,alpha1); |
| 589 |
filldraw stroke z3e--z4e; |
| 590 |
hor := w/2; vert := h/5; |
| 591 |
greek1=(hor,vert); |
| 592 |
theta = 270 + angle(greek1); |
| 593 |
penpos5(thick,theta); |
| 594 |
y5l=h; x5r=w-pcshiftx; |
| 595 |
filldraw z4l{right}..{greek1}z5r--z5l{-greek1}..{left}z4r--cycle; |
| 596 |
proofpcbb(100, y100, y100); |
| 597 |
penlabels(1,2,3,4,5,100); endchar; |
| 598 |
|
| 599 |
|
| 600 |
cmchar "Greek 394BC letter upsilon (y)"; |
| 601 |
beginchar("y", 2u#+side#, cap_height#, 0); |
| 602 |
adjust_fit(0,0); |
| 603 |
pcshiftx := u; |
| 604 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 605 |
numeric alpha, theta; |
| 606 |
numeric hor, vert; |
| 607 |
pair greek[]; |
| 608 |
alpha=h/3; |
| 609 |
hor := h; vert := 0.75h; |
| 610 |
greek1 = (hor,vert); greek2 = (-hor, -vert); |
| 611 |
greek3 = (-hor,vert); greek4 = (hor, -vert); |
| 612 |
theta = 270 + angle(greek1); |
| 613 |
penpos1(thick,0); penpos2(thick,0); |
| 614 |
z1=(w/2,0); z2=(w/2,alpha); |
| 615 |
penpos3(thick,theta); |
| 616 |
y3l=h; x3r=w-pcshiftx; |
| 617 |
penpos4(thick,-theta); |
| 618 |
y4r=h; x4l=pcshiftx; |
| 619 |
filldraw z1l--z1r--z2r{up}..{greek1}z3r--z3l{greek2}..{down}z2l--cycle; |
| 620 |
filldraw z1l--z1r--z2r{up}..{greek3}z4r--z4l{greek4}..{down}z2l--cycle; |
| 621 |
proofpcbb(100, y100, y100); |
| 622 |
penlabels(0,1,2,3,4,5,6,100); endchar; % End of "U" |
| 623 |
|
| 624 |
|
| 625 |
cmchar "Greek 394BC letter chi (X)"; |
| 626 |
beginchar("X", 2u#+side#, cap_height#, 0); |
| 627 |
adjust_fit(0,0); |
| 628 |
pcshiftx := u; |
| 629 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 630 |
numeric theta; |
| 631 |
theta = 270+45; |
| 632 |
penpos1(thick,theta); penpos2(thick,theta); |
| 633 |
x1l=pcshiftx; y1r=0; x2r=pcshiftx+side; y2l=h; |
| 634 |
filldraw stroke z1e--z2e; |
| 635 |
penpos3(thick,-theta); penpos4(thick,-theta); |
| 636 |
x3l=pcshiftx; y3r=h; x4r=pcshiftx+side; y4l=0; |
| 637 |
filldraw stroke z3e--z4e; |
| 638 |
proofpcbb(100, y100, y100); |
| 639 |
penlabels(1,2,3,4,100); endchar; |
| 640 |
|
| 641 |
|
| 642 |
cmchar "Greek 394BC letter phi (f)"; |
| 643 |
beginchar("f", 2u#+2/3side#, cap_height#,0); |
| 644 |
adjust_fit(0, 0); |
| 645 |
pcshiftx := u; |
| 646 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 647 |
penpos1(thick,0); penpos2(thick,0); |
| 648 |
z1=(w/2,0); z2=(w/2,h); |
| 649 |
z0=(w/2,h/2); |
| 650 |
numeric alpha; |
| 651 |
alpha := 1/3h; |
| 652 |
y3o=y3i=y5i=y5o=h/2; |
| 653 |
x3o=x0-alpha; x3i=x3o+thick; x5o=x0+alpha; x5i=x5o-thick; |
| 654 |
x4o=x4i=x6i=x6o=w/2; |
| 655 |
y4o=y0+alpha; y4i=y4o-thick; y6o=y0-alpha; y6i=y6o+thick; |
| 656 |
unfilldraw z3i..z4i..z5i..z6i..cycle; |
| 657 |
filldraw z3o..z4o..z5o..z6o..cycle; |
| 658 |
filldraw stroke z1e--z2e; filldraw stroke z1e--z2e; |
| 659 |
proofpcbb(100, y100, y100); |
| 660 |
penlabels(1,2,3,4,5,6,100); |
| 661 |
endchar; |
| 662 |
|
| 663 |
|
| 664 |
cmchar "Greek 394BC letter psi (P)"; |
| 665 |
beginchar("P", 2u#+5/6side#, cap_height#,0); |
| 666 |
adjust_fit(0, 0); |
| 667 |
pcshiftx := u; |
| 668 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 669 |
numeric alpha, beta; |
| 670 |
numeric hor, vert, theta; |
| 671 |
pair greek; |
| 672 |
alpha=5/6; % scale factor |
| 673 |
beta=1/3alpha*side+thick; % arm seperation height |
| 674 |
penpos1(thick,0); penpos2(thick,0); |
| 675 |
z1=(w/2,0); z2=(w/2,h); |
| 676 |
filldraw stroke z1e--z2e; |
| 677 |
hor := w/2; vert := h-beta; |
| 678 |
greek = (hor,vert); |
| 679 |
theta=270+angle(greek); |
| 680 |
penpos3(thick,theta); penpos4(thick,theta); |
| 681 |
z3l=(w/2,beta); y4l=alpha*h; x4r=w-pcshiftx; |
| 682 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 683 |
z5r=z3l; x6l=pcshiftx; y6r=y4l; |
| 684 |
z10=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 685 |
z11=whatever[z1l,z2l]=whatever[z5l,z6l]; |
| 686 |
filldraw z3l--z4l--z4r--z10--cycle; % right arm |
| 687 |
filldraw z5r--z6r--z6l--z11--cycle; % left arm |
| 688 |
proofpcbb(100, y100, y100); |
| 689 |
penlabels(1,2,3,4,5,6,10,11,100); |
| 690 |
endchar; |
| 691 |
|
| 692 |
|
| 693 |
cmchar "Greek 394BC letter omega (O)"; |
| 694 |
beginchar("O", 2u#+4/3side#, cap_height#,0); |
| 695 |
adjust_fit(0, 0); |
| 696 |
pcshiftx := u; |
| 697 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 698 |
penpos1(thick,90); penpos2(thick,90); penpos3(thick,90); penpos4(thick,90); |
| 699 |
z1l=(pcshiftx,0); z4l=(w-pcshiftx,0); |
| 700 |
x2l = w/2-side/4; x3l=w/2+side/4; y2l=y3l=0; |
| 701 |
numeric theta, hor, vert; |
| 702 |
pair greek[]; |
| 703 |
hor := x2r-pcshiftx; vert := h; |
| 704 |
greek1=(hor,vert); greek2=(-hor,-vert); |
| 705 |
greek3=(-hor,vert); greek4=(hor,-vert); |
| 706 |
theta = 270+angle(greek1); |
| 707 |
penpos5(thick,-theta); penpos9(thick,theta); |
| 708 |
z5r=z2l; z9l=z3l; |
| 709 |
penpos6(thick,0); penpos8(thick,0); |
| 710 |
z6l=(w/2-side/2, h/2); z8r=(w/2+side/2, h/2); |
| 711 |
penpos7(thick,90); |
| 712 |
z7r=(w/2,h); |
| 713 |
path p[]; |
| 714 |
p1=z5l{greek3}..z6l{up}..{right}z7r; |
| 715 |
p2=z7r{right}..z8r{down}..{greek2}z9r; |
| 716 |
p3=z1r--z4r; |
| 717 |
z10 = p3 intersectionpoint p1; |
| 718 |
z11 = p3 intersectionpoint p2; |
| 719 |
filldraw z1r--z10{greek3}..z6l{up}..z7r{right}..z8r{down}..{greek2}z11--z4r |
| 720 |
--z4l--z3l{greek1}..z8l{up}..z7l{left}..z6r{down}..{greek4}z2l--z1l--cycle; |
| 721 |
proofpcbb(100, y100, y100); |
| 722 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,100); |
| 723 |
endchar; |
| 724 |
|
| 725 |
|
| 726 |
cmchar "Greek 394BC letter beta (rough, B)"; |
| 727 |
beginchar("B",4u#+2/3side#, cap_height#, 0); |
| 728 |
adjust_fit(0,0); |
| 729 |
pcshiftx := 2u; |
| 730 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 731 |
numeric beta; |
| 732 |
beta := side/10; % amount to extend top and bottom |
| 733 |
penpos1(thick,0); penpos2(thick,0); |
| 734 |
y2l=-beta; y1l=h+beta; x1l=x2l=pcshiftx; |
| 735 |
numeric alpha, long, short, hypot; |
| 736 |
long=(w-2pcshiftx); short=h/4; hypot=short++long; |
| 737 |
alpha := hypot/long; |
| 738 |
penpos3(alpha*thick,90); penpos4(alpha*thick,90); |
| 739 |
penpos5(alpha*thick,90); penpos6(alpha*thick,90); |
| 740 |
z3l=z2l; |
| 741 |
x4l=w-pcshiftx; y4l=0.25[y2l,y1l]; |
| 742 |
z5r=z4l; |
| 743 |
x6l=x2r; y6l=0.5[y2l,y1l]; |
| 744 |
penpos7(alpha*thick,90); penpos8(alpha*thick,90); |
| 745 |
penpos9(alpha*thick,90); penpos10(alpha*thick,90); |
| 746 |
z7r=z6l; |
| 747 |
x8l=x4l; y8l=0.75[y2l,y1l]; |
| 748 |
z9r=z8l; |
| 749 |
z10r=z1l; |
| 750 |
z11=whatever[z2r,z1r]=whatever[z3r,z4r]; % bottom bowl and stem |
| 751 |
z12=whatever[z3r,z4r]=whatever[z6l,z5l]; % bottom bowl inner |
| 752 |
z13=whatever[z5r,z6r]=whatever[z7l,z8l]; % between the bowls |
| 753 |
z14=whatever[z7r,z8r]=whatever[z9l,z10l]; % top bowl inner |
| 754 |
z15=whatever[z2r,z1r]=whatever[z9l,z10l]; % top bowl and stem |
| 755 |
filldraw z1l--z2l--z4l--z13--z8l--cycle; |
| 756 |
unfilldraw z6l--z12--z11--cycle; |
| 757 |
unfilldraw z7r--z15--z14--cycle; |
| 758 |
proofpcbb(100, y100, y100); |
| 759 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,100); |
| 760 |
endchar; |
| 761 |
|
| 762 |
|
| 763 |
cmchar"Greek 394BC letter mu (rough, M)"; |
| 764 |
beginchar("M", 2u#+side#+2thick#, cap_height#, 0); |
| 765 |
adjust_fit(0,0); |
| 766 |
pcshiftx := u+thick; |
| 767 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 768 |
numeric alpha, hor, vert, hypot, theta[]; |
| 769 |
pair greek[]; |
| 770 |
hor := 3thick; vert := side; |
| 771 |
greek1 = (hor, vert); |
| 772 |
theta1 = 270 + angle(greek1); |
| 773 |
numeric beta; |
| 774 |
beta := thick; % extra depth below baseline |
| 775 |
penpos1(thick,theta1); penpos2(thick,theta1); |
| 776 |
z1r=(pcshiftx,-beta); z2l=(pcshiftx+2thick,h); |
| 777 |
penpos3(thick,-theta1); penpos4(thick,-theta1); |
| 778 |
z3l=(pcshiftx+side,0); z4r=(pcshiftx+side-2thick,h); |
| 779 |
z0=z100; |
| 780 |
theta2 = 270 + angle(z4r-z0); |
| 781 |
penpos5(thick,-theta2); penpos6(thick,-theta2); |
| 782 |
z5r=z0; z6r=z2l; |
| 783 |
penpos7(thick,theta2); penpos8(thick,theta2); |
| 784 |
z7l=z0; z8l=z4r; |
| 785 |
z9=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 786 |
z10=whatever[z5l,z6l]=whatever[z7r,z8r]; |
| 787 |
z11=whatever[z7r,z8r]=whatever[z3l,z4l]; |
| 788 |
filldraw z1l--z2l--z0--z4r--z3r--z3l--z11--z10--z9--z1r--cycle; |
| 789 |
proofpcbb(100, y100, y100); |
| 790 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,100); endchar; |
| 791 |
|
| 792 |
|
| 793 |
cmchar "Greek 394BC letter nu (rough, N)"; |
| 794 |
beginchar("N", 4u#+side#, cap_height#,0); |
| 795 |
adjust_fit(0,0); |
| 796 |
pcshiftx := 2u; |
| 797 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 798 |
numeric hor, vert, theta; |
| 799 |
pair greek[]; |
| 800 |
hor = side-thick; vert = h; |
| 801 |
greek1=(hor,vert); |
| 802 |
theta=270 + angle(greek1); |
| 803 |
numeric beta; |
| 804 |
beta := thick; % extra extensions of the legs |
| 805 |
penpos1(thick,0); penpos2(thick,0); |
| 806 |
z1l=(pcshiftx,-beta); z2l=(pcshiftx,h); |
| 807 |
penpos3(thick,0); penpos4(thick,0); |
| 808 |
z3r=(pcshiftx+side,0); z4r=(pcshiftx+side,h+beta); |
| 809 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 810 |
z5l=z3r; z6r=z2l; |
| 811 |
z7=whatever[z1r,z2r]=whatever[z5l,z6l]; |
| 812 |
z8=whatever[z5r,z6r]=whatever[z3l,z4l]; |
| 813 |
filldraw z1l--z2l--z8--z4l--z4r--z3r--z7--z1r--cycle; |
| 814 |
proofpcbb(100, y100, y100); |
| 815 |
penlabels(1,2,3,4,5,6,7,8,100); endchar; |
| 816 |
|
| 817 |
|
| 818 |
cmchar "Greek 394BC letter rho (rough, R)"; |
| 819 |
beginchar("R", 2u#+2/3side#, cap_height#,0); |
| 820 |
adjust_fit(0, 0); |
| 821 |
pcshiftx := u; |
| 822 |
y100=h/2; x100=pcshiftx+y100; % square center |
| 823 |
numeric beta; |
| 824 |
beta := side/10; % extra top and bottom extensions |
| 825 |
penpos1(thick,0); penpos2(thick,0); |
| 826 |
top lft z1l=(pcshiftx,h+beta); bot lft z2l=(pcshiftx,-beta); |
| 827 |
filldraw stroke z1e--z2e; % vertical stem |
| 828 |
penpos3(thick,90); penpos4(thick,0); penpos5(thick,-90); |
| 829 |
top y3r=top y1; x3r=x1r; |
| 830 |
bot y5r=5/9[y1,y2]; x5=x3; |
| 831 |
x4r=x1l+5/9side; y4=0.5[y5r,y3r]; |
| 832 |
filldraw z3r{right}..z4r{down}..z5r{left}--z5l{right}..z4l{up}..z3l{left}--cycle; |
| 833 |
proofpcbb(100, y100, y100); |
| 834 |
penlabels(1,2,3,4,5,100); |
| 835 |
endchar; |
| 836 |
|
| 837 |
|
| 838 |
cmchar "Greek 394BC letter upsilon (rough, Y)"; |
| 839 |
beginchar("Y", 2u#+6/5side#, cap_height#, 0); |
| 840 |
adjust_fit(0,0); |
| 841 |
pcshiftx := u; |
| 842 |
y100=h/2; x100=pcshiftx+y100; % center of square |
| 843 |
numeric beta; |
| 844 |
beta := side/10; % extra at top and bottom |
| 845 |
numeric alpha, theta; |
| 846 |
numeric hor, vert; |
| 847 |
pair greek[]; |
| 848 |
alpha=h/3; |
| 849 |
hor := h; vert := 0.75h; |
| 850 |
greek1 = (hor,vert); greek2 = (-hor, -vert); |
| 851 |
greek3 = (-hor,vert); greek4 = (hor, -vert); |
| 852 |
theta = 270 + angle(greek1); |
| 853 |
penpos1(thick,0); penpos2(thick,0); |
| 854 |
z1=(w/2,-beta); z2=(w/2,alpha); |
| 855 |
penpos3(thick,theta); |
| 856 |
y3l=h+beta; x3r=w-pcshiftx; |
| 857 |
penpos4(thick,-theta); |
| 858 |
y4r=h+beta; x4l=pcshiftx; |
| 859 |
filldraw z1l--z1r--z2r{up}..{greek1}z3r--z3l{greek2}..{down}z2l--cycle; |
| 860 |
filldraw z1l--z1r--z2r{up}..{greek3}z4r--z4l{greek4}..{down}z2l--cycle; |
| 861 |
proofpcbb(100, y100, y100); |
| 862 |
penlabels(0,1,2,3,4,5,6,100); endchar; % End of "u" |
| 863 |
|
| 864 |
|
| 865 |
cmchar "Greek 394BC letter phi (rough, F)"; |
| 866 |
beginchar("F", 2u#+4/5side#, cap_height#,0); |
| 867 |
adjust_fit(0, 0); |
| 868 |
pcshiftx := u; |
| 869 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 870 |
numeric beta; |
| 871 |
beta := side/10; % extra at top and bottom |
| 872 |
penpos1(thick,0); penpos2(thick,0); |
| 873 |
z1=(w/2,-beta); z2=(w/2,h+beta); |
| 874 |
z0=(w/2,h/2); |
| 875 |
numeric alpha; |
| 876 |
alpha := 2/5side; |
| 877 |
y3o=y3i=y5i=y5o=h/2; |
| 878 |
x3o=x0-alpha; x3i=x3o+thick; x5o=x0+alpha; x5i=x5o-thick; |
| 879 |
x4o=x4i=x6i=x6o=w/2; |
| 880 |
y4o=y0+alpha; y4i=y4o-thick; y6o=y0-alpha; y6i=y6o+thick; |
| 881 |
unfilldraw z3i..z4i..z5i..z6i..cycle; |
| 882 |
filldraw z3o..z4o..z5o..z6o..cycle; |
| 883 |
filldraw stroke z1e--z2e; filldraw stroke z1e--z2e; |
| 884 |
proofpcbb(100, y100, y100); |
| 885 |
penlabels(1,2,3,4,5,6,100); |
| 886 |
endchar; |
| 887 |
|
| 888 |
|
| 889 |
cmchar "Greek 394BC letter psi (rough, Q)"; |
| 890 |
beginchar("Q", 2u#+side#, cap_height#,0); |
| 891 |
adjust_fit(0, 0); |
| 892 |
pcshiftx := u; |
| 893 |
y100 = h/2; x100 = pcshiftx + y100; % center point |
| 894 |
numeric alpha, beta; |
| 895 |
numeric hor, vert, theta; |
| 896 |
pair greek; |
| 897 |
alpha=1; % scale factor |
| 898 |
beta=1/3alpha*side+thick; % arm seperation height |
| 899 |
numeric gamma; |
| 900 |
gamma := side/10; % extra at top and bottom |
| 901 |
penpos1(thick,0); penpos2(thick,0); |
| 902 |
z1=(w/2,-gamma); z2=(w/2,h+gamma); |
| 903 |
filldraw stroke z1e--z2e; |
| 904 |
hor := w/2; vert := h-beta; |
| 905 |
greek = (hor,vert); |
| 906 |
theta=270+angle(greek); |
| 907 |
penpos3(thick,theta); penpos4(thick,theta); |
| 908 |
z3l=(w/2,beta); y4l=alpha*h; x4r=w-pcshiftx; |
| 909 |
penpos5(thick,-theta); penpos6(thick,-theta); |
| 910 |
z5r=z3l; x6l=pcshiftx; y6r=y4l; |
| 911 |
z10=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 912 |
z11=whatever[z1l,z2l]=whatever[z5l,z6l]; |
| 913 |
filldraw z3l--z4l--z4r--z10--cycle; % right arm |
| 914 |
filldraw z5r--z6r--z6l--z11--cycle; % left arm |
| 915 |
proofpcbb(100, y100, y100); |
| 916 |
penlabels(1,2,3,4,5,6,10,11,100); |
| 917 |
endchar; |
| 918 |
|
| 919 |
|
| 920 |
end |
| 921 |
|