\relax

Part of the tolkienfonts package
Copyright 2010 Ariel Barton

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.

This work has the LPPL maintenance status `maintained'.

The Current Maintainer of this work is Ariel Barton.

This work consists of all the files listed in Appendix F of the file
`tolkienfontsdoc.pdf'.

Date: 2010/08/29

Version: 2


\metrics

\setcommand\tengwa#1{}
\setcommand\tehta#1{%   Red
    \ifisglyph{#1}\then
        \resetglyph{#1}
            \glyphspecial{pdf: 0.8 0 0 rg 0.8 0 0 RG} %pdfTeX
            %\glyphspecial{color push rgb 0.8 0 0} % dvips
            \glyph{#1}{1000}
            %\glyphspecial{color pop} % dvips
            \glyphspecial{pdf: 0 g 0 G} %pdfTeX
        \endresetglyph
    \fi
}

\setcommand\bartildetehta#1{\tengwa{#1}}
\setcommand\punctuation#1{\tehta{#1}}

%%%%% Sarati and Valmaric %%%%%

\tehta{Atehta}
\tehta{Etehta}
\tehta{Itehta}
\tehta{Otehta}
\tehta{Utehta}
\tehta{AAtehta}
\tehta{EEtehta}
\tehta{IItehta}
\tehta{OOtehta}
\tehta{UUtehta}
\tehta{doubletehta}
\tehta{longvoweltehta}
\tehta{middottehta}
\tehta{novoweltehta}

% We have to fix the coloring of punctuation, since we want the 
% bar to stay tengwar-colored

\ifisglyph{saratizero}\then
    \ifisglyph{barspace}\then
        \unsetglyph{onedot} 
        \unsetglyph{twodots}
        \inputmtx{fontSaratiE}
        \resetglyph{onedot} \glyph{onedot}{1000} \glyph{Itehta}{1000} \endresetglyph
        \resetglyph{twodots} \glyph{twodots}{1000} \glyph{Etehta}{1000} \endresetglyph
    \else
        \resetglyph{onedot} \glyph{onedot}{1000} \glyph{Itehta}{1000} \endresetglyph
        \resetglyph{twodots} \glyph{twodots}{1000} \glyph{Etehta}{1000} \endresetglyph
        \unsetglyph{barspace}
    \fi
\fi


\tengwa{AA}
\tengwa{b} 
\tengwa{barspace}
\tengwa{d}
\tengwa{dh}
\tengwa{dy}
\tengwa{eng}
\tengwa{f}
\tengwa{g}
\tengwa{gw}
\tengwa{h}
\tengwa{ht}
\tengwa{hty}
\tengwa{hw}
\tengwa{hy}
\tengwa{k}
\tengwa{kAlt}
\tengwa{kh}
\tengwa{khw}
\tengwa{l}
\tengwa{ld}
\tengwa{lh}
\tengwa{lq}
\tengwa{lt}
\tengwa{ly}
\tengwa{m}
\tengwa{mb}
\tengwa{mf}
\tengwa{mn}
\tengwa{mnAlt}
\tengwa{mp}
\tengwa{n}
\tengwa{nd}
\tengwa{ndAlt}
\tengwa{ng}
\tengwa{ngw}
\tengwa{nk}
\tengwa{nq}
\tengwa{nt}
\tengwa{ntAlt}
\tengwa{nty}
\tengwa{nw}
\tengwa{ny}
\tengwa{p}
\tengwa{ps}
\tengwa{q}
\tengwa{r}
\tengwa{R}
\tengwa{rd}
\tengwa{rh}
\tengwa{rm}
\tengwa{ry}
\tengwa{ryAlt}
\tengwa{s}
\tengwa{sAlt}
\tengwa{saratiseven}
\tengwa{saratitwelve}
\tengwa{saratizero}
\tengwa{sk}
\tengwa{ss}
\tengwa{ssAlt}
\tengwa{st}
\tengwa{sty}
\tengwa{t}
\tengwa{th}
\tengwa{tleft}
\tengwa{tright}
\tengwa{ts}
\tengwa{ty}
\tengwa{v}
\tengwa{w}
\tengwa{x}
\tengwa{y}
\tengwa{yAlt}
\tengwa{z}

% Carrier, onedot, twodots, tildeteng, tildewide covered below

%%%%% Tengwar %%%%%

\tehta{AtehtaI}
\tehta{AtehtaII}
\tehta{AtehtaIII}
\tehta{AtehtaIV}
\tehta{EtehtaI}
\tehta{EtehtaII}
\tehta{EtehtaIII}
\tehta{EtehtaIV}
\tehta{ItehtaI}
\tehta{ItehtaII}
\tehta{ItehtaIII}
\tehta{ItehtaIV}
\tehta{IItehtaI}
\tehta{IItehtaII}
\tehta{IItehtaIII}
\tehta{IItehtaIV}
\tehta{OtehtaI}
\tehta{OtehtaII}
\tehta{OtehtaIII}
\tehta{OtehtaIV}
\tehta{UtehtaI}
\tehta{UtehtaII}
\tehta{UtehtaIII}
\tehta{UtehtaIV}
\tehta{WtehtaI}
\tehta{WtehtaII}
\tehta{WtehtaIII}
\tehta{WtehtaIV}
\tehta{YtehtaI}
\tehta{YtehtaII}
\tehta{YtehtaIII}
\tehta{YtehtaIV}
\tehta{hattehtaI}
\tehta{hattehtaII}
\tehta{hattehtaIII}
\tehta{hattehtaIV}
\tehta{altUtehtaI}
\tehta{altUtehtaII}
\tehta{altUtehtaIII}
\tehta{altUtehtaIV}
\tehta{AtehtaV}
\tehta{AtehtaVI}
\tehta{AtehtaVII}
\tehta{AtehtaVIII}
\tehta{EtehtaV}
\tehta{EtehtaVI}
\tehta{EtehtaVII}
\tehta{EtehtaVIII}
\tehta{EEtehtaV}
\tehta{EEtehtaVI}
\tehta{EEtehtaVII}
\tehta{EEtehtaVIII}
\tehta{ItehtaV}
\tehta{ItehtaVI}
\tehta{ItehtaVII}
\tehta{ItehtaVIII}
\tehta{IItehtaV}
\tehta{IItehtaVI}
\tehta{IItehtaVII}
\tehta{IItehtaVIII}
\tehta{OtehtaV}
\tehta{OtehtaVI}
\tehta{OtehtaVII}
\tehta{OtehtaVIII}
\tehta{UtehtaV}
\tehta{UtehtaVI}
\tehta{UtehtaVII}
\tehta{UtehtaVIII}
\tehta{carriertehtaV}
\tehta{carriertehtaVI}
\tehta{carriertehtaVII}
\tehta{carriertehtaVIII}
\tehta{circtehtaV}
\tehta{circtehtaVI}
\tehta{circtehtaVII}
\tehta{circtehtaVIII}
\tehta{altYtehtaI}
\tehta{altYtehtaII}
\tehta{altYtehtaIII}
\tehta{altYtehtaIV}
\tehta{EEtehtaI}
\tehta{EEtehtaII}
\tehta{EEtehtaIII}
\tehta{EEtehtaIV}
\tehta{OOtehtaI}
\tehta{OOtehtaII}
\tehta{OOtehtaIII}
\tehta{OOtehtaIV}
\tehta{UUtehtaI}
\tehta{UUtehtaII}
\tehta{UUtehtaIII}
\tehta{UUtehtaIV}
\tehta{yantatehtaI}
\tehta{yantatehtaII}
\tehta{yantatehtaIII}
\tehta{yantatehtaIV}
\tehta{revAtehtaI}
\tehta{revAtehtaII}
\tehta{revAtehtaIII}
\tehta{revAtehtaIV}
\tehta{circtehtaI}
\tehta{circtehtaII}
\tehta{circtehtaIII}
\tehta{circtehtaIV}
\tehta{altEtehtaI}
\tehta{altEtehtaII}
\tehta{altEtehtaIII}
\tehta{altEtehtaIV}
\tehta{altEEtehtaI}
\tehta{altEEtehtaII}
\tehta{altEEtehtaIII}
\tehta{altEEtehtaIV}
\tehta{AAtehtaI}
\tehta{AAtehtaII}
\tehta{AAtehtaIII}
\tehta{AAtehtaIV}
\tehta{altWtehtaI}
\tehta{altWtehtaII}
\tehta{altWtehtaIII}
\tehta{altWtehtaIV}
\tehta{EEtehtaL}
\tehta{IItehtaL}
\tehta{ItehtaL}
\tehta{EtehtaL}

\bartildetehta{barLleft}
\bartildetehta{tildeLleft}
\bartildetehta{barbottom}
\bartildetehta{Barbottom}
\bartildetehta{baroverleft}
\bartildetehta{Baroverleft}
\bartildetehta{bartop}
\bartildetehta{Bartop}
\bartildetehta{barunderleft}
\bartildetehta{Barunderleft}
\bartildetehta{tildebottom}
\bartildetehta{Tildebottom}
\bartildetehta{tildeover}
\bartildetehta{Tildeover}
\bartildetehta{tildetop}
\bartildetehta{Tildetop}
\bartildetehta{tildeunder}
\bartildetehta{Tildeunder}

\tengwa{altscurlI}
\tengwa{scurlII}
\tengwa{scurlIII}
\tengwa{scurlO}
\tengwa{scurlVII}
\tengwa{scurlI}
\tengwa{scurlIV}
\tengwa{scurlV}
\tengwa{scurlVI}
\tengwa{scurlVIII}
\tengwa{scurlIX}
\tengwa{altscurlII}
\tengwa{ornament}
\tengwa{ornamentI}
\tengwa{ringswirlleft}
\tengwa{ringswirlright}

\punctuation{tildeteng}
\punctuation{tildewide}
\punctuation{tildedouble}
\punctuation{tildevertical}
\punctuation{onedot}
\punctuation{twodots}
\punctuation{threedots}
\punctuation{tallthreedots}
\punctuation{fourdots}
\punctuation{tengparen}
\punctuation{tengquestion}
\punctuation{latincomma}
\punctuation{latinexclam}
\punctuation{latinparenleft}
\punctuation{latinparenright}
\punctuation{latinperiod}
\punctuation{latinquestion}
\punctuation{latinquoteleft}
\punctuation{latinquoteright}
\punctuation{latinsemicolon}
\punctuation{lowerquotedbl}
\punctuation{upperquotedbl}

\tengwa{tengzero}
\tengwa{tengone}
\tengwa{tengtwo}
\tengwa{tengthree}
\tengwa{tengfour}
\tengwa{tengfive}
\tengwa{tengsix}
\tengwa{tengseven}
\tengwa{tengeight}
\tengwa{tengnine}
\tengwa{tengten}
\tengwa{tengeleven}
\tengwa{Tinco}
\tengwa{Parma}
\tengwa{Calma}
\tengwa{Quesse}
\tengwa{Ando}
\tengwa{Umbar}
\tengwa{Ungwe}
\tengwa{Anga}
\tengwa{carrier}
\tengwa{longcarrier}
\tengwa{halla}
\tengwa{osse}
\tengwa{mhellyn}
\tengwa{hwtengwa}
\tengwa{wtengwa}
\tengwa{wtengwatall}
\tengwa{schwatengwa}
\tengwa{scoldenglish}
\tengwa{hwoldenglish}
\tengwa{ondoldenglish}
\tengwa{htback}
\tengwa{htfront}
\tengwa{altquesse}
\tengwa{althwesta}
\tengwa{altsilme}
\tengwa{altsilmen}
\tengwa{altesse}
\tengwa{altosse}
\tengwa{altanna}
\tengwa{altromen}
\tengwa{altmhellyn}
\tengwa{altessen}
\tengwa{althwtengwa}
\tengwa{altcarrier}
\tengwa{altlongcarrier}
\tengwa{altone}
\tengwa{altfour}
\tengwa{altsix}
\tengwa{alttengtwelve}
\tengwa{altarda}
\tengwa{alture}
\tengwa{althwoldenglish}
\tengwa{tinco}
\tengwa{parma}
\tengwa{calma}
\tengwa{quesse}
\tengwa{ando}
\tengwa{umbar}
\tengwa{anga}
\tengwa{ungwe}
\tengwa{thule}
\tengwa{formen}
\tengwa{aha}
\tengwa{hwesta}
\tengwa{anto}
\tengwa{ampa}
\tengwa{anca}
\tengwa{unque}
\tengwa{numen}
\tengwa{malta}
\tengwa{noldo}
\tengwa{nwalme}
\tengwa{ore}
\tengwa{vala}
\tengwa{anna}
\tengwa{wilya}
\tengwa{romen}
\tengwa{arda}
\tengwa{lambe}
\tengwa{alda}
\tengwa{silme}
\tengwa{silmen}
\tengwa{esse}
\tengwa{essen}
\tengwa{hyarmen}
\tengwa{hwestas}
\tengwa{yanta}
\tengwa{ure}
\tengwa{ornamentanga}
\tengwa{ornamentanna}
\tengwa{ornamentcalma}
\tengwa{ornamentnoldo}
\tengwa{ornamentyanta}
\tengwa{Tincocurl}
\tengwa{Andocurl}
\tengwa{tincocurl}
\tengwa{andocurl}
\tengwa{thulecurl}
\tengwa{antocurl}
\tengwa{numencurl}
\tengwa{orecurl}
\tengwa{Parmacurl}
\tengwa{Umbarcurl}
\tengwa{parmacurl}
\tengwa{umbarcurl}
\tengwa{formencurl}
\tengwa{ampacurl}
\tengwa{maltacurl}
\tengwa{valacurl}
\tengwa{quessecurl}
\tengwa{ungwecurl}
\tengwa{nwalmecurl}
\tengwa{wilyacurl}
\tengwa{lambecurl}
\tengwa{hyarmencurl}

\ifisglyph{barspace}\then
    \resetglyph{onedot} \push\glyph{barspace}{1000}\pop\glyph{onedot}{1000}  \endresetglyph
    \resetglyph{twodots} \push\glyph{barspace}{1000}\pop\glyph{twodots}{1000}  \endresetglyph
\fi



\endmetrics


