% Attempt to generate a Greek alphabet for setting Greek texts % Adapted by B Hamilton Kelly (29 Sept 1987) from % The Computer Modern Math Italic family (by D. E. Knuth, 1979--1985) % Computer Modern Greek caps, analogous to the uppercase Roman letters. % Modified by BHK @RMCS 870902 --- see TUGboat 87#2 Errata & Changes supplement % Computer Modern Roman upper case: % These letters were originally coded by D. E. Knuth in November, 1979, % inspired by the Monotype faces used in {\sl The Art of Computer Programming}. % Sans serif designs by Richard Southall were added in April, 1982. % The programs were revised for the new \MF\ conventions in 1985. % Computer Modern Roman lower case: % These letters were originally coded by D. E. Knuth in November, 1979, % inspired by the Monotype faces used in {\sl The Art of Computer Programming}. % Sans serif designs by Richard Southall were added in April, 1982. % The programs were revised for the new \MF\ conventions in 1985. % This lowercase Greek alphabet was prepared by D. E. Knuth in December, 1979, % inspired by the Monotype faces used in {\sl The Art of Computer Programming}. % (It has been designed for math formulas, not Greek texts.) % The programs were revised for the new \MF\ conventions in 1985. font_coding_scheme:="TeX Greek Alphabet"; mode_setup; font_setup; font_slant slant; font_x_height x_height#; if monospace: font_normal_space 9u#; % no stretching or shrinking font_quad 18u#; font_extra_space 9u#; else: font_normal_space 6u#+2letter_fit#; font_normal_stretch 3u#; font_normal_shrink 2u#; font_quad 18u#+4letter_fit#; font_extra_space 2u#; fi % Greek Upper-case --- these programs taken from romanu and greeku. cmchar "The letter Alpha"; beginchar("A",13u#,cap_height#,0); adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric left_stem,right_stem,outer_jut,alpha; right_stem=cap_stem-stem_corr; left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0; x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo; alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); z0=whatever[z1r,z2r]=whatever[z3l,z4l]; if y0lower_notch: {left}(x4'-1,lower_notch){up}... fi {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonal else: penpos5(whatever,0); penpos6(whatever,90); z5l=z1l; z6l=z4l; z7=z6l+(max(eps,cap_stem-3stem_corr-tiny),0) rotated (angle(z5l-z6l)-90); z5r=z7+whatever*(z5l-z6l); z6r=z7+whatever*(z5l-z6l); filldraw stroke z5e..z6e; fi % diagonal if serifs: if hefty: serif(1,2,a,1/3,-cap_jut); % upper left serif else: serif(5,6,a,1/3,-cap_jut); fi % upper left serif dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif dish_serif(3,4,e,1/2,cap_jut,f,1/2,cap_jut)(dark); fi % upper right serif math_fit(0,max(.5ic#-.5u#,0)); penlabels(1,1',2,3,4,4',5,6,7); endchar; cmchar "Uppercase Greek Xi"; beginchar("X",12u#,cap_height#,0); italcorr cap_height#*slant-.35u#; adjust_fit(0,0); h:=vround(h-2stem_corr); numeric shaved_stem; shaved_stem=hround .9[vair,.85cap_stem]; % Next line added by BHK 870902 --- see TUGboat 87#2 Errata & Changes supplement if shaved_stemtop y7r+.75cap_jut: xjut=.5cap_jut; else: bot y2=top y7r+1.5xjut; fi pos11(hair,0); pos12(hair,0); y11=y12; pos13(hair,0); pos14(hair,0); y13=y14; lft x11l=lft x13l=w-rt x12r=w-rt x14r=hround 2.5u; top y11-bot y13=shaved_stem+2xjut; .5[y11,y13]=y7; filldraw stroke z11e--z13e; filldraw stroke z12e--z14e; fi % middle serifs math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,11,12,13,14); endchar; cmchar "The letter Omicron"; beginchar("O",14u#-width_adj#,cap_height#,0); italcorr .7cap_height#*slant-.5u#; adjust_fit(0,0); penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); penpos2(cap_curve,180); penpos4(cap_curve,0); if monospace: x2r=hround 1.5u; interim superness:=sqrt superness; % make |"O"|, not |"0"| else: x2r=hround u; fi x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o; y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; penstroke pulled_super_arc.e(1,2)(.5superpull) & pulled_super_arc.e(2,3)(.5superpull) & pulled_super_arc.e(3,4)(.5superpull) & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#); penlabels(1,2,3,4); endchar; cmchar "Uppercase Greek Pi"; beginchar("P",13u#+width_adj#,cap_height#,0); italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); adjust_fit(cap_serif_fit#,cap_serif_fit#); pickup tiny.nib; h:=vround(h-stem_corr); pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_stem,0); pos4(cap_stem,0); lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1; top y1=top y3=h; bot y2=bot y4=0; filldraw stroke z1e--z2e; % left stem filldraw stroke z3e--z4e; % right stem penpos5(cap_bar,90); penpos6(cap_bar,90); x5=x1; x6=x3; y5r=y6r=h; fill stroke z5e--z6e; % bar if serifs: numeric inner_jut; if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut; else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi nodish_serif(1,2,a,1/3,cap_jut,b,1/3,eps); % upper left serif dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif nodish_serif(3,4,e,1/3,eps,f,1/3,cap_jut); % upper right serif dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower right serif math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar; cmchar "The letter P (Rho)"; beginchar("R",12u#,cap_height#,0); italcorr .75cap_height#*slant-.5u#; adjust_fit(cap_serif_fit#,0); pickup tiny.nib; penpos1(cap_stem'-tiny,0); penpos2(cap_stem-tiny,0); pos0(cap_stem',0); pos0'(cap_stem,0); lft x1l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; x1l=x2l=x0l=x0'l; y0=y0'=y7; penpos3(cap_band,90); penpos4(cap_band,90); penpos5(cap_curve if hefty:-3stem_corr fi,0); penpos6(.5[vair,cap_band],-90); penpos7(.5[vair,cap_band],-90); z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7; x7=x2; y7l=vround .5h; x4=x6=.5w+.75u; x5r=hround(w-u); x4l:=x6l:=x4-.25cap_curve; filldraw stroke z1e--z0e--z0'e--z2e; % stem fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe if serifs: nodish_serif(1,0,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); endchar; cmchar "Uppercase Greek Sigma"; beginchar("S",13u#,cap_height#,0); italcorr cap_height#*slant-beak_jut#-.5u#; adjust_fit(0,0); numeric bot_arm_thickness; bot_arm_thickness=Vround .25[slab,cap_vstem]; pickup tiny.nib; lft x1l=hround u; x1l=x2l=x4l; top y1=h; bot y2=h-slab-eps; bot y4=0; x3l-x1l=4/11(w-2u); y3=.5h; numeric alpha[]; alpha1=((x3l-x1l)++(y2-y3))/(y2-y3); penpos1(alpha1*(cap_stem-tiny),0); penpos2(alpha1*(cap_stem-tiny),0); penpos3(alpha1*(cap_stem-tiny),0); alpha2=diag_ratio(1,cap_hair-tiny,y3-y4,x3r-x4l); penpos4(alpha2*(cap_hair-tiny),0); z0=whatever[z2l,z3l]=z4l+whatever*(z3r-z4r); filldraw z1l--z2l--z0--z4l--z4r--z3r--z2r--z1r--cycle; % diagonals pickup crisp.nib; pos5(slab,90); pos6(hair,0); top y5r=h; x5=x1; rt x6r=hround(w-u); y6=good.y(y5l-beak)-eps; arm(5,6,a,beak_darkness,beak_jut); % upper arm and beak pos7(bot_arm_thickness,-90); pos8(hair,0); bot y7r=0; z7l=whatever[z4,z3]; x7r:=x4; x8=x6; y8=good.y(y7l+beak)+eps; arm(7,8,b,beak_darkness,beak_jut); % lower arm and beak math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8); endchar; cmchar "The letter Tau"; beginchar("T",13u#-width_adj#,cap_height#,0); italcorr cap_height#*slant-beak_jut#-.25u#; adjust_fit(0,0); h:=vround(h-2stem_corr); pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem pickup crisp.nib; pos3(slab,90); pos4(hair,0); top y3r=h; x3=x1; rt x4r=hround(w-.65u); y4=good.y(y3l-beak)-eps; arm(3,4,e,beak_darkness,.7beak_jut); % right arm and beak pos5(hair,180); x5=w-x4; y5=y4; arm(3,5,f,beak_darkness,-.7beak_jut); % left arm and beak if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,1.414cap_jut); % lower serif nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing math_fit(-.75cap_height#*slant,ic#-2.5u#); penlabels(1,2,3,4,5,6); endchar; cmchar "Uppercase Greek Upsilon"; beginchar("U",14u#,cap_height#,0); italcorr .8cap_height#*slant-.5u#; adjust_fit(0,0); pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); y1=.5h; bot y2=0; filldraw stroke z1e--z2e; % stem penpos3(.6cap_stem,0); penpos4(.75cap_curve,90); penpos5(cap_hair,180); z3l=lft z1l; x5r=hround u; y5=bot .8h; x4=.61803[x3l,x5l]; y4r=h+o; penpos5'(cap_hair,180); x5'=x5; y5'=h; fill z3r{up}...z4r{left}...{down}diag_end(5'r,5r,1,1,5l,5'l){up} ...{right}z4l...{down}z3l--cycle; % left arc penpos6(.6cap_stem,0); penpos7(.75cap_curve,-90); penpos8(cap_hair,-180); z6r=rt z1r; x8=w-x5; y8=y5; x7=w-x4; y7=y4; penpos8'(cap_hair,-180); x8'=x8; y8'=h; fill z6r{up}...z7r{right}...{down}diag_end(8'r,8r,1,1,8l,8'l){up} ...{left}z7l...{down}z6l--cycle; % right arc if serifs: dish_serif(2,1,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); fi % serif math_fit(-.8cap_height#*slant-.5u#,ic#-2.5u#); penlabels(1,2,3,4,5,6,7,8); endchar; cmchar "Uppercase Greek Phi"; beginchar(oct"010",13u#,cap_height#,0); italcorr .5cap_height#*slant-.5u#; adjust_fit(0,0); numeric shaved_stem,light_curve; shaved_stem=cap_stem-hround 2stem_corr; light_curve=cap_curve-hround stem_corr; pickup tiny.nib; pos1(shaved_stem,0); pos2(shaved_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem penpos3(vair,90); penpos5(vair,-90); penpos4(light_curve,180); penpos6(light_curve,0); x4r=hround u; x6r=w-x4r; x3=x5=.5w; y3r=vround(.85h if serifs:-slab fi); y4=y6=.5[y3,y5]; y5r=vround(.15h if serifs:+slab fi); penstroke pulled_arc.e(3,4) & pulled_arc.e(4,5) & pulled_arc.e(5,6) & pulled_arc.e(6,3) & cycle; % bowl if serifs: dish_serif(1,2,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); % upper serif dish_serif(2,1,c,1/3,1.25cap_jut,d,1/3,1.25cap_jut); fi % lower serif math_fit(-.5cap_height#*slant-.5u#,ic#); penlabels(1,2,3,4,5,6); endchar; cmchar "The letter X (Chi)"; beginchar("H",13u#,cap_height#,0); italcorr cap_height#*slant-.25u#; adjust_fit(cap_serif_fit#,cap_serif_fit#); numeric stem[],outer_jut,xjut,alpha[]; stem1=cap_stem-2stem_corr; stem2=min(cap_hair,stem1); outer_jut=.75cap_jut; xjut= if serifs: (stem1-stem2)/4 else: 0 fi; x1l=l+letter_fit+.5u+outer_jut; x2r=r-letter_fit-u-outer_jut-xjut; x3l=l+letter_fit+.25u+outer_jut+xjut; x4r=r-letter_fit-.25u-outer_jut; y1=y2=h; y3=y4=0; alpha1=diag_ratio(1,stem1,h,x4r-x1l); alpha2=diag_ratio(1,stem2,h,x2r-x3l); penpos1(alpha1*stem1,0); penpos2(alpha2*stem2,0); penpos3(alpha2*stem2,0); penpos4(alpha1*stem1,0); if hefty: z0=whatever[z1,z4]=whatever[z2,z3]; x12=x34=x0; y13=y24=y0; z12=whatever[z2l,z3l]; z13=whatever[z2l,z3l]; z24=whatever[z2r,z3r]; z34=whatever[z2r,z3r]; forsuffixes $=13,24,34: z$'=.1[z$,z0]; endfor fill diag_end(12,1r,.5,1,1l,13')--z13'--diag_end(13',3l,1,.5,3r,34')--z34' --diag_end(34',4l,.5,1,4r,24')--z24' --diag_end(24',2r,1,.5,2l,12)--z12--cycle; % diagonals else: fill diag_end(4r,1r,.5,1,1l,4l) --diag_end(1l,4l,.5,1,4r,1r)--cycle; % left diagonal fill diag_end(2l,3l,.5,1,3r,2r) --diag_end(3r,2r,.5,1,2l,3l)--cycle; fi % right diagonal if serifs: numeric inner_jut[]; pickup tiny.nib; prime_points_inside(1,4); prime_points_inside(2,3); prime_points_inside(3,2); prime_points_inside(4,1); if rt x1'r+cap_jut+.5u+1<=lft x2'l-cap_jut-xjut: inner_jut1=cap_jut; else: rt x1'r+inner_jut1+.5u+1=lft x2'l-inner_jut1-xjut; fi if rt x3'r+cap_jut+.5u+1<=lft x4'l-cap_jut-xjut: inner_jut2=cap_jut; else: rt x3'r+inner_jut2+.5u+1=lft x4'l-inner_jut2-xjut; fi dish_serif(1',4,a,1/3,outer_jut,b,2/3,inner_jut1); % upper left serif dish_serif(4',1,c,2/3,inner_jut2,d,1/3,outer_jut); % lower right serif dish_serif(2',3,e,2/3,inner_jut1+xjut, f,1/2,outer_jut+xjut)(dark); % upper right serif dish_serif(3',2,g,1/2,outer_jut+xjut, h,2/3,inner_jut2+xjut)(dark); fi % lower left serif math_fit(0,.5ic#); penlabels(0,1,2,3,4,12,13,24,34); endchar; cmchar "Uppercase Greek Psi"; beginchar(oct"011",14u#,cap_height#,0); italcorr .8cap_height#*slant-.5u#; adjust_fit(0,0); numeric shaved_stem; shaved_stem=cap_stem-hround 2stem_corr; pickup tiny.nib; pos1(shaved_stem,0); pos2(shaved_stem,0); lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; filldraw stroke z1e--z2e; % stem pos3(shaved_stem,-180); pos4(shaved_stem,-180); pos5(vair,-90); x5=x1; bot y5r=vround(.15h if serifs:+slab fi); pos6(shaved_stem,0); pos7(shaved_stem,0); lft x3r=hround u; x7=w-x3; lft x4r=hround(3u-.5shaved_stem); x6=w-x4; pos3'(vair,90); pos7'(vair,90); z3'r=z3r; z7'r=z7r; y3=y7; y4=y6=.6h; y3=good.y(y3+.84h if serifs:-slab fi-y3'); interim superness:=more_super; filldraw z3'l{right}...z4r{down} & super_arc.r(4,5) & super_arc.r(5,6) & z6r{up}...z7'l{right} --z7r---z7l...z6l{down} & super_arc.l(6,5) & super_arc.l(5,4) & z4l{up}...z3l---z3r--cycle; % stroke if serifs: dish_serif(1,2,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); % upper serif dish_serif(2,1,c,1/3,1.25cap_jut,d,1/3,1.25cap_jut); fi % lower serif math_fit(-.8cap_height#*slant-.5u#,.4cap_height#*slant-1.25u#); penlabels(1,2,3,4,5,6,7); endchar; cmchar "Uppercase Greek Omega"; beginchar("W",13u#,cap_height#,0); italcorr .75cap_height#*slant-.5u#; adjust_fit(0,0); pickup tiny.nib; pos1(vair,90); pos2(cap_curve,180); pos3(vair,180); pos4(cap_curve,0); pos5(vair,0); x1=.5w; top y1r=h+o; lft x2r=hround u; y2=y4=2/3h; x4=w-x2; rt x3l=hround(1/3(w+.5u)+.5hair); bot y3=bot y5=0; x5=w-x3; filldraw stroke z3e{up}...{up}z2e & pulled_super_arc.e(2,1)(.5superpull) & pulled_super_arc.e(1,4)(.5superpull) & z4e{down}...{down}z5e; % bowl numeric arm_thickness; path p; p=z3{up}...{up}z2; arm_thickness=Vround(if hefty:slab+2stem_corr else:.75[slab,cap_vstem] fi); pickup crisp.nib; pos6(arm_thickness,-90); pos7(fudged.hair,-180); bot y6r=0; x6=x3; lft x7r=hround .8u; y7=good.y(y6l+.5beak)+eps; (x,y)=p intersectionpoint((0,y6l)--(w,y6l)); x6l:=x; arm(6,7,a,.5beak_darkness,-1.2beak_jut); % left arm and beak pos8(arm_thickness,-90); pos9(fudged.hair,0); y8=y6; y9=y7; x8+x6=x9+x7=w; x8l:=w-x6l; arm(8,9,b,.5beak_darkness,1.2beak_jut); % right arm and beak math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; % Greek lower-case --- the majority of these programs take from greekl % Revised BHK 880923 to occupy only 9u of the 11u width: original at end cmchar "Lowercase Greek alpha"; beginchar("a",11u#,x_height#,0); italcorr max(1/3x_height#*slant+.5hair#-.5u#,x_height#*slant-.5u#); adjust_fit(0,0); pickup fine.nib; pos0(hair,0); pos1(vair,-90); pos2(curve,-180); pos3(vair,-270); z4=(w-3.9u,9/16h); z5=(w-3.4u,.5[vair,y4]); numeric theta; theta=angle(z4-z5)-90; pos4(stem,theta); pos5(stem,theta); pos6(vair,90); pos7(hair,180); rt x0r=hround(w-2u); x1=x3=.5w-u; lft x2r=hround(1.5u-.5curve); x6=w-2u; x7+.5hair=hround(w-u+.5hair-epsilon); top y0=vround .8[bar_height,h]; bot y1r=bot y6l=-oo; y2=.5[y1,y3]; top y3r=h+oo; y7=1/4bar_height; filldraw stroke z0e{down}...pulled_arc.e(1,2) & pulled_arc.e(2,3) ...z4e---z5e...z6e{right}...{up}z7e; % diagonal, bowl, and hook math_fit(-.3x_height#*slant+.5curve#-u#,1/3x_height#*slant+.5hair#+.5u#); penlabels(0,1,2,3,4,5,6,7); endchar; cmchar "Lowercase Greek beta"; beginchar("b",9.5u#,asc_height#,desc_depth#); italcorr .5[x_height#,asc_height#]*slant-u#; adjust_fit(0,0); pickup fine.nib; pos0(hair,180); pos1(hair,180); pos2(vair,90); pos3(stem,0); pos4(vair,-90); pos5(hair,-180); pos6(vair,-270); pos7(curve,-360); pos8(vair,-450); pos9(hair,-540); x0=x1=x9; lft x0l=hround(1.5u-.5hair); x2=x4=x6=x8=.5w+.25u; rt x3r=hround(w-1.5u); rt x7r=hround(w-1.5u+.5curve); rt x5l=hround(x4-u); bot y0=-d; y1=top y6r=x_height; top y2r=h+oo; y3=.5[y2,y4]; y5=.5[y4,y6]; top y6r-bot y4r=vstem+eps; bot y8=-oo; y7=y9=.5[y6,y8]; if y6ly3r: y1r:=y3r:=y2; fi lft x4l=hround u; x4r-x4l=(hround .6[vair,stem])-fine; x6+.5u=x7=w-2u; x8=.5w+.75u; y6=-.1d; y8=-3/4d-oo; bot y7r=-d-oo; ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; filldraw circ_stroke z0e{down}...z1e{right}...{up}z2e; % opening hook filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right} ...z6e---z5e....{up}z4e ..tension 1 and atleast1.5..{right}z3e...{down}z2e; % main stroke math_fit(-.2asc_height#*slant-.5u#,0); penlabels(0,1,2,3,4,5,6,7,8); endchar; cmchar "Lowercase Greek eta"; beginchar("y",9u#,x_height#,desc_depth#); italcorr .8x_height#*slant+.5stem#-u#; adjust_fit(0,0); pickup fine.nib; x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; hook_in(0,a,1); % opening hook filldraw circ_stroke z2e--z1e; % left stem x4+.5stem=hround(w-1.5u+.5stem); ital_arch(2,3,4); % arch pos5(stem,0); x5=x4; y5-.5stem=-d-o; filldraw circ_stroke z5e--z4e; % right stem math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); penlabels(0,a,1,2,3,4,5); endchar; cmchar "Lowercase Greek theta"; % The variant is preferred beginchar(oct"003",8.25u#,asc_height#,0); italcorr .7asc_height#*slant+.5curve#-u#; adjust_fit(0,0); pickup fine.nib; pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl pos2'(bar,90); pos4'(bar,90); z2'=z2l; z4'=z4l; filldraw stroke z2'e--z4'e; % bar math_fit(-.3asc_height#*slant-u#+.5curve#,ic#-.5u#); penlabels(1,2,3,4); endchar; % Modified BHK 880926 to make enclosing box one u wider cmchar "Lowercase Greek iota"; beginchar("i",6u#,x_height#,0); italcorr 1/3x_height#*slant+.5hair#-.5u#; adjust_fit(if monospace: u#,u# else: 0,0 fi); pickup fine.nib; pos1(stem,0); lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; x2=x1-.25u; x4=w-u; hook_out(2,3,4)(skewed); % closing hook filldraw circ_stroke z1e{down}...{-u,-x_height}z2e; % stem math_fit(0,ic#); penlabels(1,2,3,4); endchar; % Designed BHK 880926 (based on \varkappa from msym10 [MF in SAIL]) cmchar "Lowercase Greek kappa (variant)"; beginchar("k",10u#,x_height#,0); adjust_fit(0,0); pickup fine.nib; italcorr 1/3x_height#*slant+.5hair#-.5u#; % Following definitions made character too heavy compared with rest %pos1(hair,-45); pos2(curve,-90); pos3(vair,180); pos4(stem,135); %pos14(stem,135); pos13(vair,180); pos12(curve,-90); pos11(hair,45); pos1(hair,-45); pos2(stem,-90); pos3(vair,180); pos4(stem,90); pos14(stem,90); pos13(vair,180); pos12(stem,-90); pos11(hair,45); x1l=u; x11=w-x1; y1=good.y(.4[bar_height,h]); y11=h-y1; x2=.25[x1,w/2]=w-x12; y2l=h+oo; y12r=0; x3-x2=x2-x1; x13=w-x3; y3=y13=h/2; x4r=x1l; y4l=0; x14=w-x4; y14r=h+oo; filldraw circ_stroke z1e{up}..z2e{right}..z3e{-.2,-1}..z4e{-1,-1}; % left filldraw circ_stroke z11e{down}..z12e{left}..z13e{.2,1}..z14e{1,1}; % right filldraw z4l--z14l--z14r--z4r--cycle; % diagonal penlabels(1,2,3,4,11,12,13,14); endchar; cmchar "Lowercase Greek kappa (math type)"; beginchar(oct"004",9u#,x_height#,0); italcorr 1/3x_height#*slant+.5hair#+.5u#; adjust_fit(0,0); pickup fine.nib; pos1(stem,0); pos2(stem,0); pos3(vair,90); pos4(vair,90); pos5(flare,90); x1=x2=x3; lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; y2-.5stem=-oo; filldraw z1l---z2l..z2r---z1r..cycle; % stem y3=bar_height; top y4r=h; x4+.5flare=hround(w-1.5u); z5r=z4r; path p,q; p=z3l{right}..{right}z4l; q=z5r{right}..z5l{left}...cycle; numeric t; t=ypart(p intersectiontimes q); filldraw stroke z3e{right}..{right}z4e; % upper diagonal filldraw subpath(0,t) of q--cycle; % bulb pos7(stem,0); pos8(vair,90); pos9(hair,180); x9+.5hair=hround(w+.5hair-epsilon); y9=1/3x_height; lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; filldraw stroke z3e{right}...z7e{down} ...z8e{right}...{up}z9e; % lower diagonal math_fit(0,ic#); penlabels(1,2,3,4,5,7,8,9); endchar; % Revised BHK 880923 to make narrower cmchar "Lowercase Greek lambda"; beginchar("l",9.5u#,asc_height#,0); adjust_fit(0,0); pickup fine.nib; pos1(vair,90); lft x1=hround .1u; top y1r=h; x2=x1+2u; y2=.7[x_height,h]; x3=w-2u; bot y4=-oo; y3=max(.07h,y4+eps); z4-(.25u,0)=whatever[z2,z3]; numeric theta; theta=angle(z2-z3)-90; pos2(stem,theta); pos3(stem,theta); pos4(stem,0); filldraw circ_stroke z1e{right}...z2e---z3e ...{2(x4e-x3e),y4e-y3e}z4e; % long diagonal y5=.5[bar_height,x_height]; z5=whatever[z2,z3]; x6=1.5u; y6-.5stem=-oo; pos5(hair,theta-90); pos6(stem,angle(z5-z6)-90); filldraw circ_stroke z6e--z5e; % short diagonal penlabels(1,2,3,4,5,6); endchar; % Revised BHK 880923 to make one unit wider (avoiding running into next char) cmchar "Lowercase Greek mu"; beginchar("m",10u#,x_height#,desc_depth#); italcorr 1/3x_height#*slant+.5hair#-.5u#; adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; pos1(stem,-180); pos2(stem,-180); x1=x2=x3; lft x1r=hround(1.5u-.5stem); y1+.5stem=h+oo; y2-.5stem=-d-o; filldraw z1r---z2r..z2l---z1l..cycle; % left stem pos3(stem,-180); pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; pos6(stem,0); rt x6r=hround(w-3.5u+.5stem); x5=x6=x7; x9=w-u; hook_out(7,8,9); % closing hook y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; filldraw stroke super_arc.e(3,4)...{up}z5e; % left stem and arc filldraw circ_stroke z6e--z7e; % right stem math_fit(desc_depth#*slant+.5stem#-u#,ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; % Changed BHK 880923 to make left stem curved and reduce overhang on left cmchar "Lowercase Greek nu"; beginchar("n",8.5u#,x_height#,0); italcorr x_height#*slant+.5stem#-u#; adjust_fit(0,0); pickup fine.nib; pos3(vair,-90); pos4(stem,0); bot y3r=0; y4+.5stem=h+oo; x3-.5stem=hround(1.5u-.5stem); x4+.5stem=hround(w-1.5u+.5stem); filldraw circ_stroke z4e{down}...{-36u,-h}z3e; % diagonal pickup tiny.nib; pos1(stem,10); pos2(stem,10); top y1=h+min(oo,serif_drop); bot y2=0; x2=x3; z=((z4{down}...{-36u,-h}z3)intersectionpoint((x2r,0)--(x2r,h))); x1-.5stem=hround(2.5u-.5stem); x5-x1=.6u; y5=.5[y1,y2]; pos5(stem,0); z1'=.2[z1,z5]; filldraw stroke z1e...z5e...z2e; %filldraw z1l--z2l--z--z1r--cycle; % stem if serifs: sloped_serif.l(1,1',a,1/3,jut,serif_drop); fi % upper left serif math_fit(0,ic#-1/3x_height#*slant-.5u#); penlabels(1,2,3,4); endchar; cmchar "Lowercase Greek xi"; beginchar("x",9u#,asc_height#,desc_depth#); italcorr .75[x_height#,asc_height#]*slant-2u#; adjust_fit(0,0); pickup fine.nib; pos10(hair,-720); pos11(vair,-630); pos12(hair,-540); pos13(vair,-450); lft x10l=hround 1/3w; x11=x13=.5[x10,x12]; rt x12l=hround(w-2.5u); top y10=h; top y13l=bot y11l+vstem+eps=vround(y10-.25(h-x_height)); y12=.5[y11,y13]; if y11r>y13r: y11r:=y13r:=y12; fi pos0(curve,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90); numeric theta; theta=90-angle(22u,x_height); slope:=-x_height/22u; pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); lft x0l=hround u; x1=x3=x11; x2=x12; y0=.5[y13,y1]; top y3l=vround .5h=bot y1l+vstem+eps; y2=.5[y1,y3]; if y1r>y3r: y1r:=y3r:=y2; fi lft x4l=hround u; x4r-x4l=hround .5[vair,stem]-fine; x6=x7=w-2u; x8=.5w+.5u; y6=-.3d; bot y7r=-d-oo; y8=max(-3/4d-oo,y7l); ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; filldraw circ_stroke z10e{down}...z11e{right}...{up}z12e; % opening hook filldraw stroke z12e{up}...z13e{left}...z0e{down} ...z1e{right}...{up}z2e; % upper arc filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e ---z5e...{up}z4e...{right}z3e...{down}z2e; % main stroke math_fit(-.2asc_height#*slant-.5u#,0); penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13); endchar; cmchar "The letter omicron"; % Taken from "o" in romanl beginchar("o",9u#,x_height#,0); italcorr .7x_height#*slant; adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); penpos1(vair,90); penpos3(vair',-90); penpos2(curve,180); penpos4(curve,0); x2r=hround max(.5u,1.25u-.5curve); x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl penlabels(1,2,3,4); endchar; cmchar "Lowercase Greek pi"; beginchar("p",10u#,x_height#,0); italcorr x_height#*slant+.5stem#-u#; adjust_fit(0,0); pi_stroke; % hook and bar pos4(hair,0); pos6(hair,0); x4=3.5u; x6=w-4u; y4=y6=y2; x5=3u; x7=w-2.5u; y5=y7=.5stem-oo; pair v[]; v1=(z4-z5) xscaled 3.14159; v2=(z6-z7) xscaled 3.14159; pos5(stem,angle v1-90); pos7(stem,angle v2-90); filldraw circ_stroke z5e{v1}...{up}z4e; % left stem filldraw circ_stroke z7e{v2}...{up}z6e; % right stem math_fit(-.7x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); penlabels(1,2,3,4,5,6,7); endchar; cmchar "Variant lowercase Greek rho"; % We prefer this one beginchar("r",8.25u#,x_height#,desc_depth#); italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; adjust_fit(0,0); pickup fine.nib; pos2(stem,180); pos3(vair,90); pos4(curve,0); pos5(vair,-90); pos6(stem,-180); lft x2r=hround(1.5u-.5stem); x2=x6; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); y2=y4=y6=.5[y3,y5]; top y3r=h+oo; bot y5r=-oo; filldraw circ_stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) & pulled_arc.e(4,5) & pulled_arc.e(5,6); % bowl pos2'(hair,-180); z2'r=z2r; pos1(vstem,-90); pos1'(vstem,90); z1'=z1; pos0(hair,0); rt x0r=hround(w-u); bot y0=-d; bot y1r=vround-.9d; x1=x5; interim superness:=sqrt superness; filldraw stroke pulled_arc.e(0,1'); filldraw stroke pulled_arc.e(1,2'); % tail math_fit(desc_depth#*slant+.5stem#-u#,ic#); penlabels(0,1,2,3,4,5,6); endchar; cmchar "Lowercase Greek sigma"; beginchar("s",10.25u#,x_height#,0); italcorr x_height#*slant+.5stem#-u#; adjust_fit(0,0); pickup fine.nib; pos1(vstem,90); pos2(stem,0); pos3(vair,-90); pos4(stem,-180); pos5(vstem,-270); pos6(vstem,-270); x1=x3=x5=.5[x2,x4]; rt x2r=hround(w-2.5u); lft x4r=hround(1.5u-.5curve);x6=w-1.5u; top y1r=h; y2=y4=.5[y1,y3]; bot y3r=-oo; y5=y6=y1; filldraw circ_stroke z6e..pulled_arc.e(5,4) & pulled_arc.e(4,3) & pulled_arc.e(3,2) & pulled_arc.e(2,1); % ear and bowl math_fit(-.3x_height#*slant+.5curve#-u#,ic#-1/3x_height#*slant); penlabels(1,2,3,4,5,6); endchar; cmchar "Lowercase Greek tau"; beginchar("t",9u#,x_height#,0); italcorr x_height#*slant+.5stem#-u#; adjust_fit(0,0); pi_stroke; % hook and bar pos4(hair,0); pos5(stem,0); x4=x5; x5-.5stem=hround(.5w-.5u-.5stem); y4=y2; y5-.5stem=-oo; filldraw circ_stroke z5e--z4e; % stem math_fit(-.7x_height#*slant+.5hair#+.5u#,-.5u#); penlabels(1,2,3,4,5); endchar; cmchar "Lowercase Greek upsilon"; beginchar("u",9u#,x_height#,0); italcorr x_height#*slant; adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); hook_in(0,1,2)(skewed); % opening hook pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); x4=.5w+u; rt x5r=hround(w-.5u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) ..tension atleast 1.05..{up}z5e; % left stem and arc v_bulb(5,6); % closing bulb math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); penlabels(0,1,2,3,4,5,6); endchar; cmchar "Lowercase Greek phi"; % The variant is preferred beginchar(oct"016",11u#,asc_height#,desc_depth#); italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; adjust_fit(0,0); pickup fine.nib; numeric light_curve; light_curve=hround(.5[stem,curve]-2stem_corr); pos1(vair,90); pos2(light_curve,180); pos3(vair,270); pos4(light_curve,360); x1=x3=.5w; lft x2r=hround(1.5u-.5light_curve); x4=w-x2; top y1=x_height+oo; y2=y4=.5[y1,y3]; bot y3=-oo; filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl pos5(hair,0); pos6(hair,0); x5=x6=.5w; top y5=h; bot y6=-d-oo; filldraw stroke z5e--z6e; % stem math_fit(-.3x_height#*slant+.5curve#-u#,ic#); penlabels(1,2,3,4,5,6); endchar; cmchar "Lowercase Greek chi"; beginchar("h",11u#,x_height#,desc_depth#); italcorr x_height#*slant+.5hair#-1.5u#; adjust_fit(0,0); pickup fine.nib; pos1(hair,180); pos2(vair,80); pos5(vair,80); pos6(hair,180); x1-.5hair=hround-.5hair; x6=w-x1; x2=w-x5=u; y1=y2l-h/8; top y2r=h+oo; bot y5l=-d-oo; y6=y5r+h/8; z0=.5[z2,z5]; z2'=z2l+(.5u,0); z5'=z5r-(.5u,0); numeric theta; theta=angle(z5'-z2')+90; pos3(stem,theta); pos4(stem,theta); y3r=y2r-h/8; y4l=y5l+h/8; z3l=whatever[z2',z0]; z4r=whatever[z0,z5']; filldraw stroke z1e{up}...z2e{right}...z3e{z4r-z3l} ..z4e{z4r-z3l}...{right}z5e...{up}z6e; % major diagonal and hooks x8=w-x7=2u; y7+.5hair=h; y8-.5hair=-d; numeric theta; theta=angle(z7-z8)-90; pos7(hair,theta); pos8(hair,theta); filldraw z7l---z8l..z8r---z7r..cycle; % minor diagonal math_fit((desc_depth#-x_height#)*slant+ic#,ic#); penlabels(0,1,2,2',3,4,5',5,6,7,8); endchar; cmchar "Lowercase Greek psi"; beginchar(oct"001",11u#,asc_height#,desc_depth#); italcorr x_height#*slant; adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); hook_in(0,1,2)(skewed); % opening hook pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); x4=.5w+u; rt x5r=hround(w-.5u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57x_height; filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) ..tension atleast 1.05..{up}z5e; % left stem and arc v_bulb(5,6); % closing bulb pos7(hair,0); pos8(hair,0); x7=x8=.5w+.5u; top y7=h; bot y8=-d-oo; filldraw stroke z7e--z8e; % stem math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); penlabels(0,1,2,3,4,5,6,7,8); endchar; cmchar "Lowercase Greek omega"; beginchar("w",11u#,x_height#,0); italcorr x_height#*slant; adjust_fit(0,0); pickup fine.nib; pos2(hair,-180); lft x2r=hround.5u; y2=y4=y6=y8=bar_height; y1+.5hair=h; x1=x2+.75u; pos1(hair,angle(2(x1-x2),y1-y2)+90); pos3(vstem+dw,-90); pos4(hair,0); pos5(vair,90); pos6(hair,180); pos7(vstem+dw,270); pos8(hair,360); bot y3r=bot y7r=-oo; top y5r=vround(.2[y4,h]+.5vair); x3=.5[x2,x4]; x7+.25u=.5[x6,x8]; rt x8r=hround(w-.5u); x5+.5stem=hround(.5w+.5stem)+eps; x5=.5[x4,x6]; rt x4r-lft x6r=min(stem,2hair)+2eps; if x4l \Psi, \Phi "H" =: oct"010", "h" =: oct"010"; ligtable "t": "h" =: oct"002"; %\tau ligtable "T": "H" =: oct"012", "h" =: oct"012"; ligtable "k": "h" =: "h"; ligtable "K": "H" =: "H", "h" =: "H"; %ligtable "r": "h" =: "r"; %ligtable "R": "H" =: "R", "h" =: "R"; % $\Rho:$ bye. % Here follow various programs which have been revised above cmchar "Lowercase Greek alpha"; beginchar("a",11u#,x_height#,0); italcorr max(1/3x_height#*slant+.5hair#+.5u#,x_height#*slant-.5u#); adjust_fit(0,0); pickup fine.nib; pos0(hair,0); pos1(vair,-90); pos2(curve,-180); pos3(vair,-270); z4=(w-3.25u,9/16h); z5=(w-2.75u,.5[vair,y4]); numeric theta; theta=angle(z4-z5)-90; pos4(stem,theta); pos5(stem,theta); pos6(vair,90); pos7(hair,180); rt x0r=hround(w-u); x1=x3=.5w-u; lft x2r=hround(1.5u-.5curve); x6=w-u; x7+.5hair=hround(w+.5hair-epsilon); top y0=vround .8[bar_height,h]; bot y1r=bot y6l=-oo; y2=.5[y1,y3]; top y3r=h+oo; y7=1/4bar_height; filldraw stroke z0e{down}...pulled_arc.e(1,2) & pulled_arc.e(2,3) ...z4e---z5e...z6e{right}...{up}z7e; % diagonal, bowl, and hook math_fit(-.3x_height#*slant+.5curve#-u#,1/3x_height#*slant+.5hair#+.5u#); penlabels(0,1,2,3,4,5,6,7); endchar; cmchar "Lowercase Greek iota"; beginchar("i",5u#,x_height#,0); italcorr 1/3x_height#*slant+.5hair#+.5u#; adjust_fit(if monospace: u#,u# else: 0,0 fi); pickup fine.nib; pos1(stem,0); lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; x2=x1-.25u; x4=w; hook_out(2,3,4)(skewed); % closing hook filldraw circ_stroke z1e{down}...{-u,-x_height}z2e; % stem math_fit(0,ic#); penlabels(1,2,3,4); endchar; cmchar "Lowercase Greek lambda"; beginchar("l",10.5u#,asc_height#,0); adjust_fit(0,0); pickup fine.nib; pos1(vair,90); lft x1=hround .1u; top y1r=h; x2=x1+2u; y2=.7[x_height,h]; x3=w-2u; bot y4=-oo; y3=max(.07h,y4+eps); z4-(.25u,0)=whatever[z2,z3]; numeric theta; theta=angle(z2-z3)-90; pos2(stem,theta); pos3(stem,theta); pos4(stem,0); filldraw circ_stroke z1e{right}...z2e---z3e ...{2(x4e-x3e),y4e-y3e}z4e; % long diagonal y5=.5[bar_height,x_height]; z5=whatever[z2,z3]; x6=1.5u; y6-.5stem=-oo; pos5(hair,theta-90); pos6(stem,angle(z5-z6)-90); filldraw circ_stroke z6e--z5e; % short diagonal penlabels(1,2,3,4,5,6); endchar; cmchar "Lowercase Greek mu"; beginchar("m",9u#,x_height#,desc_depth#); italcorr 1/3x_height#*slant+.5hair#+.5u#; adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; pos1(stem,-180); pos2(stem,-180); x1=x2=x3; lft x1r=hround(1.5u-.5stem); y1+.5stem=h+oo; y2-.5stem=-d-o; filldraw z1r---z2r..z2l---z1l..cycle; % left stem pos3(stem,-180); pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; filldraw stroke super_arc.e(3,4)...{up}z5e; % left stem and arc filldraw circ_stroke z6e--z7e; % right stem math_fit(desc_depth#*slant+.5stem#-u#,ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; cmchar "Lowercase Greek nu"; beginchar("n",8.5u#,x_height#,0); italcorr x_height#*slant+.5stem#-u#; adjust_fit(0,0); pickup fine.nib; pos3(vair,-90); pos4(stem,0); bot y3r=0; y4+.5stem=h+oo; x3-.5stem=hround(1.5u-.5stem); x4+.5stem=hround(w-1.5u+.5stem); filldraw circ_stroke z4e{down}...{-36u,-h}z3e; % diagonal pickup tiny.nib; pos1(stem,0); pos2(stem,0); top y1=h+min(oo,serif_drop); bot y2=0; x1=x2=x3; z=((z4{down}...{-36u,-h}z3)intersectionpoint((x2r,0)--(x2r,h))); filldraw z1l--z2l--z--z1r--cycle; % stem sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif math_fit(0,ic#-1/3x_height#*slant-.5u#); penlabels(1,2,3,4); endchar; cmchar "Lowercase Greek xi"; beginchar("x",9u#,asc_height#,desc_depth#); italcorr .75[x_height#,asc_height#]*slant-2u#; adjust_fit(0,0); pickup fine.nib; pos10(hair,-720); pos11(vair,-630); pos12(hair,-540); pos13(vair,-450); lft x10l=hround 1/3w; x11=x13=.5[x10,x12]; rt x12l=hround(w-2.5u); top y10=h; top y13l=bot y11l+vstem+eps=vround(y10-.25(h-x_height)); y12=.5[y11,y13]; if y11r>y13r: y11r:=y13r:=y12; fi pos0(curve,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90); numeric theta; theta=90-angle(22u,x_height); slope:=-x_height/22u; pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); lft x0l=hround u; x1=x3=x11; x2=x12; y0=.5[y13,y1]; top y3l=vround .5h=bot y1l+vstem+eps; y2=.5[y1,y3]; if y1r>y3r: y1r:=y3r:=y2; fi lft x4l=hround u; x4r-x4l=hround .5[vair,stem]-fine; x6=x7=w-2u; x8=.5w+.5u; y6=-.3d; bot y7r=-d-oo; y8=max(-3/4d-oo,y7l); ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; filldraw circ_stroke z10e{down}...z11e{right}...{up}z12e; % opening hook filldraw stroke z12e{up}...z13e{left}...z0e{down} ...z1e{right}...{up}z2e; % upper arc filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e ---z5e...{up}z4e...{right}z3e...{down}z2e; % main stroke math_fit(-.2asc_height#*slant-.5u#,0); penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13); endchar;