% \iffalse meta-comment
%
% Copyright 1989-1996 Johannes L. Braams and any individual authors
% listed elsewhere in this file.  All rights reserved.
% 
% For further copyright information see any other copyright notices in 
% this file.
% 
% This file is part of the Babel system release 3.6.
% --------------------------------------------------
%   This system is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% 
%   For error reports concerning UNCHANGED versions of this file no
%   more than one year old, see bugs.txt.
% 
%   Please do not request updates from me directly.  Primary
%   distribution is through the CTAN archives.
% 
% 
% IMPORTANT COPYRIGHT NOTICE:
% 
% You are NOT ALLOWED to distribute this file alone.
% 
% You are allowed to distribute this file under the condition that it
% is distributed together with all the files listed in manifest.txt.
% 
% If you receive only some of these files from someone, complain!
% 
% Permission is granted to copy this file to another file with a
% clearly different name and to customize the declarations in that
% copy to serve the needs of your installation, provided that you
% comply with the conditions in the file legal.txt from the LaTeX2e
% distribution.
% 
% However, NO PERMISSION is granted to produce or to distribute a
% modified version of this file under its original name.
%  
% You are NOT ALLOWED to change this file.
% 
% 
% \fi
% \CheckSum{79}
%
% \iffalse        This is a META comment
%
%<*fdd>
\ProvidesFile{greek.fdd}
%</fdd>
%
%<LGRenc,  >\ProvidesFile{LGRenc.def}
%<LGRcmr,  >\ProvidesFile{LGRcmr.fd}
%<LGRcmro, >\ProvidesFile{LGRcmro.fd}
%<LGRcmtt, >\ProvidesFile{LGRcmtt.fd}
%<LGRcmss, >\ProvidesFile{LGRcmss.fd}
        [1997/01/09 v1.0c 
%<LGRenc,  >  Greek Encoding]
%<LGRcmr,  >  Greek Computer Modern]
%<LGRcmro, >  Greek Computer Modern Outline]
%<LGRcmtt, >  Greek Computer Modern Typewriter]
%<LGRcmss, >  Greek Sans Serif]
%
%<*driver>
\documentclass{ltxdoc}
\GetFileInfo{greek.fdd}
\providecommand\dsc{\expandafter{\normalfont\scshape docstrip}}
\title{The file \texttt{greek.fdd} for use with
      \LaTeXe.\thanks{This file has version
           number \fileversion, dated \filedate.}}
\date{\filedate}
\author{Apostolos Syropoulos and Johannes Braams}
\begin{document}
\maketitle
 \DocInput{greek.fdd}
\end{document}
%</driver>
%
%\fi
% \changes{v1.0b}{1996/09/23}{Changed some of the specs to include the
%    6 and 7 point fonts.}
%
% \section{Introduction}
%
%    The file `greek.fdd' provides font definitions for typesetting
%    greek texts. Note that fonts from various families are used which
%    are not always visually compatible.
%
% \StopEventually{}
%
% \section{The \texttt{docstrip} modules}
%    The following modules are used to direct \texttt{docstrip} in
%    generating external files:
% \begin{center}
% \begin{tabular}{ll}
%   driver  & produce a documentation driver file \\
%   LGRenc  & The encoding definition file\\
%   LGRcmr  & The Roman font shapes\\
%   LGRcmro & An Outline Romand font shape\\
%   LGRcmss & A Sans Serif font shape\\
%   LGRcmtt & A typewriter font shape\\
% \end{tabular}
% \end{center}
%    A typical \dsc\ command file would then have entries like:
%\begin{verbatim}
%\generateFile{LGRcmr.fd}{t}{\from{greek.fdd}{fd,LGRcmr}}
%\end{verbatim}
%
%  \section{The encoding definition file}
%
%    This file defines the fontencoding \texttt{LGR} for greek
%    text. It also makes some definitions to ensure that commands such
%    as |\TeX|, |\copyright| give `expected results' (\TeX,
%    \copyright).
%    \begin{macrocode}
%<*LGRenc>
\DeclareFontEncoding{LGR}{}{}
\DeclareFontSubstitution{LGR}{cmr}{m}{n}
\DeclareErrorFont{LGR}{cmr}{m}{n}{10}
%    \end{macrocode}
%    First we make the \TeX\ 
%    \begin{macrocode}
\let\ltxTeX\TeX
\DeclareTextCommandDefault{\TeX}{\textlatin{\ltxTeX}}
%    \end{macrocode}
%    and \LaTeX\ logo's encoding independant.
%    \begin{macrocode}
\let\ltxLaTeX\LaTeX
\DeclareTextCommandDefault{\LaTeX}{\textlatin{\ltxLaTeX}}
%    \end{macrocode}
%    Then we define a few commands in the \texttt{LGR} encoding.
%    \begin{macrocode}
\ProvideTextCommand{\copyright}{LGR}{%
  \textcircled{\textlatin{c}}}
\ProvideTextCommand{\textregistered}{LGR}{%
  \textcircled{\latintext\textsc r}}
\ProvideTextCommand{\textrademark}{LGR}{%
  \textsuperscript{\latintext TM}}
\ProvideTextCommand{\SS}{LGR}{%
  \textlatin{SS}}
%</LGRenc>
%    \end{macrocode}
%
%  \section{The font definition files}
%
%    For most instances of the greek fonts we use the \texttt{kd}
%    family of fonts, which were made by K J Dryllerakis.
%
%    \begin{macrocode}
%<*LGRcmr>
\DeclareFontFamily{LGR}{cmr}{}
\DeclareFontShape{LGR}{cmr}{m}{n}
    {
      <6><7> kdgr8
      <8> <9> <10> gen * kdgr
      <10.95><12><14.4><17.28><20.74><24.88> kdgr10}{}
\DeclareFontShape{LGR}{cmr}{m}{sl}
    {
      <6><7><8><9><10><10.95><12><14.4>%
      <17.28><20.74><24.88> kdsl10}{}
\DeclareFontShape{LGR}{cmr}{m}{it}
    {
      <6><7><8><9><10><10.95><12><14.4>%
      <17.28><20.74><24.88> kdti10}{}
%    \end{macrocode}
%    The \texttt{kd} family doesn't contain a small caps font, so we
%    revert to a font from Yannis haralambous.
%    \begin{macrocode}
\DeclareFontShape{LGR}{cmr}{m}{sc}
    {
      <6><7><8><9><10><10.95><12><14.4>%
      <17.28><20.74><24.88> rgrsc10}{}
%    \end{macrocode}
%
%    Now come the definitions for the bold weight versions of the
%    former fonts.
%    \begin{macrocode}
\DeclareFontShape{LGR}{cmr}{b}{n}
    {
      <6><7> kdbf8
      <8> <9> <10> gen * kdbf
      <10.95><12><14.4><17.28><20.74><24.88> kdbf10}{}
%    \end{macrocode}
%    For the \textit{italic}, \textsl{slanted} and \textsc{Small Caps}
%    shapes no bold weight variants exist unfortunately. So we have to
%    provide some (silent) substitutions.
% \changes{v1.0c}{1997/01/07}{replaced kdgr with cmr in the
%    substitutions} 
%    \begin{macrocode}
\DeclareFontShape{LGR}{cmr}{b}{it}{ <-> ssub * cmr/b/n}{}
\DeclareFontShape{LGR}{cmr}{b}{sl}{ <-> ssub * cmr/b/n}{}
\DeclareFontShape{LGR}{cmr}{b}{sc}{ <-> ssub * cmr/m/sc}{}
%    \end{macrocode}
%    We do the same for the bold extende weight variants.
%    \begin{macrocode}
\DeclareFontShape{LGR}{cmr}{bx}{n}{ <-> ssub * cmr/b/n}{}
\DeclareFontShape{LGR}{cmr}{bx}{it}{ <-> ssub * cmr/b/n}{}
\DeclareFontShape{LGR}{cmr}{bx}{sl}{ <-> ssub * cmr/b/n}{}
\DeclareFontShape{LGR}{cmr}{bx}{sc}{ <-> ssub * cmr/m/sc}{}
%</LGRcmr>
%    \end{macrocode}
%
%    The outline version of this font is treated as a font shape
%    although only two variants exist.
%
%    \begin{macrocode}
%<*LGRcmro>
\DeclareFontFamily{LGR}{cmro}{}
\DeclareFontShape{LGR}{cmro}{m}{n}
    {
      <6><7><8><9><10><10.95><12><14.4>%
      <17.28><20.74><24.88> okdgr10}{}
\DeclareFontShape{LGR}{cmro}{m}{sl}{ <-> ssub * cmro/m/n}{}
\DeclareFontShape{LGR}{cmro}{m}{it}{ <-> ssub * cmro/m/n}{}
\DeclareFontShape{LGR}{cmro}{m}{sc}{ <-> ssub * cmro/m/n}{}
\DeclareFontShape{LGR}{cmro}{b}{n}{  <-> ssub * cmro/m/n}{}
\DeclareFontShape{LGR}{cmro}{bx}{n}{  <-> ssub * cmro/m/n}{}
%</LGRcmro>
%    \end{macrocode}
%
%    Then we have the \texttt{typewriter} fonts...
%
%    \begin{macrocode}
%<*LGRcmtt>
\DeclareFontFamily{LGR}{cmtt}{}
\DeclareFontShape{LGR}{cmtt}{m}{n}
    {
      <6><7><8><9><10><10.95><12><14.4>%
      <17.28><20.74><24.88> kdtt10}{}
%    \end{macrocode}
%    which also comes in just one variant.
%    \begin{macrocode}
\DeclareFontShape{LGR}{cmtt}{m}{it}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{m}{sl}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{m}{sc}{ <-> ssub * cmtt/m/n}{} 
\DeclareFontShape{LGR}{cmtt}{b}{n}{  <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{b}{it}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{b}{sl}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{b}{sc}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{bx}{n}{  <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{bx}{it}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{bx}{sl}{ <-> ssub * cmtt/m/n}{}
\DeclareFontShape{LGR}{cmtt}{bx}{sc}{ <-> ssub * cmtt/m/n}{}
%</LGRcmtt>
%    \end{macrocode}
%
%    And finally we come to the Sans Serif font to be used in greek
%    texts. This time we had to revert to the Malvern family of
%    fonts. These do not blend well with the other fonts, but
%    something had to be provided for the sake of completeness.
%
%    \begin{macrocode}
%<*LGRcmss>
\DeclareFontFamily{LGR}{cmss}{}
\DeclareFontShape{LGR}{cmss}{m}{n}
    {
      <6>     ma55g6
      <7>     ma55g7
      <8>     ma55g8
      <9>     ma55g9
      <10>    ma55g10
      <10.95> ma55g109
      <12>    ma55g12
      <14.4>  ma55g144
      <17.28> ma55g172
      <20.74> ma55g207
      <24.88> ma55g248}{}
%    \end{macrocode}
%    As for the other fonts, we only have fonts for the normal weight,
%    normal shape variant, the others ore just not available so we
%    provide substitutions.
%
%    \begin{macrocode}
\DeclareFontShape{LGR}{cmss}{m}{it}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{m}{sl}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{m}{sc}{ <-> ssub * cmss/m/n}{} 
\DeclareFontShape{LGR}{cmss}{b}{n}{  <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{b}{it}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{b}{sl}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{b}{sc}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{bx}{n}{  <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{bx}{it}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{bx}{sl}{ <-> ssub * cmss/m/n}{}
\DeclareFontShape{LGR}{cmss}{bx}{sc}{ <-> ssub * cmss/m/n}{}
%</LGRcmss>
%    \end{macrocode}
%
% \Finale
%
