%%% ====================================================================
%%%  @TeX-font-metrics-file{
%%%     author          = "Ulrik Vieth",
%%%     Version         = "1.801",
%%%     date            = "30 June 1998",
%%%     time            = "00:01:46 CEST",
%%%     filename        = "resetsc.mtx",
%%%     email           = "vieth@thphy.uni-duesseldorf.de",
%%%     URL             = "http://www.thphy.uni-duesseldorf.de/~vieth/",
%%%     checksum        = "31603 151 262 4551",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "metrics, raw, TeX, PostScript",
%%%     supported       = "yes",
%%%     abstract        = "This is a metrics file, for use with the
%%%                        fontinst utility.  It recodes glyph names
%%%                        for small capitals read from AFM files
%%%                        to glyph names with a `small' suffix.",
%%%     package         = "fontinst",
%%%     dependencies    = "fontinst.sty, fontdoc.sty",
%%%  }
%%% ====================================================================

\relax

\documentclass[twocolumn]{article}
\usepackage{fontdoc}

\title{The {\tt resetsc.mtx} metrics file}
\author{Ulrik Vieth}
\date{30 June 1998 \\
Version 1.801}

\begin{document}
\maketitle

This document describes the {\tt resetsc.mtx} metrics file, which is
used to recode raw glyph names for small capitals to glyph names with
a `small' suffix.

\metrics

\setcommand\smallcapsglyph#1#2{
  \ifisglyph{#2}\then
   \setglyph{#1}\glyph{#2}{1000}
   \endsetglyph
  \fi
}

\setcommand\smallcapskerning#1#2{
  \ifisglyph{#2}\then
   \setleftrightkerning{#1}{#2}{1000}
  \fi
}

% Renaming small caps glyphs.

\smallcapsglyph{Asmall}{a}
\smallcapsglyph{Bsmall}{b}
\smallcapsglyph{Csmall}{c}
\smallcapsglyph{Dsmall}{d}
\smallcapsglyph{Esmall}{e}
\smallcapsglyph{Fsmall}{f}
\smallcapsglyph{Gsmall}{g}
\smallcapsglyph{Hsmall}{h}
\smallcapsglyph{Ismall}{i}
\smallcapsglyph{Jsmall}{j}
\smallcapsglyph{Ksmall}{k}
\smallcapsglyph{Lsmall}{l}
\smallcapsglyph{Msmall}{m}
\smallcapsglyph{Nsmall}{n}
\smallcapsglyph{Osmall}{o}
\smallcapsglyph{Psmall}{p}
\smallcapsglyph{Qsmall}{q}
\smallcapsglyph{Rsmall}{r}
\smallcapsglyph{Ssmall}{s}
\smallcapsglyph{Tsmall}{t}
\smallcapsglyph{Usmall}{u}
\smallcapsglyph{Vsmall}{v}
\smallcapsglyph{Wsmall}{w}
\smallcapsglyph{Xsmall}{x}
\smallcapsglyph{Xsmall}{y}
\smallcapsglyph{Zsmall}{z}

\smallcapsglyph{Lslashsmall}{lslash}
\smallcapsglyph{Scaronsmall}{scaron}
\smallcapsglyph{Zcaronsmall}{zcaron}

\smallcapsglyph{Agravesmall}{agrave}
\smallcapsglyph{Aacutesmall}{aacute}
\smallcapsglyph{Acircumflexsmall}{acircumflex}
\smallcapsglyph{Atildesmall}{atilde}
\smallcapsglyph{Adieresissmall}{adieresis}
\smallcapsglyph{Aringsmall}{aring}
\smallcapsglyph{AEsmall}{ae}
\smallcapsglyph{Ccedillasmall}{ccedilla}
\smallcapsglyph{Egravesmall}{egrave}
\smallcapsglyph{Eacutesmall}{eacute}
\smallcapsglyph{Ecircumflexsmall}{ecircumflex}
\smallcapsglyph{Edieresissmall}{edieresis}
\smallcapsglyph{Igravesmall}{igrave}
\smallcapsglyph{Iacutesmall}{iacute}
\smallcapsglyph{Icircumflexsmall}{icircumflex}
\smallcapsglyph{Idieresissmall}{idieresis}
\smallcapsglyph{Ethsmall}{eth}
\smallcapsglyph{Ntildesmall}{ntilde}
\smallcapsglyph{Ogravesmall}{ograve}
\smallcapsglyph{Oacutesmall}{oacute}
\smallcapsglyph{Ocircumflexsmall}{ocircumflex}
\smallcapsglyph{Otildesmall}{otilde}
\smallcapsglyph{Odieresissmall}{odieresis}
\smallcapsglyph{OEsmall}{oe}
\smallcapsglyph{Oslashsmall}{oslash}
\smallcapsglyph{Ugravesmall}{ugrave}
\smallcapsglyph{Uacutesmall}{uacute}
\smallcapsglyph{Ucircumflexsmall}{ucircumflex}
\smallcapsglyph{Udieresissmall}{udieresis}
\smallcapsglyph{Yacutesmall}{yacute}
\smallcapsglyph{Thornsmall}{thorn}
\smallcapsglyph{Ydieresissmall}{ydieresis}

% Renaming small caps kern pairs.

\smallcapskerning{Asmall}{a}
\smallcapskerning{Bsmall}{b}
\smallcapskerning{Csmall}{c}
\smallcapskerning{Dsmall}{d}
\smallcapskerning{Esmall}{e}
\smallcapskerning{Fsmall}{f}
\smallcapskerning{Gsmall}{g}
\smallcapskerning{Hsmall}{h}
\smallcapskerning{Ismall}{i}
\smallcapskerning{Jsmall}{j}
\smallcapskerning{Ksmall}{k}
\smallcapskerning{Lsmall}{l}
\smallcapskerning{Msmall}{m}
\smallcapskerning{Nsmall}{n}
\smallcapskerning{Osmall}{o}
\smallcapskerning{Psmall}{p}
\smallcapskerning{Qsmall}{q}
\smallcapskerning{Rsmall}{r}
\smallcapskerning{Ssmall}{s}
\smallcapskerning{Tsmall}{t}
\smallcapskerning{Usmall}{u}
\smallcapskerning{Vsmall}{v}
\smallcapskerning{Wsmall}{w}
\smallcapskerning{Xsmall}{x}
\smallcapskerning{Ysmall}{y}
\smallcapskerning{Zsmall}{z}

\endmetrics
\end{document}
