\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


The mode of the runes in "The Hobbit" on Thror's map and the cover.

Note: Cirth Erebor is missing three glyphs, A, K, ST.

Uppercase letters are just like lowercase, except for Ng 
(and A in fonts where it exists)

We do some fancy work with kerning. The problem with the
ligatures here is that the TH ligature looks nothing like
T+H, so we might want to kern one but not the other.

\encoding

\mynextslot = 255
	
\nextslot{000}\setslot{onedot}\fancykerns{onedot}\endsetslot
\nextslot{001}\setslot{cirthNW}\fancykerns{cirthNW}\endsetslot
\advanceslot\setslot{hobbitTH}\fancykerns{hobbitTH}\endsetslot
\nextslot{\int{tildeNslot}}\setslot{hobbitNG}\fancykerns{hobbitNG}\endsetslot
\advanceslot\setslot{hobbitEA}\fancykerns{hobbitEA}\endsetslot
\advanceslot\setslot{hobbitEO}\fancykerns{hobbitEO}\endsetslot % Looks like a big Z
\advanceslot\setslot{hobbitOA}\fancykerns{hobbitOA}\endsetslot % Looks a cross between A and O
\advanceslot\setslot{hobbitST}\fancykerns{hobbitST}\endsetslot

\nextslot{`\'}\setslot{quotesilent}\endsetslot
\nextslot{`\,}\setslot{twodots}\endsetslot
\nextslot{`\-}\setslot{dashsilent}\endsetslot
\nextslot{`\.}\setslot{tallthreedots}\endsetslot
\nextslot{`\:}\setslot{fourdots}\endsetslot
\nextslot{`\;}\setslot{threedots}\endsetslot
\nextslot{`?}\setslot{threedots}\endsetslot
\nextslot{`!}\setslot{threedots}\endsetslot
\nextslot{`\\}\setslot{latinperiod}\makerightboundary{rightboundarychar}\endsetslot

\nextslot{`0}\setslot{zero}\fancykerns{zero}\endsetslot
\nextslot{`1}\setslot{one}\fancykerns{one}\endsetslot
\nextslot{`2}\setslot{two}\fancykerns{two}\endsetslot
\nextslot{`3}\setslot{three}\fancykerns{three}\endsetslot
\nextslot{`4}\setslot{four}\fancykerns{four}\endsetslot
\nextslot{`5}\setslot{five}\fancykerns{five}\endsetslot
\nextslot{`6}\setslot{six}\fancykerns{six}\endsetslot
\nextslot{`7}\setslot{seven}\fancykerns{seven}\endsetslot
\nextslot{`8}\setslot{eight}\fancykerns{eight}\endsetslot
\nextslot{`9}\setslot{nine}\fancykerns{nine}\endsetslot


\nextslot{`a}\setslot{hobbitA}\fancykerns{hobbitA}\endsetslot
\nextslot{`b}\setslot{hobbitB}\fancykerns{hobbitB}\endsetslot
\nextslot{`c}\setslot{hobbitC}\fancykerns{hobbitC}\endsetslot
\nextslot{`d}\setslot{hobbitD}\fancykerns{hobbitD}\endsetslot
\nextslot{`e}\setslot{hobbitE}\ligature{LIG}{hobbitE}{hobbitEE}\ligature{LIG}{hobbitO}{hobbitEO}\ligature{LIG}{hobbitA}{hobbitEA}\fancykerns{hobbitE}\endsetslot
\nextslot{`f}\setslot{hobbitF}\fancykerns{hobbitF}\endsetslot
\nextslot{`g}\setslot{hobbitG}\fancykerns{hobbitG}\endsetslot
\nextslot{`h}\setslot{hobbitH}\fancykerns{hobbitH}\endsetslot
\nextslot{`i}\setslot{hobbitI}\fancykerns{hobbitI}\endsetslot
\nextslot{`j}\setslot{hobbitJ}\fancykerns{hobbitJ}\endsetslot
\nextslot{`k}\setslot{hobbitK}\fancykerns{hobbitK}\endsetslot
\nextslot{`l}\setslot{hobbitL}\fancykerns{hobbitL}\endsetslot
\nextslot{`m}\setslot{hobbitM}\fancykerns{hobbitM}\endsetslot
\nextslot{`n}\setslot{hobbitN}\ligature{LIG}{hobbitG}{hobbitNG}\fancykerns{hobbitN}\endsetslot
\nextslot{`o}\setslot{hobbitO}\ligature{LIG}{hobbitO}{hobbitOO}\ligature{LIG}{hobbitA}{hobbitOA}\fancykerns{hobbitO}\endsetslot
\nextslot{`p}\setslot{hobbitP}\ligature{LIG}{hobbitH}{hobbitF}\fancykerns{hobbitP}\endsetslot
\nextslot{`q}\setslot{hobbitQ}\ligature{LIG}{hobbitU}{hobbitQ}\fancykerns{hobbitQ}\endsetslot
\nextslot{`r}\setslot{hobbitR}\fancykerns{hobbitR}\endsetslot
\nextslot{`s}\setslot{hobbitS}\ligature{LIG}{hobbitTcap}{hobbitST}\fancykerns{hobbitS}\endsetslot
\nextslot{`t}\setslot{hobbitT}\ligature{LIG}{hobbitH}{hobbitTH}\fancykerns{hobbitT}\endsetslot
\nextslot{`u}\setslot{hobbitU}\fancykerns{hobbitU}\endsetslot
\nextslot{`v}\setslot{hobbitV}\fancykerns{hobbitV}\endsetslot
\nextslot{`w}\setslot{hobbitW}\fancykerns{hobbitW}\endsetslot
\nextslot{`x}\setslot{hobbitX}\fancykerns{hobbitX}\endsetslot
\nextslot{`y}\setslot{hobbitY}\fancykerns{hobbitY}\endsetslot
\nextslot{`z}\setslot{hobbitZ}\fancykerns{hobbitZ}\endsetslot
\nextslot{`A}\setslot{hobbitA}\fancykerns{hobbitA}\endsetslot
\nextslot{`B}\setslot{hobbitB}\fancykerns{hobbitB}\endsetslot
\nextslot{`C}\setslot{hobbitC}\fancykerns{hobbitC}\endsetslot
\nextslot{`D}\setslot{hobbitD}\fancykerns{hobbitD}\endsetslot
\nextslot{`E}\setslot{hobbitE}\ligature{LIG}{hobbitE}{hobbitEE}\ligature{LIG}{hobbitO}{hobbitEO}\ligature{LIG}{hobbitA}{hobbitEA}\fancykerns{hobbitE}\endsetslot
\nextslot{`F}\setslot{hobbitF}\fancykerns{hobbitF}\endsetslot
\nextslot{`G}\setslot{hobbitG}\fancykerns{hobbitG}\endsetslot
\nextslot{`H}\setslot{hobbitH}\fancykerns{hobbitH}\endsetslot
\nextslot{`I}\setslot{hobbitI}\fancykerns{hobbitI}\endsetslot
\nextslot{`J}\setslot{hobbitJ}\fancykerns{hobbitJ}\endsetslot
\nextslot{`K}\setslot{hobbitK}\fancykerns{hobbitK}\endsetslot
\nextslot{`L}\setslot{hobbitL}\fancykerns{hobbitL}\endsetslot
\nextslot{`M}\setslot{hobbitM}\fancykerns{hobbitM}\endsetslot
\nextslot{`N}\setslot{hobbitN}\fancykerns{hobbitNcap}\endsetslot
\nextslot{`O}\setslot{hobbitO}\ligature{LIG}{hobbitO}{hobbitOO}\ligature{LIG}{hobbitA}{hobbitOA}\fancykerns{hobbitO}\endsetslot
\nextslot{`P}\setslot{hobbitP}\ligature{LIG}{hobbitH}{hobbitF}\fancykerns{hobbitP}\endsetslot
\nextslot{`Q}\setslot{hobbitQ}\ligature{LIG}{hobbitU}{hobbitQ}\fancykerns{hobbitQ}\endsetslot
\nextslot{`R}\setslot{hobbitR}\fancykerns{hobbitR}\endsetslot
\nextslot{`S}\setslot{hobbitS}\ligature{LIG}{hobbitTcap}{hobbitST}\fancykerns{hobbitS}\endsetslot
\nextslot{`T}\setslot{hobbitTcap}\ligature{LIG}{hobbitH}{hobbitTH}\fancykerns{hobbitTcap}\endsetslot
\nextslot{`U}\setslot{hobbitU}\fancykerns{hobbitU}\endsetslot
\nextslot{`V}\setslot{hobbitV}\fancykerns{hobbitV}\endsetslot
\nextslot{`W}\setslot{hobbitW}\fancykerns{hobbitW}\endsetslot
\nextslot{`X}\setslot{hobbitX}\fancykerns{hobbitX}\endsetslot
\nextslot{`Y}\setslot{hobbitY}\fancykerns{hobbitY}\endsetslot
\nextslot{`Z}\setslot{hobbitZ}\fancykerns{hobbitZ}\endsetslot

\nextslot{\int{adislot}}\setslot{hobbitAnodipthong}\fancykerns{hobbitAnodipthong}\endsetslot
\nextslot{\int{edislot}}\setslot{hobbitEnodipthong}\fancykerns{hobbitEnodipthong}\endsetslot
\nextslot{\int{idislot}}\setslot{hobbitInodipthong}\fancykerns{hobbitInodipthong}\endsetslot
\nextslot{\int{odislot}}\setslot{hobbitOnodipthong}\fancykerns{hobbitOnodipthong}\endsetslot
\nextslot{\int{udislot}}\setslot{hobbitUnodipthong}\fancykerns{hobbitUnodipthong}\endsetslot
\nextslot{\int{ydislot}}\setslot{hobbitYnodipthong}\fancykerns{hobbitYnodipthong}\endsetslot

\nextslot{\int{longa}}\setslot{hobbitAA}\fancykerns{hobbitAA}\endsetslot
\nextslot{\int{longe}}\setslot{hobbitEE}\fancykerns{hobbitEE}\endsetslot
\nextslot{\int{longi}}\setslot{cirthII}\fancykerns{cirthII}\endsetslot
\nextslot{\int{longo}}\setslot{hobbitOO}\fancykerns{hobbitOO}\endsetslot
\nextslot{\int{longu}}\setslot{hobbitUU}\fancykerns{hobbitUU}\endsetslot
\nextslot{\int{longy}}\setslot{hobbitYY}\fancykerns{hobbitYY}\endsetslot

\nextslot{\int{aaslot}}\setslot{hobbitAA}\fancykerns{hobbitAA}\endsetslot
\nextslot{\int{eeslot}}\setslot{hobbitEE}\fancykerns{hobbitEE}\endsetslot
\nextslot{\int{iislot}}\setslot{cirthII}\fancykerns{cirthII}\endsetslot
\nextslot{\int{ooslot}}\setslot{hobbitOO}\fancykerns{hobbitOO}\endsetslot
\nextslot{\int{uuslot}}\setslot{hobbitUU}\fancykerns{hobbitUU}\endsetslot

% Kerned characters

\iffancykerns

\advanceslot\setslot{hobbitTkerned}\ligature{LIG}{hobbitH}{hobbitTH}\fancykerns{hobbitT}\endsetslot
\advanceslot\setslot{hobbitNkerned}\ligature{LIG}{hobbitG}{hobbitNG}\fancykerns{hobbitN}\endsetslot

\advanceslot\setslot{hobbitOkernsforhobbitOO}\ligature{LIG}{hobbitO}{hobbitOOkerned}\ligature{LIG}{hobbitA}{hobbitOA}\fancykerns{hobbitO}\endsetslot
\advanceslot\setslot{hobbitOOkerned}\fancykerns{hobbitOO}\endsetslot
\advanceslot\setslot{hobbitEkernsforhobbitEA}\ligature{LIG}{hobbitA}{hobbitEAkerned}\ligature{LIG}{hobbitE}{hobbitEE}\ligature{LIG}{hobbitO}{hobbitEO}\fancykerns{hobbitE}\endsetslot
\advanceslot\setslot{hobbitEAkerned}\fancykerns{hobbitEA}\endsetslot

\fi

\endencoding
