summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-17 23:10:18 +0000
committerKarl Berry <karl@freefriends.org>2013-05-17 23:10:18 +0000
commitd553751babb6687080e5be4a59c1251b50769fba (patch)
treea1c28fa109cc5aa7743d1e281dfaf1d3ea592326 /Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html
parent250b068031be5ecb27196d8b9b41e762f53e3c56 (diff)
greek-fontenc, with new lgrenc.def
git-svn-id: svn://tug.org/texlive/trunk@30541 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html')
-rw-r--r--Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html1230
1 files changed, 1230 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html
new file mode 100644
index 00000000000..9c609c9b3f4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc.def.html
@@ -0,0 +1,1230 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" />
+<title>lgrenc.def</title>
+<meta name="copyright" content="© 2010 Günter Milde" />
+<link rel="stylesheet" href="../../../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" />
+<link rel="stylesheet" href="../../../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" />
+</head>
+<body>
+<div class="document" id="lgrenc-def">
+<h1 class="title">lgrenc.def</h1>
+<h2 class="subtitle" id="lgr-greek-font-encoding-definitions">LGR Greek font encoding definitions</h2>
+
+<dl class="docinfo simple">
+<dt class="copyright">Copyright</dt>
+<dd class="copyright">© 2010 Günter Milde</dd>
+<dt>Licence</dt>
+<dd><p>This work may be distributed and/or modified under the
+conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either
+version&nbsp;1.3 of this license or any later version.</p>
+</dd>
+</dl>
+<div class="abstract topic">
+<p class="topic-title first">Abstract</p>
+<p>The LGR font encoding is the de-facto standard for Greek
+typesetting with LaTeX. This file provides a comprehensive set
+of macros to typeset Greek with LGR encoded fonts. It works for
+both, monotonic and polytonic Greek, independent of the <cite>babel</cite>
+package.</p>
+</div>
+<div class="contents topic" id="contents">
+<p class="topic-title first">Contents</p>
+<ul class="simple">
+<li><p><a class="reference internal" href="#changelog" id="id1">Changelog</a></p></li>
+<li><p><a class="reference internal" href="#usage" id="id2">Usage</a></p></li>
+<li><p><a class="reference internal" href="#preliminary-considerations-licr-macro-names" id="id3">preliminary considerations: LICR macro names</a></p>
+<ul>
+<li><p><a class="reference internal" href="#proposals" id="id4">Proposals</a></p></li>
+<li><p><a class="reference internal" href="#how-to-name-accent-macros" id="id5">How to name <em>accent macros</em>?</a></p></li>
+<li><p><a class="reference internal" href="#references" id="id6">References</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#implementation" id="id7">Implementation</a></p>
+<ul>
+<li><p><a class="reference internal" href="#read-this-file-only-once" id="id8">Read this file only once</a></p></li>
+<li><p><a class="reference internal" href="#identification" id="id9">Identification</a></p></li>
+<li><p><a class="reference internal" href="#base-setup" id="id10">Base setup</a></p></li>
+<li><p><a class="reference internal" href="#text-symbols" id="id11">Text symbols</a></p>
+<ul>
+<li><p><a class="reference internal" href="#greek-alphabet" id="id12">Greek Alphabet</a></p></li>
+<li><p><a class="reference internal" href="#additional-greek-symbols" id="id13">Additional Greek symbols</a></p>
+<ul>
+<li><p><a class="reference internal" href="#ancient-greek-numbers-athenian-numerals" id="id14">Ancient Greek Numbers (Athenian Numerals)</a></p></li>
+<li><p><a class="reference internal" href="#archaic-letters" id="id15">Archaic letters</a></p></li>
+<li><p><a class="reference internal" href="#numeral-signs" id="id16">Numeral signs</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#other" id="id17">Other</a></p></li>
+<li><p><a class="reference internal" href="#not-implemented" id="id18">Not implemented</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#diacritics" id="id19">Diacritics</a></p>
+<ul>
+<li><p><a class="reference internal" href="#named-macros" id="id20">Named macros</a></p></li>
+<li><p><a class="reference internal" href="#aliases" id="id21">Aliases</a></p></li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#composite-definitions" id="id22">Composite definitions</a></p>
+<ul>
+<li><p><a class="reference internal" href="#composite-diacritics" id="id23">Composite diacritics</a></p></li>
+<li><p><a class="reference internal" href="#pre-composed-letters" id="id24">Pre-composed letters</a></p>
+<ul>
+<li><p><a class="reference internal" href="#small-letters-with-diacritics" id="id25">Small letters with diacritics</a></p></li>
+<li><p><a class="reference internal" href="#capital-letters-with-diacritics" id="id26">Capital letters with diacritics</a></p></li>
+</ul>
+</li>
+</ul>
+</li>
+<li><p><a class="reference internal" href="#uppercase" id="id27">UPPERCASE</a></p>
+<ul>
+<li><p><a class="reference internal" href="#uclclist-extension" id="id28">&#64;uclclist extension</a></p></li>
+<li><p><a class="reference internal" href="#substitution-macros" id="id29">Substitution macros</a></p>
+<ul>
+<li><p><a class="reference internal" href="#drop-diacritics" id="id30">Drop diacritics</a></p></li>
+<li><p><a class="reference internal" href="#keep-dialytika" id="id31">Keep dialytika.</a></p></li>
+<li><p><a class="reference internal" href="#mark-hiatus" id="id32">Mark hiatus</a></p></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="section" id="changelog">
+<h1><a class="toc-backref" href="#id1">Changelog</a></h1>
+<p class="borderless">Development of this file started under the name “lgrxenc.def” as part of the
+<a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> bundle. With version 0.8, it moved to <tt class="literal"><span class="pre">greek-fontenc/lgrx.def</span></tt>.</p>
+<table>
+<colgroup>
+<col width="7%" />
+<col width="17%" />
+<col width="76%" />
+</colgroup>
+<tbody>
+<tr><td><p>0.1</p></td>
+<td><p>2010-03-31</p></td>
+<td><p>initial attempt</p></td>
+</tr>
+<tr><td><p>0.2</p></td>
+<td><p>2010-04-20</p></td>
+<td><p>diacritics dropped in UPPERCASE</p></td>
+</tr>
+<tr><td><p>0.3</p></td>
+<td><p>2010-06-08</p></td>
+<td><p>handle Titlecase and UPPERCASE extending
+<tt class="literal">\&#64;uclclist</tt></p></td>
+</tr>
+<tr><td><p>0.4</p></td>
+<td><p>2010-06-15</p></td>
+<td><p>more text symbols</p></td>
+</tr>
+<tr><td><p>0.5</p></td>
+<td><p>2010-08-27</p></td>
+<td><p>support <tt class="literal">\textalpha</tt> … <tt class="literal">\textOmega</tt></p></td>
+</tr>
+<tr><td><p>0.5.1</p></td>
+<td><p>2012-05-08</p></td>
+<td><p>upload to CTAN</p></td>
+</tr>
+<tr><td><p>0.6</p></td>
+<td><p>2012-06-29</p></td>
+<td><p><tt class="literal">\TextGreek</tt> wrapper command,
+aliases for <tt class="literal">puenc.def</tt> compatibility</p></td>
+</tr>
+<tr><td><p>0.6.1</p></td>
+<td><p>2013-02-12</p></td>
+<td><p><tt class="literal">\&#64;uclclist</tt> entries for <cite>PU</cite> aliases</p></td>
+</tr>
+<tr><td><p>0.7</p></td>
+<td><p>2013-05-13</p></td>
+<td><p>documentation update, new accent macros names,
+<tt class="literal">\TextGreek</tt> renamed to <tt class="literal">\ensuregreek</tt>.</p></td>
+</tr>
+<tr><td><p>0.8</p></td>
+<td><p>2013-05-13</p></td>
+<td><p>rename to lgrenc.def (superseding the <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> version),
+move to greek-fontenc,
+drop back-compatibility definitions</p></td>
+</tr>
+</tbody>
+</table>
+</div>
+<div class="section" id="usage">
+<h1><a class="toc-backref" href="#id2">Usage</a></h1>
+<p>Load this file by calling <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> with the <tt class="literal">LGR</tt> option
+or indirectly via the <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>, <a class="reference external" href="textalpha.sty.html">textalpha</a> or <a class="reference external" href="alphabeta.sty.html">alphabeta</a> packages.</p>
+<dl class="docutils">
+<dt>Example:</dt>
+<dd><p>Select font encodings <cite>T1</cite> (as default) and <cite>LGR</cite> (for Greek):</p>
+<blockquote>
+<p><tt class="literal"><span class="pre">\usepackage[LGR,T1]{fontenc}</span></tt></p>
+</blockquote>
+</dd>
+</dl>
+</div>
+<div class="section" id="preliminary-considerations-licr-macro-names">
+<h1><a class="toc-backref" href="#id3">preliminary considerations: LICR macro names</a></h1>
+<p>This file provides LaTeX internal character representations (LICR macros)
+for all non-ASCII characters present in the LGR font encoding. For Greek
+letters and diacritics, LICR macro names were selected based on the
+following considerations:</p>
+<p>The <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a> (section 6.4 Naming conventions) recommends:</p>
+<blockquote>
+<p>Where possible, text symbols should be named as <tt class="literal">\text</tt> followed
+by the Adobe glyph name: for example <tt class="literal">\textonequarter</tt> or
+<tt class="literal">\textsterling</tt>. Similarly, math symbols should be named as
+<tt class="literal">\math</tt> followed by the glyph name, for example
+<tt class="literal">\mathonequarter</tt> or <tt class="literal">\mathsterling</tt>.</p>
+</blockquote>
+<p>The <a class="reference external" href="http://www.adobe.com/devnet-archive/opentype/archives/aglfn.txt">Adobe Glyph List For New Fonts</a> has names for many glyphs in the
+<cite>Greek and Coptic</cite> Unicode block, but not for <cite>Greek extended</cite>.
+The <a class="reference external" href="http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt">Adobe Glyph List</a> (for existing fonts) lists additional glyph names
+used in older fonts.</p>
+<div class="section" id="proposals">
+<h2><a class="toc-backref" href="#id4">Proposals</a></h2>
+<ul>
+<li><p>If there exists a math-mode macro for a symbol, form the corresponding text
+macro by prepending <tt class="literal">text</tt>?</p>
+<dl class="docutils">
+<dt>Example:</dt>
+<dd><p>The glyph name for the GREEK SMALL LETTER FINAL SIGMA is <tt class="literal">sigma1</tt>,
+the corresponding math-macro is <tt class="literal">\varsigma</tt>. The text symbol could be
+made available as <tt class="literal">\textvarsigma</tt>.</p>
+</dd>
+<dt>Problems:</dt>
+<dd><p><tt class="literal">\varepsilon</tt> and <tt class="literal">\varphi</tt> math macros map to characters named
+“GREEK SMALL <strong>LETTER</strong> …”, while <tt class="literal">\\vartheta</tt>, <tt class="literal">\\varkappa</tt>,
+<tt class="literal">\\varrho</tt>, and <tt class="literal">\\varpi</tt> math macros map to “GREEK … <strong>SYMBOL</strong>”
+Unicode characters.</p>
+<p>In Greek text, these variants are interchangeable. The LGR font encoding
+does not contain slots for “symbol” glyph variants. In some Greek fonts,
+GREEK SMALL LETTERS use glyph variants resembling the corresponding
+GREEK SYMBOL Unicode character’s reference glyph.</p>
+</dd>
+</dl>
+</li>
+<li><p>Derive macro names from Unicode names?</p>
+<p>The <a class="reference external" href="http://www.unicode.org/Public/UNIDATA/NamesList.txt">Unicode names list</a> provides standardized descriptive names for all
+Unicode characters that use only capital letters of the Latin alphabet.
+While not suited for direct use in a LICR macros, they can be either</p>
+<ol class="loweralpha simple">
+<li><p>used as inspiration for new LICR macro names or</p></li>
+<li><p>converted to LICR macro names via a defined set of transformation rules.</p></li>
+</ol>
+<dl class="docutils">
+<dt>Example:</dt>
+<dd><p><tt class="literal">\textfinalsigma</tt> or just <tt class="literal">\finalsigma</tt> as a more descriptive name
+for GREEK SMALL LETTER FINAL SIGMA derived via the rules:</p>
+<ul class="simple">
+<li><p>drop “LETTER” if the name remains unique,</p></li>
+<li><p>drop “GREEK” if the name remains unique,</p></li>
+<li><p>use capitalized name for capital letters, lowercase for “SMALL” letters
+and drop “SMALL”,</p></li>
+<li><p>concatenate</p></li>
+</ul>
+</dd>
+</dl>
+</li>
+<li><p>Omit the “text” prefix for macros that do not have a math counterpart?</p>
+<dl class="docutils">
+<dt>Pro:</dt>
+<dd><ul class="simple">
+<li><p>Simpler,</p></li>
+<li><p>ease of use (less typing, better readability of source text),</p></li>
+<li><p>many established text macro names without “text”,</p></li>
+<li><p>there are examples of encoding-specific macros
+without the <tt class="literal">text</tt>-prefix, especially for letters,</p>
+<dl class="field-list simple">
+<dt>T1</dt>
+<dd><p><tt class="literal">\AE \DH \DJ \L \NG \OE \O \SS \TH \ae \dh \dj \guillemotleft</tt>
+<tt class="literal">\guillemotright \guilsinglleft \guilsinglright \i \j \l \ng</tt>
+<tt class="literal">\oe \o \quotedblbase \quotesinglbase \ss \th</tt> (also in OT1)</p>
+</dd>
+<dt>T2*</dt>
+<dd><p><tt class="literal">\CYR*</tt> and <tt class="literal">\cyr*</tt></p>
+</dd>
+<dt>HE8</dt>
+<dd><p><tt class="literal">\heb*</tt> or no prefix</p>
+</dd>
+<dt>PU</dt>
+<dd><p>short descriptive names in the arabic part (<tt class="literal">puarenc.def</tt>)</p>
+</dd>
+</dl>
+</li>
+<li><p><tt class="literal">text</tt> prefix does <strong>not</strong> mark a macro as encoding-specific or
+“inserting a glyph”. There are e.g. font-changing macros (<tt class="literal">\textbf</tt>,
+<tt class="literal">\textit</tt>) and encoding-changing macros (<tt class="literal">\textgreek</tt>,
+<tt class="literal">\textcyr</tt>).</p></li>
+</ul>
+</dd>
+<dt>Contra:</dt>
+<dd><ul class="simple">
+<li><p>Less consistent.</p></li>
+<li><p><tt class="literal">text</tt> prefix marks a macro as confined to text mode.</p></li>
+</ul>
+</dd>
+</dl>
+</li>
+</ul>
+</div>
+<div class="section" id="how-to-name-accent-macros">
+<h2><a class="toc-backref" href="#id5">How to name <em>accent macros</em>?</a></h2>
+<ul>
+<li><p>standard accent macros (<tt class="literal">\DeclareTextAccent</tt> definitions in
+<tt class="literal"><span class="pre">latex/base/...</span></tt>) are one-symbol macros (<tt class="literal">\' \&quot; ... \u \v ...</tt>) .</p></li>
+<li><p>tipa.sty and ucs use the “text” prefix also for accents.</p>
+<p>However, the <a class="reference external" href="http://www.adobe.com/devnet-archive/opentype/archives/aglfn.txt">Adobe Glyph List For New Fonts</a> maps, e.g., “tonos” and
+“dieresistonos” to 0384 GREEK TONOS and 0385 GREEK DIALYTIKA TONOS, hence
+<cite>texttonos</cite> and <cite>textdiaresistonos</cite> should denote these spacing
+characters.</p>
+</li>
+<li><p>textcomp (ts1enc.def) defines <tt class="literal"><span class="pre">\capital...</span></tt> accents (i.e. without
+<tt class="literal">text</tt> prefix).</p></li>
+<li><p>Use a common prefix <tt class="literal"><span class="pre">\accent...</span></tt> or postfix <tt class="literal"><span class="pre">\...accent</span></tt>,
+or short <tt class="literal"><span class="pre">\acc...</span></tt>?</p></li>
+</ul>
+<p>Currently, <cite>lgrx</cite> uses for <a class="reference internal" href="#diacritics">diacritics</a>:</p>
+<ul class="simple">
+<li><p>Greek names like in Unicode, and ucsencs.def</p></li>
+<li><p>The prefix “acc” to distinguish the macros as <cite>TextAaccent</cite> and reduce the
+risc of name clashes (cf <tt class="literal">\&#64;tabacckludge</tt>).</p></li>
+<li><p>For the end-user “symbol macros” (<tt class="literal">\~ \' \` \&quot; \&lt; \&gt;</tt>) are provided.</p></li>
+</ul>
+</div>
+<div class="section" id="references">
+<h2><a class="toc-backref" href="#id6">References</a></h2>
+<p>An alternative, more complete set of short mnemonic character names is
+the <a class="reference external" href="http://www.w3.org/TR/xml-entity-names/">XML Entity Definitions for Characters</a> W3C Recommendation from
+01 April 2010.</p>
+<p>For glyph names of the LGR encoding see e.g. <tt class="literal">CB.enc</tt> by Apostolos
+Syropoulos and <tt class="literal"><span class="pre">xl-lgr.enc</span></tt> from the <a class="reference external" href="http://www.ctan.org/pkg/libertine-legacy">libertine</a> (legacy) package.
+<tt class="literal">lgr.cmap</tt> provides a mapping to Unicode characters.</p>
+<p>A full set of <tt class="literal">\text*</tt> symbol macros is defined in <tt class="literal">ucsencs.def</tt>
+from the <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a> package.</p>
+<p>Aliases from <tt class="literal">puenc.def</tt> ensure that the <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> package can
+convert Greek symbols to a PDF-string.</p>
+</div>
+</div>
+<div class="section" id="implementation">
+<h1><a class="toc-backref" href="#id7">Implementation</a></h1>
+<div class="section" id="read-this-file-only-once">
+<h2><a class="toc-backref" href="#id8">Read this file only once</a></h2>
+<div class="note">
+<p class="admonition-title">Note</p>
+<p>The use of <tt class="literal">\&#64;ifundefined</tt> has the side-effect that the tested
+macro becomes defined and set to <tt class="literal">\relax</tt> (polluting the namespace and
+interfering with test via eTeX’s <tt class="literal">\ifdefined</tt>). However, in this case
+no harm is done as the macro is defined by the <a class="reference internal" href="#identification">identification</a> below
+anyway.</p>
+</div>
+<pre class="literal-block">\&#64;ifundefined{ver&#64;lgrenc.def}
+ {}
+ {\message{LGR font encoding definitions already loaded}
+ \expandafter\endinput % &quot;return&quot;
+ }
+</pre>
+</div>
+<div class="section" id="identification">
+<h2><a class="toc-backref" href="#id9">Identification</a></h2>
+<pre class="literal-block">\ProvidesFile{lgrenc.def}
+[2013/05/13 v0.8 LGR Greek font encoding definitions]
+</pre>
+<p>You can test the version date using</p>
+<pre class="code latex literal-block"><span class="keyword">\&#64;</span>ifl&#64;ter <span class="name builtin">{</span>extension<span class="name builtin">}{</span>filename<span class="name builtin">}{</span>date<span class="name builtin">}{</span>YES<span class="name builtin">}{</span>NO<span class="name builtin">}</span>
+</pre>
+<p>or using <a class="reference external" href="http://www.ctan.org/pkg/ltxcmds">ltxcmds</a>’ <tt class="literal">\&#64;iffilelater</tt></p>
+</div>
+<div class="section" id="base-setup">
+<h2><a class="toc-backref" href="#id10">Base setup</a></h2>
+<p>Declare the font encoding and base substitutions:</p>
+<pre class="literal-block">\DeclareFontEncoding{LGR}{}{}
+\DeclareFontSubstitution{LGR}{cmr}{m}{n}
+\DeclareErrorFont{LGR}{cmr}{m}{n}{10}
+</pre>
+<p>The <tt class="literal">\ensuregreek</tt> command can be used to ensure that its argument is set
+in a font encoding with support for Greek. If the font encoding is already
+LGR, kerning between adjacent command calls (e.g.
+<tt class="literal"><span class="pre">\ensuregreek{A}\ensuregreek{\Upsilon}</span></tt>) is preserved. This allows
+wrapping of compound Unicode character definitions.</p>
+<pre class="literal-block">\DeclareTextCommand{\ensuregreek}{LGR}[1]{#1}
+</pre>
+</div>
+<div class="section" id="text-symbols">
+<h2><a class="toc-backref" href="#id11">Text symbols</a></h2>
+<div class="section" id="greek-alphabet">
+<h3><a class="toc-backref" href="#id12">Greek Alphabet</a></h3>
+<p>Greek letters are accessible by the Latin transcription, but the mapping is
+specific to the LGR font encoding.</p>
+<p>The LICR macros provide a way to access the symbols independent of the
+specific font encoding, in any font encoding supporting Greek. An
+alternative Greek font encodings is. LGI (<a class="reference external" href="http://www.ctan.org/pkg/ibycus-babel">ibycus</a>). Greek script is also
+supported by the Unicode-based font encodings PU (<cite>PDF Unicode</cite> used by
+<a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> for PDF metadata), EU1 (XeTeX) and EU2 (LuaTeX). The <a class="reference external" href="textalpha.sty.html">textalpha</a>
+package makes these macros available independent of the current font
+encoding.</p>
+<pre class="literal-block">\DeclareTextSymbol{\textAlpha}{LGR}{65}
+\DeclareTextSymbol{\textBeta}{LGR}{66}
+\DeclareTextSymbol{\textGamma}{LGR}{71}
+\DeclareTextSymbol{\textDelta}{LGR}{68}
+\DeclareTextSymbol{\textEpsilon}{LGR}{69}
+\DeclareTextSymbol{\textZeta}{LGR}{90}
+\DeclareTextSymbol{\textEta}{LGR}{72}
+\DeclareTextSymbol{\textTheta}{LGR}{74}
+\DeclareTextSymbol{\textIota}{LGR}{73}
+\DeclareTextSymbol{\textKappa}{LGR}{75}
+\DeclareTextSymbol{\textLambda}{LGR}{76}
+\DeclareTextSymbol{\textMu}{LGR}{77}
+\DeclareTextSymbol{\textNu}{LGR}{78}
+\DeclareTextSymbol{\textXi}{LGR}{88}
+\DeclareTextSymbol{\textOmicron}{LGR}{79}
+\DeclareTextSymbol{\textPi}{LGR}{80}
+\DeclareTextSymbol{\textRho}{LGR}{82}
+\DeclareTextSymbol{\textSigma}{LGR}{83}
+\DeclareTextSymbol{\textTau}{LGR}{84}
+\DeclareTextSymbol{\textUpsilon}{LGR}{85}
+\DeclareTextSymbol{\textPhi}{LGR}{70}
+\DeclareTextSymbol{\textChi}{LGR}{81}
+\DeclareTextSymbol{\textPsi}{LGR}{89}
+\DeclareTextSymbol{\textOmega}{LGR}{87}
+%
+\DeclareTextSymbol{\textalpha}{LGR}{97}
+\DeclareTextSymbol{\textbeta}{LGR}{98}
+\DeclareTextSymbol{\textgamma}{LGR}{103}
+\DeclareTextSymbol{\textdelta}{LGR}{100}
+\DeclareTextSymbol{\textepsilon}{LGR}{101}
+\DeclareTextSymbol{\textzeta}{LGR}{122}
+\DeclareTextSymbol{\texteta}{LGR}{104}
+\DeclareTextSymbol{\texttheta}{LGR}{106}
+\DeclareTextSymbol{\textiota}{LGR}{105}
+\DeclareTextSymbol{\textkappa}{LGR}{107}
+\DeclareTextSymbol{\textlambda}{LGR}{108}
+\DeclareTextSymbol{\textmu}{LGR}{109}
+\DeclareTextSymbol{\textnu}{LGR}{110}
+\DeclareTextSymbol{\textxi}{LGR}{120}
+\DeclareTextSymbol{\textomicron}{LGR}{111}
+\DeclareTextSymbol{\textpi}{LGR}{112}
+\DeclareTextSymbol{\textrho}{LGR}{114}
+\DeclareTextCommand{\textsigma}{LGR}{s\noboundary} % σ
+\DeclareTextSymbol{\textvarsigma}{LGR}{99} % ς final sigma
+\DeclareTextSymbol{\textfinalsigma}{LGR}{99} % ς final sigma
+\DeclareTextSymbol{\textautosigma}{LGR}{115} % σ (ς at end of word)
+\DeclareTextSymbol{\texttau}{LGR}{116}
+\DeclareTextSymbol{\textupsilon}{LGR}{117}
+\DeclareTextSymbol{\textphi}{LGR}{102}
+\DeclareTextSymbol{\textchi}{LGR}{113}
+\DeclareTextSymbol{\textpsi}{LGR}{121}
+\DeclareTextSymbol{\textomega}{LGR}{119}
+</pre>
+</div>
+<div class="section" id="additional-greek-symbols">
+<h3><a class="toc-backref" href="#id13">Additional Greek symbols</a></h3>
+<div class="section" id="ancient-greek-numbers-athenian-numerals">
+<h4><a class="toc-backref" href="#id14">Ancient Greek Numbers (Athenian Numerals)</a></h4>
+<p>Names from the <a class="reference external" href="http://www.ctan.org/pkg/athnum">athnum</a> package
+(TODO: should we define them here?):</p>
+<pre class="literal-block">%\DeclareTextSymbol{\PiDelta}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY
+%\DeclareTextSymbol{\PiEta}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+%\DeclareTextSymbol{\PiChi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+%\DeclareTextSymbol{\PiMu}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+</pre>
+<p>Names from <tt class="literal"><span class="pre">xl-lgr.enc</span></tt> (Greek numerals):</p>
+<pre class="literal-block">\DeclareTextSymbol{\pentedeka}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY
+\DeclareTextSymbol{\pentehekaton}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+\DeclareTextSymbol{\penteqilioi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+\DeclareTextSymbol{\pentemurioi}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+</pre>
+</div>
+<div class="section" id="archaic-letters">
+<h4><a class="toc-backref" href="#id15">Archaic letters</a></h4>
+<p>Names after <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> and <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a>. The “text” prefix is only used for Digamma,
+which is also used in mathematical context:</p>
+<pre class="literal-block">\DeclareTextSymbol{\stigma}{LGR}{6} % ϛ (greek.ldf, teubner)
+\DeclareTextSymbol{\varstigma}{LGR}{7} % stigma variant (CB.enc, teubner)
+\DeclareTextSymbol{\koppa}{LGR}{18} % ϟ (greek small letter koppa)
+\DeclareTextSymbol{\qoppa}{LGR}{19} % ϙ (archaic koppa)
+\DeclareTextSymbol{\Qoppa}{LGR}{21} % Ϙ (archaic Koppa)
+\DeclareTextSymbol{\Stigma}{LGR}{22} % Ϛ (teubner) in some fonts ϹΤ ligature
+\DeclareTextSymbol{\Sampi}{LGR}{23} % Ϡ
+\DeclareTextSymbol{\sampi}{LGR}{27} % ϡ
+\DeclareTextSymbol{\anoteleia}{LGR}{38} % ·
+\DeclareTextSymbol{\erotimatiko}{LGR}{63} % ;
+% \digamma used by amsmath for math-macro:
+\DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ (uni-3.def (ucs))
+\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ (uni-3.def (ucs))
+</pre>
+<p>Compatibility aliases for <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>’s <tt class="literal">greek.ldf</tt> and <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>’s puenc.def,
+defined via <cite>DeclareTextCommand</cite> so that up/downcasing works without the
+need for additional uclclist entries:</p>
+<pre class="literal-block">\DeclareTextCommand{\vardigamma}{LGR}{\varstigma} % greek.ldf
+\DeclareTextCommand{\textstigmagreek}{LGR}{\stigma} % puenc.def
+\DeclareTextCommand{\textkoppagreek}{LGR}{\koppa} % puenc.def
+\DeclareTextCommand{\textStigmagreek}{LGR}{\Stigma} % puenc.def
+\DeclareTextCommand{\textSampigreek}{LGR}{\Sampi} % puenc.def
+\DeclareTextCommand{\textsampigreek}{LGR}{\sampi} % puenc.def
+\DeclareTextCommand{\ddigamma}{LGR}{\textdigamma} % greek.ldf
+\DeclareTextCommand{\textdigammagreek}{LGR}{\textdigamma} % puenc.def
+\DeclareTextCommand{\Digamma}{LGR}{\textDigamma} % greek.ldf
+\DeclareTextCommand{\textDigammagreek}{LGR}{\textDigamma} % puenc.def
+</pre>
+</div>
+<div class="section" id="numeral-signs">
+<h4><a class="toc-backref" href="#id16">Numeral signs</a></h4>
+<p>See also <a class="reference external" href="http://en.wikipedia.org/wiki/Greek_numerals">http://en.wikipedia.org/wiki/Greek_numerals</a></p>
+<p>Names from <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> and <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a>:</p>
+<pre class="literal-block">\DeclareTextSymbol{\anwtonos}{LGR}{254} % ʹ (Dexia keraia)
+\DeclareTextSymbol{\katwtonos}{LGR}{255} % ͵ (Aristeri keraia)
+</pre>
+<p>Compatibility definitions for <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>’s puenc.def:</p>
+<pre class="literal-block">\DeclareTextSymbol{\textnumeralsigngreek}{LGR}{254} % ʹ (puenc.def)
+\DeclareTextSymbol{\textnumeralsignlowergreek}{LGR}{255} % ͵ (puenc.def)
+</pre>
+</div>
+</div>
+<div class="section" id="other">
+<h3><a class="toc-backref" href="#id17">Other</a></h3>
+<p>Characters that also exist in other font encodings:</p>
+<ul class="simple">
+<li><p>define them for LGR if there is a matching glyph,</p></li>
+<li><p>use established macro names that match with other <tt class="literal">*enc.def</tt> files and
+<tt class="literal">textcomp.sty</tt>.</p></li>
+</ul>
+<pre class="literal-block">% all encodings: See usrguide.pdf, chapter 3.14 ff
+\DeclareTextSymbol{\textendash}{LGR}{0} % EN DASH
+\DeclareTextSymbol{\textquoteleft}{LGR}{28} % ‘
+\DeclareTextSymbol{\textquoteright}{LGR}{29} % ’
+\DeclareTextSymbol{\textperiodcentered}{LGR}{46} % · = \textanoteleia
+\DeclareTextSymbol{\textcompwordmark}{LGR}{118} % ZERO WIDTH NO JOINER
+\DeclareTextSymbol{\textemdash}{LGR}{127} % EM DASH
+
+% T1
+\DeclareTextSymbol{\guillemotleft}{LGR}{123} % «
+\DeclareTextSymbol{\guillemotright}{LGR}{125} % »
+
+% TS1
+\ProvideTextCommand{\textasciibreve}{LGR}{\char30\textcompwordmark} % ˘
+\ProvideTextCommand{\textasciimacron}{LGR}{\char31\textcompwordmark} % ¯
+\ProvideTextCommand{\textasciidieresis}{LGR}{\char34\textcompwordmark} % &quot;
+\ProvideTextCommand{\textasciiacute}{LGR}{\char39\textcompwordmark} % '
+\ProvideTextCommand{\textasciigrave}{LGR}{\char96\textcompwordmark} % `
+\DeclareTextCommand{\textasciitilde}{LGR}{\char126\textcompwordmark} % ~
+\DeclareTextSymbol{\textohm}{LGR}{87} % Ω (Ohm sign -&gt; Omega)
+\DeclareTextSymbol{\texteuro}{LGR}{24} % € \euro in greek.ldf
+\DeclareTextSymbol{\textpercent}{LGR}{37} % %
+\DeclareTextSymbol{\textperthousand}{LGR}{25} % ‰ \permille in greek.ldf
+
+% T3
+\DeclareTextSymbol{\textschwa}{LGR}{26} % ə
+</pre>
+</div>
+<div class="section" id="not-implemented">
+<h3><a class="toc-backref" href="#id18">Not implemented</a></h3>
+<p>The characters at position 16 and 17 are used in the <tt class="literal">\nexus</tt> macro
+of the <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> package to form an extensible, hat-like bracket. In
+<tt class="literal">CB.enc</tt>, they are mapped to</p>
+<blockquote>
+<p>16–MODIFIER LETTER LOW ACUTE ACCENT
+17–MODIFIER LETTER LOW GRAVE ACCENT</p>
+</blockquote>
+<p>but according to the documentation of Werner Lemberg’s <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a>,
+they rather represent the left and right part of U+23E0 TOP TORTOISE
+SHELL BRACKET.</p>
+<p>Babel’s <tt class="literal">lgrenc.def</tt> has some definitions to prevent surprises with
+macros that expect a Latin script. These definitions are problematic
+in a font-encoding definition file as they</p>
+<ul class="simple">
+<li><p>require <tt class="literal">\textlatin</tt> which is defined in <tt class="literal">babel.def</tt>,</p></li>
+<li><p>prevent use of TS1 symbols set as default by <tt class="literal">textcomp.sty</tt>.</p></li>
+</ul>
+<pre class="literal-block">%\ProvideTextCommand{\textcopyright}{LGR}{\textcircled{\textlatin{c}}}
+%\ProvideTextCommand{\textregistered}{LGR}{\textcircled{\textlatin{\textsc r}}}
+%\ProvideTextCommand{\texttrademark}{LGR}{\textsuperscript{\textlatin{TM}}}
+%\ProvideTextCommand{\SS}{LGR}{\textlatin{SS}}
+</pre>
+<p>They may be moved to <tt class="literal">greek.ldf</tt> one day (with a caveat for textcomp/TS1).</p>
+</div>
+</div>
+<div class="section" id="diacritics">
+<h2><a class="toc-backref" href="#id19">Diacritics</a></h2>
+<p>This section defines <a class="reference internal" href="#named-macros">named macros</a> for Greek diacritics and standard
+<a class="reference internal" href="#symbol-macros">symbol macros</a> as alias for simple diacritics. Convenient input
+conventions for <a class="reference internal" href="#composite-diacritics">composite diacritics</a> are defined as <a class="reference internal" href="#composite-definitions">composite
+definitions</a>.</p>
+<p>Advantages:</p>
+<ul class="simple">
+<li><p>input convention similar to LGR input encodings (just prepend a <tt class="literal">\</tt>).</p></li>
+<li><p>Access pre-composed characters without resorting to the
+ligature mechanism (allows proper kerning, cf. <a class="reference external" href="http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf">teubner-doc</a>).</p></li>
+<li><p>Named macros can be used to ensure a font encoding supporting Greek is
+used. However, substitution with pre-composed characters works only for
+the active font encoding (cf. <a class="reference external" href="textalpha.sty.html">textalpha</a>). Named accent macros can also be
+used instead of the <tt class="literal">\&#64;tabacckludge</tt> by to-LaTeX converters to ensure
+working also inside the tabbing environment.</p></li>
+<li><p>Named macros are required for upcasing according to Greek typesetting
+conventions (cf. <a class="reference internal" href="#uppercase">UPPERCASE</a> below) and for composite diacritics.</p></li>
+</ul>
+<div class="section" id="named-macros">
+<h3><a class="toc-backref" href="#id20">Named macros</a></h3>
+<p>Definitions are based on the <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> package by Claudio Beccari, the <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a>
+package, and the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> by Werner Lemberg. Names are derived from
+the Unicode name with the prefix “acc” (cf. <a class="reference internal" href="#how-to-name-accent-macros">How to name accent macros?</a>
+above) reducing the probability of incompatibilities compared to the
+two-letter <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> diacritic macros or the “text” prefix used by <a class="reference external" href="http://www.ctan.org/pkg/unicode">ucs</a>.</p>
+<p>Simple Greek diacritics:</p>
+<pre class="literal-block">\DeclareTextAccent{\accdialytika}{LGR}{34} % διαλυτικά (diaeresis/trema)
+\DeclareTextAccent{\acctonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute)
+\DeclareTextAccent{\accdasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing)
+\DeclareTextAccent{\accpsili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing)
+\DeclareTextAccent{\accvaria}{LGR}{96} % βαρεῖα (grave)
+\DeclareTextAccent{\accperispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde)
+</pre>
+<p>The sub-iota is input after the base character. In LGR fonts, ligatures are
+defined for pre-composed characters, the postfix ligature does not interfere
+with kerning:</p>
+<pre class="literal-block">\DeclareTextSymbol{\prosgegrammeni}{LGR}{8} % ι &quot;capital&quot; sub-iota
+\DeclareTextSymbol{\ypogegrammeni}{LGR}{124} % ͺ &quot;small&quot; sub-iota
+</pre>
+<p>Composite diacritics:</p>
+<pre class="literal-block">% Teubner name
+\DeclareTextAccent{\accdialytikaperispomeni}{LGR}{32} % Cd
+\DeclareTextAccent{\accdialytikatonos}{LGR}{35} % Ad
+\DeclareTextAccent{\accdialytikavaria}{LGR}{36} % Gd
+
+\DeclareTextAccent{\accdasiaperispomeni}{LGR}{64} % Cr
+\DeclareTextAccent{\accdasiavaria}{LGR}{67} % Gr
+\DeclareTextAccent{\accdasiaoxia}{LGR}{86} % Ar
+
+\DeclareTextAccent{\accpsiliperispomeni}{LGR}{92} % Cs
+\DeclareTextAccent{\accpsilioxia}{LGR}{94} % As
+\DeclareTextAccent{\accpsilivaria}{LGR}{95} % Gs
+</pre>
+<p>For classical Greek and linguistics, the LGR font encoding contains a number
+of additional diacritic symbols:</p>
+<pre class="literal-block">\DeclareTextAccent{\accinvertedbrevebelow}{LGR}{1} % INVERTED BREVE BELOW
+\DeclareTextAccent{\subinvertedbreve}{LGR}{1} % (lgrx)
+\DeclareTextAccent{\textsubarch}{LGR}{1} % (tipa)
+\DeclareTextAccent{\accbrevebelow}{LGR}{20} % BREVE BELOW
+\DeclareTextAccent{\subbreve}{LGR}{20} % (lgrx)
+\DeclareTextAccent{\u}{LGR}{30} % BREVE
+\DeclareTextAccent{\=}{LGR}{31} % MACRON
+</pre>
+</div>
+<div class="section" id="aliases">
+<h3><a class="toc-backref" href="#id21">Aliases</a></h3>
+<p><span class="target" id="symbol-macros">Symbol macros</span>:</p>
+<pre class="literal-block">\DeclareTextCommand{\&quot;}{LGR}{\accdialytika}
+\DeclareTextCommand{\'}{LGR}{\acctonos}
+\DeclareTextCommand{\`}{LGR}{\accvaria}
+\DeclareTextCommand{\~}{LGR}{\accperispomeni}
+\DeclareTextCommand{\&lt;}{LGR}{\accdasia}
+\DeclareTextCommand{\&gt;}{LGR}{\accpsili}
+</pre>
+<p>TODO: do we also want alternative symbols for the breathings (cf. X compose
+table, LCI encoding)?</p>
+<pre class="literal-block">%\DeclareTextCommand{\(}{LGR}{\accdasia}
+%\DeclareTextCommand{\)}{LGR}{\accpsili}
+</pre>
+<p>Two Unicode names for one character:</p>
+<pre class="literal-block">\DeclareTextCommand{\accoxia}{LGR}{\acctonos}
+\DeclareTextCommand{\acckoronis}{LGR}{\accpsili}
+</pre>
+</div>
+</div>
+<div class="section" id="composite-definitions">
+<h2><a class="toc-backref" href="#id22">Composite definitions</a></h2>
+<div class="section" id="composite-diacritics">
+<h3><a class="toc-backref" href="#id23">Composite diacritics</a></h3>
+<p>Composite accents can be input as sequence of simple diacritics (in
+arbitrary order) via named macro, symbol macro and “transcription
+characters”, e.g. <tt class="literal">\accdialytica\accvaria\textalpha</tt>, <tt class="literal"><span class="pre">\&quot;\'\textalpha</span></tt>,
+<tt class="literal"><span class="pre">\&quot;'\textalpha</span></tt>, or <tt class="literal"><span class="pre">\'&quot;\textalpha</span></tt>.</p>
+<p>Separate definitions for the supported variants of the second input token
+are required as composition is based on the non-expanded input</p>
+<p>The composition with simple “transcription characters” must also be defined
+for the symbol macros, otherwise it fails with <tt class="literal">\Makeuppercase</tt>):</p>
+<pre class="literal-block">\DeclareTextCompositeCommand{\accdialytika}{LGR}{\acctonos}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{\'}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{'}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\&quot;}{LGR}{'}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{\accvaria}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{\`}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{`}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\&quot;}{LGR}{`}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{\accperispomeni}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{\~}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{~}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\&quot;}{LGR}{~}{\accdialytikaperispomeni}
+
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\accdialytika}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\&quot;}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{&quot;}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\'}{LGR}{&quot;}{\accdialytikatonos}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\accdasia}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\&lt;}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{&lt;}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\'}{LGR}{&lt;}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\accpsili}{\accpsilioxia}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\&gt;}{\accpsilioxia}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{&gt;}{\accpsilioxia}
+\DeclareTextCompositeCommand{\'}{LGR}{&gt;}{\accpsilioxia}
+
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\accdialytika}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\&quot;}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{&quot;}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\`}{LGR}{&quot;}{\accdialytikavaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\accdasia}{\accdasiavaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\&lt;}{\accdasiavaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{&lt;}{\accdasiavaria}
+\DeclareTextCompositeCommand{\`}{LGR}{&lt;}{\accdasiavaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\accpsili}{\accpsilivaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\&gt;}{\accpsilivaria}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{&gt;}{\accpsilivaria}
+\DeclareTextCompositeCommand{\`}{LGR}{&gt;}{\accpsilivaria}
+
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accdialytika}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\&quot;}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{&quot;}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\~}{LGR}{&quot;}{\accdialytikaperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accdasia}{\accdasiaperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\&lt;}{\accdasiaperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{&lt;}{\accdasiaperispomeni}
+\DeclareTextCompositeCommand{\~}{LGR}{&lt;}{\accdasiaperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accpsili}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\&gt;}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\accperispomeni}{LGR}{&gt;}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\~}{LGR}{&gt;}{\accpsiliperispomeni}
+
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\acctonos}{\accpsilioxia}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\'}{\accpsilioxia}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{'}{\accpsilioxia}
+\DeclareTextCompositeCommand{\&gt;}{LGR}{'}{\accpsilioxia}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\accvaria}{\accpsilivaria}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\`}{\accpsilivaria}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{`}{\accpsilivaria}
+\DeclareTextCompositeCommand{\&gt;}{LGR}{`}{\accpsilivaria}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\accperispomeni}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\~}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{~}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\&gt;}{LGR}{~}{\accpsiliperispomeni}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\acctonos}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\'}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{'}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\&lt;}{LGR}{'}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\accvaria}{\accdasiavaria}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\`}{\accdasiavaria}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{`}{\accdasiavaria}
+\DeclareTextCompositeCommand{\&lt;}{LGR}{`}{\accdasiavaria}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\accperispomeni}{\accdasiaperispomeni}
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\~}{\accdasiaperispomeni}
+\DeclareTextCompositeCommand{\&lt;}{LGR}{~}{\accdasiaperispomeni}
+</pre>
+</div>
+<div class="section" id="pre-composed-letters">
+<h3><a class="toc-backref" href="#id24">Pre-composed letters</a></h3>
+<div class="section" id="small-letters-with-diacritics">
+<h4><a class="toc-backref" href="#id25">Small letters with diacritics</a></h4>
+<p>(from <a class="reference external" href="http://www.ctan.org/pkg/teubner">teubner</a> with changed names of the composite accents):</p>
+<pre class="literal-block">\DeclareTextComposite{\accvaria}{LGR}{a}{128}
+\DeclareTextComposite{\accdasia}{LGR}{a}{129}
+\DeclareTextComposite{\accpsili}{LGR}{a}{130}
+\DeclareTextComposite{\accdasiavaria}{LGR}{a}{131}
+\DeclareTextComposite{\acctonos}{LGR}{a}{136}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{a}{137}
+\DeclareTextComposite{\accpsilioxia}{LGR}{a}{138}
+\DeclareTextComposite{\accpsilivaria}{LGR}{a}{139}
+\DeclareTextComposite{\accperispomeni}{LGR}{a}{144}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{a}{145}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{a}{146}
+\DeclareTextComposite{\accvaria}{LGR}{h}{152}
+\DeclareTextComposite{\accdasia}{LGR}{h}{153}
+\DeclareTextComposite{\accpsili}{LGR}{h}{154}
+\DeclareTextComposite{\acctonos}{LGR}{h}{160}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{h}{161}
+\DeclareTextComposite{\accpsilioxia}{LGR}{h}{162}
+\DeclareTextComposite{\accdasiavaria}{LGR}{h}{163}
+\DeclareTextComposite{\accperispomeni}{LGR}{h}{168}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{h}{169}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{h}{170}
+\DeclareTextComposite{\accpsilivaria}{LGR}{h}{171}
+\DeclareTextComposite{\accvaria}{LGR}{w}{176}
+\DeclareTextComposite{\accdasia}{LGR}{w}{177}
+\DeclareTextComposite{\accpsili}{LGR}{w}{178}
+\DeclareTextComposite{\accdasiavaria}{LGR}{w}{179}
+\DeclareTextComposite{\acctonos}{LGR}{w}{184}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{w}{185}
+\DeclareTextComposite{\accpsilioxia}{LGR}{w}{186}
+\DeclareTextComposite{\accpsilivaria}{LGR}{w}{187}
+\DeclareTextComposite{\accperispomeni}{LGR}{w}{192}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{w}{193}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{w}{194}
+\DeclareTextComposite{\accvaria}{LGR}{i}{200}
+\DeclareTextComposite{\accdasia}{LGR}{i}{201}
+\DeclareTextComposite{\accpsili}{LGR}{i}{202}
+\DeclareTextComposite{\accdasiavaria}{LGR}{i}{203}
+\DeclareTextComposite{\acctonos}{LGR}{i}{208}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{i}{209}
+\DeclareTextComposite{\accpsilioxia}{LGR}{i}{210}
+\DeclareTextComposite{\accpsilivaria}{LGR}{i}{211}
+\DeclareTextComposite{\accperispomeni}{LGR}{i}{216}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{i}{217}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{i}{218}
+\DeclareTextComposite{\accdialytika}{LGR}{i}{240}
+\DeclareTextComposite{\accdialytikavaria}{LGR}{i}{241}
+\DeclareTextComposite{\accdialytikatonos}{LGR}{i}{242}
+\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{i}{243}
+\DeclareTextComposite{\accvaria}{LGR}{u}{204}
+\DeclareTextComposite{\accdasia}{LGR}{u}{205}
+\DeclareTextComposite{\accpsili}{LGR}{u}{206}
+\DeclareTextComposite{\accdasiavaria}{LGR}{u}{207}
+\DeclareTextComposite{\acctonos}{LGR}{u}{212}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{u}{213}
+\DeclareTextComposite{\accpsilioxia}{LGR}{u}{214}
+\DeclareTextComposite{\accpsilivaria}{LGR}{u}{215}
+\DeclareTextComposite{\accperispomeni}{LGR}{u}{220}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{u}{221}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{u}{222}
+\DeclareTextComposite{\accdialytika}{LGR}{u}{244}
+\DeclareTextComposite{\accdialytikavaria}{LGR}{u}{245}
+\DeclareTextComposite{\accdialytikatonos}{LGR}{u}{246}
+\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{u}{247}
+\DeclareTextComposite{\accvaria}{LGR}{e}{224}
+\DeclareTextComposite{\accdasia}{LGR}{e}{225}
+\DeclareTextComposite{\accpsili}{LGR}{e}{226}
+\DeclareTextComposite{\accdasiavaria}{LGR}{e}{227}
+\DeclareTextComposite{\acctonos}{LGR}{e}{232}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{e}{233}
+\DeclareTextComposite{\accpsilioxia}{LGR}{e}{234}
+\DeclareTextComposite{\accpsilivaria}{LGR}{e}{235}
+\DeclareTextComposite{\accvaria}{LGR}{o}{228}
+\DeclareTextComposite{\accdasia}{LGR}{o}{229}
+\DeclareTextComposite{\accpsili}{LGR}{o}{230}
+\DeclareTextComposite{\accdasiavaria}{LGR}{o}{231}
+\DeclareTextComposite{\acctonos}{LGR}{o}{236}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{o}{237}
+\DeclareTextComposite{\accpsilioxia}{LGR}{o}{238}
+\DeclareTextComposite{\accpsilivaria}{LGR}{o}{239}
+\DeclareTextComposite{\accdasia}{LGR}{r}{251}
+\DeclareTextComposite{\accpsili}{LGR}{r}{252}
+</pre>
+<p>Pre-composed letters with diacritics + LICR macros:</p>
+<pre class="literal-block">\DeclareTextComposite{\accvaria}{LGR}{\textalpha}{128}
+\DeclareTextComposite{\accdasia}{LGR}{\textalpha}{129}
+\DeclareTextComposite{\accpsili}{LGR}{\textalpha}{130}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\textalpha}{131}
+\DeclareTextComposite{\acctonos}{LGR}{\textalpha}{136}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\textalpha}{137}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\textalpha}{138}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\textalpha}{139}
+\DeclareTextComposite{\accperispomeni}{LGR}{\textalpha}{144}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textalpha}{145}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textalpha}{146}
+\DeclareTextComposite{\accvaria}{LGR}{\texteta}{152}
+\DeclareTextComposite{\accdasia}{LGR}{\texteta}{153}
+\DeclareTextComposite{\accpsili}{LGR}{\texteta}{154}
+\DeclareTextComposite{\acctonos}{LGR}{\texteta}{160}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\texteta}{161}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\texteta}{162}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\texteta}{163}
+\DeclareTextComposite{\accperispomeni}{LGR}{\texteta}{168}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\texteta}{169}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\texteta}{170}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\texteta}{171}
+\DeclareTextComposite{\accvaria}{LGR}{\textomega}{176}
+\DeclareTextComposite{\accdasia}{LGR}{\textomega}{177}
+\DeclareTextComposite{\accpsili}{LGR}{\textomega}{178}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\textomega}{179}
+\DeclareTextComposite{\acctonos}{LGR}{\textomega}{184}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\textomega}{185}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\textomega}{186}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\textomega}{187}
+\DeclareTextComposite{\accperispomeni}{LGR}{\textomega}{192}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textomega}{193}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textomega}{194}
+\DeclareTextComposite{\accvaria}{LGR}{\textiota}{200}
+\DeclareTextComposite{\accdasia}{LGR}{\textiota}{201}
+\DeclareTextComposite{\accpsili}{LGR}{\textiota}{202}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\textiota}{203}
+\DeclareTextComposite{\acctonos}{LGR}{\textiota}{208}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\textiota}{209}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\textiota}{210}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\textiota}{211}
+\DeclareTextComposite{\accperispomeni}{LGR}{\textiota}{216}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textiota}{217}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textiota}{218}
+\DeclareTextComposite{\accdialytika}{LGR}{\textiota}{240}
+\DeclareTextComposite{\accdialytikavaria}{LGR}{\textiota}{241}
+\DeclareTextComposite{\accdialytikatonos}{LGR}{\textiota}{242}
+\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\textiota}{243}
+\DeclareTextComposite{\accvaria}{LGR}{\textupsilon}{204}
+\DeclareTextComposite{\accdasia}{LGR}{\textupsilon}{205}
+\DeclareTextComposite{\accpsili}{LGR}{\textupsilon}{206}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\textupsilon}{207}
+\DeclareTextComposite{\acctonos}{LGR}{\textupsilon}{212}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\textupsilon}{213}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\textupsilon}{214}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\textupsilon}{215}
+\DeclareTextComposite{\accperispomeni}{LGR}{\textupsilon}{220}
+\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textupsilon}{221}
+\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textupsilon}{222}
+\DeclareTextComposite{\accdialytika}{LGR}{\textupsilon}{244}
+\DeclareTextComposite{\accdialytikavaria}{LGR}{\textupsilon}{245}
+\DeclareTextComposite{\accdialytikatonos}{LGR}{\textupsilon}{246}
+\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\textupsilon}{247}
+\DeclareTextComposite{\accvaria}{LGR}{\textepsilon}{224}
+\DeclareTextComposite{\accdasia}{LGR}{\textepsilon}{225}
+\DeclareTextComposite{\accpsili}{LGR}{\textepsilon}{226}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\textepsilon}{227}
+\DeclareTextComposite{\acctonos}{LGR}{\textepsilon}{232}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\textepsilon}{233}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\textepsilon}{234}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\textepsilon}{235}
+\DeclareTextComposite{\accvaria}{LGR}{\textomicron}{228}
+\DeclareTextComposite{\accdasia}{LGR}{\textomicron}{229}
+\DeclareTextComposite{\accpsili}{LGR}{\textomicron}{230}
+\DeclareTextComposite{\accdasiavaria}{LGR}{\textomicron}{231}
+\DeclareTextComposite{\acctonos}{LGR}{\textomicron}{236}
+\DeclareTextComposite{\accdasiaoxia}{LGR}{\textomicron}{237}
+\DeclareTextComposite{\accpsilioxia}{LGR}{\textomicron}{238}
+\DeclareTextComposite{\accpsilivaria}{LGR}{\textomicron}{239}
+\DeclareTextComposite{\accdasia}{LGR}{r}{251}
+\DeclareTextComposite{\accpsili}{LGR}{r}{252}
+</pre>
+</div>
+<div class="section" id="capital-letters-with-diacritics">
+<h4><a class="toc-backref" href="#id26">Capital letters with diacritics</a></h4>
+<blockquote>
+<p>In Greek, diacritics are omitted in all-uppercase words, but kept as part
+of an uppercase initial (written before rather than above the letter).</p>
+<p>The diaytika should also always be used in all-uppercase words (even
+in cases where they are not needed when writing in lowercase)</p>
+<p class="attribution">&mdash;<a class="reference external" href="http://en.wikipedia.org/wiki/Capitalization">http://en.wikipedia.org/wiki/Capitalization</a></p>
+</blockquote>
+<p>In Title Case, place diacritics before instead of above the base character:</p>
+<pre class="literal-block">\DeclareTextCompositeCommand{\accdasia}{LGR}{A}{&lt;A}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{A}{&lt;`A}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{A}{&lt;'A}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{A}{&lt;\char126A}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{A}{&gt;A}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{A}{&gt;`A}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{A}{&gt;'A}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{A}{&gt;\char126A}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{A}{'A}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{A}{`A}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{E}{&lt;E}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{E}{&lt;'E}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{E}{&lt;`E}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{E}{&gt;E}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{E}{&gt;'E}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{E}{&gt;`E}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{E}{'E}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{E}{`E}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{H}{&lt;H}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{H}{&lt;`H}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{H}{&lt;'H}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{H}{&lt;\char126H}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{H}{&gt;H}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{H}{&gt;`H}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{H}{&gt;'H}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{H}{&gt;\char126H}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{H}{'H}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{H}{`H}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{I}{&lt;I}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{I}{&lt;`I}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{I}{&lt;'I}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{I}{&lt;\char126I}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{I}{&gt;I}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{I}{&gt;`I}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{I}{&gt;'I}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{I}{&gt;\char126I}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{I}{'I}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{I}{`I}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{O}{&lt;O}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{O}{&lt;`O}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{O}{&lt;'O}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{O}{&gt;O}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{O}{&gt;`O}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{O}{&gt;'O}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{O}{'O}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{O}{`O}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{U}{&lt;U}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{U}{&lt;`U}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{U}{&lt;'U}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{U}{&lt;\char126U}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{U}{'U}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{U}{`U}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{W}{&lt;W}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{W}{&lt;`W}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{W}{&lt;'W}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{W}{&lt;\char126W}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{W}{&gt;W}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{W}{&gt;`W}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{W}{&gt;'W}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{W}{&gt;\char126W}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{W}{'W}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{W}{`W}
+</pre>
+<p>Except for the dialytika:</p>
+<pre class="literal-block">\DeclareTextComposite{\accdialytika}{LGR}{I}{219}
+\DeclareTextComposite{\accdialytika}{LGR}{U}{223}
+</pre>
+<p>Do the same for the LICR macros:</p>
+<pre class="literal-block">\DeclareTextCompositeCommand{\accdasia}{LGR}{\textAlpha}{&lt;A}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textAlpha}{&lt;`A}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textAlpha}{&lt;'A}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textAlpha}{&lt;\char126A}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\textAlpha}{&gt;A}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textAlpha}{&gt;`A}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textAlpha}{&gt;'A}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textAlpha}{&gt;\char126A}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textAlpha}{'A}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textAlpha}{`A}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\textEpsilon}{&lt;E}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textEpsilon}{&lt;'E}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textEpsilon}{&lt;`E}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\textEpsilon}{&gt;E}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textEpsilon}{&gt;'E}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textEpsilon}{&gt;`E}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textEpsilon}{'E}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textEpsilon}{`E}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\textEta}{&lt;H}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textEta}{&lt;`H}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textEta}{&lt;'H}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textEta}{&lt;\char126H}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\textEta}{&gt;H}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textEta}{&gt;`H}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textEta}{&gt;'H}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textEta}{&gt;\char126H}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textEta}{'H}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textEta}{`H}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\textIota}{&lt;I}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textIota}{&lt;`I}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textIota}{&lt;'I}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textIota}{&lt;\char126I}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\textIota}{&gt;I}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textIota}{&gt;`I}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textIota}{&gt;'I}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textIota}{&gt;\char126I}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textIota}{'I}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textIota}{`I}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\textOmicron}{&lt;O}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textOmicron}{&lt;`O}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textOmicron}{&lt;'O}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\textOmicron}{&gt;O}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textOmicron}{&gt;`O}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmicron}{&gt;'O}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmicron}{'O}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmicron}{`O}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\textUpsilon}{&lt;U}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textUpsilon}{&lt;`U}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textUpsilon}{&lt;'U}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textUpsilon}{&lt;\char126U}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textUpsilon}{'U}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textUpsilon}{`U}
+
+\DeclareTextCompositeCommand{\accdasia}{LGR}{\textOmega}{&lt;W}
+\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textOmega}{&lt;`W}
+\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textOmega}{&lt;'W}
+\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textOmega}{&lt;\char126W}
+\DeclareTextCompositeCommand{\accpsili}{LGR}{\textOmega}{&gt;W}
+\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textOmega}{&gt;`W}
+\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmega}{&gt;'W}
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textOmega}{&gt;\char126W}
+\DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmega}{'W}
+\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmega}{`W}
+</pre>
+<p>Except for the dialytika:</p>
+<pre class="literal-block">\DeclareTextComposite{\accdialytika}{LGR}{\textIota}{219}
+\DeclareTextComposite{\accdialytika}{LGR}{\textUpsilon}{223}
+</pre>
+</div>
+</div>
+</div>
+<div class="section" id="uppercase">
+<h2><a class="toc-backref" href="#id27">UPPERCASE</a></h2>
+<div class="section" id="uclclist-extension">
+<h3><a class="toc-backref" href="#id28">&#64;uclclist extension</a></h3>
+<p>If UPPERCASE (all-caps) is generated with <tt class="literal">\MakeUppercase</tt>, macro
+substitutions in the <tt class="literal">\&#64;uclclist</tt> apply. This can be used to drop the
+diacritics (except dialytika).</p>
+<p>Based on the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> and <tt class="literal">fontenc.sty</tt>.
+(The first two lines are TeX’ way of writing <tt class="literal">uclclist += …</tt>):</p>
+<pre class="literal-block">\expandafter\def\expandafter\&#64;uclclist\expandafter{%
+ \&#64;uclclist
+ \accdasia\acc&#64;invisible
+ \accdasiaoxia\&#64;hiatus
+ \accdasiavaria\acc&#64;invisible
+ \accdasiaperispomeni\acc&#64;invisible
+ \accpsili\&#64;hiatus
+ \accpsilioxia\&#64;hiatus
+ \accpsilivaria\&#64;hiatus
+ \accpsiliperispomeni\acc&#64;invisible
+ \acctonos\&#64;hiatus
+ \accvaria\acc&#64;invisible
+ \accdialytikatonos\acc&#64;Dialytika
+ \accdialytikavaria\acc&#64;Dialytika
+ \accdialytikaperispomeni\acc&#64;Dialytika
+ \accperispomeni\acc&#64;invisible
+ \ypogegrammeni\prosgegrammeni
+ %
+ \textalpha \textAlpha
+ \textbeta \textBeta
+ \textgamma \textGamma
+ \textdelta \textDelta
+ \textepsilon\textEpsilon
+ \textzeta \textZeta
+ \texteta \textEta
+ \texttheta \textTheta
+ \textiota \textIota
+ \textkappa \textKappa
+ \textlambda \textLambda
+ \textmu \textMu
+ \textnu \textNu
+ \textxi \textXi
+ \textomicron\textOmicron
+ \textpi \textPi
+ \textrho \textRho
+ \textvarsigma \textSigma
+ \textsigma \textSigma
+ \textautosigma \textSigma
+ \texttau \textTau
+ \textupsilon\textUpsilon
+ \textphi \textPhi
+ \textchi \textChi
+ \textpsi \textPsi
+ \textomega \textOmega
+ %
+ \qoppa \Qoppa
+ \varstigma \Stigma
+ \stigma \Stigma
+ \sampi \Sampi
+ \textdigamma \textDigamma
+}
+</pre>
+</div>
+<div class="section" id="substitution-macros">
+<h3><a class="toc-backref" href="#id29">Substitution macros</a></h3>
+<div class="section" id="drop-diacritics">
+<h4><a class="toc-backref" href="#id30">Drop diacritics</a></h4>
+<pre class="literal-block">\DeclareTextCommand{\acc&#64;invisible}{LGR}[1]{#1}
+</pre>
+<p>(The argument processing ensures that kerning is preserved)</p>
+</div>
+<div class="section" id="keep-dialytika">
+<h4><a class="toc-backref" href="#id31">Keep dialytika.</a></h4>
+<p>Define a dummy alias so that downcasing with <tt class="literal">\MakeLowercase</tt> does not
+convert a simple dialytika to a composite accent:</p>
+<pre class="literal-block">\DeclareTextCommand{\acc&#64;Dialytika}{LGR}{\accdialytika}
+
+\DeclareTextCompositeCommand{\accdialytika}{LGR}{\&#64;hiatus}{\accdialytika}
+</pre>
+<!-- TODO: MakeUppercase with ``\"'`` fails if the language is "greek".
+How can we specify a composite command with character ``"9F``,
+the uccode of ``'``?
+
+% \DeclareTextCompositeCommand{\acc@Dialytika}{LGR}{"9F}{\accdialytika}
+% \DeclareTextAccent{\acc@Dialytika}{LGR}{34} % upcase Dialytika
+% \DeclareTextCompositeCommand{\acc@Dialytika}{LGR}{\@hiatus}{\accdialytika}
+% \DeclareTextCompositeCommand{\acc@Dialytika}{LGR}{'}{\accdialytika} -->
+</div>
+<div class="section" id="mark-hiatus">
+<h4><a class="toc-backref" href="#id32">Mark hiatus</a></h4>
+<p>Tonos and dasia mark a hiatus if placed on the
+first vowel of a diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the
+second vowel if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ,
+ἀυπνία → ΑΫΠΝΙΑ):</p>
+<pre class="literal-block">\DeclareTextCommand{\&#64;hiatus}{LGR}[1]{#1}
+\DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{&gt;}{\&#64;hiatus}
+\DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{&lt;}{\acc&#64;invisible}
+\DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{A}{\A&#64;hiatus}
+\DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{\textAlpha}{\A&#64;hiatus}
+\DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{E}{\E&#64;hiatus}
+\DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{\textEpsilon}{\E&#64;hiatus}
+% What does the \&#64;hiatus command &quot;see&quot; if an unicode literal follows?
+% \DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{\symbol{&quot;ce}}{bluff}
+% \DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{&quot;cf}{blaff}
+% \DeclareTextCompositeCommand{\&#64;hiatus}{LGR}{ι}{blaff}
+</pre>
+<p>Look ahead and place a diaeresis on Ι or Υ:</p>
+<pre class="literal-block">\DeclareTextCommand{\A&#64;hiatus}{LGR}{%
+ \LGR&#64;ifnextchar{I}{A\&quot;}{%
+ \LGR&#64;ifnextchar{U}{A\&quot;}{%
+ \LGR&#64;ifnextchar{\textIota}{A\&quot;}{%
+ \LGR&#64;ifnextchar{\textUpsilon}{A\&quot;}{A}%
+ }%
+ }%
+ }%
+}
+\DeclareTextCommand{\E&#64;hiatus}{LGR}{%
+ \LGR&#64;ifnextchar{I}{E\&quot;}{%
+ \LGR&#64;ifnextchar{U}{E\&quot;}{%
+ \LGR&#64;ifnextchar{\textIota}{E\&quot;}{%
+ \LGR&#64;ifnextchar{\textUpsilon}{E\&quot;}{E}%
+ }%
+ }%
+ }%
+}
+</pre>
+<p>As <tt class="literal">\&#64;ifnextchar</tt> gobbles spaces the lookahead macro definition from
+<tt class="literal">amsgen.sty</tt> is used:</p>
+<blockquote>
+<p>This macro is a new version of LaTeX’s <tt class="literal">\&#64;ifnextchar</tt>, macro
+that does not skip over spaces.</p>
+</blockquote>
+<pre class="literal-block">\ProvideTextCommand{\LGR&#64;ifnextchar}{LGR}[3]{%
+% \long\def\LGR&#64;ifnextchar#1#2#3{%
+ \let\reserved&#64;d= #1%
+ \def\reserved&#64;a{#2}\def\reserved&#64;b{#3}%
+ \futurelet\&#64;let&#64;token\LGR&#64;ifnch
+}
+\ProvideTextCommand{\LGR&#64;ifnch}{LGR}{%
+ \ifx\&#64;let&#64;token\reserved&#64;d \let\reserved&#64;b\reserved&#64;a \fi
+ \reserved&#64;b
+}
+</pre>
+<p>Unfortunately, the lookahead breaks kerning.</p>
+<p>Alternatives tried:</p>
+<ul>
+<li><p>CompositeCommands fail at the end of a macro, e.g. <tt class="literal"><span class="pre">\emph{\'a}</span></tt>:</p>
+<pre class="literal-block">%\DeclareTextCommand{\A&#64;hiatus}{LGR}{A}
+%\DeclareTextCommand{\E&#64;hiatus}{LGR}{E}
+
+%\DeclareTextCompositeCommand{\A&#64;hiatus}{LGR}{}{A}
+%\DeclareTextCompositeCommand{\A&#64;hiatus}{LGR}{I}{A\&quot;I}
+%\DeclareTextCompositeCommand{\A&#64;hiatus}{LGR}{U}{A\&quot;U}
+</pre>
+</li>
+<li><p>The glyph No 12 is a special “Upcase Alpha” that in ligature with Y
+and I adds a diaresis to them. However, it seems that it has only
+kerning definitions for I and Y (as it is not intended for direct
+use):</p>
+<pre class="literal-block">%\DeclareTextComposite{\&#64;hiatus}{LGR}{A}{12}
+</pre>
+<p>No such glyph exists for E but this is no problem as E does
+not require kerning anyway.</p>
+</li>
+</ul>
+<!-- References
+- - - - - - - - - - -->
+</div>
+</div>
+</div>
+</div>
+</div>
+</body>
+</html>