diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html')
-rw-r--r-- | Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html | 288 |
1 files changed, 178 insertions, 110 deletions
diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html index ecc837ea909..9e2fa316664 100644 --- a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html @@ -10,7 +10,7 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7056 2011-06-17 10:50:48Z milde $ +:Id: $Id: html4css1.css 7434 2012-05-11 21:06:27Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. @@ -250,10 +250,18 @@ pre.address { margin-top: 0 ; font: inherit } -pre.literal-block, pre.doctest-block, pre.math { +pre.literal-block, pre.doctest-block, pre.math, pre.code { margin-left: 2em ; margin-right: 2em } +pre.code .ln { /* line numbers */ + color: grey; +} + +.code { + background-color: #eeeeee +} + span.classifier { font-family: sans-serif ; font-style: oblique } @@ -364,7 +372,7 @@ dl.simple, dl.compact, dl.simple > dd, dl.compact > dd { } /* space around paragraphs */ -dl > dd p:first-child { +dl > dd p:first-child, td > p { margin: 0; } @@ -504,9 +512,10 @@ resulting list resembles the list-style 'outside' with a hanging indent. */ /* New ordered list: reset counter, suppress the default label */ -ol { +ol, ol.arabic, ol.loweralpha, ol.upperalpha, +ol.lowerroman, ol.upperroman { counter-reset: item; - list-style-type: none ! important; + list-style: none } /* Set the negative indent of the list label as feature of the list item */ @@ -568,6 +577,7 @@ ol.nested > li:before, ol.nested ol > li:before { dd > ul, dd > ol { padding-left: 0pt; +} /* TODO: prefix, suffix? */ @@ -650,9 +660,9 @@ tt.literal { } /* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */ -/* pre.literal-block, pre.doctest-block { */ -/* margin-top: 0em ; */ -/* } */ +/* pre.literal-block, pre.doctest-block { */ +/* margin-top: 0em ; */ +/* } */ /* Table of Contents */ @@ -661,8 +671,8 @@ div.topic.contents { margin: 0; } /* div.topic.contents ul { */ -/* list-style: none; */ -/* } */ +/* list-style: none; */ +/* } */ div.topic.contents a { text-decoration: none; /* no underline for links */ @@ -699,14 +709,18 @@ version 1.3 of this license or any later version.</p> </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. However, the encoding definition +<dl class="docutils"> +<dt>The LGR font encoding is the de-facto standard for Greek</dt> +<dd><p>typesetting with LaTeX. However, the encoding definition file that ships with babel misses many of the definitions common since the advent of the NFSS (see <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a> "Encodings").</p> <p>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> +</dd> +</dl> +<p>This package is part of the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/lgrx.html">lgrx</a> bundle.</p> </div> <div class="contents topic" id="contents"> <p class="topic-title first">Contents</p> @@ -717,34 +731,40 @@ package.</p> <li><p><a class="reference internal" href="#implementation" id="id4">Implementation</a></p> <ul> <li><p><a class="reference internal" href="#read-this-file-only-once" id="id5">Read this file only once</a></p></li> -<li><p><a class="reference internal" href="#announcement" id="id6">Announcement</a></p></li> +<li><p><a class="reference internal" href="#identification" id="id6">Identification</a></p></li> <li><p><a class="reference internal" href="#base-setup" id="id7">Base setup</a></p></li> <li><p><a class="reference internal" href="#text-symbols" id="id8">Text symbols</a></p> <ul> <li><p><a class="reference internal" href="#greek-alphabet" id="id9">Greek Alphabet</a></p></li> -<li><p><a class="reference internal" href="#additional-greek-symbols" id="id10">Additional Greek symbols</a></p></li> -<li><p><a class="reference internal" href="#other" id="id11">Other</a></p></li> +<li><p><a class="reference internal" href="#additional-greek-symbols" id="id10">Additional Greek symbols</a></p> +<ul> +<li><p><a class="reference internal" href="#ancient-greek-numbers-athenian-numerals" id="id11">Ancient Greek Numbers (Athenian Numerals)</a></p></li> +<li><p><a class="reference internal" href="#archaic-letters" id="id12">Archaic letters</a></p></li> +<li><p><a class="reference internal" href="#numeral-signs" id="id13">numeral signs</a></p></li> </ul> </li> -<li><p><a class="reference internal" href="#diacritics" id="id12">Diacritics</a></p> +<li><p><a class="reference internal" href="#other" id="id14">Other</a></p></li> +</ul> +</li> +<li><p><a class="reference internal" href="#diacritics" id="id15">Diacritics</a></p> <ul> -<li><p><a class="reference internal" href="#simple-diacritics" id="id13">simple diacritics</a></p></li> -<li><p><a class="reference internal" href="#composite-diacritics" id="id14">composite diacritics</a></p></li> +<li><p><a class="reference internal" href="#simple-diacritics" id="id16">simple diacritics</a></p></li> +<li><p><a class="reference internal" href="#composite-diacritics" id="id17">composite diacritics</a></p></li> </ul> </li> -<li><p><a class="reference internal" href="#capital-letters" id="id15">Capital letters</a></p> +<li><p><a class="reference internal" href="#capital-letters" id="id18">Capital letters</a></p> <ul> -<li><p><a class="reference internal" href="#title-case" id="id16">Title Case</a></p></li> +<li><p><a class="reference internal" href="#title-case" id="id19">Title Case</a></p></li> </ul> </li> -<li><p><a class="reference internal" href="#uppercase" id="id17">UPPERCASE</a></p> +<li><p><a class="reference internal" href="#uppercase" id="id20">UPPERCASE</a></p> <ul> -<li><p><a class="reference internal" href="#uclclist-extension" id="id18">@uclclist extension</a></p></li> -<li><p><a class="reference internal" href="#substitution-macros" id="id19">Substitution macros</a></p> +<li><p><a class="reference internal" href="#uclclist-extension" id="id21">@uclclist extension</a></p></li> +<li><p><a class="reference internal" href="#substitution-macros" id="id22">Substitution macros</a></p> <ul> -<li><p><a class="reference internal" href="#drop-diacritics" id="id20">Drop diacritics</a></p></li> -<li><p><a class="reference internal" href="#keep-dialytika" id="id21">Keep dialytika.</a></p></li> -<li><p><a class="reference internal" href="#mark-hiatus" id="id22">Mark hiatus</a></p></li> +<li><p><a class="reference internal" href="#drop-diacritics" id="id23">Drop diacritics</a></p></li> +<li><p><a class="reference internal" href="#keep-dialytika" id="id24">Keep dialytika.</a></p></li> +<li><p><a class="reference internal" href="#mark-hiatus" id="id25">Mark hiatus</a></p></li> </ul> </li> </ul> @@ -755,10 +775,10 @@ package.</p> </div> <div class="section" id="changelog"> <h1><a class="toc-backref" href="#id1">Changelog</a></h1> -<table> +<table class="borderless"> <colgroup> <col width="7%" /> -<col width="18%" /> +<col width="17%" /> <col width="75%" /> </colgroup> <tbody valign="top"> @@ -796,28 +816,38 @@ with TextCommand</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 (used in lgrenc.dfu), +aliases for <tt class="literal">puenc.def</tt> compatibility</p></td> +</tr> </tbody> </table> </div> <div class="section" id="usage"> <h1><a class="toc-backref" href="#id2">Usage</a></h1> -<p>To prevent mixing up with <cite>Babel</cite>'s <tt class="literal">lgrenc.def</tt>, the comprehensive -font encoding definitions must be loaded via the <tt class="literal">LGRx</tt> option.</p> +<p>To prevent confusion with <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/babel.html">Babel</a>'s rudimentary <tt class="literal">lgrenc.def</tt>, this file is +named <tt class="literal">lgrxenc.def</tt>. Load it by calling <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/fontenc.html">fontenc</a> with the <tt class="literal">LGRx</tt> option +or indirectly via the <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> with comprehensive -font encoding definitions:</p> -<pre class="literal-block">\usepackage[LGRx,T1]{fontenc} -</pre> +<dd><p>Select font encodings <cite>T1</cite> (as default) and <cite>LGR</cite> (with the comprehensive +font encoding definitions)</p> +<blockquote> +<p><tt class="literal"><span class="pre">\usepackage[LGRx,T1]{fontenc}</span></tt></p> +</blockquote> </dd> </dl> <div class="attention"> <p class="admonition-title">Attention!</p> -<p>The font encoding defined by the option <tt class="literal">LGRx</tt> is <strong>not</strong> <cite>LGRx</cite> but -<cite>LGR</cite>. Therefore, <tt class="literal">LGRx</tt> must not be given as last option. To set -<cite>LGR</cite> as as default font encoding specify both, <cite>LGRx</cite> and <cite>LGR</cite>, e.g.</p> -<pre class="literal-block">\usepackage[LGRx,T1,LGR]{fontenc} -</pre> +<p>The name of the font encoding defined by the option <tt class="literal">LGRx</tt> +is <strong>not</strong> <cite>LGRx</cite> but <cite>LGR</cite>. Therefore, <tt class="literal">LGRx</tt> must not be the +last option (as fontenc uses the last option to select the default font +encoding). To set <cite>LGR</cite> as as default font encoding specify both, +<cite>LGRx</cite> and <cite>LGR</cite>, e.g.</p> +<blockquote> +<p><tt class="literal"><span class="pre">\usepackage[LGRx,T1,LGR]{fontenc}</span></tt></p> +</blockquote> </div> </div> <div class="section" id="macro-names"> @@ -914,12 +944,12 @@ LETTER *", while others map to "GREEK * SYMBOL" Unicode chars.</p <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 <cite>libertine</cite> package. +<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://mirror.ctan.org/help/Catalogue/entries/libertine-legacy.html">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://mirror.ctan.org/help/Catalogue/entries/unicode.html">ucs</a> package.</p> -<p>Using the names from <tt class="literal">puenc.def</tt> ensures that the <cite>hyperref</cite> package +<p>Using the names from <tt class="literal">puenc.def</tt> ensures that the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/hyperref.html">hyperref</a> package will do the right conversion to a PDF-string (see <a class="reference external" href="greek-part-of-puenc.def">greek-part-of-puenc.def</a>).</p> <p>For accent macros, this file uses Greek names like in Unicode and @@ -931,6 +961,14 @@ end-user "symbol macros" (<tt class="literal">\~ \' \` \" \< \ <h1><a class="toc-backref" href="#id4">Implementation</a></h1> <div class="section" id="read-this-file-only-once"> <h2><a class="toc-backref" href="#id5">Read this file only once</a></h2> +<div class="note"> +<p class="admonition-title">Note</p> +<p>The use of <tt class="literal">\@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">\@ifundefined{ver@lgrxenc.def} {\message{setting up comprehensive LGR font encoding definitions.}} {\message{comprehensive LGR font encoding definitions already loaded} @@ -938,37 +976,40 @@ end-user "symbol macros" (<tt class="literal">\~ \' \` \" \< \ } </pre> </div> -<div class="section" id="announcement"> -<h2><a class="toc-backref" href="#id6">Announcement</a></h2> -<blockquote> -<dl class="docutils"> -<dt>ProvidesFile{lgrxenc.def}</dt> -<dd><dl class="docutils"> -<dt>[2010/06/08 v0.5.1 %</dt> -<dd><p>comprehensive LGR Greek Font Encoding definitions]</p> -</dd> -</dl> -</dd> -</dl> -</blockquote> +<div class="section" id="identification"> +<h2><a class="toc-backref" href="#id6">Identification</a></h2> +<pre class="literal-block">\ProvidesFile{lgrxenc.def} + [2012/07/03 v0.6 % + comprehensive LGR Greek Font Encoding definitions] +</pre> </div> <div class="section" id="base-setup"> <h2><a class="toc-backref" href="#id7">Base setup</a></h2> -<p>The base setup is copied from the standard encoding file -<tt class="literal">lgrenc.def</tt> that comes with the Babel package:</p> +<p>Declare the font encoding and substitutions. +(from the file <tt class="literal">lgrenc.def</tt> that comes with the Babel package):</p> <pre class="literal-block">\DeclareFontEncoding{LGR}{}{} \DeclareFontSubstitution{LGR}{cmr}{m}{n} \DeclareErrorFont{LGR}{cmr}{m}{n}{10} </pre> +<p>The <tt class="literal">\TextGreek</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">\TextGreek{A}\TextGreek{\Upsilon}</span></tt>) is preserved. This allows wrapping of +compound Unicode character definitions.</p> +<pre class="literal-block">\DeclareTextCommand{\TextGreek}{LGR}[1]{#1} +</pre> </div> <div class="section" id="text-symbols"> <h2><a class="toc-backref" href="#id8">Text symbols</a></h2> <div class="section" id="greek-alphabet"> <h3><a class="toc-backref" href="#id9">Greek Alphabet</a></h3> -<p>All letters are accessible by the Latin transcription. However, as -they are distinct text symbols, <tt class="literal">\text*</tt> macros are defined. -The <cite>textalpha.sty</cite> package makes these macros available in any font -encoding.</p> +<p>Greek letters are accessible by the Latin transcription, but the mapping is +specific to the LGR font encoding.</p> +<p>The <tt class="literal">\text*</tt> macros provide a way to access the symbols in any font +encoding supporting Greek independent of the specific font encoding. +Alternative Greek font encodings are LGI (<a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/ibycus-babel.html">ibycus</a>) and PU (<cite>PDF Unicode</cite> +used by <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/hyperref.html">hyperref</a> for PDF metadata). The <cite>textalpha.sty</cite> package makes these +macros available in any font encoding.</p> <pre class="literal-block">\DeclareTextSymbol{\textAlpha}{LGR}{65} \DeclareTextSymbol{\textBeta}{LGR}{66} \DeclareTextSymbol{\textGamma}{LGR}{71} @@ -1024,47 +1065,65 @@ encoding.</p> </div> <div class="section" id="additional-greek-symbols"> <h3><a class="toc-backref" href="#id10">Additional Greek symbols</a></h3> -<p>Ancient Greek Numbers (Athenian Numerals) -named like in the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/athnum.html">athnum</a> package:</p> +<div class="section" id="ancient-greek-numbers-athenian-numerals"> +<h4><a class="toc-backref" href="#id11">Ancient Greek Numbers (Athenian Numerals)</a></h4> +<p>Names from the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/athnum.html">athnum</a> package:</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>or using Greek numerals (as in <tt class="literal"><span class="pre">xl-lgr.enc</span></tt>):</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 +<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="#id12">Archaic letters</a></h4> +<p>Names after <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/babel.html">babel</a>'s <tt class="literal">greek.ldf</tt>, <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a> and <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/hyperref.html">hyperref</a>'s puenc.def:</p> +<pre class="literal-block">\DeclareTextSymbol{\stigma}{LGR}{6} % ϛ (greek.df, teubner) +\DeclareTextSymbol{\textstigmagreek}{LGR}{6} % ϛ (puenc.def) +\DeclareTextSymbol{\varstigma}{LGR}{7} % stigma variant (CB.enc, teubner) +% \DeclareTextSymbol{\vardigamma}{LGR}{7} % digamma variant (greek.ldf) +\DeclareTextSymbol{\koppa}{LGR}{18} % ϟ (greek small letter koppa) +\DeclareTextSymbol{\textkoppagreek}{LGR}{18} % ϟ (puenc.def) +\DeclareTextSymbol{\qoppa}{LGR}{19} % ϙ (archaic koppa) +\DeclareTextSymbol{\Qoppa}{LGR}{21} % Ϙ (archaic Koppa) +\DeclareTextSymbol{\Stigma}{LGR}{22} % ϹΤ ligature (teubner) +\DeclareTextSymbol{\textStigmagreek}{LGR}{22} % ϹΤ ligature (puenc.def) +% \DeclareTextSymbol{\Stigma}{LGR}{??} % Ϛ +\DeclareTextSymbol{\Sampi}{LGR}{23} % Ϡ +\DeclareTextSymbol{\textSampigreek}{LGR}{23} % Ϡ (puenc.def) +\DeclareTextSymbol{\sampi}{LGR}{27} % ϡ +\DeclareTextSymbol{\textsampigreek}{LGR}{27} % ϡ (puend.def) +\DeclareTextSymbol{\anoteleia}{LGR}{38} % · +\DeclareTextSymbol{\erotimatiko}{LGR}{63} % ; +% \digamma used by amsmath for math-macro: +\DeclareTextSymbol{\ddigamma}{LGR}{147} % ϝ (greek.ldf) +\DeclareTextSymbol{\Digamma}{LGR}{195} % Ϝ (greek.ldf) +\DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ with "text" prefix +\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ with "text" prefix +\DeclareTextSymbol{\textdigammagreek}{LGR}{147} % ϝ (puenc.def) +\DeclareTextSymbol{\textDigammagreek}{LGR}{195} % Ϝ (puenc.def) </pre> -<p>after babel's <tt class="literal">greek.ldf</tt> and <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a>:</p> -<pre class="literal-block">\DeclareTextSymbol{\stigma}{LGR}{6} % ϛ -\DeclareTextSymbol{\varstigma}{LGR}{7} % stigma variant (CB.enc, teubner) -% \DeclareTextSymbol{\vardigamma}{LGR}{7} % digamma variant (greek.ldf) -\DeclareTextSymbol{\koppa}{LGR}{18} % ϟ (greek small letter koppa) -\DeclareTextSymbol{\qoppa}{LGR}{19} % ϙ (archaic koppa) -\DeclareTextSymbol{\Qoppa}{LGR}{21} % Ϙ (archaic Koppa) -\DeclareTextSymbol{\Stigma}{LGR}{22} % ϹΤ ligature (teubner) -% \DeclareTextSymbol{\Stigma}{LGR}{??} % Ϛ -\DeclareTextSymbol{\Sampi}{LGR}{23} % Ϡ -\DeclareTextSymbol{\sampi}{LGR}{27} % ϡ -\DeclareTextSymbol{\anoteleia}{LGR}{38} % · -\DeclareTextSymbol{\erotimatiko}{LGR}{63} % ; -\DeclareTextSymbol{\ddigamma}{LGR}{147} % ϝ (\digamma used by amsmath!) -\DeclareTextSymbol{\Digamma}{LGR}{195} % Ϝ -% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals -\DeclareTextSymbol{\anwtonos}{LGR}{254} % ʹ (Dexia keraia) +</div> +<div class="section" id="numeral-signs"> +<h4><a class="toc-backref" href="#id13">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://mirror.ctan.org/help/Catalogue/entries/babel.html">babel</a> and <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a>:</p> +<pre class="literal-block">\DeclareTextSymbol{\anwtonos}{LGR}{254} % ʹ (Dexia keraia) \DeclareTextSymbol{\katwtonos}{LGR}{255} % ͵ (Aristeri keraia) </pre> -<p>As <tt class="literal">\digamma</tt> is a math macro (defined in amsmath), provide aliases -named as <tt class="literal">\text</tt> followed by the glyph name (as recommended in -<tt class="literal">fntguide.pdf</tt>:</p> -<pre class="literal-block">\DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ alias using "text" prefix -\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ +<p>alias names for compatibility with hyperref's puenc.def:</p> +<pre class="literal-block">\DeclareTextSymbol{\textnumeralsigngreek}{LGR}{254} +\DeclareTextSymbol{\textnumeralsignlowergreek}{LGR}{255} </pre> </div> +</div> <div class="section" id="other"> -<h3><a class="toc-backref" href="#id11">Other</a></h3> +<h3><a class="toc-backref" href="#id14">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, @@ -1091,7 +1150,6 @@ so that they work if LGR is the only chosen font encoding.</p></li> \ProvideTextCommand{\textasciiacute}{LGR}{\char39\textcompwordmark} % ' \ProvideTextCommand{\textasciigrave}{LGR}{\char96\textcompwordmark} % ` \DeclareTextCommand{\textasciitilde}{LGR}{\char126\textcompwordmark} % ~ - % \DeclareTextSymbol{\textohm}{LGR}{87} % Ω (Ohm sign ≠ Omega) \DeclareTextSymbol{\texteuro}{LGR}{24} % € \euro in greek.ldf \DeclareTextSymbol{\textpercent}{LGR}{37} % % @@ -1120,7 +1178,7 @@ in the font-encoding definition file as they</p> </div> </div> <div class="section" id="diacritics"> -<h2><a class="toc-backref" href="#id12">Diacritics</a></h2> +<h2><a class="toc-backref" href="#id15">Diacritics</a></h2> <p>Based on the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/teubner.html">teubner</a> package by Claudio Beccari and the <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">babel patch</a> by Werner Lemberg but with composite diacritic definitions (iterative diacritics).</p> @@ -1133,7 +1191,7 @@ diacritic macros).</p></li> <li><p>input convention similar to LGR input encodings (just prepend a <tt class="literal">\</tt>).</p></li> </ul> <div class="section" id="simple-diacritics"> -<h3><a class="toc-backref" href="#id13">simple diacritics</a></h3> +<h3><a class="toc-backref" href="#id16">simple diacritics</a></h3> <p>Define Greek diacritics as named macros with shortcut alias.</p> <p>Direct defining of <tt class="literal">\<</tt> and <tt class="literal">\></tt> fails with <tt class="literal">`! Missing $ inserted.'</tt> (clash with math definitions). @@ -1174,7 +1232,7 @@ they rather represent the left and right part of U+23E0 TOP TORTOISE SHELL BRACKET.</p> </div> <div class="section" id="composite-diacritics"> -<h3><a class="toc-backref" href="#id14">composite diacritics</a></h3> +<h3><a class="toc-backref" href="#id17">composite diacritics</a></h3> <p>Definitions:</p> <pre class="literal-block">% Unicode Name Teubner name \DeclareTextAccent{\DasiaOxia}{LGR}{86} % Ar @@ -1422,16 +1480,16 @@ the shortcut marcros, otherwise it fails with <tt class="literal">\Makeuppercase </div> </div> <div class="section" id="capital-letters"> -<h2><a class="toc-backref" href="#id15">Capital letters</a></h2> +<h2><a class="toc-backref" href="#id18">Capital letters</a></h2> <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> +in cases where they are not needed when writing in lowercase)</p> <p class="attribution">—<a class="reference external" href="http://en.wikipedia.org/wiki/Capitalization">http://en.wikipedia.org/wiki/Capitalization</a></p> </blockquote> <div class="section" id="title-case"> -<h3><a class="toc-backref" href="#id16">Title Case</a></h3> +<h3><a class="toc-backref" href="#id19">Title Case</a></h3> <p>Place diacritics before instead of above:</p> <pre class="literal-block">\DeclareTextCompositeCommand{\Dasia}{LGR}{A}{<A} \DeclareTextCompositeCommand{\DasiaVaria}{LGR}{A}{<`A} @@ -1583,9 +1641,9 @@ in cases where they are not needed when writing in lowercase</p> </div> </div> <div class="section" id="uppercase"> -<h2><a class="toc-backref" href="#id17">UPPERCASE</a></h2> +<h2><a class="toc-backref" href="#id20">UPPERCASE</a></h2> <div class="section" id="uclclist-extension"> -<h3><a class="toc-backref" href="#id18">@uclclist extension</a></h3> +<h3><a class="toc-backref" href="#id21">@uclclist extension</a></h3> <p>If UPPERCASE (all-caps) is generated with <tt class="literal">\MakeUppercase</tt>, macro substitutions in the <tt class="literal">\@uclclist</tt> apply. This can be used to drop the diacritics (except dialytika).</p> @@ -1645,39 +1703,49 @@ diacritics (except dialytika).</p> </pre> </div> <div class="section" id="substitution-macros"> -<h3><a class="toc-backref" href="#id19">Substitution macros</a></h3> +<h3><a class="toc-backref" href="#id22">Substitution macros</a></h3> <div class="section" id="drop-diacritics"> -<h4><a class="toc-backref" href="#id20">Drop diacritics</a></h4> +<h4><a class="toc-backref" href="#id23">Drop diacritics</a></h4> <pre class="literal-block">\DeclareTextCommand{\do@nothing}{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="#id21">Keep dialytika.</a></h4> +<h4><a class="toc-backref" href="#id24">Keep dialytika.</a></h4> <p>Define an 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{\up@Dialytika}{LGR}{\Dialytika} </pre> </div> <div class="section" id="mark-hiatus"> -<h4><a class="toc-backref" href="#id22">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> +<h4><a class="toc-backref" href="#id25">Mark hiatus</a></h4> +<p>Tonos and dasia mark a hiatus (break-up of a diphtong) 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{\@hiatus}{LGR}[1]{#1} \DeclareTextCompositeCommand{\@hiatus}{LGR}{A}{\A@hiatus} +\DeclareTextCompositeCommand{\@hiatus}{LGR}{\textAlpha}{\A@hiatus} \DeclareTextCompositeCommand{\@hiatus}{LGR}{E}{\E@hiatus} +\DeclareTextCompositeCommand{\@hiatus}{LGR}{\textEpsilon}{\E@hiatus} </pre> <p>Look ahead and place a diaeresis on Ι or Υ:</p> <pre class="literal-block">\DeclareTextCommand{\A@hiatus}{LGR}{% \LGR@ifnextchar{I}{A\"}{% - \LGR@ifnextchar{U}{A\"}{A}% + \LGR@ifnextchar{U}{A\"}{% + \LGR@ifnextchar{\textIota}{A\"}{% + \LGR@ifnextchar{\textUpsilon}{A\"}{A}% + }% + }% }% } \DeclareTextCommand{\E@hiatus}{LGR}{% \LGR@ifnextchar{I}{E\"}{% - \LGR@ifnextchar{U}{E\"}{E}% + \LGR@ifnextchar{U}{E\"}{% + \LGR@ifnextchar{\textIota}{E\"}{% + \LGR@ifnextchar{\textUpsilon}{E\"}{E}% + }% + }% }% } </pre> |