summaryrefslogtreecommitdiff
path: root/fonts/greek/kd
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/greek/kd')
-rw-r--r--fonts/greek/kd/INSTALL158
-rw-r--r--fonts/greek/kd/Makefile153
-rw-r--r--fonts/greek/kd/README134
-rw-r--r--fonts/greek/kd/doc/grlatex.1107
-rw-r--r--fonts/greek/kd/doc/install.dvibin0 -> 4012 bytes
-rw-r--r--fonts/greek/kd/doc/install.tex87
-rw-r--r--fonts/greek/kd/doc/usage.dvibin0 -> 20772 bytes
-rw-r--r--fonts/greek/kd/doc/usage.log36
-rw-r--r--fonts/greek/kd/doc/usage.tex590
-rw-r--r--fonts/greek/kd/emtex/c_gralatex.bat12
-rw-r--r--fonts/greek/kd/emtex/c_grtex.bat13
-rw-r--r--fonts/greek/kd/emtex/greek.asc68
-rw-r--r--fonts/greek/kd/emtex/greek.tcpbin0 -> 924 bytes
-rw-r--r--fonts/greek/kd/emtex/greektex.bat2
-rw-r--r--fonts/greek/kd/emtex/grlatex.bat2
-rw-r--r--fonts/greek/kd/emtex/kdgreek.mfj17
-rw-r--r--fonts/greek/kd/install/greekfonts.log2
-rw-r--r--fonts/greek/kd/install/links13
-rw-r--r--fonts/greek/kd/install/makefonts39
-rw-r--r--fonts/greek/kd/latex/grart10.sty379
-rw-r--r--fonts/greek/kd/latex/grart12.sty118
-rw-r--r--fonts/greek/kd/latex/grarticle.sty278
-rw-r--r--fonts/greek/kd/latex/grbk10.sty130
-rw-r--r--fonts/greek/kd/latex/grbk11.sty130
-rw-r--r--fonts/greek/kd/latex/grbk12.sty130
-rw-r--r--fonts/greek/kd/latex/grbook.sty254
-rw-r--r--fonts/greek/kd/latex/greek.sty73
-rw-r--r--fonts/greek/kd/latex/grfonts.tex303
-rw-r--r--fonts/greek/kd/latex/grkhyphen.tex1181
-rw-r--r--fonts/greek/kd/latex/grmode.sty58
-rw-r--r--fonts/greek/kd/latex/lfonts.tex889
-rw-r--r--fonts/greek/kd/latex/lgreek.3.0c415
-rw-r--r--fonts/greek/kd/latex/lgreek.tex410
-rw-r--r--fonts/greek/kd/mf/kdaccent.mf489
-rw-r--r--fonts/greek/kd/mf/kdbase.mf300
-rw-r--r--fonts/greek/kd/mf/kdbf10.mf126
-rw-r--r--fonts/greek/kd/mf/kdbf8.mf126
-rw-r--r--fonts/greek/kd/mf/kdbf9.mf127
-rw-r--r--fonts/greek/kd/mf/kddigits.mf347
-rw-r--r--fonts/greek/kd/mf/kdgr10.mf120
-rw-r--r--fonts/greek/kd/mf/kdgr8.mf123
-rw-r--r--fonts/greek/kd/mf/kdgr9.mf122
-rw-r--r--fonts/greek/kd/mf/kdgreek.mf59
-rw-r--r--fonts/greek/kd/mf/kdidigit.mf287
-rw-r--r--fonts/greek/kd/mf/kdilower.mf1282
-rw-r--r--fonts/greek/kd/mf/kdlig.mf264
-rw-r--r--fonts/greek/kd/mf/kdligcom.mf142
-rw-r--r--fonts/greek/kd/mf/kdlower.mf1383
-rw-r--r--fonts/greek/kd/mf/kdpunct.mf336
-rw-r--r--fonts/greek/kd/mf/kdsl10.mf117
-rw-r--r--fonts/greek/kd/mf/kdti10.mf119
-rw-r--r--fonts/greek/kd/mf/kdtt10.mf122
-rw-r--r--fonts/greek/kd/mf/kdupper.mf645
-rw-r--r--fonts/greek/kd/mf/plain.mf586
-rw-r--r--fonts/greek/kd/read.me48
-rw-r--r--fonts/greek/kd/tex/greek.tex366
-rw-r--r--fonts/greek/kd/tex/greektex.tex329
-rw-r--r--fonts/greek/kd/tex/grkhyphen.tex1181
-rw-r--r--fonts/greek/kd/tfm/kdbf10.tfmbin0 -> 3240 bytes
-rw-r--r--fonts/greek/kd/tfm/kdbf8.tfmbin0 -> 3248 bytes
-rw-r--r--fonts/greek/kd/tfm/kdbf9.tfmbin0 -> 3252 bytes
-rw-r--r--fonts/greek/kd/tfm/kdgr10.tfmbin0 -> 3216 bytes
-rw-r--r--fonts/greek/kd/tfm/kdgr8.tfmbin0 -> 3224 bytes
-rw-r--r--fonts/greek/kd/tfm/kdgr9.tfmbin0 -> 3232 bytes
-rw-r--r--fonts/greek/kd/tfm/kdsl10.tfmbin0 -> 3308 bytes
-rw-r--r--fonts/greek/kd/tfm/kdti10.tfmbin0 -> 3352 bytes
-rw-r--r--fonts/greek/kd/tfm/kdtt10.tfmbin0 -> 1652 bytes
-rw-r--r--fonts/greek/kd/unix/greektex2
-rw-r--r--fonts/greek/kd/unix/grlatex2
-rw-r--r--fonts/greek/kd/unix/makelinks9
-rw-r--r--fonts/greek/kd/unix/newfont118
-rw-r--r--fonts/greek/kd/utils/ascii2grtex.c140
72 files changed, 15598 insertions, 0 deletions
diff --git a/fonts/greek/kd/INSTALL b/fonts/greek/kd/INSTALL
new file mode 100644
index 0000000000..ebdeed0ea8
--- /dev/null
+++ b/fonts/greek/kd/INSTALL
@@ -0,0 +1,158 @@
+ INSTALLATION NOTES FOR GreekTeX v 3.1
+ -------------------------------------
+
+ K J Dryllerakis
+ Logic Programming Group
+ Imperial College,London
+ kd@doc.ic.ac.uk
+
+
+ This document describes how to get GreekTeX up and running
+ on your system. It is devided into two parts: instructions
+ for Unix users and Instructions for DOS emTeX users. I would
+ like to hope that these two categories represent a majority
+ of TeX users and I apologize for not extending specialised
+ instructions to users of other systems. For those of you that do
+ not fall in the two categories do not panic! Read the DOS
+ section and procede with the same steps. Just change the
+ paths and executables to match the ones in your system.
+
+
+Part A: Unix Users
+--------------------------
+
+ What you need:
+ To rebuild the whole GreekTeX package you need to have
+ access to the metafont and initex programs as well
+ as the ability to integrate new fonts and formats
+ to the search path of the local tex distribution.
+ You also need the gftopk utility for transforming
+ mf output to dvi readable form. For automated installation
+ you need a "standard" unix 'make' program, and the
+ 'dc' calculator. If you do not have any of these you
+ will have to do the job by hand. If you do not have
+ the dc calculator you can still build the fonts
+ by altering the script to suit your own needs.
+ You also need to know the resolution of the local
+ printer. Finally you can do with a bit of patience.
+
+ Procedure:
+ The installation procedure follows the steps:
+ * build and install the fonts in the
+ standard path (both pk and tfm files)
+ * build the greek format files for both
+ greekTeX and grlatex.
+ * place the files in the appropriate
+ directory
+ * do a test run to see how it looks!
+
+ How to procede for an automated installation:
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ STEP DESCRIPTION
+ -> 0 Find a suitable place to unpack the file
+ kdgreek3.1.tar.Z. Let us call the subdirectory
+ kdgreek3.1/ where all the files will be the
+ TOP directory.
+ -> 1 First edit the file unix/newfont. If a similar
+ script exists in your system the just forget it
+ and mode to the step 2. In particular set the
+ default paths and executable names to point
+ to the right direction and make sure the file
+ has the execute attribute set.
+ -> 2 Edit the Makefile at the TOP directory to
+ reflect the paths and setting of your own system.
+ It should be easy and straightforward and not many
+ changes should be needed in a standard distribution.
+ -> 3 Make the fonts: at the shell prompt type
+ make fonts
+ This will try to create the greek fonts for all
+ needed magnification levels and place them at
+ their proper place (all the job is done by the
+ newfont script in the unix directory or the
+ newfont script that you set in the makefile).
+ Do not be alarmed if "stange Pos " occur at some
+ fonts and magnifications. The fonts are still in
+ experimental stage and do have problems. If your
+ version of metafont stops at a '?' prompt just
+ hit return to continue.
+ -> 4 You can now build the formats. give the command
+ make formats
+ this will build both greek.fmt and lgreek.fmt in
+ the build subdirectory. Log files will be in the
+ log subiderctory of build.
+ -> 5 Install everything in its proper place by
+ executing the command:
+ make install
+ This will place everything in the proper place
+ and have you ready to go.
+ -> 6 Try the system out: go to the doc doc subdir
+ and type
+ greektex usage
+ then see what happens.
+
+
+Part B: DOS emTeX users
+-------------------------------
+
+ What you need:
+ In order to use GreekTeX on a PC running DOS and emTeX
+ you will need mf and friends to create the fonts (mfjob
+ for automated procedures) plain tex and latex bearing
+ version 3.0 or later (that is the format file not the
+ executable).
+
+ How to procede:
+ Unpack the distribution where convenient. If you got
+ GreekTeX as greektex.zip the use [pk]unzip -d greektex
+ at an apropriate directory. You can delete the unix,
+ utils directories and the makefile since they are
+ intended for unix users.
+
+ -> 1 Copy the file emtex/kdgreek.mfj to the MFJOB path or
+ in the mf directory. cd to the mf directory and
+ give the command mfjob -i kdgreek. If everything goes
+ well you will end up with a new bunch of fonts in
+ the proper directories.
+ -> 2 cd to tex and type
+ tex -i -8 greek \dump
+ This will create the files greek.fmt and greek.log
+ Move greek.fmt to the directory where you normally
+ store the format files (e.g. emtex/btexfmts) and
+ delete the file greek.log after reviewing the messages.
+ -> 3 cd to latex and type
+ tex -i -8 lgreek \dump
+ Repeat the same procedure as in step 2 for copying the
+ lgreek.fmt and removing the lgreek.log file.
+ -> 4 copy the files in the tex, latex directories to the
+ default search path of emtex (e.g. /emtex/inputs)
+ If you will be using a greek ISO character set for
+ modern greek you might also want to copy the files
+ emtex/greek.* to your inputs dir.
+ ->5 Finally move the emtex/*.bat files to the emtex bin
+ directory and you are all set to go.
+ ->6 Test the system by cd to doc and doing
+ greektex usage.tex
+
+ GOOD LUCK
+
+Please send comments and bug reports to kd@doc.ic.ac.uk
+
+DISCLAIMER:
+ Although I have put much effort in eliminating bugs, the
+ greekTeX package is still in experimental phase. If you
+ decide to use the package please do not blame me for any
+ problems that may arise from its use. I cannot be held
+ responsible for any problems and I cannot gurantee
+ bug fixes (although I guarantee that in due time I will
+ look over all reports and suggestions).
+
+
+-------------------------------------------------------------------------------
+K J Dryllerakis Deparment of Computing
+Logic Programming Group Imperial College, LONDON
+Janet: kd @uk.ac.ic.doc Tel: +44(71) 589 5111 x5089
+Uucp : kd@icdoc.UUCP Internet: kd@doc.ic.ac.uk
+-------------------------------------------------------------------------------
+
+
+
diff --git a/fonts/greek/kd/Makefile b/fonts/greek/kd/Makefile
new file mode 100644
index 0000000000..5b0c68205a
--- /dev/null
+++ b/fonts/greek/kd/Makefile
@@ -0,0 +1,153 @@
+# =====================================================================
+# General Unix Makefile For GreekTeX Package
+# =====================================================================
+
+
+# =====================================================================
+# SITE MODIFICATION PART (modify that according to your site)
+# =====================================================================
+#
+# what shell are you using?
+SHELL = /bin/sh
+# where are your tex binaries
+BINDIR = /usr/local/lptex/bin
+# how is the program that creates a new font called
+NEWFONT = unix/newfont -o
+# the switch in order to specify to NEWFONT the scale of the font
+NEWFONTSCALESWITCH = -s
+# where your style files are placed
+STYDIR = /usr/local/lptex/lib/macros
+# where are your mf files placed
+MFDIR = /usr/local/lptex/lib/mfmacros
+# where are your format files
+FMTDIR = /usr/local/lptex/lib/formats
+# where should the man pages go?
+MANDIR = /usr/local/lptex/lib/man/man1
+#
+# =====================================================================
+# Please do not modify these parameters
+# =====================================================================
+
+
+MAG750 = kdgr8 kdbf8
+MAG800 = kdsl10 kdti10 kdtt10
+MAG900 = $(MAG800)
+MAG1000 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
+MAG1095 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
+MAG1200 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
+MAG1440 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
+MAG1795 = kdgr8 kdgr9 kdgr10 kdbf8 kdbf9 kdbf10 kdsl10 kdti10 kdtt10
+
+# =====================================================================
+# Installation
+# =====================================================================
+
+all: install.fonts install
+
+install.fonts: fonts
+
+install: dirhier install.formats install.macros install.bin install.man
+
+install.formats: formats
+ -cp build/formats/greek.fmt $(FMTDIR)
+ -cp build/formats/lgreek.fmt $(FMTDIR)
+
+install.macros:
+ -cp tex/*.tex $(STYDIR)
+ -cp latex/*.sty $(STYDIR)
+ -cp latex/*.tex $(STYDIR)
+
+install.bin:
+ -cp unix/newfont $(BINDIR)
+ -cp unix/greektex $(BINDIR)
+ -cp unix/grlatex $(BINDIR)
+
+install.man:
+ -cp doc/grlatex.1 $(MANDIR)
+
+
+# =====================================================================
+# Auxiliary tasks
+# =====================================================================
+
+clean:
+ -rm -rf build
+
+dirhier:
+ -(if [ ! -d build ] ; then mkdir build; fi)
+ -(if [ ! -d build/formats ] ; then mkdir build/formats; fi)
+ -(if [ ! -d build/log ] ; then mkdir build/log; fi)
+
+tar:
+ -rm -f kdgreek31.zip
+ -tar -cf /tmp/tt.tar .
+ -compress /tmp/tt.tar
+ -mv /tmp/tt.tar.Z kdgreek3.1.tar.Z
+
+zip:
+ -(NOZIP=.Z:.zip:.tar; export NOZIP; \
+ zip -r -k kdgreek31.zip * -x *.Z )
+
+# =====================================================================
+# build the formats
+# =====================================================================
+
+formats: dirhier build/formats/greek.fmt build/formats/lgreek.fmt
+
+build/formats/greek.fmt: tex/greek.tex
+ (cd tex ; \
+ initex greek \\dump ; \
+ mv greek.fmt ../build/formats ; \
+ mv greek.log ../build/log )
+
+build/formats/lgreek.fmt: latex/lgreek.tex
+ (cd latex ; \
+ initex lgreek \\dump ; \
+ mv lgreek.fmt ../build/formats ; \
+ mv lgreek.log ../build/log )
+
+
+# =====================================================================
+# build the family of fonts
+# =====================================================================
+fonts:
+ -for f in $(MAG750); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 750 $$f); \
+ done
+ -for f in $(MAG800); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 800 $$f);\
+ done
+ -for f in $(MAG900); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 900 $$f);\
+ done
+ -for f in $(MAG1200); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 1200 $$f);\
+ done
+ -for f in $(MAG1095); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 1095 $$f);\
+ done
+ -for f in $(MAG1000); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 1000 $$f);\
+ done
+ -for f in $(MAG1440); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 1440 $$f);\
+ done
+ -for f in $(MAG1795); \
+ do \
+ (cd mf ; \
+ ../$(NEWFONT) $(NEWFONTSCALESWITCH) 1795 $$f);\
+ done
diff --git a/fonts/greek/kd/README b/fonts/greek/kd/README
new file mode 100644
index 0000000000..1e4b69a255
--- /dev/null
+++ b/fonts/greek/kd/README
@@ -0,0 +1,134 @@
+ GreeKTeX Ver 3.1 Distribution
+ -----------------------------
+
+ K J Dryllerakis
+ Logic Programming Group
+ Imperial College,London
+ kd@doc.ic.ac.uk
+
+What it is:
+ GreekTeX is a complete package for typesetting greek
+ (modern or ancient) texts within the framework of
+ plain TeX or LaTeX. It supplies a set of fonts based
+ on the excellent ones originally developed by
+ Sylvio Levi in the States and the modifications made
+ thereafter by Haralambous in France.
+ The approach adopted is different from both the
+ previous ones since it uses full 256 character fonts
+ and ligatures as the principal method of accenting
+ or "breathing" letters. This makes the macros more
+ robust and easier to use within TeX and LaTeX
+ environments.
+
+------------------------------------------------------------------------
+Note: Two different packages are included in this distribution. (Both
+ based on the same set of fonts).
+ * greektex : an extension of plain tex
+ * grlatex : an extension of LaTeX for greek texts.
+------------------------------------------------------------------------
+
+What it Includes:
+ > a complete set of fonts (regular,bold,italic)
+ > for working with plain tex a file to be included
+ which will import the macros and fonts needed
+ to add greek texts within your normal documents
+ (greektex.tex)
+ > for working with an extension of plain tex
+ a set of macros allowing the usage of greek
+ within specific environments and hyphenation
+ patterns for the greek langugage. Choosing
+ to use this option will mean that you will develop
+ the formatting of your text by yourself.
+ (command greektex)
+ > for working with LaTeX a style option that allows
+ entering greek text within specific environments
+ (all standard latex command still work e.g. font
+ size changing). For typesetting texts mainly in
+ greek a new format file which combines the greek
+ enviroment with hyphenation patters and an optional
+ global greek mode.
+ (command grlatex)
+ > A set of utilities that allow the conversion of extended
+ ASCII greek ISO character files to a format understandable
+ by grektex and grlatex. (filter as C-source or emTeX filter
+ table for use with texconv)
+
+
+------------------------------------------------------------------------
+See the Installation Guide (file INSTALL) on how to install the
+package (what else)!
+------------------------------------------------------------------------
+
+Distribution Tree:
+
+[doc]
+ Documentation On installation and usage, man pages for unix.
+ grlatex.1 Man Pages for grLaTeX package
+ install.tex Installation Notes (plain TeX only)
+ usage.tex Usage Manual (plain TeX only)
+
+[latex]
+ Basic Latex files for fomrat building and document styles.
+
+ grart10.sty grbk10.sty grbook.sty grkhyphen.tex
+ grart12.sty grbk11.sty greek.sty grmode.sty
+ grarticle.sty grbk12.sty grfonts.tex lgreek.tex
+
+[tex]
+ Files for building greektex format and greek macros.
+
+ greek.tex Greek Format Definitions
+ greektex.tex Greek Macros for plain TeX
+ grkhyphen.tex Greek Hyphenation Patterns
+
+[mfinput]
+ MF source code for font building.
+
+ kdaccent.mf kddigits.mf kdidigit.mf kdpunct.mf
+ kdbase.mf kdgr10.mf kdilower.mf kdsl10.mf
+ kdbf10.mf kdgr8.mf kdlig.mf kdti10.mf
+ kdbf8.mf kdgr9.mf kdligcom.mf kdtt10.mf
+ kdbf9.mf kdgreek.mf kdlower.mf kdupper.mf
+
+[emtex]
+ grlatex.bat Batch file for grlatex
+ greektex.bat Batch file for greektex
+ greek.asc Map of ISO greek codes for use with
+ texconv
+ greek.tcp binary form of the previous file
+ c_gralatex.bat Batch file for ISO converted grlatex
+ c_grtex.bat Batch file for ISO converted greektex
+ kdgreek.mfj MFJob file for creating the kd fonts
+
+[utils]
+ ascii2grtex.c a unix C-filter for transforming
+ ISO standard greek documents to
+ greekTeX compatible form.
+
+[unix]
+ greektex shell script for greektex
+ grlatex shell script for grlatex
+ newfont shell script to create new fonts
+
+------------------------------------------------------------------------
+Differnces from the Previous release
+ * Fixed font bugs in ligatures and added some more characters
+ according to suggestions by J"org Knappen (J"org, thanks for
+ your comments and fixes)
+ * Integrated Unix and Dos Release
+------------------------------------------------------------------------
+
+Important Note:
+^^^^^^^^^^^^^^^
+ If you are building the greek extension of the LaTeX format
+note that the old font coding scheme is used. The package -although it
+will create a proper Format file- will not run properly under the
+Mittelbach convention for font loading. In order to check
+which on you have see your lfonts.tex file! (To make sure that
+you do not have to retrieve the standard lfonts.tex I have included in
+the latex directory -- please note the copyright notices for this file).
+
+
+Hope you enjoy the package. Please send any comments or bug reports
+to kd@doc.ic.ac.uk
+------------------------------------------------------------------------
diff --git a/fonts/greek/kd/doc/grlatex.1 b/fonts/greek/kd/doc/grlatex.1
new file mode 100644
index 0000000000..c1b38dcdb6
--- /dev/null
+++ b/fonts/greek/kd/doc/grlatex.1
@@ -0,0 +1,107 @@
+.TH GRLATEX "7 Dec 1992"
+.SH NAME
+grlatex \- tex formatting and typesetting (greek option)
+.SH SYNOPSIS
+.B grlatex
+[options] [filename]
+
+.SH DESCRIPTION
+.I grlatex
+is part of the
+.B GreekTeX
+package for typesetting greek texts under the TeX typesetting system.
+.I grlatex
+is an extension of the LaTeX macro package for
+the TeX mathematical typesetting package. The extension
+consists of a new set of language dependent macros,
+a set of hyphenation patterns for the greek language,
+and a set of macro development tools for the greek languge.
+.PP
+.I grlatex
+can be used instead of the latex package to typeset
+any source file written for the LaTeX macro package. In addition
+a special greek environment is defined inside which latin
+characters correspond to greek ones according to the scheme
+.PP
+.B a b g
+.B d e z
+.B h j i k l m
+.B n x o p r s
+.B t u f q y w
+.B and c (final s)
+.PP
+In order to get accents and breathing use ',`,~,>,< before any
+vowel. For those typesetting ancient greek texts iota subscript
+can be generated by placing the character | after the vowel to
+recive the subscript.
+.PP
+The greek environment is created by the command
+.PP
+ \\begin{greektext}
+.PP
+and ends by
+.PP
+ \\end{greektext}.
+.PP
+Inside the greek environment the font families available are:
+.RS
+.TP
+ \\gr Classic Greek
+.TP
+ \\grbf Boldface Greek
+.TP
+ \\grsl Slanted Greek
+.TP
+ \\grit Greek Italics
+.TP
+ \\grtt Typewritter Greek
+.RE
+.LP
+Note that all the font scaling commands will affect the greek
+characters as well. Nevertheless if the font size is changed
+inside the environment, the effects are only local.
+
+.SH "STYLE FILES"
+
+Special style files exist for writting texts in greek language.
+The names of the style files are derived from the latex ones
+by preciding them with the suffix `gr' (e.g. grarticle.sty)
+Any such style causes latex to enter a permenent greek environment.
+The original latin (global) environment is locally available
+through the commands \\begin and \\end {latin}.
+Note that the roman font families are normally accesed in the
+standard way e.g. {\\rm Latin Word}. Beware the difference in
+certain symbols; all the accentuation symbols are concidered
+as letters (catcode 11).
+
+.SH "MACRO DEVELOPMENT"
+
+If you are interested in creating macros while in greek mode
+try to remember that certain symbols need to be replaced by more
+general control sequences:
+.RS
+.TP
+ $ ---> \\ m@thm@de
+.TP
+ > ---> \\ gt (greater than)
+.TP
+ < ---> \\ lt (less than)
+.RE
+.LP
+.SH "SEE ALSO"
+.BR tex(1),
+.BR latex(1),
+.BR greektex(1).
+
+.SH FILES
+For more information on macro development under the package
+see the extensive discussion in the comments of the macro
+files: lgreek.tex, grfonts.tex, greek.sty, gr*.sty
+
+.SH "AUTHOR"
+ The
+.B GREEKTeX
+package was developed partly from
+ideas of Sylvio Levy and Haralambous by K J Dryllerakis
+(kd@doc.ic.ac.uk)
+
diff --git a/fonts/greek/kd/doc/install.dvi b/fonts/greek/kd/doc/install.dvi
new file mode 100644
index 0000000000..18a3d4edba
--- /dev/null
+++ b/fonts/greek/kd/doc/install.dvi
Binary files differ
diff --git a/fonts/greek/kd/doc/install.tex b/fonts/greek/kd/doc/install.tex
new file mode 100644
index 0000000000..bbdd5d97ce
--- /dev/null
+++ b/fonts/greek/kd/doc/install.tex
@@ -0,0 +1,87 @@
+% This file requires plain TeX for typesetting and NO special fonts
+% Use tex install.tex to produce the file install.dvi
+% install.tex 7-Dec-92
+%
+%INSTALLATION PROCEDURE FOR KD FONTS
+\magnification=\magstep1
+\parindent=0pt
+\centerline{\bf INSTALLATION PROCEDURE}
+\smallskip
+\centerline{\bf FOR Greek\TeX\ PACKAGE}
+\bigskip
+\centerline{\bf NOTE: This document does not describe installation of %
+the grlatex part of the package}
+\bigskip
+This documents gives a brief description of the installation
+procedure of the Greek\TeX\ Package. It is assumed that \TeX\ version
+3.0 or higher is installed in your system and you also have access to
+Metafont (v 2.00 or higher). Most of the systems are also equiped
+with a scirpt, or batch file or even a small program that will create
+a font at a given magnification with a single command. Let us assume
+that this command is {\tt newfont} $<FontName>$ {\tt scaled}
+$<Magnfification>$. You must also have access to {\tt plain.tex} and
+{\tt hyphen.tex} (plain format version 3.00) or higher, as well as
+to INITEX for building formats. If you are interested in building
+the grlatex format as well, the the files for building lplain must
+also be available.
+
+\medskip
+\leftline{\bf Installing the Fonts}
+\smallskip
+Here is a table of the fonts and suggested magnifications:
+$$\vbox{\divide\hsize by2
+\halign{\strut\tt #\hfill\tabskip=2em&\hfil#\hfil&\hfil#\hfil&\hfil#\hfil&%
+\hfil#\hfil&\hfil#\hfil&\hfil#\hfil&\hfil#\hfil\cr
+&750&800&900&1000&1200&1440&1795\cr
+kdgr10&&&&*&*&*&*\cr
+kdgr9&&&&*&*&*&*\cr
+kdgr8&*&&&*&*&*&*\cr
+kdbf10&&&&*&*&*&*\cr
+kdbf9&&&&*&*&*&*\cr
+kdbf8&*&&&*&*&*&*\cr
+kdsl10&&*&*&*&*&*&*\cr
+kdti10&&*&*&*&*&*&*\cr
+kdtt10&&*&*&*&*&*&*\cr
+}}
+$$
+Each font is installed by a command of the form\par
+{\tt newfont kdgr10 scaled 1200}\par
+After installing all the fonts you are ready to move to the
+installation of the greek format.
+\medskip
+\leftline{\bf Format Installation}
+\smallskip
+Make sure that the file {\tt plain.tex} and {\tt hyphen.tex} are in
+your path and enter the command:\par
+{\tt INITEX greek}\par
+When INITEX has finished enter {\tt $\backslash$ dump}. Hopefully the file
+{\tt greek.fmt} must be ready to use. Just place it in your \TeX\ path
+and issue the command\par
+{\tt tex \& greek foo.tex}\par
+to run GREEK\TeX.
+
+You can also place the file {\tt greektex.tex} in you TEXINPUT path
+so that it can be included in short greek documents or replace the
+greek format file if the latter does not exist in your system. Note
+that the hyphenation will only work under the greek format and {\bf
+not} when you include the {\tt greektex} file to your document.
+Hyphenation apart, no other differences exist between the greek
+format and {\tt greektex.tex}.
+
+
+If you are building the latex extension grlatex, issue the command:\par
+{\tt INITEX lgreek}\par
+This will built the lgreek format. The lgreek format can be used
+instead of the standard latex format since it is simply and extension
+of the latex package enriched with several language dependant macros
+and the hyphenation patterns for greek tex.
+
+If during the procedure of creating the greek latex INITEX complains
+about too many font families then the lplain format must be modified
+to define only 10 font families (older version of lfonts.tex defined
+the {\tt uit} family of fonts which you might be able to eliminate
+without mamy losses).
+
+
+
+\bye
diff --git a/fonts/greek/kd/doc/usage.dvi b/fonts/greek/kd/doc/usage.dvi
new file mode 100644
index 0000000000..040543352a
--- /dev/null
+++ b/fonts/greek/kd/doc/usage.dvi
Binary files differ
diff --git a/fonts/greek/kd/doc/usage.log b/fonts/greek/kd/doc/usage.log
new file mode 100644
index 0000000000..766ac302b2
--- /dev/null
+++ b/fonts/greek/kd/doc/usage.log
@@ -0,0 +1,36 @@
+This is TeX, C Version 3.141t3 (Imperial College distributed TeX) (format=plain 92.6.1) 29 JUN 1992 12:43
+**usage.tex
+(usage.tex [TeX plain=plain 3.0, made at IC on 1992/6/1 ]
+(/usr/local/tex/L/sty/greektex.tex
+\@screen=\write0
+
+
+ GreekTeX -- Version 3.0[c]
+ ---------------------------
+ GreekTeX is a macro package for typesetting greek texts.
+ It is maily compatible with the haralambous package,
+ from which it inherits the top level macros.
+ GreekTeX includes easy access to font families, a choise
+ of delimiters, and makes typesetting scientific papers
+ in greek as easy as in TeX itself.
+
+ Copyright K J Dryllerakis 1991
+ ------------------------------
+\greek=\language1
+\grfam=\fam8
+\grslfam=\fam9
+\grbffam=\fam10
+\grifam=\fam11
+\grttfam=\fam12
+)
+\ttglue=\skip18
+\pagewidth=\dimen16
+\pageheight=\dimen17
+\ruleht=\dimen18
+\footno=\count27
+\lefthsize=\dimen19
+\exdepth=\dimen20
+\testcount=\count28
+\exbox=\box16
+ [1] [2] [3] [4] )
+Output written on usage.dvi (4 pages, 20772 bytes).
diff --git a/fonts/greek/kd/doc/usage.tex b/fonts/greek/kd/doc/usage.tex
new file mode 100644
index 0000000000..493ddafda0
--- /dev/null
+++ b/fonts/greek/kd/doc/usage.tex
@@ -0,0 +1,590 @@
+% =====================================================================
+% == Greek Fonts & Format ==
+% == An example of the use of KD fonts & macros ==
+% == in composing papers containing greek text ==
+% == ==
+% == (C) Copyright 1991 K J Dryllerakis ==
+% == ==
+% == Last Revision : Sep 23, 1991 ==
+% =====================================================================
+%
+\input greektex % This is superfluous if greek format is used
+% ^ Use Version 3.0[b] or higher
+%
+% =====================================================================
+% == Font Declarations ==
+% =====================================================================
+%
+\catcode`@=11 % Access Plain TeX and its Macros
+%
+% The following point-setting macros are based on D Knuth's TeXBook
+%
+% Load standard fonts and their specifications
+%
+\font\ninerm=cmr9 \font\eightrm=cmr8 \font\sixrm=cmr6
+\font\ninei=cmmi9 \font\eighti=cmmi8 \font\sixi=cmmi6
+\font\ninesy=cmsy9 \font\eightsy=cmsy8 \font\sixsy=cmsy6
+\font\ninebf=cmbx9 \font\eightbf=cmbx8 \font\sixbf=cmbx6
+\font\ninett=cmtt9 \font\eighttt=cmtt8
+\font\nineit=cmti9 \font\eightit=cmti8
+\font\ninesl=cmsl9 \font\eightsl=cmsl8
+\skewchar\ninei='177 \skewchar\eighti='177 \skewchar\sixi='177
+\skewchar\ninesy='60 \skewchar\eightsy='60 \skewchar\sixsy='60
+\hyphenchar\ninett=-1 \hyphenchar\eighttt=-1 \hyphenchar\tentt=-1
+\font\csc=cmcsc10
+\font\titlefont=cmbx10 scaled\magstep1
+%
+% Define Font Point Families
+%
+\newskip\ttglue % for listings
+\def\tenpoint{\def\rm{\fam0\tenrm}%
+ \gdef\t@size{\grtenpoint} % We want greek to follow our conventions
+ \textfont0=\tenrm \scriptfont0=\sevenrm \scriptscriptfont0=\fiverm
+ \textfont1=\teni \scriptfont1=\seveni \scriptscriptfont1=\fivei
+ \textfont2=\tensy \scriptfont2=\sevensy \scriptscriptfont2=\fivesy
+ \textfont3=\tenex \scriptfont3=\tenex \scriptscriptfont3=\tenex
+ \textfont\itfam=\tenit \def\it{\fam\itfam\tenit}
+ \textfont\slfam=\tensl \def\sl{\fam\slfam\tensl}
+ \textfont\ttfam=\tentt \def\tt{\fam\ttfam\tentt}
+ \textfont\bffam=\tenbf \def\bf{\fam\bffam\tenbf}
+ \scriptfont\bffam=\sevenbf \scriptscriptfont\bffam=\fivebf
+ \tt \ttglue=.5em plus .25em minus.15em
+ \normalbaselineskip=.6cm
+ \setbox\strutbox=\hbox{\vrule height8.5pt width0pt depth4.5pt}%
+ \let\sc=\eightrm \normalbaselines\rm}
+%
+\def\ninepoint{\def\rm{\fam0\ninerm}%
+ \gdef\t@size{\grninepoint} % We want greek to follow our conventions
+ \textfont0=\ninerm \scriptfont0=\sixrm \scriptscriptfont0=\fiverm
+ \textfont1=\ninei \scriptfont1=\sixi \scriptscriptfont1=\fivei
+ \textfont2=\ninesy \scriptfont2=\sixsy \scriptscriptfont2=\fivesy
+ \textfont3=\tenex \scriptfont3=\tenex \scriptscriptfont3=\tenex
+ \textfont\itfam=\nineit \def\it{\fam\itfam\nineit}
+ \textfont\slfam=\ninesl \def\sl{\fam\slfam\ninesl}
+ \textfont\ttfam=\ninett \def\tt{\fam\ttfam\ninett}
+ \textfont\bffam=\ninebf \def\bf{\fam\bffam\ninebf}
+ \scriptfont\bffam=\sixbf \scriptscriptfont\bffam=\fivebf
+ \tt \ttglue=.5em plus .25em minus.15em
+ \normalbaselineskip=.52cm
+ \setbox\strutbox=\hbox{\vrule height8pt width0pt depth3pt}%
+ \let\sc=\sevenrm \normalbaselines\rm}
+%
+\def\eightpoint{\def\rm{\fam0\eightrm}%
+ \gdef\t@size{\greightpoint} % We want greek to follow our conventions
+ \textfont0=\eightrm \scriptfont0=\sixrm \scriptscriptfont0=\fiverm
+ \textfont1=\eighti \scriptfont1=\sixi \scriptscriptfont1=\fivei
+ \textfont2=\eightsy \scriptfont2=\sixsy \scriptscriptfont2=\fivesy
+ \textfont3=\tenex \scriptfont3=\tenex \scriptscriptfont3=\tenex
+ \textfont\itfam=\eightit \def\it{\fam\itfam\eightit}
+ \textfont\slfam=\eightsl \def\sl{\fam\slfam\eightsl}
+ \textfont\ttfam=\eighttt \def\tt{\fam\ttfam\eighttt}
+ \textfont\bffam=\eightbf \def\bf{\fam\bffam\eightbf}
+ \scriptfont\bffam=\sixbf \scriptscriptfont\bffam=\fivebf
+ \tt \ttglue=.5em plus .25em minus.15em
+ \normalbaselineskip=.35cm
+ \setbox\strutbox=\hbox{\vrule height7pt width0pt depth2pt}%
+ \let\sc=\sixrm \normalbaselines\rm}
+%
+% =====================================================================
+% == Format (Page) Definitions ==
+% == New Output routine ==
+% =====================================================================
+\newdimen\pagewidth \newdimen\pageheight \newdimen\ruleht
+\hsize=16.5truecm \vsize=23truecm \maxdepth=2.5pt
+\parindent=10pt \parskip=0pt
+\pagewidth=\hsize \pageheight=\vsize \ruleht=1pt
+\abovedisplayskip=6pt plus 3pt minus 1pt
+\belowdisplayskip=6pt plus 3pt minus 1pt
+\abovedisplayshortskip=0pt plus 3pt
+\belowdisplayshortskip=4pt plus 3pt
+\hfuzz=1pt % Do not make fuss for over 1pt of overfull hbox!
+\overfullrule=0pt % and certainly don't show these boxes to us!
+%
+% Define New Insert for Footnotes
+%
+%
+\def\footnote#1{\edef\@sf{\spacefactor\the\spacefactor}#1\@sf
+ \insert\footins\bgroup\eightpoint
+ \interlinepenalty100 \let\par=\endgraf
+ \leftskip=0pt \rightskip=0pt
+ \splittopskip=10pt plus 1pt minus 1pt \floatingpenalty=20000
+ \smallskip\textindent{#1}\bgroup\strut\aftergroup\@foot\let\next}
+\skip\footins=12pt plus 2pt minus 4pt % space added when footnote exists
+\dimen\footins=30pc % maximum footnotes per page
+\def\footnt{\advance\footno by1\footnote{$^{\number\footno}$}}
+%
+%
+\newif\ifnopagenums\nopagenumsfalse % Shall we include pagenumbers
+\def\nopagenumbers{\nopagenumstrue}
+\def\pagenumbers{\global\nopagenumsfalse}
+%
+% Headlines
+%
+\def\rhead{} % Running Head
+\def\leftheadline{\hbox to\pagewidth{%
+ \vbox to 10pt{}% Strut to position the baseline
+ \tenit\rhead\hfil%
+ \ifnopagenums\else\rlap{\kern0.1pc\tenbf\folio}\fi}}% Running Head left
+\def\rightheadline{\hbox to\pagewidth{%
+ \vbox to 10pt{}% Strut to position the baseline
+ \tenit\rhead\hfil%
+ \ifnopagenums\else\rlap{\kern0.1pc\tenbf\folio}\fi}}%Running Head right
+%
+% Output routine
+%
+\def\onepageout#1{\shipout\vbox{
+ \offinterlineskip
+ \vbox to 3pc{
+ \ifnum\pageno>1
+ \ifodd\pageno\rightheadline\else\leftheadline\fi
+ \fi
+ \vfill}
+ \vbox to \pageheight{
+ #1
+ \ifvoid\footins\else
+ \vskip\skip\footins \kern-3pt
+ \hrule height\ruleht width3cm \kern-\ruleht \kern3pt
+ \unvbox\footins
+ \fi
+ \boxmaxdepth=\maxdepth}}
+ \advancepageno}
+\output{\onepageout{\unvbox255}}
+\newcount\footno\footno=0 % Footnote Number
+\def\section#1{%
+ \medbreak\bigskip
+ \centerline{{\bf #1}}\nobreak
+ \bigskip}
+%
+\def\titleline#1{\line{\hss\titlefont #1\hss}}
+\def\beginFine{\par\bgroup\eightpoint}
+\def\endFine{\egroup\par}
+%
+% Verbatim Listings
+%
+\def\uncatcodespecials{\def\do##1{\catcode`##1=12}\dospecials}
+\def\ttverbatim{\begingroup
+\uncatcodespecials\obeyspaces\obeylines\tt}
+{\obeyspaces\gdef {\ }}
+\outer\def\begintt{\let\par=\endgrapf \ttverbatim\parskip=0pt
+ \ttfinish}
+
+{\catcode`\|=0 |catcode`|\=12
+|obeylines
+|gdef|ttfinish#1^^M#2\endtt{#1|vbox{#2}|endgroup}}
+\catcode`\|=\active % When not in a greek group
+{\obeylines\gdef|{\ttverbatim\spaceskip=\ttglue\let^^M=\ \let|=\endgroup}}
+% =====================================================================
+% == Miscellaneous Definitions ==
+% =====================================================================
+\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\boxit#1{\vbox{\hrule\hbox{\vrule\kern3pt\vbox{\kern3pt#1\kern3pt}%
+\kern3pt\vrule}\hrule}}
+\def\topboxit#1{\vtop{\hrule\hbox{\vrule\kern3pt\vbox{\kern3pt#1\kern3pt}%
+\kern3pt\vrule}\hrule}}
+\catcode`@=12
+% New defs
+\def\LaTeX{{\rm L\kern-.36em\raise.3ex\hbox{\csc a}\kern-.15em
+ T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
+\def\greektex{{\csc GreeK}\TeX}%
+\chardef\|`\|
+%
+\newdimen\lefthsize
+\newdimen\exdepth
+\newcount\testcount
+\newbox\exbox
+%
+% Macro For typesetting examples
+%
+\def\exparagraph{%
+\hangindent\lefthsize\testcount=0%
+\loop \advance\testcount by1\ifdim\exdepth>\testcount\baselineskip \repeat
+\advance\testcount by-1
+\hangafter-\testcount
+\rlap{\hbox to\hangindent{\hss\vbox to0pt{\box\exbox\vss}\hss}}
+\ignorespaces}
+
+\def\contparagraph#1{%
+\hangindent\lefthsize
+\hangafter-#1\ignorespaces}
+%
+% =====================================================================
+%
+\greekdelims{dollar} % keep bar for ttverbatim
+\vskip2truecm
+\titleline{Typesetting Greek Texts with \greektex}
+\bigskip
+\centerline{\csc K J Dryllerakis}
+\bigskip
+\centerline{Imperial College}
+\centerline{Department of Computing}
+\centerline{London}
+\centerline{(|kd@doc.ic.ac.uk|)}
+\vskip1truecm
+
+ This document describes \greektex, yet another something-\TeX\
+application, a package for typesetting greek texts. The following
+pages are intended to be a quick tutorial on the package and not a
+detailed account of the package. It is assumed that the \greektex\
+package is already installed at you site and both the greek format
+file (|greek.fmt|) and the alternative \greektex\ macros
+(|greektex.tex|) are accesible to the user. We also assume that all
+the recomended |kd| fonts exist in the font path. If this is not the
+case please consult the installation procedure document which gives
+all the information needed to install the package in your site. In
+the discussion to follow, more \TeX nical material is presented in a
+finer print.
+
+\section{The Greek Mode And Fonts}
+
+ In order to typeset greek text, you have to advise \TeX\ to
+enter a ``Greek Mode''\footnt{The idea of a ``greek environment'' was first
+introduced by Sylvio Levi in his greek fonts; the top level macros of
+our package are inherited from this first approach.}. Entering the
+greek mode is achieved by typing |\begingreek| at the position were
+we want the greek text to begin. The greek mode will be active until
+an |\endgreek| is typed, when we return to the previous state. Inside
+the greek mode, the latin characters typed correspond to the greek
+alphabet and diacritic marcs. The family changing commands (|\sl|,
+|\bf|, |\tt|, |\it|) are automatically switched to correspond to the
+proper greek font families and the classical greek font corresponds
+to the |\gr| or |\rg| command. Roman letters are still available
+through the |\rm| and |\l|{\it oldsequence\/} commands (e.g. |\lsl|).
+When we re-enter the greek mode, the font used last is remembered and
+typesetting continues from the state we left of in the previous greek
+mode.
+\beginFine
+ \TeX nically, entering the greek mode means {\it i\/}. to redifine the
+|\catcode| values for several characters (mostly accents and
+breathing symbols), {\it ii\/}. to declare that we are currently
+typesetting in greek and use the correct hyphenation tables, {\it
+iii\/}. switch to the point size and font used last, and {\it iv\/}.
+redifine the control sequences corresponding to font family switching
+(e.g. |\sl| etc.).
+\endFine
+The font families that are currently avaible are all based on the
+original designs by Sylvio Levi and Haralambous. The families (and
+the corresponding font switching commands) are: classical greek
+(|\gr| or |\rg|), slanted greek (|\sl|), greek italics (|\it|),
+boldface greek (|\bf|) and typewriter greek (|\tt|). Remember that
+these families are only available inside greek mode.
+\beginFine
+ A set of point-setting commands are made available from the
+greek format. Three sizes are prespesified for ten, nine, and eight
+points respectevly. The corresponding commands are |\grtenpoint|,
+|\grninepoint|, and |\greightpoint|. Since not all fonts exist in the
+sizes need, scaled fonts are used instead. Remeber that re-entry in
+the greek mode means picking up from exactly where we previously left
+i.e. from the same point size. If point-size changes are to remain
+local the user is encouraged to enclose them in groups.
+
+ The real names for the control sequences switching to greek
+font families are |\gr|, |\git|, |\gsl|, |\gbf|, |gtt|. These
+commands can be used even outside greek mode to typeset greek short
+texts but it is not recomended. Note that the \LaTeX\ version of
+\greektex\ (the greek style file |greek.sty|) uses only these font
+changing commands.
+\endFine
+Since the commands |\begingreek| and |\endgreek| can be quite tedious
+to repeat, they can be both substituted either by the character |$| or
+{\tt\|} if at the beginning of your file you specify
+|\greekdelims{dollar}| or |\greekdelims{bar}| repsectively. In case
+the |$| character is used, math mode is accessed by the control
+sequence |\math|.
+
+\section{The Greek Alphabet}
+
+ Since \TeX\ was designed to help portability of files, most
+implemetations support only 128 character input (file transfer is
+also based on the 128 ascii set). That means we have to use the Latin
+alphanumeric characters to represent the greek ones. The following
+scheme is used to represent greek characters inside the greek mode:
+\math\math
+\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
+ c&c\cr}}
+\math\math
+\beginFine
+ It is a common practise in Greece to substitue the characters
+corresponding to the higher
+ascii codes by greek characters so that users are able to see the
+greek characters directly on the screen. It is fairly easy to write a
+program to transform any such ascii output to the corresponding
+``latin'' representation of the greek characters and feed it directly
+to \TeX 's mouth. For example such a translation program is supplied
+with the current distribution of the em\TeX\ package for DOS based
+machines.
+\endFine
+
+\section{Accents, Breathing And Punctuation}
+
+ Three different accents are encountered in greek texts. In
+order to accent a vowel simply type |'|, |`|, or |~| to get an acute,
+grave or circumflex accent repsectively. Breathing signs are achieved
+in the same way by preceding the vowel (and any accent that it may
+have) with |<| for rough and |>| for
+smooth breathing. Breathings can also be used before a greek rho
+($r$). Iota subscript is achieved by typing {\tt \|} {\it after\/}
+vowel. The diairesis sign is achieved by presiding a (maybe accented)
+vowel by |"|. Greek punctutation marcs are achieved according to the
+following table:
+\math\math
+\hbox{\valign
+ {\hbox to 15pt{\hfil\strut$#$\hfil}&\hbox to 15pt{\hfil\strut\tt#\hfil}\cr
+ .&.\cr ,&,\cr ;&;\cr :&:\cr !&!\cr ?&?\cr ''&''\cr ((&((\cr ))&))\cr}}
+\math\math
+For example, concider the following quotation from Xenophon :
+\bigskip
+{\narrower\narrower\noindent$>En o>udem'ia g'ar p'olei t`o b`eltiston e>'unoun >est`i t~w|
+d~hmw|, >all`a t`o k'akiston >en <ek'asth| >est`i p'olei e>'unoun
+t~w| d~hmw|; o<i g'ar <'omoioi to~ic <omo'ioic e>'unoi e>isi.$\par}
+\bigskip
+\noindent was typeset by \par
+\medskip
+\math\math
+\vbox{\advance\hsize by-40pt\parindent=0pt\noindent
+\obeylines
+|>En o>udem'ia g'ar p'olei t`o b`eltiston e>'unoun >est`i t~w|{\tt\|}
+|d~hmw|{\tt\|}|, >all`a t`o k'akiston >en <ek'asth|{\tt\|}| >est`i|
+|p'olei e>'unoun t~w|{\tt\|}| d~hmw|{\tt\|}|; o<i g'ar <'omoioi to~ic|
+|<omo'ioic e>'unoi e>isi.|
+}
+\math\math
+\noindent Note the use of punctuation and breathing marks before the
+vowels.
+\beginFine
+All accents and breathings are recognised as normal letters insode
+the greek mode. They will print for themselves when they stand alone
+but form ligatures when preciding a vowel. The ligatures do all the
+work for us; the kerning between accents or breathing and capital
+vowels is also done through kerning. This simplifies the macros used
+and the greek character set is usable with only a few |\catcode|
+definitions. All the rest of the mechanisms supplied in the greek
+format are only to facilitate the usage of the fonts in standard text
+and macro creation.
+\endFine
+
+\section{Hyphenation}
+
+ If you are working with the greek format file, then correct
+hyphenation is assured for greek text. The hyphenation patterns
+supplied in the file are the ones compiled by Haralambous in France.
+If you are working with the file |greektex.tex| then no hyphenation
+patterns are loaded; this fact makes the macros of |greektex.tex|
+suitable for only small greek texts. \greektex, takes full advantage
+of the multilingual characteristics of \TeX\ version 3.0 or higher by
+declaring a new language and identifying the correct patterns for this
+new language. The result is correct hyphenation for texts containing
+both greek and latin texts.
+\beginFine
+In case you want to use \greektex with another multilingual package,
+it is important to find out the limitation of your \TeX version. It
+is possible that the number of allowed hyphenation patterns exceeds
+the number needed. Remember that plain \TeX\ uses 4447 patterns and
+\greektex\ needs a futher 1170.
+
+It is possible to see the proposed hyphenation for a word using a
+macro similar to |\showhyphens| (supplied with plain \TeX). The macro
+|\showgreekhyphens| can be used succesfully only inside greek mode.
+This is due to the fact that the argument for the macro has to be
+scanned with the correct |\catcode| values active.
+\endFine
+\bigskip
+%
+%%%% TEST
+
+\section{Building Macros}
+
+ Let us now turn to some examples that will demonstrate the
+use of the \greektex\ macros within your own definitions.
+
+%% Define macros for the current section
+
+\def\verse#1#2{\line{#1\hfil#2}}
+
+
+\setbox\exbox=\vtop{\hrule height0pt
+\hrule\hbox{\vrule\kern6pt\vbox{\kern6pt%
+ \vbox{\hsize=7truecm
+ $\greightpoint
+ \centerline{\bf PALAIOJEN ELLHNIS}
+ \smallskip
+ \verse{Kauqi'etai <h >Anti'oqeia}{gi`a t`a lampr'a thc kt'iria,}
+ \verse{ka`i to'uc <wra'iouc thc dr'omouc;}{gi`a t`hn per`i a>ut'hn}
+ \verse{jaum'asian >exoq'hn,}{ka`i gi`a t`o m'ega pl~hjoc}
+ \verse{t~wn >en a>ut~h| kato'ikwn.}{Kauqi'etai po`u e>~in'' <h <'edra}
+ \verse{>end'oxwn basil'ewn;}{ka`i gi`a to`uc kallit'eqnac}
+ \verse{ka`i to`uc sofo'uc po`u >'eqei,}{ka`i gi`a to`uc bajuplo'utouc}
+ \verse{ka`i gnwstiko`uc >emp'orouc.}{M`a pi`o pol`u >asugkr'itwc}
+ \verse{>ap'' <'ola, <h >Anti'oqeia}{kauqi'etai po`u e>~inai p'olic}
+ \verse{palai'ojen <ellhn'ic;}{to~u >'Argouc suggen'hc:}
+ \verse{>ap'' t`hn >I'wnh po`u}{<idr'ujh <up`o >Arge'iwn}
+ \verse{>apo'ikwn pr`oc tim`hn}{t~hc k'orhc to~u >In'aqou.}
+ \bigskip
+ \leftline{K. Kab'afhc}$
+ }
+ \kern6pt}\kern6pt\vrule}\hrule}
+\lefthsize=\wd\exbox\advance\lefthsize by20pt%
+\exdepth=\dp\exbox\advance\exdepth by\ht\exbox
+%% End of example macros
+
+\exparagraph Let us try to typeset this poem written by a greek poet
+of the 20th century. The peculiar format is the original one required
+by the poet. It is immediatly apparent that a command taking two
+arguments can be used to typeset each verse; the arguments will be
+the left and right part of each verse. The only important problem
+encountered is the following: when \TeX\ is reading the
+arguments of a command, it immedietly assigns |\catcode| values to
+the tokens read. So, if the correct |\catcode| values are not active
+at the time the arguments are scanned, \TeX\ is much confused.
+Consequently, macros that take as arguments greek text must be called
+from within greek mode. Having that in mind we can define a macro
+|\verse| that will correctly typeset one verse of the poem. The macro
+is defined as follows:
+\smallskip
+\hbox to\hsize{\hss|\def\verse#1#2{\line{#1\hfill#2}}|\hss}
+\smallskip
+\noindent It is assumed of course that the |\hsize| required
+for the document is already set. The rest is easy.
+\math\math
+\vbox{\narrower\narrower\parindent=0pt\obeylines
+ |$|
+ |\centerline{\bf PALAIOJEN ELLHNIS}|
+ |\smallskip|
+ |\verse{Kauqi'etai <h >Anti'oqeia}{gi`a t`a lampr'a thc kt'iria,}|
+ \centerline{\vdots}
+ |\verse{>apo'ikwn pr`oc tim`hn}{t~hc k'orhc to~u >In'aqou.}|
+ |\bigskip|
+ |\leftline{K. Kab'afhc}|
+ |$|}
+\math\math
+
+%% Begin Example macros
+{\setlatin % Switch to normal TeX Mode (Deactivate both | and $)
+\greekdelims{bar}
+\global\setbox\exbox=\vtop{\hrule height0pt
+\hrule\hbox{\vrule\kern6pt\vbox{\kern6pt%
+ \vbox{\hsize=9.6truecm\eightpoint
+ |\greightpoint\gr
+ \hbox to\hsize{\hfil {\tengri 7.2 T'o s'usthma K'entrou %
+M'azac 172}}
+ \bigskip
+ \noindent {\bf 7.2 To s'usthma k'entrou M'azac}
+ \medskip
+ E'inai suqn'a bolik'o na perigr'afetai h k'inhsh tou sust'hmatoc se
+ pla'isio anafor'ac sto opo'io to k'entro m'azac hreme'i sthn arq'h twn
+ ax'onwn. (Se barutik'o ped'io, to s'usthma aut'o e'inai epitagqun'omeno, mh
+ adraneiak'o, par'ola aut'a e'inai p'ali qr'hsimo.) Kale'itai to s'usthma
+ {\it k'entrou m'azac} (KM). Ja sumbol'izoume ta meg'ejh pou andaf'erontai
+ s''aut'o me 'enan aste\-r'i\-sko.
+
+ H sqetik'h j'esh $r$ e'inai b'ebaia anex'arthth ap'o to p'wc
+ epil'egetai h arq'h, 'etsi 'wste j'etontac $R^*=0$ st'hn
+ (7.7) br'iskoume
+ $${\lbf r}^*_1={m_2\over M}{\lbf r},\qquad {\lbf r}^*_2=-{m_1\over
+ M}{\lbf r}\eqno(7.12)$$
+ St'o s'usthma aut'o, oi orm'ec twn d'uo swmat'iwn e'inai
+ ('isec kai) ant'ijetec,
+ $$m_ir^*_i = -m_2r^*_2=\mu r = p^*\eqno(7.13)$$
+ 'Opwc ja do'ume kajar'a arg'otera, e'inai suqn'a bolik'o
+ na epil'uoume ena pr'oblhma pr'wta sto s'usthma KM. %Gia na
+% bro'ume thn l'ush se k'apoio 'allo
+% s'usthma, qreiaz'omaste t'ote tic sq'eseic an'amesa
+% stic orm'ec sta d'uo
+% sust'hmata. Ac jewr'hsoume 'ena s'usthma sto opo'io to k'entro m'azac
+% kine'itai me taq'uthta ${\lbf R}$. T'ote oi taq'uthtec twn d'uo
+% swmatid'iwn e'inai:
+ |
+ \smallskip
+ \hbox to\hsize{\hss\vdots\hss}
+ }
+ \kern6pt}\kern6pt\vrule}\hrule}
+}
+\lefthsize=\wd\exbox\advance\lefthsize by20pt%
+\exdepth=\dp\exbox\advance\exdepth by\ht\exbox
+%% End of example macros
+\exparagraph \tolerance=2000 Let us now turn to our second example which will demonstrate
+scientific typesetting in greek. The example is taken from the book
+{\it Classical Mechanics\/} by T.W.B. Kibble in its greek
+translation. Let us suppose that we are trying to typeset this book;
+how would we go about to build the macros needed? First of all we
+will be using a lot of math formulae and therefore we are in
+desperate need of the start and end math symbol. Since we are using
+modern greek and no iota ligatures are needed, we can redifine the
+bar {\tt\|} to stand for the begin and end greek by
+|\greekdelims{bar}|. This might turn out to be convenient if we
+want to include latin words in the text. Now for the macros.
+Starting with the
+headline appearing at the top of the page we need to define the
+|\headline| macro. This must be done within greek mode to correctly
+interprent the tokens scanned:
+\math\math
+\vbox{\parindent=0pt\obeylines
+|\begingreek|
+|\global\headline={\hfil {\git T'o s'usthma K'entrou M'azac}\ \folio}|
+|\endgreek|}
+\math\math
+It might be wiser to change the |\git| command either to
+|\grtenpoint\git| or |\tengri| to ensure that the correct font is
+selected when the output routine is called.
+
+To typeset math formulae you only have to use the standard \TeX\
+rules. Even within greek mode entering the math mode has exactly the
+same effect as from the plain \TeX\ mode. This is not entirely true
+since the font changing sequences are redefined. If you want boldface
+characters within the math mode you have to use the |\lbf| command
+and the same for any other family. See how is it really is:
+\math\math
+\vbox{\eightpoint\parindent=0pt\obeylines
+ |\hsize=12truecm|
+ |\begingreek|
+ |\grtenpoint % Switch to ten point characters|
+ |\gr % Default font|
+ |\noindent {\bf 7.2 To s'usthma k'entrou M'azac}|
+ |\medskip|
+ |E'inai suqn'a bolik'o na perigr'afetai h k'inhsh tou sust'hmatoc se|
+ |pla'isio anafor'ac sto opo'io to k'entro m'azac hreme'i sthn arq'h twn|
+ |ax'onwn. (Se barutik'o ped'io, to s'usthma aut'o e'inai epitagqun'omeno, mh|
+ |adraneiak'o, par'ola aut'a e'inai p'ali qr'hsimo.) Kale'itai to s'usthma|
+ |{\it k'entrou m'azac} (KM). Ja sumbol'izoume ta meg'ejh pou andaf'erontai|
+ |s''aut'o me 'enan aster'isko.|
+
+ |H sqetik'h j'esh $r$ e'inai b'ebaia anex'arthth ap'o to p'wc|
+ |epil'egetai h arq'h, 'etsi 'wste j'etontac $R^*=0$ st'hn|
+ |(7.7) br'iskoume|
+ |$${\lbf r}^*_1={m_2\over M}{\lbf r},|
+ | \qquad {\lbf r}^*_2=-{m_1\over M}{\lbf r}\eqno(7.12)$$|
+ |St'o s'usthma aut'o, oi orm'ec twn d'uo swmat'iwn e'inai |
+ |('isec kai) ant'ijetec,|
+ |$$m_ir^*_i = -m_2r^*_2=\mu r = p^*\eqno(7.13)$$|
+ |'Opwc ja do'ume kajar'a arg'otera, e'inai suqn'a bolik'o |
+ |na epil'uoume ena pr'oblhma pr'wta sto s'usthma KM.|
+ |\endgreek|
+}
+\math\math
+
+\section{Final Remarks}
+
+ Except from the macros explained above, the greek format also
+has a set ofgeneral use macros. It is possinble that in certain
+cases, greek mode will be the dominant mode. To switch to a permenant
+greek mode use the command |\setgreek|. If you want to restore the
+original \TeX\ mode (including restoring any reassignents of |$| or
+{\tt\|}) use the command |\setlatin|.
+\beginFine
+ These commands are based on the internal commands
+|\gr@@km@de| and |\l@tinmode|. Both define the |\catcode|s for the
+mode. A macro-builder can use them to create different environments
+e.g. a command to switch to english from a global greek mode. Just
+remeber that you will be on your own so you will have to switch to
+the enclish language manually by a command |\language0|.
+\endFine
+
+\bye
+
diff --git a/fonts/greek/kd/emtex/c_gralatex.bat b/fonts/greek/kd/emtex/c_gralatex.bat
new file mode 100644
index 0000000000..026a07e3fe
--- /dev/null
+++ b/fonts/greek/kd/emtex/c_gralatex.bat
@@ -0,0 +1,12 @@
+@echo off
+If "%1"=="" goto end
+If "%TEMP%"=="" goto notmp
+texconv -a greek %1.tex %TEMP%\%1.$$$
+tex386 &lgreek %TEMP%/%1.$$$ %2 %3
+if exist %TEMP%\%1.$$$ del %TEMP%\%1.$$$
+goto end
+:notmp
+texconv -a greek %1.tex %1.$$$
+tex386 &lgreek %1.$$$ %2 %3
+If exist %1.$$$ del %1.$$$
+:end
diff --git a/fonts/greek/kd/emtex/c_grtex.bat b/fonts/greek/kd/emtex/c_grtex.bat
new file mode 100644
index 0000000000..629501d4cc
--- /dev/null
+++ b/fonts/greek/kd/emtex/c_grtex.bat
@@ -0,0 +1,13 @@
+@echo off
+If "%1"=="" goto end
+If "%TEMP%"=="" goto notmp
+texconv -a greek %1.tex %TEMP%\%1.$$$
+tex386 &greek %TEMP%/%1.$$$ %2 %3
+if exist %TEMP%\%1.$$$ del %TEMP%\%1.$$$
+goto end
+:notmp
+texconv -a greek %1.tex %1.$$$
+tex386 &greek %1.$$$ %2 %3
+If exist %1.$$$ del %1.$$$
+:end
+
diff --git a/fonts/greek/kd/emtex/greek.asc b/fonts/greek/kd/emtex/greek.asc
new file mode 100644
index 0000000000..d9feb51e0b
--- /dev/null
+++ b/fonts/greek/kd/emtex/greek.asc
@@ -0,0 +1,68 @@
+%
+% greek.tcp
+%
+^^80 -> A
+^^81 -> B
+^^82 -> G
+^^83 -> D
+^^84 -> E
+^^85 -> Z
+^^86 -> H
+^^87 -> J
+^^88 -> I
+^^89 -> K
+^^8a -> L
+^^8b -> M
+^^8c -> N
+^^8d -> X
+^^8e -> O
+^^8f -> P
+^^90 -> R
+^^91 -> S
+^^92 -> T
+^^93 -> U
+^^94 -> F
+^^95 -> Q
+^^96 -> Y
+^^97 -> W
+^^98 -> a
+^^99 -> b
+^^9a -> g
+^^9b -> d
+^^9c -> e
+^^9d -> z
+^^9e -> h
+^^9f -> j
+^^a0 -> i
+^^a1 -> k
+^^a2 -> l
+^^a3 -> m
+^^a4 -> n
+^^a5 -> x
+^^a6 -> o
+^^a7 -> p
+^^a8 -> r
+^^a9 -> s
+^^aa -> c
+^^ab -> t
+^^ac -> u
+^^ad -> f
+^^ae -> q
+^^af -> y
+^^e0 -> w
+^^e1 -> 'a
+^^e2 -> 'e
+^^e3 -> 'h
+^^e4 -> "i
+^^e5 -> 'i
+^^e6 -> 'o
+^^e7 -> 'u
+^^e8 -> "u
+^^e9 -> 'w
+^^ea -> 'A
+^^eb -> 'E
+^^ec -> 'H
+^^ed -> 'I
+^^ee -> 'O
+^^ef -> 'Y
+^^f0 -> 'W
diff --git a/fonts/greek/kd/emtex/greek.tcp b/fonts/greek/kd/emtex/greek.tcp
new file mode 100644
index 0000000000..043c18bee5
--- /dev/null
+++ b/fonts/greek/kd/emtex/greek.tcp
Binary files differ
diff --git a/fonts/greek/kd/emtex/greektex.bat b/fonts/greek/kd/emtex/greektex.bat
new file mode 100644
index 0000000000..0b41a70a23
--- /dev/null
+++ b/fonts/greek/kd/emtex/greektex.bat
@@ -0,0 +1,2 @@
+@echo off
+@tex386 &greek %1 %2 %3 %4
diff --git a/fonts/greek/kd/emtex/grlatex.bat b/fonts/greek/kd/emtex/grlatex.bat
new file mode 100644
index 0000000000..c55c2eecff
--- /dev/null
+++ b/fonts/greek/kd/emtex/grlatex.bat
@@ -0,0 +1,2 @@
+@echo off
+tex386 &lgreek %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/fonts/greek/kd/emtex/kdgreek.mfj b/fonts/greek/kd/emtex/kdgreek.mfj
new file mode 100644
index 0000000000..bb8474cef9
--- /dev/null
+++ b/fonts/greek/kd/emtex/kdgreek.mfj
@@ -0,0 +1,17 @@
+%
+% kdgreek.mfj
+%
+input [modes];
+def s=[0.8 0.9 s0 sh s1 s2 s3 s4 s5]; % Unless changed on command line
+{
+base=cm;
+ {
+ fonts=kdgr# kdbf# kdsl# kdti# kdtt#;
+ mags=s; m;
+ }
+ {
+ fonts=kdgr8 kdbf8;
+ mags=0.75; m;
+ }
+}
+
diff --git a/fonts/greek/kd/install/greekfonts.log b/fonts/greek/kd/install/greekfonts.log
new file mode 100644
index 0000000000..ef5c0e9e3d
--- /dev/null
+++ b/fonts/greek/kd/install/greekfonts.log
@@ -0,0 +1,2 @@
+/usr/local/tex/tmp/pk/300/kdgr10.pk and /usr/local/tex/tmp/tfm/kdgr10.tfm already exist
+/usr/local/tex/tmp/pk/300/kdgr9.pk and /usr/local/tex/tmp/tfm/kdgr9.tfm already exist
diff --git a/fonts/greek/kd/install/links b/fonts/greek/kd/install/links
new file mode 100644
index 0000000000..47cb644c26
--- /dev/null
+++ b/fonts/greek/kd/install/links
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Link greek latex files in local directory
+ln -s ~kd/tex/kdgreek/latex/grarticle.sty grarticle.sty
+ln -s ~kd/tex/kdgreek/latex/grart10.sty grart10.sty
+ln -s ~kd/tex/kdgreek/latex/grart12.sty grart12.sty
+ln -s ~kd/tex/kdgreek/latex/grbook.sty grbook.sty
+ln -s ~kd/tex/kdgreek/latex/grbk10.sty grbk10.sty
+ln -s ~kd/tex/kdgreek/latex/grbk11.sty grbk11.sty
+ln -s ~kd/tex/kdgreek/latex/grbk12.sty grbk12.sty
+ln -s ~kd/tex/kdgreek/latex/greek.sty greek.sty
+ln -s ~kd/tex/kdgreek/latex/grfonts.tex grfonts.tex
+ln -s ~kd/tex/kdgreek/tex/greektex.tex greektex.tex
+ln -s ~kd/tex/kdgreek/tex/grmode.sty grmode.sty \ No newline at end of file
diff --git a/fonts/greek/kd/install/makefonts b/fonts/greek/kd/install/makefonts
new file mode 100644
index 0000000000..758efecf54
--- /dev/null
+++ b/fonts/greek/kd/install/makefonts
@@ -0,0 +1,39 @@
+#!/bin/sh
+MakeTeXPK kdgr10 scaled 1000 >greekfonts.log
+MakeTeXPK kdgr10 scaled 1200 >>greekfonts.log
+MakeTeXPK kdgr10 scaled 1440 >>greekfonts.log
+MakeTeXPK kdgr10 scaled 1728 >>greekfonts.log
+MakeTeXPK kdgr9 scaled 1000 >>greekfonts.log
+MakeTeXPK kdgr9 scaled 1200 >>greekfonts.log
+MakeTeXPK kdgr9 scaled 1440 >>greekfonts.log
+MakeTeXPK kdgr9 scaled 1728 >>greekfonts.log
+MakeTeXPK kdgr8 scaled 750 >>greekfonts.log
+MakeTeXPK kdgr8 scaled 1000 >>greekfonts.log
+MakeTeXPK kdgr8 scaled 1200 >>greekfonts.log
+MakeTeXPK kdgr8 scaled 1440 >>greekfonts.log
+MakeTeXPK kdgr8 scaled 1728 >>greekfonts.log
+MakeTeXPK kdbf10 scaled 1000 >greekfonts.log
+MakeTeXPK kdbf10 scaled 1200 >>greekfonts.log
+MakeTeXPK kdbf10 scaled 1440 >>greekfonts.log
+MakeTeXPK kdbf10 scaled 1728 >>greekfonts.log
+MakeTeXPK kdbf9 scaled 1000 >>greekfonts.log
+MakeTeXPK kdbf9 scaled 1200 >>greekfonts.log
+MakeTeXPK kdbf9 scaled 1440 >>greekfonts.log
+MakeTeXPK kdbf9 scaled 1728 >>greekfonts.log
+MakeTeXPK kdbf8 scaled 750 >>greekfonts.log
+MakeTeXPK kdbf8 scaled 1000 >>greekfonts.log
+MakeTeXPK kdbf8 scaled 1200 >>greekfonts.log
+MakeTeXPK kdbf8 scaled 1440 >>greekfonts.log
+MakeTeXPK kdbf8 scaled 1728 >>greekfonts.log
+MakeTeXPK kdti10 scaled 1000 >greekfonts.log
+MakeTeXPK kdti10 scaled 1200 >>greekfonts.log
+MakeTeXPK kdti10 scaled 1440 >>greekfonts.log
+MakeTeXPK kdti10 scaled 1728 >>greekfonts.log
+MakeTeXPK kdsl10 scaled 1000 >greekfonts.log
+MakeTeXPK kdsl10 scaled 1200 >>greekfonts.log
+MakeTeXPK kdsl10 scaled 1440 >>greekfonts.log
+MakeTeXPK kdsl10 scaled 1728 >>greekfonts.log
+MakeTeXPK kdtt10 scaled 1000 >greekfonts.log
+MakeTeXPK kdtt10 scaled 1200 >>greekfonts.log
+MakeTeXPK kdtt10 scaled 1440 >>greekfonts.log
+MakeTeXPK kdtt10 scaled 1728 >>greekfonts.log
diff --git a/fonts/greek/kd/latex/grart10.sty b/fonts/greek/kd/latex/grart10.sty
new file mode 100644
index 0000000000..f9f96e24b7
--- /dev/null
+++ b/fonts/greek/kd/latex/grart10.sty
@@ -0,0 +1,379 @@
+% GREEK ARTICLE DOCUMENT STYLE -- Released 10 Oct 1991
+% for LaTeX version 2.09 - Greek TeX 3.1
+% Original Article style Copyright (C) 1987 by Leslie Lamport
+% Greek Article Style Copyright (C) 1991-1992 by K J Dryllerakis
+% Changes: $ ---> m@thm@de
+% < ---> \lt (less than)
+% > ---> \gt (greater than)
+% ****************************************
+% * FONTS *
+% ****************************************
+%
+
+\lineskip 1pt % \lineskip is 1pt for all font sizes.
+\normallineskip 1pt
+\def\baselinestretch{1}
+
+% Each size-changing command \SIZE executes the command
+% \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
+% where:
+% BASELINESKIP = Normal value of \baselineskip for that size. (Actual
+% value will be \baselinestretch * BASELINESKIP.)
+%
+% \FONTSIZE = Name of font-size command. The currently available
+% (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
+% \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
+% \xivpt, \xviipt, \xxpt, \xxvpt.
+% \@FONTSIZE = The same as the font-size command except with an
+% '@' in front---e.g., if \FONTSIZE = \xivpt then
+% \@FONTSIZE = \@xivpt.
+%
+% For reasons of efficiency that needn't concern the designer,
+% the document style defines \@normalsize instead of \normalsize . This is
+% done only for \normalsize, not for any other size-changing commands.
+
+\def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
+\abovedisplayskip 10pt plus2pt minus5pt%
+\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt%
+\belowdisplayshortskip 6pt plus3pt minus3pt%
+\let\@listi\@listI} % Setting of \@listi added 9 Jun 87
+
+\def\small{\@setsize\small{11pt}\ixpt\@ixpt
+\abovedisplayskip 8.5pt plus 3pt minus 4pt%
+\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus2pt%
+\belowdisplayshortskip 4pt plus2pt minus 2pt
+\def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
+\topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
+\itemsep \parsep}}
+
+\def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
+\abovedisplayskip 6pt plus 2pt minus 4pt%
+\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus 1pt%
+\belowdisplayshortskip 3pt plus 1pt minus 2pt
+\def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
+\topsep 3pt plus 1pt minus 1pt\parsep 2pt plus 1pt minus 1pt
+\itemsep \parsep}}
+
+\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
+\def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
+\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
+\def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
+\def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
+\def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
+\def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
+
+\normalsize % Choose the normalsize font.
+
+% ****************************************
+% * PAGE LAYOUT *
+% ****************************************
+%
+% All margin dimensions measured from a point one inch from top and side
+% of page.
+
+% SIDE MARGINS:
+\if@twoside % Values for two-sided printing:
+ \oddsidemargin 44pt % Left margin on odd-numbered pages.
+ \evensidemargin 82pt % Left margin on even-numbered pages.
+ \marginparwidth 107pt % Width of marginal notes.
+\else % Values for one-sided printing:
+ \oddsidemargin 63pt % Note that \oddsidemargin = \evensidemargin
+ \evensidemargin 63pt
+ \marginparwidth 90pt
+\fi
+\marginparsep 11pt % Horizontal space between outer margin and
+ % marginal note
+
+
+% VERTICAL SPACING:
+ % Top of page:
+\topmargin 27pt % Nominal distance from top of page to top of
+ % box containing running head.
+\headheight 12pt % Height of box containing running head.
+\headsep 25pt % Space between running head and text.
+% \topskip = 10pt % '\baselineskip' for first line of page.
+ % Bottom of page:
+\footskip 30pt % Distance from baseline of box containing foot
+ % to baseline of last line of text.
+
+
+% DIMENSION OF TEXT:
+% 24 Jun 86: changed to explicitly compute \textheight to avoid roundoff.
+% The value of the multiplier was calculated as the floor of the
+% old \textheight minus \topskip, divided by \baselineskip for \normalsize.
+% The old value of \textheight was 528pt.
+% \textheight is the height of text (including footnotes and figures,
+% excluding running head and foot).
+
+\textheight = 43\baselineskip
+\advance\textheight by \topskip
+\textwidth 345pt % Width of text line.
+ % For two-column mode:
+\columnsep 10pt % Space between columns
+\columnseprule 0pt % Width of rule between columns.
+
+% A \raggedbottom command causes 'ragged bottom' pages: pages set to
+% natural height instead of being stretched to exactly \textheight.
+
+% FOOTNOTES:
+
+\footnotesep 6.65pt % Height of strut placed at the beginning of every
+ % footnote = height of normal \footnotesize strut,
+ % so no extra space between footnotes.
+
+\skip\footins 9pt plus 4pt minus 2pt % Space between last line of text and
+ % top of first footnote.
+
+% FLOATS: (a float is something like a figure or table)
+%
+% FOR FLOATS ON A TEXT PAGE:
+%
+% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
+\floatsep 12pt plus 2pt minus 2pt % Space between adjacent floats moved
+ % to top or bottom of text page.
+\textfloatsep 20pt plus 2pt minus 4pt % Space between main text and floats
+ % at top or bottom of page.
+\intextsep 12pt plus 2pt minus 2pt % Space between in-text figures and
+ % text.
+\@maxsep 20pt % The maximum of \floatsep,
+ % \textfloatsep and \intextsep (minus
+ % the stretch and shrink).
+% TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
+\dblfloatsep 12pt plus 2pt minus 2pt % Same as \floatsep for double-column
+ % figures in two-column mode.
+\dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for double-column
+ % floats.
+\@dblmaxsep 20pt % The maximum of \dblfloatsep and
+ % \dbltexfloatsep.
+
+% FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
+% ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
+\@fptop 0pt plus 1fil % Stretch at top of float page/column. (Must be
+ % 0pt plus ...)
+\@fpsep 8pt plus 2fil % Space between floats on float page/column.
+\@fpbot 0pt plus 1fil % Stretch at bottom of float page/column. (Must be
+ % 0pt plus ... )
+
+% DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
+\@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
+\@dblfpsep 8pt plus 2fil % Space between floats on float page.
+\@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
+ % 0pt plus ... )
+% MARGINAL NOTES:
+%
+\marginparpush 5pt % Minimum vertical separation between two marginal
+ % notes.
+
+
+% ****************************************
+% * PARAGRAPHING *
+% ****************************************
+%
+\parskip 0pt plus 1pt % Extra vertical space between paragraphs.
+\parindent 15pt % Width of paragraph indentation.
+%\topsep 8pt plus 2pt minus 4pt % Extra vertical space, in addition to
+ % \parskip, added above and below list and
+ % paragraphing environments.
+\partopsep 2pt plus 1pt minus 1pt % Extra vertical space, in addition to
+ % \parskip and \topsep, added when user
+ % leaves blank line before environment.
+%\itemsep 4pt plus 2pt minus 1pt % Extra vertical space, in addition to
+ % \parskip, added between list items.
+% See \@listI for values of \topsep and \itemsep
+% (Change made 9 Jun 87)
+
+% The following page-breaking penalties are defined
+
+\@lowpenalty 51 % Produced by \nopagebreak[1] or \nolinebreak[1]
+\@medpenalty 151 % Produced by \nopagebreak[2] or \nolinebreak[2]
+\@highpenalty 301 % Produced by \nopagebreak[3] or \nolinebreak[3]
+
+\@beginparpenalty -\@lowpenalty % Before a list or paragraph environment.
+\@endparpenalty -\@lowpenalty % After a list or paragraph environment.
+\@itempenalty -\@lowpenalty % Between list items.
+
+% \clubpenalty % 'Club line' at bottom of page.
+% \widowpenalty % 'Widow line' at top of page.
+% \displaywidowpenalty % Math display widow line.
+% \predisplaypenalty % Breaking before a math display.
+% \postdisplaypenalty % Breaking after a math display.
+% \interlinepenalty % Breaking at a line within a paragraph.
+% \brokenpenalty % Breaking after a hyphenated line.
+
+
+% ****************************************
+% * SECTIONS *
+% ****************************************
+%
+
+% \secdef{UNSTARCMDS}{STARCMDS} :
+% When defining a sectionioning command without using
+% \@startsection, you can use \secdef as follows:
+% \def\part { ... \secdef \CMDA \CMDB }
+% \def\CMDA [#1]#2{ ... } % Command to define \part[...]{...}
+% \def\CMDB #1{ ... } % Command to define \part*{...}
+
+\def\part{\par % New paragraph
+ \addvspace{4ex} % Adds vertical space above title.
+ \@afterindentfalse % Suppresses indent in first paragraph. Change
+ \secdef\@part\@spart} % to \@afterindenttrue to have indent.
+
+\def\@part[#1]#2{\ifnum \c@secnumdepth \gt\m@ne % IF secnumdepth > -1
+ \refstepcounter{part} % THEN step part counter
+ \addcontentsline{toc}{part}{\thepart % add toc line
+ \hspace{1em}#1}\else % ELSE add unnumbered line
+ \addcontentsline{toc}{part}{#1}\fi % FI
+ { \parindent 0pt \raggedright
+ \ifnum \c@secnumdepth \gt\m@ne % IF secnumdepth > -1
+ \Large \grbf M'eroc \thepart % THEN Print 'Part' and
+ \par \nobreak % number in \Large boldface.
+ \fi % FI
+ \huge \grbf % Select \huge boldface.
+ #2\markboth{}{}\par } % Print title and set heading marks null.
+ \nobreak % TeX penalty to prevent page break.
+ \vskip 3ex % Space between title and text.
+ \@afterheading % Routine called after part and
+ } % section heading.
+
+% Heading for \part* command
+% **
+\def\@spart#1{{\parindent 0pt \raggedright
+ \huge \grbf
+% ^^^^
+% **
+ #1\par} % Title.
+ \nobreak % TeX penalty to prevent page break.
+ \vskip 3ex % Space between title and text.
+ \@afterheading % Routine called after part and
+ } % section heading.
+
+% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
+% optional * [ALTHEADING]{HEADING}
+% Generic command to start a section.
+% NAME : e.g., 'subsection'
+% LEVEL : a number, denoting depth of section -- i.e., section=1,
+% subsection = 2, etc. A section number will be printed if
+% and only if LEVEL < or = the value of the secnumdepth
+% counter.
+% INDENT : Indentation of heading from left margin
+% BEFORESKIP : Absolute value = skip to leave above the heading.
+% If negative, then paragraph indent of text following
+% heading is suppressed.
+% AFTERSKIP : if positive, then skip to leave below heading,
+% else - skip to leave to right of run-in heading.
+% STYLE : commands to set style
+% If '*' missing, then increments the counter. If it is present, then
+% there should be no [ALTHEADING] argument. A sectioning command
+% is normally defined to \@startsection + its first six arguments.
+
+% **
+% all bf's changed to grbf's
+\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
+ -.2ex}{2.3ex plus .2ex}{\Large\grbf}}
+\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
+ -.2ex}{1.5ex plus .2ex}{\large\grbf}}
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
+-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\grbf}}
+\def\paragraph{\@startsection
+ {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\grbf}}
+\def\subparagraph{\@startsection
+ {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
+ .2ex}{-1em}{\normalsize\grbf}}
+% **
+
+% Default initializations of \...mark commands. (See below for their
+% us in defining page styles.
+%
+
+% \def\sectionmark#1{} % Preloaded definitions
+% \def\subsectionmark#1{}
+% \def\subsubsectionmark#1{}
+% \def\paragraphmark#1{}
+% \def\subparagraphmark#1{}
+
+% The value of the counter secnumdepth gives the depth of the
+% highest-level sectioning command that is to produce section numbers.
+%
+
+\setcounter{secnumdepth}{3}
+
+% APPENDIX
+%
+% The \appendix command must do the following:
+% -- reset the section and subsection counters to zero
+% -- redefine the section counter to produce appendix numbers
+% -- redefine the \section command if appendix titles and headings are
+% to look different from section titles and headings.
+%
+% **
+\def\appendix{\par
+ \setcounter{section}{0}
+ \setcounter{subsection}{0}
+ \def\thesection{\Alphgr{section}}}
+% ^^^^^
+% **
+
+
+% ****************************************
+% * LISTS *
+% ****************************************
+%
+
+% The following commands are used to set the default values for the list
+% environment's parameters. See the LaTeX manual for an explanation of
+% the meanings of the parameters. Defaults for the list environment are
+% set as follows. First, \rightmargin, \listparindent and \itemindent
+% are set to 0pt. Then, for a Kth level list, the command \@listK is
+% called, where 'K' denotes 'i', 'ii', ... , 'vi'. (I.e., \@listiii is
+% called for a third-level list.) By convention, \@listK should set
+% \leftmargin to \leftmarginK.
+%
+% For efficiency, level-one list's values are defined at top level, and
+% \@listi is defined to set only \leftmargin
+
+\leftmargini 25pt
+\leftmarginii 22pt % > \labelsep + width of '(m)'
+\leftmarginiii 18.7pt % > \labelsep + width of 'vii.'
+\leftmarginiv 17pt % > \labelsep + width of 'M.'
+\leftmarginv 10pt
+\leftmarginvi 10pt
+
+\leftmargin\leftmargini
+\labelsep 5pt
+\labelwidth\leftmargini\advance\labelwidth-\labelsep
+% \parsep 4pt plus 2pt minus 1pt (Removed 9 Jun 87)
+
+% \@listI defines top level and \@listi values of
+% \leftmargin, \topsep, \parsep, and \itemsep
+% (Added 9 Jun 87)
+\def\@listI{\leftmargin\leftmargini \parsep 4pt plus 2pt minus 1pt%
+\topsep 8pt plus 2pt minus 4pt%
+\itemsep 4pt plus 2pt minus 1pt}
+
+\let\@listi\@listI
+\@listi
+
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii\advance\labelwidth-\labelsep
+ \topsep 4pt plus 2pt minus 1pt
+ \parsep 2pt plus 1pt minus 1pt
+ \itemsep \parsep}
+
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
+ \topsep 2pt plus 1pt minus 1pt
+ \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
+ \itemsep \topsep}
+
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
+
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
+
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
+
diff --git a/fonts/greek/kd/latex/grart12.sty b/fonts/greek/kd/latex/grart12.sty
new file mode 100644
index 0000000000..0b0a575d76
--- /dev/null
+++ b/fonts/greek/kd/latex/grart12.sty
@@ -0,0 +1,118 @@
+% grart12.sty 13-Oct-1991
+% art12.sty 22-Dec-87
+% Changes: $ ---> m@thm@de
+% < ---> \lt (less than)
+% > ---> \gt (greater than)
+
+\lineskip 1pt \normallineskip 1pt
+\def\baselinestretch{1}
+
+\def\@normalsize{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
+\abovedisplayskip 12pt plus3pt minus7pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
+minus3pt\let\@listi\@listI}
+\def\small{\@setsize\small{13.6pt}\xipt\@xipt
+\abovedisplayskip 11pt plus3pt minus6pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
+minus3pt
+\def\@listi{\leftmargin\leftmargini \parsep 4.5pt plus 2pt minus 1pt \itemsep
+\parsep
+ \topsep 9pt plus 3pt minus 5pt}}
+\def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
+\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt minus3pt
+\def\@listi{\leftmargin\leftmargini \topsep 6pt plus 2pt minus 2pt\parsep 3pt
+plus 2pt minus 1pt
+\itemsep \parsep}}
+\def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
+\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
+\def\large{\@setsize\large{18pt}\xivpt\@xivpt}
+\def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
+\def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
+\def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
+\let\Huge=\huge
+\normalsize
+
+\if@twoside \oddsidemargin 21pt \evensidemargin 59pt \marginparwidth 85pt
+\else \oddsidemargin 39.5pt \evensidemargin 39.5pt
+ \marginparwidth 68pt
+\fi
+\marginparsep 10pt
+ \topmargin 27pt \headheight 12pt \headsep 25pt \footskip 30pt
+
+\textheight = 36\baselineskip
+\advance\textheight by \topskip
+\textwidth 390pt \columnsep 10pt \columnseprule 0pt
+
+\footnotesep 8.4pt
+\skip\footins 10.8pt plus 4pt minus 2pt
+\floatsep 14pt plus 2pt minus 4pt \textfloatsep 20pt plus 2pt minus 4pt
+\intextsep 14pt plus 4pt minus 4pt \@maxsep 20pt \dblfloatsep 14pt plus 2pt
+minus 4pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt
+\@fptop 0pt plus 1fil \@fpsep 10pt plus 2fil \@fpbot 0pt plus 1fil
+\@dblfptop 0pt plus 1fil \@dblfpsep 10pt plus 2fil \@dblfpbot 0pt plus 1fil
+\marginparpush 7pt
+
+\parskip 0pt plus 1pt \parindent 1.5em \partopsep 3pt plus 2pt minus 2pt
+\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
+\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
+-\@lowpenalty
+
+
+\def\part{\par \addvspace{4ex} \@afterindentfalse \secdef\@part\@spart}
+\def\@part[#1]#2{\ifnum \c@secnumdepth \gt\m@ne \refstepcounter{part}
+\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
+\addcontentsline{toc}{part}{#1}\fi { \parindent 0pt \raggedright
+ \ifnum \c@secnumdepth \gt\m@ne \Large \grbf M'eroc \thepart \par\nobreak \fi \huge
+\grbf #2\markboth{}{}\par } \nobreak \vskip 3ex \@afterheading }
+\def\@spart#1{{\parindent 0pt \raggedright
+ \huge \grbf
+ #1\par} \nobreak \vskip 3ex \@afterheading }
+\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
+ -.2ex}{2.3ex plus .2ex}{\Large\grbf}}
+\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
+ -.2ex}{1.5ex plus .2ex}{\large\grbf}}
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
+ -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\grbf}}
+\def\paragraph{\@startsection
+ {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\grbf}}
+\def\subparagraph{\@startsection
+ {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
+ .2ex}{-1em}{\normalsize\grbf}}
+
+
+\setcounter{secnumdepth}{3}
+
+\def\appendix{\par
+ \setcounter{section}{0}
+ \setcounter{subsection}{0}
+ \def\thesection{\Alphgr{section}}}
+
+
+\leftmargini 2.5em
+\leftmarginii 2.2em \leftmarginiii 1.87em \leftmarginiv 1.7em \leftmarginv 1em
+\leftmarginvi 1em
+\leftmargin\leftmargini
+\labelsep .5em
+\labelwidth\leftmargini\advance\labelwidth-\labelsep
+\def\@listI{\leftmargin\leftmargini \parsep 5pt plus 2.5pt minus 1pt\topsep
+10pt plus 4pt minus 6pt\itemsep 5pt plus 2.5pt minus 1pt}
+\let\@listi\@listI
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii\advance\labelwidth-\labelsep
+ \topsep 5pt plus 2.5pt minus 1pt
+ \parsep 2.5pt plus 1pt minus 1pt
+ \itemsep \parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
+ \topsep 2.5pt plus 1pt minus 1pt
+ \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
+ \itemsep \topsep}
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
+
diff --git a/fonts/greek/kd/latex/grarticle.sty b/fonts/greek/kd/latex/grarticle.sty
new file mode 100644
index 0000000000..b8a9fa15f8
--- /dev/null
+++ b/fonts/greek/kd/latex/grarticle.sty
@@ -0,0 +1,278 @@
+% grarticle.sty Oct 12, 1991. Based On Article.sty <16-Mar-88>
+% Used in conjuction with grlatex (files lgreek.tex, grfonts.tex, greek.sty)
+% and the KD family of fonts
+% Changes are enclosed in %** comments
+\typeout{Document Style `grarticle' Beta (2b) Version<13 Oct 91>.}
+%
+% Changes: $ ---> m@thm@de
+% < ---> \lt (less than)
+% > ---> \gt (greater than)
+% Enter a global greek mode
+%
+% **
+\input grmode.sty
+% **
+%
+\def\@ptsize{0} \@namedef{ds@11pt}{\def\@ptsize{1}}
+\@namedef{ds@12pt}{\def\@ptsize{2}}
+\def\ds@twoside{\@twosidetrue \@mparswitchtrue} \def\ds@draft{\overfullrule
+5pt}
+\@options
+% **
+\input grart1\@ptsize.sty\relax
+% **
+\def\labelenumi{\theenumi.}
+\def\theenumi{\arabic{enumi}}
+\def\labelenumii{(\theenumii)}
+% **
+\def\theenumii{\alphgr{enumii}}
+% **
+\def\p@enumii{\theenumi}
+\def\labelenumiii{\theenumiii.}
+\def\theenumiii{\roman{enumiii}}
+\def\p@enumiii{\theenumi(\theenumii)}
+\def\labelenumiv{\theenumiv.}
+% **
+\def\theenumiv{\Alphgr{enumiv}}
+% **
+\def\p@enumiv{\p@enumiii\theenumiii}
+% **
+\def\labelitemi{\m@thm@de\bullet\m@thm@de} % $ cjanged to internal \m@thm@de
+\def\labelitemii{\bf --}
+\def\labelitemiii{\m@thm@de\ast\m@thm@de}
+\def\labelitemiv{\m@thm@de\cdot\m@thm@de}
+% ^^^^^^^^^ ^^^^^^^^
+% **
+\def\verse{\let\\=\@centercr
+ \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
+ \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
+\let\endverse\endlist
+\def\quotation{\list{}{\listparindent 1.5em
+ \itemindent\listparindent
+ \rightmargin\leftmargin \parsep 0pt plus 1pt}\item[]}
+\let\endquotation=\endlist
+\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
+\let\endquote=\endlist
+% **
+\def\descriptionlabel#1{\hspace\labelsep \grbf #1}
+% ** ^^^^^
+\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
+ \let\makelabel\descriptionlabel}}
+\let\enddescription\endlist
+
+
+\def\theequation{\arabic{equation}}
+
+\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
+ \else \newpage \fi \thispagestyle{empty}\c@page\z@}
+\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}
+
+\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt
+\tabbingsep \labelsep
+
+\skip\@mpfootins = \skip\footins
+\fboxsep = 3pt \fboxrule = .4pt
+
+\newcounter{part}
+\newcounter {section}
+\newcounter {subsection}[section]
+\newcounter {subsubsection}[subsection]
+\newcounter {paragraph}[subsubsection]
+\newcounter {subparagraph}[paragraph]
+
+\def\thepart{\Roman{part}} \def\thesection {\arabic{section}}
+\def\thesubsection {\thesection.\arabic{subsection}}
+\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
+\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
+\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}
+
+\def\@pnumwidth{1.55em}
+\def\@tocrmarg {2.55em}
+\def\@dotsep{4.5}
+\setcounter{tocdepth}{3}
+% **
+\def\tableofcontents{\section*{Perieq'omena\@mkboth{PERIEQOMENA}{PERIEQOMENA}}
+% ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^
+ \@starttoc{toc}}
+\def\l@part#1#2{\addpenalty{\@secpenalty}
+ \addvspace{2.25em plus 1pt} \begingroup
+ \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
+-\@pnumwidth
+ {\large \grbf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
+% ^^^^^
+ \nobreak \endgroup}
+\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
+\@tempdima 1.5em \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \grbf\leavevmode \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil
+% ^^^^
+\nobreak\hbox to\@pnumwidth{\hss #2}\par
+ \endgroup}
+% **
+
+\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
+\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
+\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
+\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
+% **
+\def\listoffigures{\section*{Eik'onec\@mkboth
+% ^^^^^^^^
+ {EIKONES}{EIKONES}}\@starttoc{lof}}
+% ^^^^^^^ ^^^^^^^
+\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+\def\listoftables{\section*{P'inakec\@mkboth
+% ^^^^^^^^
+ {PINAKES}{PINAKES}}\@starttoc{lot}}
+% ^^^^^^^ ^^^^^^^
+\let\l@table\l@figure
+
+
+\def\thebibliography#1{\section*{Parapomp'ec\@mkboth
+% ^^^^^^^^^^^
+ {PARAPOMPES}{PARAPOMPES}}\list
+% ^^^^^^^^^^ ^^^^^^^^^^
+ {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \usecounter{enumi}}
+ \def\newblock{\hskip .11em plus .33em minus .07em}
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax}
+\let\endthebibliography=\endlist
+
+
+\newif\if@restonecol
+\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
+\columnseprule \z@
+\columnsep 35pt\twocolumn[\section*{Euret'hrio}]
+% ^^^^^^^^^^
+ \@mkboth{EURETHRIO}{EURETHRIO}\thispagestyle{plain}\parindent\z@
+% ^^^^^^^^^ ^^^^^^^^^
+ \parskip\z@ plus .3pt\relax\let\item\@idxitem}
+\def\@idxitem{\par\hangindent 40pt}
+\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
+\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
+\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
+\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}
+
+\def\footnoterule{\kern-3\p@
+ \hrule width .4\columnwidth
+ \kern 2.6\p@}
+
+\long\def\@makefntext#1{\parindent 1em\noindent
+ \hbox to 1.8em{\hss\m@thm@de^{\@thefnmark}\m@thm@de}#1}
+% ^^^^^^^^ ^^^^^^^^^
+% **
+
+\setcounter{topnumber}{2}
+\def\topfraction{.7}
+\setcounter{bottomnumber}{1}
+\def\bottomfraction{.3}
+\setcounter{totalnumber}{3}
+\def\textfraction{.2}
+\def\floatpagefraction{.5}
+\setcounter{dbltopnumber}{2}
+\def\dbltopfraction{.7}
+\def\dblfloatpagefraction{.5}
+
+\long\def\@makecaption#1#2{
+ \vskip 10pt
+ \setbox\@tempboxa\hbox{#1: #2}
+ \ifdim \wd\@tempboxa \gt\hsize #1: #2\par \else \hbox
+to\hsize{\hfil\box\@tempboxa\hfil}
+ \fi}
+
+
+\newcounter{figure}
+\def\thefigure{\@arabic\c@figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+% **
+\def\fnum@figure{Eik'ona \thefigure}
+% ^^^^^^^
+% **
+\def\figure{\@float{figure}}
+\let\endfigure\end@float
+\@namedef{figure*}{\@dblfloat{figure}}
+\@namedef{endfigure*}{\end@dblfloat}
+\newcounter{table}
+\def\thetable{\@arabic\c@table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+% **
+\def\fnum@table{P'inakac \thetable}
+% ^^^^^^^^
+% **
+\def\table{\@float{table}}
+\let\endtable\end@float
+\@namedef{table*}{\@dblfloat{table}}
+\@namedef{endtable*}{\end@dblfloat}
+
+
+\def\maketitle{\par
+ \begingroup
+ \def\thefootnote{\fnsymbol{footnote}}
+ \def\@makefnmark{\hbox
+ to 0pt{\m@thm@de^{\@thefnmark}\m@thm@de\hss}}
+ \if@twocolumn
+ \twocolumn[\@maketitle]
+ \else \newpage
+ \global\@topnum\z@ \@maketitle \fi\thispagestyle{plain}\@thanks
+ \endgroup
+ \setcounter{footnote}{0}
+ \let\maketitle\relax
+ \let\@maketitle\relax
+ \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
+\def\@maketitle{\newpage
+ \null
+ \vskip 2em \begin{center}
+ {\LARGE \@title \par} \vskip 1.5em {\large \lineskip .5em
+\begin{tabular}[t]{c}\@author
+ \end{tabular}\par}
+ \vskip 1em {\large \@date} \end{center}
+ \par
+ \vskip 1.5em}
+% **
+\def\abstract{\if@twocolumn
+\section*{Per'ilhyh}
+% ^^^^^^^^^
+\else \small
+\begin{center}
+{\grbf Per'ilhyh\vspace{-.5em}\vspace{0pt}}
+%^^^^^ ^^^^^^^^^
+% **
+\end{center}
+\quotation
+\fi}
+\def\endabstract{\if@twocolumn\else\endquotation\fi}
+
+\mark{{}{}}
+% **
+% any sl, bf etc changed to grsl, grbf etc...
+\if@twoside \def\ps@headings{\let\@mkboth\markboth
+\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\gr \thepage\hfil \grsl
+\leftmark}\def\@oddhead{\hbox{}\grsl \rightmark \hfil
+\gr\thepage}\def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
+\gt\z@
+ \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
+{\ifnum \c@secnumdepth \gt\@ne
+ \thesubsection\hskip 1em\relax \fi ##1}}}
+\else \def\ps@headings{\let\@mkboth\markboth
+\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\grsl \rightmark \hfil
+\gr\thepage}\def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth
+\gt\z@
+ \thesection\hskip 1em\relax \fi ##1}}}}
+\fi
+\def\ps@myheadings{\let\@mkboth\@gobbletwo
+\def\@oddhead{\hbox{}\grsl\rightmark \hfil
+\gr\thepage}\def\@oddfoot{}\def\@evenhead{\gr \thepage\hfil\grsl\leftmark\hbox
+{}}\def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}
+% **
+
+\ps@plain \pagenumbering{arabic} \onecolumn \if@twoside\else\raggedbottom\fi
+
+
+
+
diff --git a/fonts/greek/kd/latex/grbk10.sty b/fonts/greek/kd/latex/grbk10.sty
new file mode 100644
index 0000000000..3c7790dfdb
--- /dev/null
+++ b/fonts/greek/kd/latex/grbk10.sty
@@ -0,0 +1,130 @@
+% grbk10.sty 130Oct-1991
+% based on bk10.sty 19-Jan-88 modified for international usage
+%
+
+\lineskip 1pt \normallineskip 1pt
+\def\baselinestretch{1}
+
+\def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
+\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt
+minus3pt\let\@listi\@listI}
+\def\small{\@setsize\small{11pt}\ixpt\@ixpt
+\abovedisplayskip 8.5pt plus 3pt minus 4pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus2pt\belowdisplayshortskip 4pt plus2pt minus 2pt
+\def\@listi{\leftmargin\leftmargini \topsep 4pt plus 2pt minus 2pt\parsep 2pt
+plus 1pt minus 1pt
+\itemsep \parsep}}
+\def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
+\abovedisplayskip 6pt plus 2pt minus 4pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus 1pt\belowdisplayshortskip 3pt plus 1pt minus
+2pt
+\def\@listi{\leftmargin\leftmargini \topsep 3pt plus 1pt minus 1pt\parsep 2pt
+plus 1pt minus 1pt
+\itemsep \parsep}}
+\def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
+\def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
+\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
+\def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
+\def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
+\def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
+\def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
+\normalsize
+\oddsidemargin .5in \evensidemargin 1.5in
+\marginparwidth .75in \marginparsep 7pt
+ \topmargin .75in \headheight 12pt \headsep .25in \footskip .35in
+
+\textheight = 41\baselineskip
+\advance\textheight by \topskip
+\textwidth 4.5in \columnsep 10pt \columnseprule 0pt
+
+\footnotesep 6.65pt
+\skip\footins 9pt plus 4pt minus 2pt
+\floatsep 12pt plus 2pt minus 2pt \textfloatsep 20pt plus 2pt minus 4pt
+\intextsep 12pt plus 2pt minus 2pt \@maxsep 20pt \dblfloatsep 12pt plus 2pt
+minus 2pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt
+\@fptop 0pt plus 1fil \@fpsep 8pt plus 2fil \@fpbot 0pt plus 1fil
+\@dblfptop 0pt plus 1fil \@dblfpsep 8pt plus 2fil \@dblfpbot 0pt plus 1fil
+\marginparpush 5pt
+\parskip 0pt plus 1pt \parindent 15pt \partopsep 2pt plus 1pt minus 1pt
+\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
+\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
+-\@lowpenalty
+
+\def\@makechapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
+ \ifnum \c@secnumdepth \gt\m@ne \huge\grbf \@chapapp{} \thechapter \par
+ \vskip 20pt \fi \Huge \grbf #1\par
+ \nobreak \vskip 40pt } }
+
+\def\@makeschapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
+ \Huge \grbf #1\par
+ \nobreak \vskip 40pt } }
+
+\def\chapter{\cleardoublepage \thispagestyle{plain} \global\@topnum\z@
+\@afterindentfalse \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth \gt\m@ne
+ \refstepcounter{chapter}
+ \typeout{\@chapapp\space\thechapter.}
+ \addcontentsline{toc}{chapter}{\protect
+ \numberline{\thechapter}#1}\else
+ \addcontentsline{toc}{chapter}{#1}\fi
+ \chaptermark{#1}
+ \addtocontents{lof}{\protect\addvspace{10pt}}
+\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
+\@topnewpage[\@makechapterhead{#2}]
+ \else \@makechapterhead{#2}
+ \@afterheading \fi}
+\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
+ \else \@makeschapterhead{#1}
+ \@afterheading\fi}
+
+\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
+ -.2ex}{2.3ex plus .2ex}{\Large\grbf}}
+\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
+ -.2ex}{1.5ex plus .2ex}{\large\grbf}}
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
+-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\grbf}}
+\def\paragraph{\@startsection
+ {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\grbf}}
+\def\subparagraph{\@startsection
+ {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
+ .2ex}{-1em}{\normalsize\grbf}}
+
+\def\chaptermark#1{}
+
+\setcounter{secnumdepth}{2}
+
+\def\appendixname{Par'arthma} % <-----------
+\def\appendix{\par
+ \setcounter{chapter}{0}
+ \setcounter{section}{0}
+ \def\@chapapp{\appendixname}
+ \def\thechapter{\Alphgr{chapter}}}
+
+\leftmargini 25pt
+\leftmarginii 22pt \leftmarginiii 18.7pt \leftmarginiv 17pt \leftmarginv 10pt
+\leftmarginvi 10pt
+\leftmargin\leftmargini
+\labelsep 5pt
+\labelwidth\leftmargini\advance\labelwidth-\labelsep
+\def\@listI{\leftmargin\leftmargini \parsep 4pt plus 2pt minus 1pt\topsep 8pt
+plus 2pt minus 4pt\itemsep 4pt plus 2pt minus 1pt}
+\let\@listi\@listI
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii\advance\labelwidth-\labelsep
+ \topsep 4pt plus 2pt minus 1pt
+ \parsep 2pt plus 1pt minus 1pt
+ \itemsep \parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
+ \topsep 2pt plus 1pt minus 1pt
+ \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
+ \itemsep \topsep}
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
+
diff --git a/fonts/greek/kd/latex/grbk11.sty b/fonts/greek/kd/latex/grbk11.sty
new file mode 100644
index 0000000000..4482b6bf28
--- /dev/null
+++ b/fonts/greek/kd/latex/grbk11.sty
@@ -0,0 +1,130 @@
+% grbk11.sty 13 Oct-1991
+% based on bk11.sty 19-Jan-88 modified for international usage
+%
+
+\lineskip 1pt \normallineskip 1pt
+\def\baselinestretch{1}
+
+\def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
+\abovedisplayskip 11pt plus3pt minus6pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
+minus3pt\let\@listi\@listI}
+\def\small{\@setsize\small{12pt}\xpt\@xpt
+\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt minus3pt
+\def\@listi{\leftmargin\leftmargini \topsep 6pt plus 2pt minus 2pt\parsep 3pt
+plus 2pt minus 1pt
+\itemsep \parsep}}
+\def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
+\abovedisplayskip 8pt plus 2pt minus 4pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus 1pt\belowdisplayshortskip 4pt plus 2pt minus
+2pt
+\def\@listi{\leftmargin\leftmargini \topsep 4pt plus 2pt minus 2pt\parsep 2pt
+plus 1pt minus 1pt
+\itemsep \parsep}}
+\def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
+\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
+\def\large{\@setsize\large{14pt}\xiipt\@xiipt}
+\def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
+\def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
+\def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
+\def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
+\normalsize
+\oddsidemargin .25in \evensidemargin 1.25in
+\marginparwidth 1in \marginparsep 7pt
+ \topmargin .73in \headheight 12pt \headsep .275in \footskip .38in
+
+\textheight = 38\baselineskip
+\advance\textheight by \topskip
+\textwidth 5in \columnsep 10pt \columnseprule 0pt
+
+\footnotesep 7.7pt
+\skip\footins 10pt plus 4pt minus 2pt
+\floatsep 12pt plus 2pt minus 2pt \textfloatsep 20pt plus 2pt minus 4pt
+\intextsep 12pt plus 2pt minus 2pt \@maxsep 20pt \dblfloatsep 12pt plus 2pt
+minus 2pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt
+\@fptop 0pt plus 1fil \@fpsep 8pt plus 2fil \@fpbot 0pt plus 1fil
+\@dblfptop 0pt plus 1fil \@dblfpsep 8pt plus 2fil \@dblfpbot 0pt plus 1fil
+\marginparpush 5pt
+\parskip 0pt plus 1pt \parindent 17pt \partopsep 3pt plus 1pt minus 2pt
+\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
+\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
+-\@lowpenalty
+
+\def\@makechapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
+ \ifnum \c@secnumdepth \gt\m@ne \huge\grbf \@chapapp{} \thechapter \par
+ \vskip 20pt \fi \Huge \grbf #1\par
+ \nobreak \vskip 40pt } }
+
+\def\@makeschapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
+ \Huge \grbf #1\par
+ \nobreak \vskip 40pt } }
+
+\def\chapter{\cleardoublepage \thispagestyle{plain} \global\@topnum\z@
+\@afterindentfalse \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth \gt\m@ne
+ \refstepcounter{chapter}
+ \typeout{\@chapapp\space\thechapter.}
+ \addcontentsline{toc}{chapter}{\protect
+ \numberline{\thechapter}#1}\else
+ \addcontentsline{toc}{chapter}{#1}\fi
+ \chaptermark{#1}
+ \addtocontents{lof}{\protect\addvspace{10pt}}
+\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
+\@topnewpage[\@makechapterhead{#2}]
+ \else \@makechapterhead{#2}
+ \@afterheading \fi}
+\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
+ \else \@makeschapterhead{#1}
+ \@afterheading\fi}
+
+\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
+ -.2ex}{2.3ex plus .2ex}{\Large\grbf}}
+\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
+ -.2ex}{1.5ex plus .2ex}{\large\grbf}}
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
+ -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\grbf}}
+\def\paragraph{\@startsection
+ {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\grbf}}
+\def\subparagraph{\@startsection
+ {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
+ .2ex}{-1em}{\normalsize\grbf}}
+
+\def\chaptermark#1{}
+
+\setcounter{secnumdepth}{2}
+
+\def\appendixname{Par'arthma} % <-----------
+\def\appendix{\par
+ \setcounter{chapter}{0}
+ \setcounter{section}{0}
+ \def\@chapapp{\appendixname}
+ \def\thechapter{\Alphgr{chapter}}}
+
+\leftmargini 2.5em
+\leftmarginii 2.2em \leftmarginiii 1.87em \leftmarginiv 1.7em \leftmarginv 1em
+\leftmarginvi 1em
+\leftmargin\leftmargini
+\labelsep .5em
+\labelwidth\leftmargini\advance\labelwidth-\labelsep
+\def\@listI{\leftmargin\leftmargini \parsep 4.5pt plus 2pt minus 1pt\topsep
+9pt plus 3pt minus 5pt\itemsep 4.5pt plus 2pt minus 1pt}
+\let\@listi\@listI
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii\advance\labelwidth-\labelsep
+ \topsep 4.5pt plus 2pt minus 1pt
+ \parsep 2pt plus 1pt minus 1pt
+ \itemsep \parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
+ \topsep 2pt plus 1pt minus 1pt
+ \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
+ \itemsep \topsep}
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
+
diff --git a/fonts/greek/kd/latex/grbk12.sty b/fonts/greek/kd/latex/grbk12.sty
new file mode 100644
index 0000000000..8126a34144
--- /dev/null
+++ b/fonts/greek/kd/latex/grbk12.sty
@@ -0,0 +1,130 @@
+% grbk11.sty 13 Oct-1991
+% based on bk12.sty 19-Jan-88 modified for international usage
+%
+
+\lineskip 1pt \normallineskip 1pt
+\def\baselinestretch{1}
+
+\def\@normalsize{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
+\abovedisplayskip 12pt plus3pt minus7pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
+minus3pt\let\@listi\@listI}
+\def\small{\@setsize\small{13.6pt}\xipt\@xipt
+\abovedisplayskip 11pt plus3pt minus6pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt
+minus3pt
+\def\@listi{\leftmargin\leftmargini \parsep 4.5pt plus 2pt minus 1pt
+ \itemsep \parsep
+ \topsep 9pt plus 3pt minus 5pt}}
+\def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
+\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
+\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt minus3pt
+\def\@listi{\leftmargin\leftmargini \topsep 6pt plus 2pt minus 2pt\parsep 3pt
+plus 2pt minus 1pt
+\itemsep \parsep}}
+\def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
+\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
+\def\large{\@setsize\large{18pt}\xivpt\@xivpt}
+\def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
+\def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
+\def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
+\let\Huge=\huge
+\normalsize
+\oddsidemargin .25in \evensidemargin 1.25in
+\marginparwidth 1in \marginparsep 7pt
+ \topmargin .73in \headheight 12pt \headsep .275in \footskip 30pt
+
+\textheight = 36\baselineskip
+\advance\textheight by \topskip
+\textwidth 5in \columnsep 10pt \columnseprule 0pt
+
+\footnotesep 8.4pt
+\skip\footins 10.8pt plus 4pt minus 2pt
+\floatsep 14pt plus 2pt minus 4pt \textfloatsep 20pt plus 2pt minus 4pt
+\intextsep 14pt plus 4pt minus 4pt \@maxsep 20pt \dblfloatsep 14pt plus 2pt
+minus 4pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt
+\@fptop 0pt plus 1fil \@fpsep 10pt plus 2fil \@fpbot 0pt plus 1fil
+\@dblfptop 0pt plus 1fil \@dblfpsep 10pt plus 2fil \@dblfpbot 0pt plus 1fil
+\marginparpush 7pt
+\parskip 0pt plus 1pt \parindent 1.5em \partopsep 3pt plus 2pt minus 2pt
+\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
+\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
+-\@lowpenalty
+
+\def\@makechapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
+ \ifnum \c@secnumdepth \gt\m@ne \huge\grbf \@chapapp{} \thechapter \par
+ \vskip 20pt \fi \Huge \grbf #1\par
+ \nobreak \vskip 40pt } }
+
+\def\@makeschapterhead#1{ \vspace*{50pt} { \parindent 0pt \raggedright
+ \Huge \grbf #1\par
+ \nobreak \vskip 40pt } }
+
+\def\chapter{\cleardoublepage \thispagestyle{plain} \global\@topnum\z@
+\@afterindentfalse \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth \gt\m@ne
+ \refstepcounter{chapter}
+ \typeout{\@chapapp\space\thechapter.}
+ \addcontentsline{toc}{chapter}{\protect
+ \numberline{\thechapter}#1}\else
+ \addcontentsline{toc}{chapter}{#1}\fi
+ \chaptermark{#1}
+ \addtocontents{lof}{\protect\addvspace{10pt}}
+\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn
+\@topnewpage[\@makechapterhead{#2}]
+ \else \@makechapterhead{#2}
+ \@afterheading \fi}
+\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]
+ \else \@makeschapterhead{#1}
+ \@afterheading\fi}
+
+\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus
+ -.2ex}{2.3ex plus .2ex}{\Large\grbf}}
+\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus
+ -.2ex}{1.5ex plus .2ex}{\large\grbf}}
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
+ -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\grbf}}
+\def\paragraph{\@startsection
+ {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\grbf}}
+\def\subparagraph{\@startsection
+ {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus
+ .2ex}{-1em}{\normalsize\grbf}}
+
+\def\chaptermark#1{}
+
+\setcounter{secnumdepth}{2}
+
+\def\appendixname{Par'arthma} % <-----------
+\def\appendix{\par
+ \setcounter{chapter}{0}
+ \setcounter{section}{0}
+ \def\@chapapp{\appendixname}
+ \def\thechapter{\Alphgr{chapter}}}
+
+\leftmargini 2.5em
+\leftmarginii 2.2em \leftmarginiii 1.87em \leftmarginiv 1.7em \leftmarginv 1em
+\leftmarginvi 1em
+\leftmargin\leftmargini
+\labelsep .5em
+\labelwidth\leftmargini\advance\labelwidth-\labelsep
+\def\@listI{\leftmargin\leftmargini \parsep 5pt plus 2.5pt minus 1pt\topsep
+10pt plus 4pt minus 6pt\itemsep 5pt plus 2.5pt minus 1pt}
+\let\@listi\@listI
+\@listi
+\def\@listii{\leftmargin\leftmarginii
+ \labelwidth\leftmarginii\advance\labelwidth-\labelsep
+ \topsep 5pt plus 2.5pt minus 1pt
+ \parsep 2.5pt plus 1pt minus 1pt
+ \itemsep \parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+ \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
+ \topsep 2.5pt plus 1pt minus 1pt
+ \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
+ \itemsep \topsep}
+\def\@listiv{\leftmargin\leftmarginiv
+ \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
+\def\@listv{\leftmargin\leftmarginv
+ \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
+\def\@listvi{\leftmargin\leftmarginvi
+ \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
+
diff --git a/fonts/greek/kd/latex/grbook.sty b/fonts/greek/kd/latex/grbook.sty
new file mode 100644
index 0000000000..64fc082e4a
--- /dev/null
+++ b/fonts/greek/kd/latex/grbook.sty
@@ -0,0 +1,254 @@
+% grbook.sty 13-Oct-1991
+% based on book.sty 13-Jun-89 modified for international usage
+%
+% Modified by K J Dryllerakis
+
+\typeout{Document Style `grbook' Beta (1a) Version <13 Oct 1991>.}
+
+\input grmode.sty
+
+\def\@ptsize{0} \@namedef{ds@11pt}{\def\@ptsize{1}}
+\@namedef{ds@12pt}{\def\@ptsize{2}}
+\@twosidetrue \@mparswitchtrue \def\ds@draft{\overfullrule 5pt}
+\@options
+\input grbk1\@ptsize.sty\relax
+
+\def\labelenumi{\theenumi.}
+\def\theenumi{\arabic{enumi}}
+\def\labelenumii{(\theenumii)}
+\def\theenumii{\alphgr{enumii}}
+\def\p@enumii{\theenumi}
+\def\labelenumiii{\theenumiii.}
+\def\theenumiii{\roman{enumiii}}
+\def\p@enumiii{\theenumi(\theenumii)}
+\def\labelenumiv{\theenumiv.}
+\def\theenumiv{\Alphgr{enumiv}}
+\def\p@enumiv{\p@enumiii\theenumiii}
+
+\def\labelitemi{\m@thm@de\bullet\m@thm@de}
+\def\labelitemii{\bf --}
+\def\labelitemiii{\m@thm@de\ast\m@thm@de}
+\def\labelitemiv{\m@thm@de\cdot\m@thm@de}
+
+\def\verse{\let\\=\@centercr
+ \list{}{\itemsep\z@ \itemindent -1.5em\listparindent \itemindent
+ \rightmargin\leftmargin\advance\leftmargin 1.5em}\item[]}
+\let\endverse\endlist
+\def\quotation{\list{}{\listparindent 1.5em
+ \itemindent\listparindent
+ \rightmargin\leftmargin\parsep 0pt plus 1pt}\item[]}
+\let\endquotation=\endlist
+\def\quote{\list{}{\rightmargin\leftmargin}\item[]}
+\let\endquote=\endlist
+
+\def\descriptionlabel#1{\hspace\labelsep \grbf #1}
+\def\description{\list{}{\labelwidth\z@ \itemindent-\leftmargin
+ \let\makelabel\descriptionlabel}}
+\let\enddescription\endlist
+\newdimen\descriptionmargin
+\descriptionmargin=3em
+
+\def\titlepage{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
+ \else \newpage \fi \thispagestyle{empty}\c@page\z@}
+\def\endtitlepage{\if@restonecol\twocolumn \else \newpage \fi}
+
+\arraycolsep 5pt \tabcolsep 6pt \arrayrulewidth .4pt \doublerulesep 2pt
+\tabbingsep \labelsep
+\skip\@mpfootins = \skip\footins
+\fboxsep = 3pt \fboxrule = .4pt
+\newcounter{part}
+\newcounter {chapter}
+\newcounter {section}[chapter]
+\newcounter {subsection}[section]
+\newcounter {subsubsection}[subsection]
+\newcounter {paragraph}[subsubsection]
+\newcounter {subparagraph}[paragraph]
+
+\def\thepart {\Roman{part}}
+\def\thechapter {\arabic{chapter}}
+\def\thesection {\thechapter.\arabic{section}}
+\def\thesubsection {\thesection.\arabic{subsection}}
+\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
+\def\theparagraph {\thesubsubsection.\arabic{paragraph}}
+\def\thesubparagraph {\theparagraph.\arabic{subparagraph}}
+\def\chaptername{Kef'alaio} % <----------
+\def\@chapapp{\chaptername}
+
+\def\part{\cleardoublepage \thispagestyle{plain} \if@twocolumn \onecolumn
+\@tempswatrue \else \@tempswafalse \fi \hbox{}\vfil \secdef\@part\@spart}
+
+\def\partname{M'eroc} % <----------
+\def\@part[#1]#2{\ifnum \c@secnumdepth \gt-2\relax \refstepcounter{part}
+\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
+\addcontentsline{toc}{part}{#1}\fi \markboth{}{}
+ {\centering \ifnum \c@secnumdepth \gt-2\relax \huge\grbf\partname{} \thepart \par
+\vskip 20pt \fi \Huge \grbf #1\par}\@endpart}
+\def\@endpart{\vfil\newpage \if@twoside \hbox{} \thispagestyle{empty}
+ \newpage
+ \fi \if@tempswa \twocolumn \fi}
+\def\@spart#1{{\centering \Huge \grbf #1\par}\@endpart}
+
+\def\@pnumwidth{1.55em}
+\def\@tocrmarg {2.55em}
+\def\@dotsep{4.5}
+\setcounter{tocdepth}{2}
+
+
+\def\contentsname{Perieq'omena} % <----------
+\def\tableofcontents{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
+ \fi\chapter*{\contentsname
+ \@mkboth{PERIEQOMENA}{PERIEQOMENA}}
+ \@starttoc{toc}\if@restonecol\twocolumn\fi}
+\def\l@part#1#2{\addpenalty{-\@highpenalty}
+ \addvspace{2.25em plus 1pt} \begingroup
+ \@tempdima 3em \parindent \z@ \rightskip \@pnumwidth \parfillskip
+-\@pnumwidth
+ {\large \grbf \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
+ \nobreak \global\@nobreaktrue \everypar{\global\@nobreakfalse\everypar{}}
+\endgroup}
+\def\l@chapter#1#2{\addpenalty{-\@highpenalty}
+ \vskip 1.0em plus 1pt \@tempdima 1.5em \begingroup
+ \parindent \z@ \rightskip \@pnumwidth
+ \parfillskip -\@pnumwidth
+ \grbf \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip #1\nobreak\hfil
+\nobreak\hbox to\@pnumwidth{\hss #2}\par
+ \penalty\@highpenalty \endgroup}
+
+\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
+\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
+\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
+\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
+\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
+\def\listfigurename{Eik'onec} % <----------
+\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
+ \fi\chapter*{\listfigurename\@mkboth
+ {EIKONES}{EIKONES}}\@starttoc
+ {lof}\if@restonecol
+ \twocolumn\fi}
+\def\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+\def\listtablename{P'inakec} % <----------
+\def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
+ \fi\chapter*{\listtablename\@mkboth
+ {PINAKES}{PINAKES}}\@starttoc
+ {lot}\if@restonecol
+ \twocolumn\fi}
+\let\l@table\l@figure
+
+\def\bibname{Bibliograf'ia} % <----------
+\def\thebibliography#1{\chapter*{\bibname\@mkboth
+ {BIBLIOGRAFIA}{BIBLIOGRAFIA}}\list
+ {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
+ \advance\leftmargin\labelsep
+ \usecounter{enumi}}
+ \def\newblock{\hskip .11em plus .33em minus .07em}
+ \sloppy\clubpenalty4000\widowpenalty4000
+ \sfcode`\.=1000\relax}
+\let\endthebibliography=\endlist
+
+\newif\if@restonecol
+\def\indexname{Euret'hrio} % <----------
+\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
+ \columnseprule \z@
+ \columnsep 35pt\twocolumn[\@makeschapterhead*{\indexname}]
+ \@mkboth{EURETHRIO}{EURETHRIO}%
+ \thispagestyle{plain}\parindent\z@
+ \parskip\z@ plus .3pt\relax\let\item\@idxitem}
+\def\@idxitem{\par\hangindent 40pt}
+\def\subitem{\par\hangindent 40pt \hspace*{20pt}}
+\def\subsubitem{\par\hangindent 40pt \hspace*{30pt}}
+\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
+\def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}
+\def\footnoterule{\kern-3\p@
+ \hrule width .4\columnwidth
+ \kern 2.6\p@}
+\@addtoreset{footnote}{chapter}
+\long\def\@makefntext#1{\parindent 1em\noindent
+ \hbox to 1.8em{\hss\m@thm@de^{\@thefnmark}\m@thm@de}#1}
+
+\setcounter{topnumber}{2}
+\def\topfraction{.7}
+\setcounter{bottomnumber}{1}
+\def\bottomfraction{.3}
+\setcounter{totalnumber}{3}
+\def\textfraction{.2}
+\def\floatpagefraction{.5}
+\setcounter{dbltopnumber}{2}
+\def\dbltopfraction{.7}
+\def\dblfloatpagefraction{.5}
+
+\long\def\@makecaption#1#2{
+ \vskip 10pt
+ \setbox\@tempboxa\hbox{#1: #2}
+ \ifdim \wd\@tempboxa \gt\hsize #1: #2\par \else \hbox
+to\hsize{\hfil\box\@tempboxa\hfil}
+ \fi}
+
+
+\newcounter{figure}[chapter]
+\def\thefigure{\thechapter.\@arabic\c@figure}
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+\def\ext@figure{lof}
+\def\figurename{Eik'ona} % <----------
+\def\fnum@figure{\figurename{} \thefigure}
+\def\figure{\@float{figure}}
+\let\endfigure\end@float
+\@namedef{figure*}{\@dblfloat{figure}}
+\@namedef{endfigure*}{\end@dblfloat}
+\newcounter{table}[chapter]
+\def\thetable{\thechapter.\@arabic\c@table}
+\def\fps@table{tbp}
+\def\ftype@table{2}
+\def\ext@table{lot}
+\def\tablename{P'inakac} % <----------
+\def\fnum@table{\tablename{} \thetable}
+\def\table{\@float{table}}
+\let\endtable\end@float
+\@namedef{table*}{\@dblfloat{table}}
+\@namedef{endtable*}{\end@dblfloat}
+\def\maketitle{\begin{titlepage}
+ \let\footnotesize\small \let\footnoterule\relax \setcounter{page}{0}
+ \null
+ \vfil
+ \vskip 60pt \begin{center}
+ {\LARGE \@title \par} \vskip 3em {\large \lineskip .75em
+ \begin{tabular}[t]{c}\@author
+ \end{tabular}\par}
+ \vskip 1.5em {\large \@date \par} \end{center} \par
+\@thanks
+\vfil
+\null
+\end{titlepage}
+\setcounter{footnote}{0} \let\thanks\relax
+\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\maketitle\relax}
+
+\mark{{}{}}
+
+\def\ps@headings{\let\@mkboth\markboth
+\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil \grsl
+\leftmark}\def\@oddhead{\hbox{}\grsl \rightmark \hfil
+\rm\thepage}\def\chaptermark##1{\markboth {%\uppercase
+{\ifnum \c@secnumdepth
+\gt\m@ne
+ \@chapapp\ \thechapter. \ \fi ##1}}{}}\def\sectionmark##1{\markright
+{%\uppercase
+{\ifnum \c@secnumdepth \gt\z@
+ \thesection. \ \fi ##1}}}}
+\def\ps@myheadings{\let\@mkboth\@gobbletwo
+\def\@oddhead{\hbox{}\grsl\rightmark \hfil
+\rm\thepage}\def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\grsl\leftmark\hbox
+{}}\def\@evenfoot{}\def\chaptermark##1{}\def\sectionmark##1{}%
+\def\subsectionmark##1{}}
+
+%\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}
+\@addtoreset{equation}{chapter}
+\def\theequation{\thechapter.\arabic{equation}}
+
+\ps@headings \pagenumbering{arabic} \onecolumn
+
+
+
+
diff --git a/fonts/greek/kd/latex/greek.sty b/fonts/greek/kd/latex/greek.sty
new file mode 100644
index 0000000000..eb7fd239dd
--- /dev/null
+++ b/fonts/greek/kd/latex/greek.sty
@@ -0,0 +1,73 @@
+%NAME: greek.sty
+%
+% GREEK.STY Greek Style For LaTeX Files and KD family of greek fonts
+% ~~~~~~~~~
+%
+\typeout{Document Style Option `greek' <Dec 7,1992>}
+\ifx\gr@@kformatloaded\relax\def\d@next{\endinput}
+ \else
+ \let\gr@@kformatloaded\relax
+ \def\d@next{}
+\fi
+\d@next
+%
+\newif\ifdelimsbar\delimsbarfalse % Check for | as delimiter
+\chardef\|=`\| % A way to access |
+\gdef\t@f@nt{\gr} % Remember font used last
+\gdef\t@f@m{\fam\grfam} % Remember family used last
+\newlanguage\greek % Define Greek as a new language
+\def\lt{<} % Remember Less than
+\def\gt{>} % and greater than signs
+
+\def\gr@@km@de{%
+\ifdelimsbar\else\catcode`\|=11\fi% This is to allow the use of | as iota
+\catcode`\<=11%
+\catcode`\>=11%
+\catcode`\'=11%
+\catcode`\`=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+}
+
+\def\l@tinm@de{
+\catcode`\<=12%
+\catcode`\>=12%
+\catcode`\'=12%
+\catcode`\`=12%
+\catcode`\~=12%
+\catcode`\"=12%
+}
+%
+% Create a new LaTeX Environment
+%
+\newenvironment{greektext}{\language\greek\gr@@km@de%
+\t@f@m\t@f@nt\ignorespaces}%
+{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}}
+
+\gdef\greekdelims#1{\edef\c@mp@re{#1}\def\t@st@a{bar}\def\t@st@b{dollar}%
+\ifx\c@mp@re\t@st@a\gr@@kdelimsbar\else%
+\ifx\c@mp@re\t@st@b\gr@@kdelimsdol\fi\fi}
+%
+% Bar as delimeter
+%
+{\catcode`\|=13\gdef\gr@@kdelimsbar{\catcode`\|=13\delimsbartrue%
+\def|{\ifnum\language=\greek\end{greektext}\else\begin{greektext}\fi}}
+}
+%
+% Dollar as delimiter
+%
+\let\m@thm@de=$
+{\catcode`\$=13%
+\gdef\gr@@kdelimsdol{\catcode`\$=13%
+\def${\ifnum\language=\greek\end{greektext}\else\begin{greektext}\fi}%
+\global\let\math=\m@thm@de%
+\gdef\display{\math\math}\gdef\enddisplay{\math\math}}%
+}
+
+\input grfonts.tex
+%% End of greek.sty
diff --git a/fonts/greek/kd/latex/grfonts.tex b/fonts/greek/kd/latex/grfonts.tex
new file mode 100644
index 0000000000..0bf295b420
--- /dev/null
+++ b/fonts/greek/kd/latex/grfonts.tex
@@ -0,0 +1,303 @@
+% This file is part of the GreekTeX Package
+%
+% File: grfonts.tex
+%
+% This version of grfonts is for KD greek fonts. It is based on the
+% standard LaTeX lfonts.tex which it actually compliments.
+% This version was written by K J Dryllerakis (kd@doc.ic.ac.uk)
+% Dec 7, 1992
+%
+% Important note: This file has to be loaded AFTER the greek mcaros
+% are read so that greek is declared as a new language. If this is NOT
+% the case then simply add a comand:
+% \newlanguage\greek at the beginning of the file
+% Note that lfonts has also to be read in advance!
+%
+% New Families
+% ^^^^^^^^^^^^
+% \gr - greek
+% \grbf - greek bold-face
+% \grit - greek italic
+% \grtt - greek typewriter
+% \grsl - greek slanted
+%
+%
+% Let us define again some of the lfonts macros
+\let\@prtct=\relax
+
+\def\@addfontinfo#1#2{{\def\@prtct{\noexpand\@prtct\noexpand}\def\def{\noexpand
+ \def\noexpand}\xdef#1{#1#2}}}
+
+\def\@getfont#1#2#3#4{\@ifundefined{\string #1\string #3}{\global\expandafter
+ \font \csname \string #1\string #3\endcsname #4\relax
+ \@addfontinfo#3{\textfont #2\csname \string #1\string #3\endcsname
+ \scriptfont #2\csname \string #1\string #3\endcsname
+ \scriptscriptfont #2\csname \string #1\string #3\endcsname
+ \def#1{\fam #2\csname\string #1\string #3\endcsname}}}{}#3#1}
+
+% We need to redifine normalize to take greek into account.
+
+\def\normalsize{\ifx\@currsize\normalsize\ifnum\language=\greek\else\rm\fi %
+ \else \@normalsize\fi}
+
+% Load the main Greek Fonts
+%
+%
+\font\sixgr = kdgr8 scaled 750 % Classic Greek
+\font\sixgrbf = kdbf8 scaled 750 % Boldface Greek
+\font\ningr = kdgr9 % 9 point Classic Greek Font
+\font\eiggr = kdgr8 % 8 point Classic Greek Font
+\font\tengr = kdgr10 % 10 point Classic Greek Font
+\font\tengrsl = kdsl10 % 10 Point Slanted Greek Font
+\font\tengrbf = kdbf10 % 10 Point Boldface Greek Font
+\font\tengri = kdti10 % 10 Point Italic Greek Font
+\font\tengrtt = kdtt10 % 10 Point Typewritter Greek Font
+\font\twlgr = kdgr10 scaled\magstep1 % Classic Greek
+%
+% Greek font changing command as protected
+%
+\def\gr{\protect\pgr}
+\def\grbf{\protect\pgrbf}
+\def\grit{\protect\pgrit}
+\def\grtt{\protect\pgrtt}
+\def\grsl{\protect\pgrsl}
+%
+\def\gr@@k{kdgr10}
+\def\gr@@kb{kdbf10}
+\def\gr@@ki{kdti10}
+\def\gr@@kt{kdtt10}
+\def\gr@@ks{kdsl10}
+\def\@eiggr{kdgr8}
+\def\@ningr{kdgr9}
+\def\@eiggrbf{kdbf8}
+\def\@ningrbf{kdbf9}
+%
+% families
+%
+%
+\newfam\grfam % \gr is family 11
+\newfam\grbfam % \grbf is family 12
+\newfam\grifam % \gri is family 13
+\newfam\grttfam % \grtt is family 14
+\newfam\grsfam % \grs is family 14
+
+% Now add commands to each LaTeX size changing command which defines
+% the Greek font selections to invoke macros which load the font ``on
+% demand''.
+%
+% This hack is needed to reset to a greek font at the font changing commands
+% This command will be included in \@??pt info which has the last word when
+% a font sizing command is executed. In the same command we also reset
+% the t@f@nt info.
+\gdef\@setgr@@k{\gdef\t@f@nt{\gr}\ifnum\language=\greek\gr\fi}
+%
+%
+%
+% We redifine here the setsize macro to take into account the
+% greek language. The main problem was that a \setgreek command
+% must be executed at the end of the setsize command to
+% reset the \t@f@nt command and to switch to gr instead of rm in
+% case we are in greek mode.
+% This is a harmless modification and the command setgreek is appended
+% to setsize
+
+\def\@setsize#1#2#3#4{\@nomath#1\let\@currsize#1\baselineskip
+ #2\setbox\strutbox\hbox{\vrule height.7\baselineskip
+ depth.3\baselineskip width\z@}\baselineskip\baselinestretch\baselineskip
+ \normalbaselineskip\baselineskip#3#4\@setgr@@k}
+
+
+\@addfontinfo\@vpt{\def\pgr{\@prtct\gr@vpt}%
+ \def\pgrbf{\@prtct\grb@vpt}%
+ \def\pgrit{\@prtct\gri@vpt}%
+ \def\pgrtt{\@prtct\grt@vpt}%
+ \def\pgrsl{\@prtct\grs@vpt}%
+ }
+\@addfontinfo\@vipt{\@prtct\textfont\grfam\sixgr%
+ \@prtct\scriptfont\grfam\sixgr%
+ \@prtct\textfont\grbfam\sixgrbf%
+ \@prtct\scriptfont\grbfam\sixgrbf%
+ \def\pgr{\@prtct\gr@vipt}%
+ \def\pgrbf{\@prtct\grb@vipt}%
+ \def\pgrit{\@prtct\gri@vipt}%
+ \def\pgrtt{\@prtct\grt@vipt}%
+ \def\pgrsl{\@prtct\grs@vipt}%
+ }
+\@addfontinfo\@viipt{\def\pgr{\@prtct\gr@viipt}%
+ \def\pgrbf{\@prtct\grb@viipt}%
+ \def\pgrit{\@prtct\gri@viipt}%
+ \def\pgrtt{\@prtct\grt@viipt}
+ \def\pgrsl{\@prtct\grs@viipt}%
+ }
+\@addfontinfo\@viiipt{\@prtct\textfont\grfam\eiggr%
+ \@prtct\scriptfont\grfam\sixgr%
+ \def\pgr{\@prtct\gr@viiipt}%
+ \def\pgrbf{\@prtct\grb@viiipt}%
+ \def\pgrit{\@prtct\gri@viiipt}%
+ \def\pgrtt{\@prtct\grt@viiipt}%
+ \def\pgrsl{\@prtct\grs@viiipt}%
+ }
+\@addfontinfo\@ixpt{\@prtct\textfont\grfam\ningr%
+ \@prtct\scriptfont\grfam\sixgr%
+ \def\pgr{\@prtct\gr@ixpt}%
+ \def\pgrbf{\@prtct\grb@ixpt}%
+ \def\pgrit{\@prtct\gri@ixpt}%
+ \def\pgrtt{\@prtct\grt@ixpt}
+ \def\pgrsl{\@prtct\grs@ixpt}}
+\@addfontinfo\@xpt{\@prtct\textfont\grfam\tengr%
+ \@prtct\scriptfont\grfam\eiggr%
+ \@prtct\scriptscriptfont\grfam\sixgr%
+ \@prtct\textfont\grbfam\tengrbf%
+ \@prtct\textfont\grsfam\tengrsl%
+ \@prtct\textfont\grttfam\tengrtt%
+ \@prtct\textfont\grifam\tengri%
+ \def\pgr{\@prtct\gr@xpt}%
+ \def\pgrbf{\@prtct\grb@xpt}%
+ \def\pgrit{\@prtct\gri@xpt}%
+ \def\pgrtt{\@prtct\grt@xpt}%
+ \def\pgrsl{\@prtct\grs@xpt}%
+ }
+\@addfontinfo\@xipt{\def\pgr{\@prtct\gr@xipt}%
+ \def\pgrbf{\@prtct\grb@xipt}%
+ \def\pgrit{\@prtct\gri@xipt}%
+ \def\pgrtt{\@prtct\grt@xipt}
+ \def\pgrsl{\@prtct\grs@xipt}%
+ }
+\@addfontinfo\@xiipt{\@prtct\textfont\grfam\twlgr%
+ \@prtct\scriptfont\grfam\tengr%
+ \@prtct\scriptscriptfont\grfam\eiggr%
+ \def\pgr{\@prtct\gr@xiipt}%
+ \def\pgrbf{\@prtct\grb@xiipt}%
+ \def\pgrit{\@prtct\gri@xiipt}%
+ \def\pgrtt{\@prtct\grt@xiipt}%
+ \def\pgrsl{\@prtct\grs@xiipt}%
+ }
+\@addfontinfo\@xivpt{\def\pgr{\@prtct\gr@xivpt}%
+ \def\pgrbf{\@prtct\grb@xivpt}%
+ \def\pgrit{\@prtct\gri@xivpt}%
+ \def\pgrtt{\@prtct\grt@xivpt}%
+ \def\pgrsl{\@prtct\grs@xiv}%
+ }
+\@addfontinfo\@xviipt{\def\pgr{\@prtct\gr@xviipt}%
+ \def\pgrbf{\@prtct\grb@xviipt}%
+ \def\pgrit{\@prtct\gri@xviipt}%
+ \def\pgrtt{\@prtct\grt@xviipt}%
+ \def\pgrsl{\@prtct\grs@xviipt}%
+ }
+\@addfontinfo\@xxpt{\def\pgr{\@prtct\gr@xxpt}%
+ \def\pgrbf{\@prtct\grb@xxpt}%
+ \def\pgrit{\@prtct\gri@xxpt}%
+ \def\pgrtt{\@prtct\grt@xxpt}%
+ \def\pgrsl{\@prtct\grs@xxpt}%
+ }
+\@addfontinfo\@xxvpt{\def\pgr{\@prtct\gr@xxvpt}%
+ \def\pgrbf{\@prtct\grb@xxvpt}%
+ \def\pgrit{\@prtct\gri@xxvpt}%
+ \def\pgrtt{\@prtct\grt@xxvpt}%
+ \def\pgrsl{\@prtct\grs@xxvpt}%
+ }
+
+% Finally, we can define WHICH fonts are to be loaded on demand.
+%
+% Classical Greek
+%
+\def\gr@vpt{\@subfont\gr\rm}
+\def\gr@vipt{\fam\grfam\sixgr}
+\def\gr@viipt{\@getfont\pgr\grfam\@viipt{\gr@@k\@ptscale7}}
+\def\gr@viiipt{\fam\grfam\eiggr}
+\def\gr@ixpt{\fam\grfam\ningr}
+\def\gr@xpt{\fam\grfam\tengr}
+\def\gr@xipt{\@getfont\pgr\grfam\@xipt{\gr@@k\@halfmag}}
+\def\gr@xiipt{\fam\grfam\twlgr}
+\def\gr@xivpt{\@getfont\pgr\grfam\@xivpt{\gr@@k\@magscale2}}
+\def\gr@xviipt{\@getfont\pgr\grfam\@xviipt{\gr@@k\@magscale3}}
+\def\gr@xxpt{\@getfont\pgr\grfam\@xxpt{\gr@@k\@magscale4}}
+\def\gr@xxvpt{\@getfont\pgr\grfam\@xxvpt{\gr@@k\@magscale5}}
+%
+% BoldFace Greek
+%
+\def\grb@vpt{\@subfont\grbf\bf}
+\def\grb@vipt{\fam\grbfam\sixgrbf}
+\def\grb@viipt{\@getfont\pgrbf\grbfam\@viipt{\gr@@kb\@ptscale7}}
+\def\grb@viiipt{\@getfont\pgrbf\grbfam\@viiipt{\@eiggrbf}}
+\def\grb@ixpt{\@getfont\pgrbf\grbfam\@ixpt{\@ningrbf}}
+\def\grb@xpt{\fam\grbfam\tengrbf}
+\def\grb@xipt{\@getfont\pgrbf\grbfam\@xipt{\gr@@kb\@halfmag}}
+\def\grb@xiipt{\@getfont\pgrbf\grbfam\@xiipt{\gr@@kb\@magscale1}}
+\def\grb@xivpt{\@getfont\pgrbf\grbfam\@xivpt{\gr@@kb\@magscale2}}
+\def\grb@xviipt{\@getfont\pgrbf\grbfam\@xviipt{\gr@@kb\@magscale3}}
+\def\grb@xxpt{\@getfont\pgrbf\grbfam\@xxpt{\gr@@kb\@magscale4}}
+\def\grb@xxvpt{\@getfont\pgrbf\grbfam\@xxvpt{\gr@@kb\@magscale5}}
+%
+% Greek Italics
+%
+\def\gri@vpt{\@subfont\grit\it}
+\def\gri@vipt{\@getfont\pgrit\grifam\@vipt{\gr@@ki\@ptscale6}}
+\def\gri@viipt{\@getfont\pgrit\grifam\@viipt{\gr@@ki\@ptscale7}}
+\def\gri@viiipt{\@getfont\pgrit\grifam\@viiipt{\gr@@ki\@ptscale8}}
+\def\gri@ixpt{\@getfont\pgrit\grifam\@ixpt{\gr@@ki\@ptscale9}}
+\def\gri@xpt{\fam\grifam\tengri}
+\def\gri@xipt{\@getfont\pgrit\grifam\@xipt{\gr@@ki\@halfmag}}
+\def\gri@xiipt{\@getfont\pgrit\grifam\@xiipt{\gr@@ki\@magscale1}}
+\def\gri@xivpt{\@getfont\pgrit\grifam\@xivpt{\gr@@ki\@magscale2}}
+\def\gri@xviipt{\@getfont\pgrit\grifam\@xviipt{\gr@@ki\@magscale3}}
+\def\gri@xxpt{\@getfont\pgrit\grifam\@xxpt{\gr@@ki\@magscale4}}
+\def\gri@xxvpt{\@getfont\pgrit\grifam\@xxvpt{\gr@@ki\@magscale5}}
+%
+% Slanted Greek
+%
+\def\grs@vpt{\@subfont\grsl\sl}
+\def\grs@vipt{\@getfont\pgrsl\grsfam\@vipt{\gr@@ks\@ptscale6}}
+\def\grs@viipt{\@getfont\pgrsl\grsfam\@viipt{\gr@@ks\@ptscale7}}
+\def\grs@viiipt{\@getfont\pgrsl\grsfam\@viiipt{\gr@@ks\@ptscale8}}
+\def\grs@ixpt{\@getfont\pgrsl\grsfam\@ixpt{\gr@@ks\@ptscale9}}
+\def\grs@xpt{\fam\grsfam\tengrsl}
+\def\grs@xipt{\@getfont\pgrsl\grsfam\@xipt{\gr@@ks\@halfmag}}
+\def\grs@xiipt{\@getfont\pgrsl\grsfam\@xiipt{\gr@@ks\@magscale1}}
+\def\grs@xivpt{\@getfont\pgrsl\grsfam\@xivpt{\gr@@ks\@magscale2}}
+\def\grs@xviipt{\@getfont\pgrsl\grsfam\@xviipt{\gr@@ks\@magscale3}}
+\def\grs@xxpt{\@getfont\pgrsl\grsfam\@xxpt{\gr@@ks\@magscale4}}
+\def\grs@xxvpt{\@getfont\pgrsl\grsfam\@xxvpt{\gr@@ks\@magscale5}}
+%
+% Greek Typewriter
+%
+\def\grt@vpt{\@subfont\grtt\tt}
+\def\grt@vipt{\@getfont\pgrtt\grttfam\@vipt{\gr@@kt\@ptscale6}%
+ \@nohyphens\pgrtt\@vipt}
+\def\grt@viipt{\@getfont\pgrtt\grttfam\@viipt{\gr@@kt\@ptscale7}%
+ \@nohyphens\pgrtt\@viipt}
+\def\grt@viiipt{\@getfont\pgrtt\grttfam\@viiipt{\gr@@kt\@ptscale8}%
+ \@nohyphens\pgrtt\@viiipt}
+\def\grt@ixpt{\@getfont\pgrtt\grttfam\@ixpt{\gr@@kt\@ptscale9}%
+ \@nohyphens\pgrtt\@ixpt}
+\def\grt@xpt{\fam\grttfam\tengrtt}
+\def\grt@xipt{\@getfont\pgrtt\grttfam\@xipt{\gr@@kt\@halfmag}%
+ \@nohyphens\pgrtt\@xipt}
+\def\grt@xiipt{\@getfont\pgrtt\grttfam\@xiipt{\gr@@kt\@magscale1}%
+ \@nohyphens\pgrtt\@xiipt}
+\def\grt@xivpt{\@getfont\pgrtt\grttfam\@xivpt{\gr@@kt\@magscale2}%
+ \@nohyphens\pgrtt\@xivpt}
+\def\grt@xviipt{\@getfont\pgrtt\grttfam\@xviipt{\gr@@kt\@magscale3}%
+ \@nohyphens\pgrtt\@xviipt}
+\def\grt@xxpt{\@getfont\pgrtt\grttfam\@xxpt{\gr@@kt\@magscale4}%
+ \@nohyphens\pgrtt\@xxpt}
+\def\grt@xxvpt{\@getfont\pgrtt\grttfam\@xxvpt{\gr@@kt\@magscale5}%
+ \@nohyphens\pgrtt\@xxvpt}
+
+%% End of grfont.tex
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/fonts/greek/kd/latex/grkhyphen.tex b/fonts/greek/kd/latex/grkhyphen.tex
new file mode 100644
index 0000000000..38880ecc1a
--- /dev/null
+++ b/fonts/greek/kd/latex/grkhyphen.tex
@@ -0,0 +1,1181 @@
+%
+%
+% Hyphenation patterns for modern greek language
+% **********************************************
+%
+\patterns{%
+.>a4
+.>'a4
+.>~a4
+.<a4
+.<'a4
+.<~a4
+.'a4
+.>e4
+.>'e4
+.>~e4
+.<e4
+.<'e4
+.<~e4
+.'e4
+.>h4
+.>'h4
+.>~h4
+.<h4
+.<'h4
+.<~h4
+.'h4
+.>i4
+.>'i4
+.>~i4
+.<i4
+.<'i4
+.<~i4
+.'i4
+.>o4
+.>'o4
+.>~o4
+.<o4
+.<'o4
+.<~o4
+.'o4
+.<u4
+.<'u4
+.<~u4
+.'u4
+.>w4
+.>'w4
+.>~w4
+.<w4
+.<'w4
+.<~w4
+.'w4
+a1
+a2i
+a2'i
+a2~i
+a2>i
+a2>'i
+a2>~i
+a2<i
+a2<'i
+a2<~i
+'a3i
+a3"
+a2u
+a2'u
+a2~u
+a2>u
+a2>'u
+a2>~u
+a2<u
+a2<'u
+a2<~u
+'a3u
+e1
+e2i
+e2'i
+e2~i
+e2>i
+e2>'i
+e2>~i
+e2<i
+e2<'i
+e2<~i
+'e3i
+e3"
+e2u
+e2'u
+e2~u
+e2>u
+e2>'u
+e2>~u
+e2<u
+e2<'u
+e2<~u
+'e3u
+h1
+h2u
+h2'u
+h2~u
+h2>u
+h2>'u
+h2>~u
+h2<u
+h2<'u
+h2<~u
+'h3u
+h3"
+i1
+i2a
+i2'a
+i2~a
+'i3a
+~i3a
+u2'a
+i2e
+i2'e
+'i3e
+~i3e
+u2'e
+i2o
+i2'o
+'i3o
+~i3o
+u2'o
+i2w
+i2'w
+i2~w
+'i3w
+~i3w
+u2'w
+'4'
+''4'
+''4>
+''4<
+'''a4
+''>a'4
+''<a'4
+''>~a4
+''<~a4
+'''e4
+'''>e'4
+'''<e'4
+'''h4
+''>h'4
+''<h'4
+''>~h4
+''<~h4
+'''i4
+''>i'4
+''<i'4
+''>~i4
+''<~i4
+'''o4
+''>o'4
+''<o'4
+'''u4
+''>u'4
+''<u'4
+''>~u4
+''<~u4
+'''w4
+''>w'4
+''<w'4
+''>~w4
+''<~w4
+o1
+o2i
+o2'i
+o2~i
+o2>i
+o2>'i
+o2>~i
+o2<i
+o2<'i
+o2<~i
+'o3i
+o3"
+o2u
+o2'u
+o2~u
+o2>u
+o2>'u
+o2>~u
+o2<u
+o2<'u
+o2<~u
+'o3u
+u1
+u2i
+u2'i
+u2~i
+u2>i
+u2>'i
+u2>~i
+u2<i
+u2<'i
+u2<~i
+u3"
+w1
+~a3i
+~a3u
+~h3u
+a1b
+a1g
+a1d
+a1z
+a1j
+a1k
+a1l
+a1m
+a1n
+a1x
+a1p
+a1r
+a1s
+a1t
+a1f
+a1q
+a1y
+e1b
+e1g
+e1d
+e1z
+e1j
+e1k
+e1l
+e1m
+e1n
+e1x
+e1p
+e1r
+e1s
+e1t
+e1f
+e1q
+e1y
+h1b
+h1g
+h1d
+h1z
+h1j
+h1k
+h1l
+h1m
+h1n
+h1x
+h1p
+h1r
+h1s
+h1t
+h1f
+h1q
+h1y
+i1b
+i1g
+i1d
+i1z
+i1j
+i1k
+i1l
+i1m
+i1n
+i1x
+i1p
+i1r
+i1s
+i1t
+i1f
+i1q
+i1y
+o1b
+o1g
+o1d
+o1z
+o1j
+o1k
+o1l
+o1m
+o1n
+o1x
+o1p
+o1r
+o1s
+o1t
+o1f
+o1q
+o1y
+u1b
+u1g
+u1d
+u1z
+u1j
+u1k
+u1l
+u1m
+u1n
+u1x
+u1p
+u1r
+u1s
+u1t
+u1f
+u1q
+u1y
+w1b
+w1g
+w1d
+w1z
+w1j
+w1k
+w1l
+w1m
+w1n
+w1x
+w1p
+w1r
+w1s
+w1t
+w1f
+w1q
+w1y
+2b1b
+2b1z
+2b1j
+2b1k
+2b1m
+2b1n
+2b1x
+2b1s
+2b1t
+2b1f
+2b1q
+2b1y
+2g1b
+2g1g
+2g1z
+2g1j
+2g1m
+2g1x
+2g1s
+2g1t
+2g1f
+2g1q
+2g1y
+2d1b
+2d1g
+2d1d
+2d1z
+2d1j
+2d1k
+2d1l
+2d1m
+2d1n
+2d1x
+2d1p
+2d1s
+2d1t
+2d1f
+2d1q
+2d1y
+2z1b
+2z1g
+2z1d
+2z1z
+2z1j
+2z1k
+2z1l
+2z1m
+2z1n
+2z1x
+2z1p
+2z1r
+2z1s
+2z1t
+2z1f
+2z1q
+2z1y
+2j1b
+2j1g
+2j1d
+2j1z
+2j1j
+2j1k
+2j1m
+2j1n
+2j1x
+2j1p
+2j1s
+2j1t
+2j1f
+2j1q
+2j1y
+2k1b
+2k1g
+2k1d
+2k1z
+2k1j
+2k1k
+2k1m
+2k1n
+2k1x
+2k1p
+2k1s
+2k1f
+2k1q
+2k1y
+2l1b
+2l1g
+2l1d
+2l1z
+2l1j
+2l1k
+2l1l
+2l1m
+2l1n
+2l1x
+2l1p
+2l1r
+2l1s
+2l1t
+2l1f
+2l1q
+2l1y
+2m1b
+2m1g
+2m1d
+2m1z
+2m1j
+2m1k
+2m1l
+2m1m
+2m1x
+2m1r
+2m1s
+2m1t
+2m1f
+2m1q
+2m1y
+2n1b
+2n1g
+2n1d
+2n1z
+2n1j
+2n1k
+2n1l
+2n1m
+2n1n
+2n1x
+2n1p
+2n1r
+2n1s
+2n1f
+2n1q
+2n1y
+2x1b
+2x1g
+2x1d
+2x1z
+2x1j
+2x1k
+2x1l
+2x1m
+2x1n
+2x1x
+2x1p
+2x1r
+2x1s
+2x1t
+2x1f
+2x1q
+2x1y
+2p1b
+2p1g
+2p1d
+2p1z
+2p1j
+2p1k
+2p1m
+2p1x
+2p1p
+2p1s
+2p1f
+2p1q
+2p1y
+2r1b
+2r1g
+2r1d
+2r1z
+2r1j
+2r1k
+2r1l
+2r1m
+2r1n
+2r1x
+2r1p
+2r1r
+2r1s
+2r1t
+2r1f
+2r1q
+2r1y
+2s1b
+2s1d
+2s1z
+sj2m
+2s1l
+2s1n
+2s1x
+2s1r
+2s1s
+2s1y
+2t1b
+2t1g
+2t1d
+2t1z
+2t1j
+2t1k
+2t1l
+2t1m
+2t1n
+2t1x
+2t1p
+2t1t
+2t1f
+2t1q
+2t1y
+2f1b
+2f1g
+2f1d
+2f1z
+2f1k
+2f1m
+2f1n
+2f1x
+2f1p
+2f1s
+2f1f
+2f1y
+2q1b
+2q1g
+2q1d
+2q1z
+2q1j
+2q1k
+2q1m
+2q1n
+2q1x
+2q1p
+2q1s
+2q1f
+2q1q
+2q1y
+2y1b
+2y1g
+2y1d
+2y1z
+2y1j
+2y1k
+2y1l
+2y1m
+2y1n
+2y1x
+2y1p
+2y1r
+2y1s
+2y1t
+2y1f
+2y1q
+2y1y
+a1"'i
+e1"'i
+o1"'i
+a1"'u
+e1"'u
+o1"'u
+h1"'u
+a1"~1
+e1"~i
+o1"~i
+a1"~u
+e1"~u
+o1"~u
+h1"~u
+4'a.
+4~a.
+4'e.
+4~e.
+4'h.
+4~h.
+4'i.
+4~i.
+4'u.
+4~u.
+4'o.
+4~o.
+4'w.
+4~w.
+4'aa.
+4'ab.
+4'ag.
+4'ad.
+4'ae.
+4'az.
+4'ah.
+4'aj.
+4'ai.
+4'ak.
+4'al.
+4'am.
+4'an.
+4'ax.
+4'ao.
+4'ap.
+4'ar.
+4'ac.
+4'at.
+4'au.
+4'af.
+4'aq.
+4'ay.
+4'aw.
+4'ea.
+4'eb.
+4'eg.
+4'ed.
+4'ee.
+4'ez.
+4'eh.
+4'ej.
+4'ei.
+4'ek.
+4'el.
+4'em.
+4'en.
+4'ex.
+4'eo.
+4'ep.
+4'er.
+4'ec.
+4'et.
+4'eu.
+4'ef.
+4'eq.
+4'ey.
+4'ew.
+4'ha.
+4'hb.
+4'hg.
+4'hd.
+4'he.
+4'hz.
+4'hh.
+4'hj.
+4'hi.
+4'hk.
+4'hl.
+4'hm.
+4'hn.
+4'hx.
+4'ho.
+4'hp.
+4'hr.
+4'hc.
+4'ht.
+4'hu.
+4'hf.
+4'hq.
+4'hy.
+4'hw.
+4'ia.
+4'ib.
+4'ig.
+4'id.
+4'ie.
+4'iz.
+4'ih.
+4'ij.
+4'ii.
+4'ik.
+4'il.
+4'im.
+4'in.
+4'ix.
+4'io.
+4'ip.
+4'ir.
+4'ic.
+4'it.
+4'iu.
+4'if.
+4'iq.
+4'iy.
+4'iw.
+}
+\endinput
+% Problem on number of patterns on TeX's memory!
+4'oa.
+4'ob.
+4'og.
+4'od.
+4'oe.
+4'oz.
+4'oh.
+4'oj.
+4'oi.
+4'ok.
+4'ol.
+4'om.
+4'on.
+4'ox.
+4'oo.
+4'op.
+4'or.
+4'oc.
+4'ot.
+4'ou.
+4'of.
+4'oq.
+4'oy.
+4'ow.
+4'ua.
+4'ub.
+4'ug.
+4'ud.
+4'ue.
+4'uz.
+4'uh.
+4'uj.
+4'ui.
+4'uk.
+4'ul.
+4'um.
+4'un.
+4'ux.
+4'uo.
+4'up.
+4'ur.
+4'uc.
+4'ut.
+4'uu.
+4'uf.
+4'uq.
+4'uy.
+4'uw.
+4'wa.
+4'wb.
+4'wg.
+4'wd.
+4'we.
+4'wz.
+4'wh.
+4'wj.
+4'wi.
+4'wk.
+4'wl.
+4'wm.
+4'wn.
+4'wx.
+4'wo.
+4'wp.
+4'wr.
+4'wc.
+4'wt.
+4'wu.
+4'wf.
+4'wq.
+4'wy.
+4'ww.
+4~aa.
+4~ab.
+4~ag.
+4~ad.
+4~ae.
+4~az.
+4~ah.
+4~aj.
+4~ai.
+4~ak.
+4~al.
+4~am.
+4~an.
+4~ax.
+4~ao.
+4~ap.
+4~ar.
+4~ac.
+4~at.
+4~au.
+4~af.
+4~aq.
+4~ay.
+4~aw.
+4~ha.
+4~hb.
+4~hg.
+4~hd.
+4~he.
+4~hz.
+4~hh.
+4~hj.
+4~hi.
+4~hk.
+4~hl.
+4~hm.
+4~hn.
+4~hx.
+4~ho.
+4~hp.
+4~hr.
+4~hc.
+4~ht.
+4~hu.
+4~hf.
+4~hq.
+4~hy.
+4~hw.
+4~ia.
+4~ib.
+4~ig.
+4~id.
+4~ie.
+4~iz.
+4~ih.
+4~ij.
+4~ii.
+4~ik.
+4~il.
+4~im.
+4~in.
+4~ix.
+4~io.
+4~ip.
+4~ir.
+4~ic.
+4~it.
+4~iu.
+4~if.
+4~iq.
+4~iy.
+4~iw.
+4~ua.
+4~ub.
+4~ug.
+4~ud.
+4~ue.
+4~uz.
+4~uh.
+4~uj.
+4~ui.
+4~uk.
+4~ul.
+4~um.
+4~un.
+4~ux.
+4~uo.
+4~up.
+4~ur.
+4~uc.
+4~ut.
+4~uu.
+4~uf.
+4~uq.
+4~uy.
+4~uw.
+4~wa.
+4~wb.
+4~wg.
+4~wd.
+4~we.
+4~wz.
+4~wh.
+4~wj.
+4~wi.
+4~wk.
+4~wl.
+4~wm.
+4~wn.
+4~wx.
+4~wo.
+4~wp.
+4~wr.
+4~wc.
+4~wt.
+4~wu.
+4~wf.
+4~wq.
+4~wy.
+4~ww.
+4a'a.
+4b'a.
+4g'a.
+4d'a.
+4e'a.
+4z'a.
+4h'a.
+4j'a.
+4i'a.
+4k'a.
+4l'a.
+4m'a.
+4n'a.
+4x'a.
+4o'a.
+4p'a.
+4r'a.
+4s'a.
+4t'a.
+4u'a.
+4f'a.
+4q'a.
+4y'a.
+4w'a.
+4a'e.
+4b'e.
+4g'e.
+4d'e.
+4e'e.
+4z'e.
+4h'e.
+4j'e.
+4i'e.
+4k'e.
+4l'e.
+4m'e.
+4n'e.
+4x'e.
+4o'e.
+4p'e.
+4r'e.
+4s'e.
+4t'e.
+4u'e.
+4f'e.
+4q'e.
+4y'e.
+4w'e.
+4a'h.
+4b'h.
+4g'h.
+4d'h.
+4e'h.
+4z'h.
+4h'h.
+4j'h.
+4i'h.
+4k'h.
+4l'h.
+4m'h.
+4n'h.
+4x'h.
+4o'h.
+4p'h.
+4r'h.
+4s'h.
+4t'h.
+4u'h.
+4f'h.
+4q'h.
+4y'h.
+4w'h.
+4a'i.
+4b'i.
+4g'i.
+4d'i.
+4e'i.
+4z'i.
+4h'i.
+4j'i.
+4i'i.
+4k'i.
+4l'i.
+4m'i.
+4n'i.
+4x'i.
+4o'i.
+4p'i.
+4r'i.
+4s'i.
+4t'i.
+4u'i.
+4f'i.
+4q'i.
+4y'i.
+4w'i.
+4a'o.
+4b'o.
+4g'o.
+4d'o.
+4e'o.
+4z'o.
+4h'o.
+4j'o.
+4i'o.
+4k'o.
+4l'o.
+4m'o.
+4n'o.
+4x'o.
+4o'o.
+4p'o.
+4r'o.
+4s'o.
+4t'o.
+4u'o.
+4f'o.
+4q'o.
+4y'o.
+4w'o.
+4a'u.
+4b'u.
+4g'u.
+4d'u.
+4e'u.
+4z'u.
+4h'u.
+4j'u.
+4i'u.
+4k'u.
+4l'u.
+4m'u.
+4n'u.
+4x'u.
+4o'u.
+4p'u.
+4r'u.
+4s'u.
+4t'u.
+4u'u.
+4f'u.
+4q'u.
+4y'u.
+4w'u.
+4a'w.
+4b'w.
+4g'w.
+4d'w.
+4e'w.
+4z'w.
+4h'w.
+4j'w.
+4i'w.
+4k'w.
+4l'w.
+4m'w.
+4n'w.
+4x'w.
+4o'w.
+4p'w.
+4r'w.
+4s'w.
+4t'w.
+4u'w.
+4f'w.
+4q'w.
+4y'w.
+4w'w.
+4a~a.
+4b~a.
+4g~a.
+4d~a.
+4e~a.
+4z~a.
+4h~a.
+4j~a.
+4i~a.
+4k~a.
+4l~a.
+4m~a.
+4n~a.
+4x~a.
+4o~a.
+4p~a.
+4r~a.
+4s~a.
+4t~a.
+4u~a.
+4f~a.
+4q~a.
+4y~a.
+4w~a.
+4a~h.
+4b~h.
+4g~h.
+4d~h.
+4e~h.
+4z~h.
+4h~h.
+4j~h.
+4i~h.
+4k~h.
+4l~h.
+4m~h.
+4n~h.
+4x~h.
+4o~h.
+4p~h.
+4r~h.
+4s~h.
+4t~h.
+4u~h.
+4f~h.
+4q~h.
+4y~h.
+4w~h.
+4a~i.
+4b~i.
+4g~i.
+4d~i.
+4e~i.
+4z~i.
+4h~i.
+4j~i.
+4i~i.
+4k~i.
+4l~i.
+4m~i.
+4n~i.
+4x~i.
+4o~i.
+4p~i.
+4r~i.
+4s~i.
+4t~i.
+4u~i.
+4f~i.
+4q~i.
+4y~i.
+4w~i.
+4a~u.
+4b~u.
+4g~u.
+4d~u.
+4e~u.
+4z~u.
+4h~u.
+4j~u.
+4i~u.
+4k~u.
+4l~u.
+4m~u.
+4n~u.
+4x~u.
+4o~u.
+4p~u.
+4r~u.
+4s~u.
+4t~u.
+4u~u.
+4f~u.
+4q~u.
+4y~u.
+4w~u.
+4a~w.
+4b~w.
+4g~w.
+4d~w.
+4e~w.
+4z~w.
+4h~w.
+4j~w.
+4i~w.
+4k~w.
+4l~w.
+4m~w.
+4n~w.
+4x~w.
+4o~w.
+4p~w.
+4r~w.
+4s~w.
+4t~w.
+4u~w.
+4f~w.
+4q~w.
+4y~w.
+4w~w.
+}
+\endinput
+
+
diff --git a/fonts/greek/kd/latex/grmode.sty b/fonts/greek/kd/latex/grmode.sty
new file mode 100644
index 0000000000..02ecd5b85e
--- /dev/null
+++ b/fonts/greek/kd/latex/grmode.sty
@@ -0,0 +1,58 @@
+% File: grmode.sty
+% Requirements: LaTeX based on plain TeX 3.0 or later.
+%
+% Oct 13, 1991.
+%
+% Purpose: grmode.sty is a latex include file used in conjuctio with
+% the grlatex package (format lgreek, and files lgreek.tex,
+% grfonts.tex, greek.sty)
+% This file switches grlatex to a global greek mode. A latin mode is defined
+% to access the original latex mode. It is intended as a header file for
+% grlatex style files for typesetting greek texts. (e.g. grarticle,
+% grbook etc.)
+% Note that this file can used under normal latex with the use of
+% the macro definitions greek.sty. The only problem is the lack of hyphenation
+% patterns for greek in that case.
+%
+% Copyright (C) 1991-1992 by K J Dryllerakis (kd@doc.ic.ac.uk)
+%
+% First of all we make sure that the greek macros for KD fonts
+% are loaded.
+%
+\ifx\gr@@kformatloaded\relax
+ \else
+ \input greek.sty
+\fi
+%
+% We need to enter a global greek mode, i.e. define the new catcodes and
+% default language
+%
+\let\~=~ % Save the meaning of ~
+\gr@@km@de % Load the catcode definitions for greek mode
+\language\greek % Switch to greek Hyphenation patterns
+%
+% Remember: We need to inverse the greek-latin modes.
+% This means redefinition of certain things:
+%
+% I. create a latin environment
+% Inside the environemnt everything is like in the standard LaTeX Mode
+%
+\newenvironment{latin}{\language0\l@tinm@de%
+\t@f@m\t@f@nt\ignorespaces}%
+{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}}
+\gdef\t@f@nt{\rm}
+\gdef\t@f@m{\fam0}
+%
+% Redifine the set greek macro to point to latin instead of greek
+%
+\gdef\@setgr@@k{\gdef\t@f@nt{\rm}\ifnum\language=\greek\gr\else\rm\fi}
+%
+% Finally we need to redifine the today macro
+%
+\def\today{\number\day\space \ifcase\month\or
+ Ianouar'iou\or Febrouar'iou\or Mart'iou\or April'iou\or Ma'iou\or Ioun'iou\or
+ Ioul'iou\or Augo'ustou\or Septembr'iou\or Oktwbr'iou\or Noembr'iou\or
+ Dekembr'iou\fi\space \number\year}
+
+\endinput
+% End of file grmode.sty
diff --git a/fonts/greek/kd/latex/lfonts.tex b/fonts/greek/kd/latex/lfonts.tex
new file mode 100644
index 0000000000..d5b7c3835b
--- /dev/null
+++ b/fonts/greek/kd/latex/lfonts.tex
@@ -0,0 +1,889 @@
+% File LFONTS - Version of 25 November 1991
+%
+% This version of LFONTS.TEX is for the CMR fonts. It was converted
+% from the AMR version by David Fuchs on 18 December 1985.
+% And corrected on 11 Nov 1986 by Leslie Lamport.
+% Last vestige of AMR fonts removed 3 Mar 89 by Leslie Lamport.
+% Added \endinput 10 Oct 91 by RmS.
+% Added some \relax in front of \if's 25 Nov 91 by RmS.
+
+% This file needs to be customized for the fonts available at a particular
+% site. There are three places where changes need to be made. They
+% can be found by searching this file for the string FONT-CUSTOMIZING.
+%
+% FONT CONVENTIONS
+%
+% A TYPESTYLE COMMAND is something like \it that defines a type style.
+% Each style command \xx is defined to be \protect\pxx, where
+% \pxx is defined to choose the correct font for the current size.
+% This allows style commands to appear in 'unsafe' arguments where
+% protection is required.
+%
+% A SIZE COMMAND is something like \normalsize that defines a type size.
+% It is defined by the document style. However, \normalsize is handled
+% somewhat differently because it is called so often--e.g., on every
+% page by the output routine. The document style defines \@normalsize
+% instead of \normalsize.
+%
+% A ONE-SIZE typestyle is one that exists only in the \normalsize size.
+%
+% A FONT-SIZE COMMAND is one that defines \textfont, \scriptfont and
+% \scriptscriptfont for the font families corresponding to preloaded fonts,
+% as well as the typestyle commands for the preloaded fonts. Each
+% font-size command has an associated @fontsize command, having the same
+% name except for an '@' at the front. All font-size commands are defined
+% in LFONTS. The naming convention is that a fifteenpt font has a font-size
+% name \xvpt, and so on.
+%
+% Each size command \SIZE executes the command
+% \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
+% which does the following.
+% 0. Executes \@nomath\SIZE to issue warning if in math mode.
+% 1. \let \@currsize = \SIZE
+% 2. Sets \strutbox to a strut of height .7 * BASELINESKIP and
+% depth .3 * BASELINESKIP
+%
+% Note: Charles Karney observed that step 2 is useless, since the
+% \FONTSIZE command executed in step 4 resets \strutbox using
+% the actual baselineskip, which is \baselinestretch * BASELINESKIP.
+% Some day, this step may get removed. (Note made 28 Feb 89)
+%
+% 3. Sets \baselineskip to \baselinestretch * BASELINESKIP
+% and
+% 4. Calls \FONTSIZE
+% 5. Executes the \@FONTSIZE command.
+% It should then define all the typestyle commands not defined by the font-size
+% command, except for the one-size type styles. A typestyle command for which
+% the corresponding font exists but is not preloaded is defined to expand to a
+% \@getfont command. A typestyle whose font does not exist is defined to
+% expand to a \@subfont command.
+%
+% A one-size typestyle whose font is not preloaded is defined to expand to
+% a \@onesizefont command.
+%
+% \em is defined to be \it inside an unslanted style and \rm inside a
+% slanted style. An \em command in a section title will produce a \pem
+% command in the table of contents.
+%
+
+\def\em{\protect\pem{}}
+\def\pem{\relax\ifdim \fontdimen\@ne\font >\z@ \rm \else \it \fi}
+
+\def\normalsize{\relax\ifx\@currsize\normalsize \rm \else \@normalsize\fi}
+
+% \load{SIZE}{STYLE} : Solves anomaly of loaded-on-demand font
+% used for first time in math mode. Give this command outside math
+% mode, before formula using it for first time.
+\def\load#1#2{\let\@tempa\@currsize \let\@currsize\relax #1#2\@tempa}
+
+% \newfont{\CMD}{FONT} defines \CMD to be the font FONT.
+% It is equivalent to \font \CMD = FONT
+% \symbol{NUM} == \char NUM
+
+\def\newfont#1#2{\@ifdefinable #1{\font #1=#2\relax}}
+\def\symbol#1{\char #1\relax}
+
+
+
+% \@getfont \STYLE \FAM \@FONTSIZE{LOADING.INFO}
+% \STYLE = style command
+% \FAM = a control sequence defined by \newfam\FAM
+% \@FONTSIZE = the @fontsize command for the current size.
+% LOADING.INFO = information needed to load the font--e.g.,
+% cmtti10 \magstep 2
+% Does the following, where \FONTNAME denotes a new unique, untypeable
+% font name:
+% 1. Executes \font \FONTNAME = LOADING.INFO
+% 2. Appends '\textfont FAM \FONTNAME \def\STYLE{\fam \FAM \FONTNAME}'
+% to the definition of \@FONTSIZE.
+% 3. Executes \@FONTSIZE \STYLE.
+%
+% \@nohyphens\STYLE\@FONTSIZE
+% Used right after \@getfont to set \hyphenchar of the new font to -1,
+% thereby prohibiting hyphenation. It is used with \tt fonts.
+% (\@nohyphens was added on 12/18/85)
+%
+% \@subfont \STYLE \REPSTYLE
+% \STYLE, \REPSTYLE = type style commands.
+% Types warning message and defines uses \REPSTYLE.
+%
+% \@onesizefont \STYLE {LOADING.INFO}
+% Defines \STYLE to be a typestyle that exists only for the \normalsize
+% size. It produces the font specified by LOADING.INFO
+%
+% \@addfontinfo\@FONTSIZE{DEFS}
+% Expands DEFS and adds to the definition of \@FONTSIZE. Items that should
+% not be expanded should be protected with \@prtct---except no protection
+% is needed for '\def\foo', only for the contents of the definition.
+%
+% \@nomath\CS : Types a warning '\CS used in math mode' if encountered
+% in math mode.
+
+% Remove \outer from definition of \newfam
+\def\newfam{\alloc@8\fam\chardef\sixt@@n}
+
+\def\@setsize#1#2#3#4{\@nomath#1\let\@currsize#1\baselineskip
+ #2\setbox\strutbox\hbox{\vrule height.7\baselineskip
+ depth.3\baselineskip width\z@}\baselineskip\baselinestretch\baselineskip
+ \normalbaselineskip\baselineskip#3#4}
+
+\newif\if@bold
+
+\let\@prtct=\relax
+
+\def\@addfontinfo#1#2{{\def\@prtct{\noexpand\@prtct\noexpand}\def\def{\noexpand
+ \def\noexpand}\xdef#1{#1#2}}}
+
+\def\@getfont#1#2#3#4{\@ifundefined{\string #1\string #3}{\global\expandafter
+ \font \csname \string #1\string #3\endcsname #4\relax
+ \@addfontinfo#3{\textfont #2\csname \string #1\string #3\endcsname
+ \scriptfont #2\csname \string #1\string #3\endcsname
+ \scriptscriptfont #2\csname \string #1\string #3\endcsname
+ \def#1{\fam #2\csname\string #1\string #3\endcsname}}}{}#3#1}
+
+\def\@nohyphens#1#2{\global\expandafter \hyphenchar\csname
+ \string #1\string #2\endcsname \m@ne}
+
+\def\@subfont#1#2{\@warning{No \string#1\space typeface in
+ this size, using \string#2}#2}
+
+\def\@onesizefont#1#2{\expandafter\newfam\csname fm\string#1\endcsname
+ \global\expandafter\font\csname ft\string#1\endcsname #2\relax
+ \gdef#1{\relax\ifx \@currsize\normalsize \@ftfam#1\else
+ \@warning{Typeface \string#1\space available only in
+ \string\normalsize, using \string\rm}\gdef #1{\relax\ifx \@currsize\normalsize
+ \textfont\@fontfam#1 \scriptfont\@fontfam#1 \scriptscriptfont
+ \@fontfam#1\@ftfam#1\else \rm\fi}#1\fi}#1}
+
+\def\@ftfam#1{\fam\csname fm\string#1\endcsname\csname ft\string#1\endcsname}
+
+\def\@nomath#1{\relax\ifmmode \@warning{\string#1\space in math mode.}\fi}
+\def\@nomathbold{\relax\ifmmode
+ \@warning{\string\mathbold\space in math mode.}\fi}
+
+% The following definitions save token space. E.g., using \@height
+% instead of height saves 5 tokens at the cost in time of one macro
+% expansion.
+
+\def\@height{height}
+\def\@depth{depth}
+\def\@width{width}
+
+\def\@magscale#1{ scaled \magstep #1}
+\def\@halfmag{ scaled \magstephalf}
+\def\@ptscale#1{ scaled #100}
+
+
+%% FONT-CUSTOMIZING: The following \font commands define the
+%% preloaded LaTeX fonts. Font names should be changed to cause
+%% different fonts to be loaded in place of these particular AMR fonts.
+%% \font commands should be added or deleted to change which fonts
+%% are preloaded.
+
+% five point
+ \font\fivrm = cmr5 % roman
+ \font\fivmi = cmmi5 % math italic
+ \skewchar\fivmi ='177 % for placement of accents
+%\font\fivmib = cmmib10 \@ptscale5 % bold math italic
+ \font\fivsy = cmsy5 % math symbols
+ \skewchar\fivsy ='60 % for placement of math accents
+%\font\fivsyb = cmbsy10 \@ptscale5 % bold math symbols
+%\font\fivit = cmti7 scaled 714 % text italic
+%\font\fivsl = cmsl10 \@ptscale5 % slanted
+%\font\fivbf = cmbx7 scaled 714 % extended bold
+%\font\fivbfs = cmbxsl10\@ptscale5 % extended bold slanted
+%\font\fivtt = cmtt10 \@ptscale5 % typewriter
+%\font\fivtti = cmitt10 \@ptscale5 % italic typewriter
+%\font\fivtts = cmsltt10\@ptscale5 % slanted typewriter
+%\font\fivsf = cmss10 \@ptscale5 % sans serif
+%\font\fivsfi = cmssi10 \@ptscale5 % italic sans serif
+%\font\fivsfb = cmssbx10\@ptscale5 % bold sans serif
+%\font\fivsc = cmcsc10 \@ptscale5 % small caps
+ \font\fivly = lasy5 % LaTeX symbols
+%\font\fivlyb = lasyb10 \@ptscale5 % LaTeX symbols
+%\font\fivuit = cmu10 \@ptscale5 % unslanted italic
+
+% six point
+ \font\sixrm = cmr6 % roman
+ \font\sixmi = cmmi6 % math italic
+ \skewchar\sixmi ='177 % for placement of accents
+%\font\sixmib = cmmib10 \@ptscale6 % bold math italic
+ \font\sixsy = cmsy6 % math symbols
+ \skewchar\sixsy ='60 % for placement of math accents
+%\font\sixsyb = cmbsy10 \@ptscale6 % bold math symbols
+%\font\sixit = cmti7 scaled 857 % text italic
+%\font\sixsl = cmsl10 \@ptscale6 % slanted
+%\font\sixbf = cmbx7 scaled 857 % extended bold
+%\font\sixbfs = cmbxsl10\@ptscale6 % extended bold slanted
+%\font\sixtt = cmtt10 \@ptscale6 % typewriter
+%\font\sixtti = cmitt10 \@ptscale6 % italic typewriter
+%\font\sixtts = cmsltt10\@ptscale6 % slanted typewriter
+%\font\sixsf = cmss10 \@ptscale6 % sans serif
+%\font\sixsfi = cmssi10 \@ptscale6 % italic sans serif
+%\font\sixsfb = cmssbx10\@ptscale6 % bold sans serif
+%\font\sixsc = cmcsc10 \@ptscale6 % small caps
+ \font\sixly = lasy6 % LaTeX symbols
+%\font\sixlyb = lasyb10 \@ptscale6 % LaTeX symbols
+%\font\sixuit = cmu10 \@ptscale6 % unslanted italic
+
+% seven point
+ \font\sevrm = cmr7 % roman
+ \font\sevmi = cmmi7 % math italic
+ \skewchar\sevmi ='177 % for placement of accents
+%\font\sevmib = cmmib10 \@ptscale7 % bold math italic
+ \font\sevsy = cmsy7 % math symbols
+ \skewchar\sevsy ='60 % for placement of math accents
+%\font\sevsyb = cmbsy10 \@ptscale7 % bold math symbols
+ \font\sevit = cmti7 % text italic
+%\font\sevsl = cmsl10 \@ptscale7 % slanted
+%\font\sevbf = cmbx7 % extended bold
+%\font\sevbfs = cmbxsl10\@ptscale7 % extended bold slanted
+%\font\sevtt = cmtt10 \@ptscale7 % typewriter
+%\font\sevtti = cmitt10 \@ptscale7 % italic typewriter
+%\font\sevtts = cmsltt10\@ptscale7 % slanted typewriter
+%\font\sevsf = cmss10 \@ptscale7 % sans serif
+%\font\sevsfi = cmssi10 \@ptscale7 % italic sans serif
+%\font\sevsfb = cmssbx10\@ptscale7 % bold sans serif
+%\font\sevsc = cmcsc10 \@ptscale7 % small caps
+ \font\sevly = lasy7 % LaTeX symbols
+%\font\sevlyb = lasyb10 \@ptscale7 % LaTeX symbols
+%\font\sevuit = cmu10 \@ptscale7 % unslanted italic
+
+% eight point
+ \font\egtrm = cmr8 % roman
+ \font\egtmi = cmmi8 % math italic
+ \skewchar\egtmi ='177 % for placement of accents
+%\font\egtmib = cmmib10 \@ptscale8 % bold math italic
+ \font\egtsy = cmsy8 % math symbols
+ \skewchar\egtsy ='60 % for placement of math accents
+%\font\egtsyb = cmbsy10 \@ptscale8 % bold math symbols
+ \font\egtit = cmti8 % text italic
+%\font\egtsl = cmsl8 % slanted
+%\font\egtbf = cmbx8 % extended bold
+%\font\egtbfs = cmbxsl10\@ptscale8 % extended bold slanted
+%\font\egttt = cmtt8 % typewriter
+%\font\egttti = cmitt10 \@ptscale8 % italic typewriter
+%\font\egttts = cmsltt10\@ptscale8 % slanted typewriter
+%\font\egtsf = cmss10 \@ptscale8 % sans serif
+%\font\egtsfi = cmssi10 \@ptscale8 % italic sans serif
+%\font\egtsfb = cmssbx10\@ptscale8 % bold sans serif
+%\font\egtsc = cmcsc10 \@ptscale8 % small caps
+ \font\egtly = lasy8 % LaTeX symbols
+%\font\egtlyb = lasyb10 \@ptscale8 % LaTeX symbols
+%\font\egtuit = cmu10 \@ptscale8 % unslanted italic
+
+
+% nine point
+ \font\ninrm = cmr9 % roman
+ \font\ninmi = cmmi9 % math italic
+ \skewchar\ninmi ='177 % for placement of accents
+%\font\ninmib = cmmib10 \@ptscale9 % bold math italic
+ \font\ninsy = cmsy9 % math symbols
+ \skewchar\ninsy ='60 % for placement of math accents
+%\font\ninsyb = cmbsy10 \@ptscale9 % bold math symbols
+ \font\ninit = cmti9 % text italic
+%\font\ninsl = cmsl9 % slanted
+ \font\ninbf = cmbx9 % extended bold
+%\font\ninbfs = cmbxsl10\@ptscale9 % extended bold slanted
+ \font\nintt = cmtt9 % typewriter
+ \hyphenchar\nintt = -1 % suppress hyphenation in \tt font
+%\font\nintti = cmitt10 \@ptscale9 % italic typewriter
+%\font\nintts = cmsltt10\@ptscale9 % slanted typewriter
+%\font\ninsf = cmss10 \@ptscale9 % sans serif
+%\font\ninsfi = cmssi10 \@ptscale9 % italic sans serif
+%\font\ninsfb = cmssbx10\@ptscale9 % bold sans serif
+%\font\ninsc = cmcsc10 \@ptscale9 % small caps
+ \font\ninly = lasy9 % LaTeX symbols
+%\font\ninlyb = lasyb10 \@ptscale9 % LaTeX symbols
+%\font\ninuit = cmu10 \@ptscale9 % unslanted italic
+
+% ten point
+ \font\tenrm = cmr10 % roman
+ \font\tenmi = cmmi10 % math italic
+ \skewchar\tenmi ='177 % for placement of accents
+%\font\tenmib = cmmib10 % bold math italic
+ \font\tensy = cmsy10 % math symbols
+ \skewchar\tensy ='60 % for placement of math accents
+%\font\tensyb = cmbsy10 % bold symbols
+ \font\tenit = cmti10 % text italic
+ \font\tensl = cmsl10 % slanted
+ \font\tenbf = cmbx10 % extended bold
+%\font\tenbfs = cmbxsl10 % extended bold slanted
+ \font\tentt = cmtt10 % typewriter
+ \hyphenchar\tentt = -1 % suppress hyphenation in \tt font
+%\font\tentti = cmitt10 % italic typewriter
+%\font\tentts = cmsltt10 % slanted typewriter
+ \font\tensf = cmss10 % sans serif
+%\font\tensfi = cmssi10 % italic sans serif
+%\font\tensfb = cmssbx10 % bold sans serif
+%\font\tensc = cmcsc10 % small caps
+ \font\tenly = lasy10 % LaTeX symbols
+%\font\tenlyb = lasyb10 % bold LaTeX symbols
+%\font\tenuit = cmu10 % unslanted italic
+
+% eleven point
+ \font\elvrm = cmr10 \@halfmag % roman
+ \font\elvmi = cmmi10 \@halfmag % math italic
+ \skewchar\elvmi ='177 % for placement of accents
+%\font\elvmib = cmmib10 \@halfmag % bold math italic
+ \font\elvsy = cmsy10 \@halfmag % math symbols
+ \skewchar\elvsy ='60 % for placement of math accents
+%\font\elvsyb = cmbsy10 \@halfmag % bold symbols
+ \font\elvit = cmti10 \@halfmag % text italic
+ \font\elvsl = cmsl10 \@halfmag % slanted
+ \font\elvbf = cmbx10 \@halfmag % exelvded bold
+%\font\elvbfs = cmbxsl10 \@halfmag % exelvded bold slanted
+ \font\elvtt = cmtt10 \@halfmag % typewriter
+ \hyphenchar\elvtt = -1 % suppress hyphenation in \tt font
+%\font\elvtti = cmitt10 \@halfmag % italic typewriter
+%\font\elvtts = cmsltt10 \@halfmag % slanted typewriter
+ \font\elvsf = cmss10 \@halfmag % sans serif
+%\font\elvsfi = cmssi10 \@halfmag % italic sans serif
+%\font\elvsfb = cmssbx10 \@halfmag % bold sans serif
+%\font\elvsc = cmcsc10 \@halfmag % small caps
+ \font\elvly = lasy10 \@halfmag % LaTeX symbols
+%\font\elvlyb = lasyb10 \@halfmag % bold LaTeX symbols
+%\font\elvuit = cmu10 \@halfmag % unslanted italic
+
+% twelve point
+ \font\twlrm = cmr12 % roman
+ \font\twlmi = cmmi12 % math italic
+ \skewchar\twlmi ='177 % for placement of accents
+%\font\twlmib = cmmib10 \@magscale1 % bold math italic
+ \font\twlsy = cmsy10 \@magscale1 % math symbols
+ \skewchar\twlsy ='60 % for placement of math accents
+%\font\twlsyb = cmbsy10 \@magscale1 % bold symbols
+ \font\twlit = cmti12 % text italic
+ \font\twlsl = cmsl12 % slanted
+ \font\twlbf = cmbx12 % extended bold
+%\font\twlbfs = cmbxsl10 \@magscale1 % extended bold slanted
+ \font\twltt = cmtt12 % typewriter
+ \hyphenchar\twltt = -1 % suppress hyphenation in \tt font
+%\font\twltti = cmitt10 \@magscale1 % italic typewriter
+%\font\twltts = cmsltt10 \@magscale1 % slanted typewriter
+ \font\twlsf = cmss12 % sans serif
+%\font\twlsfi = cmssi10 \@magscale1 % italic sans serif
+%\font\twlsfb = cmssbx10 \@magscale1 % bold sans serif
+%\font\twlsc = cmcsc10 \@magscale1 % small caps
+ \font\twlly = lasy10 \@magscale1 % LaTeX symbols
+%\font\twllyb = lasyb10 \@magscale1 % bold LaTeX symbols
+%\font\twluit = cmu10 \@magscale1 % unslanted italic
+
+% fourteen point
+ \font\frtnrm = cmr10 \@magscale2 % roman
+ \font\frtnmi = cmmi10 \@magscale2 % math italic
+ \skewchar\frtnmi ='177 % for placement of accents
+%\font\frtnmib = cmmib10 \@magscale2 % bold math italic
+ \font\frtnsy = cmsy10 \@magscale2 % math symbols
+ \skewchar\frtnsy ='60 % for placement of math accents
+%\font\frtnsyb = cmbsy10 \@magscale2 % bold symbols
+%\font\frtnit = cmti10 \@magscale2 % text italic
+%\font\frtnsl = cmsl10 \@magscale2 % slanted
+ \font\frtnbf = cmbx10 \@magscale2 % extended bold
+%\font\frtnbfs = cmbxsl10 \@magscale2 % extended bold slanted
+%\font\frtntt = cmtt10 \@magscale2 % typewriter
+%\font\frtntti = cmitt10 \@magscale2 % italic typewriter
+%\font\frtntts = cmsltt10 \@magscale2 % slanted typewriter
+%\font\frtnsf = cmss10 \@magscale2 % sans serif
+%\font\frtnsfi = cmssi10 \@magscale2 % italic sans serif
+%\font\frtnsfb = cmssbx10 \@magscale2 % bold sans serif
+%\font\frtnsc = cmcsc10 \@magscale2 % small caps
+ \font\frtnly = lasy10 \@magscale2 % LaTeX symbols
+%\font\frtnlyb = lasyb10 \@magscale2 % bold LaTeX symbols
+%\font\frtnuit = cmu10 \@magscale2 % unslanted italic
+
+% seventeen point
+ \font\svtnrm = cmr17 % roman
+ \font\svtnmi = cmmi10 \@magscale3 % math italic
+ \skewchar\svtnmi ='177 % for placement of accents
+%\font\svtnmib = cmmib10 \@magscale3 % bold math italic
+ \font\svtnsy = cmsy10 \@magscale3 % math symbols
+ \skewchar\svtnsy ='60 % for placement of math accents
+%\font\svtnsyb = cmbsy10 \@magscale3 % bold symbols
+%\font\svtnit = cmti10 \@magscale3 % text italic
+%\font\svtnsl = cmsl10 \@magscale3 % slanted
+ \font\svtnbf = cmbx10 \@magscale3 % extended bold
+%\font\svtnbfs = cmbxsl10 \@magscale3 % extended bold slanted
+%\font\svtntt = cmtt10 \@magscale3 % typewriter
+%\font\svtntti = cmitt10 \@magscale3 % italic typewriter
+%\font\svtntts = cmsltt10 \@magscale3 % slanted typewriter
+%\font\svtnsf = cmss10 \@magscale3 % sans serif
+%\font\svtnsfi = cmssi10 \@magscale3 % italic sans serif
+%\font\svtnsfb = cmssbx10 \@magscale3 % bold sans serif
+%\font\svtnsc = cmcsc10 \@magscale3 % small caps
+ \font\svtnly = lasy10 \@magscale3 % LaTeX symbols
+%\font\svtnlyb = lasyb10 \@magscale3 % bold LaTeX symbols
+%\font\svtnuit = cmu10 \@magscale3 % unslanted italic
+
+% twenty point
+ \font\twtyrm = cmr10 \@magscale4 % roman
+ \font\twtymi = cmmi10 \@magscale4 % math italic
+ \skewchar\twtymi ='177 % for placement of accents
+%\font\twtymib = cmmib10 \@magscale4 % bold math italic
+ \font\twtysy = cmsy10 \@magscale4 % math symbols
+ \skewchar\twtysy ='60 % for placement of math accents
+%\font\twtysyb = cmbsy10 \@magscale4 % bold symbols
+%\font\twtyit = cmti10 \@magscale4 % text italic
+%\font\twtysl = cmsl10 \@magscale4 % slanted
+%\font\twtybf = cmbx10 \@magscale4 % extended bold
+%\font\twtybfs = cmbxsl10 \@magscale4 % extended bold slanted
+%\font\twtytt = cmtt10 \@magscale4 % typewriter
+%\font\twtytti = cmitt10 \@magscale4 % italic typewriter
+%\font\twtytts = cmsltt10 \@magscale4 % slanted typewriter
+%\font\twtysf = cmss10 \@magscale4 % sans serif
+%\font\twtysfi = cmssi10 \@magscale4 % italic sans serif
+%\font\twtysfb = cmssbx10 \@magscale4 % bold sans serif
+%\font\twtysc = cmcsc10 \@magscale4 % small caps
+ \font\twtyly = lasy10 \@magscale4 % LaTeX symbols
+%\font\twtylyb = lasyb10 \@magscale4 % bold LaTeX symbols
+%\font\twtyuit = cmu10 \@magscale4 % unslanted italic
+
+% twenty-five point
+ \font\twfvrm = cmr10 \@magscale5 % roman
+%\font\twfvmi = cmmi10 \@magscale5 % math italic
+%\font\twfvmib = cmmib10 \@magscale5 % bold math italic
+%\font\twfvsy = cmsy10 \@magscale5 % math symbols
+%\font\twfvsyb = cmbsy10 \@magscale5 % bold symbols
+%\font\twfvit = cmti10 \@magscale5 % text italic
+%\font\twfvsl = cmsl10 \@magscale5 % slanted
+%\font\twfvbf = cmbx10 \@magscale5 % extended bold
+%\font\twfvbfs = cmbxsl10 \@magscale5 % extended bold slanted
+%\font\twfvtt = cmtt10 \@magscale5 % typewriter
+%\font\twfvtti = cmitt10 \@magscale5 % italic typewriter
+%\font\twfvtts = cmsltt10 \@magscale5 % slanted typewriter
+%\font\twfvsf = cmss10 \@magscale5 % sans serif
+%\font\twfvsfi = cmssi10 \@magscale5 % italic sans serif
+%\font\twfvsfb = cmssbx10 \@magscale5 % bold sans serif
+%\font\twfvsc = cmcsc10 \@magscale5 % small caps
+%\font\twfvly = lasy10 \@magscale5 % LaTeX symbols
+%\font\twfvlyb = lasyb10 \@magscale5 % bold LaTeX symbols
+%\font\twfvuit = cmu10 \@magscale5 % unslanted italic
+
+% Math extension
+ \font\tenex = cmex10
+
+% line & circle fonts
+\font\tenln = line10
+\font\tenlnw = linew10
+\font\tencirc = lcircle10 % 21 Nov 89 : circle10 -> lcircle10
+\font\tencircw = lcirclew10 % 21 Nov 89 : circlew10 -> lcirclew10
+
+% Change made 6 May 86: `\@warning' replaced by `\immediate\write 15'
+% since it's not defined when lfonts.tex is read by lplain.tex.
+%
+\ifnum\fontdimen8\tenln=\fontdimen8\tencirc \else
+ \immediate\write 15{Incompatible thin line and circle fonts}\fi
+\ifnum\fontdimen8\tenlnw=\fontdimen8\tencircw \else
+ \immediate\write 15{Incompatible thick line and circle fonts}\fi
+
+
+% protected font names
+\def\rm{\protect\prm}
+\def\it{\protect\pit}
+\def\bf{\protect\pbf}
+\def\sl{\protect\psl}
+\def\sf{\protect\psf}
+\def\sc{\protect\psc}
+\def\tt{\protect\ptt}
+
+%% FONT-CUSTOMIZING: The following definitions define certain commands
+%% to be abbreviations for certain font names. These commands are used
+%% below in \@getfont commands, which load the loaded-on-demand fonts.
+%% This is done only to save space. To change the fonts that are loaded
+%% on demand, one can either change these definitions or else change
+%% the arguments of the \@getfont commands.
+%%
+\def\@mbi{cmmib10}
+\def\@mbsy{cmbsy10}
+\def\@mcsc{cmcsc10}
+\def\@mss{cmss10}
+\def\@lasyb{lasyb10}
+
+% families
+
+\newfam\itfam % \it is family 4
+\newfam\slfam % \sl is family 5
+\newfam\bffam % \bf is family 6
+\newfam\ttfam % \tt is family 7
+\newfam\sffam % \sf is family 8
+\newfam\scfam % \sc is family 9
+\newfam\lyfam % \ly is family 10
+
+\def\cal{\fam\tw@}
+\def\mit{\fam\@ne}
+
+\def\@setstrut{\setbox\strutbox=\hbox{\vrule \@height .7\baselineskip
+ \@depth .3\baselineskip \@width\z@}}
+
+
+%% FONT-CUSTOMIZING: The commands \vpt, \vipt, ... , \xxvpt perform all
+%% the declarations needed to change the type size to 5pt, 6pt, ... ,
+%% 25pt. To see how this works, consider the definition of \viipt,
+%% which determines the fonts used in a 7pt type size. The command
+%% \def\pit{\fam\itfam\sevit}
+%% means that the \it command causes the preloaded \sevit font to
+%% be used--this font was defined earlier with a \font\sevit...
+%% command. The commands
+%% \textfont\itfam\sevit
+%% \scriptfont\itfam\sevit
+%% \scriptscriptfont\itfam\sevit
+%% tell TeX to use the \sevit font for all three math-mode sizes
+%% (text, script, and scriptscript) for the 7pt size.
+%% The fonts appearing in these commands must be preloaded.
+%%
+%% The command
+%% \def\pbf{\@getfont\pbf\bffam\@viipt{ambx7}}
+%% declares \bf to use a loaded-on-demand font--namely, the font
+%% ambx7.
+%%
+%% The command
+%% \def\ptt{\@subfont\tt\rm}
+%% declares that the \tt font is unavailable in the 7pt size, so
+%% the \rm font is used instead. (The substituted type style should
+%% correspond to a preloaded size.)
+
+\def\vpt{\textfont\z@\fivrm
+ \scriptfont\z@\fivrm \scriptscriptfont\z@\fivrm
+\textfont\@ne\fivmi \scriptfont\@ne\fivmi \scriptscriptfont\@ne\fivmi
+\textfont\tw@\fivsy \scriptfont\tw@\fivsy \scriptscriptfont\tw@\fivsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\prm{\fam\z@\fivrm}%
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath
+ \unboldmath\fam\@ne\@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\pit{\@subfont\it\rm}%
+\def\psl{\@subfont\sl\rm}%
+\def\pbf{\@getfont\pbf\bffam\@vpt{cmbx5}}%
+\def\ptt{\@subfont\tt\rm}%
+\def\psf{\@subfont\sf\rm}%
+\def\psc{\@subfont\sc\rm}%
+\def\ly{\fam\lyfam\fivly}\textfont\lyfam\fivly
+ \scriptfont\lyfam\fivly \scriptscriptfont\lyfam\fivly
+\@setstrut\rm}
+
+\def\@vpt{}
+
+\def\vipt{\textfont\z@\sixrm
+ \scriptfont\z@\sixrm \scriptscriptfont\z@\sixrm
+\textfont\@ne\sixmi \scriptfont\@ne\sixmi \scriptscriptfont\@ne\sixmi
+\textfont\tw@\sixsy \scriptfont\tw@\sixsy \scriptscriptfont\tw@\sixsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\prm{\fam\z@\sixrm}%
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath
+ \unboldmath\@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\pit{\@subfont\it\rm}%
+\def\psl{\@subfont\sl\rm}%
+\def\pbf{\@getfont\pbf\bffam\@vipt{cmbx6}}%
+\def\ptt{\@subfont\tt\rm}%
+\def\psf{\@subfont\sf\rm}%
+\def\psc{\@subfont\sc\rm}%
+\def\ly{\fam\lyfam\sixly}\textfont\lyfam\sixly
+ \scriptfont\lyfam\sixly \scriptscriptfont\lyfam\sixly
+\@setstrut\rm}
+
+\def\@vipt{}
+
+\def\viipt{\textfont\z@\sevrm
+ \scriptfont\z@\sixrm \scriptscriptfont\z@\fivrm
+\textfont\@ne\sevmi \scriptfont\@ne\fivmi \scriptscriptfont\@ne\fivmi
+\textfont\tw@\sevsy \scriptfont\tw@\fivsy \scriptscriptfont\tw@\fivsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\prm{\fam\z@\sevrm}%
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath
+\unboldmath\@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\pit{\fam\itfam\sevit}\textfont\itfam\sevit
+ \scriptfont\itfam\sevit \scriptscriptfont\itfam\sevit
+\def\psl{\@subfont\sl\it}%
+\def\pbf{\@getfont\pbf\bffam\@viipt{cmbx7}}%
+\def\ptt{\@subfont\tt\rm}%
+\def\psf{\@subfont\sf\rm}%
+\def\psc{\@subfont\sc\rm}%
+\def\ly{\fam\lyfam\sevly}\textfont\lyfam\sevly
+ \scriptfont\lyfam\fivly \scriptscriptfont\lyfam\fivly
+\@setstrut \rm}
+
+\def\@viipt{}
+
+\def\viiipt{\textfont\z@\egtrm
+ \scriptfont\z@\sixrm \scriptscriptfont\z@\fivrm
+\textfont\@ne\egtmi \scriptfont\@ne\sixmi \scriptscriptfont\@ne\fivmi
+\textfont\tw@\egtsy \scriptfont\tw@\sixsy \scriptscriptfont\tw@\fivsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\prm{\fam\z@\egtrm}%
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath
+\unboldmath\@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\pit{\fam\itfam\egtit}\textfont\itfam\egtit
+ \scriptfont\itfam\sevit \scriptscriptfont\itfam\sevit
+\def\psl{\@getfont\psl\slfam\@viiipt{cmsl8}}%
+\def\pbf{\@getfont\pbf\bffam\@viiipt{cmbx8}}%
+\def\ptt{\@getfont\ptt\ttfam\@viiipt{cmtt8}\@nohyphens\ptt\@viiipt}%
+\def\psf{\@getfont\psf\sffam\@viiipt{cmss8}}%
+\def\psc{\@getfont\psc\scfam\@viiipt{\@mcsc \@ptscale8}}%
+\def\ly{\fam\lyfam\egtly}\textfont\lyfam\egtly
+ \scriptfont\lyfam\sixly \scriptscriptfont\lyfam\fivly
+\@setstrut \rm}
+
+\def\@viiipt{}
+
+\def\ixpt{\textfont\z@\ninrm
+ \scriptfont\z@\sixrm \scriptscriptfont\z@\fivrm
+\textfont\@ne\ninmi \scriptfont\@ne\sixmi \scriptscriptfont\@ne\fivmi
+\textfont\tw@\ninsy \scriptfont\tw@\sixsy \scriptscriptfont\tw@\fivsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\prm{\fam\z@\ninrm}%
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\pit{\fam\itfam\ninit}\textfont\itfam\ninit
+ \scriptfont\itfam\sevit \scriptscriptfont\itfam\sevit
+\def\psl{\@getfont\psl\slfam\@ixpt{cmsl9}}%
+\def\pbf{\fam\bffam\ninbf}\textfont\bffam\ninbf
+ \scriptfont\bffam\ninbf \scriptscriptfont\bffam\ninbf
+\def\ptt{\fam\ttfam\nintt}\textfont\ttfam\nintt
+ \scriptfont\ttfam\nintt \scriptscriptfont\ttfam\nintt
+\def\psf{\@getfont\psf\sffam\@ixpt{cmss9}}%
+\def\psc{\@getfont\psc\scfam\@ixpt{\@mcsc \@ptscale9}}%
+\def\ly{\fam\lyfam\ninly}\textfont\lyfam\ninly
+ \scriptfont\lyfam\sixly \scriptscriptfont\lyfam\fivly
+\@setstrut \rm}
+
+\def\@ixpt{}
+
+\def\xpt{\textfont\z@\tenrm
+ \scriptfont\z@\sevrm \scriptscriptfont\z@\fivrm
+\textfont\@ne\tenmi \scriptfont\@ne\sevmi \scriptscriptfont\@ne\fivmi
+\textfont\tw@\tensy \scriptfont\tw@\sevsy \scriptscriptfont\tw@\fivsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\tenmi
+ \textfont\tw@\tensy \textfont\lyfam\tenly
+ \@boldfalse}\@boldfalse
+\def\boldmath{\@ifundefined{tenmib}{\global\font\tenmib\@mbi
+ \global\font\tensyb\@mbsy
+ \global\font\tenlyb\@lasyb\relax\@addfontinfo\@xpt
+ {\def\boldmath{\everymath{\mit}\everydisplay{\mit}\@prtct\@nomathbold
+ \textfont\@ne\tenmib \textfont\tw@\tensyb
+ \textfont\lyfam\tenlyb \@prtct\@boldtrue}}}{}\@xpt\boldmath}%
+\def\prm{\fam\z@\tenrm}%
+\def\pit{\fam\itfam\tenit}\textfont\itfam\tenit \scriptfont\itfam\sevit
+ \scriptscriptfont\itfam\sevit
+\def\psl{\fam\slfam\tensl}\textfont\slfam\tensl
+ \scriptfont\slfam\tensl \scriptscriptfont\slfam\tensl
+\def\pbf{\fam\bffam\tenbf}\textfont\bffam\tenbf
+ \scriptfont\bffam\tenbf \scriptscriptfont\bffam\tenbf
+\def\ptt{\fam\ttfam\tentt}\textfont\ttfam\tentt
+ \scriptfont\ttfam\tentt \scriptscriptfont\ttfam\tentt
+\def\psf{\fam\sffam\tensf}\textfont\sffam\tensf
+ \scriptfont\sffam\tensf \scriptscriptfont\sffam\tensf
+\def\psc{\@getfont\psc\scfam\@xpt{\@mcsc}}%
+\def\ly{\fam\lyfam\tenly}\textfont\lyfam\tenly
+ \scriptfont\lyfam\sevly \scriptscriptfont\lyfam\fivly
+\@setstrut \rm}
+
+\def\@xpt{}
+
+\def\xipt{\textfont\z@\elvrm
+ \scriptfont\z@\egtrm \scriptscriptfont\z@\sixrm
+\textfont\@ne\elvmi \scriptfont\@ne\egtmi \scriptscriptfont\@ne\sixmi
+\textfont\tw@\elvsy \scriptfont\tw@\egtsy \scriptscriptfont\tw@\sixsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\elvmi \textfont\tw@\elvsy
+ \textfont\lyfam\elvly \@boldfalse}\@boldfalse
+\def\boldmath{\@ifundefined{elvmib}{\global\font\elvmib\@mbi\@halfmag
+ \global\font\elvsyb\@mbsy\@halfmag
+ \global\font\elvlyb\@lasyb\@halfmag\relax\@addfontinfo\@xipt
+ {\def\boldmath{\everymath{\mit}\everydisplay{\mit}\@prtct\@nomathbold
+ \textfont\@ne\elvmib \textfont\tw@\elvsyb
+ \textfont\lyfam\elvlyb\@prtct\@boldtrue}}}{}\@xipt\boldmath}%
+\def\prm{\fam\z@\elvrm}%
+\def\pit{\fam\itfam\elvit}\textfont\itfam\elvit
+ \scriptfont\itfam\egtit \scriptscriptfont\itfam\sevit
+\def\psl{\fam\slfam\elvsl}\textfont\slfam\elvsl
+ \scriptfont\slfam\tensl \scriptscriptfont\slfam\tensl
+\def\pbf{\fam\bffam\elvbf}\textfont\bffam\elvbf
+ \scriptfont\bffam\ninbf \scriptscriptfont\bffam\ninbf
+\def\ptt{\fam\ttfam\elvtt}\textfont\ttfam\elvtt
+ \scriptfont\ttfam\nintt \scriptscriptfont\ttfam\nintt
+\def\psf{\fam\sffam\elvsf}\textfont\sffam\elvsf
+ \scriptfont\sffam\tensf \scriptscriptfont\sffam\tensf
+\def\psc{\@getfont\psc\scfam\@xipt{\@mcsc\@halfmag}}%
+\def\ly{\fam\lyfam\elvly}\textfont\lyfam\elvly
+ \scriptfont\lyfam\egtly \scriptscriptfont\lyfam\sixly
+\@setstrut \rm}
+
+\def\@xipt{}
+
+\def\xiipt{\textfont\z@\twlrm
+ \scriptfont\z@\egtrm \scriptscriptfont\z@\sixrm
+\textfont\@ne\twlmi \scriptfont\@ne\egtmi \scriptscriptfont\@ne\sixmi
+\textfont\tw@\twlsy \scriptfont\tw@\egtsy \scriptscriptfont\tw@\sixsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\twlmi
+ \textfont\tw@\twlsy \textfont\lyfam\twlly
+ \@boldfalse}\@boldfalse
+\def\boldmath{\@ifundefined{twlmib}{\global\font\twlmib\@mbi\@magscale1\global
+ \font\twlsyb\@mbsy \@magscale1\global\font
+ \twllyb\@lasyb\@magscale1\relax\@addfontinfo\@xiipt
+ {\def\boldmath{\everymath
+ {\mit}\everydisplay{\mit}\@prtct\@nomathbold
+ \textfont\@ne\twlmib \textfont\tw@\twlsyb
+ \textfont\lyfam\twllyb\@prtct\@boldtrue}}}{}\@xiipt\boldmath}%
+\def\prm{\fam\z@\twlrm}%
+\def\pit{\fam\itfam\twlit}\textfont\itfam\twlit \scriptfont\itfam\egtit
+ \scriptscriptfont\itfam\sevit
+\def\psl{\fam\slfam\twlsl}\textfont\slfam\twlsl
+ \scriptfont\slfam\tensl \scriptscriptfont\slfam\tensl
+\def\pbf{\fam\bffam\twlbf}\textfont\bffam\twlbf
+ \scriptfont\bffam\ninbf \scriptscriptfont\bffam\ninbf
+\def\ptt{\fam\ttfam\twltt}\textfont\ttfam\twltt
+ \scriptfont\ttfam\nintt \scriptscriptfont\ttfam\nintt
+\def\psf{\fam\sffam\twlsf}\textfont\sffam\twlsf
+ \scriptfont\sffam\tensf \scriptscriptfont\sffam\tensf
+\def\psc{\@getfont\psc\scfam\@xiipt{\@mcsc\@magscale1}}%
+\def\ly{\fam\lyfam\twlly}\textfont\lyfam\twlly
+ \scriptfont\lyfam\egtly \scriptscriptfont\lyfam\sixly
+ \@setstrut \rm}
+
+\def\@xiipt{}
+
+\def\xivpt{\textfont\z@\frtnrm
+ \scriptfont\z@\tenrm \scriptscriptfont\z@\sevrm
+\textfont\@ne\frtnmi \scriptfont\@ne\tenmi \scriptscriptfont\@ne\sevmi
+\textfont\tw@\frtnsy \scriptfont\tw@\tensy \scriptscriptfont\tw@\sevsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\frtnmi \textfont\tw@\frtnsy
+ \textfont\lyfam\frtnly \@boldfalse}\@boldfalse
+\def\boldmath{\@ifundefined{frtnmib}{\global\font
+ \frtnmib\@mbi\@magscale2\global\font\frtnsyb\@mbsy\@magscale2
+ \global\font\frtnlyb\@lasyb\@magscale2\relax\@addfontinfo\@xivpt
+ {\def\boldmath{\everymath
+ {\mit}\everydisplay{\mit}\@prtct\@nomathbold
+ \textfont\@ne\frtnmib \textfont\tw@\frtnsyb
+ \textfont\lyfam\frtnlyb\@prtct\@boldtrue}}}{}\@xivpt\boldmath}%
+\def\prm{\fam\z@\frtnrm}%
+\def\pit{\@getfont\pit\itfam\@xivpt{cmti10\@magscale2}}%
+\def\psl{\@getfont\psl\slfam\@xivpt{cmsl10\@magscale2}}%
+\def\pbf{\fam\bffam\frtnbf}\textfont\bffam\frtnbf
+ \scriptfont\bffam\tenbf \scriptscriptfont\bffam\ninbf
+\def\ptt{\@getfont\ptt\ttfam\@xivpt{cmtt10\@magscale2}\@nohyphens\ptt\@xivpt}%
+\def\psf{\@getfont\psf\sffam\@xivpt{\@mss\@magscale2}}%
+\def\psc{\@getfont\psc\scfam\@xivpt{\@mcsc\@magscale2}}%
+\def\ly{\fam\lyfam\frtnly}\textfont\lyfam\frtnly
+ \scriptfont\lyfam\tenly \scriptscriptfont\lyfam\sevly
+\@setstrut \rm}
+
+\def\@xivpt{}
+
+\def\xviipt{\textfont\z@\svtnrm
+ \scriptfont\z@\twlrm \scriptscriptfont\z@\tenrm
+\textfont\@ne\svtnmi \scriptfont\@ne\twlmi \scriptscriptfont\@ne\tenmi
+\textfont\tw@\svtnsy \scriptfont\tw@\twlsy \scriptscriptfont\tw@\tensy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\svtnmi \textfont\tw@\svtnsy \textfont\lyfam\svtnly
+ \@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\prm{\fam\z@\svtnrm}%
+\def\pit{\@getfont\pit\itfam\@xviipt{cmti10\@magscale3}}%
+\def\psl{\@getfont\psl\slfam\@xviipt{cmsl10\@magscale3}}%
+\def\pbf{\fam\bffam\svtnbf}\textfont\bffam\svtnbf
+ \scriptfont\bffam\twlbf \scriptscriptfont\bffam\tenbf
+\def\ptt{\@getfont\ptt\ttfam\@xviipt{cmtt10\@magscale3}\@nohyphens
+ \ptt\@xviipt}%
+\def\psf{\@getfont\psf\sffam\@xviipt{cmss17}}%
+\def\psc{\@getfont\psc\scfam\@xviipt{\@mcsc\@magscale3}}%
+\def\ly{\fam\lyfam\svtnly}\textfont\lyfam\svtnly
+ \scriptfont\lyfam\twlly \scriptscriptfont\lyfam\tenly
+\@setstrut \rm}
+
+\def\@xviipt{}
+
+\def\xxpt{\textfont\z@\twtyrm
+ \scriptfont\z@\frtnrm \scriptscriptfont\z@\twlrm
+\textfont\@ne\twtymi \scriptfont\@ne\frtnmi \scriptscriptfont\@ne\twlmi
+\textfont\tw@\twtysy \scriptfont\tw@\frtnsy \scriptscriptfont\tw@\twlsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\twtymi \textfont\tw@\twtysy \textfont\lyfam\twtyly
+ \@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\prm{\fam\z@\twtyrm}%
+\def\pit{\@getfont\pit\itfam\@xxpt{cmti10\@magscale4}}%
+\def\psl{\@getfont\psl\slfam\@xxpt{cmsl10\@magscale4}}%
+\def\pbf{\@getfont\pbf\bffam\@xxpt{cmbx10\@magscale4}}%
+\def\ptt{\@getfont\ptt\ttfam\@xxpt{cmtt10\@magscale4}\@nohyphens\ptt\@xxpt}%
+\def\psf{\@getfont\psf\sffam\@xxpt{\@mss\@magscale4}}%
+\def\psc{\@getfont\psc\scfam\@xxpt{\@mcsc\@magscale4}}%
+\def\ly{\fam\lyfam\twtyly}\textfont\lyfam\twtyly
+ \scriptfont\lyfam\frtnly \scriptscriptfont\lyfam\twlly
+\@setstrut \rm}
+
+\def\@xxpt{}
+
+\def\xxvpt{\textfont\z@\twfvrm
+ \scriptfont\z@\twtyrm \scriptscriptfont\z@\svtnrm
+\textfont\@ne\twtymi \scriptfont\@ne\twtymi \scriptscriptfont\@ne\svtnmi
+\textfont\tw@\twtysy \scriptfont\tw@\twtysy \scriptscriptfont\tw@\svtnsy
+\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
+\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
+ \textfont\@ne\twtymi \textfont\tw@\twtysy \textfont\lyfam\twtyly
+ \@boldfalse}\@boldfalse
+\def\boldmath{\@subfont\boldmath\unboldmath}%
+\def\prm{\fam\z@\twfvrm}%
+\def\pit{\@subfont\it\rm}%
+\def\psl{\@subfont\sl\rm}%
+\def\pbf{\@getfont\pbf\bffam\@xxvpt{cmbx10\@magscale5}}%
+\def\ptt{\@subfont\tt\rm}%
+\def\psf{\@subfont\sf\rm}%
+\def\psc{\@subfont\sc\rm}%
+\def\ly{\fam\lyfam\twtyly}\textfont\lyfam\twtyly
+ \scriptfont\lyfam\twtyly \scriptscriptfont\lyfam\svtnly
+\@setstrut \rm}
+
+\def\@xxvpt{}
+
+% SPECIAL LaTeX character definitions
+
+% Definitions of math operators added by LaTeX
+\mathchardef\mho"0A30
+\mathchardef\Join"3A31
+\mathchardef\Box"0A32
+\mathchardef\Diamond"0A33
+\mathchardef\leadsto"3A3B
+\mathchardef\sqsubset"3A3C
+\mathchardef\sqsupset"3A3D
+\def\lhd{\mathbin{< \hbox to -.43em{}\hbox{\vrule
+ \@width .065em \@height .55em \@depth .05em}\hbox to .2em{}}}
+\def\rhd{\mathbin{\hbox to .3em{}\hbox{\vrule \@width .065em \@height
+ .55em \@depth .05em}\hbox to -.43em{}>}}
+\def\unlhd{\mathbin{\leq \hbox to -.43em{}\hbox
+ {\vrule \@width .065em \@height .63em \@depth -.08em}\hbox to .2em{}}}
+\def\unrhd{\mathbin{ \hbox to .3em{}\hbox
+ {\vrule \@width .065em \@height .63em \@depth -.08em}\hbox to -.43em{}\geq}}
+
+% Definition of \$ to work in italic font (since it produces a pound sterling
+% sign in the cmit font.
+
+\def\${\protect\pdollar}
+\def\pdollar{{\ifdim \fontdimen\@ne\font >\z@ \sl \fi\char`\$}}
+
+% Definition of pound sterling sign.
+% Modified 10 Apr 89 to work in math mode.
+
+\def\pounds{\protect\ppounds}
+\def\ppounds{\relax\ifmmode\mathchar"424\else{\it \char'44}\fi}
+
+
+% Definition of \copyright changed so it works in other type styles,
+% and so it is robust
+\def\copyright{\protect\pcopyright}
+\def\pcopyright{{\rm\ooalign{\hfil
+ \raise.07ex\hbox{c}\hfil\crcr\mathhexbox20D}}}
+
+\endinput
diff --git a/fonts/greek/kd/latex/lgreek.3.0c b/fonts/greek/kd/latex/lgreek.3.0c
new file mode 100644
index 0000000000..f5506d2bec
--- /dev/null
+++ b/fonts/greek/kd/latex/lgreek.3.0c
@@ -0,0 +1,415 @@
+%
+% LGREEK.TEX
+% ---------
+%
+% K J Dryllerakis
+%
+% Sep 18, 1991
+%
+% VERSION: 3.0c
+%
+% This is the source file for building the greek format for the
+% kd fsmily of fonts.
+% This is based on Greek.tex
+%
+% Greek is defined to be language 1 or actually last_language+1.
+%
+% Pleaaaaaaaaase don't modify this file
+%
+% Note: Used in conjunction with KD Fonts
+%
+%
+% \input plain% Load the standard macro package
+% For GreekLatex we need to preload the lplain format
+\input lplain%
+%
+% Add some LaTeX Information
+%
+\everyjob{\typeout{Greek LaTeX Version 2.09-3.0[c] <9 Oct 1991>}}
+\immediate\write10{Greek LaTeX Version 2.09-3.0[c] <9 Oct 1991>}
+%
+\message{Greek Definitions:}
+%
+\message{general definitions,}
+%
+\catcode`\@=11 % We will access TeX private macros
+%\newwrite\@screen % Define a screen ouput
+%\def\showstring#1{\immediate\write\@screen{#1}}
+\let\showstring\typeout
+\def\sp@{ }\def\sp@s{\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@}
+\def\c@p{\showstring{}\showstring{\sp@s\sp@s\sp@s GreekTeX -- Version 3.0[c]}%
+\showstring{\sp@s\sp@s\sp@s ---------------------------}
+\showstring{\sp@s GreekTeX is a macro package for typesetting greek texts.}
+\showstring{\sp@s It is maily compatible with the haralambous package,}
+\showstring{\sp@s from which it inherits the top level macros.}
+\showstring{\sp@s GreekTeX includes easy access to font families, a choise}
+\showstring{\sp@s of delimiters, and makes typesetting scientific papers}
+\showstring{\sp@s in greek as easy as in TeX itself.}
+\showstring{\sp@s}
+\showstring{\sp@s\sp@s\sp@s Copyright K J Dryllerakis 1991}
+\showstring{\sp@s\sp@s\sp@s ------------------------------}%
+}
+\c@p
+%
+% A List of Reserved Keywords that should not be redefined
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% a. accesible from the document
+%
+% \| The character |
+% \begingreek Begin a group of greek text
+% \endgreek End a group of greek text
+% \greek A new language definition
+% \gr switch to classical greek font
+% \gbf switch to classical boldface font
+% \git switch to classical italics font
+% \gsl switch to classical slanted font
+% \gtt switch to classical typewritter font
+% \gt Greater than > symbol
+% \lt Less than < symbol
+% \math If we are using $ as del. it is equiv to $
+% \setgreek Select greek mode to be the primary mode
+% \setlatin Restore standard mode (at any stage)
+% \showstring Log a string on the terminal
+%
+% b. Internal Control Sequences
+%
+% \gr@@kdelimsbar Use | as begin- and end-greek
+% \gr@@kdelimsdol Use $ as begin- and end-greek
+% \@ldend A copy of plain TeX's \end
+% \@screen Screen Output for messages
+% \t@f@nt Remembers greek font used last
+% \t@f@m Remembers greek family used last
+% \t@size Remembers greek point size used last
+% \c@p Product Copyright Notice
+% \grfam Greek classic font family register
+% \grslfam Greek slanted font family register
+% \grttfam Greek typewriter font family register
+% \grbffam Greek boldface font family register
+% \grifam Greek italics font family register
+% \l@tinm@de Definition to restore plain TeX's mode
+%
+% Start Up Definitions
+% --------------------
+%
+\ifx\gr@@kformatloaded\relax\catcode`\@=\active%
+ \endinput\else\let\gr@@kformatloaded\relax\fi
+\newif\ifdelimsbar\delimsbarfalse % Check for | as delimiter
+\chardef\|=`\| % A way to access |
+\gdef\t@f@nt{\gr} % Remember font used last
+%\gdef\t@size{\grtenpoint} % Remember size used last
+%
+\gdef\t@f@m{\fam\grfam} % Remember family used last
+% ^ THESE ARE INITIAL VALUES. DO NOT ALTER!
+\newlanguage\greek % Define Greek as a new language
+\def\lt{<} % Remember Less than
+\def\gt{>} % and greater than signs
+\language0 % Switch to default language
+%
+\message{fonts,}
+%
+\input grfonts.tex
+%
+% Greek Font Bits
+% _______________
+%
+% First we load the greek fonts and declare the families
+% Then we define point sizes for typesetting greek texts
+%
+% Classic Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+%\newfam\grfam
+%\font\tengr=kdgr10 % 10 point Classic Greek Font
+%\font\ninegr=kdgr9 % 9 point Classic Greek Font
+%\font\eightgr=kdgr8 % 8 point Classic Greek Font
+%\font\sixgr=kdgr8 at 6truept % 6 point simulated Classic Greek (x.75)
+%\def\gr{\tengr\fam\grfam}
+%%
+% Slanted Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+%\newfam\grslfam
+%\font\tengrsl=kdsl10 % 10 Point Slanted Greek Font
+%\font\ninegrsl=kdsl10 at 9truept% 9 point (sim.) Slanted Greek
+%\font\eightgrsl=kdsl10 at 8truept%8 point (sim.) Slanted Greek
+%\def\gsl{\tengrsl\fam\grslfam}
+%%
+% Boldface Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^
+%\newfam\grbffam
+%\font\tengrbf=kdbf10 % 10 Point Boldface Greek Font
+%\font\ninegrbf=kdbf10 at 9truept% 9 Point (sim.) Boldface Greek
+%\font\eightgrbf=kdbf10 at 8truept% 8 Point (sim.) Boldface Greek
+%\def\gbf{\tengrbf\fam\grbffam}
+%
+% Italic Greek Family
+% ^^^^^^^^^^^^^^^^^^^
+%\newfam\grifam
+%\font\tengri=kdti10 % 10 Point Italic Greek Font
+%\font\ninegri=kdti10 at 9truept % 9 Point (sim.) Italic Greek
+%\font\eightgri=kdti10 at 8truept% 8 Point (sim.) Italic Greek
+%\def\git{\tengri\fam\grifam}
+%
+% Typerwriter Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^^^^
+%\newfam\grttfam
+%\font\tengrtt=kdtt10 % 10 Point Typewritter Greek Font
+%\font\ninegrtt=kdtt10 at 9truept% 9 Point (sim.) Typewritter Greek
+%\font\eightgrtt=kdtt10 at 8truept% 8 Point (sim.) Typewritter Greek
+%\hyphenchar\eightgrtt=-1 \hyphenchar\tengrtt=-1
+%\hyphenchar\ninegrtt=-1 % Supress Hyphenation
+%\def\gtt{\tengrtt\fam\grttfam}
+%
+% Greek Point Size Conventions
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+%\def\grtenpoint{% GREEK TENPOINT
+%\gdef\t@size{\grtenpoint}% Make a note of the font size
+%\textfont\grfam=\tengr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+%\textfont\grbffam=\tengrbf\scriptfont\grbffam=\ninegrbf%
+%\textfont\grifam=\tengri\scriptfont\grbffam=\ninegri%
+%\textfont\grttfam=\tengrtt%
+%\textfont\grslfam=\tengrsl%
+%\def\gr{\fam\grfam\tengr}% Switch for classic greek
+%\let\rg\gr% Also rg for compatibility
+%\def\it{\fam\grifam\tengri}% Switch for Greek Italics
+%\def\sl{\fam\grslfam\tengrsl}% Switch for Greek Slanted
+%\def\tt{\fam\grttfam\tengrtt}% Switch for Greek Typerwriter
+%\def\bf{\fam\grbffam\tengrbf}% Switch for Greek Boldface
+%\let\git\it\let\gsl\sl%
+%\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+%\def\rm{\fam0\tenrm}% Switch For latin roman
+%\def\lit{\fam\itfam\tenit}% Switch for latin italics
+%\def\lsl{\fam\slfam\tensl}% Switch for latin slanted
+%\def\ltt{\fam\ttfam\tentt}% Switch for latin typewriter
+%\def\lbf{\fam\bffam\tenbf}% Switch for latin boldface
+%\normalbaselineskip=.6cm% Normal Base Line distance
+%\setbox\strutbox=\hbox{\vrule height8.5pt width0pt depth4.5pt}%
+%\normalbaselines\gr%
+%}
+%\def\grninepoint{% GREEK NINEPOINT
+%\%gdef\t@size{\grninepoint}% Make a note of the font size
+%\textfont\grfam=\ninegr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+%\textfont\grbffam=\ninegrbf\scriptfont\grbffam=\eightgrbf%
+%\%textfont\grifam=\ninegri\scriptfont\grbffam=\eightgri%
+%\textfont\grttfam=\ninegrtt%
+%\textfont\grslfam=\ninegrsl%
+%\def\gr{\fam\grfam\ninegr}% Switch for classic greek
+%\let\rg\gr% Also rg for compatibility
+%\def\it{\fam\grifam\ninegri}% Switch for Greek Italics
+%\def\sl{\fam\grslfam\ninegrsl}% Switch for Greek Slanted
+%\def\tt{\fam\grttfam\ninegrtt}% Switch for Greek Typerwriter
+%\def\bf{\fam\grbffam\ninegrbf}% Switch for Greek Boldface
+%\let\git\it\let\gsl\sl%
+%\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+%\def\rm{\fam0\tenrm}% Switch For latin roman
+%\def\lit{\fam\itfam\nineit}% Switch for latin italics
+%\def\lsl{\fam\slfam\ninesl}% Switch for latin slanted
+%\def\ltt{\fam\ttfam\ninett}% Switch for latin typewriter
+%\def\lbf{\fam\bffam\ninebf}% Switch for latin boldface
+%\normalbaselineskip=.52cm% Normal Base Line distance
+%\setbox\strutbox=\hbox{\vrule height8pt width0pt depth3pt}%
+%\normalbaselines\gr%
+%}
+%\def\greightpoint{% GREEK EIGHTPOINT
+%\gdef\t@size{\greightpoint}% Make a note of the font size
+%\textfont\grfam=\eightgr\scriptfont\grfam=\sixgr\scriptscriptfont\grfam=\sixgr%
+%\textfont\grbffam=\eightgrbf\scriptfont\grbffam=\eightgrbf%
+%\textfont\grifam=\eightgri\scriptfont\grbffam=\eightgri%
+%\textfont\grttfam=\eightgrtt%
+%\textfont\grslfam=\eightgrsl%
+%\def\gr{\fam\grfam\eightgr}% Switch for classic greek
+%\let\rg\gr% Also rg for compatibility
+%\def\it{\fam\grifam\eightgri}% Switch for Greek Italics
+%\def\sl{\fam\grslfam\eightgrsl}% Switch for Greek Slanted
+%\def\tt{\fam\grttfam\eightgrtt}% Switch for Greek Typerwriter
+%\def\bf{\fam\grbffam\eightgrbf}% Switch for Greek Boldface
+%\let\git\it\let\gsl\sl%
+%\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+%\def\rm{\fam0\eightrm}% Switch For latin roman
+%\def\lit{\fam\itfam\eightit}% Switch for latin italics
+%\def\lsl{\fam\slfam\eightsl}% Switch for latin slanted
+%\def\ltt{\fam\ttfam\eighttt}% Switch for latin typewriter
+%\def\lbf{\fam\bffam\eightbf}% Switch for latin boldface
+%\normalbaselineskip=.35cm% Normal Base Line distance
+%\setbox\strutbox=\hbox{\vrule height7pt width0pt depth2pt}%
+%\normalbaselines\gr%
+%}
+%%
+%% Hyphenation Patterns
+%% ^^^^^^^^^^^^^^^^^^^^
+\message{hyphenation,}
+%
+{\language\greek
+\lefthyphenmin=2 \righthyphenmin=2 % disallow x- or -x breaks
+\def\lt{<}%
+\def\gt{>}%
+\catcode`\|=11%
+\catcode`\<=11%
+\catcode`\>=11%
+\catcode`\'=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+\lccode`\|=`\|%
+%
+\input grkhyphen%
+\catcode`\~=13%
+}
+%
+\def\showgreekhyphens#1{{\setbox0\vbox{\parfillskip\z@skip\hsize\maxdimen%
+\language\greek\tengr\pretolerance\m@ne\hbadness0\showboxdepth0\ #1}}}
+%
+%
+\message{miscellaneous macros}
+%
+% Macros For entering greek mode,
+% and delimiter preferences.
+% -------------------------------
+%
+% \begingreek : Begin a group of Greek Text.
+% ^^^^^^^^^^^^ Everything is enclosed in a group to keep
+% changes local. Then we switch to greek hyphenation
+% and iniciate the greekmode. This assigns the correct
+% \catcode values to punctuation and accentuation marks.
+% We then reload the information of the point
+% size used last and switch to the family needed.
+% The \t@f@nt and \t@f@m macro is used to ensure that
+% or fonts and families are remembered.
+%
+% \endgreek : Ends a group of Greek Text.
+% ^^^^^^^^^^ Before ending the group we save information
+% about the current font, to be used when we re-enter
+% greek mode.
+%
+% \gr@@km@de : Switches to greek interpretation of ascii characters
+% ^^^^^^^^^^^ Normally changes are kept local but can be used
+% as a general macro to obtain a global greek mode.
+% Note the different use of | if this is chosen
+% to be a delimiter.
+%
+%\def\begingreek{\bgroup\language\greek\gr@@km@de%
+%\t@size\t@f@m\t@f@nt\ignorespaces}
+% We add the currentsize info
+%\def\endgreek{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}%
+%\xdef\t@size{\@currsize}\egroup}
+%
+% Create a new LaTeX Environment
+%
+\newenvironment{greektext}{\language\greek\gr@@km@de%
+\t@f@m\t@f@nt\ignorespaces}%
+{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}}
+
+\def\gr@@km@de{%
+\ifdelimsbar\else\catcode`\|=11\fi%
+\catcode`\<=11% Turn Everything to letters!
+\catcode`\>=11% All accents are done through ligatures
+\catcode`\'=11%
+\catcode`\`=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+}
+%
+\def\l@tinm@de{%
+\catcode`\|=12%
+\catcode`\<=12% Turn Everything to what plain tex has
+\catcode`\>=12%
+\catcode`\'=12%
+\catcode`\`=12%
+\catcode`\~=13%
+\catcode`\"=12%
+\catcode`\$=3% % Restore the math symbol!
+}
+%
+% Switch Permenantly do greek mode
+%
+\def\setgreek{\delimsbarfalse\gr@@km@de\language\greek}
+%
+% and to latin as well
+%
+\def\setlatin{\l@tinm@de\language0}
+%
+% It is very frequent that the user will ask to \end the document
+% before a greek group was closed. In order to prevent this we
+% redefine the \end command after saving the old one in \@ldend.
+% The new \end checks for un-ended greek groups and if it is found
+% a warning message is issued and the group is automatically closed.
+%
+% LaTeX: This is not needed in Latex since the greek environment is
+% defined to be a LaTeX Environment so that Latex takes care of that.
+%\let\@ldend=\end
+%\gdef\end{\ifnum\language=\greek\endgreek%
+%\showstring{GreekTeX Warning: A group of greek text was automatically closed}%
+%\fi\@ldend}
+%
+% Since it is possible that switching from one language to
+% the other is very frequent, a special way to avoid \begingreek
+% and \endgreek is defined. This is done through the definition of
+% delimiters; available delims are | and $. If \greekdelims{bar}
+% is chosen then a greek block is marked as | ..greek text.. |
+% In order to access |, use \|.
+% If $ is used, use \math for math mode and \math\math for
+% display mode.
+%
+\gdef\greekdelims#1{\edef\c@mp@re{#1}\def\t@st@a{bar}\def\t@st@b{dollar}%
+\ifx\c@mp@re\t@st@a\gr@@kdelimsbar\else%
+\ifx\c@mp@re\t@st@b\gr@@kdelimsdol\fi\fi}
+%
+% Bar as delimeter
+%
+{\catcode`\|=13\gdef\gr@@kdelimsbar{\catcode`\|=13\delimsbartrue%
+\def|{\ifnum\language=\greek\end{greektext}\else\begin{greektext}\fi}}
+}
+%
+% Dollar as delimiter
+%
+\let\m@thm@de=$
+{\catcode`\$=13%
+\gdef\gr@@kdelimsdol{\catcode`\$=13%
+\def${\ifnum\language=\greek\end{greektext}\else\begin{greektext}\fi}%
+\global\let\math=\m@thm@de%
+\gdef\display{\math\math}\gdef\enddisplay{\math\math}}%
+}
+
+% Here we define some handy LaTeX Use macros
+\message{LaTeX greek macros,}
+%
+% List Enumeration. For more details see the LaTeX explanations
+%
+\def\alphgr#1{\@alph{\@nameuse{c@#1}}}
+\def\Alphgr#1{\@Alph{\@nameuse{c@#1}}}
+
+\def\@alphgr#1{\ifcase#1\or a\or b\or g\or d\else\@ialphgr{#1}\fi}
+\def\@ialphgr#1{\ifcase#1\or \or \or \or \or e\or st\or z\or h\or j\or i\or
+ k\or l\or m\or n\or x\or o\or p\or r\or s\or t\or u\or f\or q\or y\or
+ w\else\@ctrerr\fi}
+\def\@Alphgr#1{\ifcase#1\or A\or B\or G\or D\else\@Ialphgr{#1}\fi}
+\def\@Ialphgr#1{\ifcase#1\or \or \or \or \or E\or ST\or Z\or H\or J\or I\or
+ K\or L\or M\or N\or X\or O\or P\or R\or S\or T\or U\or F\or Q\or Y\or
+ W\else\@ctrerr\fi}
+
+
+
+
+
+
+\catcode`\@=12 % at signs are no longer letters
+
+%
+\def\fmtname{lgreek}\def\fmtversion{LaTeX 2.09 - Greek 3.0[c]} % identifies the current format
+
+\message{version \fmtversion .)}
+
+
+
+
+
+
diff --git a/fonts/greek/kd/latex/lgreek.tex b/fonts/greek/kd/latex/lgreek.tex
new file mode 100644
index 0000000000..29effd2148
--- /dev/null
+++ b/fonts/greek/kd/latex/lgreek.tex
@@ -0,0 +1,410 @@
+%
+% LGREEK.TEX
+% ---------
+%
+% K J Dryllerakis
+%
+% Dec 7, 1992
+%
+% VERSION: 3.1
+%
+% This is the source file for building the greek format for the
+% kd family of fonts.
+% This is based on Greek.tex
+%
+% Greek is defined to be language 1 or actually last_language+1.
+%
+% Pleaaaaaaaaase don't modify this file
+%
+% Note: Used in conjunction with KD Fonts
+%
+% Revision History:
+% VERSION 3.1
+% Level a. Official Release
+% Ver 3.0
+% Level c. Official Release
+% Level d. Corrected alphgr mistake (KJD 2.11.91)
+%
+%
+% \input plain% Load the standard macro package
+% For GreekLatex we need to preload the lplain format
+\input lplain%
+%
+% Add some LaTeX Information
+%
+\everyjob{\typeout{Greek LaTeX Version 2.09-3.1 <7 Dec 1992>}}
+\immediate\write10{Greek LaTeX Version 2.09-3.1 <7 Dec 1992>}
+%
+\message{Greek Definitions:}
+%
+\message{general definitions,}
+%
+\catcode`\@=11 % We will access TeX private macros
+%\newwrite\@screen % Define a screen ouput
+%\def\showstring#1{\immediate\write\@screen{#1}}
+\let\showstring\typeout
+\def\sp@{ }\def\sp@s{\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@}
+\def\c@p{\showstring{}\showstring{\sp@s\sp@s\sp@s GreekTeX -- Version 3.1}%
+\showstring{\sp@s\sp@s\sp@s ---------------------------}
+\showstring{\sp@s GreekTeX is a macro package for typesetting greek texts.}
+\showstring{\sp@s It is maily compatible with the haralambous package,}
+\showstring{\sp@s from which it inherits the top level macros.}
+\showstring{\sp@s GreekTeX includes easy access to font families, a choise}
+\showstring{\sp@s of delimiters, and makes typesetting scientific papers}
+\showstring{\sp@s in greek as easy as in TeX itself.}
+\showstring{\sp@s}
+\showstring{\sp@s\sp@s\sp@s Copyright K J Dryllerakis 1991-1992}
+\showstring{\sp@s\sp@s\sp@s ------------------------------}%
+}
+\c@p
+%
+% A List of Reserved Keywords that should not be redefined
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% a. accesible from the document
+%
+% \| The character |
+% \begingreek Begin a group of greek text
+% \endgreek End a group of greek text
+% \greek A new language definition
+% \gr switch to classical greek font
+% \gbf switch to classical boldface font
+% \git switch to classical italics font
+% \gsl switch to classical slanted font
+% \gtt switch to classical typewritter font
+% \gt Greater than > symbol
+% \lt Less than < symbol
+% \math If we are using $ as del. it is equiv to $
+% \setgreek Select greek mode to be the primary mode
+% \setlatin Restore standard mode (at any stage)
+% \showstring Log a string on the terminal
+%
+% b. Internal Control Sequences
+%
+% \gr@@kdelimsbar Use | as begin- and end-greek
+% \gr@@kdelimsdol Use $ as begin- and end-greek
+% \@ldend A copy of plain TeX's \end
+% \@screen Screen Output for messages
+% \t@f@nt Remembers greek font used last
+% \t@f@m Remembers greek family used last
+% \t@size Remembers greek point size used last
+% \c@p Product Copyright Notice
+% \grfam Greek classic font family register
+% \grslfam Greek slanted font family register
+% \grttfam Greek typewriter font family register
+% \grbffam Greek boldface font family register
+% \grifam Greek italics font family register
+% \l@tinm@de Definition to restore plain TeX's mode
+%
+% Start Up Definitions
+% --------------------
+%
+\ifx\gr@@kformatloaded\relax\catcode`\@=\active%
+ \endinput\else\let\gr@@kformatloaded\relax\fi
+\newif\ifdelimsbar\delimsbarfalse % Check for | as delimiter
+\chardef\|=`\| % A way to access |
+\gdef\t@f@nt{\gr} % Remember font used last
+%\gdef\t@size{\grtenpoint} % Remember size used last
+%
+\gdef\t@f@m{\fam\grfam} % Remember family used last
+% ^ THESE ARE INITIAL VALUES. DO NOT ALTER!
+\newlanguage\greek % Define Greek as a new language
+\def\lt{<} % Remember Less than
+\def\gt{>} % and greater than signs
+\language0 % Switch to default language
+%
+\message{fonts,}
+%
+\input grfonts.tex
+%
+% Greek Font Bits
+% _______________
+%
+% First we load the greek fonts and declare the families
+% Then we define point sizes for typesetting greek texts
+%
+% Classic Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+%\newfam\grfam
+%\font\tengr=kdgr10 % 10 point Classic Greek Font
+%\font\ninegr=kdgr9 % 9 point Classic Greek Font
+%\font\eightgr=kdgr8 % 8 point Classic Greek Font
+%\font\sixgr=kdgr8 at 6truept % 6 point simulated Classic Greek (x.75)
+%\def\gr{\tengr\fam\grfam}
+%%
+% Slanted Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+%\newfam\grslfam
+%\font\tengrsl=kdsl10 % 10 Point Slanted Greek Font
+%\font\ninegrsl=kdsl10 at 9truept% 9 point (sim.) Slanted Greek
+%\font\eightgrsl=kdsl10 at 8truept%8 point (sim.) Slanted Greek
+%\def\gsl{\tengrsl\fam\grslfam}
+%%
+% Boldface Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^
+%\newfam\grbffam
+%\font\tengrbf=kdbf10 % 10 Point Boldface Greek Font
+%\font\ninegrbf=kdbf10 at 9truept% 9 Point (sim.) Boldface Greek
+%\font\eightgrbf=kdbf10 at 8truept% 8 Point (sim.) Boldface Greek
+%\def\gbf{\tengrbf\fam\grbffam}
+%
+% Italic Greek Family
+% ^^^^^^^^^^^^^^^^^^^
+%\newfam\grifam
+%\font\tengri=kdti10 % 10 Point Italic Greek Font
+%\font\ninegri=kdti10 at 9truept % 9 Point (sim.) Italic Greek
+%\font\eightgri=kdti10 at 8truept% 8 Point (sim.) Italic Greek
+%\def\git{\tengri\fam\grifam}
+%
+% Typerwriter Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^^^^
+%\newfam\grttfam
+%\font\tengrtt=kdtt10 % 10 Point Typewritter Greek Font
+%\font\ninegrtt=kdtt10 at 9truept% 9 Point (sim.) Typewritter Greek
+%\font\eightgrtt=kdtt10 at 8truept% 8 Point (sim.) Typewritter Greek
+%\hyphenchar\eightgrtt=-1 \hyphenchar\tengrtt=-1
+%\hyphenchar\ninegrtt=-1 % Supress Hyphenation
+%\def\gtt{\tengrtt\fam\grttfam}
+%
+% Greek Point Size Conventions
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+%\def\grtenpoint{% GREEK TENPOINT
+%\gdef\t@size{\grtenpoint}% Make a note of the font size
+%\textfont\grfam=\tengr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+%\textfont\grbffam=\tengrbf\scriptfont\grbffam=\ninegrbf%
+%\textfont\grifam=\tengri\scriptfont\grbffam=\ninegri%
+%\textfont\grttfam=\tengrtt%
+%\textfont\grslfam=\tengrsl%
+%\def\gr{\fam\grfam\tengr}% Switch for classic greek
+%\let\rg\gr% Also rg for compatibility
+%\def\it{\fam\grifam\tengri}% Switch for Greek Italics
+%\def\sl{\fam\grslfam\tengrsl}% Switch for Greek Slanted
+%\def\tt{\fam\grttfam\tengrtt}% Switch for Greek Typerwriter
+%\def\bf{\fam\grbffam\tengrbf}% Switch for Greek Boldface
+%\let\git\it\let\gsl\sl%
+%\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+%\def\rm{\fam0\tenrm}% Switch For latin roman
+%\def\lit{\fam\itfam\tenit}% Switch for latin italics
+%\def\lsl{\fam\slfam\tensl}% Switch for latin slanted
+%\def\ltt{\fam\ttfam\tentt}% Switch for latin typewriter
+%\def\lbf{\fam\bffam\tenbf}% Switch for latin boldface
+%\normalbaselineskip=.6cm% Normal Base Line distance
+%\setbox\strutbox=\hbox{\vrule height8.5pt width0pt depth4.5pt}%
+%\normalbaselines\gr%
+%}
+%\def\grninepoint{% GREEK NINEPOINT
+%\%gdef\t@size{\grninepoint}% Make a note of the font size
+%\textfont\grfam=\ninegr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+%\textfont\grbffam=\ninegrbf\scriptfont\grbffam=\eightgrbf%
+%\%textfont\grifam=\ninegri\scriptfont\grbffam=\eightgri%
+%\textfont\grttfam=\ninegrtt%
+%\textfont\grslfam=\ninegrsl%
+%\def\gr{\fam\grfam\ninegr}% Switch for classic greek
+%\let\rg\gr% Also rg for compatibility
+%\def\it{\fam\grifam\ninegri}% Switch for Greek Italics
+%\def\sl{\fam\grslfam\ninegrsl}% Switch for Greek Slanted
+%\def\tt{\fam\grttfam\ninegrtt}% Switch for Greek Typerwriter
+%\def\bf{\fam\grbffam\ninegrbf}% Switch for Greek Boldface
+%\let\git\it\let\gsl\sl%
+%\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+%\def\rm{\fam0\tenrm}% Switch For latin roman
+%\def\lit{\fam\itfam\nineit}% Switch for latin italics
+%\def\lsl{\fam\slfam\ninesl}% Switch for latin slanted
+%\def\ltt{\fam\ttfam\ninett}% Switch for latin typewriter
+%\def\lbf{\fam\bffam\ninebf}% Switch for latin boldface
+%\normalbaselineskip=.52cm% Normal Base Line distance
+%\setbox\strutbox=\hbox{\vrule height8pt width0pt depth3pt}%
+%\normalbaselines\gr%
+%}
+%\def\greightpoint{% GREEK EIGHTPOINT
+%\gdef\t@size{\greightpoint}% Make a note of the font size
+%\textfont\grfam=\eightgr\scriptfont\grfam=\sixgr\scriptscriptfont\grfam=\sixgr%
+%\textfont\grbffam=\eightgrbf\scriptfont\grbffam=\eightgrbf%
+%\textfont\grifam=\eightgri\scriptfont\grbffam=\eightgri%
+%\textfont\grttfam=\eightgrtt%
+%\textfont\grslfam=\eightgrsl%
+%\def\gr{\fam\grfam\eightgr}% Switch for classic greek
+%\let\rg\gr% Also rg for compatibility
+%\def\it{\fam\grifam\eightgri}% Switch for Greek Italics
+%\def\sl{\fam\grslfam\eightgrsl}% Switch for Greek Slanted
+%\def\tt{\fam\grttfam\eightgrtt}% Switch for Greek Typerwriter
+%\def\bf{\fam\grbffam\eightgrbf}% Switch for Greek Boldface
+%\let\git\it\let\gsl\sl%
+%\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+%\def\rm{\fam0\eightrm}% Switch For latin roman
+%\def\lit{\fam\itfam\eightit}% Switch for latin italics
+%\def\lsl{\fam\slfam\eightsl}% Switch for latin slanted
+%\def\ltt{\fam\ttfam\eighttt}% Switch for latin typewriter
+%\def\lbf{\fam\bffam\eightbf}% Switch for latin boldface
+%\normalbaselineskip=.35cm% Normal Base Line distance
+%\setbox\strutbox=\hbox{\vrule height7pt width0pt depth2pt}%
+%\normalbaselines\gr%
+%}
+%%
+%% Hyphenation Patterns
+%% ^^^^^^^^^^^^^^^^^^^^
+\message{hyphenation,}
+%
+{\language\greek
+\lefthyphenmin=2 \righthyphenmin=2 % disallow x- or -x breaks
+\def\lt{<}%
+\def\gt{>}%
+\catcode`\|=11%
+\catcode`\<=11%
+\catcode`\>=11%
+\catcode`\'=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+\lccode`\|=`\|%
+%
+\input grkhyphen%
+\catcode`\~=13%
+}
+%
+\def\showgreekhyphens#1{{\setbox0\vbox{\parfillskip\z@skip\hsize\maxdimen%
+\language\greek\tengr\pretolerance\m@ne\hbadness0\showboxdepth0\ #1}}}
+%
+%
+\message{miscellaneous macros}
+%
+% Macros For entering greek mode,
+% and delimiter preferences.
+% -------------------------------
+%
+% \begingreek : Begin a group of Greek Text.
+% ^^^^^^^^^^^^ Everything is enclosed in a group to keep
+% changes local. Then we switch to greek hyphenation
+% and iniciate the greekmode. This assigns the correct
+% \catcode values to punctuation and accentuation marks.
+% We then reload the information of the point
+% size used last and switch to the family needed.
+% The \t@f@nt and \t@f@m macro is used to ensure that
+% or fonts and families are remembered.
+%
+% \endgreek : Ends a group of Greek Text.
+% ^^^^^^^^^^ Before ending the group we save information
+% about the current font, to be used when we re-enter
+% greek mode.
+%
+% \gr@@km@de : Switches to greek interpretation of ascii characters
+% ^^^^^^^^^^^ Normally changes are kept local but can be used
+% as a general macro to obtain a global greek mode.
+% Note the different use of | if this is chosen
+% to be a delimiter.
+%
+%\def\begingreek{\bgroup\language\greek\gr@@km@de%
+%\t@size\t@f@m\t@f@nt\ignorespaces}
+% We add the currentsize info
+%\def\endgreek{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}%
+%\xdef\t@size{\@currsize}\egroup}
+%
+% Create a new LaTeX Environment
+%
+\newenvironment{greektext}{\language\greek\gr@@km@de%
+\t@f@m\t@f@nt\ignorespaces}%
+{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}}
+
+\def\gr@@km@de{%
+\ifdelimsbar\else\catcode`\|=11\fi%
+\catcode`\<=11% Turn Everything to letters!
+\catcode`\>=11% All accents are done through ligatures
+\catcode`\'=11%
+\catcode`\`=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+}
+%
+\def\l@tinm@de{%
+\catcode`\|=12%
+\catcode`\<=12% Turn Everything to what plain tex has
+\catcode`\>=12%
+\catcode`\'=12%
+\catcode`\`=12%
+\catcode`\~=13%
+\catcode`\"=12%
+\catcode`\$=3% % Restore the math symbol!
+}
+%
+% Switch Permenantly do greek mode
+%
+\def\setgreek{\delimsbarfalse\gr@@km@de\language\greek}
+%
+% and to latin as well
+%
+\def\setlatin{\l@tinm@de\language0}
+%
+% It is very frequent that the user will ask to \end the document
+% before a greek group was closed. In order to prevent this we
+% redefine the \end command after saving the old one in \@ldend.
+% The new \end checks for un-ended greek groups and if it is found
+% a warning message is issued and the group is automatically closed.
+%
+% LaTeX: This is not needed in Latex since the greek environment is
+% defined to be a LaTeX Environment so that Latex takes care of that.
+%\let\@ldend=\end
+%\gdef\end{\ifnum\language=\greek\endgreek%
+%\showstring{GreekTeX Warning: A group of greek text was automatically closed}%
+%\fi\@ldend}
+%
+% Since it is possible that switching from one language to
+% the other is very frequent, a special way to avoid \begingreek
+% and \endgreek is defined. This is done through the definition of
+% delimiters; available delims are | and $. If \greekdelims{bar}
+% is chosen then a greek block is marked as | ..greek text.. |
+% In order to access |, use \|.
+% If $ is used, use \math for math mode and \math\math for
+% display mode.
+%
+\gdef\greekdelims#1{\edef\c@mp@re{#1}\def\t@st@a{bar}\def\t@st@b{dollar}%
+\ifx\c@mp@re\t@st@a\gr@@kdelimsbar\else%
+\ifx\c@mp@re\t@st@b\gr@@kdelimsdol\fi\fi}
+%
+% Bar as delimeter
+%
+{\catcode`\|=13\gdef\gr@@kdelimsbar{\catcode`\|=13\delimsbartrue%
+\def|{\ifnum\language=\greek\end{greektext}\else\begin{greektext}\fi}}
+}
+%
+% Dollar as delimiter
+%
+\let\m@thm@de=$
+{\catcode`\$=13%
+\gdef\gr@@kdelimsdol{\catcode`\$=13%
+\def${\ifnum\language=\greek\end{greektext}\else\begin{greektext}\fi}%
+\global\let\math=\m@thm@de%
+\gdef\display{\math\math}\gdef\enddisplay{\math\math}}%
+}
+
+% Here we define some handy LaTeX Use macros
+\message{LaTeX greek macros,}
+%
+% List Enumeration. For more details see the LaTeX explanations
+%
+\def\alphgr#1{\@alphgr{\@nameuse{c@#1}}}
+\def\Alphgr#1{\@Alphgr{\@nameuse{c@#1}}}
+
+\def\@alphgr#1{\ifcase#1\or a\or b\or g\or d\else\@ialphgr{#1}\fi}
+\def\@ialphgr#1{\ifcase#1\or \or \or \or \or e\or st\or z\or h\or j\or i\or
+ k\or l\or m\or n\or x\or o\or p\or r\or s\or t\or u\or f\or q\or y\or
+ w\else\@ctrerr\fi}
+\def\@Alphgr#1{\ifcase#1\or A\or B\or G\or D\else\@Ialphgr{#1}\fi}
+\def\@Ialphgr#1{\ifcase#1\or \or \or \or \or E\or ST\or Z\or H\or J\or I\or
+ K\or L\or M\or N\or X\or O\or P\or R\or S\or T\or U\or F\or Q\or Y\or
+ W\else\@ctrerr\fi}
+
+\catcode`\@=12 % at signs are no longer letters
+%
+\def\fmtname{lgreek}\def\fmtversion{LaTeX 2.09 - Greek 3.1} % identifies the current format
+
+\message{version \fmtversion .)}
diff --git a/fonts/greek/kd/mf/kdaccent.mf b/fonts/greek/kd/mf/kdaccent.mf
new file mode 100644
index 0000000000..6ac1114a8b
--- /dev/null
+++ b/fonts/greek/kd/mf/kdaccent.mf
@@ -0,0 +1,489 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Font Accents
+% KDACCENT.MF: defines all Greek diacritic marks.
+%
+% K J Dryllerakis May 1991. Code based on Haralambous Package.
+%
+if one_accent: gen_acc:=0; else: gen_acc:=1; fi
+def acc_corr=0 enddef;
+def separator=
+ if one_accent :
+ max(1,vround(1/12x_height))
+ else:
+ max(1,vround(1/20x_height))
+ fi
+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 one_accent:
+ generate_universal(center);
+ else:
+ 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);
+ fi
+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 corr_circumflex(expr center,corr)=
+ if one_accent:
+ generate_universal(center);
+ else:
+ w:=w+corr;
+ generate_circumflex(center,false);
+ w:=w-corr;
+ fi
+enddef;
+
+def circumflex(expr center)=
+ if one_accent:
+ generate_universal(center);
+ else:
+ if italics: w:= w + acc_corr; fi
+ generate_circumflex(center,false); % variable `squeeze'
+ if italics: w:=wi-acc_corr; fi
+ fi
+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;
+ 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)=
+ if italics: w:= w + acc_corr; fi
+ generate_circumflex(center,true);
+ if italics: w:=w-acc_corr; fi
+ 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 y32l<base: y32l:=min(y32r-eps,base+.5currentbreadth); fi
+ y31=.5[y32l,y32r];
+ pos33(dot_diam,0); penpos34(y32r-y32l,90); y33=y34=y31; x33=x34;
+ if sep>0 : 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=
+ if one_accent:
+ ;
+ else:
+ 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);
+ fi
+enddef;
+
+vardef spirit_acute(expr center) text type =
+ if one_accent:
+ generate_universal(center);
+ else:
+ 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);
+ 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);
+ fi
+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=
+ if one_accent:
+ generate_universal(center);
+ else:
+ if italics: w:= w + acc_corr; fi
+ generate_circumflex(center,true);
+ if italics: w:=w-acc_corr; fi
+ 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);
+ fi
+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;
+ %
+ % edw arqizei to diko mou
+ %
+ % z54=z52;x53=x54+0.5(y51-y54); y53=y54;
+ % pos54(stem,90); pos53(stem,90);
+ % filldraw circ_stroke z54e---z53e;
+ % lft x55=0.5(rt x52+x52); bot y55=0.5(y52-bot y52)+y52;
+ % x56=x55;top y56=y51; pos55(stem,180); pos56(stem,180);
+ % unfilldraw circ_stroke z55e--z56e;
+ %
+ 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;
+
+vardef generate_universal(expr center)=
+ x91=center+.15u;x94=center-.15u;
+ y91=y94=x_height+1.5separator;
+ x92=x91+.3univ_acc_breadth*(body_height-x_height);
+ x93=x91-.3univ_acc_breadth*(body_height-x_height);
+ y93=y92=y91+univ_acc_breadth*(body_height-x_height);
+ fill z91--z92--z93--z94--cycle;
+enddef;
+
+vardef universal(expr center)=
+ generate_universal(center);
+enddef;
+
+vardef diaeresis_universal(expr center)=
+ x91=center;
+ y91=x_height+separator+dot_size;
+ x92=x91+.5univ_acc_breadth*(body_height-x_height);
+ x93=x91-.5univ_acc_breadth*(body_height-x_height);
+ y93=y92=y91+.866univ_acc_breadth*(body_height-x_height);
+ fill z91--z92--z93--cycle;
+ generate_diaeresis(center,dot_size,
+ 1.3univ_acc_breadth*(body_height-x_height),.6[h,x_height],
+ x_height+separator);
+enddef;
+
+%
+% Generate the Accents
+%
+cmchar "Acute accent";
+beginchar("'",9u#,acc_ht#,0);
+ adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ acute(.5w);
+ fi
+endchar;
+%
+cmchar "Grave accent";
+beginchar("`",9u#,acc_ht#,0);
+ adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ grave(.5w);
+ fi
+endchar;
+%
+cmchar "Circumflex accent";
+beginchar("~",9u#,circ_ht#,0);
+ adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ circumflex(.5w);
+ fi
+endchar;
+%
+
+cmchar "Rough breathing";
+if one_accent:
+ beginchar("<",.1u#,acc_ht#,0);
+ adjust_fit(0,0);
+else:
+ beginchar("<",9u#,acc_ht#,0);
+ adjust_fit(0,0);spirit(.5w)<;
+fi
+endchar;
+
+cmchar "Rough breathing with grave";
+beginchar(oct"001",9u#,acc_ht#,0);
+ adjust_fit(0,0);
+ spirit_grave(.5w)<;
+endchar;
+%
+cmchar "Rough breathing with acute";
+beginchar(oct"126",9u#,acc_ht#,0);
+ adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ spirit_acute(.5w)<;
+ fi
+endchar;
+
+cmchar "Rough breathing with circumflex";
+beginchar(oct"100",9u#,acc_ht#,0);
+adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ spirit_circumflex(.5w)<;
+ fi
+endchar;
+
+cmchar "Smooth breathing";
+if one_accent:
+ beginchar(">",.1u#,acc_ht#,0);
+ adjust_fit(0,0);
+else:
+ beginchar(">",9u#,acc_ht#,0);
+ adjust_fit(0,0);spirit(.5w)>;
+fi
+endchar;
+
+cmchar "Smooth breathing with acute";
+beginchar(oct"136",9u#,acc_ht#,0);
+adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ spirit_acute(.5w)>;
+ fi
+endchar;
+
+cmchar "Smooth breathing with grave";
+beginchar(oct"002",9u#,Circ_ht#,0);
+adjust_fit(0,0);
+ spirit_grave(.5w)>;
+endchar;
+
+cmchar "Smooth breathing and circumflex";
+beginchar(oct"134",9u#,Circ_ht#,0);
+adjust_fit(0,0);
+ if one_accent:
+ universal(.5w);
+ else:
+ spirit_circumflex(.5w)>;
+ fi
+endchar;
+
+cmchar "Diaeresis";
+beginchar(oct"042",9u#,circ_ht#,0);
+ adjust_fit(0,0);diaeresis(.5w);
+endchar;
+
+cmchar "Diaeresis with acute";
+beginchar(oct"043",9u#,acc_ht#,0);
+adjust_fit(0,0);
+ if one_accent:
+ diaeresis_universal(.5w);
+ else:
+ diaeresis_acute(.5w);
+ fi
+endchar;
+
+cmchar "Diaeresis with grave";
+beginchar(oct"044",9u#,acc_ht#,0);
+adjust_fit(0,0);
+ diaeresis_grave(.5w);
+endchar;
+
+cmchar "Diaeresis with circumflex";
+beginchar(oct"040",9u#,Circ_ht#,0);
+adjust_fit(0,0);
+ diaeresis_circumflex(.5w);
+endchar;
+
+cmchar "Iota subscript";
+beginchar("|",9u#,0,.6desc_depth#);
+adjust_fit(0,0);
+ if one_accent:
+ ;
+ else:
+ iota_sub(.5w);
+ fi
+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/kd/mf/kdbase.mf b/fonts/greek/kd/mf/kdbase.mf
new file mode 100644
index 0000000000..ec4311ce07
--- /dev/null
+++ b/fonts/greek/kd/mf/kdbase.mf
@@ -0,0 +1,300 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Base File for Computer Classic Greek Fonts
+%
+% By K J Dryllerakis May 1991. Based on Sylvio-Levy's
+% grbase.
+
+numeric kdbase; kdbase:=1; %don't read this file twice
+%
+% make reference to file in subdirectories less painful
+%
+def readfrom(expr filename) = scantokens ("input " & filename); enddef;
+%
+% Parameter Definitions
+%
+boolean one_accent; % are we working in |one_accent|-system?
+boolean monowidth; % do characters have single width?
+boolean straight; % are certain strokes straight?
+boolean italics; % are we going to make italics?
+numeric univ_acc_breadth; % from 0 to 1:the breadth of the univ. accent
+%
+% Expand the Standard Font setup
+%
+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;
+
+% This part defines macros for saving pictures to facilitate
+% the design of composite characters
+% 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;
+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 4:
+%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 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
+
+
+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;
+
+def traba(expr poso) = transform t; t = identity shifted (poso,0);
+currentpicture := currentpicture transformed t;
+enddef;
+
+% End of KD Base
+
diff --git a/fonts/greek/kd/mf/kdbf10.mf b/fonts/greek/kd/mf/kdbf10.mf
new file mode 100644
index 0000000000..2102a1dbf9
--- /dev/null
+++ b/fonts/greek/kd/mf/kdbf10.mf
@@ -0,0 +1,126 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Boldface
+% Dimn: 10pt
+%
+% Revision Date: 10.05.91 [KJD]
+% -----------------------------
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDBF"; font_size 10pt#;
+%
+% CM Base Parameters
+%
+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
+
+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#:=40/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?
+italics:=false; % are we creating italics ?
+%
+% KD Bases Parameters
+%
+acc_ht#:=250/36pt#; % Height of accent
+circ_ht#:=230/36pt#; %
+Circ_ht#:=250/36pt#; %
+iota_dp#:=72/36pt#; %
+one_accent:=false; % are we generating one_accent font ?
+%
+% Switch to Driver
+%
+generate kdgreek;
+
diff --git a/fonts/greek/kd/mf/kdbf8.mf b/fonts/greek/kd/mf/kdbf8.mf
new file mode 100644
index 0000000000..dbd29e05b7
--- /dev/null
+++ b/fonts/greek/kd/mf/kdbf8.mf
@@ -0,0 +1,126 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Boldface
+% Dimn: 8pt
+%
+% Revision Date: 10.05.91 [KJD]
+% -----------------------------
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDBF"; font_size 8pt#;
+%
+% CM Base Parameters
+%
+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
+
+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?
+italics:=false; % are we creating italics ?
+%
+% KD Bases Parameters
+%
+acc_ht#:=200.0/36pt#;
+circ_ht#:=184.0/36pt#;
+Circ_ht#:=200.0/36pt#;
+iota_dp#:=57.6/36pt#;
+one_accent:=false; % are we generating one_accent font ?
+%
+% Switch to Driver
+%
+generate kdgreek;
+
diff --git a/fonts/greek/kd/mf/kdbf9.mf b/fonts/greek/kd/mf/kdbf9.mf
new file mode 100644
index 0000000000..50f6346c3e
--- /dev/null
+++ b/fonts/greek/kd/mf/kdbf9.mf
@@ -0,0 +1,127 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Boldface
+% Dimn: 9pt
+%
+% Revision Date: 10.05.91 [KJD]
+% -----------------------------
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDBF"; font_size 9pt#;
+%
+% CM Base Parameters
+%
+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#:=75.8/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
+
+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?
+italics:=false; % are we creating italics ?
+%
+% KD Bases Parameters
+%
+acc_ht#:=225.0/36pt#;
+circ_ht#:=207.0/36pt#;
+Circ_ht#:=225.0/36pt#;
+iota_dp#:=64.8/36pt#;
+one_accent:=false; % are we generating one_accent font ?
+%
+% Switch to Driver
+%
+generate kdgreek;
+
diff --git a/fonts/greek/kd/mf/kddigits.mf b/fonts/greek/kd/mf/kddigits.mf
new file mode 100644
index 0000000000..02944c833a
--- /dev/null
+++ b/fonts/greek/kd/mf/kddigits.mf
@@ -0,0 +1,347 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% This file is the essentially 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<h-cut:{z3r-z4r}...{up}(x1l-1,h-cut)
+ --(x1l,h-cut) else: -- z0 fi
+ --z2l--z2r--cycle; % diagonal and upper stem
+filldraw stroke z5e--z6e; % bar
+pickup tiny.nib; pos7(light_stem,0); rt x7r=x1r; bot y7=0;
+pos2'(light_stem,0); x2'=x7;
+filldraw stroke z2'e--z7e; % lower stem
+if serifs: dish_serif(7,2',a,1/3,1.75u,
+ b,1/3,min(1.75u,w-.5u-rt x7r)); fi % serif
+penlabels(0,1,2,3,4,5,6,7); endchar;
+
+cmchar "The numeral 5";
+beginchar("5",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric bot_thickness,light_hair;
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+light_hair=hround(cap_hair if hefty: -2stem_corr fi);
+pickup tiny.nib; pos5(vair,180); pos6(vair,90);
+bot y5=vround(.53h-vair); top y6r=vround .61803h+o;
+pos3(light_hair,0); pos4(light_hair,0);
+lft x3l=max(1.35u,2.1u-.5light_hair); x3=x4=x5; y4=y5;
+top y3=h if not hefty: +o fi;
+filldraw stroke z3e--z4e; % thin stem
+penpos7(cap_stem-fine,0); penpos8(bot_thickness-fine,-90);
+fine.rt x7r=hround(w-.9u); x8=.5[u,x7]; x6=.5[x5,x7];
+erase fill z5--bot z5--(x6,bot y5)--z6{left}
+ ..tension .9 and 1..{x5-x6,3(y5-y6)}cycle; % erase excess in middle
+filldraw stroke z6e{left}..tension .9 and 1..{x5-x6,3(y5-y6)}z5e; % link
+pickup fine.nib; pos6'(vair,90); z6'=z6;
+y7=.5[y6,y8]; bot y8r=-o;
+filldraw stroke pulled_arc.e(6',7) & pulled_arc.e(7,8); % bowl
+if serifs: pos9(hair,-180); y9=.5y5; lft x9r=hround .9u;
+ pos10(flare+1/3(cap_stem-stem),-180); bulb(8,9,10); % bulb
+else: pos9(3/7[bot_thickness,flare],angle(-7u,-h));
+ lft x9r=hround(tiny.lft x3l-.75u); bot y9r=vround .15h-o;
+ x9l:=good.x x9l; y9l:=good.y y9l;
+ filldraw stroke term.e(8,9,left,1,4); fi % terminal
+if hefty: pickup crisp.nib; pos1(slab,90); pos2(hair,0);
+ top y1r=h; x1=x4; rt x2r=hround(w-1.5u); y2=y1l-eps;
+ arm(1,2,a,0,0); % arm
+else: numeric flag_breadth; flag_breadth=7/8[vair,cap_curve];
+ pos1(flag_breadth,90); pos2(flag_breadth,60);
+ pos0(vair,90); top y1r=tiny.top y3; top y2r=vround .95h+o; y0r=y1r;
+ lft x1=tiny.lft x3l; x2r=.5[x1,x0]; rt x0=hround(w-1.6u);
+ erase fill top z1r--z1r...{right}z2r
+ --(x2r,top y1r)--cycle; % erase excess at top
+ filldraw stroke z1e...{right}z2e...z0e; fi % flag
+penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
+
+cmchar "The numeral 6";
+beginchar("6",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric top_thickness,bot_thickness,side_thickness,pull;
+top_thickness=max(fine.breadth,vround(slab-2vair_corr));
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+side_thickness=max(fine.breadth,hround 1/3[curve,cap_curve]);
+pull=min(.25,1.5superpull);
+pickup fine.nib; pos2(top_thickness,-270);
+pos3(side_thickness,-180); pos4(bot_thickness,-90);
+pos5(side_thickness,0); pos6(vair,90);
+lft x3r=w-rt x5r=hround max(.75u,1.5u-.5side_thickness);
+x4=x6-.1u=x2-u=.5w;
+top y2r=h+o; y3=.5[y2,y4]; bot y4r=-o;
+y5=.5[y4,y6]; top y6=vround 5/8h+o;
+path p; p=pulled_super_arc.l(3,4)(pull);
+numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5)));
+pos7(thin_join,180); z7l=point t of p;
+(x,y6r)=whatever[z7l,z6l]; x6r:=min(x,.5[x5r,x6]);
+filldraw stroke pulled_super_arc.e(2,3)(pull)
+ & {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}}
+ & {{less_tense; pulled_super_arc.e(4,5)(pull)
+ & pulled_super_arc.e(5,6)(pull)}}
+ & z6e{left}...{direction t of p}z7e; % arc and bowl
+if serifs: pos1(hair,-360); pos0(flare,-360);
+ rt x0r=max(rt x2+eps,hround(w-1.2u));
+ y0=vround min(.9h-.5flare,.85h+.5flare)+o;
+ {{less_tense; bulb(2,1,0)}}; % arc and bulb
+else: pos1(vround .1[top_thickness,flare],90);
+ top y1r=vround .97h+o; rt x1=hround(x5-.5);
+ filldraw stroke term.e(2,1,right,.9,4); fi % terminal
+penlabels(0,1,2,3,4,5,6,7); endchar;
+
+cmchar "The numeral 7";
+beginchar("7",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric arm_thickness, bot_width, top_shift, top_hair;
+if hefty: arm_thickness=Vround(slab+2stem_corr); top_shift=0;
+ bot_width=hround .51[curve,cap_curve]; top_hair=.4[thin_join,bot_width];
+else: arm_thickness=Vround .4[stem,cap_stem]; top_shift=.5u;
+ bot_width=flare; top_hair=cap_hair; fi
+if top_hair<tiny.breadth: top_hair:=tiny.breadth; fi
+pickup crisp.nib; pos2(arm_thickness,90); pos1(hair,180);
+top y2r=h; rt x2=hround(w-.75u+top_shift);
+lft x1r=hround(.75u+.5top_shift); y1=good.y(y2l-beak/2)-eps;
+arm(2,1,a,.3beak_darkness,-beak_jut); % arm and beak
+pos3(hair,180); y3=good.y(y2r+beak/6)+eps; z3r=whatever[z1r,z.a0];
+penpos2'(eps,-90); z2'=z2r;
+arm(2',3,b,beak_darkness,x3r-x.a0); % upward extension of beak
+pickup tiny.nib; pos4(top_hair,0); pos6(bot_width,0);
+bot y4=max(h-arm_thickness,h-slab,bot y2l); rt x4r=crisp.rt x2;
+lft x6l=hround(3.5u+top_shift-.5bot_width);
+if serifs: y6-.5bot_width=-o; filldraw z6l{down}..{up}z6r--cycle; % bulb
+else: bot y6=-oo; fi
+if hefty: erase fill rt z4r--z4r...{down}z6r
+ --(rt x4r,y6)--cycle; % erase excess at top
+ filldraw stroke z4e...{down}z6e; % stroke
+else: pos5(top_hair,0); y5=2/3h; z5=whatever[z4,(.75u,y6)];
+ erase fill rt z4r--z4r--z5r--(rt x4r,y5)--cycle; % erase excess at top
+ filldraw stroke z4e---z5e...{down}z6e; fi % stroke
+penlabels(1,2,3,4,5,6); endchar;
+
+cmchar "The numeral 8";
+beginchar("8",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric top_thickness,mid_thickness,bot_thickness,upper_side,lower_side,theta;
+top_thickness=max(fine.breadth,vround(slab-2vair_corr));
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+x0=.5w; y0=.54h;
+if hefty: mid_thickness=vround 2/3vair; upper_side=hround(stem-3stem_corr);
+ lower_side=hround min(.5[curve,cap_curve]-stem_corr,upper_side+.25u);
+ penpos1(top_thickness,90); penpos2(upper_side,180);
+ penpos3(mid_thickness,270); penpos8(upper_side,360);
+ penpos4(mid_thickness,90); penpos7(lower_side,180);
+ penpos6(bot_thickness,270); penpos5(lower_side,360);
+ penpos0(vair,90); z3l=z0r; z4l=z0l;
+ x1=x6=.5w; x2r=w-x8r=hround u; x7r=w-x5r=hround .75u;
+ top y1r=h+o; bot y6r=-o; y2=y8=.5[y1l,y3l]; y7=y5=.5[y4l,y6l];
+ filldraw stroke pulled_arc.e(1,2)
+ & pulled_arc.e(2,3); % left half of upper bowl
+ filldraw stroke pulled_arc.e(4,5)
+ & pulled_arc.e(5,6); % right half of lower bowl
+ filldraw stroke pulled_arc.e(6,7)
+ & pulled_arc.e(7,4); % left half of lower bowl
+ filldraw stroke pulled_arc.e(3,8)
+ & pulled_arc.e(8,1); % right half of upper bowl
+else: pickup fine.nib; theta=90-angle(18u,h); slope:=-h/18u;
+ upper_side=max(fine.breadth,hround(.5[hair,stem]-stem_corr));
+ lower_side=hround(.5[hair,stem]+stem_corr);
+ pos1(top_thickness,-90); pos6(bot_thickness,-90);
+ x1=x6=.5w; top y1l=h+o; bot y6r=-o; pos0(cap_stem,theta);
+ lft x2l=w-rt x8l=hround 1.25u; lft x7r=w-rt x5r=hround .75u;
+ x2r-x2l=upper_side-fine; x5r-x5l=lower_side-fine;
+ ellipse_set(1l,2l,3l,0l); ellipse_set(1r,2r,3r,0r);
+ ellipse_set(6l,5l,4l,0l); ellipse_set(6r,5r,4r,0r);
+ numeric tau; tau=max(.8,.20710678/(superness-.5));
+ filldraw stroke z1e{left}..tension atleast tau..z2e{down}
+ ..z3e---z4e..z5e{down}..tension atleast tau..z6e{left}; % S stroke
+ pos7(lower_side,180); pos8(upper_side,180);
+ y7=.5[y5l,y5r]; y8=.5[y2l,y2r]; pos9(vair,90); z9=z0;
+ filldraw stroke z1e{right}..tension atleast tau..z8e{down}
+ ..tension atleast tau and atleast 1..{-18u,-.618h}z9e; % upper right stroke
+ filldraw stroke z6e{left}..tension atleast tau..z7e{up}
+ ..tension atleast tau and atleast 1..{18u,.5h}z9e; fi % lower left stroke
+penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
+
+cmchar "The numeral 9";
+beginchar("9",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric top_thickness,bot_thickness,side_thickness,pull;
+top_thickness=max(fine.breadth,vround(slab-2vair_corr));
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+side_thickness=max(fine.breadth,hround 1/3[curve,cap_curve]);
+pull=min(.25,1.5superpull);
+pickup fine.nib; pos2(bot_thickness,-90);
+pos3(side_thickness,0); pos4(top_thickness,90);
+pos5(side_thickness,180); pos6(vair,270);
+w-rt x3r=lft x5r=hround max(.75u,1.5u-.5side_thickness);
+x4-.1u=x6+.1u=x2+.75u=.5w;
+bot y2r=-o; y3=.5[y2,y4]; top y4r=h+o;
+y5=.5[y4,y6]; bot y6=vround 3/8h-o;
+path p; p=pulled_super_arc.l(3,4)(pull);
+numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5)));
+pos7(thin_join,360); z7l=point t of p;
+(x,y6r)=whatever[z7l,z6l]; x6r:=max(x,.5[x5r,x6]);
+filldraw stroke pulled_super_arc.e(2,3)(pull)
+ & {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}}
+ & {{less_tense; pulled_super_arc.e(4,5)(pull)
+ & pulled_super_arc.e(5,6)(pull)}}
+ & z6e{right}...{direction t of p}z7e; % arc and bowl
+if serifs: pos1(hair,-180); pos0(flare,-180);
+ lft x0r=min(lft x2-eps,hround 1.2u);
+ y0=vround max(.1h+.5flare,.15h-.5flare)-o;
+ {{less_tense; bulb(2,1,0)}}; % arc and bulb
+else: pos1(.1[bot_thickness,flare],-120);
+ bot y1r=vround .07h-o; lft x1r=hround 1.3u;
+ filldraw stroke term.e(2,1,left,.9,4); fi % terminal
+penlabels(0,1,2,3,4,5,6,7); endchar;
+
diff --git a/fonts/greek/kd/mf/kdgr10.mf b/fonts/greek/kd/mf/kdgr10.mf
new file mode 100644
index 0000000000..22914e8fda
--- /dev/null
+++ b/fonts/greek/kd/mf/kdgr10.mf
@@ -0,0 +1,120 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Font at 10 points
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDGR10"; font_size 10pt#;
+
+% Definitions for CMBase
+
+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
+
+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#:=30/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?
+
+% Definitions For KDBase
+
+acc_ht#:=250/36pt#;
+circ_ht#:=225/36pt#;
+Circ_ht#:=250/36pt#;
+iota_dp#:=72/36pt#;
+one_accent:=false; % are we generating a one accent system?
+straight:=false; % should stems, etc. be straight?
+monowidth:=false; % are stem and hair more or less the same width?
+italics:=false; % are we generating italics ?
+
+% Switch to device driver
+
+generate kdgreek;
+
diff --git a/fonts/greek/kd/mf/kdgr8.mf b/fonts/greek/kd/mf/kdgr8.mf
new file mode 100644
index 0000000000..34e144c0c1
--- /dev/null
+++ b/fonts/greek/kd/mf/kdgr8.mf
@@ -0,0 +1,123 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Regular
+% Dimn: 8pt
+% -----------------------------
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDGR"; 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
+
+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?
+
+% CC Base Parameters
+
+acc_ht#:=210/36pt#;
+circ_ht#:=180/36pt#;
+Circ_ht#:=210/36pt#;
+iota_dp#:=57.6/36pt#;
+
+straight:=false; % should stems, etc. be straight?
+monowidth:=false; % are stem and hair more or less the same width?
+italics:=false; % Are we generating Italics?
+one_accent:=false; % Are we generating one_accent font?
+
+generate kdgreek; % Switch to driver
+
+
diff --git a/fonts/greek/kd/mf/kdgr9.mf b/fonts/greek/kd/mf/kdgr9.mf
new file mode 100644
index 0000000000..61a5e39f9d
--- /dev/null
+++ b/fonts/greek/kd/mf/kdgr9.mf
@@ -0,0 +1,122 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Font at 9 points
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDGR9"; font_size 9pt#;
+
+% Definitions for CMBase
+
+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.6/36pt#; % extra sidebar near uppercase serifs
+letter_fit#:=0pt#; % extra space added to all sidebars
+
+body_height#:=243/36pt#; % height of tallest characters
+asc_height#:=225/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/36pt#; % axis of symmetry for math symbols
+bar_height#:=75.8/36pt#; % height of crossbar in lowercase e
+comma_depth#:=63/36pt#; % depth of comma below baseline
+desc_depth#:=73/36pt#; % depth of lowercase descenders
+
+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/36pt#; % breadth in middle of lowercase s
+flare#:=25/36pt#; % diameter of bulbs or breadth of terminals
+dot_size#:=35/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/36pt#; % breadth in middle of uppercase s
+rule_thickness#:=.38pt#; % thickness of lines in math symbols
+
+dish#:=1/36pt#; % amount erased at top or bottom of serifs
+bracket#:=18/36pt#; % vertical distance from serif base to tangent
+jut#:=25/36pt#; % protrusion of lowercase serifs
+cap_jut#:=33/36pt#; % protrusion of uppercase serifs
+beak_jut#:=9.2/36pt#; % horizontal protrusion of beak serifs
+beak#:=63/36pt#; % vertical protrusion of beak serifs
+vair#:=7.3/36pt#; % vertical diameter of hairlines
+notch_cut#:=9pt#; % 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#:=9pt#; % 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/36pt#; % amount of overshoot for curves
+apex_o#:=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:=.2; % 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?
+
+% Definitions For KDBase
+
+acc_ht#:=230/36pt#;
+circ_ht#:=202.5/36pt#;
+Circ_ht#:=230/36pt#; %
+iota_dp#:=64.8/36pt#; % Depth of i under vowel
+one_accent:=false; % are we generating a one accent system?
+straight:=false; % should stems, etc. be straight?
+monowidth:=false; % are stem and hair more or less the same width?
+italics:=false; % are we generating italics ?
+
+% Switch to greek device driver
+
+generate kdgreek;
+
+
+
diff --git a/fonts/greek/kd/mf/kdgreek.mf b/fonts/greek/kd/mf/kdgreek.mf
new file mode 100644
index 0000000000..0f4702eb00
--- /dev/null
+++ b/fonts/greek/kd/mf/kdgreek.mf
@@ -0,0 +1,59 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Family of Fonts
+% Adapted by K J Dryllerakis
+%
+if ligs>1: font_coding_scheme:="TeX greek text";
+else: font_coding_scheme:="TeX greek typewriter text";fi
+
+mode_setup; font_setup;
+
+readfrom("kdaccent"); % accents
+if italics:
+ readfrom("kdilower");
+ readfrom("kdidigit");
+else:
+ readfrom("kdlower");
+ readfrom("kddigits");
+fi
+if ligs>0:
+ readfrom("kdlig");
+else:
+ readfrom("kdligcom");
+fi
+readfrom("kdupper");
+readfrom("kdpunct");
+
+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/kd/mf/kdidigit.mf b/fonts/greek/kd/mf/kdidigit.mf
new file mode 100644
index 0000000000..329906df90
--- /dev/null
+++ b/fonts/greek/kd/mf/kdidigit.mf
@@ -0,0 +1,287 @@
+% This is KDITALD.MF
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% This file contains the ten digits in so-called italic style.
+% Character codes \0060 through \0071 are generated.
+
+% The characters all have the same italic correction.
+
+cmchar "Italic 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(1.5u-.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 "Italic numeral 1";
+beginchar("1",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0); pickup tiny.nib;
+numeric light_stem; light_stem=hround .4[stem',cap_stem'];
+pos1(light_stem,0); pos2(light_stem,0);
+lft x1l=lft x2l=hround(.5(w+.5u)-.5cap_stem'); top y1=h+apex_o; bot y2=0;
+filldraw stroke z1e--z2e; % stem
+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+apex_o; top y4l=.8h+apex_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+apex_o+1)--(x3l,h+apex_o+1)--cycle; % erase excess at top
+filldraw stroke z3e{x4e-x3e,3(y4e-y3e)}..{left}z4e; % point
+penlabels(1,2,3,4); endchar;
+
+cmchar "Italic numeral 2";
+beginchar("2",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0); pickup fine.nib;
+pos1(vair,45); pos2(vair,0); pos3(vair,-90); pos4(hair,-180);
+pos5(vair,-270); pos6(curve,-360); pos7(hair,-405); pos8(hair,-360);
+x1=x2-.5u; rt x2r=hround(3.5u+.5vair);
+x3=.6[x2,x4]; lft x4r=hround(u-.5hair);
+x5=x7=.5w-.5u; rt x6r=hround(w-u); lft x8l=hround(1.5u-.5hair);
+y1=.5[x_height,h]; y2=1/3[y1,y3]; y4=x_height; bot y3r=vround .78y4;
+top y5r=h+o; y6=.5[y5,y7]; y7=.52y4; bot y8=-o;
+filldraw stroke if not hefty:z1e{2(x2-x1),y2-y1}...{down}z2e...{left}z3e...fi
+ z4e{up}...pulled_arc.e(5,6)
+ ...z7e{2(x7-x6),y7-y6}...{down}z8e; % main stroke
+pos9(vair,-90); pos10(vstem+curve-stem,-90); pos11(hair,0);
+x9=w-x10=2.5u; rt x11r=hround(w-.5u+.5hair);
+y9=.25[y10,y7]; bot y10r=-o; y11=.38x_height;
+filldraw stroke z8e{up}...z9e{right}..{right}z10e...{up}z11e; % bar
+penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar;
+
+cmchar "Italic numeral 3";
+beginchar("3",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0); pickup fine.nib;
+pos1(vair,45); pos2(vair,0); pos3(vair,-90); pos4(hair,-180);
+pos5(vair,-270); pos6(stem,-360); pos7(bar,-450); pos8(bar,-450);
+x1=x2-.5u; rt x2r=hround(3.5u+.5vair); x3=.5[x2,x4]; lft x4r=hround u;
+x5=x7=.5w; rt x6r=hround(w-u); x8=x7-u;
+y1=.5[x_height,h]; y2=.5[y1,y3]; y7=y8=.52h; bot y3r=vround 1/4[y7,h];
+y4=1/3[y3,y5]; top y5r=h+o; y6=.5[y5,y7];
+filldraw stroke if not hefty: z1e{2(x2-x1),y2-y1}...{down}z2e...{left}z3e...fi
+ z4e{up}...pulled_arc.e(5,6) & pulled_arc.e(6,7)..z8e; % upper arc
+pos7'(vair,90); z7'l=z7r;
+pos9(curve,0); pos10(vair,-90); pos11(hair,-180); pos12(flare,-180);
+rt x9r=hround(w-u); x10=.5w-.5u; lft x11r=hround .75u;
+y9=.25h; bot y10r=-o; y11=1/3x_height; bulb(10,11,12); % bulb
+filldraw stroke pulled_arc.e(7',9) & pulled_arc.e(9,10); % lower arc
+penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
+
+cmchar "Italic numeral 4";
+beginchar("4",9u#,fig_height#,desc_depth#);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0); pickup fine.nib;
+pos1(stem,0); pos6(stem,0); pos7(stem,0);
+pos2(bar,-45); pos3(bar,-90); pos4(bar,-90); pos5(bar,-45);
+rt x1r=hround(.5w+.5u+.5stem); lft x2l=hround .25u;
+x3=2.75u; x4=w-2u; rt x5r=hround(w-.25u);
+rt x6r=rt x7r=hround(2/3w+.5stem);
+y1+.5stem=h+o; bot y2r=0; bot y3r=vround(.08h-.5bar);
+bot y4r=vround-.5bar; bot y5r=vround(.03h-.5bar);
+y6+.5stem=bar_height; y7-.5stem=-d;
+filldraw circ_stroke z1e{down}...{3(x2-x1),y2-y1}z2e; % diagonal
+filldraw stroke z2e{z1-z2}...z3e{right}..{right}z4e
+ ...{x5-x4,2(y5-y4)}z5e; % bar
+filldraw z6l---z7l..z7r---z6r..cycle; % stem
+penlabels(1,2,3,4,5,6,7); endchar;
+
+cmchar "Italic numeral 5";
+beginchar("5",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric bot_thickness,light_hair;
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+light_hair=hround(cap_hair if hefty: -\\2stem_corr fi);
+pickup tiny.nib; pos5(vair,180); pos6(vair,90);
+bot y5=vround(.53h-vair); top y6r=max(vround .61803h+o,top y6r+y5+eps-y6l);
+pos3(light_hair,0); pos4(light_hair,0);
+lft x3l=max(1.35u,2.1u-.5light_hair); x3=x4=x5; y4=y5;
+top y3=h if not hefty: +\\o fi;
+filldraw stroke z3e--z4e; % thin stem
+penpos7(cap_stem-fine,0); penpos8(bot_thickness-fine,-90);
+fine.rt x7r=hround(w-.9u); x8=.5[u,x7]; x6=.5[x5,x7];
+erase fill z5--bot z5--(x6,bot y5)--z6{left}
+ ..tension .9 and 1..{x5-x6,3(y5-y6)}cycle; % erase excess in middle
+filldraw stroke z6e{left}..tension .9 and 1..{x5-x6,3(y5-y6)}z5e; % link
+pickup fine.nib; pos6'(vair,90); z6'=z6;
+y7=.5[y6,y8]; bot y8r=-o;
+filldraw stroke pulled_arc.e(6',7) & pulled_arc.e(7,8); % bowl
+if serifs: pos9(hair,-180); y9=.5y5; lft x9r=hround .9u;
+ pos10(flare+1/3(cap_stem-stem),-180); bulb(8,9,10); % bulb
+else: pos9(3/7[bot_thickness,flare],angle(-7u,-h));
+ lft x9r=hround(tiny.lft x3l-.75u); bot y9r=vround .15h-o;
+ x9l:=good.x x9l; y9l:=good.y y9l;
+ filldraw stroke term.e(8,9,left,1,4); fi % terminal
+if hefty: pickup crisp.nib; pos1(slab,90); pos2(hair,0);
+ top y1r=h; x1=x4; rt x2r=hround(w-1.5u); y2=y1l-eps;
+ arm(1,2,a,0,0); % arm
+else: numeric flag_breadth; flag_breadth=7/8[vair,cap_curve];
+ pos1(flag_breadth,90); pos2(flag_breadth,60);
+ pos0(vair,90); top y1r=tiny.top y3; top y2r=vround .95h+o; y0r=y1r;
+ lft x1=tiny.lft x3l; x2r=.5[x1,x0]; rt x0=hround(w-1.6u);
+ erase fill top z1r--z1r...{right}z2r
+ --(x2r,top y1r)--cycle; % erase excess at top
+ filldraw stroke z1e...{right}z2e...z0e; fi % flag
+penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar;
+
+cmchar "Italic numeral 6";
+beginchar("6",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric top_thickness,bot_thickness,side_thickness,pull;
+top_thickness=max(fine.breadth,vround(slab-2vair_corr));
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+side_thickness=max(fine.breadth,hround 1/3[curve,cap_curve]);
+pull=min(.25,1.5superpull);
+pickup fine.nib; pos2(top_thickness,-270);
+pos3(side_thickness,-180); pos4(bot_thickness,-90);
+pos5(side_thickness,0); pos6(vair,90);
+lft x3r=w-rt x5r=hround max(.75u,1.5u-.5side_thickness);
+x4=x6-.1u=x2-u=.5w;
+top y2r=h+o; y3=.5[y2,y4]; bot y4r=-o;
+y5=.5[y4,y6]; top y6=vround 5/8h+o;
+path p; p=pulled_super_arc.l(3,4)(pull);
+numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5)));
+pos7(thin_join,180); z7l=point t of p;
+(x,y6r)=whatever[z7l,z6l]; x6r:=min(x,.5[x5r,x6]);
+filldraw stroke pulled_super_arc.e(2,3)(pull)
+ & {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}}
+ & {{less_tense; pulled_super_arc.e(4,5)(pull)
+ & pulled_super_arc.e(5,6)(pull)}}
+ & z6e{left}...{direction t of p}z7e; % arc and bowl
+if serifs: pos1(hair,-360); pos0(flare,-360);
+ rt x0r=max(rt x2+eps,hround(w-1.2u));
+ y0=vround min(.9h-.5flare,.85h+.5flare)+o;
+ {{less_tense; bulb(2,1,0)}}; % arc and bulb
+else: pos1(vround .1[top_thickness,flare],90);
+ top y1r=vround .97h+o; rt x1=hround(x5-.5);
+ filldraw stroke term.e(2,1,right,.9,4); fi % terminal
+penlabels(0,1,2,3,4,5,6,7); endchar;
+
+cmchar "Italic numeral 7";
+beginchar("7",9u#,fig_height#,desc_depth#);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0); pickup fine.nib;
+numeric fat_curve; fat_curve=1.4[stem,curve];
+pos1(hair,0); pos2(hair,0); pos3(vstem+curve-stem,-90);
+pos4(vair,-90); pos5(hair,0); pos6(fat_curve,0);
+top y1=h+o; y2=x_height; y3l=y5=y1;
+bot y4r=vround(.5[y2,h]-.5vair); y6-.5fat_curve=-o;
+lft x2l=hround(.5u-.5hair); x3=.5w-.5u; x4=2/3w;
+rt x5r=hround(w-.75u+.5hair); rt x6r=hround(.5w+u+.5fat_curve);
+z1=z2+whatever*(z5-z6); filldraw stroke z1e--z2e; % serif
+filldraw stroke z2e{z1-z2}...z3e{right}..{right}z4e
+ ...{2(x5-x6),y5-y6}z5e; % bar
+filldraw circ_stroke z6e{up}...{2(x5-x6),y5-y6}z5e; % diagonal
+penlabels(1,2,3,4,5,6); endchar;
+
+cmchar "Italic numeral 8";
+beginchar("8",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric top_thickness,mid_thickness,bot_thickness,upper_side,lower_side,theta;
+top_thickness=max(fine.breadth,vround(slab-2vair_corr));
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+x0=.5w; y0=.54h;
+if hefty: mid_thickness=vround 2/3vair; upper_side=hround(stem-3stem_corr);
+ lower_side=hround min(.5[curve,cap_curve]-stem_corr,upper_side+.25u);
+ penpos1(top_thickness,90); penpos2(upper_side,180);
+ penpos3(mid_thickness,270); penpos8(upper_side,360);
+ penpos4(mid_thickness,90); penpos7(lower_side,180);
+ penpos6(bot_thickness,270); penpos5(lower_side,360);
+ penpos0(vair,90); z3l=z0r; z4l=z0l;
+ x1=x6=.5w; x2r=w-x8r=hround u; x7r=w-x5r=hround .75u;
+ top y1r=h+o; bot y6r=-o; y2=y8=.5[y1l,y3l]; y7=y5=.5[y4l,y6l];
+ filldraw stroke pulled_arc.e(1,2)
+ & pulled_arc.e(2,3); % left half of upper bowl
+ filldraw stroke pulled_arc.e(4,5)
+ & pulled_arc.e(5,6); % right half of lower bowl
+ filldraw stroke pulled_arc.e(6,7)
+ & pulled_arc.e(7,4); % left half of lower bowl
+ filldraw stroke pulled_arc.e(3,8)
+ & pulled_arc.e(8,1); % right half of upper bowl
+else: pickup fine.nib; theta=90-angle(18u,h); slope:=-h/18u;
+ upper_side=max(fine.breadth,hround(.5[hair,stem]-stem_corr));
+ lower_side=hround(.5[hair,stem]+stem_corr);
+ pos1(top_thickness,-90); pos6(bot_thickness,-90);
+ x1=x6=.5w; top y1l=h+o; bot y6r=-o; pos0(cap_stem,theta);
+ lft x2l=w-rt x8l=hround 1.25u; lft x7r=w-rt x5r=hround .75u;
+ x2r-x2l=upper_side-fine; x5r-x5l=lower_side-fine;
+ ellipse_set(1l,2l,3l,0l); ellipse_set(1r,2r,3r,0r);
+ ellipse_set(6l,5l,4l,0l); ellipse_set(6r,5r,4r,0r);
+ numeric tau; tau=max(.8,.20710678/(superness-.5));
+ filldraw stroke z1e{left}..tension atleast tau..z2e{down}
+ ..z3e---z4e..z5e{down}..tension atleast tau..z6e{left}; % S stroke
+ pos7(lower_side,180); pos8(upper_side,180);
+ y7=.5[y5l,y5r]; y8=.5[y2l,y2r]; pos9(vair,90); z9=z0;
+ filldraw stroke z1e{right}..tension atleast tau..z8e{down}
+ ..tension atleast tau and atleast 1..{-18u,-.618h}z9e; % upper right stroke
+ filldraw stroke z6e{left}..tension atleast tau..z7e{up}
+ ..tension atleast tau and atleast 1..{18u,.5h}z9e; fi % lower left stroke
+penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
+
+cmchar "Italic numeral 9";
+beginchar("9",9u#,fig_height#,0);
+italcorr fig_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric top_thickness,bot_thickness,side_thickness,pull;
+top_thickness=max(fine.breadth,vround(slab-2vair_corr));
+bot_thickness=max(fine.breadth,vround(slab-vair_corr));
+side_thickness=max(fine.breadth,hround 1/3[curve,cap_curve]);
+pull=min(.25,1.5superpull);
+pickup fine.nib; pos2(bot_thickness,-90);
+pos3(side_thickness,0); pos4(top_thickness,90);
+pos5(side_thickness,180); pos6(vair,270);
+w-rt x3r=lft x5r=hround max(.75u,1.5u-.5side_thickness);
+x4-.1u=x6+.1u=x2+.75u=.5w;
+bot y2r=-o; y3=.5[y2,y4]; top y4r=h+o;
+y5=.5[y4,y6]; bot y6=vround 3/8h-o;
+path p; p=pulled_super_arc.l(3,4)(pull);
+numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5)));
+pos7(thin_join,360); z7l=point t of p;
+(x,y6r)=whatever[z7l,z6l]; x6r:=max(x,.5[x5r,x6]);
+filldraw stroke pulled_super_arc.e(2,3)(pull)
+ & {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}}
+ & {{less_tense;
+ pulled_super_arc.e(4,5)(pull) & pulled_super_arc.e(5,6)(pull)}}
+ & z6e{right}...{direction t of p}z7e; % arc and bowl
+if serifs: pos1(hair,-180); pos0(flare,-180);
+ lft x0r=min(lft x2-eps,hround 1.2u);
+ y0=vround max(.1h+.5flare,.15h-.5flare)-o;
+ {{less_tense; bulb(2,1,0)}}; % arc and bulb
+else: pos1(.1[bot_thickness,flare],-120);
+ bot y1r=vround .07h-o; lft x1r=hround 1.3u;
+ filldraw stroke term.e(2,1,left,.9,4); fi % terminal
+penlabels(0,1,2,3,4,5,6,7); endchar;
+
diff --git a/fonts/greek/kd/mf/kdilower.mf b/fonts/greek/kd/mf/kdilower.mf
new file mode 100644
index 0000000000..a94780a895
--- /dev/null
+++ b/fonts/greek/kd/mf/kdilower.mf
@@ -0,0 +1,1282 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+%
+% File : kdilower.mf
+%
+%
+%
+
+% ======================================================================
+% ALFA
+% ======================================================================
+
+def width = 8.5u enddef;
+def height = x_height enddef;
+def dims = width#,height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,.5u# enddef;
+def acc_corr = 1.5u enddef;
+
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+.5u;
+pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270);
+pos4(stem,0); x4=x0; y4+.5stem=vround .98h;
+x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve);
+rt x4r=hround(w-2.5u+.5stem);
+top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3];
+filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2)
+ & pulled_arc.e(2,3) & super_arc.e(3,0); % bowl
+x5=x4; x7=w; hook_out(5,6,7); % closing hook
+filldraw circ_stroke z4e--z5e; % stem
+math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
+ numeric x_baryctr; x_baryctr=.25[x1,x4]; %accent reference
+ numeric pos_stem; pos_stem=x_baryctr; %iota reference
+ traba(-.5u);
+enddef;
+
+cmchar "Lowercase alpha";
+beginchar("a",dims);
+this_letter; penlabels(0,1,2,3,4,5,6,7); endchar;
+
+cmchar "Lowercase alpha with rough breathing";
+beginchar(oct"200",width#+u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase alpha with smooth breathing";
+beginchar(oct"210",width#+u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with acute";
+beginchar(oct"220",width#+u#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase alpha with rough breathing and acute";
+beginchar(oct"230",width#+u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase alpha with smooth breathing and acute";
+beginchar(oct"240",width#+u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with rough breathing and grave";
+beginchar(oct"260",width#+u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase alpha with smooth breathing and grave";
+beginchar(oct"270",width#+u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with circumflex";
+beginchar(oct"207",width#+u#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase alpha with grave";
+beginchar(oct"250",width#+u#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+
+cmchar "Lowercase alpha with rough breathing and circumflex";
+beginchar(oct"300",width#+u#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase alpha with smooth breathing and circumflex";
+beginchar(oct"310",width#+u#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with iota subscript";
+beginchar(oct"320",width#+u#,height#,iota_dp#);
+this_letter; iota_sub(pos_stem); endchar;
+%
+cmchar "Lowercase alpha with acute and iota subscript";
+beginchar(oct"301",width#+u#,acc_ht#,iota_dp#);
+this_letter; acute(x_baryctr); iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with grave and iota subscript";
+beginchar(oct"330",width#+u#,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"340",width#+u#,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"350",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with rough breathing, grave and iota subscript";
+beginchar(oct"360",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with smooth breathing, grave and iota subscript";
+beginchar(oct"361",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with rough breathing and acute and iota subscript";
+beginchar(oct"311",width#+u#,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"321",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with circumflex and iota subscript";
+beginchar(oct"331",width#+u#,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"341",width#+u#,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"351",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+picture pic.iota;
+picture savedpicture;
+
+% ======================================================================
+% BHTA
+% ======================================================================
+
+def dims = 8u#,asc_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+1.5u;
+pos0(.5[hair,stem],180); pos1(.5[hair,stem],180); pos2(vair,90);
+pos3(stem,0); pos4(vair,-90); pos5(hair,-180);
+pos6(vair,-270); pos7(curve,-360); pos8(vair,-450); pos9(hair,-540);
+x0=x1=x9; lft x0l=hround(1.5u-.5hair); x2=x4=x6=x8=.5w+.25u;
+rt x3r=hround(w-1.5u); rt x7r=hround(w-1.5u+.5curve); rt x5l=hround(x4-u);
+bot y0=-d; y1=top y6r=x_height; top y2r=h+oo; y3=.5[y2,y4];
+y5=.5[y4,y6]; top y6r-bot y4r=vstem+eps; bot y8=-oo; y7=y9=.5[y6,y8];
+if y6l<y4l: y6l:=y4l:=y5; fi
+filldraw stroke z0e---z1e...pulled_arc.e(2,3)
+ & pulled_arc.e(3,4)...{up}z5e; % stem and upper bowl
+filldraw stroke z5e{up}...pulled_arc.e(6,7)
+ & pulled_arc.e(7,8)...{up}z9e; % lower bowl
+math_fit(desc_depth#*slant+.5hair#-u#,.7x_height#*slant+.5curve#-1.5u#);
+traba(-.5u);
+enddef;
+
+cmchar "Lowercase beta";
+beginchar("b",dims);
+this_letter; penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% GAMMA
+% ======================================================================
+
+def dims = 8.5u#,x_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter=
+ adjust_fit(0,0); pickup fine.nib; w:=w+1.5u;
+pos1(hair,180); pos2(vstem+dw,90);
+pos4(hair,0); pos5(vair,-90); pos6(hair,-180); pos7(hair,-180);
+bot y1=.5772156649h; top y2r=h+oo; y4=y6=-.5d;
+bot y5r=-d-o; top y7=h;
+lft x1r=hround(.5u-.5hair); x2=2.5u; rt x4r=hround(w-3u); x5=.5[x4,x6];
+rt x4l-lft x6l=curve; rt x7l=hround(w-u);
+if x4l<x6l: x4l:=x6l:=x5; fi
+pos3(hair,angle(z4-z2)+90); x3=superness[x2,x4]; y3=superness[y4,y2];
+filldraw stroke z1e{up}...z2e{right}...z3e{z4-z2}
+ ...z4e{down}...{left}z5e; % arc
+filldraw stroke z5e{left}...z6e{up}..{2(x7-x6),y7-y6}z7e; % stem
+math_fit(-.5772156649x_height#*slant,ic#-u#);
+traba(-.5u);
+enddef;
+
+cmchar "Lowercase gamma";
+beginchar("g",dims);
+this_letter; penlabels(1,2,3,4,5,6,7); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% DELTA
+% ======================================================================
+
+def dims = 7.25u#,asc_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter =
+ adjust_fit(0,0); pickup fine.nib; w:=w+.75u;
+pos1(hair,-180); pos2(vair,-90);
+numeric theta; theta=angle(18u,-h); pos9(hair,theta);
+pos3(stem,theta+90); pos4(stem,theta+90); pos5(1/4[hair,stem],20);
+pos6(vair,-90); pos7(curve,-180); pos8(vair,-270);
+rt x1l=hround(w-2u+.5hair); x2=.5w; x3r=3u; rt x5r=hround(w-u);
+x9l=hround(x1+u); y9=y1;
+x4=x6=x8=.5w+.5u; lft x7r=hround(1.5u-.5curve);
+top y2l=h+oo; y1=min(.9h,y2r-eps); top y8r=x_height+oo; y4=y8;
+z4-z3=whatever*(18u,-h); y5=y7=.5[y6,y8]; bot y6=-oo;
+filldraw stroke z1e{x2-x1,3(y2-y1)}...z2e{left}...z3e---z4e
+ ....z5e{down}...pulled_arc.e(6,7) & pulled_arc.e(7,8); % hook and bowl
+filldraw stroke z1{x1-x2,3(y1-y2)}...{x1-x2,3(y2-y1)}z9;
+math_fit(-.3x_height#*slant+.5curve#-u#,.7x_height#*slant-.5u#);
+traba(-.5u);
+enddef;
+
+cmchar "Lowercase delta";
+beginchar("d",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8); endchar;
+
+picture savedpicture;
+%
+% ======================================================================
+% EYILON
+% ======================================================================
+%
+def width = 6.5u enddef;
+def height = x_height enddef;
+def dims = width#,height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+def acc_corr = 1.5u enddef;
+
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+1.5u;
+numeric light_vstem; light_vstem=Vround 2/3[vair,vstem];
+pos2(light_vstem,90); x2=x8=.5w+.5u; top y2r=h+o;
+x1+.5light_vstem=hround(w-u); y1=.2[y2,bar_height];
+pos1(light_vstem,angle(x1-x2,2(y1-y2))+90); pos3(hair,180); pos4(vair,270);
+pos5(hair,360); pos6(vair,450); pos7(hair,540); pos8(light_vstem,630);
+lft x3r=hround u; x4=x6=.5w; rt x5r=hround(w-2.5u); x7=x3;
+y3=.5[y2,y4]; y5=bar_height=.5[y4,y6]; y7=.5[y6,y8]; bot y8r=-o;
+top y6r-bot y4r=vstem+eps; if y6l<y4l: y6l:=y4l:=y5; fi
+x9+.5vair=hround(w-.5u); y9=1/3[y8,bar_height];
+pos9(vair,angle(x8-x9,2(y8-y9))+90);
+filldraw circ_stroke z1e{x2-x1,2(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull)
+ & super_arc.e(3,4)...{up}z5e; % upper arc
+filldraw circ_stroke z9e{x8-x9,8(y8-y9)}...pulled_arc.e(8,7)
+ & super_arc.e(7,6)...{down}z5e; % lower arc
+math_fit(-.5bar_height#*slant-.5u#,ic#);
+ numeric x_baryctr; x_baryctr=x2; % accent reference
+traba(-.5u);
+enddef;
+
+cmchar "Lowercase epsilon";
+beginchar("e",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar;
+%
+cmchar "Lowercase epsilon with rough breathing";
+beginchar(oct"201",width#+1.2u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase epsilon with smooth breathing";
+beginchar(oct"211",width#+1.2u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+
+cmchar "Lowercase epsilon with acute";
+beginchar(oct"221",width#+1.2u#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+
+cmchar "Lowercase epsilon with rough breathing and acute";
+beginchar(oct"231",width#+1.2u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+
+cmchar "Lowercase epsilon with smooth breathing and acute";
+beginchar(oct"241",width#+1.2u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+
+cmchar "Lowercase epsilon with rough breathing and grave";
+beginchar(oct"261",width#+1.2u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+
+cmchar "Lowercase epsilon with smooth breathing and grave";
+beginchar(oct"271",width#+1.2u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+
+cmchar "Lowercase epsilon with grave";
+beginchar(oct"251",width#+1.2u#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% ZHTA
+% ======================================================================
+%
+def dims = 7u#,asc_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+%
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+u;
+pos0(hair,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90);
+numeric theta; theta=90-angle(25u,x_height); slope:=-x_height/25u;
+pos6(stem,theta); pos7(vair,-90); pos8(vair,-135);
+lft x0l=hround 3.5u; x1=x3=.5[x0,x2]; rt x2l=hround max(rt x0r,w-2u)+eps;
+top y0=h; top y3l=bot y1l+vstem+eps=vround(y0-.25(h-x_height)); y2=.5[y1,y3];
+if y1r>y3r: y1r:=y3r:=y2; fi
+lft x4l=hround u; x4r-x4l=(hround .6[vair,stem])-fine;
+x6+.5u=x7=w-2u; x8=.5w+.75u;
+y6=-.1d; y8=-3/4d-oo; bot y7r=-d-oo;
+ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r);
+y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r];
+filldraw circ_stroke z0e{down}...z1e{right}...{up}z2e; % opening hook
+filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}
+ ...z6e---z5e....{up}z4e
+ ..tension 1 and atleast1.5..{right}z3e...{down}z2e; % main stroke
+math_fit(-.2asc_height#*slant-.5u#,0);
+traba(-.5u);
+enddef;
+%
+cmchar "Lowercase zeta";
+beginchar("z",dims);
+this_letter; penlabels(0,1,2,3,4,5,6,7,8); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% HTA [Bug fixed by Knappen June 1992]
+% ======================================================================
+%
+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 acc_corr = 1.5u enddef;
+%
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+.5u;
+x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo;
+hook_in(0,a,1); % opening hook
+filldraw circ_stroke z2e--z1e; % left stem
+x4+.5stem=hround(w-1.5u+.5stem); ital_arch(2,3,4); % arch
+pos5(stem,0); x5=x4; y5-.5stem=-d-o;
+filldraw circ_stroke z5e--z4e; % right stem
+math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant);
+ numeric x_baryctr; x_baryctr=.1[x3,x0]; % accent reference
+ numeric pos_stem; pos_stem=x2; % iota reference
+enddef;
+%
+cmchar "Lowercase eta";
+beginchar("h",dims);
+this_letter; penlabels(0,a,1,2,3,4,5); endchar;
+%
+cmchar "Lowercase eta with rough breathing";
+beginchar(oct"202",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing";
+beginchar(oct"212",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit(x_baryctr)>; endchar;
+
+cmchar "Lowercase eta with acute";
+beginchar(oct"222",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; acute(x_baryctr); endchar;
+
+cmchar "Lowercase eta with rough breathing and acute";
+beginchar(oct"232",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing and acute";
+beginchar(oct"242",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase eta with rough breathing and grave";
+beginchar(oct"262",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing and grave";
+beginchar(oct"272",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase eta with circumflex";
+beginchar(oct"217",width#+1.3u#,circ_ht#,desc_depth#);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase eta with grave";
+beginchar(oct"252",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; grave(x_baryctr); endchar;
+%
+
+cmchar "Lowercase eta with rough breathing and circumflex";
+beginchar(oct"302",width#+1.3u#,Circ_ht#,desc_depth#);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing and circumflex";
+beginchar(oct"312",width#+1.3u#,Circ_ht#,desc_depth#);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+
+cmchar "Lowercase eta with grave and iota subscript";
+beginchar(oct"332",width#+1.3u#,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"342",width#+1.3u#,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"352",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with acute and iota subscript";
+beginchar(oct"303",width#+1.3u#,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"313",width#+1.3u#,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"323",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with rough breathing, grave and iota subscript";
+beginchar(oct"362",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with smooth breathing and grave and iota subscript";
+beginchar(oct"363",width#+1.3u#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with circumflex and iota subscript";
+beginchar(oct"333",width#+1.3u#,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"343",width#+1.3u#,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"353",width#+1.3u#,Circ_ht#,desc_depth#);
+this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with iota subscript";
+beginchar(oct"322",width#+1.3u#,x_height#,desc_depth#);
+this_letter; iota_sub(pos_stem); endchar;
+
+picture pic.iota;
+picture savedpicture;
+%
+% ======================================================================
+% JHTA
+% ======================================================================
+%
+def dims = 7u#,asc_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+%
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+1.25u;
+pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360);
+x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2;
+top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo;
+filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
+ & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl
+pos2'(bar,90); pos4'(bar,90); z2'=z2l; z4'=z4l;
+filldraw stroke z2'e--z4'e; % bar
+math_fit(-.3asc_height#*slant-u#+.5curve#,ic#-.5u#);
+traba(-.5u);
+enddef;
+%
+cmchar "Lowercase theta";
+beginchar("j",dims);
+this_letter; penlabels(1,2,3,4); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% IWTA
+% ======================================================================
+%
+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 acc_corr = 0 enddef;
+%
+def gen_letter=
+adjust_fit(if monospace: u#,u# else: 0,0 fi); pickup fine.nib;
+pos1(stem,0); lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo;
+x2=x1-.25u; x4=w; hook_out(2,3,4)(skewed); % closing hook
+filldraw circ_stroke z1e{down}...{-u,-x_height}z2e; % stem
+math_fit(0,ic#); numeric x_baryctr; x_baryctr=x1;
+enddef;
+%
+cmchar "Lowercase iota";
+beginchar("i",dims);
+this_letter; penlabels(1,2,3,4); endchar;
+%
+cmchar "Lowercase iota with rough breathing";
+beginchar(oct"205",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar;
+%
+cmchar "Lowercase iota with smooth breathing";
+beginchar(oct"215",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar;
+%
+cmchar "Lowercase iota with acute";
+beginchar(oct"225",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase iota with rough breathing and acute";
+beginchar(oct"235",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase iota with smooth breathing and acute";
+beginchar(oct"245",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase iota with rough breathing and grave";
+beginchar(oct"265",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase iota with smooth breathing and grave";
+beginchar(oct"275",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase iota with circumflex";
+beginchar(oct"237",width#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase iota with grave";
+beginchar(oct"255",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase iota with rough breathing and circumflex";
+beginchar(oct"305",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase iota with smooth breathing and circumflex";
+beginchar(oct"315",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+
+cmchar "Lowercase iota with diaeresis";
+beginchar(oct"010",width#,circ_ht#,0);
+this_letter; diaeresis(x_baryctr); endchar;
+
+cmchar "Lowercase iota with diaeresis and grave";
+beginchar(oct"012",width#,acc_ht#,0);
+this_letter; diaeresis_grave(x_baryctr); endchar;
+
+cmchar "Lowercase iota with diaeresis and acute";
+beginchar(oct"011",width#,acc_ht#,0);
+this_letter; diaeresis_acute(x_baryctr); endchar;
+
+cmchar "Lowercase iota with diaeresis and circumflex";
+beginchar(oct"013",width#,Circ_ht#,0);
+this_letter; diaeresis_circumflex(x_baryctr); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% KAPPA
+% ======================================================================
+%
+def dims = 8.5u#,x_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+%
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+.5u;
+pos1(stem,0); pos2(stem,0); pos3(vair,90); pos4(vair,90); pos5(flare,90);
+x1=x2=x3; lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; y2-.5stem=-oo;
+filldraw z1l---z2l..z2r---z1r..cycle; % stem
+y3=bar_height; top y4r=h; x4+.5flare=hround(w-1.5u); z5r=z4r;
+path p,q; p=z3l{right}..{right}z4l; q=z5r{right}..z5l{left}...cycle;
+numeric t; t=ypart(p intersectiontimes q);
+filldraw stroke z3e{right}..{right}z4e; % upper diagonal
+filldraw subpath(0,t) of q--cycle; % bulb
+pos7(stem,0); pos8(vair,90); pos9(hair,180);
+x9+.5hair=hround(w+.5hair-epsilon); y9=1/3x_height;
+lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo;
+filldraw stroke z3e{right}...z7e{down}
+ ...z8e{right}...{up}z9e; % lower diagonal
+math_fit(0,ic#);
+traba(-.5u);
+enddef;
+%
+cmchar "Lowercase kappa";
+beginchar("k",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% LAMBDA
+% ======================================================================
+%
+def dims = 8u#,asc_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = -.25u#,-.25u# enddef;
+def krn = -.75u# enddef;
+%
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+2.5u;
+pos1(vair,90); lft x1=hround .1u; top y1r=h;
+x2=x1+2u; y2=.7[x_height,h]; x3=w-2u; bot y4=-oo; y3=max(.07h,y4+eps);
+z4-(.25u,0)=whatever[z2,z3]; numeric theta; theta=angle(z2-z3)-90;
+pos2(stem,theta); pos3(stem,theta); pos4(stem,0);
+filldraw circ_stroke z1e{right}...z2e---z3e
+ ...{2(x4e-x3e),y4e-y3e}z4e; % long diagonal
+y5=.5[bar_height,x_height]; z5=whatever[z2,z3];
+x6=1.5u; y6-.5stem=-oo; pos5(hair,theta-90); pos6(stem,angle(z5-z6)-90);
+filldraw circ_stroke z6e--z5e;
+traba(-u);% short diagonal
+enddef;
+%
+cmchar "Lowercase lambda";
+beginchar("l",dims);
+this_letter; penlabels(1,2,3,4,5,6); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% MI
+% ======================================================================
+
+def dims = 8.25u#,x_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,.5stem# enddef;
+
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib;
+w:=w+.75u; interim superness:=more_super;
+pos1(stem,-180); pos2(stem,-180); x1=x2=x3; lft x1r=hround(1.5u-.5stem);
+y1+.5stem=h+oo; y2-.5stem=-d-o;
+filldraw z1r---z2r..z2l---z1l..cycle; % left stem
+pos3(stem,-180); pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5];
+pos6(stem,0); rt x6r=hround(w-2.5u+.5stem);
+x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook
+y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h;
+filldraw stroke super_arc.e(3,4)...{up}z5e; % left stem and arc
+filldraw circ_stroke z6e--z7e; % right stem
+math_fit(desc_depth#*slant+.5stem#-u#,ic#);
+traba(-.75u);
+enddef;
+
+cmchar "Lowercase mu";
+beginchar("m",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% NI
+% ======================================================================
+
+def dims = 8.5u#,x_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib;
+pos3(vair,-90); pos4(stem,0); bot y3r=0; y4+.5stem=h+oo;
+x3-.5stem=hround(1.5u-.5stem); x4+.5stem=hround(w-1.5u+.5stem);
+filldraw circ_stroke z4e{down}...{-36u,-h}z3e; % diagonal
+pickup tiny.nib; pos1(stem,0); pos2(stem,0);
+top y1=h+min(oo,serif_drop); bot y2=0; x1=x2=x3;
+z=((z4{down}...{-36u,-h}z3)intersectionpoint((x2r,0)--(x2r,h)));
+filldraw z1l--z2l--z--z1r--cycle; % stem
+sloped_serif.l(1,2,a,1/3,jut,serif_drop); traba(.5u);% upper left serif
+math_fit(0,ic#-1/3x_height#*slant-.5u#); enddef;
+
+cmchar "Lowercase nu";
+beginchar("n",dims);
+this_letter; penlabels(1,2,3,4); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% XI
+% ======================================================================
+
+def dims = 7u#,asc_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+u;
+pos10(hair,-720); pos11(vair,-630); pos12(hair,-540); pos13(vair,-450);
+lft x10l=hround 1/3w; x11=x13=.5[x10,x12]; rt x12l=hround(w-2.5u);
+top y10=h; top y13l=bot y11l+vstem+eps=vround(y10-.25(h-x_height));
+y12=.5[y11,y13]; if y11r>y13r: y11r:=y13r:=y12; fi
+pos0(curve,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90);
+numeric theta; theta=90-angle(22u,x_height); slope:=-x_height/22u;
+pos6(stem,theta); pos7(vair,-90); pos8(vair,-135);
+lft x0l=hround u; x1=x3=x11; x2=x12;
+y0=.5[y13,y1]; top y3l=vround .5h=bot y1l+vstem+eps; y2=.5[y1,y3];
+if y1r>y3r: y1r:=y3r:=y2; fi
+lft x4l=hround u; x4r-x4l=hround .5[vair,stem]-fine;
+x6=x7=w-2u; x8=.5w+.5u; y6=-.3d; bot y7r=-d-oo; y8=max(-3/4d-oo,y7l);
+ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r);
+y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r];
+filldraw circ_stroke z10e{down}...z11e{right}...{up}z12e; % opening hook
+filldraw stroke z12e{up}...z13e{left}...z0e{down}
+ ...z1e{right}...{up}z2e; % upper arc
+filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e
+ ---z5e...{up}z4e...{right}z3e...{down}z2e; % main stroke
+math_fit(-.2asc_height#*slant-.5u#,0);
+traba(-.5u);
+enddef;
+
+cmchar "Lowercase xi";
+beginchar("x",dims);
+this_letter; penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13); endchar;
+
+picture savedpicture;
+%
+% ======================================================================
+% OMIKRON
+% ======================================================================
+%
+def width = 8u enddef;
+def dims = width#,x_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+%
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+u;
+pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360);
+x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2;
+top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo;
+filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
+ & pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl
+math_fit(-.3x_height#*slant+.5curve#-u#,ic#);
+ numeric x_baryctr; x_baryctr=.1[x1,x2];
+traba(-.5u); % accent reference
+enddef;
+%
+cmchar "Lowercase omicron";
+beginchar("o",dims);
+this_letter; penlabels(1,2,3,4); endchar;
+%
+cmchar "Lowercase omicron with rough breathing";
+beginchar(oct"203",width#+.6u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omicron with smooth breathing";
+beginchar(oct"213",width#+.6u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omicron with acute";
+beginchar(oct"223",width#+.6u#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase omicron with rough breathing and acute";
+beginchar(oct"233",width#+.6u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omicron with smooth breathing and acute";
+beginchar(oct"243",width#+.6u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omicron with rough breathing and grave";
+beginchar(oct"263",width#+.6u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omicron with smooth breathing and grave";
+beginchar(oct"273",width#+.6u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omicron with grave";
+beginchar(oct"253",width#+.6u#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% PI
+% ======================================================================
+%
+def dims = 9u#,x_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = -.25,0 enddef;
+%
+def gen_letter =
+adjust_fit(0,0); w:=w+u; pi_stroke; % hook and bar
+pos4(hair,0); pos6(hair,0); x4=3.5u; x6=w-4u; y4=y6=y2;
+x5=3u; x7=w-2.5u; y5=y7=.5stem-oo;
+pair v[]; v1=(z4-z5) xscaled 3.14159; v2=(z6-z7) xscaled 3.14159;
+pos5(stem,angle v1-90); pos7(stem,angle v2-90);
+filldraw circ_stroke z5e{v1}...{up}z4e; % left stem
+filldraw circ_stroke z7e{v2}...{up}z6e; % right stem
+math_fit(-.7x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant);
+enddef;
+%
+cmchar "Lowercase pi";
+beginchar("p",dims);
+this_letter; penlabels(1,2,3,4,5,6,7); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% RO
+% ======================================================================
+%
+def width = 7u 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 =
+adjust_fit(0,0); pickup fine.nib; w:=w+1.25u;
+pos2(stem,180); pos3(vair,90); pos4(curve,0); pos5(vair,-90); pos6(stem,-180);
+lft x2r=hround(1.5u-.5stem); x2=x6; x3=x5=.5[x2,x4];
+rt x4r=hround(w-1.5u+.5curve);
+y2=y4=y6=.5[y3,y5]; top y3r=h+oo; bot y5r=-oo;
+filldraw circ_stroke pulled_arc.e(2,3) & pulled_arc.e(3,4)
+ & pulled_arc.e(4,5) & pulled_arc.e(5,6); % bowl
+pos2'(hair,-180); z2'r=z2r; pos1(vstem,-90); pos1'(vstem,90); z1'=z1;
+pos0(hair,0); rt x0r=hround(w-u); bot y0=-d; bot y1r=vround-.9d; x1=x5;
+interim superness:=sqrt superness;
+filldraw stroke pulled_arc.e(0,1'); filldraw stroke pulled_arc.e(1,2'); % tail
+math_fit(desc_depth#*slant+.5stem#-u#,ic#);
+ numeric x_baryctr; x_baryctr=x3;
+ traba(-.5u); % breathing placement
+enddef;
+%
+cmchar "Lowercase rho";
+beginchar("r",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
+%
+
+cmchar "Lowercase rho with rough breathing";
+beginchar(oct"346",width#,acc_ht#,depth#);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase rho with smooth breathing";
+beginchar(oct"356",width#,acc_ht#,depth#);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+picture savedpicture;
+
+% ======================================================================
+% SIGMA TELIKO
+% ======================================================================
+
+def dims= 7u#,x_height#,.5min(desc_depth#,.5x_height#) enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+u;
+numeric heavy_vair; heavy_vair=.25[vair,vstem];
+pos1(heavy_vair,-110); pos2(vair,-90);
+x1+.5heavy_vair=hround(w-u); y1=.1[y2r,bar_height];
+x2=min(.5w+u,x1r-eps); top y2l=h+oo;
+filldraw circ_stroke z1e{x2-x1,2(y2-y1)}...{left}z2e; % upper bulb
+numeric theta; theta=90-angle(16u,x_height); slope:=-x_height/16u;
+pos6(stem,theta); pos7(vair,-90); pos8(vair,-135);
+lft x4l=hround u; x4r-x4l=(hround .5[vair,stem])-fine;
+x6=x7=w-2u; x8=.5w+u; y6=.25[y8,y2]; y8=y7+1/8d; bot y7r=-d-oo;
+ellipse_set(2l,4l,5l,6l); ellipse_set(2r,4r,5r,6r); y4=y4r;
+filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e
+ ---z5e...{up}z4e...{right}z2e; % main stroke
+math_fit(-.5x_height#*slant-.5u#,0);
+traba(-.5u);
+enddef;
+
+cmchar "Final lowercase sigma";
+beginchar("c",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8); endchar;
+
+numeric gen_sigma; gen_sigma=1;
+
+% ======================================================================
+% SIGMA
+% ======================================================================
+
+def dim_sigma = 8.75u#,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 =
+adjust_fit(0,0); pickup fine.nib; w:=w+1.5u;
+pos1(vstem,90); pos2(stem,0); pos3(vair,-90);
+pos4(stem,-180); pos5(vstem,-270); pos6(vstem,-270);
+x1=x3=x5=.5[x2,x4]; rt x2r=hround(w-2.5u);
+lft x4r=hround(1.5u-.5curve);x6=w-1.5u;
+top y1r=h; y2=y4=.5[y1,y3]; bot y3r=-oo; y5=y6=y1;
+filldraw circ_stroke z6e..pulled_arc.e(5,4) & pulled_arc.e(4,3)
+ & pulled_arc.e(3,2) & pulled_arc.e(2,1); % ear and bowl
+math_fit(-.3x_height#*slant+.5curve#-u#,ic#-1/3x_height#*slant);
+traba(-.5u);
+enddef;
+
+cmchar "Initial and medial lowercase sigma";
+beginchar("s",dim_sigma);
+mid_sigma; penlabels(1,2,3,4,5,6); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% TAU
+% ======================================================================
+
+def dims = 7.2u#,x_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = -.25,0 enddef;
+
+def gen_letter=
+adjust_fit(0,0); w:=w+u; pi_stroke; % hook and bar
+pos4(stem,0);
+x4-.5stem=hround(.5w-.5u-.5stem); y4=y2; x5=x4-.25u; x7=x4+3u;
+hook_out(5,6,7)(skewed);
+filldraw circ_stroke z4e{down}...{-u,-x_height}z5e; % stem
+math_fit(-.7x_height#*slant+.5hair#+.5u#,-.5u#);
+enddef;
+
+cmchar "Lowercase tau";
+beginchar("t",dims);
+this_letter; penlabels(1,2,3,4,5,6,7); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% YPSILON
+% ======================================================================
+
+
+def width = 8.5u enddef;
+def dims = width#,x_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+def acc_corr =.5u enddef;
+
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib;
+w:=w+.5u; interim superness:=more_super;
+x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem);
+hook_in(0,1,2)(skewed); % opening hook
+pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0);
+x4=.5w+u; rt x5r=hround(w-.5u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57h;
+filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4)
+ ..tension atleast 1.05..{up}z5e; % left stem and arc
+v_bulb(5,6); % closing bulb
+math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#);
+ numeric x_baryctr; x_baryctr=x4-u;
+enddef;
+
+cmchar "Lowercase upsilon";
+beginchar("u",dims);
+this_letter; penlabels(0,1,2,3,4,5,6,7); endchar;
+
+%
+cmchar "Lowercase upsilon with rough breathing";
+beginchar(oct"206",width#+.9u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing";
+beginchar(oct"216",width#+.9u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with acute";
+beginchar(oct"226",width#+.9u#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase upsilon with rough breathing and acute";
+beginchar(oct"236",width#+.9u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing and acute";
+beginchar(oct"246",width#+.9u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with rough breathing and grave";
+beginchar(oct"266",width#+.9u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing and grave";
+beginchar(oct"276",width#+.9u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with circumflex";
+beginchar(oct"247",width#+.9u#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase upsilon with grave";
+beginchar(oct"256",width#+.9u#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase upsilon with rough breathing and circumflex";
+beginchar(oct"306",width#+.9u#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing and circumflex";
+beginchar(oct"316",width#+.9u#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with diaeresis";
+beginchar(oct"014",width#+.9u#,circ_ht#,0);
+this_letter; diaeresis(x_baryctr); endchar;
+
+cmchar "Lowercase upsilon with diaeresis and grave";
+beginchar(oct"016",width#+.9u#,acc_ht#,0);
+this_letter; diaeresis_grave(x_baryctr); endchar;
+
+cmchar "Lowercase upsilon with diaeresis and acute";
+beginchar(oct"015",width#+.9u#,acc_ht#,0);
+this_letter; diaeresis_acute(x_baryctr); endchar;
+
+cmchar "Lowercase upsilon with diaeresis and circumflex";
+beginchar(oct"017",width#+.9u#,Circ_ht#,0);
+this_letter; diaeresis_circumflex(x_baryctr); endchar;
+
+picture savedpicture;
+%
+% ======================================================================
+% FI
+% ======================================================================
+%
+def dims = 10.5u#,x_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+%
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+.5u;
+pos1(hair,-180); x1=x2+.75u; top y1=h;
+pos2(hair,-180); lft x2r=hround .5u; y2=bar_height;
+pos3(vstem,-90); x3=.5(w+u); bot y3r=-oo;
+pos4(hair,0); rt x4r=hround(w-.5u); y4=y2;
+pos5(vstem,90); x5=.52[x6,x4]; top y5r=h+oo;
+pos6(hair,180); x6=x7; y6=1/3h;
+pos7(stem,180); lft x7r=hround(.5w-.5u-.5stem); y7-.5stem=-d-o;
+filldraw circ_stroke z7e---z6e...{right}z5e...{down}z4e...{left}z3e
+ ...{up}z2e...{3(x1-x2),y1-y2}z1e; % bowl and stem
+math_fit(-.3x_height#*slant,ic#);
+enddef;
+%
+cmchar "Lowercase phi";
+beginchar("f",dims);
+this_letter; penlabels(1,2,3,4,5,6,7); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% QI
+% ======================================================================
+%
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+def dims = 9u#,x_height#,desc_depth# enddef;
+
+def gen_letter=
+adjust_fit(0,0); pickup fine.nib; w:=w+u;
+pos1(hair,180); pos2(vair,80); pos5(vair,80); pos6(hair,180);
+x1-.5hair=hround-.5hair; x6=w-x1; x2=w-x5=u;
+y1=y2l-h/8; top y2r=h+oo; bot y5l=-d-oo; y6=y5r+h/8;
+z0=.5[z2,z5]; z2'=z2l+(.5u,0); z5'=z5r-(.5u,0);
+numeric theta; theta=angle(z5'-z2')+90;
+pos3(stem,theta); pos4(stem,theta);
+y3r=y2r-h/8; y4l=y5l+h/8; z3l=whatever[z2',z0]; z4r=whatever[z0,z5'];
+filldraw stroke z1e{up}...z2e{right}...z3e{z4r-z3l}
+ ..z4e{z4r-z3l}...{right}z5e...{up}z6e; % major diagonal and hooks
+x8=w-x7=2u; y7+.5hair=h; y8-.5hair=-d;
+numeric theta; theta=angle(z7-z8)-90;
+pos7(hair,theta); pos8(hair,theta);
+filldraw z7l---z8l..z8r---z7r..cycle; % minor diagonal
+math_fit((desc_depth#-x_height#)*slant+ic#,ic#);traba(.3u);
+enddef;
+
+cmchar "Lowercase chi";
+beginchar("q",dims);
+this_letter; penlabels(0,1,2,2',3,4,5',5,6,7,8); endchar;
+
+picture savedpicture;
+
+% ======================================================================
+% YI
+% ======================================================================
+
+def dims = 10.5u#,asc_height#,desc_depth# enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib;
+w:=w+.5u; interim superness:=more_super;
+x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem);
+hook_in(0,1,2)(skewed); % opening hook
+pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0);
+x4=.5w+u; rt x5r=hround(w-.5u);
+y3=.7[y4,y5]; bot y4r=-oo; y5=.57x_height;
+filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4)
+ ..tension atleast 1.05..{up}z5e; % left stem and arc
+v_bulb(5,6); % closing bulb
+pos7(.5[hair,stem],0); pos8(.5[hair,stem],0); x7=x8=.5w+.5u;
+top y7=h; bot y8=-d-oo;
+filldraw stroke z7e--z8e; % stem
+math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#);
+enddef;
+
+cmchar "Lowercase psi";
+beginchar("y",dims);
+this_letter; penlabels(0,1,2,3,4,5,6,7,8); endchar;
+
+picture savedpicture;
+%
+% ======================================================================
+% WMEGA
+% ======================================================================
+%
+def width = 8.3u enddef;
+def height = x_height enddef;
+def dims = width#,height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+def acc_corr=.5u enddef;
+
+def gen_letter =
+adjust_fit(0,0); pickup fine.nib; w:=w+1.2u;
+pos2(hair,-180); lft x2r=hround.5u; y2=y4=y6=y8=bar_height;
+y1+.5hair=h; x1=x2+.75u; pos1(hair,angle(2(x1-x2),y1-y2)+90);
+pos3(vstem+dw,-90); pos4(hair,0); pos5(vair,90);
+pos6(hair,180); pos7(vstem+dw,270); pos8(hair,360);
+bot y3r=bot y7r=-oo; top y5r=vround(.2[y4,h]+.5vair);
+x3=.5[x2,x4]; x7+.25u=.5[x6,x8]; rt x8r=hround(w-.5u);
+x5+.5stem=hround(.5w+.5stem)+eps;
+x5=.5[x4,x6]; rt x4r-lft x6r=min(stem,2hair)+2eps;
+if x4l<x6l: x4l:=x6l:=x5; fi
+filldraw circ_stroke z1e{2(x2-x1),y2-y1}...z2e{down}...z3e{right}
+ ...{up}z4e...{left}z5e; % left arc
+filldraw stroke z5e{left}...z6e{down}...z7e{right}...{up}z8e; % right arc
+v_bulb(8,9); % closing bulb
+math_fit(-bar_height#*slant,2/3ic#);
+ numeric x_baryctr; x_baryctr=.5[x4,x6];
+ numeric pos_stem; pos_stem=x_baryctr; traba(-.5u);
+enddef;
+
+cmchar "Lowercase omega";
+beginchar("w",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8,9); endchar;
+%
+cmchar "Lowercase omega with rough breathing";
+beginchar(oct"204",width#+u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omega with smooth breathing";
+beginchar(oct"214",width#+u#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with acute";
+beginchar(oct"224",width#+u#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase omega with rough breathing and acute";
+beginchar(oct"234",width#+u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omega with smooth breathing and acute";
+beginchar(oct"244",width#+u#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with rough breathing and grave";
+beginchar(oct"264",width#+u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omega with smooth breathing and grave";
+beginchar(oct"274",width#+u#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with circumflex";
+beginchar(oct"227",width#+u#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+%
+cmchar "Lowercase omega with grave";
+beginchar(oct"254",width#+u#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase omega with rough breathing and circumflex";
+beginchar(oct"304",width#+u#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase omega with smooth breathing and circumflex";
+beginchar(oct"314",width#+u#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with grave and iota subscript";
+beginchar(oct"334",width#+u#,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"344",width#+u#,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"354",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with acute and iota subscript";
+beginchar(oct"325",width#+u#,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"335",width#+u#,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"345",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with rough breathing, grave and iota subscript";
+beginchar(oct"364",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with smooth breathing and grave and iota subscript";
+beginchar(oct"365",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with circumflex and iota subscript";
+beginchar(oct"355",width#+u#,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"326",width#+u#,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"336",width#+u#,acc_ht#,iota_dp#);
+this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with iota subscript";
+beginchar(oct"324",width#+u#,height#,iota_dp#);
+this_letter; iota_sub(pos_stem); endchar;
+
+picture pic.iota;
+picture savedpicture;
+
+endinput;
+% ======================================================================
+
diff --git a/fonts/greek/kd/mf/kdlig.mf b/fonts/greek/kd/mf/kdlig.mf
new file mode 100644
index 0000000000..570a3d6d9f
--- /dev/null
+++ b/fonts/greek/kd/mf/kdlig.mf
@@ -0,0 +1,264 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% File : kdlig.mf
+%
+% Main ligature Table for Greek Characters
+%
+% K J Dryllerakis May 1991
+%
+% JK 3-Jun-1992: included ligatures for <`a and >`a etc.
+%
+k#:=-.7u#;kk#:=-1.8u#;kkk#:=-2.5u#; % Some units
+mk#:=-1.2u#; % more units
+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
+%
+% Dase'ia + something
+%
+ligtable "<":
+ "~" =: oct"100", "'" =: oct"126",
+ "`" =: oct"001", "r" =: oct"346",
+ "a" =: oct"200", "e" =: oct"201", "h" =: oct"202",
+ "o" =: oct"203", "w" =: oct"204", "i" =: oct"205", "u" =: oct"206",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Psili + Something
+%
+ligtable ">":
+ "~" =: oct"134", "'" =: oct"136",
+ "`" =: oct"002", "r" =: oct"356",
+ "a" =: oct"210", "e" =: oct"211", "h" =: oct"212",
+ "o" =: oct"213", "w" =: oct"214", "i" =: oct"215", "u" =: oct"216",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Daseia + Ojeia + Something
+%
+ligtable oct"126": % rough breathing and acute,
+ "a" =: oct"230", "e" =: oct"231", "h" =: oct"232",
+ "o" =: oct"233", "w" =: oct"234", "i" =: oct"235", "u" =: oct"236",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Psili + Ojeia + something
+%
+ligtable oct"136": % smooth breathing and acute
+ "a" =: oct"240", "e" =: oct"241", "h" =: oct"242",
+ "o" =: oct"243", "w" =: oct"244", "i" =: oct"245", "u" =: oct"246",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Daseia + Vareia + Something
+%
+ligtable oct"001": % rough breathing and grave,
+ "a" =: oct"260", "e" =: oct"261", "h" =: oct"262",
+ "o" =: oct"263", "w" =: oct"264", "i" =: oct"265", "u" =: oct"266",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Psili + Vareia + something
+%
+ligtable oct"002": % smooth breathing and grave
+ "a" =: oct"270", "e" =: oct"271", "h" =: oct"272",
+ "o" =: oct"273", "w" =: oct"274", "i" =: oct"275", "u" =: oct"276",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+%
+% Daseia + Perisp + Something
+%
+ligtable oct"100": % smooth breathing and acute
+ "a" =: oct"300", "h" =: oct"302",
+ "w" =: oct"304", "i" =: oct"305", "u" =: oct"306",
+ "A" kern 2kk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Psili + Perisp + something
+%
+ligtable oct"134": % rough breathing and acute,
+ "a" =: oct"310", "h" =: oct"312",
+ "w" =: oct"314", "i" =: oct"315", "u" =: oct"316",
+ "A" kern 2kk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+% Diairesis
+%
+ligtable diaer: "'" =: oct"043", "`" =: oct"044", "~" =: oct"040",
+ "i" =: oct"010", "u" =: oct"014";
+ligtable oct"043": "i" =: oct"011", "u" =: oct"015";
+ligtable oct"044": "i" =: oct"012", "u" =: oct"016";
+ligtable oct"040": "i" =: oct"013", "u" =: oct"017";
+%
+% Ojeia + something
+%
+ligtable "'": diaer =: oct"043", "'" =: oct"035",
+ "a" =: oct"220", "e" =: oct"221", "h" =: oct"222",
+ "o" =: oct"223", "w" =: oct"224", "i" =: oct"225", "u" =: oct"226",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+%
+% Perisp + something
+%
+ligtable "~": diaer =: oct"040",
+ "a" =: oct"207", "h" =: oct"217", "i" =: oct "237", "u" =: oct "247",
+ "w" =: oct"227";
+%
+% Vareia + something
+%
+ligtable "`": diaer =: oct"044", "`" =: oct"034",
+ "a" =: oct"250", "e" =: oct"251", "h" =: oct"252",
+ "o" =: oct"253", "w" =: oct"254", "i" =: oct"255", "u" =: oct"256",
+ "A" kern 2kk#, "E" kern kk#, "O" kern kkk#, "I" kern kk#, "U" kern kkk#,
+ "W" kern kk#, "H" kern kkk#;
+%
+
+%
+ligtable "l":
+ "h" kern mk#,
+ oct"262" kern mk#, oct"272" kern mk#, oct"363" kern mk#, oct"363" kern mk#,
+ oct"222" kern mk#, oct"252" kern mk#, oct"322" kern mk#,
+ oct"332" kern mk#, oct"303" kern mk#, oct"333" kern mk#, oct"217" kern mk#,
+ "u" kern mk#, oct"226" kern mk#, oct"256" kern mk#, oct"247" kern mk#,
+ oct"266" kern mk#, oct"276" kern mk#,
+ "o" kern k#, oct"223" kern k#, oct"253" kern k#, oct"263" kern k#,
+ oct"273" kern k#,
+ "a" kern k#,
+ oct"220" kern mk#, oct"250" kern mk#, oct"320" kern mk#,
+ oct"330" kern mk#, oct"301" kern mk#, oct"331" kern mk#, oct"207" kern mk#,
+ "i" kern k#, oct"225" kern k#, oct"255" kern k#, oct"237" kern k#,
+ oct"265" kern k#, oct"275" kern k#;
+
+ligtable "u": oct"206" : oct"216" : oct"226" : oct"236" : oct"246" : oct"256":
+ oct"306": oct"316": oct"247": oct"266" : oct"276":
+ "g" kern k#, "r" kern -k#;
+
+ligtable "e": oct"201" : oct"211" : oct"221" : oct"231" : oct"241" : oct"251":
+ oct"261" : oct"271":
+ "i" kern k#, oct"205" kern k#, oct"215" kern k#, oct"225" kern k#,
+ oct"235" kern k#, oct"245" kern k#, oct"255" kern k#,
+ oct"305" kern k#, oct"315" kern k#, oct"010" kern k#,
+ oct"011" kern k#, oct"012" kern k#, oct"013" kern k#, "n" kern k#;
+
+ligtable "D" : "u" kern k#, oct"226" kern k#, oct"256" kern k#, "h" kern mk#,
+ oct"222" kern mk#, oct"252" kern mk#;
+
+ligtable "k" : "o" kern k#, oct"223" kern k#, oct"253" kern k#;
+
+ligtable "R" : "a" kern k#, oct"220" kern k#, oct"250" kern k#,
+ oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#,
+ oct"207" kern k#, "w" kern k#,
+ oct"224" kern k#, oct"244" kern k#, oct"227" kern k#;
+ligtable "h": "|" =: oct"322", "m" kern -k#, "r" kern -k#;
+ligtable oct"202": "|" =: oct"342", "m" kern -k#, "r" kern -k#;
+ligtable oct"212": "|" =: oct"352", "m" kern -k#, "r" kern -k#;
+ligtable oct"222": "|" =: oct"303", "m" kern -k#, "r" kern -k#;
+ligtable oct"232": "|" =: oct"313", "m" kern -k#, "r" kern -k#;
+ligtable oct"242": "|" =: oct"323", "m" kern -k#, "r" kern -k#;
+ligtable oct"252": "|" =: oct"332", "m" kern -k#, "r" kern -k#;
+ligtable oct"302": "|" =: oct"343", "m" kern -k#, "r" kern -k#;
+ligtable oct"312": "|" =: oct"353", "m" kern -k#, "r" kern -k#;
+ligtable oct"217": "|" =: oct"333", "m" kern -k#, "r" kern -k#;
+ligtable oct"262": "|" =: oct"362", "m" kern -k#, "r" kern -k#;
+ligtable oct"272": "|" =: oct"363", "m" kern -k#, "r" kern -k#;
+
+ligtable "m" : "n" kern k#, "a" kern k#, oct"220" kern k#, oct"250" kern k#,
+ oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#,
+ oct"207" kern k#;
+
+ligtable "o" : oct"203" : oct"213" : oct"223" : oct"233" : oct"243" :
+ oct"253" :
+ "u" kern k#, oct"206" kern k#, oct"216" kern k#, oct"226" kern k#,
+ oct"236" kern k#, oct"246" kern k#, oct"256" kern k#,
+ oct"306" kern k#, oct"316" kern k#, oct"247" kern k#,
+ "k" kern k#,
+ "q" kern k#, "n" kern k#, "m" kern -k#;
+ligtable "r" : "m" kern -k#;
+
+ligtable "z" : "o" kern k#, oct"223" kern k#, "a" kern k#,
+ oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#,
+ oct"220" kern k#, oct"250" kern k#, oct"320" kern k#,
+ oct"330" kern k#, oct"301" kern k#, oct"331" kern k#, oct"207" kern k#,
+ oct"262" kern k#, oct"272" kern k#, oct"363" kern k#, oct"363" kern k#,
+ "h" kern k#, oct"222" kern k#, oct"252" kern k#, oct"217" kern k#;
+
+ligtable "K" : "a" kern k#,
+ oct"220" kern k#, oct"250" kern k#, oct"320" kern k#,
+ oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#,
+ oct"330" kern k#, oct"301" kern k#, oct"331" kern k#, oct"207" kern k#;
+
+ligtable "w": "|" =: oct"324", "q" kern k#;
+ligtable oct"204": "|" =: oct"344", "q" kern k#;
+ligtable oct"214": "|" =: oct"354", "q" kern k#;
+ligtable oct"224": "|" =: oct"325", "q" kern k#;
+ligtable oct"234": "|" =: oct"335", "q" kern k#;
+ligtable oct"244": "|" =: oct"345", "q" kern k#;
+ligtable oct"254": "|" =: oct"334", "q" kern k#;
+ligtable oct"304": "|" =: oct"326", "q" kern k#;
+ligtable oct"314": "|" =: oct"336", "q" kern k#;
+ligtable oct"227": "|" =: oct"355", "q" kern k#;
+ligtable oct"264": "|" =: oct"364", "q" kern k#;
+ligtable oct"274": "|" =: oct"365", "q" kern k#;
+
+ligtable "g" : "w" kern k#, oct"227" kern k#, oct"254" kern k#, oct"224" kern k#;
+
+ligtable "T" : "h" kern k#,
+ oct"222" kern k#, oct"252" kern k#, oct"322" kern k#,
+ oct"262" kern k#, oct"272" kern k#, oct"363" kern k#, oct"363" kern k#,
+ oct"332" kern k#, oct"303" kern k#, oct"333" kern k#, oct"217" kern k#,
+ "o" kern mk#,
+ oct"223" kern mk#, oct"253" kern mk#;
+
+ligtable "x" : "o" kern k#, oct"223" kern k#, oct"253" kern k#,
+ "a" kern k#,
+ oct"220" kern k#, oct"250" kern k#, oct"320" kern k#,
+ oct"270" kern k#, oct"260" kern k#, oct"360" kern k#, oct"361" kern k#,
+ oct"330" kern k#, oct"301" kern k#, oct"331" kern k#, oct"207" kern k#;
+
+ligtable "A" : "g" kern mk#, "d" kern k#;
+ligtable "O" : "l" kern k#;
+
+ligtable "a": "|" =: oct"320", "n" kern k#;
+ligtable oct"200": "|" =: oct"340", "n" kern k#;
+ligtable oct"210": "|" =: oct"350", "n" kern k#;
+ligtable oct"220": "|" =: oct"301", "n" kern k#;
+ligtable oct"230": "|" =: oct"311", "n" kern k#;
+ligtable oct"240": "|" =: oct"321", "n" kern k#;
+ligtable oct"250": "|" =: oct"330", "n" kern k#;
+ligtable oct"300": "|" =: oct"341", "n" kern k#;
+ligtable oct"310": "|" =: oct"351", "n" kern k#;
+ligtable oct"207": "|" =: oct"331", "n" kern k#;
+ligtable oct"260": "|" =: oct"360", "n" kern k#;
+ligtable oct"270": "|" =: oct"361", "n" kern k#;
+
+ligtable "U" : "p" kern mk#;
+
+endinput;
+
diff --git a/fonts/greek/kd/mf/kdligcom.mf b/fonts/greek/kd/mf/kdligcom.mf
new file mode 100644
index 0000000000..5bb7a6f7b6
--- /dev/null
+++ b/fonts/greek/kd/mf/kdligcom.mf
@@ -0,0 +1,142 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts
+%
+% Ligature Table for MonoSpace Greek Characters
+%
+% K J Dryllerakis May 1991
+%
+k#:=-.7u#;kk#:=-1.8u#;kkk#:=-2.5u#; % Some units
+mk#:=-1.2u#; % more units
+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
+%
+% Dase'ia + something
+%
+ligtable "<":
+ "~" =: oct"100", "'" =: oct"126",
+ "`" =: oct"001", "r" =: oct"346",
+ "a" =: oct"200", "e" =: oct"201", "h" =: oct"202",
+ "o" =: oct"203", "w" =: oct"204", "i" =: oct"205", "u" =: oct"206";
+%
+% Psili + Something
+%
+ligtable ">":
+ "~" =: oct"134", "'" =: oct"136",
+ "`" =: oct"002", "r" =: oct"356",
+ "a" =: oct"210", "e" =: oct"211", "h" =: oct"212",
+ "o" =: oct"213", "w" =: oct"214", "i" =: oct"215", "u" =: oct"216";
+%
+% Daseia + Ojeia + Something
+%
+ligtable oct"126": % rough breathing and acute,
+ "a" =: oct"230", "e" =: oct"231", "h" =: oct"232",
+ "o" =: oct"233", "w" =: oct"234", "i" =: oct"235", "u" =: oct"236";
+%
+% Psili + Ojeia + something
+%
+ligtable oct"136": % smooth breathing and acute
+ "a" =: oct"240", "e" =: oct"241", "h" =: oct"242",
+ "o" =: oct"243", "w" =: oct"244", "i" =: oct"245", "u" =: oct"246";
+%
+%
+% Daseia + Perisp + Something
+%
+ligtable oct"134": % rough breathing and acute,
+ "a" =: oct"300", "h" =: oct"302",
+ "w" =: oct"304", "i" =: oct"305", "u" =: oct"306";
+%
+% Psili + Perisp + something
+%
+ligtable oct"100": % smooth breathing and acute
+ "a" =: oct"310", "h" =: oct"312",
+ "w" =: oct"314", "i" =: oct"315", "u" =: oct"316";
+%
+% Diairesis
+%
+ligtable diaer: "'" =: oct"043", "`" =: oct"044", "~" =: oct"040",
+ "i" =: oct"010", "u" =: oct"014";
+ligtable oct"043": "i" =: oct"011", "u" =: oct"015";
+ligtable oct"044": "i" =: oct"012", "u" =: oct"016";
+ligtable oct"040": "i" =: oct"013", "u" =: oct"017";
+%
+% Ojeia + something
+%
+ligtable "'": diaer =: oct"043", "'" =: oct"035",
+ "a" =: oct"220", "e" =: oct"221", "h" =: oct"222",
+ "o" =: oct"223", "w" =: oct"224", "i" =: oct"225", "u" =: oct"226";
+%
+%
+% Perisp + something
+%
+ligtable "~": diaer =: oct"040",
+ "a" =: oct"207", "h" =: oct"217", "i" =: oct "237", "u" =: oct "247",
+ "w" =: oct"227";
+%
+% Vareia + something
+%
+ligtable "`": diaer =: oct"044", "`" =: oct"034",
+ "a" =: oct"250", "e" =: oct"251", "h" =: oct"252",
+ "o" =: oct"253", "w" =: oct"254", "i" =: oct"255", "u" =: oct"256";
+%
+%
+ligtable "h": "|" =: oct"322";
+ligtable oct"202": "|" =: oct"342";
+ligtable oct"212": "|" =: oct"352";
+ligtable oct"222": "|" =: oct"303";
+ligtable oct"232": "|" =: oct"313";
+ligtable oct"242": "|" =: oct"323";
+ligtable oct"252": "|" =: oct"332";
+ligtable oct"302": "|" =: oct"343";
+ligtable oct"312": "|" =: oct"353";
+ligtable oct"217": "|" =: oct"333";
+
+ligtable "w": "|" =: oct"324";
+ligtable oct"204": "|" =: oct"344";
+ligtable oct"214": "|" =: oct"354";
+ligtable oct"224": "|" =: oct"325";
+ligtable oct"234": "|" =: oct"335";
+ligtable oct"244": "|" =: oct"345";
+ligtable oct"254": "|" =: oct"334";
+ligtable oct"304": "|" =: oct"326";
+ligtable oct"314": "|" =: oct"336";
+ligtable oct"227": "|" =: oct"355";
+
+ligtable "a": "|" =: oct"320";
+ligtable oct"200": "|" =: oct"340";
+ligtable oct"210": "|" =: oct"350";
+ligtable oct"220": "|" =: oct"301";
+ligtable oct"230": "|" =: oct"311";
+ligtable oct"240": "|" =: oct"321";
+ligtable oct"250": "|" =: oct"330";
+ligtable oct"300": "|" =: oct"341";
+ligtable oct"310": "|" =: oct"351";
+ligtable oct"207": "|" =: oct"331";
+
diff --git a/fonts/greek/kd/mf/kdlower.mf b/fonts/greek/kd/mf/kdlower.mf
new file mode 100644
index 0000000000..a3cca3604e
--- /dev/null
+++ b/fonts/greek/kd/mf/kdlower.mf
@@ -0,0 +1,1383 @@
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% File : kdlower.mf
+%
+% Lower Case Greek Letters KD PAckage
+%
+% ======================================================================
+% Lowercase alfa
+% ======================================================================
+%
+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,0); x5=.65[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{down}...z6e{right}...{up}z7e; %diagonal and
+ numeric x_baryctr; x_baryctr= .25[x4,x1];
+ 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;
+
+cmchar "Lowercase alpha with rough breathing";
+beginchar(oct"200",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase alpha with smooth breathing";
+beginchar(oct"210",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with acute";
+beginchar(oct"220",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase alpha with rough breathing and acute";
+beginchar(oct"230",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase alpha with smooth breathing and acute";
+beginchar(oct"240",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with rough breathing and grave";
+beginchar(oct"260",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase alpha with smooth breathing and grave";
+beginchar(oct"270",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with circumflex";
+beginchar(oct"207",width#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase alpha with grave";
+beginchar(oct"250",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+
+cmchar "Lowercase alpha with rough breathing and circumflex";
+beginchar(oct"300",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase alpha with smooth breathing and circumflex";
+beginchar(oct"310",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase alpha with iota subscript";
+beginchar(oct"320",width#,height#,iota_dp#);
+this_letter; iota_sub(pos_stem); endchar;
+%
+cmchar "Lowercase alpha with grave and iota subscript";
+beginchar(oct"330",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"340",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"350",width#,acc_ht#,iota_dp#);
+this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with acute and iota subscript";
+beginchar(oct"301",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"311",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"321",width#,acc_ht#,iota_dp#);
+this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with rough breathing, grave and iota subscript";
+beginchar(oct"360",width#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with smooth breathing and grave and iota subscript";
+beginchar(oct"361",width#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase alpha with circumflex and iota subscript";
+beginchar(oct"331",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"341",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"351",width#,acc_ht#,iota_dp#);
+this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+
+picture pic.iota;
+picture savedpicture;
+%
+% ======================================================================
+% lowercase beta [KJD 19.02.91]
+% ======================================================================
+%
+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;
+
+picture savedpicture;
+%
+% ======================================================================
+% lowercase gamma
+% ======================================================================
+%
+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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% DELTA
+% ======================================================================
+%
+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 l
+ & 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 ints:
+ % 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 callt |Stem|.)
+ z8l=z1l; numeric thin_stem, med_stem; thin_stem=.5[hair,Stem];
+ % the aperture, measured perpendicular to the axis, equals |Stem|
+ numeric apert; apert=2Stem+thin_stem-currentbreadth; % |apeth(z10l-z8l);|
+ numeric left_goal; lft left_goal=vround(lft x3r+.5u); % most 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
+%
+ 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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% Lowercase Epsilon [KJD 19.02.91]
+% ======================================================================
+%
+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); % * pos2(.75vstem,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
+ % * rt x1r=w;
+ z1'=(x1r,y1l+.5(flare-currentbreadth)); %approximation to z1
+ numeric slope; slope=angle((z2-z1')yscaled 2);
+ pos1(flare,slope-90); % * pos1(.5flare,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;
+%
+cmchar "Lowercase epsilon with rough breathing";
+beginchar(oct"201",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase epsilon with smooth breathing";
+beginchar(oct"211",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+
+cmchar "Lowercase epsilon with acute";
+beginchar(oct"221",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+
+cmchar "Lowercase epsilon with rough breathing and acute";
+beginchar(oct"231",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+
+cmchar "Lowercase epsilon with smooth breathing and acute";
+beginchar(oct"241",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+
+cmchar "Lowercase epsilon with rough breathing and grave";
+beginchar(oct"261",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+
+cmchar "Lowercase epsilon with smooth breathing and grave";
+beginchar(oct"271",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+
+cmchar "Lowercase epsilon with grave";
+beginchar(oct"251",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+
+picture savedpicture;
+%
+% ======================================================================
+% ZHTA
+% ======================================================================
+%
+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(hair,slope+90);
+ pos5(stem,-90); bot y5r=0; x5=.5w; % inflection pt
+ pos7(vstem,-270); y6=.5[y7r,y5r]; x7-.5vstem=hround x5;
+ pos2(stem,slope+90); z2l=z3l; filldraw double_circ_stroke
+ % bowl and tail
+ z7e{right}...z6e{up}...z5e{left}...z4e{up}...z2e{dir slope};
+ % where handle attaches
+ pos1(curve,0); lft x1l=hround(lft x4r+.25u); y1+.5curve=h+o; % end of handle
+ filldraw circ_stroke z1e{down}...z3e{dir slope};
+enddef;
+%
+cmchar "Lowercase zeta";
+beginchar("z",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% HTA
+% ======================================================================
+%
+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);
+ rt x2r=hround(w-.75u); y2r=.5x_height; pos2(hair,0);
+ lft x5r=hround(1.5u); y5-.5stem=-o; pos5(stem,-180);
+ top y4r=x_height+o; x4r=.5[lft x2l,rt x5l];
+ pos6(hair,180); y6=y2;
+ if straight:
+ x1=x2;x5=x6; pos4(stem,90);
+ filldraw double_circ_stroke z1e--pulled_arc.e(2,4)&pulled_arc.e(4,6)--z5e;
+ else:
+ x1r=x2r; 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 4}...z4e{-z4'e}; % left leg
+ z6r=((0,y2)--(w,y2)) intersectionpoint (z5r{(z4-z5) yscaled 4}...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;
+%
+cmchar "Lowercase eta with rough breathing";
+beginchar(oct"202",width#,acc_ht#,desc_depth#);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing";
+beginchar(oct"212",width#,acc_ht#,desc_depth#);
+this_letter; spirit(x_baryctr)>; endchar;
+
+cmchar "Lowercase eta with acute";
+beginchar(oct"222",width#,acc_ht#,desc_depth#);
+this_letter; acute(x_baryctr); endchar;
+
+cmchar "Lowercase eta with rough breathing and acute";
+beginchar(oct"232",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 eta with rough breathing and grave";
+beginchar(oct"262",width#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing and grave";
+beginchar(oct"272",width#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase eta with circumflex";
+beginchar(oct"217",width#,circ_ht#,desc_depth#);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase eta with grave";
+beginchar(oct"252",width#,acc_ht#,desc_depth#);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase eta with rough breathing and circumflex";
+beginchar(oct"302",width#,Circ_ht#,desc_depth#);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase eta with smooth breathing and circumflex";
+beginchar(oct"312",width#,Circ_ht#,desc_depth#);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase eta with grave and iota subscript";
+beginchar(oct"332",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"342",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"352",width#,acc_ht#,desc_depth#);
+this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with acute and iota subscript";
+beginchar(oct"303",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"313",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"323",width#,acc_ht#,desc_depth#);
+this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with rough breathing, grave and iota subscript";
+beginchar(oct"362",width#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with smooth breathing and grave and iota subscript";
+beginchar(oct"363",width#,acc_ht#,desc_depth#);
+this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with circumflex and iota subscript";
+beginchar(oct"333",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"343",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"353",width#,Circ_ht#,desc_depth#);
+this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase eta with iota subscript";
+beginchar(oct"322",width#,x_height#,desc_depth#);
+this_letter; iota_sub(pos_stem); endchar;
+
+picture pic.iota;
+picture savedpicture;
+%
+% ======================================================================
+% JHTA
+% ======================================================================
+%
+def dims = 9u#,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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% IWTA
+% ======================================================================
+%
+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;
+%
+cmchar "Lowercase iota with rough breathing";
+beginchar(oct"205",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr if serifs: +.25u fi)<; endchar;
+%
+cmchar "Lowercase iota with smooth breathing";
+beginchar(oct"215",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr if serifs: -.25u fi)>; endchar;
+%
+cmchar "Lowercase iota with acute";
+beginchar(oct"225",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase iota with rough breathing and acute";
+beginchar(oct"235",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase iota with smooth breathing and acute";
+beginchar(oct"245",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase iota with rough breathing and grave";
+beginchar(oct"265",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase iota with smooth breathing and grave";
+beginchar(oct"275",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase iota with circumflex";
+beginchar(oct"237",width#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase iota with grave";
+beginchar(oct"255",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase iota with rough breathing and circumflex";
+beginchar(oct"305",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase iota with smooth breathing and circumflex";
+beginchar(oct"315",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+
+cmchar "Lowercase iota with diaeresis";
+beginchar(oct"010",width#,circ_ht#,0);
+this_letter; diaeresis(x_baryctr); endchar;
+
+cmchar "Lowercase iota with diaeresis and grave";
+beginchar(oct"012",width#,acc_ht#,0);
+this_letter; diaeresis_grave(x_baryctr); endchar;
+
+cmchar "Lowercase iota with diaeresis and acute";
+beginchar(oct"011",width#,acc_ht#,0);
+this_letter; diaeresis_acute(x_baryctr); endchar;
+
+cmchar "Lowercase iota with diaeresis and circumflex";
+beginchar(oct"013",width#,Circ_ht#,0);
+this_letter; diaeresis_circumflex(x_baryctr); endchar;
+
+picture savedpicture;
+%
+% ======================================================================
+% KAPPA
+% ======================================================================
+%
+def dims = 9.5u#,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 mid
+ 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/3[z1,z3] fi; z4-z1=z3-z7; % 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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% LAMBDA
+% ======================================================================
+%
+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-.5u; 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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% MI
+% ======================================================================
+%
+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+.5stem; bot y8=-d-oo; % end of handle
+ pos8(stem,angle(z4'l xscaled 2)-120); 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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% NI
+% ======================================================================
+%
+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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% XI
+% ======================================================================
+%
+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(hair,slope+90); % top rt
+ pos2(stem,slope+90); z2l=z3l;
+ filldraw circ_stroke z2e{-dir slope}..z4{down}...z5e{dir slope};
+ % where handle attaches
+ pos1(curve,0); lft x1l=hround(lft x7r+.25u); y1+.5curve=h+o; % end of handle
+ filldraw circ_stroke z1e{down}...z3e{dir slope};
+enddef;
+%
+cmchar "Lowercase xi";
+beginchar("x",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% OMIKRON
+% ======================================================================
+%
+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;
+%
+cmchar "Lowercase omicron with rough breathing";
+beginchar(oct"203",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omicron with smooth breathing";
+beginchar(oct"213",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omicron with acute";
+beginchar(oct"223",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase omicron with rough breathing and acute";
+beginchar(oct"233",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omicron with smooth breathing and acute";
+beginchar(oct"243",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omicron with rough breathing and grave";
+beginchar(oct"263",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omicron with smooth breathing and grave";
+beginchar(oct"273",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omicron with grave";
+beginchar(oct"253",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% PI
+% ======================================================================
+%
+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-.7stem=-oo; % left stem
+ numeric slope; slope=angle((z5-z6)xscaled2); pos6(1.2stem,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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% RO
+% ======================================================================
+%
+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=-d-oo; x9=lft x4r+.5stem; % end of handle
+ pos9(stem,angle((z9-z4)xscaled3)-120); 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;
+%
+
+cmchar "Lowercase rho with rough breathing";
+beginchar(oct"346",width#,acc_ht#,depth#);
+this_letter; spirit(x_baryctr)<; endchar;
+
+cmchar "Lowercase rho with smooth breathing";
+beginchar(oct"356",width#,acc_ht#,depth#);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% SIGMA
+% ======================================================================
+%
+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("c",dims);
+this_letter; penlabels(1,2,3,4,5,6,7,8); endchar;
+%
+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;
+%
+cmchar "Initial and medial lowercase sigma";
+beginchar("s",dim_sigma);
+mid_sigma; penlabels(1,2,3,4,5,6,7,8,9); endchar;
+%
+picture savedpicture;
+%
+% ======================================================================
+% TAU
+% ======================================================================
+%
+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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% UPSILON
+% ======================================================================
+%
+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;
+%
+cmchar "Lowercase upsilon with rough breathing";
+beginchar(oct"206",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing";
+beginchar(oct"216",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with acute";
+beginchar(oct"226",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase upsilon with rough breathing and acute";
+beginchar(oct"236",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing and acute";
+beginchar(oct"246",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with rough breathing and grave";
+beginchar(oct"266",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing and grave";
+beginchar(oct"276",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with circumflex";
+beginchar(oct"247",width#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+cmchar "Lowercase upsilon with grave";
+beginchar(oct"256",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase upsilon with rough breathing and circumflex";
+beginchar(oct"306",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+%
+cmchar "Lowercase upsilon with smooth breathing and circumflex";
+beginchar(oct"316",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase upsilon with diaeresis";
+beginchar(oct"014",width#,circ_ht#,0);
+this_letter; diaeresis(x_baryctr); endchar;
+
+cmchar "Lowercase upsilon with diaeresis and grave";
+beginchar(oct"016",width#,acc_ht#,0);
+this_letter; diaeresis_grave(x_baryctr); endchar;
+
+cmchar "Lowercase upsilon with diaeresis and acute";
+beginchar(oct"015",width#,acc_ht#,0);
+this_letter; diaeresis_acute(x_baryctr); endchar;
+
+cmchar "Lowercase upsilon with diaeresis and circumflex";
+beginchar(oct"017",width#,Circ_ht#,0);
+this_letter; diaeresis_circumflex(x_baryctr); endchar;
+
+
+picture savedpicture;
+%
+% ======================================================================
+% 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,.5[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)(.25[vair,stem],.5[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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% HI
+% ======================================================================
+%
+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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% YI
+% ======================================================================
+%
+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;
+%
+picture savedpicture;
+%
+% ======================================================================
+% WMEGA
+% ======================================================================
+%
+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;
+%
+cmchar "Lowercase omega with rough breathing";
+beginchar(oct"204",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omega with smooth breathing";
+beginchar(oct"214",width#,acc_ht#,0);
+this_letter; spirit(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with acute";
+beginchar(oct"224",width#,acc_ht#,0);
+this_letter; acute(x_baryctr); endchar;
+%
+cmchar "Lowercase omega with rough breathing and acute";
+beginchar(oct"234",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omega with smooth breathing and acute";
+beginchar(oct"244",width#,acc_ht#,0);
+this_letter; spirit_acute(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with rough breathing and grave";
+beginchar(oct"264",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)<; endchar;
+%
+cmchar "Lowercase omega with smooth breathing and grave";
+beginchar(oct"274",width#,acc_ht#,0);
+this_letter; spirit_grave(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with circumflex";
+beginchar(oct"227",width#,circ_ht#,0);
+this_letter; circumflex(x_baryctr); endchar;
+%
+%
+cmchar "Lowercase omega with grave";
+beginchar(oct"254",width#,acc_ht#,0);
+this_letter; grave(x_baryctr); endchar;
+%
+cmchar "Lowercase omega with rough breathing and circumflex";
+beginchar(oct"304",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)<; endchar;
+
+cmchar "Lowercase omega with smooth breathing and circumflex";
+beginchar(oct"314",width#,Circ_ht#,0);
+this_letter; spirit_circumflex(x_baryctr)>; endchar;
+%
+cmchar "Lowercase omega with grave and iota subscript";
+beginchar(oct"334",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"344",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"354",width#,acc_ht#,iota_dp#);
+this_letter; spirit(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with acute and iota subscript";
+beginchar(oct"325",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"335",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"345",width#,acc_ht#,iota_dp#);
+this_letter; spirit_acute(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with rough breathing, grave and iota subscript";
+beginchar(oct"364",width#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)<; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with smooth breathing and grave and iota subscript";
+beginchar(oct"365",width#,acc_ht#,iota_dp#);
+this_letter; spirit_grave(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with circumflex and iota subscript";
+beginchar(oct"355",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"326",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"336",width#,acc_ht#,iota_dp#);
+this_letter; spirit_circumflex(x_baryctr)>; iota_sub(pos_stem); endchar;
+
+cmchar "Lowercase omega with iota subscript";
+beginchar(oct"324",width#,height#,iota_dp#);
+this_letter; iota_sub(pos_stem); endchar;
+
+picture pic.iota;
+picture savedpicture;
+
+endinput;
+% ======================================================================
+
diff --git a/fonts/greek/kd/mf/kdpunct.mf b/fonts/greek/kd/mf/kdpunct.mf
new file mode 100644
index 0000000000..faba0c168c
--- /dev/null
+++ b/fonts/greek/kd/mf/kdpunct.mf
@@ -0,0 +1,336 @@
+
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+cmchar "Open quotes (eisagwgik'a)";
+ beginchar("{",7.5u#,x_height#,0);
+ adjust_fit(0,0);
+ pos0(.5[hair,stem],0); pos1(1.5stem,0); pos2(.5[hair,stem],0);
+ pos3(.5[hair,stem],0); pos4(1.5stem,0); pos5(.5[hair,stem],0);
+ y0=y3=.9h; y1=y4=.5h; y2=y5=h-y0;
+ x1-.1stem=hround(.5u);
+ x3r=w-u;
+ 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("}",7.5u#,x_height#,0);
+ adjust_fit(0,0);
+ pos0(.5[hair,stem],0); pos1(1.5stem,0); pos2(.5[hair,stem],0);
+ pos3(.5[hair,stem],0); pos4(1.5stem,0); pos5(.5[hair,stem],0);
+ y0=y3=.9h; y1=y4=.5h; y2=y5=h-y0;
+ x1+.1stem=hround(w-.5u);
+ x3l=u;
+ x1-x4=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 "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 bo
+ 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;
+
+def dims = 6u#,asc_height#,0 enddef;
+def ital = 0 enddef;
+def fit_params = 0,0 enddef;
+
+def gen_letter=
+ x1-.5dot_size=hround(.5w-u-.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;
+
+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 "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 "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 "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/kd/mf/kdsl10.mf b/fonts/greek/kd/mf/kdsl10.mf
new file mode 100644
index 0000000000..e5b0dc3123
--- /dev/null
+++ b/fonts/greek/kd/mf/kdsl10.mf
@@ -0,0 +1,117 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Slanted
+% Dimn: 10pt
+% -----------------------------
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDSL"; 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#:=30/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:=1/6; % 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 th
+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?
+italics:=false;
+one_accent:=false;
+%
+generate kdgreek;
diff --git a/fonts/greek/kd/mf/kdti10.mf b/fonts/greek/kd/mf/kdti10.mf
new file mode 100644
index 0000000000..96dc05ac54
--- /dev/null
+++ b/fonts/greek/kd/mf/kdti10.mf
@@ -0,0 +1,119 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Italics
+% Dimn: 10pt
+% -----------------------------
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDTI"; font_size 10pt#;
+
+u#:=19/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#:=9.2/36pt#; % 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#:=87/36pt#; % height of crossbar in lowercase e
+comma_depth#:=70/36pt#; % depth of comma below baseline
+desc_depth#:=70/36pt#; % depth of lowercase descenders
+
+crisp#:=8/36pt#; % 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#:=11/36pt#; % lowercase hairline breadth
+stem#:=23/36pt#; % lowercase stem breadth
+curve#:=28/36pt#; % lowercase curve breadth
+ess#:=27/36pt#; % breadth in middle of lowercase s
+flare#:=29/36pt#; % diameter of bulbs or breadth of terminals
+dot_size#:=38/36pt#; % diameter of dots
+cap_hair#:=11/36pt#; % uppercase hairline breadth
+cap_stem#:=29/36pt#; % uppercase stem breadth
+cap_curve#:=34/36pt#; % uppercase curve breadth
+cap_ess#:=31/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#:=30/36pt#; % protrusion of lowercase serifs
+cap_jut#:=34/36pt#; % protrusion of uppercase serifs
+beak_jut#:=9/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:=.25; % tilt ratio $(\Delta x/\Delta y)$
+otilt:=.2;
+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:=true; % 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;
+monowidth:=false;
+italics:=true;
+
+acc_ht#:=250/36pt#;
+circ_ht#:=225/36pt#;
+Circ_ht#:=250/36pt#;
+iota_dp#:=72/36pt#;
+one_accent:=false;
+
+generate kdgreek % switch to the driver file
+
diff --git a/fonts/greek/kd/mf/kdtt10.mf b/fonts/greek/kd/mf/kdtt10.mf
new file mode 100644
index 0000000000..a66e2b5d6c
--- /dev/null
+++ b/fonts/greek/kd/mf/kdtt10.mf
@@ -0,0 +1,122 @@
+%
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Computer Classic Greek Fonts.
+% -----------------------------
+% Font: Typewriter
+% Dimn: 10pt
+% Rev : 1.0a [EXP]
+% -----------------------------
+%
+% Load Bases
+%
+if unknown cmbase: input cmbase fi
+if unknown kdbase: input kdbase fi
+
+font_identifier:="KDTT"; 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
+
+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?
+italics:=false;
+
+% KD Base Definitions
+
+acc_ht#:=230/36pt#;
+circ_ht#:=230/36pt#;
+Circ_ht#:=250/36pt#;
+iota_dp#:=64/36pt#;
+one_accent:=false;
+
+generate kdgreek;
diff --git a/fonts/greek/kd/mf/kdupper.mf b/fonts/greek/kd/mf/kdupper.mf
new file mode 100644
index 0000000000..2e47c90737
--- /dev/null
+++ b/fonts/greek/kd/mf/kdupper.mf
@@ -0,0 +1,645 @@
+% Computer Classic Greek Font
+% ======================================================================
+% KD Classical Greek Family of Fonts
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% A set of MF source fonts for use with TeX version 3.0 or higher
+% accompanied with macros and hyphenation tables to facilitate
+% the typesetting of greek texts
+%
+% This piece of work is partially based on original work of
+% Sylvio Levi (design of an excellent set of fonts)
+% and Yianni Haralambous (ideas about macros other fonts).
+%
+% This file is part of the greektex package and abides to
+% copyright laws of the GNU general public software licence
+%
+% You are allowed to use or modify this file as long as the
+% original authors are clearly mentioned. It is ILLEGAL to sell
+% any part of this work or work derived from it. You may not
+% charge for this work except to cover for reasonable media
+% expensess.
+%
+% K J Dryllerakis (C) 1991-1992
+%
+% ======================================================================
+%
+% Upper Case Letter driver
+% This file is a rearrangement of code in Computer Modern's romanu.mf
+%
+
+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 y0<h-cap_notch_cut: y0:=h-cap_notch_cut;
+ fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
+ --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
+ ...{up}z0+.5left--cycle; % left and right diagonals
+ else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
+ --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
+ penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
+ penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
+ if hefty: y5r else: y5 fi =5/12y0;
+ y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
+ if serifs: numeric inner_jut; pickup tiny.nib;
+ prime_points_inside(1,2); prime_points_inside(4,3);
+ if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
+ else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
+ dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif
+ dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif
+ penlabels(0,1,2,3,4,5,6);
+endchar;
+
+cmchar "Uppercase beta";
+beginchar("B",12.5u#,cap_height#,0);
+ italcorr .75cap_height#*slant-.5u#;
+ adjust_fit(cap_serif_fit#,0);
+ numeric left_stem,right_curve,middle_weight;
+ left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5;
+ pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0);
+ lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0;
+ filldraw stroke z1e--z2e; % stem
+ penpos3(cap_band,90); penpos4(cap_band,90);
+ penpos6(middle_weight,-90); penpos7(middle_weight,-90);
+ penpos8(middle_weight,90); penpos9(middle_weight,90);
+ penpos5(right_curve-stem_corr,0); penpos10(right_curve,0);
+ penpos11(cap_band,-90); penpos12(cap_band,-90);
+ z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair;
+ z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h;
+ x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u;
+ x5r=hround(w-1.5u); x10r=hround(w-u);
+ if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u];
+ else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u];
+ x4l:=x4l-.5u; x9l:=x9l-.5u; fi
+ x6l:=x6l-.5u; x11l:=x11l-.5u;
+ fill stroke z3e..super_arc.e(4,5) & super_arc.e(5,6)..z7e; % upper lobe
+ fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e; % lower lobe
+ 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,.5cap_jut); fi % lower serif
+ math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12);
+endchar;
+
+cmchar "Uppercase epsilon";
+beginchar("E",12u#-width_adj#,cap_height#,0);
+ italcorr cap_height#*slant-beak_jut#-.5u#;
+ 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-u); y4=good.y(y3l-beak)-eps;
+ arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak
+ pos5(cap_bar,-90); pos6(hair,0);
+ top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
+ pos0(cap_bar,90); pos7(hair,0);
+ z0=z5; x6=x7; y6-y5l=y0l-y7;
+ if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
+ rt x9r=hround(w-.5u);
+ else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
+ arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and seri
+ pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
+ bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
+ arm(8,9,h,beak_darkness,1.5beak_jut); % lower 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,.5cap_jut); fi % lower serif
+ math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8,9);
+endchar;
+
+cmchar "Uppercase eta";
+beginchar("H",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; 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; y5=y6=.52h;
+ 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,inner_jut); % 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,inner_jut,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 iota";
+beginchar("I",max(6u#,4u#+cap_stem#),cap_height#,0);
+italcorr cap_height#*slant-.25u#;
+adjust_fit(cap_serif_fit#,cap_serif_fit#);
+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
+if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif
+ dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif
+math_fit(0,.5ic#); penlabels(1,2); endchar;
+
+cmchar "Uppercase kappa";
+beginchar("K",13.5u#,cap_height#,0);
+italcorr cap_height#*slant-.5u#;
+adjust_fit(cap_serif_fit#,cap_serif_fit#);
+numeric right_jut,stem[],alpha[];
+if serifs: right_jut=.6cap_jut;
+else: right_jut=.4tiny; fi
+pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0);
+lft x1l=lft x2l=hround max(2u,3u-.5fudged.cap_stem); top y1=h; bot y2=0;
+filldraw stroke z1e--z2e; % stem
+stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr);
+stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi);
+top y3=h; rt x3r=hround(r-letter_fit-u-right_jut);
+bot y6=0; rt x6r=hround(r-letter_fit-.75u-right_jut);
+x4=x1; y4=1/3h;
+alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4);
+penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90);
+alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1);
+penpos6(alpha2*(stem2-tiny),0);
+forsuffixes $=l,r: y3'$=h; y6'$=0; z4$=z3'$+whatever*(z3-z4);
+ z5$=z6'$+whatever*(z1-z6)=whatever[z3,z4]; endfor
+z5=.5[z5l,z5r];
+z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4);
+% we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\]
+z6'r=z6r+penoffset z1-z6 of currentpen+whatever*(z1-z6);
+z6'l=z6l+penoffset z6-z1 of currentpen+whatever*(z1-z6);
+fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal
+fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal
+if serifs: numeric inner_jut;
+ if rt x2r+cap_jut+.5u+1<=lft x6l-cap_jut: inner_jut=cap_jut;
+ else: rt x2r+cap_jut+.5u+1=lft x6l-inner_jut; fi
+ dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif
+ dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower stem serif
+ dish_serif(3,4,e,2/3,1.2cap_jut,f,1/2,right_jut)(dark); % upper diagonal seri
+ dish_serif(6,5,g,1/2,inner_jut,h,1/3,right_jut)(dark);fi % lower diagonal ser
+math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar;
+
+cmchar "Uppercase mu";
+beginchar("M",16u#+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#);
+numeric stem[]; % thicknesses of the four strokes
+stem1=hround(fudged.hair+stem_corr);
+stem2=hround(fudged.cap_stem-4stem_corr);
+stem3=hround(fudged.hair-stem_corr);
+stem4=hround(fudged.cap_stem-3stem_corr);
+if stem4<stem1: stem4:=stem1; fi
+pickup tiny.nib; pos1(stem1,0); pos2(stem1,0);
+pos3(stem4,0); pos4(stem4,0);
+x1=x2; x3=x4; x1l=w-x3r; rt x3r=hround min(w-2u,w-3u+.5stem4);
+top y1=top y3=h; bot y2=bot y4=0;
+filldraw stroke z1e--z2e; % left stem
+filldraw stroke z3e--z4e; % right stem
+penpos5(stem2,0); penpos6(stem2,0); penpos7(stem3,0); penpos8(stem3,0);
+x5l=x1; x6l=x7l; x8=lft x3l; x6-x5=x8-x7; y5=y8=h; y6=y7;
+if hefty: y6=if monospace: vround 1/3h else: o fi;
+ numeric upper_notch,lower_notch;
+ upper_notch=h-cap_notch_cut; lower_notch=y6+cap_notch_cut;
+ x1'=rt x1r; z1'=whatever[z5l,z6l]; x3'=lft x3l; z3'=whatever[z7r,z8r];
+ z0=whatever[z5r,z6r]=whatever[z7l,z8l];
+ fill z5l..
+ if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi
+ {z6-z5}diag_in(5l,6l,1,6r)..diag_out(7l,1,7r,8r){z8-z7}
+ if y3'<upper_notch: ...{up}(x3'-1,upper_notch){right} fi
+ ..z8r--diag_out(8r,1,8l,7l){z7-z8}
+ if y0<=lower_notch: ..{z7-z8}z0{z5-z6}..
+ else: ...{down}(x0+.5,lower_notch)--(x0-.5,lower_notch){up}... fi
+ {z5-z6}diag_in(6r,5r,1,5l)--cycle; % diagonals
+else: y6=0; z0=whatever[z5r,z6r]=whatever[z7l,z8l];
+ fill z5l..{z6-z5}diag_in(5l,6l,1,6r)..diag_out(7l,1,7r,8r){z8-z7}
+ ..z8r--diag_out(8r,1,8l,7l){z7-z8}..{z7-z8}z0{z5-z6}
+ ..{z5-z6}diag_in(6r,5r,1,5l)--cycle; fi % diagonals
+if serifs: serif(1,2,a,1/3,-cap_jut); % upper left serif
+ dish_serif(2,1,b,1/2,cap_jut,c,1/2,cap_jut)(dark); % lower left serif
+ serif(3,4,d,1/3,cap_jut); % upper right serif
+ dish_serif(4,3,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower right serif
+math_fit(0,max(.5ic#-.5u#,0));
+penlabels(0,1,1',2,3,3',4,5,6,7,8); endchar;
+
+cmchar "Uppercase nu";
+beginchar("N",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#);
+numeric thin_stem; thin_stem=hround(fudged.hair+stem_corr);
+pickup tiny.nib; pos1(thin_stem,0); pos2(thin_stem,0);
+pos3(thin_stem,0); pos4(thin_stem,0);
+pickup tiny.nib; top y1=top y3=h; bot y2=bot y4=0;
+x1=x2; x3=x4; x1l=w-x3r;
+rt x3r=hround min(w-2u,w-3u+.5fudged.cap_stem);
+filldraw stroke z1e--z2e; % left stem
+filldraw stroke z3e--z4e; % right stem
+if hefty: penpos5(fudged.cap_stem,0); penpos6(fudged.cap_stem,0);
+ x5l=x1; x6r=x4; y5=h; y6=0;
+ numeric upper_notch,lower_notch;
+ upper_notch=h-cap_notch_cut; lower_notch=cap_notch_cut;
+ x1'=rt x1r; z1'=whatever[z5l,z6l]; x4'=lft x4l; z4'=whatever[z5r,z6r];
+ fill z5l..
+ if y1'<upper_notch: {right}(x1'+1,upper_notch){down}... fi
+ {z6-z5}diag_in(5l,6l,1,6r)--z6r..
+ if y4'>lower_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 bracketin
+ 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 y0<h-cap_notch_cut: y0:=h-cap_notch_cut;
+ unfill z0+.5right{down}...{z4-z3}z6--z5{z2-z1}
+ ...{up}z0+.5left--cycle; % counter
+else: unfill z0--z5--z6--cycle; fi % counter
+penlabels(0,1,2,3,4,5,6); endchar;
+
+cmchar "Uppercase theta";
+beginchar("J",14u#,cap_height#,0);
+italcorr .7cap_height#*slant-.5u#;
+adjust_fit(0,0);
+numeric light_curve; light_curve=hround(cap_curve-2stem_corr);
+penpos1(vair,90); penpos3(vround(vair+.5vair_corr),-90);
+penpos2(light_curve,180); penpos4(light_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; y2=y4=.5h-vair_corr; y3r=-o;
+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
+pickup crisp.nib; pos5(cap_vstem,90); pos6(cap_vstem,90);
+lft x5=w-rt x6=hround(x2l+u)+1; y5=y6=.5[y1l,y3l];
+filldraw stroke z5e--z6e; % bar
+if serifs: pos7(hair,0); pos8(hair,0); pos9(hair,0); pos10(hair,0);
+ x7l=x8l=x5; x9r=x10r=x6;
+ y7-y5r=y9-y6r=y5l-y8=y6l-y10=vround .05h;
+ filldraw stroke z7e--z8e; % left serif
+ filldraw stroke z9e--z10e; fi % right serif
+math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#);
+penlabels(1,2,3,4,5,6,7,8,9,10); endchar;
+
+cmchar "Uppercase lambda";
+beginchar("L",12u#,cap_height#,0);
+adjust_fit(cap_serif_fit#,cap_serif_fit#);
+numeric left_stem,outer_jut,alpha;
+left_stem=cap_hair if hefty: -3stem_corr fi;
+outer_jut=.7cap_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*cap_stem,0); penpos4(alpha*cap_stem,0);
+z0=whatever[z1r,z2r]=whatever[z3l,z4l];
+if y0<h-cap_notch_cut: y0:=h-cap_notch_cut;
+ fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
+ --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
+ ...{up}z0+.5left--cycle; % left and right diagonals
+else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
+ --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
+if serifs: numeric inner_jut; pickup tiny.nib;
+ prime_points_inside(1,2); prime_points_inside(4,3);
+ if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
+ else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
+ dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif
+ dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif
+penlabels(0,1,2,3,4,5,6); endchar;
+
+cmchar "Uppercase xi";
+beginchar("X",12u#,cap_height#,0);
+italcorr cap_height#*slant-.35u#;
+adjust_fit(0,0);
+h:=vround(h-2stem_corr);
+numeric shaved_stem; shaved_stem=hround .9[vair,.85cap_stem];
+pickup crisp.nib; pos1(shaved_stem,90); pos2(hair,0);
+top y1r=h; x1=.5w; rt x2r=hround(w-.85u); y2=good.y(y1l-4/9beak)-eps;
+arm(1,2,a,.4beak_darkness,.3beak_jut); % upper right arm and beak
+pos3(hair,180); x3=w-x2; y3=y2;
+arm(1,3,b,.4beak_darkness,-.3beak_jut); % upper left arm and beak
+pos4(shaved_stem,-90); pos5(hair,0);
+bot y4r=0; x4=.5w; rt x5r=hround(w-.75u); y5=good.y(y4l+.5beak)+eps;
+arm(4,5,c,.4beak_darkness,.3beak_jut); % lower right arm and beak
+pos6(hair,180); x6=w-x5; y6=y5;
+arm(4,6,d,.4beak_darkness,-.3beak_jut); % lower left arm and beak
+pos7(shaved_stem,90); pos8(shaved_stem,90);
+lft x7=w-rt x8=hround if serifs: 2.5 else: 2 fi\\ u;
+top y7r=top y8r=vround(.52h+.5shaved_stem);
+filldraw stroke z7e--z8e; % middle bar
+if serifs: numeric xjut;
+ if bot y2>top 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",13u#,cap_height#,0);
+italcorr cap_height#*slant+.45u#;
+adjust_fit(cap_serif_fit#,cap_serif_fit#);
+numeric left_stem,right_stem,outer_jut,dy,alpha;
+left_stem=cap_stem-stem_corr;
+right_stem=min(cap_hair if hefty:-2stem_corr fi,left_stem);
+outer_jut=.75cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.05u;
+x2l=x5l=hround(.5w-.5left_stem); x3r=x5r; y1=y4=h; y2=y3=y5=.4h;
+dy=y1-y2; alpha=((x2l-x1l)++dy)/dy;
+penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
+penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
+penpos5(left_stem,0); penpos6(left_stem,0); x5=x6; y6=0;
+z0=whatever[z1r,z2r]=whatever[z3l,z4l];
+if y0>y2+cap_notch_cut: y0:=y2+cap_notch_cut;
+ fill z0+.5right{up}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)--z5r
+ --diag_end(5r,6r,1,1,6l,5l)--z5l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
+ ...{down}z0+.5left--cycle; % diagonals and stem
+else: fill z0--diag_end(0,4l,1,1,4r,3r)--z5r
+ --diag_end(5r,6r,1,1,6l,5l)--z5l
+ --diag_end(2l,1l,1,1,1r,0)--cycle; fi % diagonals and stem
+if serifs: numeric inner_jut; pickup tiny.nib;
+ prime_points_inside(1,2); prime_points_inside(4,3); prime_points_inside(6,5);
+ if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
+ else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
+ dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % upper left serif
+ dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % upper right serif
+ dish_serif(6',5,e,1/3,cap_jut,f,1/3,cap_jut); fi % lower serif
+math_fit(.5u#-cap_height#*slant,ic#-4u#);
+penlabels(0,1,2,3,4,5,6); 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/kd/mf/plain.mf b/fonts/greek/kd/mf/plain.mf
new file mode 100644
index 0000000000..45c18651d4
--- /dev/null
+++ b/fonts/greek/kd/mf/plain.mf
@@ -0,0 +1,586 @@
+% This is the plain METAFONT base that's described in The METAFONTbook.
+% N.B.: Please change "base_version" whenever this file is modified!
+% And don't modify the file under any circumstances.
+string base_name, base_version; base_name="plain"; base_version="2.0";
+
+message "Preloading the plain base, version "&base_version&": preliminaries,";
+
+delimiters (); % this makes parentheses behave like parentheses
+def upto = step 1 until enddef; % syntactic sugar
+def downto = step -1 until enddef;
+def exitunless expr c = exitif not c enddef;
+let relax = \; % ignore the word `relax', as in TeX
+let \\ = \; % double relaxation is like single
+def ]] = ] ] enddef; % right brackets should be loners
+def -- = {curl 1}..{curl 1} enddef;
+def --- = .. tension infinity .. enddef;
+def ... = .. tension atleast 1 .. enddef;
+
+def gobble primary g = enddef;
+primarydef g gobbled gg = enddef;
+def hide(text t) = exitif numeric begingroup t;endgroup; enddef;
+def ??? = hide(interim showstopping:=1; showdependencies) enddef;
+def stop expr s = message s; gobble readstring enddef;
+
+smoothing:=1; autorounding:=2; % this adjusts curves to the raster
+turningcheck:=2; % this will warn about a "strange path"
+granularity:=1; % this says that pixels are pixels
+
+def interact = % sets up to make "show" commands stop
+ hide(showstopping:=1; tracingonline:=1) enddef;
+
+def loggingall = % puts tracing info into the log
+ tracingcommands:=3; tracingedges:=2; tracingtitles:=1; tracingequations:=1;
+ tracingcapsules:=1; tracingspecs:=1; tracingpens:=1; tracingchoices:=1;
+ tracingstats:=1; tracingoutput:=1; tracingmacros:=1; tracingrestores:=1;
+ enddef;
+
+def tracingall = % turns on every form of tracing
+ tracingonline:=1; showstopping:=1; loggingall enddef;
+
+def tracingnone = % turns off every form of tracing
+ tracingcommands:=0; tracingonline:=0; showstopping:=0;
+ tracingedges:=0; tracingtitles:=0; tracingequations:=0;
+ tracingcapsules:=0; tracingspecs:=0; tracingpens:=0; tracingchoices:=0;
+ tracingstats:=0; tracingoutput:=0; tracingmacros:=0; tracingrestores:=0;
+ enddef;
+
+message " basic constants and mathematical macros,";
+
+% numeric constants
+newinternal eps,epsilon,infinity,_;
+eps := .00049; % this is a pretty small positive number
+epsilon := 1/256/256; % but this is the smallest
+infinity := 4095.99998; % and this is the largest
+_ := -1; % internal constant to make macros unreadable but shorter
+
+% pair constants
+pair right,left,up,down,origin;
+origin=(0,0); up=-down=(0,1); right=-left=(1,0);
+
+% path constants
+path quartercircle,halfcircle,fullcircle,unitsquare;
+quartercircle=(right{up}..(right+up)/sqrt2..up{left}) scaled .5;
+halfcircle=quartercircle & quartercircle rotated 90;
+fullcircle=halfcircle & halfcircle rotated 180 & cycle;
+unitsquare=(0,0)--(1,0)--(1,1)--(0,1)--cycle;
+
+% transform constants
+transform identity;
+for z=origin,right,up: z transformed identity = z; endfor
+
+% picture constants
+picture blankpicture,unitpixel;
+blankpicture=nullpicture; % `display blankpicture...'
+unitpixel=nullpicture; addto unitpixel contour unitsquare;
+
+% string constants
+string ditto; ditto = char 34; % ASCII double-quote mark
+
+% pen constants
+def capsule_def(suffix s) primary u = def s = u enddef enddef;
+capsule_def(pensquare) makepen(unitsquare shifted -(.5,.5));
+capsule_def(penrazor) makepen((-.5,0)--(.5,0)--cycle);
+pen penspeck; penspeck=pensquare scaled eps;
+
+% nullary operators
+vardef whatever = save ?; ? enddef;
+
+% unary operators
+let abs = length;
+
+vardef round primary u =
+ if numeric u: floor(u+.5)
+ elseif pair u: (hround xpart u, vround ypart u)
+ else: u fi enddef;
+
+vardef hround primary x = floor(x+.5) enddef;
+vardef vround primary y = floor(y.o_+.5)_o_ enddef;
+
+vardef ceiling primary x = -floor(-x) enddef;
+
+vardef byte primary s =
+ if string s: ASCII fi s enddef;
+
+vardef dir primary d = right rotated d enddef;
+
+vardef unitvector primary z = z/abs z enddef;
+
+vardef inverse primary T =
+ transform T_; T_ transformed T = identity; T_ enddef;
+
+vardef counterclockwise primary c =
+ if turningcheck>0:
+ interim autorounding:=0;
+ if turningnumber c <= 0: reverse fi fi c enddef;
+
+vardef tensepath expr r =
+ for k=0 upto length r - 1: point k of r --- endfor
+ if cycle r: cycle else: point infinity of r fi enddef;
+
+% binary operators
+
+primarydef x mod y = (x-y*floor(x/y)) enddef;
+primarydef x div y = floor(x/y) enddef;
+primarydef w dotprod z = (xpart w * xpart z + ypart w * ypart z) enddef;
+
+primarydef x**y = if y=2: x*x else: takepower y of x fi enddef;
+def takepower expr y of x =
+ if x>0: mexp(y*mlog x)
+ elseif (x=0) and (y>0): 0
+ else: 1
+ if y=floor y:
+ if y>=0: for n=1 upto y: *x endfor
+ else: for n=_ downto y: /x endfor
+ fi
+ else: hide(errmessage "Undefined power: " & decimal x&"**"&decimal y)
+ fi fi enddef;
+
+vardef direction expr t of p =
+ postcontrol t of p - precontrol t of p enddef;
+
+vardef directionpoint expr z of p =
+ a_:=directiontime z of p;
+ if a_<0: errmessage("The direction doesn't occur"); fi
+ point a_ of p enddef;
+
+secondarydef p intersectionpoint q =
+ begingroup save x_,y_; (x_,y_)=p intersectiontimes q;
+ if x_<0: errmessage("The paths don't intersect"); origin
+ else: .5[point x_ of p, point y_ of q] fi endgroup
+enddef;
+
+tertiarydef p softjoin q =
+ begingroup c_:=fullcircle scaled 2join_radius shifted point 0 of q;
+ a_:=ypart(c_ intersectiontimes p); b_:=ypart(c_ intersectiontimes q);
+ if a_<0:point 0 of p{direction 0 of p} else: subpath(0,a_) of p fi
+ ... if b_<0:{direction infinity of q}point infinity of q
+ else: subpath(b_,infinity) of q fi endgroup enddef;
+newinternal join_radius,a_,b_; path c_;
+
+% special operators
+vardef incr suffix $ = $:=$+1; $ enddef;
+vardef decr suffix $ = $:=$-1; $ enddef;
+
+def reflectedabout(expr w,z) = % reflects about the line w..z
+ transformed
+ begingroup transform T_;
+ w transformed T_ = w; z transformed T_ = z;
+ xxpart T_ = -yypart T_; xypart T_ = yxpart T_; % T_ is a reflection
+ T_ endgroup enddef;
+
+def rotatedaround(expr z, d) = % rotates d degrees around z
+ shifted -z rotated d shifted z enddef;
+let rotatedabout = rotatedaround; % for roundabout people
+
+vardef min(expr u)(text t) = % t is a list of numerics, pairs, or strings
+ save u_; setu_ u; for uu = t: if uu<u_: u_:=uu; fi endfor
+ u_ enddef;
+
+vardef max(expr u)(text t) = % t is a list of numerics, pairs, or strings
+ save u_; setu_ u; for uu = t: if uu>u_: u_:=uu; fi endfor
+ u_ enddef;
+
+def setu_ primary u =
+ if pair u: pair u_ elseif string u: string u_ fi;
+ u_=u enddef;
+
+def flex(text t) = % t is a list of pairs
+ hide(n_:=0; for z=t: z_[incr n_]:=z; endfor
+ dz_:=z_[n_]-z_1)
+ z_1 for k=2 upto n_-1: ...z_[k]{dz_} endfor ...z_[n_] enddef;
+newinternal n_; pair z_[],dz_;
+
+def superellipse(expr r,t,l,b,s)=
+ r{up}...(s[xpart t,xpart r],s[ypart r,ypart t]){t-r}...
+ t{left}...(s[xpart t,xpart l],s[ypart l,ypart t]){l-t}...
+ l{down}...(s[xpart b,xpart l],s[ypart l,ypart b]){b-l}...
+ b{right}...(s[xpart b,xpart r],s[ypart r,ypart b]){r-b}...cycle enddef;
+
+vardef interpath(expr a,p,q) =
+ for t=0 upto length p-1: a[point t of p, point t of q]
+ ..controls a[postcontrol t of p, postcontrol t of q]
+ and a[precontrol t+1 of p, precontrol t+1 of q] .. endfor
+ if cycle p: cycle
+ else: a[point infinity of p, point infinity of q] fi enddef;
+
+vardef solve@#(expr true_x,false_x)= % @#(true_x)=true, @#(false_x)=false
+ tx_:=true_x; fx_:=false_x;
+ forever: x_:=.5[tx_,fx_]; exitif abs(tx_-fx_)<=tolerance;
+ if @#(x_): tx_ else: fx_ fi :=x_; endfor
+ x_ enddef; % now x_ is near where @# changes from true to false
+newinternal tolerance, tx_,fx_,x_; tolerance:=.1;
+
+message " macros for converting from device-independent units to pixels,";
+
+def fix_units = % define the conversion factors, given pixels_per_inch
+ mm:=pixels_per_inch/25.4; cm:=pixels_per_inch/2.54;
+ pt:=pixels_per_inch/72.27; pc:=pixels_per_inch/6.0225;
+ dd:=1238/1157pt; cc:=12dd;
+ bp:=pixels_per_inch/72; in:=pixels_per_inch;
+ hppp:=pt; % horizontal pixels per point
+ vppp:=aspect_ratio*hppp; % vertical pixels per point
+ enddef;
+
+mm#=2.84528; pt#=1; dd#=1.07001; bp#:=1.00375;
+cm#=28.45276; pc#=12; cc#=12.84010; in#:=72.27;
+
+newinternal pixels_per_inch; % the given resolution
+newinternal blacker, o_correction; % device-oriented corrections
+
+def define_pixels(text t) =
+ forsuffixes $=t: $:=$.#*hppp; endfor enddef;
+def define_whole_pixels(text t) =
+ forsuffixes $=t: $:=hround($.#*hppp); endfor enddef;
+def define_whole_vertical_pixels(text t) =
+ forsuffixes $=t: $:=vround($.#*hppp); endfor enddef;
+def define_good_x_pixels(text t) =
+ forsuffixes $=t: $:=good.x($.#*hppp); endfor enddef;
+def define_good_y_pixels(text t) =
+ forsuffixes $=t: $:=good.y($.#*hppp); endfor enddef;
+def define_blacker_pixels(text t) =
+ forsuffixes $=t: $:=$.#*hppp+blacker; endfor enddef;
+def define_whole_blacker_pixels(text t) =
+ forsuffixes $=t: $:=hround($.#*hppp+blacker);
+ if $<=0: $:=1; fi endfor enddef;
+def define_whole_vertical_blacker_pixels(text t) =
+ forsuffixes $=t: $:=vround($.#*hppp+blacker);
+ if $<=0: $:=1_o_; fi endfor enddef;
+def define_corrected_pixels(text t) =
+ forsuffixes $=t: $:=vround($.#*hppp*o_correction)+eps; endfor enddef;
+def define_horizontal_corrected_pixels(text t) =
+ forsuffixes $=t: $:=hround($.#*hppp*o_correction)+eps; endfor enddef;
+
+def lowres_fix(text t) expr ratio =
+ begingroup save min,max,first;
+ forsuffixes $=t: if unknown min: min=max=first=$; min#=max#=$.#;
+ elseif $.#<min#: min:=$; min#:=$.#;
+ elseif $.#>max#: max:=$; max#:=$.#; fi endfor
+ if max/min>ratio*max#/min#: forsuffixes $=t: $:=first; endfor fi
+ endgroup enddef;
+
+message " macros and tables for various modes of operation,";
+
+def mode_setup =
+ warningcheck:=0;
+ if unknown mode: mode=proof; fi
+ numeric aspect_ratio; transform currenttransform;
+ scantokens if string mode:("input "&mode) else: mode_name[mode] fi;
+ if unknown mag: mag=1; fi
+ if unknown aspect_ratio: aspect_ratio=1; fi
+ displaying:=proofing;
+ pixels_per_inch:=pixels_per_inch*mag;
+ if aspect_ratio=1: let o_=\; let _o_=\
+ else: def o_=*aspect_ratio enddef; def _o_=/aspect_ratio enddef fi;
+ fix_units;
+ scantokens extra_setup; % the user's special last-minute adjustments
+ currenttransform:=
+ if unknown currenttransform: identity else: currenttransform fi
+ yscaled aspect_ratio;
+ clearit;
+ pickup pencircle scaled (.4pt+blacker);
+ warningcheck:=1; enddef;
+def smode = string mode; mode enddef;
+string extra_setup, mode_name[];
+extra_setup=""; % usually there's nothing special to do
+newinternal displaying; % if positive, endchar will `showit'
+
+vardef magstep primary m = mexp(46.67432m) enddef;
+
+def mode_def suffix $ =
+ $:=incr number_of_modes;
+ mode_name[$]:=str$ & "_";
+ expandafter quote def scantokens mode_name[$] enddef;
+newinternal number_of_modes;
+
+% proof mode: for initial design of characters
+mode_def proof =
+ proofing:=2; % yes, we're making full proofs
+ fontmaking:=0; % no, we're not making a font
+ tracingtitles:=1; % yes, show titles online
+ pixels_per_inch:=2601.72; % that's 36 pixels per pt
+ blacker:=0; % no additional blackness
+ fillin:=0; % no compensation for fillin
+ o_correction:=1; % no reduction in overshoot
+ enddef;
+
+% smoke mode: for label-free proofs to mount on the wall
+mode_def smoke =
+ proof_; % same as proof mode, except:
+ proofing:=1; % yes, we're making unlabeled proofs
+ extra_setup:=extra_setup&"grayfont black"; % with solid black pixels
+ let makebox=maketicks; % make the boxes less obtrusive
+ enddef;
+
+% lowres mode: for certain devices that print 200 pixels per inch
+mode_def lowres =
+ proofing:=0; % no, we're not making proofs
+ fontmaking:=1; % yes, we are making a font
+ tracingtitles:=0; % no, don't show titles at all
+ pixels_per_inch:=200; % that's the meaning of lowres
+ blacker:=.65; % make pens a bit blacker
+ fillin:=.2; % compensate for diagonal fillin
+ o_correction:=.4; % but don't overshoot as much
+ enddef;
+
+localfont:=lowres; % the mode most commonly used to make fonts
+
+% It is customary to input another file to supplement the PLAIN base.
+% This supplementary file adds analogous modes, corresponding to
+% local output devices, and it redefines `localfont' as appropriate.
+% The values of screen_rows and screen_cols should also be updated.
+% The auxiliary file should set base_version:=base_version&"/localname".
+% Remember that the present file PLAIN.MF should not be changed;
+% all local changes should be confined to a separate file.
+
+message " macros for drawing and filling,";
+
+pen currentpen;
+path currentpen_path;
+picture currentpicture;
+transform currenttransform;
+def t_ = transformed currenttransform enddef;
+
+def fill expr c = addto_currentpicture contour c.t_ enddef;
+def addto_currentpicture = addto currentpicture enddef;
+def draw expr p =
+ addto_currentpicture doublepath p.t_ withpen currentpen enddef;
+def filldraw expr c = fill counterclockwise c withpen currentpen enddef;
+def drawdot expr z = if unknown currentpen_path: def_pen_path_ fi
+ addto_currentpicture contour
+ currentpen_path shifted z.t_ withpen penspeck enddef;
+def def_pen_path_ =
+ hide(currentpen_path=tensepath makepath currentpen) enddef;
+
+def unfill expr c = fill c withweight _ enddef;
+def undraw expr p = draw p withweight _ enddef;
+def unfilldraw expr c = filldraw c withweight _ enddef;
+def undrawdot expr z = drawdot z withweight _ enddef;
+def erase text t = begingroup interim default_wt_:=_;
+ cullit; t withweight _; cullit; endgroup enddef;
+newinternal default_wt_; default_wt_:=1;
+
+def cutdraw expr p = % caution: you may need autorounding=0
+ cutoff(point 0 of p, 180+angle direction 0 of p);
+ cutoff(point infinity of p, angle direction infinity of p);
+ draw p enddef;
+vardef cutoff(expr z,theta) =
+ interim autorounding := 0; interim smoothing := 0;
+ addto pic_ doublepath z.t_ withpen currentpen;
+ addto pic_ contour
+ (cut_ scaled (1+max(pen_lft,pen_rt,pen_top,pen_bot))
+ rotated theta shifted z)t_;
+ cull pic_ keeping (2,2) withweight -default_wt_;
+ addto currentpicture also pic_;
+ pic_:=nullpicture enddef;
+picture pic_; pic_:=nullpicture;
+path cut_; cut_ = ((0,_)--(1,_)--(1,1)--(0,1)--cycle) scaled 1.42;
+
+def pickup secondary q =
+ if numeric q: numeric_pickup_ else: pen_pickup_ fi q enddef;
+def numeric_pickup_ primary q =
+ if unknown pen_[q]: errmessage "Unknown pen"; clearpen
+ else: currentpen:=pen_[q];
+ pen_lft:=pen_lft_[q];
+ pen_rt:=pen_rt_[q];
+ pen_top:=pen_top_[q];
+ pen_bot:=pen_bot_[q];
+ currentpen_path:=pen_path_[q] fi; enddef;
+def pen_pickup_ primary q =
+ currentpen:=q yscaled aspect_ratio;
+ pen_lft:=xpart penoffset down of currentpen;
+ pen_rt:=xpart penoffset up of currentpen;
+ pen_top:=(ypart penoffset left of currentpen)_o_;
+ pen_bot:=(ypart penoffset right of currentpen)_o_;
+ path currentpen_path; enddef;
+newinternal pen_lft,pen_rt,pen_top,pen_bot,pen_count_;
+
+vardef savepen = pen_[incr pen_count_]=currentpen;
+ pen_lft_[pen_count_]=pen_lft;
+ pen_rt_[pen_count_]=pen_rt;
+ pen_top_[pen_count_]=pen_top;
+ pen_bot_[pen_count_]=pen_bot;
+ pen_path_[pen_count_]=currentpen_path;
+ pen_count_ enddef;
+
+def clearpen = currentpen:=nullpen;
+ pen_lft:=pen_rt:=pen_top:=pen_bot:=0;
+ path currentpen_path;
+ enddef;
+def clear_pen_memory =
+ pen_count_:=0;
+ numeric pen_lft_[],pen_rt_[],pen_top_[],pen_bot_[];
+ pen currentpen,pen_[];
+ path currentpen_path, pen_path_[];
+ enddef;
+
+vardef lft primary x = x + if pair x: (pen_lft,0) else: pen_lft fi enddef;
+vardef rt primary x = x + if pair x: (pen_rt,0) else: pen_rt fi enddef;
+vardef top primary y = y + if pair y: (0,pen_top) else: pen_top fi enddef;
+vardef bot primary y = y + if pair y: (0,pen_bot) else: pen_bot fi enddef;
+vardef good.x primary x = hround(x+pen_lft)-pen_lft enddef;
+vardef good.y primary y = vround(y+pen_top)-pen_top enddef;
+vardef good.lft primary z = save z_; pair z_;
+ (z_+(pen_lft,0))t_=round((z+(pen_lft,0))t_); z_ enddef;
+vardef good.rt primary z = save z_; pair z_;
+ (z_+(pen_rt,0))t_=round((z+(pen_rt,0))t_); z_ enddef;
+vardef good.top primary z = save z_; pair z_;
+ (z_+(0,pen_top))t_=round((z+(0,pen_top))t_); z_ enddef;
+vardef good.bot primary z = save z_; pair z_;
+ (z_+(0,pen_bot))t_=round((z+(0,pen_bot))t_); z_ enddef;
+
+vardef penpos@#(expr b,d) =
+ (x@#r-x@#l,y@#r-y@#l)=(b,0) rotated d;
+ x@#=.5(x@#l+x@#r); y@#=.5(y@#l+y@#r) enddef;
+
+def penstroke text t =
+ forsuffixes e = l,r: path_.e:=t; endfor
+ if cycle path_.l: cyclestroke_
+ else: fill path_.l -- reverse path_.r -- cycle fi enddef;
+def cyclestroke_ =
+ begingroup interim turningcheck:=0;
+ addto pic_ contour path_.l.t_ withweight 1;
+ addto pic_ contour path_.r.t_ withweight _;
+ cull pic_ dropping origin withweight default_wt_;
+ addto_currentpicture also pic_;
+ pic_:=nullpicture endgroup enddef;
+path path_.l,path_.r;
+
+message " macros for proof labels and rules,";
+
+vardef makelabel@#(expr s,z) = % puts string s at point z
+ if known z: special lcode_@# & s;
+ numspecial xpart(z.t_); numspecial ypart(z.t_) fi enddef;
+string lcode_,lcode_.top,lcode_.lft,lcode_.rt,lcode_.bot,
+ lcode_.top.nodot,lcode_.lft.nodot,lcode_.rt.nodot,lcode_.bot.nodot;
+lcode_.top=" 1"; lcode_.lft=" 2"; lcode_.rt=" 3"; lcode_.bot=" 4";
+lcode_=" 0"; % change to " /" to avoid listing in overflow column
+lcode_.top.nodot=" 5"; lcode_.lft.nodot=" 6";
+lcode_.rt.nodot=" 7"; lcode_.bot.nodot=" 8";
+
+vardef labels@#(text t) =
+ if proofing>1: forsuffixes $=t:
+ makelabel@#(str$,z$); endfor
+ fi enddef;
+vardef penlabels@#(text t) =
+ if proofing>1: forsuffixes $$=l,,r: forsuffixes $=t:
+ makelabel@#(str$.$$,z$.$$); endfor endfor
+ fi enddef;
+
+def range expr x = numtok[x] enddef;
+def numtok suffix x=x enddef;
+tertiarydef m thru n =
+ m for x=m+1 step 1 until n: , numtok[x] endfor enddef;
+
+def proofrule(expr w,z) =
+ special "rule"; numspecial xpart w; numspecial ypart w;
+ numspecial xpart z; numspecial ypart z enddef;
+def screenrule(expr w,z) =
+ addto currentpicture doublepath w--z withpen rulepen enddef;
+pen rulepen; rulepen = pensquare scaled 2;
+
+def makegrid(text xlist,ylist) =
+ xmin_ := min(xlist); xmax_ := max(xlist);
+ ymin_ := min(ylist); ymax_ := max(ylist);
+ for x=xlist: proofrule((x,ymin_), (x,ymax_)); endfor
+ for y=ylist: proofrule((xmin_,y), (xmax_,y)); endfor
+ enddef;
+
+vardef titlefont suffix $ = special "titlefont "&str$ enddef;
+vardef labelfont suffix $ = special "labelfont "&str$ enddef;
+vardef grayfont suffix $ = special "grayfont "&str$ enddef;
+vardef slantfont suffix $ = special "slantfont "&str$ enddef;
+def proofoffset primary z = % shifts proof output by z
+ special "offset"; numspecial xpart z; numspecial ypart z enddef;
+vardef proofrulethickness expr x =
+ special "rulethickness"; numspecial x enddef;
+
+message " macros for character and font administration,";
+
+def beginchar(expr c,w_sharp,h_sharp,d_sharp) =
+ begingroup
+ charcode:=if known c: byte c else: 0 fi;
+ charwd:=w_sharp; charht:=h_sharp; chardp:=d_sharp;
+ w:=hround(charwd*hppp); h:=vround(charht*hppp); d:=vround(chardp*hppp);
+ charic:=0; clearxy; clearit; clearpen; scantokens extra_beginchar;
+ enddef;
+
+def italcorr expr x_sharp = if x_sharp>0: charic:=x_sharp fi enddef;
+
+def change_width =
+ w:=w if w>charwd*hppp:- else:+ fi 1 enddef;
+
+def endchar =
+ scantokens extra_endchar;
+ if proofing>0: makebox(proofrule); fi
+ chardx:=w; % desired width of the character in pixels
+ shipit;
+ if displaying>0: makebox(screenrule); showit; fi
+ endgroup enddef;
+
+string extra_beginchar, extra_endchar;
+extra_beginchar=extra_endchar="";
+
+def makebox(text r) =
+ for y=0,h.o_,-d.o_: r((0,y),(w,y)); endfor % horizontals
+ for x=0,w: r((x,-d.o_),(x,h.o_)); endfor % verticals
+ if charic<>0: r((w+charic*hppp,h.o_),(w+charic*hppp,.5h.o_)); fi
+ enddef;
+
+def maketicks(text r) =
+ for y=0,h.o_,-d.o_: r((0,y),(10,y)); r((w-10,y),(w,y)); endfor
+ for x=0,w: r((x,10-d.o_),(x,-d.o_)); r((x,h.o_-10),(x,h.o_)); endfor
+ if charic<>0: r((w+charic*hppp,h.o_-10),(w+charic*hppp,h.o_)); fi
+ enddef;
+
+def font_size expr x = designsize:=x enddef;
+def font_slant expr x = fontdimen 1: x enddef;
+def font_normal_space expr x = fontdimen 2: x enddef;
+def font_normal_stretch expr x = fontdimen 3: x enddef;
+def font_normal_shrink expr x = fontdimen 4: x enddef;
+def font_x_height expr x = fontdimen 5: x enddef;
+def font_quad expr x = fontdimen 6: x enddef;
+def font_extra_space expr x = fontdimen 7: x enddef;
+
+def font_identifier expr x = font_identifier_:=x enddef;
+def font_coding_scheme expr x = font_coding_scheme_:=x enddef;
+string font_identifier_, font_coding_scheme_;
+font_identifier_=font_coding_scheme_="UNSPECIFIED";
+
+message "and a few last-minute items.";
+
+vardef z@#=(x@#,y@#) enddef;
+
+newinternal screen_rows, screen_cols, currentwindow;
+screen_rows:=400; % these values should be corrected,
+screen_cols:=500; % by reading in a separate file after PLAIN.MF
+
+def openit = openwindow currentwindow
+ from origin to (screen_rows,screen_cols) at (-50,300) enddef;
+def showit = openit; let showit=showit_; showit enddef; % first time only
+def showit_ = display currentpicture inwindow currentwindow enddef;
+
+def clearxy = save x,y enddef;
+def clearit = currentpicture:=nullpicture enddef;
+def shipit = shipout currentpicture enddef;
+def cullit = cull currentpicture dropping (-infinity,0) enddef;
+
+def screenchars = % endchar should `showit'
+ extra_endchar:=extra_endchar&"showit;" enddef;
+def screenstrokes = % every stroke should `showit'
+ def addto_currentpicture text t=
+ addto currentpicture t; showit enddef; enddef;
+def imagerules = % a box should be part of the character image
+ extra_beginchar:=extra_beginchar & "makebox(screenrule);" enddef;
+def gfcorners = % `maketicks' should send rules to the GF file
+ extra_setup:=extra_setup & "let makebox=maketicks;proofing:=1;" enddef;
+def nodisplays = % endchar shouldn't `showit'
+ extra_setup:=extra_setup & "displaying:=0;" enddef;
+def notransforms = % currenttransform should not be used
+ let t_ = \ enddef;
+
+let bye = end; outer end,bye;
+
+clear_pen_memory; % initialize the `savepen' mechanism
+mode_setup; % establish proof mode as the default
+numeric mode,mag; % but leave mode and mag undefined
diff --git a/fonts/greek/kd/read.me b/fonts/greek/kd/read.me
new file mode 100644
index 0000000000..5e60eaa17e
--- /dev/null
+++ b/fonts/greek/kd/read.me
@@ -0,0 +1,48 @@
+GreeKTeX Ver 3.0[c] Distribution
+
+[doc]
+ Documentation On installation and usage, man pages for unix.
+ grlatex.1 Man Pages for Grlatex package
+ install.tex Installation Notes (plain TeX)
+ usage.tex Usage Manual (plain TeX)
+
+[install]
+ Installation scripts for fonts and formats
+ makefonts Create the KD family of fonts
+
+[latex]
+ Basic Latex files for fomrat building and document styles.
+
+ grart10.sty grbk10.sty grbook.sty grkhyphen.tex
+ grart12.sty grbk11.sty greek.sty grmode.sty
+ grarticle.sty grbk12.sty grfonts.tex lgreek.tex
+
+[tex]
+ Files for building greektex format and greek macros.
+
+ greek.tex Greek Format Definitions
+ greektex.tex Greek Macros for plain TeX
+ grkhyphen.tex Greek Hyphenation Patterns
+
+[mfinput]
+ MF source code for font building.
+
+ kdaccent.mf kddigits.mf kdidigit.mf kdpunct.mf
+ kdbase.mf kdgr10.mf kdilower.mf kdsl10.mf
+ kdbf10.mf kdgr8.mf kdlig.mf kdti10.mf
+ kdbf8.mf kdgr9.mf kdligcom.mf kdtt10.mf
+ kdbf9.mf kdgreek.mf kdlower.mf kdupper.mf
+
+
+Important Note:
+^^^^^^^^^^^^^^^
+ If you are building the greek extension of the LaTeX format
+note that the old font coding scheme is used. The package -although it
+will create a proper Format file- will not run properly under the
+Mittelbach convention for font loading. Hint: Check your lfonts.tex file!
+
+
+K J Dryllerakis
+Logic Programming Group
+Imperial College
+kd@uk.ac.ic.doc
diff --git a/fonts/greek/kd/tex/greek.tex b/fonts/greek/kd/tex/greek.tex
new file mode 100644
index 0000000000..db5745d580
--- /dev/null
+++ b/fonts/greek/kd/tex/greek.tex
@@ -0,0 +1,366 @@
+%
+% GREEK.TEX
+% ---------
+%
+% K J Dryllerakis
+%
+% Dec 7, 1992
+%
+% VERSION: 3.1
+%
+% This is the source file for building the greek format for the
+% kd fsmily of fonts.
+% Note that PLAIN.TEX must exist and bare a fmtversion 3.0 or
+% higher (to ensure existence of language definitions).
+% Greek is defined to be language 1 or actually last_language+1.
+%
+% Pleaaaaaaaaase don't modify this file
+%
+% Note: Used in conjunction with KD Fonts
+% Load the standard macro package
+\input plain
+%
+\message{Greek Definitions:}
+%
+\message{general definitions,}
+%
+\catcode`\@=11 % We will access TeX private macros
+\newwrite\@screen % Define a screen ouput
+\def\showstring#1{\immediate\write\@screen{#1}}
+\def\sp@{ }\def\sp@s{\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@}
+\def\c@p{\showstring{}\showstring{\sp@s\sp@s\sp@s GreekTeX -- Version 3.1}%
+\showstring{\sp@s\sp@s\sp@s ---------------------------}
+\showstring{\sp@s GreekTeX is a macro package for typesetting greek texts.}
+\showstring{\sp@s It is maily compatible with the haralambous package,}
+\showstring{\sp@s from which it inherits the top level macros.}
+\showstring{\sp@s GreekTeX includes easy access to font families, a choise}
+\showstring{\sp@s of delimiters, and makes typesetting scientific papers}
+\showstring{\sp@s in greek as easy as in TeX itself.}
+\showstring{\sp@s}
+\showstring{\sp@s\sp@s\sp@s Copyright K J Dryllerakis 1991-1992}
+\showstring{\sp@s\sp@s\sp@s ------------------------------}%
+}
+\c@p
+%
+% A List of Reserved Keywords that should not be redefined
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% a. accesible from the document
+%
+% \| The character |
+% \begingreek Begin a group of greek text
+% \endgreek End a group of greek text
+% \greek A new language definition
+% \gr switch to classical greek font
+% \gbf switch to classical boldface font
+% \git switch to classical italics font
+% \gsl switch to classical slanted font
+% \gtt switch to classical typewritter font
+% \gt Greater than > symbol
+% \lt Less than < symbol
+% \math If we are using $ as del. it is equiv to $
+% \setgreek Select greek mode to be the primary mode
+% \setlatin Restore standard mode (at any stage)
+% \showstring Log a string on the terminal
+%
+% b. Internal Control Sequences
+%
+% \gr@@kdelimsbar Use | as begin- and end-greek
+% \gr@@kdelimsdol Use $ as begin- and end-greek
+% \@ldend A copy of plain TeX's \end
+% \@screen Screen Output for messages
+% \t@f@nt Remembers greek font used last
+% \t@f@m Remembers greek family used last
+% \t@size Remembers greek point size used last
+% \c@p Product Copyright Notice
+% \grfam Greek classic font family register
+% \grslfam Greek slanted font family register
+% \grttfam Greek typewriter font family register
+% \grbffam Greek boldface font family register
+% \grifam Greek italics font family register
+% \l@tinm@de Definition to restore plain TeX's mode
+%
+% Start Up Definitions
+% --------------------
+%
+\ifx\gr@@kformatloaded\relax\catcode`\@=\active
+ \endinput\else\let\gr@@kformatloaded\relax\fi
+\newif\ifdelimsbar\delimsbarfalse % Check for | as delimiter
+\chardef\|=`\| % A way to access |
+\gdef\t@f@nt{\tengr} % Remember font used last
+\gdef\t@size{\grtenpoint} % Remember size used last
+\gdef\t@f@m{\fam\grfam} % Remember family used last
+% ^ THESE ARE INITIAL VALUES. DO NOT ALTER!
+\newlanguage\greek % Define Greek as a new language
+\def\lt{<} % Remember Less than
+\def\gt{>} % and greater than signs
+\language0 % Switch to default language
+%
+\message{fonts,}
+%
+% Greek Font Bits
+% _______________
+%
+% First we load the greek fonts and declare the families
+% Then we define point sizes for typesetting greek texts
+%
+% Classic Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+\newfam\grfam
+\font\tengr=kdgr10 % 10 point Classic Greek Font
+\font\ninegr=kdgr9 % 9 point Classic Greek Font
+\font\eightgr=kdgr8 % 8 point Classic Greek Font
+\font\sixgr=kdgr8 at 6truept % 6 point simulated Classic Greek (x.75)
+\def\gr{\tengr\fam\grfam}
+%
+% Slanted Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+\newfam\grslfam
+\font\tengrsl=kdsl10 % 10 Point Slanted Greek Font
+\font\ninegrsl=kdsl10 at 9truept% 9 point (sim.) Slanted Greek
+\font\eightgrsl=kdsl10 at 8truept%8 point (sim.) Slanted Greek
+\def\gsl{\tengrsl\fam\grslfam}
+%
+% Boldface Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^
+\newfam\grbffam
+\font\tengrbf=kdbf10 % 10 Point Boldface Greek Font
+\font\ninegrbf=kdbf9 % 9 Point Boldface Greek
+\font\eightgrbf=kdbf8 % 8 Point (sim.) Boldface Greek
+\def\gbf{\tengrbf\fam\grbffam}
+%
+% Italic Greek Family
+% ^^^^^^^^^^^^^^^^^^^
+\newfam\grifam
+\font\tengri=kdti10 % 10 Point Italic Greek Font
+\font\ninegri=kdti10 at 9truept % 9 Point (sim.) Italic Greek
+\font\eightgri=kdti10 at 8truept% 8 Point (sim.) Italic Greek
+\def\git{\tengri\fam\grifam}
+%
+% Typerwriter Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^^^^
+\newfam\grttfam
+\font\tengrtt=kdtt10 % 10 Point Typewritter Greek Font
+\font\ninegrtt=kdtt10 at 9truept% 9 Point (sim.) Typewritter Greek
+\font\eightgrtt=kdtt10 at 8truept% 8 Point (sim.) Typewritter Greek
+\hyphenchar\eightgrtt=-1 \hyphenchar\tengrtt=-1
+\hyphenchar\ninegrtt=-1 % Supress Hyphenation
+\def\gtt{\tengrtt\fam\grttfam}
+%
+% Greek Point Size Conventions
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+\def\grtenpoint{% GREEK TENPOINT
+\gdef\t@size{\grtenpoint}% Make a note of the font size
+\textfont\grfam=\tengr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+\textfont\grbffam=\tengrbf\scriptfont\grbffam=\ninegrbf%
+\textfont\grifam=\tengri\scriptfont\grbffam=\ninegri%
+\textfont\grttfam=\tengrtt%
+\textfont\grslfam=\tengrsl%
+\def\gr{\fam\grfam\tengr}% Switch for classic greek
+\let\rg\gr% Also rg for compatibility
+\def\it{\fam\grifam\tengri}% Switch for Greek Italics
+\def\sl{\fam\grslfam\tengrsl}% Switch for Greek Slanted
+\def\tt{\fam\grttfam\tengrtt}% Switch for Greek Typerwriter
+\def\bf{\fam\grbffam\tengrbf}% Switch for Greek Boldface
+\let\git\it\let\gsl\sl%
+\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+\def\rm{\fam0\tenrm}% Switch For latin roman
+\def\lit{\fam\itfam\tenit}% Switch for latin italics
+\def\lsl{\fam\slfam\tensl}% Switch for latin slanted
+\def\ltt{\fam\ttfam\tentt}% Switch for latin typewriter
+\def\lbf{\fam\bffam\tenbf}% Switch for latin boldface
+\normalbaselineskip=.6cm% Normal Base Line distance
+\setbox\strutbox=\hbox{\vrule height8.5pt width0pt depth4.5pt}%
+\normalbaselines\gr%
+}
+\def\grninepoint{% GREEK NINEPOINT
+\gdef\t@size{\grninepoint}% Make a note of the font size
+\textfont\grfam=\ninegr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+\textfont\grbffam=\ninegrbf\scriptfont\grbffam=\eightgrbf%
+\textfont\grifam=\ninegri\scriptfont\grbffam=\eightgri%
+\textfont\grttfam=\ninegrtt%
+\textfont\grslfam=\ninegrsl%
+\def\gr{\fam\grfam\ninegr}% Switch for classic greek
+\let\rg\gr% Also rg for compatibility
+\def\it{\fam\grifam\ninegri}% Switch for Greek Italics
+\def\sl{\fam\grslfam\ninegrsl}% Switch for Greek Slanted
+\def\tt{\fam\grttfam\ninegrtt}% Switch for Greek Typerwriter
+\def\bf{\fam\grbffam\ninegrbf}% Switch for Greek Boldface
+\let\git\it\let\gsl\sl%
+\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+\def\rm{\fam0\tenrm}% Switch For latin roman
+\def\lit{\fam\itfam\nineit}% Switch for latin italics
+\def\lsl{\fam\slfam\ninesl}% Switch for latin slanted
+\def\ltt{\fam\ttfam\ninett}% Switch for latin typewriter
+\def\lbf{\fam\bffam\ninebf}% Switch for latin boldface
+\normalbaselineskip=.52cm% Normal Base Line distance
+\setbox\strutbox=\hbox{\vrule height8pt width0pt depth3pt}%
+\normalbaselines\gr%
+}
+\def\greightpoint{% GREEK EIGHTPOINT
+\gdef\t@size{\greightpoint}% Make a note of the font size
+\textfont\grfam=\eightgr\scriptfont\grfam=\sixgr\scriptscriptfont\grfam=\sixgr%
+\textfont\grbffam=\eightgrbf\scriptfont\grbffam=\eightgrbf%
+\textfont\grifam=\eightgri\scriptfont\grbffam=\eightgri%
+\textfont\grttfam=\eightgrtt%
+\textfont\grslfam=\eightgrsl%
+\def\gr{\fam\grfam\eightgr}% Switch for classic greek
+\let\rg\gr% Also rg for compatibility
+\def\it{\fam\grifam\eightgri}% Switch for Greek Italics
+\def\sl{\fam\grslfam\eightgrsl}% Switch for Greek Slanted
+\def\tt{\fam\grttfam\eightgrtt}% Switch for Greek Typerwriter
+\def\bf{\fam\grbffam\eightgrbf}% Switch for Greek Boldface
+\let\git\it\let\gsl\sl%
+\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+\def\rm{\fam0\eightrm}% Switch For latin roman
+\def\lit{\fam\itfam\eightit}% Switch for latin italics
+\def\lsl{\fam\slfam\eightsl}% Switch for latin slanted
+\def\ltt{\fam\ttfam\eighttt}% Switch for latin typewriter
+\def\lbf{\fam\bffam\eightbf}% Switch for latin boldface
+\normalbaselineskip=.35cm% Normal Base Line distance
+\setbox\strutbox=\hbox{\vrule height7pt width0pt depth2pt}%
+\normalbaselines\gr%
+}
+%
+% Hyphenation Patterns
+% ^^^^^^^^^^^^^^^^^^^^
+\message{hyphenation,}
+%
+{\language\greek
+\lefthyphenmin=2 \righthyphenmin=2 % disallow x- or -x breaks
+\def\lt{<}%
+\def\gt{>}%
+\catcode`\|=11%
+\catcode`\<=11%
+\catcode`\>=11%
+\catcode`\'=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+\lccode`\|=`\|%
+%
+\input grkhyphen%
+\catcode`\~=13%
+}
+%
+\def\showgreekhyphens#1{{\setbox0\vbox{\parfillskip\z@skip\hsize\maxdimen%
+\language\greek\tengr\pretolerance\m@ne\hbadness0\showboxdepth0\ #1}}}
+%
+%
+\message{miscellaneous macros}
+%
+% Macros For entering greek mode,
+% and delimiter preferences.
+% -------------------------------
+%
+% \begingreek : Begin a group of Greek Text.
+% ^^^^^^^^^^^^ Everything is enclosed in a group to keep
+% changes local. Then we switch to greek hyphenation
+% and iniciate the greekmode. This assigns the correct
+% \catcode values to punctuation and accentuation marks.
+% We then reload the information of the point
+% size used last and switch to the family needed.
+% The \t@f@nt and \t@f@m macro is used to ensure that
+% or fonts and families are remembered.
+%
+% \endgreek : Ends a group of Greek Text.
+% ^^^^^^^^^^ Before ending the group we save information
+% about the current font, to be used when we re-enter
+% greek mode.
+%
+% \gr@@km@de : Switches to greek interpretation of ascii characters
+% ^^^^^^^^^^^ Normally changes are kept local but can be used
+% as a general macro to obtain a global greek mode.
+% Note the different use of | if this is chosen
+% to be a delimiter.
+%
+\def\begingreek{\bgroup\language\greek\gr@@km@de%
+\t@size\t@f@m\t@f@nt\ignorespaces}
+%
+\def\endgreek{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}\egroup}
+%
+\def\gr@@km@de{%
+\ifdelimsbar\else\catcode`\|=11\fi%
+\catcode`\<=11% Turn Everything to letters!
+\catcode`\>=11% All accents are done through ligatures
+\catcode`\'=11%
+\catcode`\`=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+}
+%
+\def\l@tinm@de{%
+\catcode`\|=12%
+\catcode`\<=12% Turn Everything to what plain tex has
+\catcode`\>=12%
+\catcode`\'=12%
+\catcode`\`=12%
+\catcode`\~=13%
+\catcode`\"=12%
+\catcode`\$=3% % Restore the math symbol!
+}
+%
+% Switch Permenantly do greek mode
+%
+\def\setgreek{\delimsbarfalse\gr@@km@de\language\greek}
+%
+% and to latin as well
+%
+\def\setlatin{\l@tinm@de\language0}
+%
+% It is very frequent that the user will ask to \end the document
+% before a greek group was closed. In order to prevent this we
+% redefine the \end command after saving the old one in \@ldend.
+% The new \end checks for un-ended greek groups and if it is found
+% a warning message is issued and the group is automatically closed.
+%
+\let\@ldend=\end
+\gdef\end{\ifnum\language=\greek\endgreek%
+\showstring{GreekTeX Warning: A group of greek text was automatically closed}%
+\fi\@ldend}
+%
+% Since it is possible that switching from one language to
+% the other is very frequent, a special way to avoid \begingreek
+% and \endgreek is defined. This is done through the definition of
+% delimiters; available delims are | and $. If \greekdelims{bar}
+% is chosen then a greek block is marked as | ..greek text.. |
+% In order to access |, use \|.
+% If $ is used, use \math for math mode and \math\math for
+% display mode.
+%
+\gdef\greekdelims#1{\edef\c@mp@re{#1}\def\t@st@a{bar}\def\t@st@b{dollar}%
+\ifx\c@mp@re\t@st@a\gr@@kdelimsbar\else%
+\ifx\c@mp@re\t@st@b\gr@@kdelimsdol\fi\fi}
+%
+% Bar as delimeter
+%
+{\catcode`\|=13\gdef\gr@@kdelimsbar{\catcode`\|=13\delimsbartrue%
+\def|{\ifnum\language=\greek\endgreek\else\begingreek\fi}}
+}
+%
+% Dollar as delimiter
+%
+\let\m@thm@de=$
+{\catcode`\$=13%
+\gdef\gr@@kdelimsdol{\catcode`\$=13%
+\def${\ifnum\language=\greek\endgreek\else\begingreek\fi}%
+\global\let\math=\m@thm@de%
+\gdef\display{\math\math}\gdef\enddisplay{\math\math}}%
+}
+%
+\catcode`\@=12 % at signs are no longer letters
+%
+\def\fmtname{greek}\def\fmtversion{3.1} % identifies the current format
+
+\message{version \fmtversion .)}
+
diff --git a/fonts/greek/kd/tex/greektex.tex b/fonts/greek/kd/tex/greektex.tex
new file mode 100644
index 0000000000..1a801c2692
--- /dev/null
+++ b/fonts/greek/kd/tex/greektex.tex
@@ -0,0 +1,329 @@
+%
+% GREEKTEX.TEX
+% ---------
+%
+% K J Dryllerakis
+%
+% Dec 7, 1992
+%
+% VERSION: 3.1
+%
+% This is the macro file for GreekTeX. If this file is used
+% and not the greek.tex (FMT) no hyphenation patterns for greek
+% are loaded. IT can be used for short greek text inside english text.
+% Note that PLAIN must be preloaded and bare a fmtversion 3.0 or
+% higher (to ensure existence of language definitions).
+% Greek is defined to be language 1 or actually last_language+1.
+%
+% Pleaaaaaaaaase don't modify this file
+%
+% Note: Used in conjunction with KD Fonts
+%
+\catcode`\@=11 % We will access TeX private macros
+\newwrite\@screen % Define a screen ouput
+\def\showstring#1{\immediate\write\@screen{#1}}
+\def\sp@{ }\def\sp@s{\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@\sp@}
+\def\c@p{\showstring{}\showstring{\sp@s\sp@s\sp@s GreekTeX -- Version 3.1}%
+\showstring{\sp@s\sp@s\sp@s ---------------------------}
+\showstring{\sp@s GreekTeX is a macro package for typesetting greek texts.}
+\showstring{\sp@s It is maily compatible with the haralambous package,}
+\showstring{\sp@s from which it inherits the top level macros.}
+\showstring{\sp@s GreekTeX includes easy access to font families, a choise}
+\showstring{\sp@s of delimiters, and makes typesetting scientific papers}
+\showstring{\sp@s in greek as easy as in TeX itself.}
+\showstring{\sp@s}
+\showstring{\sp@s\sp@s\sp@s Copyright K J Dryllerakis 1991-1992}
+\showstring{\sp@s\sp@s\sp@s ------------------------------}%
+}
+\c@p
+%
+% A List of Reserved Keywords that should not be redefined
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+% a. accesible from the document
+%
+% \| The character |
+% \begingreek Begin a group of greek text
+% \endgreek End a group of greek text
+% \greek A new language definition
+% \gr switch to classical greek font
+% \gbf switch to classical boldface font
+% \git switch to classical italics font
+% \gsl switch to classical slanted font
+% \gtt switch to classical typewritter font
+% \gt Greater than > symbol
+% \lt Less than < symbol
+% \math If we are using $ as del. it is equiv to $
+% \setgreek Select greek mode to be the primary mode
+% \setlatin Restore standard mode (at any stage)
+% \showstring Log a string on the terminal
+%
+% b. Internal Control Sequences
+%
+% \gr@@kdelimsbar Use | as begin- and end-greek
+% \gr@@kdelimsdol Use $ as begin- and end-greek
+% \@ldend A copy of plain TeX's \end
+% \@screen Screen Output for messages
+% \t@f@nt Remembers greek font used last
+% \t@f@m Remembers greek family used last
+% \t@size Remembers greek point size used last
+% \c@p Product Copyright Notice
+% \grfam Greek classic font family register
+% \grslfam Greek slanted font family register
+% \grttfam Greek typewriter font family register
+% \grbffam Greek boldface font family register
+% \grifam Greek italics font family register
+% \l@tinm@de Definition to restore plain TeX's mode
+%
+% Start Up Definitions
+% --------------------
+%
+\ifx\gr@@kformatloaded\relax\catcode`\@=\active
+ \endinput\else\let\gr@@kformatloaded\relax\fi
+\newif\ifdelimsbar\delimsbarfalse % Check for | as delimiter
+\chardef\|=`\| % A way to access |
+\gdef\t@f@nt{\tengr} % Remember font used last
+\gdef\t@size{\grtenpoint} % Remember size used last
+\gdef\t@f@m{\fam\grfam} % Remember family used last
+% ^ THESE ARE INITIAL VALUES. DO NOT ALTER!
+\newlanguage\greek % Define Greek as a new language
+\def\lt{<} % Remember Less than
+\def\gt{>} % and greater than signs
+\language0 % Switch to default language
+%
+% Greek Font Bits
+% _______________
+%
+% First we load the greek fonts and declare the families
+% Then we define point sizes for typesetting greek texts
+%
+% Classic Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+\newfam\grfam
+\font\tengr=kdgr10 % 10 point Classic Greek Font
+\font\ninegr=kdgr9 % 9 point Classic Greek Font
+\font\eightgr=kdgr8 % 8 point Classic Greek Font
+\font\sixgr=kdgr8 at 6truept % 6 point simulated Classic Greek (x.75)
+\def\gr{\tengr\fam\grfam}
+%
+% Slanted Greek Family
+% ^^^^^^^^^^^^^^^^^^^^
+\newfam\grslfam
+\font\tengrsl=kdsl10 % 10 Point Slanted Greek Font
+\font\ninegrsl=kdsl10 at 9truept% 9 point (sim.) Slanted Greek
+\font\eightgrsl=kdsl10 at 8truept%8 point (sim.) Slanted Greek
+\def\gsl{\tengrsl\fam\grslfam}
+%
+% Boldface Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^
+\newfam\grbffam
+\font\tengrbf=kdbf10 % 10 Point Boldface Greek Font
+\font\ninegrbf=kdbf9 % 9 Point Boldface Greek
+\font\eightgrbf=kdbf8 % 8 Point Boldface Greek
+\def\gbf{\tengrbf\fam\grbffam}
+%
+% Italic Greek Family
+% ^^^^^^^^^^^^^^^^^^^
+\newfam\grifam
+\font\tengri=kdti10 % 10 Point Italic Greek Font
+\font\ninegri=kdti10 at 9truept % 9 Point (sim.) Italic Greek
+\font\eightgri=kdti10 at 8truept% 8 Point (sim.) Italic Greek
+\def\git{\tengri\fam\grifam}
+%
+% Typerwriter Greek Family
+% ^^^^^^^^^^^^^^^^^^^^^^^^
+\newfam\grttfam
+\font\tengrtt=kdtt10 % 10 Point Typewritter Greek Font
+\font\ninegrtt=kdtt10 at 9truept% 9 Point (sim.) Typewritter Greek
+\font\eightgrtt=kdtt10 at 8truept% 8 Point (sim.) Typewritter Greek
+\hyphenchar\eightgrtt=-1 \hyphenchar\tengrtt=-1
+\hyphenchar\ninegrtt=-1 % Supress Hyphenation
+\def\gtt{\tengrtt\fam\grttfam}
+%
+% Greek Point Size Conventions
+% ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+%
+\def\grtenpoint{% GREEK TENPOINT
+\gdef\t@size{\grtenpoint}% Make a note of the font size
+\textfont\grfam=\tengr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+\textfont\grbffam=\tengrbf\scriptfont\grbffam=\ninegrbf%
+\textfont\grifam=\tengri\scriptfont\grbffam=\ninegri%
+\textfont\grttfam=\tengrtt%
+\textfont\grslfam=\tengrsl%
+\def\gr{\fam\grfam\tengr}% Switch for classic greek
+\let\rg\gr% Also rg for compatibility
+\def\it{\fam\grifam\tengri}% Switch for Greek Italics
+\def\sl{\fam\grslfam\tengrsl}% Switch for Greek Slanted
+\def\tt{\fam\grttfam\tengrtt}% Switch for Greek Typerwriter
+\def\bf{\fam\grbffam\tengrbf}% Switch for Greek Boldface
+\let\git\it\let\gsl\sl%
+\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+\def\rm{\fam0\tenrm}% Switch For latin roman
+\def\lit{\fam\itfam\tenit}% Switch for latin italics
+\def\lsl{\fam\slfam\tensl}% Switch for latin slanted
+\def\ltt{\fam\ttfam\tentt}% Switch for latin typewriter
+\def\lbf{\fam\bffam\tenbf}% Switch for latin boldface
+\normalbaselineskip=.6cm% Normal Base Line distance
+\setbox\strutbox=\hbox{\vrule height8.5pt width0pt depth4.5pt}%
+\normalbaselines\gr%
+}
+\def\grninepoint{% GREEK NINEPOINT
+\gdef\t@size{\grninepoint}% Make a note of the font size
+\textfont\grfam=\ninegr\scriptfont\grfam=\eightgr\scriptscriptfont\grfam=\sixgr%
+\textfont\grbffam=\ninegrbf\scriptfont\grbffam=\eightgrbf%
+\textfont\grifam=\ninegri\scriptfont\grbffam=\eightgri%
+\textfont\grttfam=\ninegrtt%
+\textfont\grslfam=\ninegrsl%
+\def\gr{\fam\grfam\ninegr}% Switch for classic greek
+\let\rg\gr% Also rg for compatibility
+\def\it{\fam\grifam\ninegri}% Switch for Greek Italics
+\def\sl{\fam\grslfam\ninegrsl}% Switch for Greek Slanted
+\def\tt{\fam\grttfam\ninegrtt}% Switch for Greek Typerwriter
+\def\bf{\fam\grbffam\ninegrbf}% Switch for Greek Boldface
+\let\git\it\let\gsl\sl%
+\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+\def\rm{\fam0\tenrm}% Switch For latin roman
+\def\lit{\fam\itfam\nineit}% Switch for latin italics
+\def\lsl{\fam\slfam\ninesl}% Switch for latin slanted
+\def\ltt{\fam\ttfam\ninett}% Switch for latin typewriter
+\def\lbf{\fam\bffam\ninebf}% Switch for latin boldface
+\normalbaselineskip=.52cm% Normal Base Line distance
+\setbox\strutbox=\hbox{\vrule height8pt width0pt depth3pt}%
+\normalbaselines\gr%
+}
+\def\greightpoint{% GREEK EIGHTPOINT
+\gdef\t@size{\greightpoint}% Make a note of the font size
+\textfont\grfam=\eightgr\scriptfont\grfam=\sixgr\scriptscriptfont\grfam=\sixgr%
+\textfont\grbffam=\eightgrbf\scriptfont\grbffam=\eightgrbf%
+\textfont\grifam=\eightgri\scriptfont\grbffam=\eightgri%
+\textfont\grttfam=\eightgrtt%
+\textfont\grslfam=\eightgrsl%
+\def\gr{\fam\grfam\eightgr}% Switch for classic greek
+\let\rg\gr% Also rg for compatibility
+\def\it{\fam\grifam\eightgri}% Switch for Greek Italics
+\def\sl{\fam\grslfam\eightgrsl}% Switch for Greek Slanted
+\def\tt{\fam\grttfam\eightgrtt}% Switch for Greek Typerwriter
+\def\bf{\fam\grbffam\eightgrbf}% Switch for Greek Boldface
+\let\git\it\let\gsl\sl%
+\let\gbf\bf\let\gtt\tt% Retain LaTeX compatibility
+\def\rm{\fam0\eightrm}% Switch For latin roman
+\def\lit{\fam\itfam\eightit}% Switch for latin italics
+\def\lsl{\fam\slfam\eightsl}% Switch for latin slanted
+\def\ltt{\fam\ttfam\eighttt}% Switch for latin typewriter
+\def\lbf{\fam\bffam\eightbf}% Switch for latin boldface
+\normalbaselineskip=.35cm% Normal Base Line distance
+\setbox\strutbox=\hbox{\vrule height7pt width0pt depth2pt}%
+\normalbaselines\gr%
+}
+%
+% Macros For entering greek mode,
+% and delimiter preferences.
+% -------------------------------
+%
+% \begingreek : Begin a group of Greek Text.
+% ^^^^^^^^^^^^ Everything is enclosed in a group to keep
+% changes local. Then we switch to greek hyphenation
+% and iniciate the greekmode. This assigns the correct
+% \catcode values to punctuation and accentuation marks.
+% We then reload the information of the point
+% size used last and switch to the family needed.
+% The \t@f@nt and \t@f@m macro is used to ensure that
+% or fonts and families are remembered.
+%
+% \endgreek : Ends a group of Greek Text.
+% ^^^^^^^^^^ Before ending the group we save information
+% about the current font, to be used when we re-enter
+% greek mode.
+%
+% \gr@@km@de : Switches to greek interpretation of ascii characters
+% ^^^^^^^^^^^ Normally changes are kept local but can be used
+% as a general macro to obtain a global greek mode.
+% Note the different use of | if this is chosen
+% to be a delimiter.
+%
+\def\begingreek{\bgroup\language\greek\gr@@km@de%
+\t@size\t@f@m\t@f@nt\ignorespaces}
+%
+\def\endgreek{\xdef\t@f@nt{\the\font}\xdef\t@f@m{\noexpand\fam\the\fam}\egroup}
+%
+\def\gr@@km@de{%
+\ifdelimsbar\else\catcode`\|=11\fi%
+\catcode`\<=11% Turn Everything to letters!
+\catcode`\>=11% All accents are done through ligatures
+\catcode`\'=11%
+\catcode`\`=11%
+\catcode`\~=11%
+\catcode`\"=11%
+\lccode`\<=`\<%
+\lccode`\>=`\>%
+\lccode`\'=`\'%
+\lccode`\~=`\~%
+\lccode`\"=`\"%
+}
+%
+\def\l@tinm@de{%
+\catcode`\|=12%
+\catcode`\<=12% Turn Everything to what plain tex has
+\catcode`\>=12%
+\catcode`\'=12%
+\catcode`\`=12%
+\catcode`\~=13%
+\catcode`\"=12%
+\catcode`\$=3% % Restore the math symbol!
+}
+%
+% Switch Permenantly do greek mode
+%
+\def\setgreek{\delimsbarfalse\gr@@km@de\language\greek}
+%
+% and to latin as well
+%
+\def\setlatin{\l@tinm@de\language0}
+%
+% It is very frequent that the user will ask to \end the document
+% before a greek group was closed. In order to prevent this we
+% redefine the \end command after saving the old one in \@ldend.
+% The new \end checks for un-ended greek groups and if it is found
+% a warning message is issued and the group is automatically closed.
+%
+\let\@ldend=\end
+\gdef\end{\ifnum\language=\greek\endgreek%
+\showstring{GreekTeX Warning: A group of greek text was automatically closed}%
+\fi\@ldend}
+%
+% Since it is possible that switching from one language to
+% the other is very frequent, a special way to avoid \begingreek
+% and \endgreek is defined. This is done through the definition of
+% delimiters; available delims are | and $. If \greekdelims{bar}
+% is chosen then a greek block is marked as | ..greek text.. |
+% In order to access |, use \|.
+% If $ is used, use \math for math mode and \math\math for
+% display mode.
+%
+\gdef\greekdelims#1{\edef\c@mp@re{#1}\def\t@st@a{bar}\def\t@st@b{dollar}%
+\ifx\c@mp@re\t@st@a\gr@@kdelimsbar\else%
+\ifx\c@mp@re\t@st@b\gr@@kdelimsdol\fi\fi}
+%
+% Bar as delimeter
+%
+{\catcode`\|=13\gdef\gr@@kdelimsbar{\catcode`\|=13\delimsbartrue%
+\def|{\ifnum\language=\greek\endgreek\else\begingreek\fi}}
+}
+%
+% Dollar as delimiter
+%
+\let\m@thm@de=$
+{\catcode`\$=13%
+\gdef\gr@@kdelimsdol{\catcode`\$=13%
+\def${\ifnum\language=\greek\endgreek\else\begingreek\fi}%
+\global\let\math=\m@thm@de%
+\gdef\display{\math\math}\gdef\enddisplay{\math\math}}%
+}
+%
+\catcode`\@=12 % at signs are no longer letters
+%
+\def\fmtname{greek}\def\fmtversion{3.1} % identifies the current format
+
+\endinput
+
+
diff --git a/fonts/greek/kd/tex/grkhyphen.tex b/fonts/greek/kd/tex/grkhyphen.tex
new file mode 100644
index 0000000000..38880ecc1a
--- /dev/null
+++ b/fonts/greek/kd/tex/grkhyphen.tex
@@ -0,0 +1,1181 @@
+%
+%
+% Hyphenation patterns for modern greek language
+% **********************************************
+%
+\patterns{%
+.>a4
+.>'a4
+.>~a4
+.<a4
+.<'a4
+.<~a4
+.'a4
+.>e4
+.>'e4
+.>~e4
+.<e4
+.<'e4
+.<~e4
+.'e4
+.>h4
+.>'h4
+.>~h4
+.<h4
+.<'h4
+.<~h4
+.'h4
+.>i4
+.>'i4
+.>~i4
+.<i4
+.<'i4
+.<~i4
+.'i4
+.>o4
+.>'o4
+.>~o4
+.<o4
+.<'o4
+.<~o4
+.'o4
+.<u4
+.<'u4
+.<~u4
+.'u4
+.>w4
+.>'w4
+.>~w4
+.<w4
+.<'w4
+.<~w4
+.'w4
+a1
+a2i
+a2'i
+a2~i
+a2>i
+a2>'i
+a2>~i
+a2<i
+a2<'i
+a2<~i
+'a3i
+a3"
+a2u
+a2'u
+a2~u
+a2>u
+a2>'u
+a2>~u
+a2<u
+a2<'u
+a2<~u
+'a3u
+e1
+e2i
+e2'i
+e2~i
+e2>i
+e2>'i
+e2>~i
+e2<i
+e2<'i
+e2<~i
+'e3i
+e3"
+e2u
+e2'u
+e2~u
+e2>u
+e2>'u
+e2>~u
+e2<u
+e2<'u
+e2<~u
+'e3u
+h1
+h2u
+h2'u
+h2~u
+h2>u
+h2>'u
+h2>~u
+h2<u
+h2<'u
+h2<~u
+'h3u
+h3"
+i1
+i2a
+i2'a
+i2~a
+'i3a
+~i3a
+u2'a
+i2e
+i2'e
+'i3e
+~i3e
+u2'e
+i2o
+i2'o
+'i3o
+~i3o
+u2'o
+i2w
+i2'w
+i2~w
+'i3w
+~i3w
+u2'w
+'4'
+''4'
+''4>
+''4<
+'''a4
+''>a'4
+''<a'4
+''>~a4
+''<~a4
+'''e4
+'''>e'4
+'''<e'4
+'''h4
+''>h'4
+''<h'4
+''>~h4
+''<~h4
+'''i4
+''>i'4
+''<i'4
+''>~i4
+''<~i4
+'''o4
+''>o'4
+''<o'4
+'''u4
+''>u'4
+''<u'4
+''>~u4
+''<~u4
+'''w4
+''>w'4
+''<w'4
+''>~w4
+''<~w4
+o1
+o2i
+o2'i
+o2~i
+o2>i
+o2>'i
+o2>~i
+o2<i
+o2<'i
+o2<~i
+'o3i
+o3"
+o2u
+o2'u
+o2~u
+o2>u
+o2>'u
+o2>~u
+o2<u
+o2<'u
+o2<~u
+'o3u
+u1
+u2i
+u2'i
+u2~i
+u2>i
+u2>'i
+u2>~i
+u2<i
+u2<'i
+u2<~i
+u3"
+w1
+~a3i
+~a3u
+~h3u
+a1b
+a1g
+a1d
+a1z
+a1j
+a1k
+a1l
+a1m
+a1n
+a1x
+a1p
+a1r
+a1s
+a1t
+a1f
+a1q
+a1y
+e1b
+e1g
+e1d
+e1z
+e1j
+e1k
+e1l
+e1m
+e1n
+e1x
+e1p
+e1r
+e1s
+e1t
+e1f
+e1q
+e1y
+h1b
+h1g
+h1d
+h1z
+h1j
+h1k
+h1l
+h1m
+h1n
+h1x
+h1p
+h1r
+h1s
+h1t
+h1f
+h1q
+h1y
+i1b
+i1g
+i1d
+i1z
+i1j
+i1k
+i1l
+i1m
+i1n
+i1x
+i1p
+i1r
+i1s
+i1t
+i1f
+i1q
+i1y
+o1b
+o1g
+o1d
+o1z
+o1j
+o1k
+o1l
+o1m
+o1n
+o1x
+o1p
+o1r
+o1s
+o1t
+o1f
+o1q
+o1y
+u1b
+u1g
+u1d
+u1z
+u1j
+u1k
+u1l
+u1m
+u1n
+u1x
+u1p
+u1r
+u1s
+u1t
+u1f
+u1q
+u1y
+w1b
+w1g
+w1d
+w1z
+w1j
+w1k
+w1l
+w1m
+w1n
+w1x
+w1p
+w1r
+w1s
+w1t
+w1f
+w1q
+w1y
+2b1b
+2b1z
+2b1j
+2b1k
+2b1m
+2b1n
+2b1x
+2b1s
+2b1t
+2b1f
+2b1q
+2b1y
+2g1b
+2g1g
+2g1z
+2g1j
+2g1m
+2g1x
+2g1s
+2g1t
+2g1f
+2g1q
+2g1y
+2d1b
+2d1g
+2d1d
+2d1z
+2d1j
+2d1k
+2d1l
+2d1m
+2d1n
+2d1x
+2d1p
+2d1s
+2d1t
+2d1f
+2d1q
+2d1y
+2z1b
+2z1g
+2z1d
+2z1z
+2z1j
+2z1k
+2z1l
+2z1m
+2z1n
+2z1x
+2z1p
+2z1r
+2z1s
+2z1t
+2z1f
+2z1q
+2z1y
+2j1b
+2j1g
+2j1d
+2j1z
+2j1j
+2j1k
+2j1m
+2j1n
+2j1x
+2j1p
+2j1s
+2j1t
+2j1f
+2j1q
+2j1y
+2k1b
+2k1g
+2k1d
+2k1z
+2k1j
+2k1k
+2k1m
+2k1n
+2k1x
+2k1p
+2k1s
+2k1f
+2k1q
+2k1y
+2l1b
+2l1g
+2l1d
+2l1z
+2l1j
+2l1k
+2l1l
+2l1m
+2l1n
+2l1x
+2l1p
+2l1r
+2l1s
+2l1t
+2l1f
+2l1q
+2l1y
+2m1b
+2m1g
+2m1d
+2m1z
+2m1j
+2m1k
+2m1l
+2m1m
+2m1x
+2m1r
+2m1s
+2m1t
+2m1f
+2m1q
+2m1y
+2n1b
+2n1g
+2n1d
+2n1z
+2n1j
+2n1k
+2n1l
+2n1m
+2n1n
+2n1x
+2n1p
+2n1r
+2n1s
+2n1f
+2n1q
+2n1y
+2x1b
+2x1g
+2x1d
+2x1z
+2x1j
+2x1k
+2x1l
+2x1m
+2x1n
+2x1x
+2x1p
+2x1r
+2x1s
+2x1t
+2x1f
+2x1q
+2x1y
+2p1b
+2p1g
+2p1d
+2p1z
+2p1j
+2p1k
+2p1m
+2p1x
+2p1p
+2p1s
+2p1f
+2p1q
+2p1y
+2r1b
+2r1g
+2r1d
+2r1z
+2r1j
+2r1k
+2r1l
+2r1m
+2r1n
+2r1x
+2r1p
+2r1r
+2r1s
+2r1t
+2r1f
+2r1q
+2r1y
+2s1b
+2s1d
+2s1z
+sj2m
+2s1l
+2s1n
+2s1x
+2s1r
+2s1s
+2s1y
+2t1b
+2t1g
+2t1d
+2t1z
+2t1j
+2t1k
+2t1l
+2t1m
+2t1n
+2t1x
+2t1p
+2t1t
+2t1f
+2t1q
+2t1y
+2f1b
+2f1g
+2f1d
+2f1z
+2f1k
+2f1m
+2f1n
+2f1x
+2f1p
+2f1s
+2f1f
+2f1y
+2q1b
+2q1g
+2q1d
+2q1z
+2q1j
+2q1k
+2q1m
+2q1n
+2q1x
+2q1p
+2q1s
+2q1f
+2q1q
+2q1y
+2y1b
+2y1g
+2y1d
+2y1z
+2y1j
+2y1k
+2y1l
+2y1m
+2y1n
+2y1x
+2y1p
+2y1r
+2y1s
+2y1t
+2y1f
+2y1q
+2y1y
+a1"'i
+e1"'i
+o1"'i
+a1"'u
+e1"'u
+o1"'u
+h1"'u
+a1"~1
+e1"~i
+o1"~i
+a1"~u
+e1"~u
+o1"~u
+h1"~u
+4'a.
+4~a.
+4'e.
+4~e.
+4'h.
+4~h.
+4'i.
+4~i.
+4'u.
+4~u.
+4'o.
+4~o.
+4'w.
+4~w.
+4'aa.
+4'ab.
+4'ag.
+4'ad.
+4'ae.
+4'az.
+4'ah.
+4'aj.
+4'ai.
+4'ak.
+4'al.
+4'am.
+4'an.
+4'ax.
+4'ao.
+4'ap.
+4'ar.
+4'ac.
+4'at.
+4'au.
+4'af.
+4'aq.
+4'ay.
+4'aw.
+4'ea.
+4'eb.
+4'eg.
+4'ed.
+4'ee.
+4'ez.
+4'eh.
+4'ej.
+4'ei.
+4'ek.
+4'el.
+4'em.
+4'en.
+4'ex.
+4'eo.
+4'ep.
+4'er.
+4'ec.
+4'et.
+4'eu.
+4'ef.
+4'eq.
+4'ey.
+4'ew.
+4'ha.
+4'hb.
+4'hg.
+4'hd.
+4'he.
+4'hz.
+4'hh.
+4'hj.
+4'hi.
+4'hk.
+4'hl.
+4'hm.
+4'hn.
+4'hx.
+4'ho.
+4'hp.
+4'hr.
+4'hc.
+4'ht.
+4'hu.
+4'hf.
+4'hq.
+4'hy.
+4'hw.
+4'ia.
+4'ib.
+4'ig.
+4'id.
+4'ie.
+4'iz.
+4'ih.
+4'ij.
+4'ii.
+4'ik.
+4'il.
+4'im.
+4'in.
+4'ix.
+4'io.
+4'ip.
+4'ir.
+4'ic.
+4'it.
+4'iu.
+4'if.
+4'iq.
+4'iy.
+4'iw.
+}
+\endinput
+% Problem on number of patterns on TeX's memory!
+4'oa.
+4'ob.
+4'og.
+4'od.
+4'oe.
+4'oz.
+4'oh.
+4'oj.
+4'oi.
+4'ok.
+4'ol.
+4'om.
+4'on.
+4'ox.
+4'oo.
+4'op.
+4'or.
+4'oc.
+4'ot.
+4'ou.
+4'of.
+4'oq.
+4'oy.
+4'ow.
+4'ua.
+4'ub.
+4'ug.
+4'ud.
+4'ue.
+4'uz.
+4'uh.
+4'uj.
+4'ui.
+4'uk.
+4'ul.
+4'um.
+4'un.
+4'ux.
+4'uo.
+4'up.
+4'ur.
+4'uc.
+4'ut.
+4'uu.
+4'uf.
+4'uq.
+4'uy.
+4'uw.
+4'wa.
+4'wb.
+4'wg.
+4'wd.
+4'we.
+4'wz.
+4'wh.
+4'wj.
+4'wi.
+4'wk.
+4'wl.
+4'wm.
+4'wn.
+4'wx.
+4'wo.
+4'wp.
+4'wr.
+4'wc.
+4'wt.
+4'wu.
+4'wf.
+4'wq.
+4'wy.
+4'ww.
+4~aa.
+4~ab.
+4~ag.
+4~ad.
+4~ae.
+4~az.
+4~ah.
+4~aj.
+4~ai.
+4~ak.
+4~al.
+4~am.
+4~an.
+4~ax.
+4~ao.
+4~ap.
+4~ar.
+4~ac.
+4~at.
+4~au.
+4~af.
+4~aq.
+4~ay.
+4~aw.
+4~ha.
+4~hb.
+4~hg.
+4~hd.
+4~he.
+4~hz.
+4~hh.
+4~hj.
+4~hi.
+4~hk.
+4~hl.
+4~hm.
+4~hn.
+4~hx.
+4~ho.
+4~hp.
+4~hr.
+4~hc.
+4~ht.
+4~hu.
+4~hf.
+4~hq.
+4~hy.
+4~hw.
+4~ia.
+4~ib.
+4~ig.
+4~id.
+4~ie.
+4~iz.
+4~ih.
+4~ij.
+4~ii.
+4~ik.
+4~il.
+4~im.
+4~in.
+4~ix.
+4~io.
+4~ip.
+4~ir.
+4~ic.
+4~it.
+4~iu.
+4~if.
+4~iq.
+4~iy.
+4~iw.
+4~ua.
+4~ub.
+4~ug.
+4~ud.
+4~ue.
+4~uz.
+4~uh.
+4~uj.
+4~ui.
+4~uk.
+4~ul.
+4~um.
+4~un.
+4~ux.
+4~uo.
+4~up.
+4~ur.
+4~uc.
+4~ut.
+4~uu.
+4~uf.
+4~uq.
+4~uy.
+4~uw.
+4~wa.
+4~wb.
+4~wg.
+4~wd.
+4~we.
+4~wz.
+4~wh.
+4~wj.
+4~wi.
+4~wk.
+4~wl.
+4~wm.
+4~wn.
+4~wx.
+4~wo.
+4~wp.
+4~wr.
+4~wc.
+4~wt.
+4~wu.
+4~wf.
+4~wq.
+4~wy.
+4~ww.
+4a'a.
+4b'a.
+4g'a.
+4d'a.
+4e'a.
+4z'a.
+4h'a.
+4j'a.
+4i'a.
+4k'a.
+4l'a.
+4m'a.
+4n'a.
+4x'a.
+4o'a.
+4p'a.
+4r'a.
+4s'a.
+4t'a.
+4u'a.
+4f'a.
+4q'a.
+4y'a.
+4w'a.
+4a'e.
+4b'e.
+4g'e.
+4d'e.
+4e'e.
+4z'e.
+4h'e.
+4j'e.
+4i'e.
+4k'e.
+4l'e.
+4m'e.
+4n'e.
+4x'e.
+4o'e.
+4p'e.
+4r'e.
+4s'e.
+4t'e.
+4u'e.
+4f'e.
+4q'e.
+4y'e.
+4w'e.
+4a'h.
+4b'h.
+4g'h.
+4d'h.
+4e'h.
+4z'h.
+4h'h.
+4j'h.
+4i'h.
+4k'h.
+4l'h.
+4m'h.
+4n'h.
+4x'h.
+4o'h.
+4p'h.
+4r'h.
+4s'h.
+4t'h.
+4u'h.
+4f'h.
+4q'h.
+4y'h.
+4w'h.
+4a'i.
+4b'i.
+4g'i.
+4d'i.
+4e'i.
+4z'i.
+4h'i.
+4j'i.
+4i'i.
+4k'i.
+4l'i.
+4m'i.
+4n'i.
+4x'i.
+4o'i.
+4p'i.
+4r'i.
+4s'i.
+4t'i.
+4u'i.
+4f'i.
+4q'i.
+4y'i.
+4w'i.
+4a'o.
+4b'o.
+4g'o.
+4d'o.
+4e'o.
+4z'o.
+4h'o.
+4j'o.
+4i'o.
+4k'o.
+4l'o.
+4m'o.
+4n'o.
+4x'o.
+4o'o.
+4p'o.
+4r'o.
+4s'o.
+4t'o.
+4u'o.
+4f'o.
+4q'o.
+4y'o.
+4w'o.
+4a'u.
+4b'u.
+4g'u.
+4d'u.
+4e'u.
+4z'u.
+4h'u.
+4j'u.
+4i'u.
+4k'u.
+4l'u.
+4m'u.
+4n'u.
+4x'u.
+4o'u.
+4p'u.
+4r'u.
+4s'u.
+4t'u.
+4u'u.
+4f'u.
+4q'u.
+4y'u.
+4w'u.
+4a'w.
+4b'w.
+4g'w.
+4d'w.
+4e'w.
+4z'w.
+4h'w.
+4j'w.
+4i'w.
+4k'w.
+4l'w.
+4m'w.
+4n'w.
+4x'w.
+4o'w.
+4p'w.
+4r'w.
+4s'w.
+4t'w.
+4u'w.
+4f'w.
+4q'w.
+4y'w.
+4w'w.
+4a~a.
+4b~a.
+4g~a.
+4d~a.
+4e~a.
+4z~a.
+4h~a.
+4j~a.
+4i~a.
+4k~a.
+4l~a.
+4m~a.
+4n~a.
+4x~a.
+4o~a.
+4p~a.
+4r~a.
+4s~a.
+4t~a.
+4u~a.
+4f~a.
+4q~a.
+4y~a.
+4w~a.
+4a~h.
+4b~h.
+4g~h.
+4d~h.
+4e~h.
+4z~h.
+4h~h.
+4j~h.
+4i~h.
+4k~h.
+4l~h.
+4m~h.
+4n~h.
+4x~h.
+4o~h.
+4p~h.
+4r~h.
+4s~h.
+4t~h.
+4u~h.
+4f~h.
+4q~h.
+4y~h.
+4w~h.
+4a~i.
+4b~i.
+4g~i.
+4d~i.
+4e~i.
+4z~i.
+4h~i.
+4j~i.
+4i~i.
+4k~i.
+4l~i.
+4m~i.
+4n~i.
+4x~i.
+4o~i.
+4p~i.
+4r~i.
+4s~i.
+4t~i.
+4u~i.
+4f~i.
+4q~i.
+4y~i.
+4w~i.
+4a~u.
+4b~u.
+4g~u.
+4d~u.
+4e~u.
+4z~u.
+4h~u.
+4j~u.
+4i~u.
+4k~u.
+4l~u.
+4m~u.
+4n~u.
+4x~u.
+4o~u.
+4p~u.
+4r~u.
+4s~u.
+4t~u.
+4u~u.
+4f~u.
+4q~u.
+4y~u.
+4w~u.
+4a~w.
+4b~w.
+4g~w.
+4d~w.
+4e~w.
+4z~w.
+4h~w.
+4j~w.
+4i~w.
+4k~w.
+4l~w.
+4m~w.
+4n~w.
+4x~w.
+4o~w.
+4p~w.
+4r~w.
+4s~w.
+4t~w.
+4u~w.
+4f~w.
+4q~w.
+4y~w.
+4w~w.
+}
+\endinput
+
+
diff --git a/fonts/greek/kd/tfm/kdbf10.tfm b/fonts/greek/kd/tfm/kdbf10.tfm
new file mode 100644
index 0000000000..96ad4a89ee
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdbf10.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdbf8.tfm b/fonts/greek/kd/tfm/kdbf8.tfm
new file mode 100644
index 0000000000..5dba986d04
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdbf8.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdbf9.tfm b/fonts/greek/kd/tfm/kdbf9.tfm
new file mode 100644
index 0000000000..6b950745f4
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdbf9.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdgr10.tfm b/fonts/greek/kd/tfm/kdgr10.tfm
new file mode 100644
index 0000000000..889f7ab5e4
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdgr10.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdgr8.tfm b/fonts/greek/kd/tfm/kdgr8.tfm
new file mode 100644
index 0000000000..31b7217c70
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdgr8.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdgr9.tfm b/fonts/greek/kd/tfm/kdgr9.tfm
new file mode 100644
index 0000000000..d4e4e3b0df
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdgr9.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdsl10.tfm b/fonts/greek/kd/tfm/kdsl10.tfm
new file mode 100644
index 0000000000..e3dcc2ad47
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdsl10.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdti10.tfm b/fonts/greek/kd/tfm/kdti10.tfm
new file mode 100644
index 0000000000..4e4e2b24c3
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdti10.tfm
Binary files differ
diff --git a/fonts/greek/kd/tfm/kdtt10.tfm b/fonts/greek/kd/tfm/kdtt10.tfm
new file mode 100644
index 0000000000..1f9cb9a28d
--- /dev/null
+++ b/fonts/greek/kd/tfm/kdtt10.tfm
Binary files differ
diff --git a/fonts/greek/kd/unix/greektex b/fonts/greek/kd/unix/greektex
new file mode 100644
index 0000000000..b8b1a78d34
--- /dev/null
+++ b/fonts/greek/kd/unix/greektex
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec virtex \&greek $*
diff --git a/fonts/greek/kd/unix/grlatex b/fonts/greek/kd/unix/grlatex
new file mode 100644
index 0000000000..31375ebcd2
--- /dev/null
+++ b/fonts/greek/kd/unix/grlatex
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec virtex \&lgreek $*
diff --git a/fonts/greek/kd/unix/makelinks b/fonts/greek/kd/unix/makelinks
new file mode 100644
index 0000000000..e9331734ef
--- /dev/null
+++ b/fonts/greek/kd/unix/makelinks
@@ -0,0 +1,9 @@
+#!/bin/sh -f
+for f in `ls latex`;
+do
+ ln -s latex/$f $f;
+done
+for f in `ls tex`;
+do
+ ln -s tex/$f $f;
+done
diff --git a/fonts/greek/kd/unix/newfont b/fonts/greek/kd/unix/newfont
new file mode 100644
index 0000000000..8c64b17492
--- /dev/null
+++ b/fonts/greek/kd/unix/newfont
@@ -0,0 +1,118 @@
+#!/bin/sh
+#
+# newfont ver 1.0
+#
+# A shell script for creating new fonts in proper directories
+#
+# Usage newfont [-o] <[-p] [-s scale] fontname><...><...>
+#
+# -o : overwrite pk and tfm files if they exist!
+# -p : use plain mf
+# -s sc : sc is the scaling factor*1000 e.g. 1000 for standard
+# size
+# fontname: just the name of the font to create
+# Copyright (C) 1992 by K J Dryllerakis
+#
+# You are allowed to use or modify this shell script as
+# long as you clearly state the original author and
+# you do not charge money for its use or distribution
+#
+# Variables to be set for the local system
+# ========================================================================
+BASEDIR=/usr/local/lptex
+BINDIR=$BASEDIR/bin
+FONTDIR=$BASEDIR/fonts
+TMPDIR=/tmp/newfont.$$
+MFPLAIN=mf
+CMMF=cmmf
+PRINTERDPI=300
+TFMPATH=$FONTDIR/tfm
+PKPATH=$FONTDIR/pk
+# =======================================================================
+OVERWR=0
+MFBIN=$CMMF
+SCALED=1000
+CANWRITE=0
+
+umask 002
+
+
+# Check typing
+if [ $# = 0 ]
+then
+ usage ;
+fi
+# Check if we can write to the output directories
+if [ -w $TFMPATH -a -w $PKPATH ]
+then
+ CANWRITE=1
+fi
+if [ "$1" = "-o" -a $# -ne 1 ]; then
+ OVERWR=1
+ shift
+fi
+# Parse arguments
+while [ $# -ne 0 ]
+do
+ if [ "$1" = "-p" ]; then
+ MFBIN=$MFPLAIN
+ shift
+ fi
+ if [ "$1" = "-s" -a $# -gt 2 ]; then
+ SCALED=$2
+ shift
+ shift
+ fi
+ if [ $# -eq 0 ] ; then
+ echo "$0: No font name specified exciting..."
+ exit 1
+ fi
+
+ SIZE=`echo 300 $SCALED \* 1000 / p | dc`
+ MFMAG=`echo 5 k $SIZE 300 / p | dc`
+ FONT=$1
+ shift
+ PKFILE=$PKPATH/$SIZE/$FONT.pk
+ TFMFILE=$TFMPATH/$FONT.tfm
+ HERE=`pwd`
+
+ if [ \( ! \( -f $PKFILE \) \) -o $OVERWR -eq 1 ] ; then
+ if [ $CANWRITE -ne 1 ] ; then
+ echo "Insuffient write permition. \
+ Only running MF for test"
+ fi
+ if [ ! -d $TMPDIR ] ; then
+ mkdir $TMPDIR
+ fi
+ MFINPUTS=$HERE:$MFINPUTS; export MFINPUTS
+ cd $TMPDIR
+ echo $MFBIN \\mag:=$MFMAG\; \\mode:=localfont \; input $FONT
+ $BINDIR/$MFBIN \\relax\; \\mag:=$MFMAG\; \\mode:=localfont \; input $FONT
+ GFFILE=$TMPDIR/$FONT.${SIZE}gf
+ if [ -f $TMPDIR/$FONT.${SIZE}gf ] ; then
+ if [ $CANWRITE -eq 1 ]; then
+ if [ ! -d $TFMPATH ]; then
+ mkdir $TFMPATH
+ fi
+ if [ \( ! -f $TFMFILE \) -o $OVERWR -eq 1 ]
+ then
+ mv $TMPDIR/$FONT.tfm $TFMFILE
+ fi
+ if [ ! -d $PKPATH ] ; then mkdir $PKDIR ; fi
+ if [ ! -d $PKPATH/$SIZE ] ; then
+ mkdir $PKPATH/$SIZE
+ fi
+ $BINDIR/gftopk $GFFILE $PKFILE
+ fi
+ else
+ echo "metafont failed. I can't create the font!"
+ fi
+ fi
+done
+
+rm -rf $TMPDIR
+usage()
+{
+ echo "usage: $0 <-p [-s scale] font_name> ..."
+ exit 1
+}
diff --git a/fonts/greek/kd/utils/ascii2grtex.c b/fonts/greek/kd/utils/ascii2grtex.c
new file mode 100644
index 0000000000..e81684d303
--- /dev/null
+++ b/fonts/greek/kd/utils/ascii2grtex.c
@@ -0,0 +1,140 @@
+#include <stdio.h>
+
+/* Translation File for greek ISO characters to TeX input */
+
+void process_tex_file();
+
+main(argc,argv)
+ int argc;
+ char **argv;
+{
+ FILE *f;
+ int i;
+ char *InFileN;
+ char *OutFileN;
+ FILE *InFile;
+ FILE *OutFile;
+
+ if (argc >= 2){
+ InFileN=argv[1];
+ if( (InFile = fopen(InFileN,"r")) == NULL){
+ extern int errno, sys_nerr;
+ extern char *sys_errlist[];
+
+ fprintf(stderr, "%s: can't open file %s (%s)\n",
+ argv[0],InFileN,
+ (errno > 0 && errno < sys_nerr) ? sys_errlist[errno] : "Unkown error" );
+ exit( 1 );
+ }
+ }
+ else
+ InFile=stdin;
+ if (argc == 3){
+ OutFileN = argv[2];
+ if( (OutFile = fopen(OutFileN,"w")) == NULL){
+ extern int errno, sys_nerr;
+ extern char *sys_errlist[];
+
+ fprintf(stderr, "%s: can't open file %s (%s)\n",
+ argv[0],OutFileN,
+ (errno > 0 && errno < sys_nerr) ? sys_errlist[errno] : "Unkown error" );
+ exit( 1 );
+ }
+ } else
+ OutFile = stdout;
+
+ process_tex_file(InFile,OutFile);
+ exit(0);
+}
+
+
+void process_tex_file(in,out)
+ FILE *in;
+ FILE *out;
+{
+ int ch;
+
+
+ fprintf(out,
+ "%% ISO (IBM) greek ascii -> to greekTeX automatic translation\n");
+ fprintf(out,"%% Converter by K J Dryllerakis\n");
+ while((ch = fgetc(in)) != EOF){
+ switch (ch){
+ case 182: fprintf(out,"'A"); break;
+ case 184: fprintf(out,"'E"); break;
+ case 185: fprintf(out,"'H"); break;
+ case 186: fprintf(out,"'I"); break;
+ case 188: fprintf(out,"'O"); break;
+ case 190: fprintf(out,"'Y"); break;
+ case 191: fprintf(out,"'W"); break;
+ case 192: fprintf(out,"'i"); break;
+ case 193: fprintf(out,"A"); break; /* Capitals */
+ case 194: fprintf(out,"B"); break;
+ case 195: fprintf(out,"G"); break;
+ case 196: fprintf(out,"D"); break;
+ case 197: fprintf(out,"E"); break;
+ case 198: fprintf(out,"Z"); break;
+ case 199: fprintf(out,"H"); break;
+ case 200: fprintf(out,"J"); break;
+ case 201: fprintf(out,"I"); break;
+ case 202: fprintf(out,"K"); break;
+ case 203: fprintf(out,"L"); break;
+ case 204: fprintf(out,"M"); break;
+ case 205: fprintf(out,"N"); break;
+ case 206: fprintf(out,"X"); break;
+ case 207: fprintf(out,"O"); break;
+ case 208: fprintf(out,"P"); break;
+ case 209: fprintf(out,"R"); break;
+ case 211: fprintf(out,"S"); break;
+ case 212: fprintf(out,"T"); break;
+ case 213: fprintf(out,"U"); break;
+ case 214: fprintf(out,"F"); break;
+ case 215: fprintf(out,"Q"); break;
+ case 216: fprintf(out,"Y"); break;
+ case 217: fprintf(out,"W"); break;
+ case 218: fprintf(out,"\"I"); break; /* " */
+ case 219: fprintf(out,"\"Y"); break;
+ case 220: fprintf(out,"'a"); break; /* lower +' */
+ case 221: fprintf(out,"'e"); break;
+ case 222: fprintf(out,"'h"); break;
+ case 223: fprintf(out,"'i"); break;
+ case 224: fprintf(out,"\"'u"); break;
+ case 225: fprintf(out,"a"); break; /* lower */
+ case 226: fprintf(out,"b"); break;
+ case 227: fprintf(out,"g"); break;
+ case 228: fprintf(out,"d"); break;
+ case 229: fprintf(out,"e"); break;
+ case 230: fprintf(out,"z"); break;
+ case 231: fprintf(out,"h"); break;
+ case 232: fprintf(out,"j"); break;
+ case 233: fprintf(out,"i"); break;
+ case 234: fprintf(out,"k"); break;
+ case 235: fprintf(out,"l"); break;
+ case 236: fprintf(out,"m"); break;
+ case 237: fprintf(out,"n"); break;
+ case 238: fprintf(out,"x"); break;
+ case 239: fprintf(out,"o"); break;
+ case 240: fprintf(out,"p"); break;
+ case 241: fprintf(out,"r"); break;
+ case 242: fprintf(out,"c"); break;
+ case 243: fprintf(out,"s"); break;
+ case 244: fprintf(out,"t"); break;
+ case 245: fprintf(out,"u"); break;
+ case 246: fprintf(out,"f"); break;
+ case 247: fprintf(out,"q"); break;
+ case 248: fprintf(out,"y"); break;
+ case 249: fprintf(out,"w"); break;
+ case 250: fprintf(out,"\"i"); break;
+ case 251: fprintf(out,"\"u"); break;
+ case 252: fprintf(out,"'o"); break;
+ case 253: fprintf(out,"'u"); break;
+ case 254: fprintf(out,"'w"); break;
+ default:
+ if (ch <= 128 ){
+ fprintf(out,"%c",ch);
+ }
+ break;
+ }
+ }
+}
+