From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- fonts/greek/levy/README | 119 ++++++++ fonts/greek/levy/a.mf | 170 +++++++++++ fonts/greek/levy/b.mf | 83 ++++++ fonts/greek/levy/d.mf | 98 ++++++ fonts/greek/levy/digits.mf | 342 +++++++++++++++++++++ fonts/greek/levy/digits.mf-old | 343 +++++++++++++++++++++ fonts/greek/levy/e.mf | 103 +++++++ fonts/greek/levy/f.mf | 59 ++++ fonts/greek/levy/g.mf | 61 ++++ fonts/greek/levy/g.mf-old | 61 ++++ fonts/greek/levy/gen_acc.mf | 238 +++++++++++++++ fonts/greek/levy/gen_sigma.mf | 51 ++++ fonts/greek/levy/graccent.mf | 130 ++++++++ fonts/greek/levy/grbase.mf | 248 ++++++++++++++++ fonts/greek/levy/grbld10.mf | 108 +++++++ fonts/greek/levy/grbld8.mf | 108 +++++++ fonts/greek/levy/grbld9.mf | 108 +++++++ fonts/greek/levy/greek.mf | 50 ++++ fonts/greek/levy/greekhist.tex | 458 ++++++++++++++++++++++++++++ fonts/greek/levy/greekmacros.tex | 66 ++++ fonts/greek/levy/greekuse.tex | 263 ++++++++++++++++ fonts/greek/levy/grinstall.tex | 213 +++++++++++++ fonts/greek/levy/grpunct.mf | 319 ++++++++++++++++++++ fonts/greek/levy/grreg10.mf | 108 +++++++ fonts/greek/levy/grreg8.mf | 108 +++++++ fonts/greek/levy/grreg9.mf | 108 +++++++ fonts/greek/levy/grtestfont.tex | 259 ++++++++++++++++ fonts/greek/levy/grtt10.mf | 108 +++++++ fonts/greek/levy/h.mf | 175 +++++++++++ fonts/greek/levy/i.mf | 138 +++++++++ fonts/greek/levy/j.mf | 54 ++++ fonts/greek/levy/k.mf | 61 ++++ fonts/greek/levy/l.mf | 61 ++++ fonts/greek/levy/lig.mf | 105 +++++++ fonts/greek/levy/lower.mf | 49 +++ fonts/greek/levy/m.mf | 76 +++++ fonts/greek/levy/makeall | 33 ++ fonts/greek/levy/makefont | 32 ++ fonts/greek/levy/n.mf | 56 ++++ fonts/greek/levy/o.mf | 89 ++++++ fonts/greek/levy/p.mf | 55 ++++ fonts/greek/levy/q.mf | 57 ++++ fonts/greek/levy/r.mf | 74 +++++ fonts/greek/levy/s.mf | 70 +++++ fonts/greek/levy/slgreek.sty | 145 +++++++++ fonts/greek/levy/t.mf | 51 ++++ fonts/greek/levy/testfont | 40 +++ fonts/greek/levy/u.mf | 130 ++++++++ fonts/greek/levy/upper.mf | 628 +++++++++++++++++++++++++++++++++++++++ fonts/greek/levy/w.mf | 170 +++++++++++ fonts/greek/levy/x.mf | 63 ++++ fonts/greek/levy/y.mf | 60 ++++ fonts/greek/levy/z.mf | 57 ++++ 53 files changed, 7019 insertions(+) create mode 100644 fonts/greek/levy/README create mode 100644 fonts/greek/levy/a.mf create mode 100644 fonts/greek/levy/b.mf create mode 100644 fonts/greek/levy/d.mf create mode 100644 fonts/greek/levy/digits.mf create mode 100644 fonts/greek/levy/digits.mf-old create mode 100644 fonts/greek/levy/e.mf create mode 100644 fonts/greek/levy/f.mf create mode 100644 fonts/greek/levy/g.mf create mode 100644 fonts/greek/levy/g.mf-old create mode 100644 fonts/greek/levy/gen_acc.mf create mode 100644 fonts/greek/levy/gen_sigma.mf create mode 100644 fonts/greek/levy/graccent.mf create mode 100644 fonts/greek/levy/grbase.mf create mode 100644 fonts/greek/levy/grbld10.mf create mode 100644 fonts/greek/levy/grbld8.mf create mode 100644 fonts/greek/levy/grbld9.mf create mode 100644 fonts/greek/levy/greek.mf create mode 100644 fonts/greek/levy/greekhist.tex create mode 100644 fonts/greek/levy/greekmacros.tex create mode 100644 fonts/greek/levy/greekuse.tex create mode 100644 fonts/greek/levy/grinstall.tex create mode 100644 fonts/greek/levy/grpunct.mf create mode 100644 fonts/greek/levy/grreg10.mf create mode 100644 fonts/greek/levy/grreg8.mf create mode 100644 fonts/greek/levy/grreg9.mf create mode 100644 fonts/greek/levy/grtestfont.tex create mode 100644 fonts/greek/levy/grtt10.mf create mode 100644 fonts/greek/levy/h.mf create mode 100644 fonts/greek/levy/i.mf create mode 100644 fonts/greek/levy/j.mf create mode 100644 fonts/greek/levy/k.mf create mode 100644 fonts/greek/levy/l.mf create mode 100644 fonts/greek/levy/lig.mf create mode 100644 fonts/greek/levy/lower.mf create mode 100644 fonts/greek/levy/m.mf create mode 100644 fonts/greek/levy/makeall create mode 100644 fonts/greek/levy/makefont create mode 100644 fonts/greek/levy/n.mf create mode 100644 fonts/greek/levy/o.mf create mode 100644 fonts/greek/levy/p.mf create mode 100644 fonts/greek/levy/q.mf create mode 100644 fonts/greek/levy/r.mf create mode 100644 fonts/greek/levy/s.mf create mode 100644 fonts/greek/levy/slgreek.sty create mode 100644 fonts/greek/levy/t.mf create mode 100644 fonts/greek/levy/testfont create mode 100644 fonts/greek/levy/u.mf create mode 100644 fonts/greek/levy/upper.mf create mode 100644 fonts/greek/levy/w.mf create mode 100644 fonts/greek/levy/x.mf create mode 100644 fonts/greek/levy/y.mf create mode 100644 fonts/greek/levy/z.mf (limited to 'fonts/greek/levy') diff --git a/fonts/greek/levy/README b/fonts/greek/levy/README new file mode 100644 index 0000000000..1b2ff40701 --- /dev/null +++ b/fonts/greek/levy/README @@ -0,0 +1,119 @@ + Copyright (C) 1991 Silvio Levy + + This file is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This file is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +(The fonts are released under GPLv2+ with the FSF font exception. +Each file contains the applicable license text.) + +This directory contains materials for using TeX to typeset Greek text +using Silvio Levy's fonts, which are partly based on Don Knuth's +Computer Modern family of fonts. They are distributed WITHOUT ANY +WARRANTY, express or implied. Please send comments, suggestions, etc. to +levy (at) msri (dot) org. The following files are present: + +README This file. +a.mf MF code for alpha-based characters +b.mf MF code for beta-based characters +d.mf MF code for delta-based characters +digits.mf MF code for numerals +e.mf MF code for epsilon-based characters +f.mf MF code for phi-based characters +g.mf MF code for gamma-based characters +gen_acc.mf MF code for accents +gen_sigma.mf MF code for sigma compounds +graccent.mf MF code for accents +grbase.mf MF code for base Greek macros +grbld8.mf Parameter file for 8pt Bold +grbld9.mf Parameter file for 9pt Bold +grbld10.mf Parameter file for 10pt Bold +greek.mf Driver file for Greek font +greekhist.tex History of Greek typesetting and info on these fonts +greekmacros.tex Macros to use Greek fonts. +greekuse.tex Instructions on using the fonts. +grinstall.tex Instructions on installing the fonts. +grpunct.mf MF code for punctuation +grreg8.mf Parameter file for 8pt "Roman" +grreg9.mf Parameter file for 9pt "Roman" +grreg10.mf Parameter file for 10pt "Roman" +grtestfont.tex Testing TeX file for Greek (analogous to testfont.tex) +grtt10.mf Parameter file for 10pt Typewriter +h.mf MF code for eta-based characters +i.mf MF code for iota-based characters +j.mf MF code for theta-based characters +k.mf MF code for kappa-based characters +l.mf MF code for lambda-based characters +lig.mf MF code for ligatures +lower.mf Driver file for lower case Greek letters +m.mf MF code for mu-based characters +makeall Shell script to make all fonts +makefont Shell script to generate a font. +modes.mf Mode definitions +n.mf MF code for nu-based characters +o.mf MF code for omicron-based characters +p.mf MF code for pi-based characters +q.mf MF code for chi-based characters +r.mf MF code for rho-based characters +s.mf MF code for sigma-based characters +t.mf MF code for tau-based characters +testfont Shell script to test fonts. +todo.txt List of improvements to be made to the fonts. +u.mf MF code for upsilon-based characters. +upper.mf MF code for upper case characters +w.mf MF code for omega-based characters +x.mf MF code for xi-based characters +y.mf MF code for psi-based characters +z.mf MF code for zeta-based characters + + +IMPORTANT NOTE: + +These fonts make use of the 256-character capabilities of gf +format. They cannot be converted to the obsolete PXL format which +allows only 128 characters. If you are still using PXL format +drivers, it is time to convert. If you are using a gf format +driver with only 128 character capacity, you are missing +something. See doc/install.tex. + +Metafont must have |max_in_open| increased (to 10) to compile +these fonts as they stand. The appropriate change has been added +to the change files on the UnixTeX distribution. If you're +getting these fonts other than from the TeX distribution, and if +you don't have access to Metafont source, you'll have to merge +some files before you attempt compilation: + + In src/s.mf, replace the line readfrom("gen_sigma") by the + contents of src/gen_sigma.mf. + In src/lower.mf, replace each line by the contents of the + corresponding file; for instance, replace readfrom("a") by + the contents of src/a.mf. + In greek.mf, right after the line that says ``font_setup'' + insert the lines + + readfrom("gen_acc"); + readfrom("gen_sigma"); + +HMC: +At HMC a couple of modifications have been made to the MF files: + + The definition of readfrom has been changed so that no + directory information is present. + accent.mf has been renamed graccent.mf and punct.mf has been + renamed grpunct.mf to prevent conflicts with CM files. + + TODO: +create digamma +add kerning, especially between accents and capitals +create more typefaces (italics?) +complete hyphenation table +create tick marks for numbers diff --git a/fonts/greek/levy/a.mf b/fonts/greek/levy/a.mf new file mode 100644 index 0000000000..56c5fb425a --- /dev/null +++ b/fonts/greek/levy/a.mf @@ -0,0 +1,170 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 9u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,.5u# enddef; + +def gen_letter = + pickup fine.nib; + pos1(stem,0); top y1=x_height+oo; rt x1r=hround(w-.5u); %top right + pos2(vstem,-90); pos4(vstem,-270); x4=x2=.5w-u; + bot y2r=-oo; top y4r=x_height+oo; %bottom and top bulges + pos3(hair,-180); lft x3r=hround .75u; y3=.5[y2,y4]; %left bulge + pos6(vstem,90); x6=w-u; y6=y2; %bottom right + numeric theta; theta=angle((x4-x6),2.5(y4-y6))-90; + pos5(hair,theta); x5=.55[x4,x6]; y5=y3; %point of inflection + alpha_tail(6,7); %hook + filldraw stroke z1e{(x2-x1,2(y2-y1))}... %diagonal + pulled_arc.e(2,3) & pulled_arc.e(3,4) %bowl + ...z5e{(x6-x4,2.5(y6-y4))}...z6e{right}...{up}z7e; %diagonal and hook + numeric x_baryctr; x_baryctr=.25[x4,x1]; %accent reference + numeric pos_stem; pos_stem=x_baryctr; %iota reference +enddef; + +cmchar "Lowercase alpha"; +beginchar("a",dims); +this_letter; penlabels(1,2,3,4,5,6,7); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase alpha with grave"; +beginchar(oct"200",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase alpha with rough breathing"; +beginchar(oct"201",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing"; +beginchar(oct"202",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by alpha with grave"; +begindoublechar(oct"203",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase alpha with grave and iota subscript"; +beginchar(oct"204",width#,acc_ht#,iota_dp#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing and iota subscript"; +beginchar(oct"205",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and iota subscript"; +beginchar(oct"206",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by alpha with iota subscript"; +begindoublechar(oct"207",dim_sigma); +mid_sigma; +middoublechar(width#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with acute"; +beginchar(oct"210",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase alpha with rough breathing and acute"; +beginchar(oct"211",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing and acute"; +beginchar(oct"212",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by alpha with acute"; +begindoublechar(oct"213",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase alpha with acute and iota subscript"; +beginchar(oct"214",width#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, acute and iota subscript"; +beginchar(oct"215",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing and acute and iota subscript"; +beginchar(oct"216",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by alpha with acute and iota subscript"; +begindoublechar(oct"217",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with circumflex"; +beginchar(oct"220",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase alpha with rough breathing and circumflex"; +beginchar(oct"221",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase alpha with smooth breathing and circumflex"; +beginchar(oct"222",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by alpha with circumflex"; +begindoublechar(oct"223",dim_sigma); +mid_sigma; middoublechar(width#,Circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase alpha with circumflex and iota subscript"; +beginchar(oct"224",width#,circ_ht#,iota_dp#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with rough breathing, circumflex and iota subscript"; +beginchar(oct"225",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with smooth breathing, circumflex and iota subscript"; +beginchar(oct"226",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by alpha with circumflex and iota subscript"; +begindoublechar(oct"227",dim_sigma); +mid_sigma; middoublechar(width#,Circ_ht#,0); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase alpha with iota subscript"; +beginchar(oct"370",width#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by alpha"; +begindoublechar(oct"001",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture pic.iota; +picture savedpicture; diff --git a/fonts/greek/levy/b.mf b/fonts/greek/levy/b.mf new file mode 100644 index 0000000000..fd1ee66c74 --- /dev/null +++ b/fonts/greek/levy/b.mf @@ -0,0 +1,83 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 9u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + numeric thin_stem; thin_stem=.6[hair,stem]; %for upper bowl + numeric tilt; tilt=min(2*otilt,.5); %for both bowls + pos1(stem,180); y1-.5stem=-d-o; %bottom left + pos2(hair,180); y2=.5bar_height; %self-intersection (cf. z15) + x1=x2; lft x1r=hround(.75u+.5(hair-stem)); %i.e., lft x2r ~ .75u + x3r=x2r; %beginning of curve + top y5r=h+oo; bot y14r=-oo; x5r=x14r; %top and bottom bulges + top y10r=vstem+bot y9r=x_height; x9r=x10r; %top and bottom of cusp + rt x12r=hround(w-.75u); %lower right bulge + x5r=.5[lft x2r,rt x12r]; x9r-.5vstem=hround(x5r-.5u-.5vstem); + % we want to simulate the following relations, to make slopes consistent + % (where z7 is the upper right bulge): + % z5r-z3r=whatever*(z9r-z7r)=whatever*(z14r-z12r); + % z7r-z5r=whatever*(z12r-z10r)=whatever*(z5r-z3r) yscaled -1; + numeric slope; + slope=((y10r-y12r)+(y12r-y14r))/((x12r-x10r)+(x12r-x14r)); + z7'r=z9r+whatever*(1,slope); z7'r=z5r+whatever*(1,-slope); + y7r=y7'r; rt x7r=hround rt x7'r; + z12r=z14r+whatever*(1,slope); z3r=z5r+whatever*(1,slope); + filldraw double_circ_stroke gr_arc.e(7,6,5)(hair,thin_stem,tilt).. + gr_arc.e(5,4,3)(hair,thin_stem,tilt)..{down}z2e..z1e; %top and left + z2=z15; pos15(hair,slope-90); %intersection pt + numeric slope; + slope=angle((z14r-z15)yscaled 2); + filldraw stroke z15e{dir slope}...gr_arc.e(14,13,12)(hair,stem,tilt); %bottom + forsuffixes e=r,l: + path curv[]e; numeric S[]e; + curv1e=reverse gr_arc.e(9,8,7)(hair,thin_stem,tilt); %cusp bottom + curv2e=gr_arc.e(12,11,10)(hair,stem,tilt); endfor %cusp top + (S1r,S2r)=curv1r intersectiontimes curv2r; + (whatever,S2l)=curv1r intersectiontimes curv2l; + (S1l,whatever)=curv1l intersectiontimes curv2r; + if S1l=-1 : S1l:=2; fi + if S2l=-1 : S2l:=2; fi + filldraw stroke subpath(0,S1e+eps) of curv1e; %fill in cusp + filldraw stroke subpath(0,S2e+eps) of curv2e; + filldraw subpath (S1r+eps,2) of curv1r...subpath(2,S2r+eps) of curv2r..cycle; +enddef; + +cmchar "Lowercase beta"; +beginchar("b",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by beta"; +begindoublechar(oct"002",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/d.mf b/fonts/greek/levy/d.mf new file mode 100644 index 0000000000..429ead49c5 --- /dev/null +++ b/fonts/greek/levy/d.mf @@ -0,0 +1,98 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma: readfrom("gen_sigma") fi + +def dims = 8.5u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + top y1r=vround(if not monowidth:.95 fi x_height+oo); x1r=.5w; %top of loop + x5r=.5w; bot y5r=-oo; %bottom of ditto + lft x3r=w-rt x7r=hround(.75u); y3r=y7r=.5[y1r,y5r]; %left and right bulge + filldraw stroke gr_arc.e(1,2,3)(vair,stem,.5otilt) %three quadrants of loop + & gr_arc.e(3,4,5)(vair,stem,.5otilt) & gr_arc.e(5,6,7)(vair,stem,.5otilt); + + %we now draw the hook z8..z9..z10. It must satisfy the following constraints: + %its outer contour is symmetric with respect to some axis containing z9l; + %one end is known, the width there is thin_stem, and the width at z10 + %is, ideally, stem. (But since we may have to change that we call it Stem.) + z8l=z1l; numeric thin_stem, med_stem; thin_stem=.7[hair,Stem]; + %the aperture, measured perpendicular to the axis, equals Stem + numeric apert; apert=2Stem+thin_stem-currentbreadth; %apert=length(z10l-z8l); + numeric left_goal; lft left_goal=vround(lft x3r+.5u); %leftmost tangent known + numeric top_goal; top top_goal=h+oo; %highest tangent known + + %if by taking Stem=stem we got apert > top_goal-y1l, the problem might + %not have a solution with a horizontal tangent; in that case the + %constraint is on apert: + if 2stem+.7[hair,stem]-currentbreadth>top_goal-y8l: apert=top_goal-y8l; + else: Stem=stem; fi + + %we first estimate the slope of the axis by imagining that, in the vicinity + %of z9l, the hook looks like a semicircle of diameter apert/2. + %(this value is empiric, but reasonable because the tension is high) + z0l=(left_goal+.25apert,top_goal-.25apert); %center of semicircle + numeric axis; axis=angle(z0l-z8l)+angle(length(z0l-z8l)+-+.5apert,.5apert); + z9l=z0l+(.25apert,0)rotated(axis); z10l=z8l+(0,-apert)rotated(axis); + + %we now iterate, correcting z9l until the tangencies are satisfied + path hook; numeric left_real; numeric top_real; + forever: + + hook:=z8l{dir(axis)}..tension 1.5..z9l..tension 1.5..{-dir(axis)}z10l; + if directiontime up of hook=-1: + left_error:=0; message "hook has no vertical tangent!"; + else: left_error:=xpart directionpoint up of hook-left_goal; fi + if directiontime right of hook=-1: + top_error:=0; message "hook has no horizontal tangent!"; + else: top_error:=ypart directionpoint right of hook-top_goal; fi + +%message "top_error:"; show top_error; message "left_error:"; show left_error; + + exitif (abs(left_error)<.05) and (abs(top_error)<.05); + x9l:=x9l-left_error; y9l:=y9l-top_error; + axis:=angle(z9l-z8l)+angle(length(z9l-z8l)+-+.5apert,.5apert); + x10l:=x8l+apert*sind axis; y10l:=y8l-apert*cosd axis; + endfor + + pos8(thin_stem,axis-90); pos10(Stem,axis+90); pos9(.3[hair,Stem],axis+180); + filldraw stroke + z7e{z7'e}..{dir axis}z8e..tension 1.5..z9e..tension 1.5..{-dir axis}z10e; +enddef; + +cmchar "Lowercase delta"; +beginchar("d",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by delta"; +begindoublechar(oct"004",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/digits.mf b/fonts/greek/levy/digits.mf new file mode 100644 index 0000000000..0f404531c2 --- /dev/null +++ b/fonts/greek/levy/digits.mf @@ -0,0 +1,342 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% This file is the same as Computer Modern's romand.mf. +% It contains the ten digits in so-called roman style. +% Character codes \0060 through \0071 are generated. + +% All digits have the same height, width, depth, and italic correction. + +cmchar "The numeral 0"; +beginchar("0",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +penpos1(vair,90); penpos3(vair,-90); penpos2(curve,180); penpos4(curve,0); +if not monospace: interim superness:=sqrt(more_super*hein_super); fi +x2r=hround max(.7u,1.45u-.5curve); x4r=w-x2r; x1=x3=.5w; +y1r=h+o; y3r=-o; 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 "The numeral 1"; +beginchar("1",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_stem; light_stem=hround .4[stem',cap_stem']; +pickup tiny.nib; +pos1(light_stem,0); pos2(light_stem,0); +lft x1l=lft x2l=hround(.5(w+.5u)-.5cap_stem'); top y1=h+o; bot y2=0; +filldraw stroke z1e--z2e; % stem +if not serifs: save slab; slab=bar; fi +dish_serif(2,1,a,1/3,min(2.25u,lft x2l-1.5u), + b,1/3,min(2.25u,w-1.25u-rt x2r)); % serif +pickup crisp.nib; pos3(slab,-90); pos4(bar,-90); +top y3l=h+o; top y4l=if monospace: .8 else: .9 fi\\ h+o; +lft x4=max(1.25u,tiny.lft x1l-2.35u); +tiny.rt x1r=lft x3+.25[tiny,hair]; +erase fill z3l{x4l-x3l,3(y4l-y3l)}...z4l{left} + --(x4l,h+o+1)--(x3l,h+o+1)--cycle; % erase excess at top +filldraw stroke z3e{x4e-x3e,3(y4e-y3e)}..z4e{left}; % point +penlabels(1,2,3,4); endchar; + +cmchar "The numeral 2"; +beginchar("2",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric arm_thickness, hair_vair; hair_vair=.25[vair,hair]; +arm_thickness=Vround(if hefty:slab+2stem_corr else:.4[stem,cap_stem] fi); +pickup crisp.nib; pos7(arm_thickness,-90); pos8(hair,0); +bot y7r=0; lft x7=hround .9u; rt x8r=hround(w-.9u); y8=good.y(y7l+beak/2)+eps; +arm(7,8,a,.3beak_darkness,beak_jut); % arm and beak +pickup fine.nib; pos2(slab,90); pos3(.4[curve,cap_curve],0); +top y2r=h+o; x2=.5(w-.5u); rt x3r=hround(w-.9u); y3+.5vair=.75h; +if serifs: numeric bulb_diam; bulb_diam=hround(flare+2/3(cap_stem-stem)); + pos0(bulb_diam,180); pos1(cap_hair,180); + lft x1r=hround .9u; y1-.5bulb_diam=2/3h; + (x,y2l)=whatever[z1l,z2r]; x2l:=x; bulb(2,1,0); % bulb and arc +else: x2l:=x2l-.25u; pos1(flare,angle(-9u,h)); + lft x1r=hround .75u; bot y1l=vround .7h; y1r:=good.y y1r; x1l:=good.x x1l; + filldraw stroke term.e(2,1,left,.9,4); fi % terminal and arc +pos4(.25[hair_vair,cap_stem],0); +pos5(hair_vair,0); pos6(hair_vair,0); +y5=arm_thickness; y4=.3[y5,y3]; top y6=min(y5,slab,top y7l); +lft x6l=crisp.lft x7; z4l=whatever[z6l,(x3l,bot .58h)]; z5l=whatever[z6l,z4l]; +erase fill z4l--z6l--lft z6l--(lft x6l,y4l)--cycle; % erase excess at left +filldraw stroke z2e{right}..tension atleast .9 and atleast 1 + ..z3e{down}.. z4e---z5e--z6e; % stroke +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The numeral 3"; +beginchar("3",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric top_thickness,mid_thickness,bot_thickness; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +mid_thickness=max(fine.breadth,vround 2/3vair); +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +pickup fine.nib; pos2(top_thickness,90); top y2r=h+o; +pos3(max(fine.breadth,.6[curve,cap_curve]-stem_corr),0); +rt x3r=hround(w-1.25u); +pos4(vair,-90); pos5(vair,-90); +pos6(mid_thickness,90); x2=x6=x8=.5[1.5u,x7]; +pos7(cap_curve,0); rt x7r=hround(w-.75u); lft x5=min(hround 3u,lft x6)-eps; +pos8(bot_thickness,-90); bot y8r=-o; +y3=.6[top y4l,bot y2l]; y7=.5[bot y6l,top y8l]; +top y5l=vround(.54h+.5vair); y5r=y6l; +x4=1/3[x5,x3l]; z4=z5+whatever*(150u,h); +filldraw stroke pulled_super_arc.e(2,3)(.5superpull) + & z3e{down}...z4e---z5e; % upper bowl +filldraw z5r--z6l--z6r--z5l---cycle; % middle tip +filldraw stroke pulled_super_arc.e(6,7)(.5superpull) + & pulled_super_arc.e(7,8)(.5superpull); % lower bowl +if serifs: numeric bulb_diam[]; + bulb_diam1=flare+.5(cap_stem-stem); bulb_diam2=flare+cap_stem-stem; + pos0(bulb_diam1,180); pos1(hair,180); + lft x0r=hround 1.25u; y0=min(.9h-.5bulb_diam1,.75h+.5bulb_diam1); + bulb(2,1,0); % upper bulb + pos10(bulb_diam2,-180); pos9(cap_hair,-180); + lft x10r=hround .75u; y10=max(.1h+.5bulb_diam2,.3h-.5bulb_diam2); + bulb(8,9,10); % lower bulb +else: pos1(.5[vair,flare],angle(-8u,h)); + lft x1r=hround u; bot y1l=vround .75h+o; + y1r:=good.y y1r+eps; x1l:=good.x x1l; + pos9(bot_thickness,angle(-2u,-h)); + lft x9r=hround .75u; top y9l=vround .25h-o; + y9r:=good.y y9r-eps; x9l:=good.x x9l; + filldraw stroke term.e(2,1,left,1,4); % upper terminal + filldraw stroke term.e(8,9,left,1,4); fi % lower terminal +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar "The numeral 4"; +beginchar("4",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_stem, light_stem', diag_stem, alpha, cut; cut=.75notch_cut; +light_stem=hround .4[fudged.stem,fudged.cap_stem]; +light_stem'=hround max(tiny.breadth,light_stem-2stem_corr); +diag_stem=max(tiny.breadth,.4[vair,fudged.hair]); +pickup crisp.nib; pos5(cap_bar,90); pos6(cap_bar,90); +lft x5=hround .5u; rt x6=hround(w-.5u); +top y5r=vround(if serifs: 5/18[slab,h-light_stem]+1 + else:.35(h-light_stem) fi+.5cap_bar); +z4l=top lft z5r; y2=y2'=y5=y6; x1r=x2r=hround(w-3u+.5light_stem); +penpos1(light_stem',0); penpos2(light_stem',0); y1=y3=h+apex_o+apex_oo; +x3r+apex_corr=x1r; alpha=diag_ratio(1,diag_stem,y3-y4l,x3r-x4l); +penpos3(alpha*diag_stem,0); penpos4(alpha*diag_stem,0); +x0=x1l; z0=whatever[z3r,z4r]; +x5'=x5; z5''=z5'+penoffset z4-z3 of currentpen=whatever[z4l,z3l]; +fill diag_end(2r,1r,1,.5,3l,4l)---z5''...lft z5' + ---lft z5l -- (x4r,y5l) -- z4r + if y0. +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% This file is the same as Computer Modern's romand.mf. +% It contains the ten digits in so-called roman style. +% Character codes \0060 through \0071 are generated. + +% All digits have the same height, width, depth, and italic correction. + +cmchar "The numeral 0"; +beginchar("0",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +penpos1(vair,90); penpos3(vair,-90); penpos2(curve,180); penpos4(curve,0); +if not monospace: interim superness:=sqrt(more_super*hein_super); fi +x2r=hround max(.7u,1.45u-.5curve); x4r=w-x2r; x1=x3=.5w; +y1r=h+o; y3r=-o; 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 "The numeral 1"; +beginchar("1",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_stem; light_stem=hround .4[stem',cap_stem']; +if light_stem <= tiny: light_stem:=tiny+eps; fi +pickup tiny.nib; +pos1(light_stem,0); pos2(light_stem,0); +lft x1l=lft x2l=hround(.5(w+.5u)-.5cap_stem'); top y1=h+o; bot y2=0; +filldraw stroke z1e--z2e; % stem +if not serifs: save slab; slab=bar; fi +dish_serif(2,1,a,1/3,min(2.25u,lft x2l-1.5u), + b,1/3,min(2.25u,w-1.25u-rt x2r)); % serif +pickup crisp.nib; pos3(slab,-90); pos4(bar,-90); +top y3l=h+o; top y4l=if monospace: .8 else: .9 fi\\ h+o; +lft x4=max(1.25u,tiny.lft x1l-2.35u); +tiny.rt x1r=lft x3+.25[tiny,hair]; +erase fill z3l{x4l-x3l,3(y4l-y3l)}...z4l{left} + --(x4l,h+o+1)--(x3l,h+o+1)--cycle; % erase excess at top +filldraw stroke z3e{x4e-x3e,3(y4e-y3e)}..z4e{left}; % point +penlabels(1,2,3,4); endchar; + +cmchar "The numeral 2"; +beginchar("2",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric arm_thickness, hair_vair; hair_vair=.25[vair,hair]; +arm_thickness=Vround(if hefty:slab+2stem_corr else:.4[stem,cap_stem] fi); +pickup crisp.nib; pos7(arm_thickness,-90); pos8(hair,0); +bot y7r=0; lft x7=hround .9u; rt x8r=hround(w-.9u); y8=good.y(y7l+beak/2)+eps; +arm(7,8,a,.3beak_darkness,beak_jut); % arm and beak +pickup fine.nib; pos2(slab,90); pos3(.4[curve,cap_curve],0); +top y2r=h+o; x2=.5(w-.5u); rt x3r=hround(w-.9u); y3+.5vair=.75h; +if serifs: numeric bulb_diam; bulb_diam=hround(flare+2/3(cap_stem-stem)); + pos0(bulb_diam,180); pos1(cap_hair,180); + lft x1r=hround .9u; y1-.5bulb_diam=2/3h; + (x,y2l)=whatever[z1l,z2r]; x2l:=x; bulb(2,1,0); % bulb and arc +else: x2l:=x2l-.25u; pos1(flare,angle(-9u,h)); + lft x1r=hround .75u; bot y1l=vround .7h; y1r:=good.y y1r; x1l:=good.x x1l; + filldraw stroke term.e(2,1,left,.9,4); fi % terminal and arc +pos4(.25[hair_vair,cap_stem],0); +pos5(hair_vair,0); pos6(hair_vair,0); +y5=arm_thickness; y4=.3[y5,y3]; top y6=min(y5,slab,top y7l); +lft x6l=crisp.lft x7; z4l=whatever[z6l,(x3l,bot .58h)]; z5l=whatever[z6l,z4l]; +erase fill z4l--z6l--lft z6l--(lft x6l,y4l)--cycle; % erase excess at left +filldraw stroke z2e{right}..tension atleast .9 and atleast 1 + ..z3e{down}.. z4e---z5e--z6e; % stroke +penlabels(0,1,2,3,4,5,6,7,8); endchar; + +cmchar "The numeral 3"; +beginchar("3",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric top_thickness,mid_thickness,bot_thickness; +top_thickness=max(fine.breadth,vround(slab-2vair_corr)); +mid_thickness=max(fine.breadth,vround 2/3vair); +bot_thickness=max(fine.breadth,vround(slab-vair_corr)); +pickup fine.nib; pos2(top_thickness,90); top y2r=h+o; +pos3(max(fine.breadth,.6[curve,cap_curve]-stem_corr),0); +rt x3r=hround(w-1.25u); +pos4(vair,-90); pos5(vair,-90); +pos6(mid_thickness,90); x2=x6=x8=.5[1.5u,x7]; +pos7(cap_curve,0); rt x7r=hround(w-.75u); lft x5=min(hround 3u,lft x6)-eps; +pos8(bot_thickness,-90); bot y8r=-o; +y3=.6[top y4l,bot y2l]; y7=.5[bot y6l,top y8l]; +top y5l=vround(.54h+.5vair); y5r=y6l; +x4=1/3[x5,x3l]; z4=z5+whatever*(150u,h); +filldraw stroke pulled_super_arc.e(2,3)(.5superpull) + & z3e{down}...z4e---z5e; % upper bowl +filldraw z5r--z6l--z6r--z5l---cycle; % middle tip +filldraw stroke pulled_super_arc.e(6,7)(.5superpull) + & pulled_super_arc.e(7,8)(.5superpull); % lower bowl +if serifs: numeric bulb_diam[]; + bulb_diam1=flare+.5(cap_stem-stem); bulb_diam2=flare+cap_stem-stem; + pos0(bulb_diam1,180); pos1(hair,180); + lft x0r=hround 1.25u; y0=min(.9h-.5bulb_diam1,.75h+.5bulb_diam1); + bulb(2,1,0); % upper bulb + pos10(bulb_diam2,-180); pos9(cap_hair,-180); + lft x10r=hround .75u; y10=max(.1h+.5bulb_diam2,.3h-.5bulb_diam2); + bulb(8,9,10); % lower bulb +else: pos1(.5[vair,flare],angle(-8u,h)); + lft x1r=hround u; bot y1l=vround .75h+o; + y1r:=good.y y1r+eps; x1l:=good.x x1l; + pos9(bot_thickness,angle(-2u,-h)); + lft x9r=hround .75u; top y9l=vround .25h-o; + y9r:=good.y y9r-eps; x9l:=good.x x9l; + filldraw stroke term.e(2,1,left,1,4); % upper terminal + filldraw stroke term.e(8,9,left,1,4); fi % lower terminal +penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; + +cmchar "The numeral 4"; +beginchar("4",9u#,fig_height#,0); +italcorr fig_height#*slant-.5u#; +adjust_fit(0,0); +numeric light_stem, light_stem', diag_stem, alpha, cut; cut=.75notch_cut; +light_stem=hround .4[fudged.stem,fudged.cap_stem]; +light_stem'=hround max(tiny.breadth,light_stem-2stem_corr); +diag_stem=max(tiny.breadth,.4[vair,fudged.hair]); +pickup crisp.nib; pos5(cap_bar,90); pos6(cap_bar,90); +lft x5=hround .5u; rt x6=hround(w-.5u); +top y5r=vround(if serifs: 5/18[slab,h-light_stem]+1 + else:.35(h-light_stem) fi+.5cap_bar); +z4l=top lft z5r; y2=y2'=y5=y6; x1r=x2r=hround(w-3u+.5light_stem); +penpos1(light_stem',0); penpos2(light_stem',0); y1=y3=h+apex_o+apex_oo; +x3r+apex_corr=x1r; alpha=diag_ratio(1,diag_stem,y3-y4l,x3r-x4l); +penpos3(alpha*diag_stem,0); penpos4(alpha*diag_stem,0); +x0=x1l; z0=whatever[z3r,z4r]; +x5'=x5; z5''=z5'+penoffset z4-z3 of currentpen=whatever[z4l,z3l]; +fill diag_end(2r,1r,1,.5,3l,4l)---z5''...lft z5' + ---lft z5l -- (x4r,y5l) -- z4r + if y0. +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 7.75u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + pos2(vstem,90); x2=.5w; top y2r=x_height+o; %top point + pos7(vstem,630); x2=x7; bot y7r=-o; %bottom point + rt x1r=hround(w-.75u); bot y1l=.3[bot y2l,bar_height]; %top end + z1'=(x1r,y1l+.5(flare-currentbreadth)); %approximation to z1 + numeric slope; slope=angle((z2-z1')yscaled 2); pos1(flare,slope-90); + bar_height=.5[y1,y8]; x8=x1; pos8(flare,slope+90); %bottom end + pos3(vstem,120); lft x3r=hround .75u; y3=.5[y4r,y2r]; %top left bulge + pos6(vstem,600); x6=x3; y6=.5[y5r,y7r]; %bottom left bulge + y6:=y6r;y3:=y3r; %for the benefit of pulled_arc + top y5r-bot y4r=curve; y5+y4=2bar_height; x5=x4=x2; %loop + pos4(vair,-90); pos5(vair,90); + filldraw stroke z1e{dir slope}...pulled_arc.e(2,3); %top + drawloop(3,4,5,6); %loop and bottom + forsuffixes e=l,r: + path foo.e; foo.e= z8e...pulled_arc.e(7,6); + if angle(direction 0 of foo.e) > angle(z8r-z8l): + foo.e:= z8e{z8r-z8l}...pulled_arc.e(7,6); fi + endfor; + filldraw stroke foo.e; + numeric x_baryctr; x_baryctr=x2; %accent reference +enddef; + +cmchar "Lowercase epsilon"; +beginchar("e",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase epsilon with grave"; +beginchar(oct"340",width#,acc_ht#,0); this_letter; grave(x_baryctr); +endchar; + +cmchar "Lowercase epsilon with rough breathing"; +beginchar(oct"341",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing"; +beginchar(oct"342",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by epsilon with grave"; +begindoublechar(oct"343",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase epsilon with acute"; +beginchar(oct"350",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase epsilon with rough breathing and acute"; +beginchar(oct"351",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase epsilon with smooth breathing and acute"; +beginchar(oct"352",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by epsilon with acute"; +begindoublechar(oct"353",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase sigma followed by epsilon"; +begindoublechar(oct"005",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/f.mf b/fonts/greek/levy/f.mf new file mode 100644 index 0000000000..6033464731 --- /dev/null +++ b/fonts/greek/levy/f.mf @@ -0,0 +1,59 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 10.5u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x4r=w-rt x8r=hround .75u; y4r=y8r=.5h; + x6r=.5[x4r,x8r]; bot y6r=-oo; + numeric tilt; tilt:=min(2*otilt,.5); + filldraw stroke gr_arc.e(6,7,8)(vair,stem,tilt) ; + filldraw stroke gr_arc.e(4,5,6)(vair,.4[vair,stem],tilt) ; + y2+.5stem=h+o; x2+.5stem=hround(x6-1.5u); + pos2(stem,angle((z2-z4)xscaled 2)+90); + filldraw circ_stroke z2e...{z4'e}z4e; + pos10(stem,180); pos11(hair,180); + y10-.5stem=-d-o; y11=.25h; x10=x11=x6; + x9r=.5[x10r,x8r]; top y9r=h+o; + filldraw stroke gr_arc.e(8,20,9)(vair,.4[vair,stem],.5tilt); + filldraw circ_stroke z10e..z11e{up}..{-z9'e}z9e; +enddef; + +cmchar "Lowercase phi"; +beginchar("f",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10,11,12,20,21); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by phi"; +begindoublechar(oct"006",dims); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/g.mf b/fonts/greek/levy/g.mf new file mode 100644 index 0000000000..a3f694fc4c --- /dev/null +++ b/fonts/greek/levy/g.mf @@ -0,0 +1,61 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 10u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + begingroup + save t; t:=superness; save superness; superness:=.95t; + pos2(curve,90); top y2r=h+oo; %top of left branch + pos1(hair,180); bot y1=top y2r-4/3curve; %tip of hook + lft x1r=hround .5u; x2-x1=y2-y1; %central arc is round + pos3(hair,0); pos4(hair,-180); rt x3r-lft x4r=stem; %bottom of cusp + y4=y3; .5[x3,x4]=.5w; if monowidth: y3=0 else: y3-.5stem=vround(-.8d) fi; + pos5(curve,-270); top y5r=h+oo; x5+.5curve=hround(w-.75u); %right branch + pos5'(curve,0); z5'=z5; + filldraw stroke z1e{up}...z2e{right}; drawloop(2,3,4,5); %hook and cusp + filldraw z5l{right}...z5'r{up}...z5r{left}--cycle; %right branch + if monowidth: %complete stem + x3'=x3r; x4'=x4r; y3'=y4'; y3'-.5stem=vround(-.8d); + filldraw z3r--z3'{down}...{up}z4'--z4r--cycle; fi + endgroup; +enddef; + +cmchar "Lowercase gamma"; +beginchar("g",dims); +this_letter; penlabels(1,2,3,3',4,4',5); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by gamma"; +begindoublechar(oct"007",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/g.mf-old b/fonts/greek/levy/g.mf-old new file mode 100644 index 0000000000..572cd8108b --- /dev/null +++ b/fonts/greek/levy/g.mf-old @@ -0,0 +1,61 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 10u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + begingroup + save t; t:=superness; interim superness:=.95t; + pos2(curve,90); top y2r=h+oo; %top of left branch + pos1(hair,180); bot y1=top y2r-4/3curve; %tip of hook + lft x1r=hround .5u; x2-x1=y2-y1; %central arc is round + pos3(hair,0); pos4(hair,-180); rt x3r-lft x4r=stem; %bottom of cusp + y4=y3; .5[x3,x4]=.5w; if monowidth: y3=0 else: y3-.5stem=vround(-.8d) fi; + pos5(curve,-270); top y5r=h+oo; x5+.5curve=hround(w-.75u); %right branch + pos5'(curve,0); z5'=z5; + filldraw stroke z1e{up}...z2e{right}; drawloop(2,3,4,5); %hook and cusp + filldraw z5l{right}...z5'r{up}...z5r{left}--cycle; %right branch + if monowidth: %complete stem + x3'=x3r; x4'=x4r; y3'=y4'; y3'-.5stem=vround(-.8d); + filldraw z3r--z3'{down}...{up}z4'--z4r--cycle; fi + endgroup; +enddef; + +cmchar "Lowercase gamma"; +beginchar("g",dims); +this_letter; penlabels(1,2,3,3',4,4',5); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by gamma"; +begindoublechar(oct"007",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/gen_acc.mf b/fonts/greek/levy/gen_acc.mf new file mode 100644 index 0000000000..4b43213fd5 --- /dev/null +++ b/fonts/greek/levy/gen_acc.mf @@ -0,0 +1,238 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +%This file contains some code from Computer Modern's accent.mf. +%It defines all Greek diacritic marks. + +gen_acc:=1; + +def separator=max(1,vround(1/20x_height)) enddef; + +def grave(expr center) = +if serifs: x22-x21=1/4w; x21-.5stem=hround(center-2/3(x22-x21)-.5stem); +else: lft x21l=hround (1/4w-.5stem); rt x22r=hround(center+.25u+.5vair); fi +generate_grave; penlabels(21,22); +enddef; + +def acute(expr center) = +if serifs: x21-x22=1/4w; x21+.5stem=hround(center+2/3(x21-x22)+.5stem); +else: rt x21r=hround (3/4w+.5stem); lft x22l=hround(center-.25u-.5vair); fi +generate_grave; penlabels(21,22); +enddef; + +vardef search(expr xyzzy) = +pair p;ypart(p)=y22l;p-(x22,xyzzy)=whatever*((z21-(x22,xyzzy))rotated 90); +length(p-(x22,xyzzy))>.5(hair-currentbreadth) enddef; + +vardef generate_grave= +if serifs: pickup crisp.nib; + y21+.5stem=h+eps; bot y22l=max(.8[h,x_height],x_height+o+separator); + y22=solve search(y21,y22l); x22l=xpart(p); z22r=2z22-z22l; + pos21(stem,angle(z22r-z22l)); + filldraw circ_stroke z21e--z22e; % diagonal +else: pickup fine.nib; pos21(stem,0); pos22(vair,0); + top y21=h; bot y22=vround .8[h,x_height]; + filldraw stroke z21e--z22e; % diagonal +fi +enddef; + +def circumflex(expr center)= +generate_circumflex(center,false); %variable `squeeze' +enddef; + +def generate_circumflex(expr center,squeeze)= +numeric mid_width; mid_width=if squeeze:.1 else: .5 fi [vair,stem]; +if serifs: +pickup fine.nib; pos21(hround(mid_width-eps),180); pos22(vair,90); + pos23(mid_width,90); pos24(vair,90); pos25(hround(mid_width-eps),180); + lft x21r=w-rt x25l=hround (center-w/3); x22-x21=x23-x22=x24-x23=x25-x24; + bot y21=bot y24l=vround(.75[x_height,h]-vair); + top y22r=top y25=h; y23=.5[y22,y24]; + filldraw stroke z21e{up}...z22e{right}..z23e..{right}z24e...{up}z25e; % stroke +else: + pos21(vair,-180); pos23(vair,0); y21=y23; + lft x21r=hround(center-w/3); rt x23r=hround(center+w/3); + bot y23=vround max(x_height+o+separator, + if squeeze: 2/3 else: 1/3 fi [x_height,h]-.5mid_width); + x22=center; pos22(mid_width,90); top y22r=h; + filldraw stroke z21e{up}...z22e...{down}z23e; +fi +enddef; + +vardef diaeresis(expr center)= + generate_diaeresis(center,dot_size,dot_size+1/8w,h,x_height+separator); +enddef; + +vardef diaeresis_acute(expr center)= + if serifs: x21-x22=1/4w; x21+.5stem=hround(center+5/6(x21-x22)+.5stem); + else: rt x21r=hround (3/4w+.5stem); lft x22l=hround(center-.5vair); fi + generate_grave; penlabels(21,22); + generate_diaeresis(center,.9dot_size,-1,.5[h,x_height],x_height+separator); +enddef; + +vardef diaeresis_grave(expr center)= + if serifs: x22-x21=1/4w; x21-.5stem=hround(center-5/6(x22-x21)-.5stem); + else: lft x21l=hround (1/4w-.5stem); rt x22r=hround(center+.5vair); fi + generate_grave; penlabels(21,22); + generate_diaeresis(center,.9dot_size,-1,.5[h,x_height],x_height+separator); +enddef; + +vardef diaeresis_circumflex(expr center)= + generate_circumflex(center,true); + numeric sp_bottom, sp_top; + sp_top=vround(.15[bot y21l,x_height]); sp_top+sp_bottom=bot y21l+x_height; + generate_diaeresis(center,5/8dot_size,5/8dot_size+1/4w,sp_top,sp_bottom); +enddef; + +vardef generate_diaeresis(expr center,target_dot_diam,sep,eff_h,base)= +pickup tiny.nib; numeric dot_diam; +dot_diam:=max(tiny.breadth,hround(target_dot_diam)); +pos31(dot_diam,0); pos32(dot_diam,90); x31=x32; top y32r=vround(eff_h); +if bot y32l0 : center=.5[x31,x33]; x33-x31=sep; +else: + y35l=y35r=.5[y31,y32]; z35l=whatever[z21l,z22l]; z35r=whatever[z21r,z22r]; + rt x31r=hround((min(x35l,x35r)-.5currentbreadth)-.05w); + lft x33l=hround((max(x35l,x35r)+.5currentbreadth)+.05w); +fi +dot(31,32); dot(33,34); +penlabels(31,32,33,34,35); +enddef; + +def rough(suffix $,@)(expr dot_size,depth,shear) = + pickup fine.nib; pos$(dot_size,90); + if square_dots: pos$'(dot_size,180); z$'=z$; dot($',$); % squarish dot + comma_join_:=max(fine.breadth,floor .7dot_size); + comma_bot_:=max(fine.breadth,floor .5dot_size); + pos@0(comma_join_,180); pos@1(comma_join_,180); + pos@2(comma_bot_,180); y@0=y$; y@1=y$l; y@2=y@1+dot_size-depth; + x@0r=x@1r=x$'r; lft x@2r=good.x(x$-eps); + filldraw stroke z@0e--z@1e..z@2e; % tail + else: pos@1(vair,90); pos@2(vair,180); pos@3(vair,-90); + z@1r=z$r; lft x@2r=hround(x$-.5depth+.5shear); + x@3+.5vair=x$+.5dot_size+shear; + y@2=.5[y@1,y@3]; bot y@3r=vround(top y@1r-depth); + y_:=ypart((z@1{left}...z@2{down}...z@3) + intersectiontimes (z$l{left}..{right}z$r)); if y_<0: y_:=1; fi + filldraw z$r{right}..subpath (0,y_) of (z$l{left}..{right}z$r)--cycle; % dot + filldraw stroke z@1e{left}...z@2e{down}...{right}z@3e; fi % tail + penlabels(@1,@2,@3); enddef; + +def smooth(suffix $,@)(expr dot_size,depth,shear) = + pickup fine.nib; pos$(dot_size,90); + if square_dots: pos$'(dot_size,0); z$'=z$; dot($',$); % squarish dot + comma_join_:=max(fine.breadth,floor .7dot_size); + comma_bot_:=max(fine.breadth,floor .5dot_size); + pos@0(comma_join_,0); pos@1(comma_join_,0); + pos@2(comma_bot_,0); y@0=y$; y@1=y$l; y@2=y@1+dot_size-depth; + x@0r=x@1r=x$'r; rt x@2r=good.x(x$-eps); + filldraw stroke z@0e--z@1e..z@2e; % tail + else: pos@1(vair,90); pos@2(vair,0); pos@3(vair,-90); + z@1r=z$r; rt x@2r=hround(x$+.5depth+.5shear); + x@3-.5vair=hround(x$-.5dot_size+shear); + y@2=.5[y@1,y@3]; bot y@3r=vround(top y@1r-depth); + y_:=ypart((z@1{right}...z@2{down}...z@3) + intersectiontimes (z$l{right}..{left}z$r)); if y_<0: y_:=1; fi + filldraw z$r{left}..subpath (0,y_) of (z$l{right}..{left}z$r)--cycle; % dot + filldraw stroke z@1e{right}...z@2e{down}...{left}z@3e; fi % tail + penlabels(@1,@2,@3); enddef; + +vardef spirit(expr center) text type= +numeric sp_bottom, sp_height; +sp_bottom=h-sp_height=max(.8[h,x_height],x_height+o+separator); +numeric dot_diam#; dot_diam# = 3/4dot_size#; +define_whole_blacker_pixels(dot_diam); +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height))); +x31 if1type0:-else:+fi.5dot_diam=hround(center if1type0:-else:+fi.5dot_diam); +y31+.5dot_diam=h; +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +penlabels(31); +enddef; + +vardef spirit_acute(expr center) text type = +numeric sp_bottom, sp_height; +sp_bottom=h-sp_height=max(.8[h,x_height],x_height+o+separator); +numeric dot_diam#; dot_diam# = 3/4dot_size#; +define_whole_blacker_pixels(dot_diam); +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height))); +if serifs: x21-x22=1/6w; + x21+.5stem=hround(center+.25u+.5vair+(x21-x22)+.5stem); %lft x22r ~ center+.25u +else: rt x21r=hround (4/5w+.5stem); lft x22l=hround(center+.25u); fi +generate_grave; penlabels(21,22); +if 1type0: %spirit and accent separated by .5u (rough) or .25u (smooth) + x31=hround(lft x22 if serifs:r-.5sp_height else:l-.5dot_diam fi -.25u); +else: x31+.5dot_diam=hround(lft x22 if serifs:r else: l fi -.5u); fi +y31+.5dot_diam=h; +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +enddef; + +vardef spirit_grave(expr center) text type = +numeric sp_bottom, sp_height; +sp_bottom=h-sp_height=max(.8[h,x_height],x_height+o+separator); +numeric dot_diam#; dot_diam# = 3/4dot_size#; +define_whole_blacker_pixels(dot_diam); +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height))); +if serifs: x22-x21=1/6w; x21-.5stem=hround(center+.25u); +else: rt x22r=hround (4/5w+.5stem); lft x21l=hround(center+.25u); fi +generate_grave; penlabels(21,22); +if 1type0: %spirit and accent separated by .5u (rough) or .25u (smooth) + x31=hround(lft x21l-.5 if serifs:sp_height else:dot_diam fi -.25u); +else: x31+.5dot_diam=hround(lft x21l-.5u); fi +y31+.5dot_diam=h; +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +enddef; + +vardef spirit_circumflex(expr center) text type= +generate_circumflex(center,true); %variable `squeeze' +numeric sp_bottom, sp_height, sp_top, box_top; +box_top=bot if serifs: y21l else: y22l fi; +sp_top=sp_bottom+sp_height=vround(.15[box_top,x_height]); +sp_top+sp_bottom=box_top+x_height; +numeric dot_diam#; dot_diam# = 5/8dot_size#; +define_whole_blacker_pixels(dot_diam); +pickup fine.nib; +dot_diam:=max(fine.breadth,min(dot_diam,floor(2/3sp_height-eps))); +x31 if1type0:-else:+fi.5dot_diam=hround(center if1type0:-else:+fi.5dot_diam); +y31+.5dot_diam=vround(sp_top); +if1type0:smooth else:rough fi (31,a,dot_diam,sp_height,0); +penlabels(31); +enddef; + +def iota_sub(expr pos_stem) = +if known pic.iota: + addto currentpicture also pic.iota shifted (hround(pos_stem),0); +else: + picture temp_picture; temp_picture=currentpicture; clearit; + pickup fine.nib; + x51=0; pos51(stem,180); top y51=vround(-o-2separator); + x52=x51; pos52(stem,180); bot y52=-iota_dp; + filldraw circ_stroke z52e--z51e; + if not working_hard : picture pic.iota; pic.iota=currentpicture; fi + currentpicture:=currentpicture shifted (hround(pos_stem),0); + addto currentpicture also temp_picture; +fi; +enddef; diff --git a/fonts/greek/levy/gen_sigma.mf b/fonts/greek/levy/gen_sigma.mf new file mode 100644 index 0000000000..bf03154451 --- /dev/null +++ b/fonts/greek/levy/gen_sigma.mf @@ -0,0 +1,51 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +numeric gen_sigma; gen_sigma=1; + +def dim_sigma = 9.5u#,x_height#,0 enddef; +def ital_sigma = 0 enddef; +def fit_params_sigma = 0,.75u# enddef; + +def mid_sigma= +italcorr ital_sigma; adjust_fit(fit_params_sigma); +if known pic.c: currentpicture:=pic.c; else: gen_mid_sigma; fi +if not working_hard : picture pic.c; pic.c=currentpicture; fi +enddef; + +def gen_mid_sigma = + pickup fine.nib; + lft x4r=hround .75u; rt x8r=w-lft x4r; %left and right bulge + top y2r=h; bot y6r=-oo; x2r=x6r; %top and bottom + numeric fake; fake=y2r-(vstem-currentbreadth); %approx height of z2l + 2y4r=y2r+y6r; 2y8r=fake+y6r; + (x8r-x6r)/(y8r-y6r)=-(x4r-x6r)/(y4r-y6r); %determine x6r + y1r=y2r;rt x1=hround(rt x8r+u); pos1(flare,90); %tip + filldraw stroke z1e..gr_arc.e(2,3,4)(vstem,curve,otilt) + & gr_arc.e(4,5,6)(vair,curve,otilt) %top stroke and left bowl + & gr_arc.e(6,7,8)(vair,curve,otilt); %bottom part of right bowl + z9l=z2l; pos9(vair,180); z9'l=z2'l; z9'r=left; + filldraw stroke z8e{z8'e}..z9e{z9'e}; %top part of right bowl +enddef; diff --git a/fonts/greek/levy/graccent.mf b/fonts/greek/levy/graccent.mf new file mode 100644 index 0000000000..8455df4ce8 --- /dev/null +++ b/fonts/greek/levy/graccent.mf @@ -0,0 +1,130 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi + +cmchar "Grave accent"; +beginchar("`",9u#,acc_ht#,0); +grave(.5w); +endchar; + +cmchar "Acute accent"; +beginchar("'",9u#,acc_ht#,0); +acute(.5w); +endchar; + +cmchar "Circumflex accent"; +beginchar("~",9u#,circ_ht#,0); +circumflex(.5w); +endchar; + +cmchar "Diaeresis"; +beginchar(oct"042",9u#,circ_ht#,0); +diaeresis(.5w); +endchar; + +cmchar "Rough breathing"; +beginchar("<",9u#,acc_ht#,0); +spirit(.5w)<; +endchar; + +cmchar "Smooth breathing"; +beginchar(">",9u#,acc_ht#,0); +spirit(.5w)>; +endchar; + +cmchar "Rough breathing with acute"; +beginchar(oct"126",9u#,acc_ht#,0); +spirit_acute(.5w)<; +endchar; + +cmchar "Rough breathing with grave"; +beginchar(oct"103",9u#,acc_ht#,0); +spirit_grave(.5w)<; +endchar; + +cmchar "Rough breathing with circumflex"; +beginchar(oct"100",9u#,acc_ht#,0); +spirit_circumflex(.5w)<; +endchar; + +cmchar "Smooth breathing with acute"; +beginchar(oct"136",9u#,acc_ht#,0); +spirit_acute(.5w)>; +endchar; + +cmchar "Smooth breathing with grave"; +beginchar(oct"137",9u#,Circ_ht#,0); +spirit_grave(.5w)>; +endchar; + +cmchar "Smooth breathing and circumflex"; +beginchar(oct"134",9u#,Circ_ht#,0); +spirit_circumflex(.5w)>; +endchar; + +cmchar "Diaeresis with acute"; +beginchar(oct"043",9u#,acc_ht#,0); +diaeresis_acute(.5w); +endchar; + +cmchar "Diaeresis with grave"; +beginchar(oct"044",9u#,acc_ht#,0); +diaeresis_grave(.5w); +endchar; + +cmchar "Diaeresis with circumflex"; +beginchar(oct"040",9u#,Circ_ht#,0); +diaeresis_circumflex(.5w); +endchar; + +cmchar "Iota subscript"; +beginchar("|",9u#,0,.6desc_depth#); +iota_sub(.5w); +endchar; + +cmchar "Breve accent"; +beginchar(oct"036",9u#,min(asc_height#,2x_height#),0); +italcorr h#*slant+.5vair#-1.5u#; +adjust_fit(0,0); +pickup crisp.nib; pos1(vair,-180); pos3(vair,0); +top y1=top y3=h; lft x1r=w-rt x3r=hround(2u-.5vair); +numeric mid_thickness; mid_thickness=vround 1/3[vair,stem]; +pos2(mid_thickness,-90); x2=.5w; +bot y2r=vround max(x_height+o+tiny,1/3[x_height,h]+o-.5mid_thickness); +filldraw stroke z1e{down}...z2e{right}...{up}z3e; % stroke +endchar; + +cmchar "Macron (bar) accent"; +numeric macron_breadth#; macron_breadth#=.2[vair#,stem#]; +beginchar(oct"037",9u#,.4[x_height#,asc_height#]+macron_breadth#,0); +italcorr h#*slant-.75u#; +adjust_fit(0,0); +numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; +pickup if serifs: crisp.nib else: fine.nib fi; +pos1(macron_breadth,90); pos2(macron_breadth,90); +top y1r=top y2r=h+o; lft x1=w-rt x2=hround 1.25u; +filldraw stroke z1e--z2e; % bar +endchar; diff --git a/fonts/greek/levy/grbase.mf b/fonts/greek/levy/grbase.mf new file mode 100644 index 0000000000..455c854617 --- /dev/null +++ b/fonts/greek/levy/grbase.mf @@ -0,0 +1,248 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +numeric grbase; grbase:=1; %don't read this file twice + +%make reference to file in subdirectories less painful +def readfrom(expr filename) = scantokens ("input " & filename); enddef; + +%we start by defining a few more font parameters: +boolean monowidth; %are the widths of all strokes roughly the same? +boolean straight; %are certain strokes straight? + +let old_font_setup = font_setup; +def font_setup = + define_whole_vertical_pixels(acc_ht,circ_ht,Circ_ht,iota_dp); %accent heights + old_font_setup; +enddef; + +%Since many of our characters are composite (for instance, s+letter), +%we avoid recomputing many pictures by saving them. +%But if we're using various definitions for the same letter (as when +%running 6test.mf) we can't use this trick, so we set working_hard:=true. + +boolean working_hard; %are we to recompute letters every time? +working_hard:=false; + +def this_letter = + italcorr ital; adjust_fit(fit_params); + if known savedpicture: currentpicture:=savedpicture; else: gen_letter; fi + if not working_hard : picture savedpicture; savedpicture=currentpicture; fi +enddef; + +%The following routines are for use with double characters. +boolean is_double; is_double:=false; +let oldendchar=endchar; + +def begindoublechar(expr c,w_sharp,h_sharp,d_sharp) = + is_double:=true; beginchar(c,w_sharp,h_sharp,d_sharp); +enddef; + +def doublecharkern(expr k_sharp) = + if not monospace: k:=hround(k_sharp*hppp); r:=r+k; charwd:=charwd+k_sharp; fi +enddef; + +def middoublechar(expr w_sharp,h_sharp,d_sharp) = + scantokens extra_endchar; + forsuffixes e=r,l,w,charwd: numeric first.e; first.e:=e; endfor + + w:=hround(w_sharp*hppp); h:=vround(h_sharp*hppp); d:=vround(d_sharp*hppp); + charwd:=w_sharp; charht:=max(charht,h_sharp); chardp:=max(chardp,d_sharp); + picture first.glyph; first.glyph=currentpicture; + clearxy; clearpen; clearit; clearpen; +enddef; + +def endchar = + if is_double : + charwd:=first.charwd+charwd; + picture second_glyph; second_glyph=currentpicture shifted (first.r-l,0); + currentpicture:= first.glyph; addto currentpicture also second_glyph; + scantokens extra_endchar; + w:=first.w+w; r:=first.r-l+r; l:=first.l; + chardx:=first.w+w; interim xoffset:= -l; + if proofing>0: makebox(proofrule); fi + shipit; + if displaying>0: makebox(screenrule); showit; fi + endgroup; + is_double:=false + else : oldendchar + fi +enddef; + +%By convention, we reserve the name z1' for the direction at z1, and so on. +%The direction at z1r is z1'r, or zdir1r. +vardef zdir[]@#= z@'@# enddef; +vardef assign_z@#(expr zz)= x@#:=xpart(zz); y@#:=ypart(zz) enddef; +vardef sgn(expr x)= if (x>0): 1 elseif (x<0): -1 else: 0 fi enddef; + +vardef double_circ_stroke text t = + forsuffixes e = l,r: path_.e:=t; endfor + if cycle path_.l: errmessage "Beware: `stroke' isn't intended for cycles"; fi + path_.l .. reverse path_.r .. cycle enddef; + +vardef drawloop(suffix $,$$,@@,@)= + numeric temp[], sup; + sup=superness; + forsuffixes e=r,l: + path curv[]e; numeric S[]e; + curv1e=pulled_super_arc.e($,$$)(.5superpull); + curv2e=pulled_super_arc.e(@,@@)(.5superpull); endfor + (S1r,S2r)=curv1r intersectiontimes curv2r; + (temp1,S2l)=curv1r intersectiontimes curv2l; + (S1l,temp2)=curv1l intersectiontimes curv2r; + for i=1 upto 9: + exitif (temp1>=S1r) and (temp2>=S2r); + begingroup + numeric S[]r, S[]l, temp[]; pair p; + interim superness:=(i/10)[sup,1]; + message"change in superness required; increased to "; show superness; + curv1r:=pulled_super_arc.r($,$$)(0); + curv2r:=pulled_super_arc.r(@,@@)(0); + (S1r,S2r)=curv1r intersectiontimes curv2r; + (temp1,S2l)=curv1r intersectiontimes curv2l; + (S1l,temp2)=curv1l intersectiontimes curv2r; + endgroup; + endfor; + if S1l=-1 : S1l:=2; fi + if S2l=-1 : S2l:=2; fi + filldraw stroke subpath(0,S1e+eps) of curv1e; + filldraw stroke subpath(0,S2e+eps) of curv2e; + filldraw subpath (S1r+eps,2) of curv1r...subpath(2,S2r+eps) of curv2r..cycle; +enddef ; + +vardef gr_arc.r(suffix $,$$,$$$)(expr min,max,tilt)= + pair center, corner; + if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant + center=(x$$$r,y$r); corner=(x$r,y$$$r); + else : + center=(x$r,y$$$r); corner=(x$$$r,y$r); + fi + z$r{corner-z$r}...superness[center,corner]{z$$$r-z$r}... + {z$$$r-corner}z$$$r +enddef; + +vardef gr_arc.l(suffix $,$$,$$$)(expr min,max,tilt)= + save p,q,wdth; + pair center, corner, temp; + numeric wdth, t, s; + path p,q; + if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant + center=(x$$$r,y$r); corner=(x$r,y$$$r); + if tilt>=0 : wdth:=min; other_wdth:=max; t:=2(1-tilt); + else : wdth:=max; other_wdth:=min; t:=-2tilt; fi + else : + center=(x$r,y$$$r); corner=(x$$$r,y$r); + if tilt>=0 : wdth:=max; other_wdth:=min; t:=2(1-tilt); + else : wdth:=min; other_wdth:=max; t:=-2tilt; fi + fi + p:=z$r{corner-z$r}...superness[center,corner]{z$$$r-z$r}... + {z$$$r-corner}z$$$r; + pos$$(wdth,angle direction t of p - 90); + z$$r=point t of p; + assign_z$$'l(direction t of p); + assign_z$$'r(z$$'l); + if other_wdth<=currentbreadth: errmessage "bad pos"; fi + temp:=point (2-t) of p- + (other_wdth-currentbreadth,0) rotated (angle direction (2-t) of p - 90); + boolean k[]; k1:=false; k2:=false; + if unknown x$l: + k1:=true; + assign_z$l(temp); + assign_z$'l(direction(2-t) of p); + if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant + y$l:=2ypart center-y$l; + x$'l:=-x$'l; + else: + x$l:=2xpart center-x$l; + y$'l:=-y$'l; + fi + fi + if unknown x$$$l: + k2:=true; + assign_z$$$l(temp); + assign_z$$$'l(direction(2-t) of p); + if (y$$$r-y$r)*(x$$$r-x$r) < 0 : %first or third quadrant + x$$$l:=2xpart center-x$$$l; + y$$$'l:=-y$$$'l; + else: + y$$$l:=2ypart center-y$$$l; + x$$$'l:=-x$$$'l; + fi + fi + q:=z$l{z$'l}...z$$l{z$$'l}...z$$$l{z$$$'l}; + if k1 : + t := xpart(q intersectiontimes (center---z$r)); + if t=-1 : t:=0; fi + assign_z$l(point t of q); + assign_z$'l(direction t of q); + assign_z$'r(corner-z$r); + z$l+z$r=2z$; + else: t:=0; + fi + if k2 : + s := xpart(q intersectiontimes (center---z$$$r)); + if s=-1 : s:=2; fi + assign_z$$$l(point s of q); + assign_z$$$'l(direction s of q); + assign_z$$$'r(z$$$r-corner); + z$$$l+z$$$r=2z$$$; + else: s:=2; + fi + subpath (t,s) of q +enddef; + +vardef doodah(suffix $,$$,$$$)= + if known x$$: + vardef ward(expr gr)= + sgn(xpart direction 1 of (z${zdir$}..(x$$,gr)..{zdir$$$}z$$$)) <> sgn(x$-x$$) + enddef; + y$$=solve ward(y$,y$$$); + else: + vardef ward(expr gr)= + sgn(ypart direction 1 of (z${zdir$}..(gr,y$$)..{zdir$$$}z$$$)) <> sgn(y$-y$$) + enddef; + x$$=solve ward(x$,x$$$); + fi + (z${zdir$}..z$$..{zdir$$$}z$$$) +enddef; + +forsuffixes e=r,l: + vardef club.e(suffix $,$$,$$$)= doodah($e,$$e,$$$e) enddef; endfor + +screen_rows:=600; screen_cols:=1000; + +vardef alpha_tail(suffix $,$$) = + pos$$(hair,180); top y$$=vround 4/3[bot y$l,top y$r]; %tip of hook + rt x$$l=hround(x$+(y$$-y$)+.5hair); %central arc is round +enddef; + +vardef pi_bar = + pos3(vstem,-90); rt x3=hround(w-.75u); top y3l=x_height; %top right + pos2(vstem,-90); y2=y3; x2=.25w; %top left + x1-.5hair=hround.75u; y1-.5hair=4/3[top y2l,bot y2r]; %tip of bar + numeric slope; slope=angle((z2-z1)yscaled 2); pos1(hair,slope-90); + forsuffixes e=l,r: z1'e=(z2e-z1e)yscaled 2; endfor + filldraw circ_stroke z1e{z1'e}...z2e---z3e; %bar +enddef; diff --git a/fonts/greek/levy/grbld10.mf b/fonts/greek/levy/grbld10.mf new file mode 100644 index 0000000000..5ee464f9a8 --- /dev/null +++ b/fonts/greek/levy/grbld10.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Bold 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grbld"; font_size 10pt#; + +u#:=22/36pt#; % unit width +width_adj#:=11/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=7/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=247/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=160/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=85/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders %was 70 +acc_ht#:=250/36pt#; +circ_ht#:=230/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=13/36pt#; % diameter of rounded corners +fine#:=10/36pt#; % diameter of sharply rounded corners +thin_join#:=10/36pt#; % width of extrafine details +hair#:=13/36pt#; % lowercase hairline breadth (was 17) +stem#:=38/36pt#; % lowercase stem breadth (was 41) +curve#:=41/36pt#; % lowercase curve breadth (was 46) +ess#:=38/36pt#; % breadth in middle of lowercase s +flare#:=41/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=56/36pt#; % diameter of dots +cap_hair#:=19/36pt#; % uppercase hairline breadth +cap_stem#:=51/36pt#; % uppercase stem breadth +cap_curve#:=55/36pt#; % uppercase curve breadth +cap_ess#:=53/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.6pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=10/36pt#; % vertical distance from serif base to tangent +jut#:=25/36pt#; % protrusion of lowercase serifs +cap_jut#:=39/36pt#; % protrusion of uppercase serifs +beak_jut#:=11/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=11/36pt#; % vertical diameter of hairlines (was 13) +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=17/36pt#; % lowercase bar thickness +slab#:=17/36pt#; % serif and arm thickness +cap_bar#:=17/36pt#; % uppercase bar thickness +cap_band#:=17/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=3/36pt#; % vertical drop of sloped serifs +stem_corr#:=2/36pt#; % for small refinements of stem breadth +vair_corr#:=1.5/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=4/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=8/11; % parameter for superellipses +superpull:=1/8; % extra openness inside bowls +beak_darkness:=.4; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/grbld8.mf b/fonts/greek/levy/grbld8.mf new file mode 100644 index 0000000000..e1e050231a --- /dev/null +++ b/fonts/greek/levy/grbld8.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Bold 8 point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grbld"; font_size 8pt#; + +u#:=17.6/36pt#; % unit width +width_adj#:=9/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5.6/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=216.0/36pt#; % height of tallest characters +asc_height#:=200.0/36pt#; % height of lowercase ascenders +cap_height#:=197.6/36pt#; % height of caps +fig_height#:=185.6/36pt#; % height of numerals +x_height#:=128.0/36pt#; % height of lowercase without ascenders +math_axis#:=72.0/36pt#; % axis of symmetry for math symbols +bar_height#:=68.0/36pt#; % height of crossbar in lowercase e +comma_depth#:=56.0/36pt#; % depth of comma below baseline +desc_depth#:=54.0/36pt#; % depth of lowercase descenders +acc_ht#:=200.0/36pt#; +circ_ht#:=184.0/36pt#; +Circ_ht#:=200.0/36pt#; +iota_dp#:=57.6/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=104.0/36pt#; % diameter of rounded corners +fine#:=70.0/36pt#; % diameter of sharply rounded corners +thin_join#:=70.0/36pt#; % width of extrafine details +hair#:=11.7/36pt#; % lowercase hairline breadth +stem#:=34.2/36pt#; % lowercase stem breadth +curve#:=32.8/36pt#; % lowercase curve breadth +ess#:=34.2/36pt#; % breadth in middle of lowercase s +flare#:=36.9/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=44.8/36pt#; % diameter of dots +cap_hair#:=17.1/36pt#; % uppercase hairline breadth +cap_stem#:=40.8/36pt#; % uppercase stem breadth +cap_curve#:=44.0/36pt#; % uppercase curve breadth +cap_ess#:=42.4/36pt#; % breadth in middle of uppercase s +rule_thickness#:=0.54pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=8.0/36pt#; % vertical distance from serif base to tangent +jut#:=20.0/36pt#; % protrusion of lowercase serifs +cap_jut#:=31.2/36pt#; % protrusion of uppercase serifs +beak_jut#:=8.8/36pt#; % horizontal protrusion of beak serifs +beak#:=56.0/36pt#; % vertical protrusion of beak serifs +vair#:=8.8/36pt#; % vertical diameter of hairlines +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=15.3/36pt#; % lowercase bar thickness +slab#:=15.3/36pt#; % serif and arm thickness +cap_bar#:=15.3/36pt#; % uppercase bar thickness +cap_band#:=15.3/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=8.00pt#; % max breadth above/below uppercase notches +serif_drop#:=2.4/36pt#; % vertical drop of sloped serifs +stem_corr#:=2.0/36pt#; % for small refinements of stem breadth +vair_corr#:=1.5/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=3.2/36pt#; % amount of overshoot for curves +apex_o#:=2.4/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=8/11; % parameter for superellipses +superpull:=1/8; % extra openness inside bowls +beak_darkness:=.4; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/grbld9.mf b/fonts/greek/levy/grbld9.mf new file mode 100644 index 0000000000..0ab686b106 --- /dev/null +++ b/fonts/greek/levy/grbld9.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Bold 9.00point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grbld"; font_size 9.00pt#; + +u#:=19.8/36pt#; % unit width +width_adj#:=10.0/36pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=6.3/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=243.0/36pt#; % height of tallest characters +asc_height#:=225.0/36pt#; % height of lowercase ascenders +cap_height#:=222.3/36pt#; % height of caps +fig_height#:=208.8/36pt#; % height of numerals +x_height#:=144.0/36pt#; % height of lowercase without ascenders +math_axis#:=81.0/36pt#; % axis of symmetry for math symbols +bar_height#:=76.5/36pt#; % height of crossbar in lowercase e +comma_depth#:=63.0/36pt#; % depth of comma below baseline +desc_depth#:=72.0/36pt#; % depth of lowercase descenders %was 70 +acc_ht#:=225.0/36pt#; +circ_ht#:=207.0/36pt#; +Circ_ht#:=225.0/36pt#; +iota_dp#:=64.8/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=58.5/36pt#; % diameter of rounded corners +fine#:=40.0/36pt#; % diameter of sharply rounded corners +thin_join#:=40.0/36pt#; % width of extrafine details +hair#:=12.3/36pt#; % lowercase hairline breadth (was 17) +stem#:=36.1/36pt#; % lowercase stem breadth (was 41) +curve#:=36.9/36pt#; % lowercase curve breadth (was 46) +ess#:=36.1/36pt#; % breadth in middle of lowercase s +flare#:=39.0/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=50.4/36pt#; % diameter of dots +cap_hair#:=18.1/36pt#; % uppercase hairline breadth +cap_stem#:=45.9/36pt#; % uppercase stem breadth +cap_curve#:=49.5/36pt#; % uppercase curve breadth +cap_ess#:=47.7/36pt#; % breadth in middle of uppercase s +rule_thickness#:=0.57pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=9.0/36pt#; % vertical distance from serif base to tangent +jut#:=22.5/36pt#; % protrusion of lowercase serifs +cap_jut#:=35.1/36pt#; % protrusion of uppercase serifs +beak_jut#:=9.9/36pt#; % horizontal protrusion of beak serifs +beak#:=63.0/36pt#; % vertical protrusion of beak serifs +vair#:=9.9/36pt#; % vertical diameter of hairlines (was 13) +notch_cut#:=10/36pt#; % maximum breadth above or below notches +bar#:=16.1/36pt#; % lowercase bar thickness +slab#:=16.1/36pt#; % serif and arm thickness +cap_bar#:=16.1/36pt#; % uppercase bar thickness +cap_band#:=16.1/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=9.00pt#; % max breadth above/below uppercase notches +serif_drop#:=2.7/36pt#; % vertical drop of sloped serifs +stem_corr#:=2.0/36pt#; % for small refinements of stem breadth +vair_corr#:=1.5/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=3.6/36pt#; % amount of overshoot for curves +apex_o#:=2.7/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=.5; % extra openness of math symbols +superness:=8/11; % parameter for superellipses +superpull:=1/8; % extra openness inside bowls +beak_darkness:=.4; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; % are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/greek.mf b/fonts/greek/levy/greek.mf new file mode 100644 index 0000000000..866cfcd2bd --- /dev/null +++ b/fonts/greek/levy/greek.mf @@ -0,0 +1,50 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +mode_setup; +font_setup; + +if not boolean barebones: + readfrom("upper"); + readfrom("graccent"); +fi +readfrom("lower"); +if not boolean barebones: + readfrom("digits"); + readfrom("grpunct"); +fi +readfrom("lig"); + +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 + +bye. diff --git a/fonts/greek/levy/greekhist.tex b/fonts/greek/levy/greekhist.tex new file mode 100644 index 0000000000..498ea49269 --- /dev/null +++ b/fonts/greek/levy/greekhist.tex @@ -0,0 +1,458 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . + +%\magnification=\magstep1 +\def\midspace#1{} +\def\caption#1{} + +\input greekmacros + +\greekdelims + +\def\plus{\math{}+{}\math} +\font\man=logo10 at 10true pt % font used for special symbols (old version) + \def\MF{{\man META}\-{\man FONT}}% +% macros for verbatim scanning +\newskip\ttglue \ttglue=.5em plus.25em minus.15em +\chardef\other=12 +\def\ttverbatim{\begingroup + \catcode`\\=\other + \catcode`\{=\other + \catcode`\}=\other + \catcode`\$=\other + \catcode`\&=\other + \catcode`\#=\other + \catcode`\%=\other + \catcode`\~=\other + \catcode`\_=\other + \catcode`\^=\other + \obeyspaces \obeylines \tt} + +\outer\def\begintt{$$\let\par=\endgraf \ttverbatim \parskip=\z@ + \catcode`\|=0 \rightskip-5pc \ttfinish} +{\catcode`\|=0 |catcode`|\=\other % | is temporary escape character + |obeylines % end of line is active + |gdef|ttfinish#1^^M#2\endtt{#1|vbox{#2}|endgroup$$}} + +\catcode`\|=\active +{\obeylines \gdef|{\ttverbatim \spaceskip\ttglue \let^^M=\ \let|=\endgroup}} + +%\documentstyle{amsppt} +%\nologo +% +%\topmatter +%\title Typesetting Greek \endtitle +%\author Silvio Levy \endauthor +%\affil Princeton University \endaffil +%\address{Fine Hall, Washington Road, Princeton, NJ, 08544} +%\abstract{ +%We discuss the design, creation and use of a family of Greek fonts for +%\TeX. The fonts can be used for modern or classical +%Greek, by themselves or in combination with the Computer Modern family +%of fonts. A short historical introduction is followed by a discussion +%of special topics, including the handling of accents and breathings, +%hyphenation, and the two varieties of sigma. +%} +%\endtopmatter +%\document +% + +\font\eightpoint=cmr8 +\font\twelverm=cmr10 at 12pt +\def\heading#1\endheading{\bigskip\centerline{\twelverm#1}\medskip} + +%formatting conventions for proceedings +\catcode`@=11 +\font\titlefont=cmr17 +\font\namefont=cmcsc10 scaled \magstep1 +\font\twelvebd=cmbx10 scaled \magstep1 +\font\twelverm=cmr10 scaled \magstep1 +\font\sixrm=cmr6 +\vsize=43pc +\hsize=29pc +\parindent=16pt +\nopagenumbers +\normalbaselines +\footline={\hss\sixrm\folio\hss} +\def\makefootline{\baselineskip3pc\line{\the\footline}} +\def\plainoutput{\shipout\vbox{\makeheadline\pagebody\makefootline}% + \advancepageno + \vsize=45pc + \ifnum\outputpenalty>-\@MM \else\dosupereject\fi} +\def\makeheadline{\vbox to\z@{\vskip-22.5\p@ + \line{\vbox to8.5\p@{}\ifnum\count0=1 + \else\ifodd\count0 + \hfill\the\doctitle\ignorespaces + \else \the\authorname\hfill\fi\fi}\vss}\nointerlineskip} + +\newtoks\doctitle \newtoks\authorname + +\doctitle={Typesetting Greek} +\authorname={Silvio Levy} +\catcode`@=12 % at signs are no longer letters +\tenrm +\begingroup +\titlefont +\the\doctitle +\vskip 3pc +\namefont\the\authorname +\tenrm +\vskip 1pc +{\obeylines +Mathematics Department +Princeton University +Princeton, NJ, 08544 +} +\vskip 3pc +\line{\hfill\twelvebd ABSTRACT\hfill} +\vskip 3pc +\leftskip 4pc \rightskip 4pc +We discuss the design, creation and use of a family of Greek fonts for +\TeX. The fonts can be used for modern or classical +Greek, by themselves or in combination with the Computer Modern family +of fonts. A short historical introduction is followed by a discussion +of special topics, including the handling of accents and breathings, +hyphenation, and the two varieties of sigma. +\par +\endgroup +\vskip 3pc + +\heading A Bit of History \endheading + +During the first four centuries after the introduction of the printing +press in Europe, the printing of Greek was hampered by the relative +inadequacy of existing types, at least in comparison with the quality +and variety of the best roman fonts. This was partly a consequence +of the antiquity of the language and its consequent evolution in both +writing and pronunciation: not only did the letterforms change over time, +but they came to be adorned with a multitude of diacritical marks, a +legacy of zealous scribes and grammarians anxious to preserve the +pristine state of the language that lent them their prestige. + +In the early days we find that the few printers that attempted to cut +Greek type generally ignored all this complexity, either disregarding +the diacritics or casting them separately and setting them +above each line of text. Some texts were printed in +lowercase only; others would make do with roman capitals like `A' and +even some lowercase roman glyphs, like `v' for `$n$'. (See figures +1--12 in [Brit.~Mus.~1927], an excellent historical survey.) + +In 1495 Aldus Manutius introduced cursive greeks. +They became a resounding success, as they reproduced the florid +and idiosyncratic handwriting of the day, full of abbreviations +and ligatures. The inordinate number of ligatures is in fact the +most striking feature of such fonts: for example, Fell's ``Great +Primer Greek'' [Morison 1967, p.~102] has sorts for many +four-letter words and prefixes. + +Although skilfully typeset books using cursive fonts are undeniably +beautiful (see [Brit.~Mus.~1927], figure 29), the use of so many +ligatures was a nightmare for compositor and reader alike, since +in some cases the component letters are virtually unidentifiable. +Gradually the fonts were scaled down in size, but the practice +of imitating handwriting remained until the end of the eighteenth +century, when Bodoni, G\"oschen and Didot paved the way back to a +more sober course. + +Still problems remained. Porson's greek [Mosley 1960], first used +in 1826 and destined to become the standard of the English-speaking +world, continues the illogical tradition of mixing upright capitals +with slanted minuscules; in particular the blending of Greek and roman +text leads to poor results (figure 1). Didot's design was somewhat +more felicitous, and became standard in Italy, France and Greece itself +(figure 2), but the type is narrow and irregular, bearing, according +to Scholderer [Brit.~Mus.~1927, p.~14], the `malign mark' of Bodoni's +greeks (which were admittedly not a match for his inspired romans). +\midspace{1.1truein} +\caption{\eightpoint Figure 1} + +\midspace{1.2truein} +\caption{\eightpoint Figure 2} + +(Incidentally, the different treatment of capitals established itself +in mathematical typesetting. In English books, Greek capitals are the +only math letters that are not slanted; in French and German books +they conform with the rest. The Computer Modern Greek faces are +based on Porson. They are, of course, meant for math; when used +for text, as in [Wonneberger 1987], the results fall short of +the perfection achievable with \TeX.) + +It was not until the beginning of this century that really +well-designed Greek types became available, including Scholderer's +`New Hellenic' type (figure 3), based on a pre-Aldine model, +and the Monotype font shown in figure 4, a much improved version +of Didot's design and perhaps the typeface most favored for +high-quality printing in Greece during the last few decades. +\midspace{1.1truein} +\caption{\eightpoint Figure 3} + +\midspace{1.3truein} +\caption{\eightpoint Figure 4} + +\heading Requirements \endheading + +My main motivation in designing a family of Greek fonts is the +preparation of a Modern Greek--English dictionary. This in itself +makes the design more exacting: the fonts should not only look good +individually and in combination, but also blend well with Computer +Modern fonts; there should be at least three main styles, different +enough that no special effort to distinguish between them is required, +even in small point size; and the typing should be as painless as +possible on a standard (English) keyboard. +This last condition is, of course, open to interpretation, but I +define it to mean that each grapheme (letter, accent, etc.)~should +require as few keystrokes as possible---generally one, but +occasionally more, like accents in English. + +In esthetic terms there are a lot of details to work out, but the +foundation has been laid. I follow loosely the type shown in figure 4, +which shares several features with the Computer Modern roman: +sharp contrast between thicks and thins, similar letter widths, +and a wealth of texture and detail. (This is not surprising since +the `modern' family of fonts goes back to Bodoni and Didot.) +But it also has distinguishing features, which recapture some of the +beauty of cursive writing: its strokes are more fluid, and there +is no left-right symmetry (compare a roman `o' with a greek `$o$'). + +Modern Greek has traditionally been typeset with the diacritic +apparatus of ancient Greek, which is very rich: it contains two accents, +the acute $'$ and the grave $`$, that can go over any vowel, plus one, +the circumflex $~$, that can go over the vowels $ahiuw$; two so-called +breathings $<>$, one of which goes over every vowel or diphthong +in initial position; the diaeresis $"$, that can go over $i$ and $u$; +and the iota subscript $|$, that can go under $ahw$. An accent +plus a breathing, or an accent plus the dieresis, can coexist; +furthermore any accent, breathing or accent-breathing combination +can share a vowel with an iota subscript. Here, for example, +are the 24 possible varieties of lowercase $a$: +\display +\hbox{$a 'a `a ~a a >'a >`a >~a +a| 'a| `a| ~a| a| >'a| >`a| >~a|$} +\display + +In the last several decades the tendency has been to get rid of these +complications, and now the ``official'' system in use in Greece includes +only one accent and the dieresis, without breathings or iota subscripts. +Even though I work primarily with modern Greek, however, I thought +it short-sighted not to include the whole apparatus, having in mind +both classicists and those traditionalists who +still prefer the three-accent system, as do some publishing houses. + +It was clear right away that these diacritics should be implemented as +ligatures, not as \TeX\ accents, because in \TeX\ words that include +accents cannot be hyphenated. This implied that 128 font +positions were not enough. Fortunately \TeX\ and \MF\ are +well equipped to handle 256-position fonts, though most device +drivers are not (see the section `Other Problems'). + +Following the one-keystroke-per-grapheme rule, then, one can conjure +up the last alpha in the display above by typing |>~a|{\tt\char`\|}, +which accesses a four-character ligature. The remaining conventions +for diacritics are: |'| and |`| for the acute and grave, respectively; +|"| for the dieresis; and |<| for the rough breathing. (If you're +wondering how to produce quotation marks, or $((e>isagwgik'a))$, +it's by typing |((| and |))|.) + +\heading The Font Layout \endheading + +A further complication has to do with the letter sigma. According to +Knuth [1980], the letter `s' is in a class by itself in terms of +complexity of design; its Greek counterpart is similarly difficult, though +for different reasons. A sigma in initial or medial position in the word +is written $c$, but in final position it is written $s$. Since the +alternation is entirely conditioned, it seemed a pity to require different +characters in the \TeX\ file to represent the two varieties of sigma. + +The first solution I tried made no assumptions on the font. It +consisted in making `s' an active character, which checked the next +token and printed $c$ if it was a letter, $s$ otherwise. There were +two drawbacks to this procedure: the letter `s' could not be used +in control sequences, and the check was expensive. (It also didn't +work when the next token was a control sequence that expanded to one +or more letters.) + +A better idea is to save one position in the font for an +invisible dummy character. All punctuation marks (and the space) +are made active; they expand to the dummy end-of-word character, +plus the punctuation character. An `s' by itself prints as $c$, +while an `s' in ligature with the dummy---which is to say, at the end +of a word---prints as $s$. All other letters yield themselves when +in ligature with the dummy. This is still not ideal for two reasons: +\TeX\ is always ``obeying spaces,'' and words separated by something +other than punctuation or spaces (say |\par|) count as one. (But +this might be the only practicable solution for the Hebrew alphabet, +which has five chameleon letters.) + +The solution I chose avoids the drawbacks above, at the expense of +several positions in the font. Namely, the font contains each of +the possible combinations $sa$, $sb$, \dots, $sw$, which are +automatically accessed as ligatures when the word contains `s' +followed by a letter. + +\pageinsert +{ +\font\twelverm=cmr10 scaled \magstep1 +\font\twelvei=cmmi10 scaled \magstep1\skewchar\twelvei='177 +\font\twelvesy=cmsy10 scaled \magstep1\skewchar\twelvesy='60 +\font\twelvebf=cmbx10 scaled \magstep1 +\font\twelvett=cmtt10 scaled \magstep1\hyphenchar\twelvett=-1 +\font\twelvesl=cmsl10 scaled \magstep1 +\font\twelveit=cmti10 scaled \magstep1 + +\def\twelvepoint{\def\rm{\fam0\twelverm}% + \textfont0=\twelverm + \textfont1=\twelvei + \textfont2=\twelvesy + \textfont3=\tenex + \def\it{\fam\itfam\twelveit}% + \textfont\itfam=\twelveit + \def\sl{\fam\slfam\twelvesl}% + \textfont\slfam=\twelvesl + \def\bf{\fam\bffam\twelvebf}% + \textfont\bffam=\twelvebf \scriptfont\bffam=\sevenbf + \scriptscriptfont\bffam=\fivebf + \def\tt{\fam\ttfam\twelvett}% + \textfont\ttfam=\twelvett + \tt \ttglue=.5em plus.25em minus.15em + \normalbaselineskip=14.5pt + \setbox\strutbox=\hbox{\vrule height10.5pt depth4pt width0pt}% + \normalbaselines\rm} + +\twelvepoint +\font\my=grreg10 scaled \magstep1 +\centerline{ +\def\:{\char\count255\global\advance\count255 by 1} +\count255='0 +\vbox{ +\hbox{\hbox to 40pt{\it\hfill0\/\hfill}% +\hbox to 40pt{\it\hfill1\/\hfill}% +\hbox to 40pt{\it\hfill2\/\hfill}% +\hbox to 40pt{\it\hfill3\/\hfill}% +\hbox to 40pt{\it\hfill4\/\hfill}% +\hbox to 40pt{\it\hfill5\/\hfill}% +\hbox to 40pt{\it\hfill6\/\hfill}% +\hbox to 40pt{\it\hfill7\/\hfill}} +\vskip 4pt +\hrule +\def\^{\vrule height 10.5pt depth 4.5pt} +\halign{\hbox to 0pt{\hskip -24pt {\rm\'{}\kern-.2em\it#}\hfill}&\^ +\hbox to 40pt{\my\hfill#\hfill\^}& +&\hbox to 40pt{\my\hfill#\hfill\^}\cr +00&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +01&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +02&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +03&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +04&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +05&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +06&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +07&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +10&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +11&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +12&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +13&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +14&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +15&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +16&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +17&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +20&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +21&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +22&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +23&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +24&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +25&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +26&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +27&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +30&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +31&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +32&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +33&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +34&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +35&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +36&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule} +37&\:&\:&\:&\:&\:&\:&\:&\:\cr\noalign{\hrule}}} +} +} +\endinsert + +With all the s\plus letter combinations and all the vowels with +diacritics, it turns out that not even 256 characters are enough. +Since I couldn't push the font size any further, I decided to +eliminate some of the vowel\plus diacritic combinations. The obvious +candidates were the combinations of breathings with grave accent, +which can only occur in a restricted number of monosyllables, and +thus can be typeset as accents, because no hyphenation is required +anyway. So I made the characters |<| and |>| active. Depending on +whether or not the next character is $`$, these active characters +expand to an |\accent| or to a |\char|, the latter meant to form +a ligature with what comes next. (Actually, things are not quite +so simple. A breathing or accent over a capital vowel is +traditionally written before the letter, so the |\accent| control +sequence is only emitted if the following character is lowercase.) + +The complete layout of the fonts is shown on the next page. There +are a few unfilled positions, two of which I'm saving for the digamma, +whose design I haven't yet tackled. + +\heading Other Problems \endheading + +In order to write continuous text, I had to prepare a modern Greek +hyphenation table, which I'm currently testing. +The hyphenation of modern Greek follows closely that of ancient Greek, +which is straightforward (that is, described by a fairly short set of +rules) because Greek had originally a phonetic script---one letter +for each phoneme and vice versa. This conservatism means that +hyphenation does not necessarily occur between syllables, as in +the word $stau-r'os$ `cross', now pronounced +[sta\'{}vros]; but this apparently doesn't bother anyone. + +One difficulty, however, cannot be resolved by means of mechanical +rules: the digraphs $mp$, $nt$ and $gk$ are sometimes pronounced as +nasal\plus voiced stop, sometimes as voiced stop alone, depending on +the word (also sometimes on the speaker). In the first case, the group +can be split, but in the second, one should hyphenate before the group. +This problem seems to be solvable only by trial and error. + +The last problem I want to discuss is that of device drivers. +We have been using various |dvi|-to-PostScript drivers in Princeton, +and I found that none of them would work with +256-character fonts, even though both \TeX\ and PostScript are +designed to handle such fonts. I was, however, able to adapt Nelson +Beebe's excellent driver |dvialw| [Beebe 1987] after making only +three changes, because the program is well written and well documented. +I exhort all those who write |dvi| drivers to include 256-character +fonts in their design, since they will certainly become more necessary +as \TeX\ extends its reach around the world. + +\heading Bibliography \endheading + +\def\\{\smallskip\hangindent=\parindent\hangafter=1\noindent\ignorespaces} +\\ +Nelson H. F. Beebe, Public domain \TeX\ DVI driver family, +{\it TUGboat}, {\bf 8}:1 (1987), 41--42. +\\ +British Museum, {\it Greek Printing Types}, London, British Museum, 1927. +\\ +Donald E. Knuth, The Letter S, {\it The Mathematical Intelligencer}, +{\bf 2} (1980), 114--122. +\\ +Stanley Morison, {\it John Fell: the University Press and the `Fell' +Types}, Oxford, Clarendon Press, 1967. +\\ +J. M. Mosley, Porson's Greek Types, {\it Penrose Annual}, {\bf 54} (1960), +36--40. +\\ +Reinhard Wonneberger, Typesetting `Normaltext', {\it TUGboat}, +{\bf 8}:1 (1987), 63--72. +\end diff --git a/fonts/greek/levy/greekmacros.tex b/fonts/greek/levy/greekmacros.tex new file mode 100644 index 0000000000..0dc31f3d36 --- /dev/null +++ b/fonts/greek/levy/greekmacros.tex @@ -0,0 +1,66 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . + +\def\ifnextchar#1#2#3{\let\tempe #1\def\tempa{#2}\def\tempb{#3}\futurelet + \tempc\ifnch} +\def\ifnch{\ifx\tempc\tempe\let\tempd\tempa\else\let\tempd\tempb\fi\tempd} +\def\gobble#1{} +\font\tengr=grreg10 +\font\tengrbf=grbld10 +\font\tengrtt=grtt10 +\def\greekmode{% +\catcode`\<=13 +\catcode`\>=13 +\catcode`\'=11 +\catcode`\`=11 +\catcode`\~=11 +\catcode`\"=11 +\catcode`\|=11 +\lccode`\<=`\<% +\lccode`\>=`\>% +\lccode`\'=`\'% +\lccode`\`=`\`% +\lccode`\~=`\~% +\lccode`\"=`\"% +\lccode`\|=`\|% +\tengr\def\bf{\tengrbf}\def\tt{\tengrtt}} +\newcount\vwl +\newcount\acct +\def\lt{<} +\def\gt{>} +{ + \greekmode + \gdef>{\ifnextchar `{\expandafter\smoothgrave\gobble}{\char\lq\>}} + \gdef<{\ifnextchar `{\expandafter\roughgrave\gobble}{\char\lq\<}} + \gdef\smoothgrave#1{\acct=\rq137 \vwl=\lq#1 \dobreathinggrave} + \gdef\roughgrave#1{\acct=\rq103 \vwl=\lq#1 \dobreathinggrave} + \gdef\dobreathinggrave{\ifnum\vwl\lt\rq140 %if uppercase + \char\the\acct\char\the\vwl\else\expandafter\testiota\fi} + \gdef\testiota{\ifnextchar |{\addiota\doaccent\gobble}{\doaccent}} + \gdef\addiota{\ifnum\vwl=\lq a\vwl=\rq370 + \else\ifnum\vwl=\lq h\vwl=\rq371 \else\vwl=\rq372 \fi\fi} + \gdef\doaccent{\accent\the\acct \char\the\vwl\relax} +} + +\newif\ifgreek\greekfalse + +\def\begingreek{\bgroup\greektrue\greekmode} +\def\endgreek{\egroup} + +\let\math=$ +{\catcode`\$=13 +\gdef\greekdelims{\catcode`\$=13 +\def${\ifgreek\endgreek\else\begingreek\fi} +\def\display{\math\math}\def\enddisplay{\math\math}}} diff --git a/fonts/greek/levy/greekuse.tex b/fonts/greek/levy/greekuse.tex new file mode 100644 index 0000000000..688f026efc --- /dev/null +++ b/fonts/greek/levy/greekuse.tex @@ -0,0 +1,263 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . + +\input amstex +\documentstyle{amsppt} +\nologo +\hsize=6.5in +\vsize=9in +\widowpenalty=10000 +\clubpenalty=10000 + +\input greekmacros +\greekdelims + +\font\sc=cmcsc10 +\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em + T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} +\def\plus{\math{}+{}\math} +\def\.#1{{\tt #1}} +\def\disp#1{\line{\tt #1\hfil}} +\def\angles#1{{$\langle$\rm #1$\rangle$}} +\chardef\!`\\ +\chardef\~`\~ +\chardef\{`\{ +\chardef\}`\} +\chardef\#`\# +\def\begineight{\smallskip\bgroup\eightpoint} +\def\endeight{\par\egroup\smallskip} + +\def\verbatim{\begingroup + \def\do##1{\catcode`##1=12 } \dospecials + \parskip 0pt \parindent 0pt + \catcode`\ =13 \catcode`\^^M=13 + \tt \catcode`\?=0 \verbatimdefs \verbatimgobble} +{\catcode`\^^M=13{\catcode`\ =13\gdef\verbatimdefs{\def^^M{\ \par}\let =\ }} % + \gdef\verbatimgobble#1^^M{}} +\def\beginverbatim{\smallskip\begingroup\verbatim} +\def\endverbatim{\endgroup\endgroup\smallskip} + +\topmatter +\title Using Greek Fonts with \TeX\endtitle +\author Silvio Levy \endauthor +\affil + Princeton University \\ + Fine Hall, Washington Road\\ + Princeton, NJ, 08544\\ + (\.{levy\@princeton.edu}) +\endaffil +\endtopmatter +\document + +\abovedisplayskip6pt plus3pt minus3pt +\belowdisplayskip6pt plus3pt minus3pt +\abovedisplayshortskip0pt plus3pt +\belowdisplayshortskip4pt plus3pt minus4pt + +In this document I hope to show that typesetting Greek in \TeX\ +using the \.{gr} family of fonts can be as easy as typesetting +English text, and leads to equally good results. +This is meant to be a tutorial, not an exhaustive discussion; +some \TeX nical remarks that should be useful after the reader +has acquired some familiarity with the fonts are printed in fine +print. + +\heading +The Alphabet +\endheading + +In order to typeset Greek text, you need to go into ``Greek mode.'' +This is achieved by typing \.{\!begingreek} anywhere in your document; +Greek mode will remain in effect until you type a matching \.{\!endgreek}. +While in Greek mode, the letters `a' to `z' and `A' to `Z' come out +as Greek letters, according to the following code: +\display +\hbox{\valign + {\hbox to 10pt{\hfil\strut$#$\hfil}&\hbox to 10pt{\hfil\strut\tt#\hfil}\cr + a&a\cr b&b\cr g&g\cr d&d\cr e&e\cr z&z\cr h&h\cr j&j\cr + i&i\cr k&k\cr l&l\cr m&m\cr n&n\cr x&x\cr o&o\cr p&p\cr + r&r\cr c&s\cr t&t\cr u&u\cr f&f\cr q&q\cr y&y\cr w&w\cr}} +\enddisplay + +There is no digamma yet. The same character `s' will print as +`$c$' or `$s$', depending on its position in a word. + +\begineight +The system does this by accessing a ligature of `s' with any other +letter that follows it. If, for some reason, you want to print +an initial/medial sigma by itself (as in the table above), or +at the end of a word, you should type `c'. +\endeight + +Try to typeset some simple text now. Create a file +containing the following lines: + +\beginverbatim +\input greekmacros % where \begingreek and other commands are defined +This is English text. +\begingreek +This is Greek text. +\endgreek +?endverbatim + +When you \TeX\ this file, you get the following gibberish: +\display +\hbox{ +This is English text. +\begingreek +This is Greek text. +\endgreek +} +\enddisplay + +If you say \.{\!greekdelims} near the top of your file, +the character \.{\$} can be used +in place of both \.{\!begingreek} and \.{\!endgreek}. The control +sequence \.{\!math} takes on the former meaning of \.{\$}. + +\heading +Accents and Breathings +\endheading + +To get an acute, grave or circumflex accent over a vowel, +type \.{'}, \.{`} or \.{\~}, respectively, before the vowel. +To get a rough or smooth breathing, type \.{<} or \.{>} before +the vowel (or rho) and any accent that it may have. To get an iota +subscript, type \.{|} {\it after\/} the vowel. A diaeresis is +represented by \.{"}, and if accompanied by an accent it can come +before or after the accent. + +For example, \hbox{\.{>en >arq\~h| >\~hn en >arq~h| >~hn agap\~w\}} gives \hbox{$\tt s''>agap~w$}. (Try it.) +On the other hand, there are no ``italic'' or slanted Greek fonts, +so \.{\!it} and \.{\!sl} will give you the same fonts as outside +Greek mode. The various constructions under +\AmSTeX\ and \LaTeX\ for increasing or decreasing point sizes don't +work yet; they will in a future release. + +The characters that form diacritics (\.{<}, \.{>}, +\.{'}, \.{`}, \.{\~}, \.{"} and \.{|}) are treated differently +depending on whether or not you're in Greek mode. More exactly, +under plain \TeX\ these characters (with the exception of +\.{\~}) have a \.{\!catcode} of 12: they print as themselves, +and they cannot appear in control words. But in Greek mode +\.{'}, \.{`}, \.{\~}, \.{"} and \.{|} are ``letters'', that is, +they have a \.{\!catcode} of 11, while \.{<} and \.{>} are +active, with a \.{\!catcode} of 13. This may be important even +for beginners because it means that \.{'}, for example, can be taken +as part of a control word. Thus the sequence +\beginverbatim +\begingreek +\line{wm'ega\hfil'alfa} +\endgreek +?endverbatim +\noindent +will cause an error message about an +undefined control sequence \.{\!hfil'alfa}, instead of printing +\display +$\line{wm'ega\hfil 'alfa}$ +\enddisplay +as you might expect. (I hope classicists will forgive this use +of the modern Greek one-accent system.) The solution, of course, +is to remember to add a blank after the \.{\!hfil}. + +\begineight +A more subtle problem arises when you use Greek text in macro +arguments, if the arguments are scanned while you're outside Greek +mode. This is because \TeX\ assigns \.{\!catcode}s to tokens +as it first reads them, so when the argument is plugged into +the body of the macro the characters above have the wrong +\.{\!catcode}. If the legendary Jonathan Horatio Quick were +to write +\display +\hbox{\.{% +\!def\!hellenize\#1\{\!begingreek \#1\!endgreek\} +\!hellenize\{d'uo >`h tre\~is,\}}} +\enddisplay +he would be unpleasantly surprised by the following output: +\display +\def\hellenize#1{\begingreek #1\endgreek} +\hbox{\hellenize{d'uo >`h tre~is,}} +\enddisplay +which can be explained as follows: the \.{\~}, which should be +a letter, is seen as an active character, and expands to a blank +as in plain \TeX; while the breathing, which should be active, +is not, and in particular it doesn't do the right thing when +next to the grave accent. Solutions to this problem require a +bit of wizardry, and will not be discussed here; see, for example, +Reinhard Wonneberger's article in the October, 1986 issue of +{\it TUGboat}, especially pages 179--180. +\endeight +\end diff --git a/fonts/greek/levy/grinstall.tex b/fonts/greek/levy/grinstall.tex new file mode 100644 index 0000000000..a49f49522c --- /dev/null +++ b/fonts/greek/levy/grinstall.tex @@ -0,0 +1,213 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . + +\magnification=\magstep1 +\def\.#1{{\tt #1}} +\def\disp#1{\line{\tt #1\hfil}} +\def\angles#1{{$\langle$\rm #1$\rangle$}} +\chardef\!`\\ + +\def\verbatim{\begingroup + \def\do##1{\catcode`##1=12 } \dospecials + \parskip 0pt \parindent 0pt + \catcode`\ =13 \catcode`\^^M=13 + \tt \catcode`\?=0 \verbatimdefs \verbatimgobble} +{\catcode`\^^M=13{\catcode`\ =13\gdef\verbatimdefs{\def^^M{\ \par}\let =\ }} % + \gdef\verbatimgobble#1^^M{}} + +\centerline{INSTALLATION INSTRUCTIONS} + +\medskip + +(Note to non-UNIX sites: These instructions should be followed verbatim +only on systems running UNIX. I've tried to make the instructions +understandable to people without knowledge of UNIX, so that if you're +familiar with your own operating system it should not be hard to +figure out the right thing to do under it. If the separator between +components of a file pathname is not `/', you should change the +definition of \.{readfrom} in \.{grbase.mf}. + +See the \.{README} file for an important note concerning required +METAFONT capabilities.) + +In order to make the fonts, you need an executable version of +METAFONT, version 1.0 or newer, with the `plain' base preloaded +(see p.~279 of {\it The METAFONTbook\/} if you're not familiar with this). +You will also need the \.{cmbase.mf} file, which is distributed +with METAFONT, unless you have an executable METAFONT with that +file already preloaded. The shell script (batch file) \.{makefont} +assumes that \.{cmmf} is an executable METAFONT with \.{cmbase.mf} +preloaded; if you don't have that you can replace \.{cmmf} by +\.{mf} in \.{makefont}. (Non-UNIX sites: you'll have to edit +\.{makefont} anyway, as well as \.{testfont} and \.{makeall} below. +In each case the comments inside the file should guide you in finding +the right incantations under your operating system.) + +If METAFONT has never been used at your site before, you will +also need to create a file \.{local.mf} and preload it together +with \.{plain.mf}. (See pp.~278--9 of {\it The METAFONTbook}.) +This file +should contain the characteristics of the different output +devices that you will generate fonts for. The parameters +for many output devices can be found on page 269 of the November +1987 issue of TUGboat; and two more devices (the Apple laserwriter +and Sun workstation) which are not in that table can be found +in \.{modes.mf} (in this distribution). The values in \.{modes.mf} +are experimental; if you feel like fiddling with them and think +you can get better results, let me know. In any case, your +\.{local.mf} should contain mode definitions for all output devices +you intend to use the fonts with, and it should be preloaded +together with \.{plain.mf}, so that when you issue the command +\.{mf} or \.{cmmf} all this information is already in memory. + +Next you should test one font by saying + +\smallskip +\disp{makefont grreg10 [\angles{modename}]} +\smallskip + +(where \angles{modename} stands for \.{alw} if you're generating +for the laserwriter, for example; the default is +\.{localmode}, which should be defined in \.{local.mf}). +It will take a while to make the font, and when +it's done you can look in \.{grreg10.log} to see if everything went +smoothly. If everything is OK, move \.{grreg10.tfm} +and \.{grreg10.NNNgf} to the system's \TeX\ font directory (often +\.{/usr/lib/tex/fonts}) and do a test run: + +\smallskip +\disp{\% tex} +\disp{\angles{blurb...}} +\disp{**\!font\!test=grreg10 \!test ABC \!end} +\disp{\angles{more blurbs; hopefully no error messages}} +\disp{\%} +\smallskip + +The text typed during this test should be very simple, as above: +no accents, ligatures, etc. If you got a \.{texput.dvi} file without +problems, you should try to print it, using your local dvi driver. +Some dvi drivers cannot read font files of the form \.{*.NNNgf}, +only those of the form \.{*.NNNpk}; you can use the utility +\.{gftopk}, which comes with the METAFONT distribution, to carry +out the conversion. If your driver can only read \.{*.NNNpxl} fonts, +it's time to get a new one. + +Another problem with some dvi drivers is that they don't +take 256 character fonts, although they should, since 256 characters +is part of standard \TeX. (The reason is, presumably, that Computer +Modern fonts only have 128 characters, and programmers were counting +on all other fonts being similarly restricted.) To test this +aspect of your driver, create a dvi file with a character in the +range 128-255: + +\smallskip +\disp{\% tex} +\disp{\angles{blurb...}} +\disp{**\!font\!test=grreg10 \!test 'a \!end} +\disp{\angles{more blurbs}} +\disp{\%} +\smallskip + +When you try to print this, you may get an error message, or +a core dump, or simply a blank page. If so, you will have to +fix your driver or get a new one. Fixing your driver involves +understanding fairly well the dvi format (carefully explained +in {\it\TeX: The Program}), but should not be beyond anyone with +a modicum of systems programming experience. Getting a driver +that works is probably easier if you're well connected, +electronically speaking. I recommend Nelson Beebe's family +of drivers (page 41 of the April 1987 TUGboat). Here are +some hints from Nelson Beebe for obtaining his drivers: + +\medskip +\begingroup +\verbatim +> From BEEBE@SCIENCE.UTAH.EDU Mon Dec 21 10:28:08 1987 +> From: "Nelson H.F. Beebe" +> Subject: Re: dvi drivers +> X-Us-Mail: "Center for Scientific Computing, South Physics, +> University of Utah, Salt Lake City, UT 84112" +> X-Telephone: (801) 581-5254 +> +> Internet users may retrieve the DVI driver family via ANONYMOUS +> FTP to SCIENCE.UTAH.EDU; get the via 00README.TXT in the login +> directory for details. The files 00PCDOS.TXT, 00TOPS20.TXT and +> 00VMSSETUP.TXT in the same directory describe TeX and DVI +> directory layouts and system logical names on IBM PC DOS, TOPS-20 +> and VAX VMS. Compressed Unix tar files are available in several +> directories. +> +> VAX VMS BACKUP savesets (compressed and uncompressed) are +> available via ANONYMOUS FTP to CTRSCI.UTAH.EDU; the file +> 00README.TXT in the login directory has further details. +> +> Australian ACSnet users may retrieve the DVI drivers from +> LaTrobe University, Bundoora, Victoria; send mail to +> "munnari!latvax8.lat.oz.au!ccmk"@uunet.uu.net +> for retrieval details. +> +> European Bitnet users may contact $92@dhdurz1.bitnet +> at the University of Heidelberg. Here is how: +> With the command directed at LISTSERV at DHDURZ1.BITNET +> GET DRIVER FILELIST +> you will receive a directory from the driver +> subdirectory. To receive a file: +> GET filename filetype +> +> European DECNET users may retrieve the DVI drivers (and a +> large collection of other TeX-related software) from the +> University of Padova in Padova, Italy; send mail to +> CALVANI%VAXFPD.INFNET@IBOINFN.BITNET +> for retrieval details. +> +> UK Janet users should contact AbbottP@uk.ac.aston.mail (Aston +> University). Here is the latest retrieval information from +> TeXHaX #92 (03-Nov-87): +> The DVI family of drivers software is now stored +> under (and has been for some time) public.texdvi208. +> I have been notified that version 2.10 is being +> shipped and this will be made available under +> public.texdv210. The index for version 2.08 is +> aston.kirk::[public.texdvi208]000index.list +> If you want to know the latest state of the +> archive the file is +> aston.kirk::[public]000aston.readme +?endgroup +\endgroup +\medskip + +Once you've got the driver working, you can type + +\smallskip +\disp{testfont grreg10} +\smallskip + +for a full-blown test of the font \.{grreg10}. This creates +a dvi file \.{grtestfont.dvi} and moves it to \.{grreg10.dvi}, which you +should then print. + +Finally, you can say + +\smallskip +\disp{makeall [ \angles{modename} [ \angles{mag} ]]} +\smallskip + +for all modes and magnifications desired. Don't forget to move +the \.{*.tfm} and \.{*.NNNgf} files thus obtained to their destination +directory. + +The last step is to TeX the user's manual page (\.{doc/readme.tex}) +and make it available to users. +\end diff --git a/fonts/greek/levy/grpunct.mf b/fonts/greek/levy/grpunct.mf new file mode 100644 index 0000000000..2ce4cc1bac --- /dev/null +++ b/fonts/greek/levy/grpunct.mf @@ -0,0 +1,319 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +cmchar "Open quotes (eisagwgik'a)"; +beginchar("{",6.5u#,x_height#,0); +adjust_fit(0,0); +pos0(hair,0); pos1(stem,0); pos2(hair,0); +pos3(hair,0); pos4(stem,0); pos5(hair,0); +y0=y3=.9h; y1=y4=.5h; y2=y5=h-y0; +x1-.5stem=hround(.5u); +x3+.5hair=w-(x1-.5stem); +x4-x1=2stem; x3-x4=x0-x1; x0=x2; x3=x5; +if x1>=x0: x1:=x0-1; x4:=x3-1; +x1l:=x1-.5stem; x1r:=x1+.5stem; +x4l:=x4-.5stem; x4r:=x4+.5stem; fi +filldraw stroke z0e...z1e...z2e; +filldraw stroke z3e...z4e...z5e; +penlabels(0,1,2,3,4,5); endchar; + +cmchar "Close quotes (eisagwgik'a)"; +beginchar("}",6.5u#,x_height#,0); +adjust_fit(0,0); +pos0(hair,0); pos1(stem,0); pos2(hair,0); +pos3(hair,0); pos4(stem,0); pos5(hair,0); +y0=y3=.9h; y1=y4=.5h; y2=y5=h-y0; +x1+.5stem=hround(w-.5u); +x3-.5hair=x5-.5hair=w-(x1+.5stem); +x1-x4=2stem; x3-x4=x0-x1; x0=x2; +if x1<=x0: x1:=x0+1; x4:=x3+1; +x1l:=x1-.5stem; x1r:=x1+.5stem; +x4l:=x4-.5stem; x4r:=x4+.5stem; fi +filldraw stroke z0e...z1e...z2e; +filldraw stroke z3e...z4e...z5e; +penlabels(0,1,2,3,4,5); endchar; + +cmchar "Exclamation point"; +beginchar("!",5u#+width_adj#,asc_height#,0); +italcorr asc_height#*slant-2u#-.5width_adj#+.5dot_size#; +adjust_fit(0,0); +pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); +lft x3l=hround(.5w-.5dot_size); bot y4l=0; z3=z4; dot(3,4); % dot +numeric bot_width; +bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; +pickup fine.nib; pos1(dot_size,0); pos2(bot_width,0); +x1=x2=x3; bot y2=.25[top y4r,x_height]+1; +if square_dots: top y1=h; + filldraw stroke z1e--z2e; % stem +else: top z0=(x1,h+o); y1+.5dot_size=h+o; + filldraw z1r...z0...z1l---z2l--z2r---cycle; fi % stem and bulb +penlabels(0,1,2,3,4); endchar; + +cmchar "Per cent sign"; +beginchar("%",9u#+max(6u#,2fudge*(hair#+stem#)), + body_height#,body_height#-asc_height#); +italcorr if hefty: .4asc_height#*slant-.5u# else: h#*slant-u# fi; +adjust_fit(0,0); pickup fine.nib; +numeric left_curve,right_curve; +left_curve=hround 5/6[fudged.hair,fudged.stem]; +right_curve=max(fine.breadth,hround(fudged.hair if hefty:-2stem_corr fi)); +pos1(vair,90); pos2(left_curve,180); pos3(vair,270); pos4(right_curve,360); +top y1r=h; lft x2r=hround u; rt x4r=hround(.5w-1.5u); +bot y3r=floor(if monospace: .7 else: .5 fi\\ asc_height); +x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; +filldraw stroke pulled_super_arc.e(1,2)(superpull) + & pulled_super_arc.e(2,3)(superpull); % left half of upper bowl +filldraw stroke super_arc.e(3,4) & super_arc.e(4,1); % right half of upper bowl +pos5(vair,90); pos6(left_curve,180); pos7(vair,270); pos8(right_curve,360); +bot y7r=-d; rt x8r=hround(w-u); lft x6r=hround(.5w+1.5u); +top y5r=vround(if monospace: .3 else: .5 fi\\ asc_height); +x5=x7=.5[x6,x8]; y6=y8=.5[y5,y7]; +filldraw stroke pulled_super_arc.e(5,6)(superpull) + & pulled_super_arc.e(6,7)(superpull); % left half of lower bowl +filldraw stroke super_arc.e(7,8) & super_arc.e(8,5); % right half of lower bowl +pickup rule.nib; top y9=h; bot y10=-d; +if hefty: x9=good.x(x5-eps); x10=good.x(x1+eps); + draw z9--z10; % diagonal +else: rt x9=hround(w-2.5u); lft x10=hround 2.5u; draw z9--z10; % diagonal + pickup fine.nib; pos9(rule_thickness,angle(z9-z10)+90); + pos11(vair,angle(z1r-z4r)-90); pos12(vair,angle(z9-z10)+90); + path p; p=super_arc.r(1,4); z11r=point 2/3 of p; z12r=z9r; + filldraw stroke z11e{direction 2/3 of p}...{z9-z10}z12e; fi % link +penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 5u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= +x1-.5dot_size=hround(.5w-.5dot_size); y1+.5dot_size=h; +if monospace: comma(1,a,dot_size,.28u,vround 1.5comma_depth); % large comma +else: comma(1,a,dot_size,.25u,comma_depth); fi % comma with increased jut +enddef; + +cmchar "Apostrophe"; +beginchar(oct"035",dims); +this_letter; penlabels(1); endchar; + +cmchar "Lowercase sigma followed by apostrophe"; +begindoublechar(oct"003",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; + +cmchar "Left parenthesis"; +beginchar("(",7u# if monospace: -u# fi,body_height#,paren_depth#); +italcorr body_height#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,0); pos2(.75[hair,stem],0); pos3(vair,0); +rt x1r=rt x3r=hround(w-u); lft x2l=hround(x1-4u if monospace: +4/3u fi); +top y1=h; y2=.5[y1,y3]=math_axis; +filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e + ...{3(x3e-x2e),y3-y2}z3e; % arc +penlabels(1,2,3); endchar; + +cmchar "Right parenthesis"; +beginchar(")",7u# if monospace: -u# fi,body_height#,paren_depth#); +italcorr math_axis#*slant-.5u#; +adjust_fit(0,0); pickup fine.nib; +pos1(vair,0); pos2(.75[hair,stem],0); pos3(vair,0); +lft x1l=lft x3l=hround u; rt x2r=hround(x1+4u if monospace: -4/3u fi); +top y1=h; y2=.5[y1,y3]=math_axis; +filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e + ...{3(x3e-x2e),y3-y2}z3e; % arc +penlabels(1,2,3); endchar; + +cmchar "Asterisk"; +beginchar("*",9u#, + if low_asterisk:math_axis#+.5x_height# else: body_height# fi,0); +italcorr h#*slant-.75u#; +adjust_fit(0,0); +numeric ast_flare; ast_flare=hround .7[thin_join,stem]; +x0=.5w; y0=h-.5x_height; +for d=-150 step 60 until 150: z[d]=z0+.5dir d xscaled 7.5u yscaled x_height; + numeric theta; theta=angle(z[d]-z0); + fill z0+.5(0,-thin_join)rotated theta + ---z[d]+.5(-ast_flare,-ast_flare)rotated theta + ..z[d]..z[d]+.5(-ast_flare,ast_flare)rotated theta + ---z0+.5(0,thin_join)rotated theta--cycle; endfor % diagonal at angle |d| +labels(0,[-150],[-90],[-30],30,90,150); endchar; + +cmchar "Plus sign"; +beginarithchar("+"); pickup rule.nib; +x1=x2=good.x .5w; top y1=h+eps; .5[y1,y2]=math_axis; +lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis; +draw z1--z2; % stem +draw z3--z4; % crossbar +labels(1,2,3,4); endchar; + +cmchar "Comma"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(",",5u#,dot_diam#,comma_depth#); +adjust_fit(0,0); +x1-.5dot_diam=hround(.5w-.5dot_diam); y1-.5dot_diam=0; +comma(1,a,dot_diam,.2u,comma_depth); % dot and tail +penlabels(1); endchar; + +cmchar "Period"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(".",5u#,dot_diam#,0); +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); bot y2l=0; z1=z2; dot(1,2); % dot +penlabels(1,2); endchar; + +cmchar "Virgule (slash)"; +beginchar("/",9u#,body_height#,paren_depth#); +italcorr body_height#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; +rt x1=hround(w-u)+eps; top y1=h+eps; +lft x2=hround u-eps; bot y2=-d-eps; +draw z1--z2; % diagonal +penlabels(1,2); endchar; + +cmchar "Colon"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(":",5u#,x_height#,0); +italcorr x_height#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +pos3(dot_diam,0); pos4(dot_diam,90); +x3=x1; bot y4l=0; z3=z4; dot(3,4); % lower dot +penlabels(1,2,3,4); endchar; + +cmchar "'Anw tele'ia"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar(";",5u#,x_height#,0); +italcorr x_height#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +penlabels(1,2); endchar; + +cmchar "Question mark"; +numeric dot_diam#; dot_diam#=if monospace: 5/4 fi\\ dot_size#; +define_whole_blacker_pixels(dot_diam); +beginchar("?",5u#,x_height#,comma_depth#); +italcorr x_height#*slant+.5dot_diam#-2u#; +adjust_fit(0,0); pickup fine.nib; +pos1(dot_diam,0); pos2(dot_diam,90); +lft x1l=hround(.5w-.5dot_diam); top y2r=h; z1=z2; dot(1,2); % upper dot +x3-.5dot_diam=hround(.5w-.5dot_diam); y3-.5dot_diam=0; +comma(3,a,dot_diam,.05u,comma_depth); % lower dot and tail +penlabels(1,2,3); endchar; + +cmchar "Equals sign"; +compute_spread(.45x_height#,.55x_height#); +beginchar("=",14u#,v_center(spread#+rule_thickness#)); +italcorr h#*slant-.5u#; +adjust_fit(0,0); pickup rule.nib; +lft x1=hround u-eps; x3=x1; x2=x4=w-x1; +y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis; +draw z1--z2; % upper bar +draw z3--z4; % lower bar +labels(1,2,3,4); endchar; + +cmchar "Left bracket"; +numeric wd#; wd#=max(5u#,4.5u#+.5if hefty:stem# else:rule_thickness# fi); +beginchar("[",wd#,body_height#,paren_depth#); +italcorr body_height#*slant; +adjust_fit(0,0); +numeric top_thickness,side_thickness; +if hefty: top_thickness=vair; + side_thickness=max(crisp.breadth,stem-2stem_corr); +else: top_thickness=side_thickness=rule_thickness; fi; +pickup crisp.nib; pos1(side_thickness,0); pos2(side_thickness,0); +top y1=h; bot y2=-d; lft x1l=lft x2l=hround(2.5u-.5side_thickness)-1-eps; +filldraw stroke z1e--z2e; % stem +pos3(top_thickness,90); pos4(top_thickness,90); +pos5(top_thickness,90); pos6(top_thickness,90); +x3=x5=x1l; rt x4=rt x6=ceiling(w-.4u)+eps; y3r=y4r=y1; y5l=y6l=y2; +filldraw stroke z3e--z4e; % upper bar +filldraw stroke z5e--z6e; % lower bar +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Right bracket"; +numeric wd#; wd#=max(5u#,4.5u#+.5if hefty:stem# else:rule_thickness# fi); +beginchar("]",wd#,body_height#,paren_depth#); +italcorr body_height#*slant-2u#+.5if hefty:stem# else:rule_thickness# fi; +adjust_fit(0,0); +numeric top_thickness,side_thickness; +if hefty: top_thickness=vair; + side_thickness=max(crisp.breadth,stem-2stem_corr); +else: top_thickness=side_thickness=rule_thickness; fi; +pickup crisp.nib; pos1(side_thickness,0); pos2(side_thickness,0); +top y1=h; bot y2=-d; rt x1r=rt x2r=hround(w-2.5u+.5side_thickness)+1+eps; +filldraw stroke z1e--z2e; % stem +pos3(top_thickness,90); pos4(top_thickness,90); +pos5(top_thickness,90); pos6(top_thickness,90); +x3=x5=x1r; lft x4=lft x6=floor .4u-eps; y3r=y4r=y1; y5l=y6l=y2; +filldraw stroke z3e--z4e; % upper bar +filldraw stroke z5e--z6e; % lower bar +penlabels(1,2,3,4,5,6); endchar; + +cmchar "Reverse apostrophe"; +beginchar(oct"034",5u#,asc_height#,0); +italcorr asc_height#*slant+.5dot_size#-2u#; +adjust_fit(0,0); +x1-.5dot_size=hround(.5w-.5dot_size); y1+.5dot_size=h-comma_depth; +if monospace: ammoc(1,a,dot_size,.28u,vround 1.5comma_depth); % large ammoc +else: ammoc(1,a,dot_size,.25u,comma_depth); fi % normal ammoc +penlabels(1); endchar; + +cmchar "Hyphen"; +beginchar("-",6u#,x_height#,0); +italcorr .5x_height#*slant-.5u#; +adjust_fit(0,0); +numeric thickness; thickness=if hefty:bar else:.75[hair,stem] fi; +pickup crisp.nib; pos1(thickness,90); pos2(thickness,90); +top y1r=top y2r=vround(.5h+.5thickness); rt x2=hround(w-u)+eps; +if monospace: x2=w-x1 else: lft x1=hround .2u-eps fi; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; + +cmchar "En dash"; +beginchar(oct"000",9u#,x_height#,0); +italcorr .61803x_height#*slant+.5u#; +adjust_fit(0,0); +pickup crisp.nib; pos1(vair,90); pos2(vair,90); +top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; + +cmchar "Em dash"; +beginchar(oct"177",18u#,x_height#,0); +italcorr .61803x_height#*slant+.5u#; +adjust_fit(letter_fit#,letter_fit#); +pickup crisp.nib; pos1(vair,90); pos2(vair,90); +top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps; +filldraw stroke z1e--z2e; % bar +penlabels(1,2); endchar; diff --git a/fonts/greek/levy/grreg10.mf b/fonts/greek/levy/grreg10.mf new file mode 100644 index 0000000000..3c68d73925 --- /dev/null +++ b/fonts/greek/levy/grreg10.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Regular 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grreg"; font_size 10pt#; + +u#:=20/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=270/36pt#; % height of tallest characters +asc_height#:=250/36pt#; % height of lowercase ascenders +cap_height#:=246/36pt#; % height of caps +fig_height#:=232/36pt#; % height of numerals +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=90/36pt#; % axis of symmetry for math symbols +bar_height#:=82/36pt#; % height of crossbar in lowercase e +comma_depth#:=70/36pt#; % depth of comma below baseline +desc_depth#:=90/36pt#; % depth of lowercase descenders +acc_ht#:=250/36pt#; +circ_ht#:=225/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=72/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=9/36pt#; % lowercase hairline breadth +stem#:=27/36pt#; % lowercase stem breadth +curve#:=30/36pt#; % lowercase curve breadth +ess#:=27/36pt#; % breadth in middle of lowercase s +flare#:=27/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=38/36pt#; % diameter of dots +cap_hair#:=11/36pt#; % uppercase hairline breadth +cap_stem#:=32/36pt#; % uppercase stem breadth +cap_curve#:=37/36pt#; % uppercase curve breadth +cap_ess#:=35/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.4pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=20/36pt#; % vertical distance from serif base to tangent +jut#:=28/36pt#; % protrusion of lowercase serifs +cap_jut#:=37/36pt#; % protrusion of uppercase serifs +beak_jut#:=10/36pt#; % horizontal protrusion of beak serifs +beak#:=70/36pt#; % vertical protrusion of beak serifs +vair#:=8/36pt#; % vertical diameter of hairlines +notch_cut#:=10pt#; % maximum breadth above or below notches +bar#:=11/36pt#; % lowercase bar thickness +slab#:=11/36pt#; % serif and arm thickness +cap_bar#:=11/36pt#; % uppercase bar thickness +cap_band#:=11/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=10pt#; % max breadth above/below uppercase notches +serif_drop#:=4/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=8/36pt#; % amount of overshoot for curves +apex_o#:=8/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/grreg8.mf b/fonts/greek/levy/grreg8.mf new file mode 100644 index 0000000000..fbd5c03384 --- /dev/null +++ b/fonts/greek/levy/grreg8.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Regular 8 point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grreg"; font_size 8pt#; + +u#:=17/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=4.1/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=216/36pt#; % height of tallest characters +asc_height#:=200/36pt#; % height of lowercase ascenders +cap_height#:=196.8/36pt#; % height of caps +fig_height#:=185.6/36pt#; % height of numerals +x_height#:=124/36pt#; % height of lowercase without ascenders +math_axis#:=72/36pt#; % axis of symmetry for math symbols +bar_height#:=69.6/36pt#; % height of crossbar in lowercase e +comma_depth#:=56/36pt#; % depth of comma below baseline +desc_depth#:=56/36pt#; % depth of lowercase descenders +acc_ht#:=210/36pt#; +circ_ht#:=180/36pt#; +Circ_ht#:=210/36pt#; +iota_dp#:=57.6/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=8/36pt#; % lowercase hairline breadth +stem#:=24/36pt#; % lowercase stem breadth +curve#:=25.5/36pt#; % lowercase curve breadth +ess#:=23/36pt#; % breadth in middle of lowercase s +flare#:=23/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=32/36pt#; % diameter of dots +cap_hair#:=9.5/36pt#; % uppercase hairline breadth +cap_stem#:=26.5/36pt#; % uppercase stem breadth +cap_curve#:=30/36pt#; % uppercase curve breadth +cap_ess#:=27/36pt#; % breadth in middle of uppercase s +rule_thickness#:=.36pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=16/36pt#; % vertical distance from serif base to tangent +jut#:=22/36pt#; % protrusion of lowercase serifs +cap_jut#:=29/36pt#; % protrusion of uppercase serifs +beak_jut#:=8.4/36pt#; % horizontal protrusion of beak serifs +beak#:=56/36pt#; % vertical protrusion of beak serifs +vair#:=6.6/36pt#; % vertical diameter of hairlines +notch_cut#:=8pt#; % maximum breadth above or below notches +bar#:=9.5/36pt#; % lowercase bar thickness +slab#:=9.5/36pt#; % serif and arm thickness +cap_bar#:=9.5/36pt#; % uppercase bar thickness +cap_band#:=9.5/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=8pt#; % max breadth above/below uppercase notches +serif_drop#:=3.2/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=6/36pt#; % amount of overshoot for curves +apex_o#:=6/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0.4; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/grreg9.mf b/fonts/greek/levy/grreg9.mf new file mode 100644 index 0000000000..b92b9c3292 --- /dev/null +++ b/fonts/greek/levy/grreg9.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Regular 9.00point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grreg"; font_size 9.00pt#; + +u#:=18.5/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=4.5/36pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=243.0/36pt#; % height of tallest characters +asc_height#:=225.0/36pt#; % height of lowercase ascenders +cap_height#:=221.4/36pt#; % height of caps +fig_height#:=208.8/36pt#; % height of numerals +x_height#:=139.5/36pt#; % height of lowercase without ascenders +math_axis#:=81.0/36pt#; % axis of symmetry for math symbols +bar_height#:=75.8/36pt#; % height of crossbar in lowercase e +comma_depth#:=63.0/36pt#; % depth of comma below baseline +desc_depth#:=73.0/36pt#; % depth of lowercase descenders +acc_ht#:=230.0/36pt#; +circ_ht#:=202.5/36pt#; +Circ_ht#:=230.0/36pt#; +iota_dp#:=64.8/36pt#; + +crisp#:=0pt#; % diameter of serif corners +tiny#:=8/36pt#; % diameter of rounded corners +fine#:=7/36pt#; % diameter of sharply rounded corners +thin_join#:=7/36pt#; % width of extrafine details +hair#:=8.5/36pt#; % lowercase hairline breadth +stem#:=25.5/36pt#; % lowercase stem breadth +curve#:=27.8/36pt#; % lowercase curve breadth +ess#:=25.0/36pt#; % breadth in middle of lowercase s +flare#:=25.0/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=35.0/36pt#; % diameter of dots +cap_hair#:=10.3/36pt#; % uppercase hairline breadth +cap_stem#:=29.3/36pt#; % uppercase stem breadth +cap_curve#:=33.5/36pt#; % uppercase curve breadth +cap_ess#:=31.0/36pt#; % breadth in middle of uppercase s +rule_thickness#:=0.38pt#; % thickness of lines in math symbols + +dish#:=1/36pt#; % amount erased at top or bottom of serifs +bracket#:=18.0/36pt#; % vertical distance from serif base to tangent +jut#:=25.0/36pt#; % protrusion of lowercase serifs +cap_jut#:=33.0/36pt#; % protrusion of uppercase serifs +beak_jut#:=9.2/36pt#; % horizontal protrusion of beak serifs +beak#:=63.0/36pt#; % vertical protrusion of beak serifs +vair#:=7.3/36pt#; % vertical diameter of hairlines +notch_cut#:=9.00pt#; % maximum breadth above or below notches +bar#:=10.3/36pt#; % lowercase bar thickness +slab#:=10.3/36pt#; % serif and arm thickness +cap_bar#:=10.3/36pt#; % uppercase bar thickness +cap_band#:=10.3/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=9.00pt#; % max breadth above/below uppercase notches +serif_drop#:=3.6/36pt#; % vertical drop of sloped serifs +stem_corr#:=1/36pt#; % for small refinements of stem breadth +vair_corr#:=1/36pt#; % for small refinements of hairline height +apex_corr#:=0pt#; % extra width at diagonal junctions + +o#:=7.0/36pt#; % amount of overshoot for curves +apex_o#:=7.0/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=1; % factor applied to weights of heavy characters +math_spread:=0.20; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=1/6; % extra openness inside bowls +beak_darkness:=11/30; % fraction of triangle inside beak serifs +ligs:=2; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=false; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=false; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=false; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=false; % should stems, etc. be straight? +monowidth:=false; %are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/grtestfont.tex b/fonts/greek/levy/grtestfont.tex new file mode 100644 index 0000000000..766cdfd47d --- /dev/null +++ b/fonts/greek/levy/grtestfont.tex @@ -0,0 +1,259 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . + +% This file is supposed to provide a testbed for font evaluation. + +\tracinglostchars=0 +\tolerance=1000 +\raggedbottom +\nopagenumbers +\parindent=0pt +\newlinechar=`@ +\input greekmacros + +\newcount\m \newcount\n \newcount\p \newdimen\dim +\chardef\other=12 + +\def\today{\ifcase\month\or + January\or February\or March\or April\or May\or June\or + July\or August\or September\or October\or November\or December\fi + \space\number\day, \number\year} +\def\hours{\n=\time \divide\n 60 + \m=-\n \multiply\m 60 \advance\m \time + \twodigits\n\twodigits\m} +\def\twodigits#1{\ifnum #1<10 0\fi \number#1} + +{\catcode`\|=0 \catcode`\\=\other +|gdef|help{|message{% +\init switches to another font;@% +\end or \bye finishes the run;@% +\table prints the font layout in tabular format;@% +\text prints a sample text, assuming TeX text font conventions;@% +\sample combines \table and \text;@% +\mixture mixes a background character with a series of others;@% +\alternation interleaves a background character with a series;@% +\alphabet prints all lowercase letters within a given background;@% +\alphabets does one \alphabet for each lowercase background letter;@% +\ALPHABET prints all uppercase letters within a given background;@% +\ALPHABETs does one \ALPHABET for each uppercase background letter;@% +\accents prints all lowercase vowels with accents and breathings;@% +\series prints a series of letters withing a given background;@% +\lowers prints a comprehensive test of lowercase;@% +\uppers prints a comprehensive test of uppercase;@% +\digits prints a comprehensive test of numerals;@% +\math prints a comprehensive test of TeX math italic;@% +\names prints a text that mixes upper and lower case;@% +\punct prints a punctuation test;@% +\bigtest combines many of the above routines;@% +\help repeats this message;@% +and you can use ordinary TeX commands (e.g., to \input a file).}}} + +\def\setbaselineskip{\setbox0=\hbox{\n=0 +\loop\char\n \ifnum \n<255 \advance\n 1 \repeat} +\baselineskip=6pt \advance\baselineskip\ht0 \advance\baselineskip\dp0 } + +\def\setchar#1{{\escapechar-1\message{\string#1 character = }% + \def\do##1{\catcode`##1=\other}\dospecials + \read-1 to\next + \expandafter\finsetchar\next\next#1}} +\def\finsetchar#1#2\next#3{\global\chardef#3=`#1 + \ifnum #3=`\# \global\chardef#3=#2 \fi} +\def\promptthree{\setchar\background + \setchar\starting \setchar\ending} + +\def\init{\message{@Name of the font to test = } + \read-1 to\fontname + \font\testfont=\fontname + \headline={\sevenrm Test of \fontname\unskip\ on \today\ at \hours\hfil + Page \folio} + \testfont \setbaselineskip + \ifdim\fontdimen6\testfont<10pt \rightskip=0pt plus 20pt + \else\rightskip=0pt plus 2em \fi + \spaceskip=\fontdimen2\testfont % space between words (\raggedright) + \xspaceskip=\fontdimen2\testfont \advance\xspaceskip by\fontdimen7\testfont + \message{Now type a test command (\string\help\space for help):}} + +\def\mixture{\promptthree \domix\mixpattern} +\def\alternation{\promptthree \domix\altpattern} +\def\mixpattern{\0\1\0\0\1\1\0\0\0\1\1\1\0\1} +\def\altpattern{\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0} +\def\domix#1{\par\chardef\0=\background \n=\starting + \until\ifnum\n=\ending\do\chardef\1=\n #1\par\n=\count\n \repeat} + +\count`w=`a\count`a=`b\count`b=`g\count`g=`d\count`d=`e\count`e=`z +\count`z=`h\count`h=`j\count`j=`i\count`i=`k\count`k=`l\count`l=`m +\count`m=`n\count`n=`x\count`x=`o\count`o=`p\count`p=`r\count`r=`c +\count`c=`t\count`t=`u\count`u=`f\count`f=`q\count`q=`y\count`y=`w +\count`W=`A\count`A=`B\count`B=`G\count`G=`D\count`D=`E\count`E=`Z +\count`Z=`H\count`H=`J\count`J=`I\count`I=`K\count`K=`L\count`L=`M +\count`M=`N\count`N=`X\count`X=`O\count`O=`P\count`P=`R\count`R=`S +\count`S=`T\count`T=`U\count`U=`F\count`F=`Q\count`Q=`Y\count`Y=`W +\count`0=`1\count`1=`2\count`2=`3\count`3=`4\count`4=`5 +\count`5=`6\count`6=`7\count`7=`8\count`8=`9\count`9=`0 + +\long\def\until#1\do#2\repeat{\def\body{#2}\def\cond{#1}\etareti} +\def\etareti{\cond\let\next=\relax\else\let\next=\etareti\fi\body\next} + +\def\alphabet{\setchar\background \dosseries{`a}{`w}} +\def\ALPHABET{\setchar\background \doseries{`A}{`W}} +\def\series{\promptthree \doseries\starting\ending} +\def\doseries#1#2{\def\!{\discretionary{\background}{\background}{\background}} + \!\n=#1\until\ifnum\n=#2\do\char\n\!\n=\count\n \repeat\par} +\def\dosseries#1#2{\def\!{\discretionary{\background}{\background}{\background}} + \!\n=#1\until\ifnum\n=#2\do\char\n\!\n=\count\n \repeat s\par} + +\def\lowers{\docomprehensive hs{`a}{`w}} +\def\uppers{\docomprehensive HO{`A}{`W}} +\def\digits{\docomprehensive H0{`0}{`9}} +\def\docomprehensive#1#2#3#4{\par\n=#3 + \until\ifnum\n=#4\do\line{\altr#1\hfil\altr#2}\n=\count\n\repeat} +\def\altr#1{\setbox0=\hbox{#1}\setbox2=\hbox{#1\char\n}% + \dim=.5\hsize \advance\dim-\wd0 \divide\dim\wd2 \multiply\dim\wd2 + \xleaders\box2\hskip\dim\box0} +\def\alphabets{\m=`a\until\ifnum\m=`w + \do\chardef\background=\m{\dosseries{`a}{`w}}\m=\count\m \repeat} +\def\ALPHABETS{\m=`A\until\ifnum\m=`W + \do\chardef\background=\m{\doseries{`A}{`W}}\m=\count\m \repeat} + +\def\separator{\vfil\penalty-100\vfilneg + \medskip\leaders\hrule height.4pt\vskip.4pt\medskip} + +\def\bigtest{% +\sample\vfil\break +\accents\separator +\names\separator +\punct\separator +\alphabets\separator +\lowers\separator +\uppers\separator +\digits} + +\def\math{\message{(Sorry, that's not here yet.)}} + +\def\oct#1{\hbox{\tenrm\'{}\kern-.2em\tenit#1\/\kern.05em}} % octal constant +\def\hex#1{\hbox{\tenrm\H{}\tentt#1}} % hexadecimal constant +\def\setdigs#1"#2{\gdef\h{#2}% \h=hex prefix; \0\1=corresponding octal + \m=\n \divide\m by 64 \xdef\0{\the\m}% + \multiply\m by-64 \advance\m by\n \divide\m by 8 \xdef\1{\the\m}} +\def\testrow{\setbox0=\hbox{\penalty 1\def\\{\char"\h}% + \\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F% + \global\p=\lastpenalty}} % \p=1 if none of the characters exist +\def\oddline{\cr + \noalign{\nointerlineskip} + \multispan{19}\hrulefill& + \setbox0=\hbox{\lower 2.3pt\hbox{\hex{\h x}}}\smash{\box0}\cr + \noalign{\nointerlineskip}} +\newif\ifskipping +\def\evenline{\loop\skippingfalse + \ifnum\n<256 \m=\n \divide\m 16 \chardef\next=\m + \expandafter\setdigs\meaning\next \testrow + \ifnum\p=1 \skippingtrue \fi\fi + \ifskipping \global\advance\n 16 \repeat + \ifnum\n=256 \let\next=\endchart\else\let\next=\morechart\fi + \next} +\def\morechart{\cr\noalign{\hrule} + \chartline \oddline \m=\1 \advance\m 1 \xdef\1{\the\m} + \chartline \evenline} +\def\chartline{&\oct{\0\1x}&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&} +\def\chartstrut{\lower4.5pt\vbox to14pt{}} +\def\table{$$\global\n=0 + \halign to\hsize\bgroup + \chartstrut##\tabskip0pt plus10pt& + &\hfil##\hfil&\vrule##\cr + \lower6.5pt\null + &&&\oct0&&\oct1&&\oct2&&\oct3&&\oct4&&\oct5&&\oct6&&\oct7&\evenline} +\def\endchart{\cr\noalign{\hrule} + \raise11.5pt\null&&&\hex 8&&\hex 9&&\hex A&&\hex B& + &\hex C&&\hex D&&\hex E&&\hex F&\cr\egroup$$\par} +\def\:{\setbox0=\hbox{\char\n}% + \ifdim\ht0>7.5pt\reposition + \else\ifdim\dp0>2.5pt\reposition\fi\fi + \box0\global\advance\n 1 } +\def\reposition{\setbox0=\vbox{\kern2pt\box0}\dim=\dp0 + \advance\dim 2pt \dp0=\dim} +\def\centerlargechars{ + \def\reposition{\setbox0=\hbox{$\vcenter{\kern2pt\box0\kern2pt}$}}} + +\begingreek + +\def\accents{\longseries a\shortseries e\longseries h\mediumseries i +\shortseries o\mediumseries u\longseries w \rseries} +\def\longseries#1{#1 `#1 '#1 ~#1 #1| `#1| '#1| ~#1| <#1 <`#1 <'#1 <~#1 <#1| + <`#1| <'#1| <~#1| >#1 >`#1 >'#1 >~#1 >#1| >`#1| >'#1| >~#1| \par} +\def\shortseries#1{#1 `#1 '#1 <#1 <`#1 <'#1 >#1 >`#1 >'#1 \par} +\def\mediumseries#1{#1 `#1 '#1 ~#1 % + <#1 <`#1 <'#1 <~#1 >#1 >`#1 >'#1 >~#1 "#1 "`#1 "'#1 "~#1 \par} +\def\rseries{r r\par} +\def\names{ >Afrod'ith Beatr'ikh Gi'wrgos Dhm'htrhs E>ugen'ia + Zw'h Iw'anna K'wstas Louk~as + Mar'ia N'ikh Xanjo'ula O>id'ipous Pl'atwn Rox'anh S'ilbio + Thl'emaqos Wrig'enhs\par} +\def\punct{{\hyphenpenalty=10000\par\dopunct{ka'i}\dopunct{t~hs}\dopunct{<'ena} + \dopunct{'Oros. O`h >ap`o +mustikop'ajeia n`a z'hsw mi`a perasm'enh >epoq'h. +Ka`i t'wra, n'a, ntr'epomai n`a mil'hsw. + +P~ws n`a t`o p~w? Jumo~umai <'ena >anoixi'atiko +deilin'o, po`u kat'ebaina t`on Ta"'ugeto, mi`a xafnik`h +j'uella m`e k'uklwse kont`a sto'us Pentaulo'us. T'oso +fober`os >anemoc'ifounas, po`u >'epesa katag~hs gi`a n`a m`hn +gkremist~w. Oastrap`es m'' >'exwsan 'ekleisa +t`a m'atia m`hn tuflwj~w, ka`i kat'aqama, p'istoma, per'imena. +<'Olo t`o pan'uyhlo boun`o >'etreme, ka`i du`o >'elata d'ipla mou +tsak'isthkan >ap'' t`h m'esh ka`i br'onthxan q'amou. +>'Eniwja t`o jei'afi to~u kerauno~u st`on >a'era, ka`i xafnik`a +x'espase 'epesen 'anemos, ka`i qontr'es, jerm`es +st'ales broq`h qt'uphsan t`a dentr`a ka`i t`o q~wma. +T`o jum'ari, ap'' t`o ner'o, t'inaxan t`is murwdi'es tous +ki <'olh All'' >ako'usontai, >e'anper e>~u dok~h|s l'egein. t'ode d'e sou +>enen'ohsa <'ama l'egontos, ka`i pr`os >emaut`on skop~w; e>i +<'oti m'alist'a me E>uj'ufrwn did'axeien, 'adikon e>~inai, t'i m~allon >eg`w +mem'ajhka par'' E>uj'ufronos, t'i pot'' >est`in t`o <'osi'on te ka`i +t`o >an'osion? jeomis`es m`en g`ar to~uto t`o >'ergon, 'eoiken, +e>'ih >'an; >all`a g`ar o>u to'utw| >ef'anh >'arti `on ka`i jeofil`es >ef'anh. +af'ihm'i se, >~w E>uj'ufron; e>i bo'ulei, p'antes +a>ut`o 'adikon ka`i p'antes miso'untwn. >all'' +>~ara to~uto n~un >epanorj'wmeja >en t~w| l'ogw|, `an +p'antes oan'osi'on >estin, <`o d'' >`an fil~wsin, +<'osion; <`o d'' >`an oud'etera +>`h amf'otera? >~ar'' o<'utw bo'ulei anos'iou? +\from{Plato's ``Euthyphro''} + +}} + +\def\sample{\text\table} + +\init diff --git a/fonts/greek/levy/grtt10.mf b/fonts/greek/levy/grtt10.mf new file mode 100644 index 0000000000..3a1affb794 --- /dev/null +++ b/fonts/greek/levy/grtt10.mf @@ -0,0 +1,108 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +% Greek Typewriter Text for use with 10 point +if unknown cmbase: input cmbase fi +if unknown grbase: input grbase fi + +font_identifier:="grtt"; font_size 10pt#; + +u#:=21/36pt#; % unit width +width_adj#:=0pt#; % width adjustment for certain characters +serif_fit#:=0pt#; % extra sidebar near lowercase serifs +cap_serif_fit#:=0pt#; % extra sidebar near uppercase serifs +letter_fit#:=0pt#; % extra space added to all sidebars + +body_height#:=250/36pt#; % height of tallest characters +asc_height#:=230/36pt#; % height of lowercase ascenders %was 220 +cap_height#:=230/36pt#; % height of caps %was 220 +fig_height#:=230/36pt#; % height of numerals %was 220 +x_height#:=155/36pt#; % height of lowercase without ascenders +math_axis#:=110/36pt#; % axis of symmetry for math symbols +bar_height#:=79/36pt#; % height of crossbar in lowercase e +comma_depth#:=50/36pt#; % depth of comma below baseline +desc_depth#:=80/36pt#; % depth of lowercase descenders +acc_ht#:=230/36pt#; +circ_ht#:=230/36pt#; +Circ_ht#:=250/36pt#; +iota_dp#:=64/36pt#; + +crisp#:=22/36pt#; % diameter of serif corners +tiny#:=22/36pt#; % diameter of rounded corners +fine#:=21/36pt#; % diameter of sharply rounded corners +thin_join#:=21/36pt#; % width of extrafine details +hair#:=24/36pt#; % lowercase hairline breadth +stem#:=24/36pt#; % lowercase stem breadth +curve#:=24/36pt#; % lowercase curve breadth +ess#:=22/36pt#; % breadth in middle of lowercase s +flare#:=24/36pt#; % diameter of bulbs or breadth of terminals +dot_size#:=36/36pt#; % diameter of dots +cap_hair#:=25/36pt#; % uppercase hairline breadth +cap_stem#:=25/36pt#; % uppercase stem breadth +cap_curve#:=25/36pt#; % uppercase curve breadth +cap_ess#:=25/36pt#; % breadth in middle of uppercase s +rule_thickness#:=25/36pt#; % thickness of lines in math symbols + +dish#:=0pt#; % amount erased at top or bottom of serifs +bracket#:=0pt#; % vertical distance from serif base to tangent +jut#:=34/36pt#; % protrusion of lowercase serifs +cap_jut#:=34/36pt#; % protrusion of uppercase serifs +beak_jut#:=0pt#; % horizontal protrusion of beak serifs +beak#:=34/36pt#; % vertical protrusion of beak serifs +vair#:=22/36pt#; % vertical diameter of hairlines +notch_cut#:=25/36pt#; % maximum breadth above or below notches +bar#:=22/36pt#; % lowercase bar thickness +slab#:=22/36pt#; % serif and arm thickness +cap_bar#:=22/36pt#; % uppercase bar thickness +cap_band#:=22/36pt#; % uppercase thickness above/below lobes +cap_notch_cut#:=25/36pt#; % max breadth above/below uppercase notches +serif_drop#:=0pt#; % vertical drop of sloped serifs +stem_corr#:=0pt#; % for small refinements of stem breadth +vair_corr#:=0pt#; % for small refinements of hairline height +apex_corr#:=10/36pt#; % extra width at diagonal junctions + +o#:=4/36pt#; % amount of overshoot for curves +apex_o#:=3/36pt#; % amount of overshoot for diagonal junctions + +slant:=0; % tilt ratio $(\Delta x/\Delta y)$ +otilt:=.2; % tilt of inner bowl for the letter omicron +fudge:=0.81; % factor applied to weights of heavy characters +math_spread:=-1; % extra openness of math symbols +superness:=1/sqrt2; % parameter for superellipses +superpull:=0; % extra openness inside bowls +beak_darkness:=0; % fraction of triangle inside beak serifs +ligs:=0; % level of ligatures to be included + +square_dots:=false; % should dots be square? +hefty:=true; % should we try hard not to be overweight? +serifs:=true; % should serifs and bulbs be attached? +monospace:=true; % should all characters have the same width? +variant_g:=false; % should an italic-style g be used? +low_asterisk:=true; % should the asterisk be centered at the axis? +math_fitting:=false; % should math-mode spacing be used? +straight:=true; % should stems, etc. be straight? +monowidth:=true; %are stem and hair more or less the same width? + +generate greek; diff --git a/fonts/greek/levy/h.mf b/fonts/greek/levy/h.mf new file mode 100644 index 0000000000..3f953885f9 --- /dev/null +++ b/fonts/greek/levy/h.mf @@ -0,0 +1,175 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 8.5u enddef; +def dims = width#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = if straight: .75 else: .5 fi u#,0 enddef; + +def gen_letter = + pickup fine.nib; + y1r-.5stem=-d-o; pos1(stem,0); %bottom right + rt x2r=hround(w-.75u); y2r=.5x_height; pos2(hair,0); %right bulge + lft x5r=hround(1.5u); y5-.5stem=-o; pos5(stem,-180); %bottom left + top y4r=x_height+o; x4r=.5[lft x2l,rt x5l]; %top of arch + pos6(hair,180); y6=y2; %where handle attaches + if straight: + x1=x2; x5=x6; pos4(stem,90); %yawn... + filldraw double_circ_stroke z1e--pulled_arc.e(2,4)&pulled_arc.e(4,6)--z5e; + else: + rt x1r=hround (rt x2r-.25u); z2'l=z2'r=up; + filldraw circ_stroke z1e{up}...gr_arc.e(2,3,4)(hair,stem,.8); %right leg + filldraw circ_stroke z5e{(z4-z5) yscaled 3}...z4e{-z4'e}; %left leg + z6r=((0,y2)--(w,y2)) intersectionpoint (z5r{(z4-z5) yscaled 3}...z4r{-z4'r}); + fi + pos8(vstem,0); rt x8r=hround(lft x6r-.75u); %end of handle + pos7(vstem,-90); top y7l=x_height+o; z8r=z7r; %top of handle + filldraw circ_stroke z8e{up}...z7e{right}...z6e{down}; + numeric x_baryctr; x_baryctr=.1[x4,x7]; %accent reference + numeric pos_stem; pos_stem=x5; %iota reference +enddef; + +cmchar "Lowercase eta"; +beginchar("h",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase eta with grave"; +beginchar(oct"230",width#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing"; +beginchar(oct"231",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing"; +beginchar(oct"232",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by eta with grave"; +begindoublechar(oct"233",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase eta with grave and iota subscript"; +beginchar(oct"234",width#,acc_ht#,desc_depth#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing and iota subscript"; +beginchar(oct"235",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and iota subscript"; +beginchar(oct"236",width#,acc_ht#,desc_depth#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by eta with iota subscript"; +begindoublechar(oct"237",dim_sigma); +mid_sigma; +middoublechar(width#,x_height#,desc_depth#); +this_letter; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with acute"; +beginchar(oct"240",width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing and acute"; +beginchar(oct"241",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and acute"; +beginchar(oct"242",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by eta with acute"; +begindoublechar(oct"243",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase eta with acute and iota subscript"; +beginchar(oct"244",width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, acute and iota subscript"; +beginchar(oct"245",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing and acute and iota subscript"; +beginchar(oct"246",width#,acc_ht#,desc_depth#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by eta with acute and iota subscript"; +begindoublechar(oct"247",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,desc_depth#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with circumflex"; +beginchar(oct"250",width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase eta with rough breathing and circumflex"; +beginchar(oct"251",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase eta with smooth breathing and circumflex"; +beginchar(oct"252",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by eta with circumflex"; +begindoublechar(oct"253",dim_sigma); +mid_sigma; middoublechar(width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase eta with circumflex and iota subscript"; +beginchar(oct"254",width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with rough breathing, circumflex and iota subscript"; +beginchar(oct"255",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with smooth breathing, circumflex and iota subscript"; +beginchar(oct"256",width#,Circ_ht#,desc_depth#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by eta with circumflex and iota subscript"; +begindoublechar(oct"257",dim_sigma); +mid_sigma; middoublechar(width#,circ_ht#,desc_depth#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase eta with iota subscript"; +beginchar(oct"371",width#,x_height#,desc_depth#); +this_letter; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by eta"; +begindoublechar(oct"010",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture pic.iota; +picture savedpicture; diff --git a/fonts/greek/levy/i.mf b/fonts/greek/levy/i.mf new file mode 100644 index 0000000000..8bd9cb67f9 --- /dev/null +++ b/fonts/greek/levy/i.mf @@ -0,0 +1,138 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = if monospace: u#,u# else:0,2curve#-3u# fi enddef; + +def gen_letter= + pickup fine.nib; + pos1(flare,180); lft x1r=hround u; top y1=x_height+oo; %top + numeric neck; neck=.2[hair,stem]; + pos2(neck,180); .2[lft x2r,rt x2l]=.2[lft x1r,rt x1l]; %neck + pos3(curve,-90); bot y3r=-oo; %bottom + y2r=if monowidth: 2 else: 1.5 fi[bot y3r,top y3l]; z3r-z2r=whatever*(1,-1.25); + if monowidth: + y4r+.5neck=vround y2r; x3=.5[x2,x4]; pos4(neck,0); %tip of hook + filldraw stroke z4e...z3e...z2e---z1e; + else: + z4l=z4r; top y4r=y2r; z4l-z3l=whatever*(1,1); + path p.r, p.l; forsuffixes e=r,l: p.e=z1e---z2e...z3e...z4e; endfor + rt x3.5r=hround(rt xpart directionpoint up of p.r); + z4'r=direction 3 of p.r; z3'r=direction 2 of p.r; + forever: %avoid bad vertical tangent between 2l and 3l + x2.5l:= rt xpart directionpoint down of p.l; + exitif abs(hround(x2.5l)-x2.5l)<.05; + x2l:=x2l+hround(x2.5l)-x2.5l; p.l:=(z1l---z2l...z3l...z4l); + endfor + p.r:=z1r---z2r...club.r(3,3.5,4); + %avoid bad vertical tangent between 3r and 4r + filldraw stroke p.e; + fi + numeric x_baryctr; x_baryctr=x1; +enddef; + +cmchar "Lowercase iota"; +beginchar("i",dims); +this_letter; penlabels(1,2,3,4); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase iota with grave"; +beginchar(oct"310",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase iota with rough breathing"; +beginchar(oct"311",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar; + +cmchar "Lowercase iota with smooth breathing"; +beginchar(oct"312",width#,acc_ht#,0); +this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar; + +cmchar "Lowercase sigma followed by iota with grave"; +begindoublechar(oct"313",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase iota with acute"; +beginchar(oct"320",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase iota with rough breathing and acute"; +beginchar(oct"321",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase iota with smooth breathing and acute"; +beginchar(oct"322",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by iota with acute"; +begindoublechar(oct"323",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase iota with circumflex"; +beginchar(oct"330",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase iota with rough breathing and circumflex"; +beginchar(oct"331",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase iota with smooth breathing and circumflex"; +beginchar(oct"332",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by iota with circumflex"; +begindoublechar(oct"333",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis"; +beginchar(oct"360",width#,circ_ht#,0); +this_letter; diaeresis(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and grave"; +beginchar(oct"361",width#,acc_ht#,0); +this_letter; diaeresis_grave(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and acute"; +beginchar(oct"362",width#,acc_ht#,0); +this_letter; diaeresis_acute(x_baryctr); endchar; + +cmchar "Lowercase iota with diaeresis and circumflex"; +beginchar(oct"363",width#,Circ_ht#,0); +this_letter; diaeresis_circumflex(x_baryctr); endchar; + +cmchar "Lowercase sigma followed by iota"; +begindoublechar(oct"011",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/j.mf b/fonts/greek/levy/j.mf new file mode 100644 index 0000000000..ec543b5f7e --- /dev/null +++ b/fonts/greek/levy/j.mf @@ -0,0 +1,54 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 8.5u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + lft x4r=w-rt x8r=hround .75u; y4r=y8r=.5h; %left and right bulges + x2r=x6r=.5w; top y2r=h+o; bot y6r=-o; %top and bottom + filldraw stroke + gr_arc.e(8,1,2)(vair,stem,otilt) & gr_arc.e(2,3,4)(vair,stem,otilt) & + gr_arc.e(4,5,6)(vair,stem,otilt) & gr_arc.e(6,7,8)(vair,stem,otilt); + pos4`(bar,90); pos8`(bar,90); x4`=x4; x8`=x8; y4`=y8`=.05[y4,y2]; + filldraw stroke z4`e--z8`e; %bar +enddef; + +cmchar "Lowercase theta"; +beginchar("j",dims); +this_letter; penlabels(1,2,3,4,4`,5,6,7,8,8`); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by theta"; +begindoublechar(oct"012",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; +endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/k.mf b/fonts/greek/levy/k.mf new file mode 100644 index 0000000000..fc9772bdb1 --- /dev/null +++ b/fonts/greek/levy/k.mf @@ -0,0 +1,61 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 10u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + x1-.5stem=hround .75u; y1-.5stem=-o; %lower left + z1+z3=(w,h); z2=.5[z1,z3]; %upper right and middle + z1'=(z3-z1) if monowidth: xscaled 1/2 fi; %slope at 1 and 3 + pos1(stem,angle z1'+90); pos2(.6[hair,stem],angle z1'+90); + pos3(stem,angle z1'+90); + filldraw double_circ_stroke z1e{z1'}..z2e..{z1'}z3e; %diagonal stroke + z4=if monowidth: z1 else: 1/4[z1,z3] fi; z4+z7=z3+z1; %handle attachments + z4'=if monowidth: z1' else: (z3-z1) xscaled .25 fi; %slope at 4 and 7 + pos4(hair,angle z4'-90); pos7(hair,angle z4'+90); + pos5(vstem,90); top y5r=h+o; pos6(vstem,180); z6l=z5l; + lft x6r=hround(x1-.5stem-.25u); + filldraw circ_stroke z6e{up}...z5e{right}...z4e{-z4'}; %left handle + pos8(.5[vstem,stem],-90); bot y8r=-o; rt x9r=hround(x3+.5stem+.25u); + pos9(.5[vstem,stem],0); z9l=z8l; + filldraw circ_stroke z9e{down}...z8e{left}...z7e{z4'}; %right handle +enddef; + +cmchar "Lowercase kappa"; +beginchar("k",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by kappa"; +begindoublechar(oct"013",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/l.mf b/fonts/greek/levy/l.mf new file mode 100644 index 0000000000..749af068b0 --- /dev/null +++ b/fonts/greek/levy/l.mf @@ -0,0 +1,61 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 9.5u#,asc_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25u#,-.25u# enddef; +def krn = -.75u# enddef; + +def gen_letter= + pickup fine.nib; + x1-.5stem=hround .75u; y1+.5stem=h; %top left + z1'=(1,.2); pos1(stem,angle z1'+90); %direction at z1 + x3+x1=w; y3-.5stem=-oo; pos3(stem,-angle z1'+90); %bottom right + y2=x_height; x2=.5[x1,x3]; %attachment + z2'=(z3-z1)yscaled 2; pos2(hair,angle z2'+90); %direction at z4 + filldraw double_circ_stroke z1e{z1'}... + z2e{(z3-z1)yscaled 2}...{z1' yscaled -1}z3e; %diagonal + lft x4l=hround.75u; bot y4l=0; %bottom left + numeric stem'; stem'=stem-currentbreadth; numeric slope; %from z4 to z4 + slope=angle(z2-z4l)+angle(length(z2-z4l)+-+.5stem',.5stem'); + x4r=x4l+(stem'/sind slope); y4r=y4l; z4=.5[z4r,z4l]; + path p; p=z1{z1'}...z2{(z3-z1)yscaled 2}...{z1' yscaled -1}z3; + forsuffixes e=r,l: z5e=(z4e--(z4e+2(z2-z4))) intersectionpoint p; endfor + filldraw stroke z4e{(z2-z4)if not monowidth: xscaled 1.2 fi}..z5e; +enddef; + +cmchar "Lowercase lambda"; +beginchar("l",dims); +this_letter; penlabels(1,2,3,4,5); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by lambda"; +begindoublechar(oct"014",dim_sigma); +mid_sigma; doublecharkern(krn); middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/lig.mf b/fonts/greek/levy/lig.mf new file mode 100644 index 0000000000..ee3b25dd51 --- /dev/null +++ b/fonts/greek/levy/lig.mf @@ -0,0 +1,105 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +diaer=oct"042"; % double quote +ligtable "-": "-" =: oct"000"; % en-dash +ligtable oct"000": "-" =: oct"177"; % em-dash +ligtable "(": "(" =: oct"173"; % open quotes +ligtable ")": ")" =: oct"175"; % close quotes +ligtable "<": + "~" =: oct"100", "'" =: oct"126", "`" =: oct"103", + "a" =: oct"201", "e" =: oct"341", "h" =: oct"231", "r" =: oct"373", + "o" =: oct"345", "w" =: oct"261", "i" =: oct"311", "u" =: oct"315"; +ligtable ">": + "~" =: oct"134", "'" =: oct"136", "`" =: oct"137", + "a" =: oct"202", "e" =: oct"342", "h" =: oct"232", "r" =: oct"374", + "o" =: oct"346", "w" =: oct"262", "i" =: oct"312", "u" =: oct"316"; +ligtable diaer: "~" =: oct"040", "'" =: oct"043", "`" =: oct"044", + "i" =: oct"360", "u" =: oct"364"; +ligtable oct"044": % diaeresis and grave + "i" =: oct"361", "u" =: oct"365"; +ligtable oct"043": % diaeresis and acute + "i" =: oct"362", "u" =: oct"366"; +ligtable oct"040": % diaeresis and circumflex + "i" =: oct"363", "u" =: oct"367"; +ligtable "`": diaer =: oct"044", + "a" =: oct"200", "h" =: oct"230", "w" =: oct"260", + "e" =: oct"340", "o" =: oct"344", "i" =: oct"310", "u" =: oct"314"; +ligtable "'": diaer =: oct"043", "'" =: oct"035", + "a" =: oct"210", "h" =: oct"240", "w" =: oct"270", + "e" =: oct"350", "o" =: oct"354", "i" =: oct"320", "u" =: oct"324"; +ligtable oct"126": % rough breathing and acute + "a" =: oct"211", "h" =: oct"241", "w" =: oct"271", + "e" =: oct"351", "o" =: oct"355", "i" =: oct"321", "u" =: oct"325"; +ligtable oct"136": % smooth breathing and acute + "a" =: oct"212", "h" =: oct"242", "w" =: oct"272", + "e" =: oct"352", "o" =: oct"356", "i" =: oct"322", "u" =: oct"326"; +ligtable "~": diaer =: oct"040", + "a" =: oct"220", "h" =: oct"250", "w" =: oct"300", + "i" =: oct"330", "u" =: oct"334"; +ligtable oct"100": % rough breathing and circumflex + "a" =: oct"221", "h" =: oct"251", "w" =: oct"301", + "i" =: oct"331", "u" =: oct"335"; +ligtable oct"134": % smooth breathing and circumflex + "a" =: oct"222", "h" =: oct"252", "w" =: oct"302", + "i" =: oct"332", "u" =: oct"336"; +ligtable "a": "|" =: oct"370"; %iota subscripts +ligtable "h": "|" =: oct"371"; +ligtable "w": "|" =: oct"372"; +ligtable oct"200": "|" =: oct"204"; ligtable oct"201": "|" =: oct"205"; +ligtable oct"202": "|" =: oct"206"; ligtable oct"203": "|" =: oct"207"; +ligtable oct"210": "|" =: oct"214"; ligtable oct"211": "|" =: oct"215"; +ligtable oct"212": "|" =: oct"216"; ligtable oct"213": "|" =: oct"217"; +ligtable oct"220": "|" =: oct"224"; ligtable oct"221": "|" =: oct"225"; +ligtable oct"222": "|" =: oct"226"; ligtable oct"223": "|" =: oct"227"; +ligtable oct"230": "|" =: oct"234"; ligtable oct"231": "|" =: oct"235"; +ligtable oct"232": "|" =: oct"236"; ligtable oct"233": "|" =: oct"237"; +ligtable oct"240": "|" =: oct"244"; ligtable oct"241": "|" =: oct"245"; +ligtable oct"242": "|" =: oct"246"; ligtable oct"243": "|" =: oct"247"; +ligtable oct"250": "|" =: oct"254"; ligtable oct"251": "|" =: oct"255"; +ligtable oct"252": "|" =: oct"256"; ligtable oct"253": "|" =: oct"257"; +ligtable oct"260": "|" =: oct"264"; ligtable oct"261": "|" =: oct"265"; +ligtable oct"262": "|" =: oct"266"; ligtable oct"263": "|" =: oct"267"; +ligtable oct"270": "|" =: oct"274"; ligtable oct"271": "|" =: oct"275"; +ligtable oct"272": "|" =: oct"276"; ligtable oct"273": "|" =: oct"277"; +ligtable oct"300": "|" =: oct"304"; ligtable oct"301": "|" =: oct"305"; +ligtable oct"302": "|" =: oct"306"; ligtable oct"303": "|" =: oct"307"; + +ligtable "s": "a" =: oct"001", "b" =: oct"002", +"d" =: oct"004", "e" =: oct"005", "f" =: oct"006", "g" =: oct"007", +"h" =: oct"010", "i" =: oct"011", "j" =: oct"012", "k" =: oct"013", +"l" =: oct"014", "m" =: oct"015", "n" =: oct"016", "o" =: oct"017", +"p" =: oct"020", "q" =: oct"021", "r" =: oct"022", "s" =: oct"023", +"t" =: oct"024", "u" =: oct"025", "w" =: oct"027", +"x" =: oct"030", "y" =: oct"031", "z" =: oct"032", "`" =: oct"375", +"'" =: oct"376", "~" =: oct"377"; + +ligtable oct"375": "a" =: oct"203", "h" =: oct"233", "w" =: oct"263", + "e" =: oct"343", "i" =: oct"313", "o" =: oct"347", "u" =: oct"317"; +ligtable oct"376": "a" =: oct"213", "h" =: oct"243", "w" =: oct"273", + "e" =: oct"353", "i" =: oct"323", "o" =: oct"357", "u" =: oct"327", + "'" =: oct"003"; +ligtable oct"377": "a" =: oct"223", "h" =: oct"253", "w" =: oct"303", + "i" =: oct"333", "u" =: oct"337"; diff --git a/fonts/greek/levy/lower.mf b/fonts/greek/levy/lower.mf new file mode 100644 index 0000000000..555e7f7549 --- /dev/null +++ b/fonts/greek/levy/lower.mf @@ -0,0 +1,49 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +readfrom("a") +readfrom("b") +readfrom("g") +readfrom("d") +readfrom("e") +readfrom("z") +readfrom("h") +readfrom("j") +readfrom("i") +readfrom("k") +readfrom("l") +readfrom("m") +readfrom("n") +readfrom("x") +readfrom("o") +readfrom("p") +readfrom("r") +readfrom("s") +readfrom("t") +readfrom("u") +readfrom("f") +readfrom("q") +readfrom("y") +readfrom("w") diff --git a/fonts/greek/levy/m.mf b/fonts/greek/levy/m.mf new file mode 100644 index 0000000000..9c94ed989a --- /dev/null +++ b/fonts/greek/levy/m.mf @@ -0,0 +1,76 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 9.5u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,.5stem# enddef; + +def gen_letter= + pickup fine.nib; + y6+.5stem=h+o; pos6(stem,0); rt x6r=hround(w-vstem); %top right + x5r=.5[x1,x6]; bot y5r=-oo; %bottom of bowl + if straight: + lft x1r=hround .75 u; y1+.5stem=h+o; pos1(stem,180); %top left + x4=x1; x9=x6; y9=y4=.5x_height; pos4(stem,180); pos9(stem,0); + pos5(vstem, 270); + filldraw double_circ_stroke z1e..pulled_arc.e(4,5)&pulled_arc.e(5,9)..z6e; + y8-.5stem=-d-oo; x8=x1; pos8(stem,180); %end of handle + filldraw circ_stroke z8e..z4e; + else: + lft x2r=rt x2l-stem=hround .75u; %vertical tangents of left bulb + top y1r=h+o; x1r=.5[x2r,x2l]; z1=z1l=z1r; z1'r=-z1'l=left; %top left + y3r=.4[y1r,y5r]; lft x3r=x1r-.5hair; %middle left + numeric tilt; tilt:=.6; path p.r, p.l; + p.l=gr_arc.l(3,4,5)(hair,.4[hair,stem],tilt)...{up}z6l; + p.r=subpath (2(1-tilt),2) of gr_arc.r(3,4,5)(fie,fo,fum)...{up}z6r; + z3.5r=z4r; z3.5'r=z4'r; z3.5l=z3l; z3.5'l=z3'l; %a hybrid + filldraw double_circ_stroke club.e(1,2,3.5) & p.e; %bowl + x8=lft x2r+stem; y8-.5stem=-d-oo; %end of handle + pos8(stem,angle(z4'l xscaled 2)-90); z8'r=z8'l=z4'l xscaled 2; + assign_z3'r(z3'l); %so club.r won't get confused + lft x7r=rt x7l-max(hair,2)=lft x2r; %vertical tangents of handle + filldraw double_circ_stroke club.e(3,7,8); %handle + y9r=max(y4r+epsilon,-oo+2vstem); %where hook attaches + z9r=((0,y9r)--(w,y9r)) intersectionpoint p.r; pos9(hair,0); + fi + pos10(vstem,90); y10l=y5r; x10-x9=vstem; %bottom of hook + pos11(hair,180); top y11=bot y10l+4/3vstem; %tip of hook + rt x11l=hround(x10+(y11-y10)+.5hair); %central arc is round + filldraw stroke z9e{down}..z10e{right}..{up}z11e; %hook +enddef; + +cmchar "Lowercase mu"; +beginchar("m",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by mu"; +begindoublechar(oct"015",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/makeall b/fonts/greek/levy/makeall new file mode 100644 index 0000000000..28e08fa123 --- /dev/null +++ b/fonts/greek/levy/makeall @@ -0,0 +1,33 @@ +#!/bin/sh +# Copyright (C) 1991 Silvio Levy +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# In this script "$@" stands for the set of arguments passed to the +# script, as expanded by the UNIX shell; these arguments are passed, +# without further expansion, to `makefont'. For examply, typing +# +# makeall boo +# +# to the UNIX shell has the same effect as typing +# +# makefont grreg10 boo +# makefont grreg8 boo +# makefont grbld10 boo +# makefont grtt10 boo + +makefont grreg10 "$@" +makefont grreg8 "$@" +makefont grbld10 "$@" +makefont grtt10 "$@" diff --git a/fonts/greek/levy/makefont b/fonts/greek/levy/makefont new file mode 100644 index 0000000000..d6876d5167 --- /dev/null +++ b/fonts/greek/levy/makefont @@ -0,0 +1,32 @@ +#!/bin/sh +# Copyright (C) 1991 Silvio Levy +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# In this script $# stands for the number of arguments, not including the +# command name. $0 is the command name, $1 the first argument, and so +# on. For instance, typing +# +# makefont grreg10 alw 1 +# +# to the UNIX shell gives the same result as typing +# +# cmmf '\mode:=alw;mag:=magstep(1);batchmode;input grreg10' + +case $# in +0) echo $0 source [ mode [ mag ]];; +1) cmmf '\mode:=localmode;batchmode;input '$1;; +2) cmmf '\mode:='$2';batchmode;input '$1;; +3) cmmf '\mode:='$2';mag:=magstep('$3');batchmode;input '$1;; +esac diff --git a/fonts/greek/levy/n.mf b/fonts/greek/levy/n.mf new file mode 100644 index 0000000000..f6f821a367 --- /dev/null +++ b/fonts/greek/levy/n.mf @@ -0,0 +1,56 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 8.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + rt x4r=hround(w-.75u); lft x4l-rt x4r=hround -.2[hair,stem]; %vert tangents + x5=lft x4l; y5+.5hair=h+oo; z5'l=z5'r=(u,-.2h); %right tip + pos5(hair,angle z5'l+90); + pos3(whatever,-90); bot y3r=-oo; x3=.5w; z3'l=z3'r=z5'l xscaled -2; %bottom + z3l+whatever*z3'l=z3r+(stem-currentbreadth)*(dir(angle z3'l-90)); %width=stem + filldraw circ_stroke club.e(5,4,3); %right stroke + y1+.5stem=h+oo; x1-.5stem=hround.75u; %left tip + z1'=(9u,-h); pos1(stem,angle z1'-90); + z2r=z3r; z2l-z3l=(hair-currentbreadth,0); + filldraw circ_stroke z1e{z1'}...{down}z2e; %left stroke +enddef; + +cmchar "Lowercase nu"; +beginchar("n",dims); +this_letter; penlabels(1,2,3,4,5); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by nu"; +begindoublechar(oct"016",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/o.mf b/fonts/greek/levy/o.mf new file mode 100644 index 0000000000..8c1dca8592 --- /dev/null +++ b/fonts/greek/levy/o.mf @@ -0,0 +1,89 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 9.5u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x4r=hround .75u; x8r=w-x4r; y4r=y8r=.5x_height; %top and bottom + top y2r=x_height+oo; bot y6r=-oo; x2r=x6r=.5w; %right and left + filldraw stroke + gr_arc.e(8,1,2)(vair,curve,otilt) & gr_arc.e(2,3,4)(vair,curve,otilt) & + gr_arc.e(4,5,6)(vair,curve,otilt) & gr_arc.e(6,7,8)(vair,curve,otilt) ; + numeric x_baryctr; x_baryctr=x2; %accent reference +enddef; + + +cmchar "Lowercase omicron"; +beginchar("o",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase omicron with grave"; +beginchar(oct"344",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase omicron with rough breathing"; +beginchar(oct"345",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase omicron with smooth breathing"; +beginchar(oct"346",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by omicron with grave"; +begindoublechar(oct"347",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase omicron with acute"; +beginchar(oct"354",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omicron with rough breathing and acute"; +beginchar(oct"355",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase omicron with smooth breathing and acute"; +beginchar(oct"356",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by omicron with acute"; +begindoublechar(oct"357",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase sigma followed by omicron"; +begindoublechar(oct"017",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/p.mf b/fonts/greek/levy/p.mf new file mode 100644 index 0000000000..819c5632ff --- /dev/null +++ b/fonts/greek/levy/p.mf @@ -0,0 +1,55 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 9.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +def gen_letter = + pickup fine.nib; + pi_bar; %bar + pos4(hair,0); pos7(hair,0); y4=y7=y2; %attachments + lft x4l-(x1-.5hair)=lft x7l-rt x4r=rt x3-rt x7r; + pos5(hair,0); pos8(hair,0); y5=y8=.5x_height; x5=x4; x8=x7; %midstems + x6+.5stem=hround(rt x4r if not straight:-.25u fi); y6-.5stem=-oo; %left stem + numeric slope; slope=angle((z5-z6)xscaled2); pos6(stem,slope-90); + filldraw circ_stroke z6e...z5e---z4e; + x9=x7+1.5u; bot y9l=-oo; pos9(stem,90); alpha_tail(9,10); %right stem + filldraw stroke z10e...z9e{left}...z8e---z7e; +enddef; + +cmchar "Lowercase pi"; +beginchar("p",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by pi"; +begindoublechar(oct"020",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/q.mf b/fonts/greek/levy/q.mf new file mode 100644 index 0000000000..afeeced8ec --- /dev/null +++ b/fonts/greek/levy/q.mf @@ -0,0 +1,57 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def ital = 0 enddef; +def fit_params = 0,0 enddef; +def dims = 10u#,x_height#,desc_depth# enddef; + +def gen_letter= + pickup fine.nib; + x1-.5stem=hround .75u; y1+.5stem=h+oo; %top left + z1'=(1,.2); pos1(stem,angle z1'+90); %direction at z1 + x3+x1=w; y3-.5stem=-d-oo; pos3(stem,angle z1'+90); %bottom right + z2=.5[z1,z3]; %attachment + z2'=(z3-z1)yscaled 2; pos2(hair,angle z2'+90); %direction at z4 + filldraw double_circ_stroke z1e{z1'}... z2e{(z3-z1)yscaled 2}...{z1'}z3e; + lft x7l=hround .75u; bot y7l=-d-oo; z2=.5[z7l,z8r]=.5[z7r,z8l]; + numeric stem'; stem'=stem-currentbreadth; + numeric theta; theta=angle(z8r-z7l)+angle((x8r-x7l)++(y8r-y7l)+-+stem',stem'); + x7r=x7l+(stem'/sind theta); y7r=y7l; + filldraw stroke z7e..z8e; +enddef; + +cmchar "Lowercase chi"; +beginchar("q",dims); +this_letter; penlabels(1,2,3,7,8); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by chi"; +begindoublechar(oct"021",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/r.mf b/fonts/greek/levy/r.mf new file mode 100644 index 0000000000..6b105a2744 --- /dev/null +++ b/fonts/greek/levy/r.mf @@ -0,0 +1,74 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 8.5u enddef; +def height = x_height enddef; +def depth = desc_depth enddef; +def dims = width#,height#,depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x4r=hround .75u; x8r=w-x4r; y4r=y8r=.5h; %left and right + top y2r=h+oo; bot y6r=-oo; x2r=x6r=.5w; %top and bottom + filldraw stroke + gr_arc.e(4,5,6)(curve,vair,-otilt) & gr_arc.e(6,7,8)(curve,vair,-otilt) & + gr_arc.e(8,1,2)(curve,vair,-otilt) & gr_arc.e(2,3,4)(curve,vair,-otilt); + if straight: + y9-.5stem=-d-oo; x9=x4; pos9(stem,180); %end of handle + filldraw circ_stroke z9e..z4e; + else: + y9-.5stem=-d-oo; x9=lft x4r+stem; %end of handle + pos9(stem,angle((z9-z4)xscaled3)-90); z9'r=z9'l=(z9-z4)xscaled3; + rt x10l=lft x10r+vair; %vertical tangents of handle + x10r=x4r-epsilon; assign_z4'r((-2eps,-1)); %so club.r won't get confused + filldraw double_circ_stroke club.e(4,10,9); + fi + numeric x_baryctr; x_baryctr=x2; %breathing placement +enddef; + +cmchar "Lowercase rho"; +beginchar("r",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase rho with rough breathing"; +beginchar(oct"373",width#,acc_ht#,depth#); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase rho with smooth breathing"; +beginchar(oct"374",width#,acc_ht#,depth#); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by rho"; +begindoublechar(oct"022",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/s.mf b/fonts/greek/levy/s.mf new file mode 100644 index 0000000000..b0b7029328 --- /dev/null +++ b/fonts/greek/levy/s.mf @@ -0,0 +1,70 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +def dims=8u#,x_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + pos4(hair,-180); y4=.5h; lft x4r=hround .75u; %left bulge + pos6(hair,-180); rt x6l=hround(w-.75u); y6=-.5stem; %bottom right + top y3r=h+oo; x3+.5stem=rt x6l; pos3(stem,90); %top right + pos5(stem,-90); bot y5r=0; x5=.5w; %inflection pt + pos7(vstem,-270); y6=.5[y7r,y5r]; x7-.5vstem=hround x5; + filldraw double_circ_stroke %bowl and tail + z7e{right}...z6e{up}...z5e{left}...z4e{up}...z3e{right}; +enddef; + +cmchar "Final lowercase sigma"; +beginchar("s",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +if unknown gen_acc : readfrom("gen_acc") fi +readfrom("gen_sigma") %to establish ital and fit_params + +cmchar "Initial and medial lowercase sigma"; +beginchar("c",dim_sigma); +mid_sigma; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by sigma"; +begindoublechar(oct"023",dim_sigma); +mid_sigma; middoublechar(dim_sigma); mid_sigma; endchar; + +cmchar "Lowercase sigma followed by grave"; +begindoublechar(oct"375",dim_sigma); +mid_sigma; middoublechar(9u#,acc_ht#,0); grave(.5w); endchar; + +cmchar "Lowercase sigma followed by acute"; +begindoublechar(oct"376",dim_sigma); +mid_sigma; middoublechar(9u#,acc_ht#,0); acute(.5w); endchar; + +cmchar "Lowercase sigma followed by circumflex"; +begindoublechar(oct"377",dim_sigma); +mid_sigma; middoublechar(9u#,circ_ht#,0); circumflex(.5w); endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/slgreek.sty b/fonts/greek/levy/slgreek.sty new file mode 100644 index 0000000000..e5f3c70a04 --- /dev/null +++ b/fonts/greek/levy/slgreek.sty @@ -0,0 +1,145 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Greek.sty +% A latex style file for use with Silvio Levy's classical Greek fonts +% (see TUGboat 9.1 (1988), pp. 20 ff.). The following style file +% consists of Levy's own greekmac.tex macros unaltered, followed by +% some macros published by R. Wonneberger and slightly modified +% by D. Wujastyk, which fix a problem in using Greek accents in LaTeX +% footnotes. See below for more explanation of the footnote stuff. +% +% Usage: \documentstyle[greek]{book} ... as normal. This makes all the +% greekmac macros available, and fixes the footnote problem. +% 29 Jan 1991 +% +% Copyright (C) 1991 Silvio Levy, Dominik Wujastyk, Reinhard Wonneberger +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . + +\def\ifnextchar#1#2#3{\let\tempe #1\def\tempa{#2}\def\tempb{#3}\futurelet + \tempc\ifnch} +\def\ifnch{\ifx\tempc\tempe\let\tempd\tempa\else\let\tempd\tempb\fi\tempd} +\def\gobble#1{} +\font\tengr=grreg10 +\font\tengrbf=grbld10 +\font\tengrtt=grtt10 +\def\greekmode{% +\catcode`\<=13 +\catcode`\>=13 +\catcode`\'=11 +\catcode`\`=11 +\catcode`\~=11 +\catcode`\"=11 +\catcode`\|=11 +\lccode`\<=`\<% +\lccode`\>=`\>% +\lccode`\'=`\'% +\lccode`\`=`\`% +\lccode`\~=`\~% +\lccode`\"=`\"% +\lccode`\|=`\|% +\tengr\def\bf{\tengrbf}\def\tt{\tengrtt}} +\newcount\vwl +\newcount\acct +\def\lt{<} +\def\gt{>} +{ + \greekmode + \gdef>{\ifnextchar `{\expandafter\smoothgrave\gobble}{\char\lq\>}} + \gdef<{\ifnextchar `{\expandafter\roughgrave\gobble}{\char\lq\<}} + \gdef\smoothgrave#1{\acct=\rq137 \vwl=\lq#1 \dobreathinggrave} + \gdef\roughgrave#1{\acct=\rq103 \vwl=\lq#1 \dobreathinggrave} + \gdef\dobreathinggrave{\ifnum\vwl\lt\rq140 %if uppercase + \char\the\acct\char\the\vwl\else\expandafter\testiota\fi} + \gdef\testiota{\ifnextchar |{\addiota\doaccent\gobble}{\doaccent}} + \gdef\addiota{\ifnum\vwl=\lq a\vwl=\rq370 + \else\ifnum\vwl=\lq h\vwl=\rq371 \else\vwl=\rq372 \fi\fi} + \gdef\doaccent{\accent\the\acct \char\the\vwl\relax} +} + +\newif\ifgreek\greekfalse + +\def\begingreek{\bgroup\greektrue\greekmode} +\def\endgreek{\egroup} + +\let\math=$ +{\catcode`\$=13 +\gdef\greekdelims{\catcode`\$=13 +\def${\ifgreek\endgreek\else\begingreek\fi} +\def\display{\math\math}\def\enddisplay{\math\math}}} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% The following macros are taken from Reinhard Wonnenberger's +% article "Chapter Mottos ..." in TUGboat 7(3), 1986, p.179. I (Dominik +% Wujastyk) have edited out those bits in which Reinhard was altering +% the default values of LaTeX to his own liking. If you want to do +% that as well, you might prefer to do it in a separate style file. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% The following macros avoid the need to read the footnote text as +% a parameter. They are taken from PLAIN.TEX. +% LaTeX control sequences have been substituted for those from +% PLAIN, and are marked thus: %LATEX +% +% \newinsert\footins +% \def\footnote#1{\let\@sf\empty % parameter #2 (the text) is read later +% \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi +% #1\@sf\vfootnote{#1}} +% \def\vfootnote#1{\insert\footins\bgroup +\def\@footnotetext{\insert\footins\bgroup %LATEX + \footnotesize %LATEX + \interlinepenalty\interfootnotelinepenalty +% \splittopskip\ht\strutbox % top baseline for broken footnotes + \splittopskip\footnotesep %LATEX + \splitmaxdepth\dp\strutbox \floatingpenalty\@MM +% \leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip \xspaceskip\z@skip + \hsize\columnwidth \@parboxrestore %LATEX + \edef\@currentlabel{\csname p@footnote\endcsname %LATEX + \@thefnmark}% %LATEX +% \textindent{#1}%Knuth +% \textindent{\@thefnmark} % yields normal numbers +\@makefnlabel %LATEX +\footstrut\futurelet\next\fo@t} +% +% Format the footnote label inside the footnote; based on book.sty: +\def\@makefnlabel{\@@par \parindent 1em\noindent + \hbox to 1.8em{\hss$^{\@thefnmark}$}} +% +% From latex.tex, for comparison: +% \long\def\@footnotetext#1{\insert\footins{\footnotesize +% \interlinepenalty\interfootnotelinepenalty +% \splittopskip\footnotesep +% \splitmaxdepth \dp\strutbox \floatingpenalty \@MM +% \hsize\columnwidth \@parboxrestore +% \edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext +% {\rule{\z@}{\footnotesep}\ignorespaces +% #1\strut}}} +% +% Rewritten on the basis of plain.tex: +\def\fo@t{\ifcat\bgroup\noexpand\next \let\next\f@@t + \else\let\next\f@t\fi \next} +\def\f@@t{\bgroup + \rule{\z@}{\footnotesep}\ignorespaces %LATEX + \aftergroup\@foot\let\next} +\def\f@t#1{#1\@foot} +% \def\@foot{\strut\egroup} +\def\@foot{\strut\egroup %LATEX + \ifhmode\spacefactor\@x@sf\relax\fi} %LATEX +\def\footstrut{\vbox to\splittopskip{}} +\skip\footins=\bigskipamount % space added when footnote is present +\count\footins=1000 % footnote magnification factor (1 to 1) +\dimen\footins=8in % maximum footnotes per page + +% End of Greek.sty diff --git a/fonts/greek/levy/t.mf b/fonts/greek/levy/t.mf new file mode 100644 index 0000000000..2470ef943a --- /dev/null +++ b/fonts/greek/levy/t.mf @@ -0,0 +1,51 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 8.5u#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = -.25,0 enddef; + +def gen_letter= + pickup fine.nib; + pi_bar; %bar + pos4(hair,0); y4=y2; lft x4l-(x1-.5hair)=rt x3-rt x4r; %attachment + pos5(hair,0); y5=.5x_height; x5=x4; %midstems + x6=x4+1.5u; bot y6l=-oo; pos6(stem,90); alpha_tail(6,7); %stem + filldraw stroke z7e...z6e{left}...z5e---z4e; +enddef; + +cmchar "Lowercase tau"; +beginchar("t",dims); +this_letter; penlabels(1,2,3,6,7,8); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by tau"; +begindoublechar(oct"024",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/testfont b/fonts/greek/levy/testfont new file mode 100644 index 0000000000..f9ed071b6f --- /dev/null +++ b/fonts/greek/levy/testfont @@ -0,0 +1,40 @@ +#!/bin/sh +# Copyright (C) 1991 Silvio Levy +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# In this script $1 stands for the first argument passed to the +# script. The three lines preceding EOF are passed as standard +# input to the program called on the first line. For example, +# typing +# +# testfont foo +# +# to the UNIX shell has the same effect as typing +# +# tex grtestfont %this line is read by the shell +# foo %these three lines are read by TeX +# \bigtest +# \end +# mv grtestfont.dvi foo.dvi %this is again read by the shell +# +# mv means move, or rename. +# + +tex grtestfont << EOF +$1 +\bigtest +\end +EOF +mv grtestfont.dvi $1.dvi diff --git a/fonts/greek/levy/u.mf b/fonts/greek/levy/u.mf new file mode 100644 index 0000000000..cec9731c2b --- /dev/null +++ b/fonts/greek/levy/u.mf @@ -0,0 +1,130 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 9u enddef; +def dims = width#,x_height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + y2+.5stem=x_height+o; x2-.5stem=hround.75u; %left tip + lft x4r=hround(x2-.5stem+.75u); y4r=.5x_height; %left middle + y8r=y4r; rt x8r=hround(w-.75u); %right bulge + x6r=.5[x4r,x8r]; bot y6r=-oo; %bottom + numeric tilt; + tilt:=min(2*otilt,.5); + filldraw stroke + gr_arc.e(6,7,8)(vair,stem,tilt) ; + filldraw stroke + gr_arc.e(4,5,6)(vair,.4[vair,stem],tilt) ; + y9+.5hair=x_height+o; x9=x8-u; pos9(hair,angle ((z8-z9) xscaled 2)+90); + filldraw circ_stroke z9e...{-z8'e}z8e; + pos2(stem,angle((z4-z2) xscaled 2)-90); + filldraw circ_stroke z2e...{z4'e}z4e; + numeric x_baryctr; x_baryctr=.5w; +enddef; + +cmchar "Lowercase upsilon"; +beginchar("u",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase upsilon with grave"; +beginchar(oct"314",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase upsilon with rough breathing"; +beginchar(oct"315",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing"; +beginchar(oct"316",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by upsilon with grave"; +begindoublechar(oct"317",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase upsilon with acute"; +beginchar(oct"324",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with rough breathing and acute"; +beginchar(oct"325",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing and acute"; +beginchar(oct"326",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by upsilon with acute"; +begindoublechar(oct"327",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with circumflex"; +beginchar(oct"334",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase upsilon with rough breathing and circumflex"; +beginchar(oct"335",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase upsilon with smooth breathing and circumflex"; +beginchar(oct"336",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by upsilon with circumflex"; +begindoublechar(oct"337",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis"; +beginchar(oct"364",width#,circ_ht#,0); +this_letter; diaeresis(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and grave"; +beginchar(oct"365",width#,acc_ht#,0); +this_letter; diaeresis_grave(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and acute"; +beginchar(oct"366",width#,acc_ht#,0); +this_letter; diaeresis_acute(x_baryctr); endchar; + +cmchar "Lowercase upsilon with diaeresis and circumflex"; +beginchar(oct"367",width#,Circ_ht#,0); +this_letter; diaeresis_circumflex(x_baryctr); endchar; + +cmchar "Lowercase sigma followed by upsilon"; +begindoublechar(oct"025",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/upper.mf b/fonts/greek/levy/upper.mf new file mode 100644 index 0000000000..b3bfe97dc8 --- /dev/null +++ b/fonts/greek/levy/upper.mf @@ -0,0 +1,628 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +%This file is a rearrangement of code in Computer Modern's romanu.mf +%It contains definitions for Greek capitals. + +cmchar "Uppercase 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 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 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: dish_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 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(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); % upper bracketing + dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,1.414cap_jut); fi % lower serif +math_fit(-.75cap_height#*slant,ic#-2.5u#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase chi"; +beginchar("Q",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 zeta"; +beginchar("Z",11u#,cap_height#,0); +italcorr cap_height#*slant-.5u#; +adjust_fit(0,0); +numeric arm_thickness[],z_stem; +if hefty: arm_thickness1=Vround(slab-vair_corr); arm_thickness2=slab; + z_stem=.8[vair,cap_stem]; +else: arm_thickness1=slab; arm_thickness2=vround(slab+vair_corr); + z_stem=.9[vair,cap_stem]; fi +pickup tiny.nib; x3l=x4l=w-x1r=w-x2r; lft x3l=hround u; +top y1=h; y2=min(y1,h-2/3arm_thickness1); +bot y4=0; y3=max(y4,2/3arm_thickness2); +numeric alpha; alpha=diag_ratio(1,z_stem-tiny,y2-y3,x2r-x3l); +penpos1(alpha*(z_stem-tiny),0); penpos2(alpha*(z_stem-tiny),0); +penpos3(alpha*(z_stem-tiny),0); penpos4(alpha*(z_stem-tiny),0); +pair delta; delta=penoffset z3-z2 of currentpen; +fill top lft z1l--z2l+delta---z3l+delta..lft z3l---lft z4l..bot z4l + ---bot rt z4r--z3r-delta---z2r-delta..rt z2r---rt z1r..top z1r + ---cycle; % diagonal +pickup crisp.nib; pos5(arm_thickness1,90); pos6(hair,180); +top y5r=h; x5=x1; lft x6r=hround 1.25u; y6=good.y(y5l-beak)-eps; +arm(5,6,a,beak_darkness**.8,-.4beak_jut); % upper arm and beak +pos7(arm_thickness2,-90); pos8(hair,0); +bot y7r=0; x7=x4; rt x8r=hround(w-.9u); y8=good.y(y7l+1.2beak)+eps; +arm(7,8,b,beak_darkness**.9,.6beak_jut); % lower arm and beak +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8); endchar; + +cmchar "Uppercase gamma"; +beginchar("G",11u#-width_adj#,cap_height#,0); +italcorr cap_height#*slant-beak_jut#-.25u#; +adjust_fit(cap_serif_fit#,0); +h:=vround(h-stem_corr); +pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); +lft x1l=lft x2l=hround max(2u,3u-.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-.75u); y4=good.y(y3l-beak)-eps; +arm(3,4,e,beak_darkness,beak_jut); % arm and beak +if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif + dish_serif(2,1,c,1/3,cap_jut,d,1/3,1.25cap_jut); fi % lower serif +math_fit(0,ic#-2.5u#); penlabels(1,2,3,4); endchar; + +cmchar "Uppercase delta"; +beginchar("D",15u#,cap_height#,0); +adjust_fit(0,0); +numeric left_stem,alpha; +left_stem=cap_hair if hefty: -3stem_corr fi; +x1l=w-x4r=.75u; 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*cap_stem,0); penpos4(alpha*cap_stem,0); +fill diag_end(2l,1l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)--cycle; % triangle +z0=whatever[z1r,z2r]=whatever[z3l,z4l]; +y5=y6=cap_vstem; z5=whatever[z1r,z2r]; z6=whatever[z3l,z4l]; +if y0top 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 "Uppercase 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 + dish_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 + dish_serif(3,4,e,1/3,eps,f,1/3,cap_jut); % upper left serif + dish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower left serif +math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar; + +cmchar "Uppercase 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; 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 "Uppercase 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 phi"; +beginchar("F",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 "Uppercase psi"; +beginchar("Y",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 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; diff --git a/fonts/greek/levy/w.mf b/fonts/greek/levy/w.mf new file mode 100644 index 0000000000..f77a29091e --- /dev/null +++ b/fonts/greek/levy/w.mf @@ -0,0 +1,170 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_acc : readfrom("gen_acc") fi +if unknown gen_sigma : readfrom("gen_sigma") fi + +def width = 12u enddef; +def height = x_height enddef; +def dims = width#,height#,0 enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + pos2(stem,-180); pos8(stem,360); lft x2r=w-rt x8r=hround.75u; + y2=y8=.8bar_height; %left and right bulges + y4=y6=bar_height; .5[x4,x6]=.5w; rt x4r-lft x6r=stem; + pos4(hair,0); pos6(hair,180); %left and right of loop + bot y3r=bot y7r=-oo; x3=.5[x2,x4]; x7+.25u=.5[x6,x8]; + pos3(vstem,-150); pos7(vstem,330); %left and right bottom + top y1r=x_height+o=top y9r; %left tip + x1=.5[x2,.5w]; pos1(.2[stem,hair],angle(-.5w,y2-x_height)-90); + x9=.5[x8,.5w]; pos9(.8[stem,hair],angle(-.5w,x_height-y2)-90); %rt tip + filldraw stroke z1e{(z2-z1) xscaled 2}...z2e{down}...z3e{right}; + filldraw stroke z7e{right}...{up}z8e...{(z9-z8) xscaled 2}z9e; + drawloop(3,4,6,7); + numeric x_baryctr; x_baryctr=.5[x4,x6]; + numeric pos_stem; pos_stem=x_baryctr; +enddef; + +cmchar "Lowercase omega"; +beginchar("w",dims); +this_letter; penlabels(0,1,2,3,4,5,6,7,8,9); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase omega with grave"; +beginchar(oct"260",width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase omega with rough breathing"; +beginchar(oct"261",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing"; +beginchar(oct"262",width#,acc_ht#,0); +this_letter; spirit(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by omega with grave"; +begindoublechar(oct"263",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; grave(x_baryctr); endchar; + +cmchar "Lowercase omega with grave and iota subscript"; +beginchar(oct"264",width#,acc_ht#,iota_dp#); +this_letter; grave(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing and iota subscript"; +beginchar(oct"265",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and iota subscript"; +beginchar(oct"266",width#,acc_ht#,iota_dp#); +this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by omega with iota subscript"; +begindoublechar(oct"267",dim_sigma); +mid_sigma; middoublechar(width#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with acute"; +beginchar(oct"270",width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omega with rough breathing and acute"; +beginchar(oct"271",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing and acute"; +beginchar(oct"272",width#,acc_ht#,0); +this_letter; spirit_acute(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by omega with acute"; +begindoublechar(oct"273",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,0); +this_letter; acute(x_baryctr); endchar; + +cmchar "Lowercase omega with acute and iota subscript"; +beginchar(oct"274",width#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, acute and iota subscript"; +beginchar(oct"275",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing and acute and iota subscript"; +beginchar(oct"276",width#,acc_ht#,iota_dp#); +this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by omega with acute and iota subscript"; +begindoublechar(oct"277",dim_sigma); +mid_sigma; middoublechar(width#,acc_ht#,iota_dp#); +this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with circumflex"; +beginchar(oct"300",width#,circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase omega with rough breathing and circumflex"; +beginchar(oct"301",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)<; endchar; + +cmchar "Lowercase omega with smooth breathing and circumflex"; +beginchar(oct"302",width#,Circ_ht#,0); +this_letter; spirit_circumflex(x_baryctr)>; endchar; + +cmchar "Lowercase sigma followed by omega with circumflex"; +begindoublechar(oct"303",dim_sigma); +mid_sigma; middoublechar(width#,Circ_ht#,0); +this_letter; circumflex(x_baryctr); endchar; + +cmchar "Lowercase omega with circumflex and iota subscript"; +beginchar(oct"304",width#,circ_ht#,iota_dp#); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with rough breathing, circumflex and iota subscript"; +beginchar(oct"305",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)<; iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with smooth breathing, circumflex and iota subscript"; +beginchar(oct"306",width#,acc_ht#,iota_dp#); +this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by omega with circumflex and iota subscript"; +begindoublechar(oct"307",dim_sigma); +mid_sigma; middoublechar(width#,Circ_ht#,0); +this_letter; circumflex(x_baryctr); iota_sub(pos_stem); endchar; + +cmchar "Lowercase omega with iota subscript"; +beginchar(oct"372",width#,height#,iota_dp#); +this_letter; iota_sub(pos_stem); endchar; + +cmchar "Lowercase sigma followed by omega"; +begindoublechar(oct"027",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture pic.iota; +picture savedpicture; diff --git a/fonts/greek/levy/x.mf b/fonts/greek/levy/x.mf new file mode 100644 index 0000000000..64de48195a --- /dev/null +++ b/fonts/greek/levy/x.mf @@ -0,0 +1,63 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 8.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + lft x7r=rt x7l-hair=hround(.75u); x7=.5[x7r,x7r]; %big bulge + pos8(stem,-90); bot y8r=0; x8=.5w; z8'r=z8'l=left; %inflection pt + pos9(hair,-180); rt x9l=hround(w-.75u); y9=-.5stem; %bottom right + y6+.5stem=x_height+o; x6+.5stem=hround(rt x9l-1.5u); %middle right + numeric slope; slope=angle(5(x6-x7),y6-y8); pos6(stem,slope+90); + z6'r=z6'l=dir slope; + pos10(vstem,-270); y9=.5[y10r,y8r]; x10-.5vstem=hround x8; + filldraw double_circ_stroke %bowl and tail + z10e{right}...z9e{up}...club.e(8,7,6); + pos5(hair,slope-90); z5l=z6r; %attachment + z4=.5[z3,z5]+whatever*dir slope; %small bulge + pos4(hair,-180); lft x4r=hround(lft x7r+1.5u); + y3+.5stem=h+o; x3+.5stem=hround(rt x9l-.25u); pos3(stem,slope+90); %top rt + filldraw circ_stroke z3e{-dir slope}..z4{down}...z5e{dir slope}; + pos2(hair,slope+90); z2r=z3r; %where handle attaches + pos1(curve,0); lft x1l=hround(lft x7r+.25u); y1+.5curve=h+o; %end of handle + filldraw circ_stroke z1e{down}...z2e{dir slope}; +enddef; + +cmchar "Lowercase xi"; +beginchar("x",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by xi"; +begindoublechar(oct"030",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/y.mf b/fonts/greek/levy/y.mf new file mode 100644 index 0000000000..f005c27bb0 --- /dev/null +++ b/fonts/greek/levy/y.mf @@ -0,0 +1,60 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 10.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter = + pickup fine.nib; + lft x2r=w-rt x6r=.75u; y2r=y6r=.6x_height; %left and right bulges + x4r=.5[x2r,x6r]; bot y4r=-oo; %bottom + numeric tilt; tilt:=min(2*otilt,.5); + filldraw stroke gr_arc.e(4,5,6)(vair,stem,tilt) ; + filldraw stroke gr_arc.e(2,3,4)(vair,.4[vair,stem],tilt) ; + y7+.5hair=x_height+o; x7+.5hair=hround(rt x6r-.75u); %right tip + pos7(hair,angle ((z6-z7) xscaled 2)+90); + filldraw circ_stroke z7e...{-z6'e}z6e; + y1+.5stem=x_height+o; x1-.5stem=hround(lft x2r+.5u); %left tip + pos1(stem,angle((z2-z1) xscaled 2)-90); + filldraw circ_stroke z1e...{z2'e}z2e; + pos10(stem,0); pos9(hair,0); pos8(stem,0); %vertical stroke + y10-.5stem=-d-o; y9=.25x_height; y8+.5stem=h+o; x10=x9=x8=x4; + filldraw double_circ_stroke z10e..z9e{up}..z8e; +enddef; + +cmchar "Lowercase psi"; +beginchar("y",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by psi"; +begindoublechar(oct"031",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; diff --git a/fonts/greek/levy/z.mf b/fonts/greek/levy/z.mf new file mode 100644 index 0000000000..1948f2ea29 --- /dev/null +++ b/fonts/greek/levy/z.mf @@ -0,0 +1,57 @@ +% Copyright (C) 1991 Silvio Levy +% +% This file is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 2 of the License, or +% (at your option) any later version. +% +% This file is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with this program. If not, see . +% +% As a special exception, if you create a document which uses this font, +% and embed this font or unaltered portions of this font into the +% document, this font does not by itself cause the resulting document to +% be covered by the GNU General Public License. This exception does not +% however invalidate any other reasons why the document might be covered +% by the GNU General Public License. If you modify this font, you may +% extend this exception to your version of the font, but you are not +% obligated to do so. If you do not wish to do so, delete this exception +% statement from your version. + +if unknown gen_sigma : readfrom("gen_sigma") fi + +def dims = 8.5u#,asc_height#,desc_depth# enddef; +def ital = 0 enddef; +def fit_params = 0,0 enddef; + +def gen_letter= + pickup fine.nib; + pos4(hair,-180); y4=bar_height; lft x4r=hround(.75u); %left bulge + pos6(hair,-180); rt x6l=hround(w-.75u); y6=-.5stem; %bottom right + y3+.5stem=h+o; x3+.5stem=hround(rt x6l-.25u); %top right + numeric slope; slope=angle((z3-z4)xscaled 2); pos3(stem,slope+90); + pos5(stem,-90); bot y5r=0; x5=.5w; %inflection pt + pos7(vstem,-270); y6=.5[y7r,y5r]; x7-.5vstem=hround x5; + filldraw double_circ_stroke %bowl and tail + z7e{right}...z6e{up}...z5e{left}...z4e{up}...z3e{dir slope}; + pos2(hair,slope+90); z2r=z3r; %where handle attaches + pos1(curve,0); lft x1l=hround(lft x4r+.25u); y1+.5curve=h+o; %end of handle + filldraw circ_stroke z1e{down}...z2e{dir slope}; +enddef; + +cmchar "Lowercase zeta"; +beginchar("z",dims); +this_letter; penlabels(1,2,3,4,5,6,7,8); endchar; + +if boolean barebones: picture savedpicture; endinput; fi + +cmchar "Lowercase sigma followed by zeta"; +begindoublechar(oct"032",dim_sigma); +mid_sigma; middoublechar(dims); this_letter; endchar; + +picture savedpicture; -- cgit v1.2.3