# What package allows Elvish in TeX?

Anyone who has read The Lord of the Rings will recognise the Elvish script at the top of this page (in the Tengwar alphabet). If this is meant to be an example of what is typesettable in TeX/related software, what package is used to produce it?

-
I wonder about the elvish tag. Since the script actually has a name, wouldn't it be better to use tengwar instead? –  Willie Wong Mar 9 '11 at 14:29
The real question is can you typeset the Black Speech of Mordor in TeX? –  Canageek Dec 18 '11 at 21:14
@Canageek --- Yes. Use Elvish letters as Sauron himself did for the inscription on the One Ring. –  Ian Thompson Jan 4 '12 at 23:47
@IanThompson I noticed that this was already mentioned in the answer below shortly after I posted it. –  Canageek Jan 5 '12 at 1:50
I always wondered why there was Elvish script at the top of the page. (Not that I dislike Lord of the Rings, but it seems like an odd choice.) –  jon Apr 6 '14 at 15:45

Here's how to do that particular inscription (which is part of the ring inscription, by the way). I happen to know because I recently used it in a diagram!

\documentclass{minimal}
\usepackage[annataritalic]{tengwarscript}

\begin{document}

\tengwarannataritalic[2.5]
\tengwa{254}
\Textendedcalma\TTthreedots\Tnuumen\Tessenuquerna\TTthreedots\Tungwe\Tando\Toore\TTrightcurl\Tumbar\Ttinco\TTthreedots\Tlambealt\TTrightcurl\Tquesse\TTdoublerightcurl
\Tromanperiod\Ts
\Textendedcalma\TTthreedots\Tnuumen\Tessenuquerna\TTthreedots\Tungwe\Tungwe\Tumbar\TTnasalizer\TTdot\Ttinco\TTthreedots\Tlambe\TTrightcurl
\tengwa{255}\\
\Textendedcalma\TTthreedots\Tnuumen\Tessenuquerna\TTthreedots\Tungwe\Tthuule\Troomen\Tquesse\TTthreedots\Ttinco\TTthreedots\Tlambealt\TTrightcurl\Tquesse\TTdoublerightcurl
\Tromanperiod\Ts
\Textendedungwe\TTthreedots\Tumbar\Toore\TTrightcurl\Tesse\Tkern{-0.2}\Tmalta\TTrightcurl\Textendedcalma\TTdot\Ttelco\TTdot\Tquesse\Troomen\Tparma\TTnasalizer\TTdot\Ttinco\TTthreedots\Tlambe\TTrightcurl
\end{document}


Result:

As you can see, the input method is not particularly intuitive, but then I don't think that there is a particularly intuitive way of entering Elvish script. There are a few different packages on CTAN (search for tengwar). The ones I looked at were:

• tengwarscript: uses commands as above
• tengtex: uses an "asciification" of the letters

In all cases, you will need to get hold of the fonts. Searching for tengwar font latex brings up all sorts of options, I think (it was a while ago) that I started looking on this site.

(And just 'coz I can, here's the diagram wherein it was used):

-
What is that - some kind of crazy wild knot diagram? –  David Roberts Mar 9 '11 at 10:48
@David: Don't you know the different between a knot and a link??? –  Loop Space Mar 9 '11 at 10:58
By golly, you're right. But at this resolution, did you expect me to check that it was a link and not a knot? :-P –  David Roberts Mar 9 '11 at 20:25
@David: I thought that maybe the colours would give it away. (To find out more, take a look at the following section of my homepage: math.ntnu.no/~stacey/Research/Preprints/TheEnchantedForest/… ) –  Loop Space Mar 9 '11 at 21:23
Obvious now you say it. Thanks for the pointer to where you've used it! –  David Roberts Mar 10 '11 at 0:50

You can use Xe(La)TeX if you use the Unicode (Private Use Area) Tengwar fonts published by the Free Tengwar Font Project and set the rendering engine to Graphite. There are no Ring-like fonts yet, but Tengwar Telcontar is a solid text font, and if you don't care for it Tengwar Formal CSUR is a Unicode version of the moderately popular Tengwar Formal. (FreeMonoTengwar is not good for body text and Constructium, Tengwar Beleriand, and Tengwar Eldamar have some Unicode support but lack the tables needed for tehtar positioning.) You'll need a special keyboard (for instance one of the Free Tengwar Font Project's keyboard layouts) or some such input method, but no extra macros.

Here is what Tengwar Telcontar may look like (note connected characters and uppercase tengwar):

\documentclass{scrartcl}
\font\tengtelc="Tengwar Telcontar/GR"
\font\tengtelcCaps="Tengwar Telcontar/GR:203=2"
\begin{document}
\tengtelc
{\tengtelcCaps }      \par
  {\tengtelcCaps } {\tengtelcCaps }  {\tengtelcCaps }.
\end{document}


To illustrate the advantage of using a Private Use Area tengwar font, here is what this code looks like when displayed with FreeMonoTengwar (note how the tengwar show up):

There is an overview of the Tengwar Telcontar Graphite features.

-
That sounds fantastic. Could you add some links to the fonts? (Also, pardon my ignorance, but I've no idea what "set the rendering engine to Graphite" means.) –  Loop Space May 26 '12 at 17:25

There is a package called TengwarScript for that.

-

Following on the approach of the Free Tengwar project that Amy describes.

I would add that, if you are working in Texstudio, and UTF-8, you can use Free Mono Tengwar as the font in your source editor window.

Options -> Configure TeXstudio -> Editor

... and then set the "Font Family:" to FreeMonoTengwar

This font lets you use both Roman letters and Tengwar in your source code.

If you will use Tengwar in your sectioning commands (\chapter, \section, etc), you might want to set the Options -> Configure TeXstudio -> General -> Font: to FreeMonoTengwar. Otherwise, the Structure pane will display boxes where you would expect to see Tengwar.

If you install and use the keyboards supplied by the Free Tengwar project, you can then enter Tengwar directly into the source. To get Tengwar out in the PDF or whatever, you will need to set up and use an appropriate font.

...
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\newfontfamily{\telcontar}[Renderer=Graphite]{Tengwar Telcontar}
...


Then, in your document itself, you can use:

{\telcontar      ⁘ }

Note, that text above probably looks like boxes in your browser, but it should cut and paste successfully into your TeXstudio source window, and the image below should show it clearly.

When that was compiled with XeLaTeX, I got:

I think it is probably better to "think" your Quenya (or Sindarin) in Tengwar and not in Roman transliteration, so enter Tengwar directly. That said, I suspect that Tolkien might have done most of his work in Roman transliteration. Still, the Tengwar is more fun, and this is something done for fun and beauty.

[Ah, the Tengwar above is "Hisiel ar Nenwe tirat i taure." I believe that to be "Hisiel and Nenwe are watching the forest." ]

Being editor agnostic, the procedure I would recommend is:

1. Download and install the fonts and keyboards provided by the Free Tengwar Font Project. (Link in Amy's solution.)

2. Configure your editor to use UTF-8 encoding and FreeMonoTengwar.

3. Edit your preamble (as shown above) to use Tengwar Telcontar to output the Tengwar unicode symbols.

4. Use the Free Tengwar keyboards to enter Tengwar directly into your LateX source.

5. Use xelatex -synctex=1 -interaction=nonstopmode filename.tex to compile your LaTeX.

-
In most if not all editors you can change the font for the source window, not just TeXstudio. I guess the important thing here is that it must UTF-8 able. –  Speravir Apr 5 '14 at 22:18
Yes, working in UTF8 is very important. I will add that in above. –  Hína Kemenduro Apr 6 '14 at 14:43
Thanks for adding the details! Next time I want to get elvish script in one of my papers then I know what to do. I completely agree with the "something done for fun and beauty" - best of both worlds. –  Loop Space Apr 7 '14 at 6:54
(Just read your profile ... welcome to the site and good luck with the projects.) –  Loop Space Apr 7 '14 at 6:55
Thanks for the welcome. –  Hína Kemenduro Apr 7 '14 at 13:15