From 83583b57e8624e227242b9bc763bbe6e389280ed Mon Sep 17 00:00:00 2001
From: Karl Berry
0.10.1
bugfix in greek-euenc.def and alphabeta-euenc.def.
2013-11-28
0.11
compatibility with Xe/LuaTeX in 8-bit mode,
\greekscript TextCommand.
Greek LICR definitions for XeTeX and LuaTeX. +Requires euenc.
+Literate source files were converted with PyLit to reStructuredText and +
Literate source files were converted with PyLit to reStructuredText and with Docutils to the HTML documentation.
Test and usage example.
Example for use of the experimental Greek LICR definitions with XeTeX or +LuaTeX.
+Greek script in PDF metadata.
The package hyperref defines the PU font encoding which also supports
@@ -154,14 +171,6 @@ with
- Greek LICR definitions for XeTeX and LuaTeX.
-Requires euenc. Example for use of the experimental Greek LICR definitions with XeTeX or
-LuaTeX.
To ensure Greek support independent of the TeX engine write
+There are many alternatives to use the Greek font encoding setup +provided by this package/bundle, e.g.:
+Ensure Greek support in text mode with textalpha:
\usepackage{textalpha}
For details see textalpha-test.tex and textalpha-test.pdf (8-bit -TeX) as well as test-euenc.tex and test-euenc.pdf (XeTeX/LuaTeX).
-To use the established macro names (\alpha … \Omega) in text and -math mode, write
+TeX) as well as euenc-test.tex and euenc-test.pdf +(XeTeX/LuaTeX). +To use the short macro names (\alpha … \Omega) known from math +mode in both, text and math mode, write
\usepackage{alphabeta}
For details see alphabeta-test.tex and alphabeta-test.pdf.
-For 8-bit TeX, you may also pass LGR as option to fontenc. For example, -specify T1 (Latin) as default font encoding and LGR for Greek with
+Use the greek option with Babel (requires babel-greek):
+\usepackage[greek]{babel} ++
Declare LGR via fontenc. For example, specify T1 (8-bit +Latin) as default font encoding and LGR for Greek with
\usepackage[LGR,T1]{fontenc}-
In this case, using Greek text macros without explicite font switch will -lead to errors.
-See [fntguide] for details and lgrenc-test.tex for an example.
+Note that without textalpha or alphabeta, Greek text macros work +only if the current font encoding supports Greek. See [fntguide] for +details and lgrenc-test.tex for an example.
+LGR encoded fonts can also be used alongside Unicode fonts with +XeTeX/LuaTeX to enable the input of Greek letters via the Latin +transcription provided by this font encoding. +See euenc-test.tex -> euenc-test.pdf and +lgrenc-test.tex -> lgrenc-test.tex.
The [encguide] reserves the name T7 for a Greek standard font encoding. +
The [encguide] reserves the name T7 for a Greek standard font encoding. However, up to now, there is no agreement on an implementation because the restrictions for general text encodings are too severe for typesetting polytonic Greek.
@@ -221,7 +247,7 @@ is facilitated by the [greek-usage], [teubner-doc], [cbfonts]). +font (see [greek-usage], [teubner-doc], [cbfonts]).A major drawback of the transliteration is, that you cannot access Latin letters if LGR is the active font encoding (e.g. in documents or parts of documents given the Babel language greek or polutionikogreek). @@ -233,7 +259,7 @@ Unicode (with XeTeX or LuaTeX).
The ‘Ibycus’ fonts from the package ibygrk implement an alternative -transliteration scheme (also explained in [babel-patch]). +transliteration scheme (also explained in [babel-patch]). It is currently not supported by greek-fontenc.
The font encoding file lgienc.def from ibycus-babel provides a basic setup (without any LICR macros or composite definitions).
@@ -385,40 +411,40 @@ from the ucAliases from puenc.def ensure that the hyperref package can convert Greek text in “LICR encoding” to a PDF-string (utf-8 encoded input is used as-is).
-LaTeX3 Project Team, LaTeX2ε font selection, 2005. http://mirror.ctan.org/macros/latex/doc/fntguide.pdf
Frank Mittelbach, Robin Fairbairns, Werner Lemberg, LaTeX3 Project Team, LaTeX font encodings, 2006. http://mirror.ctan.org/macros/latex/doc/encguide.pdf
Apostolos Syropoulos, Writing Greek with the greek option of the babel package, 1997. http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf
Claudio Beccari, The CB Greek fonts, Εὔτυπον, τεῦχος № 21, 2008. http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf
Claudio Beccari, teubner.sty An extension to the greek option of the babel package, 2011. http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf
Werner Lemberg, Unicode support for the Greek LGR
encoding Εὔτυπον, τεῦχος № 20, 2008.
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.txt b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.txt
new file mode 100644
index 00000000000..3a50f46cc0e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.txt
@@ -0,0 +1,304 @@
+alphabeta-euenc.def: Composite definitions for XeTeX and LuaTeX
+***************************************************************
+
+:Copyright: © 2013 Günter Milde
+:Licence: This work may be distributed and/or modified under the
+ conditions of the `LaTeX Project Public License`_, either
+ version 1.3 of this license or any later version.
+:Identification:
+ ::
+
+ \ProvidesFile{alphabeta-euenc}
+ [2013/07/24 0.1.3 Composite definitions for XeTeX and LuaTeX]
+
+Domposite definitions for ``alphabeta.sty`` with XeTeX and LuaTeX.
+
+Changelog:
+ .. class:: borderless
+
+ ========== ===== =========================================================
+ 2013-09-12 0.1 initial version
+ 2013-10-01 0.1.1 remove clashing defs for legacy characters with oxia.
+ ========== ===== =========================================================
+
+The alphabeta_ package re-defines the math macros for Greek letters to work
+in both, text and math mode, so that Greek letters can be specified with
+the established command names in text, too.
+
+The NFSS TextComposite mechanism looks for the next token without expanding
+it. In order to let compositions like ``\>"\alpha`` work as expected we
+define TextComposites with the `letter name commands`.
+
+For use with Unicode fonts (XeTeX/LuaTeX), we need to define composite
+commands for the EU1 and EU2 encoding
+
+Greek and Coptic
+~~~~~~~~~~~~~~~~
+::
+
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Alpha}{Ά}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Epsilon}{Έ}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Eta}{Ή}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Iota}{Ί}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Omicron}{Ό}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Upsilon}{Ύ}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Omega}{Ώ}
+ \DeclareTextCompositeCommand{\accdialytikatonos}{\LastDeclaredEncoding}{\iota}{ΐ}
+
+ \DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\Iota}{Ϊ}
+ \DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\Upsilon}{Ϋ}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\alpha}{ά}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\epsilon}{έ}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\eta}{ή}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\iota}{ί}
+ \DeclareTextCompositeCommand{\accdialytikatonos}{\LastDeclaredEncoding}{\upsilon}{ΰ}
+
+ \DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\iota}{ϊ}
+ \DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\upsilon}{ϋ}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omicron}{ό}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\upsilon}{ύ}
+ \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega}{ώ}
+
+
+Greek Extended
+~~~~~~~~~~~~~~
+::
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\alpha}{ἀ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\alpha}{ἁ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\alpha}{ἂ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\alpha}{ἃ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\alpha}{ἄ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\alpha}{ἅ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\alpha}{ἆ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\alpha}{ἇ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Alpha}{Ἀ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Alpha}{Ἁ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Alpha}{Ἂ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Alpha}{Ἃ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Alpha}{Ἄ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Alpha}{Ἅ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Alpha}{Ἆ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Alpha}{Ἇ}
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\epsilon}{ἐ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\epsilon}{ἑ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\epsilon}{ἒ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\epsilon}{ἓ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\epsilon}{ἔ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\epsilon}{ἕ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Epsilon}{Ἐ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Epsilon}{Ἑ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Epsilon}{Ἒ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Epsilon}{Ἓ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Epsilon}{Ἔ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Epsilon}{Ἕ}
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\eta}{ἠ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\eta}{ἡ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\eta}{ἢ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\eta}{ἣ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\eta}{ἤ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\eta}{ἥ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\eta}{ἦ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\eta}{ἧ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Eta}{Ἠ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Eta}{Ἡ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Eta}{Ἢ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Eta}{Ἣ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Eta}{Ἤ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Eta}{Ἥ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Eta}{Ἦ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Eta}{Ἧ}
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\iota}{ἰ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\iota}{ἱ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\iota}{ἲ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\iota}{ἳ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\iota}{ἴ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\iota}{ἵ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\iota}{ἶ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\iota}{ἷ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Iota}{Ἰ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Iota}{Ἱ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Iota}{Ἲ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Iota}{Ἳ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Iota}{Ἴ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Iota}{Ἵ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Iota}{Ἶ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Iota}{Ἷ}
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omicron}{ὀ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omicron}{ὁ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omicron}{ὂ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omicron}{ὃ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omicron}{ὄ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omicron}{ὅ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omicron}{Ὀ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omicron}{Ὁ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omicron}{Ὂ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omicron}{Ὃ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omicron}{Ὄ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omicron}{Ὅ}
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\upsilon}{ὐ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\upsilon}{ὑ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\upsilon}{ὒ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\upsilon}{ὓ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\upsilon}{ὔ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\upsilon}{ὕ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\upsilon}{ὖ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\upsilon}{ὗ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Upsilon}{Ὑ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Upsilon}{Ὓ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Upsilon}{Ὕ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Upsilon}{Ὗ}
+
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omega}{ὠ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omega}{ὡ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omega}{ὢ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omega}{ὣ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omega}{ὤ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omega}{ὥ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\omega}{ὦ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\omega}{ὧ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omega}{Ὠ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omega}{Ὡ}
+ \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omega}{Ὢ}
+ \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omega}{Ὣ}
+ \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omega}{Ὤ}
+ \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omega}{Ὥ}
+ \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Omega}{Ὦ}
+ \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Omega}{Ὧ}
+
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\alpha}{ὰ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\epsilon}{ὲ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\eta}{ὴ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\iota}{ὶ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omicron}{ὸ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\upsilon}{ὺ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omega}{ὼ}
+
+ %% postfix ypogegrammeni cannot be second part of composite defs.
+ % \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾀ}
+ % \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾁ}
+ % \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾂ}
+ % \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾃ}
+ % \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾄ}
+ % \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾅ}
+ % \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾆ}
+ % \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾇ}
+ % \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾈ}
+ % \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾉ}
+ % \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾊ}
+ % \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾋ}
+ % \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾌ}
+ % \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾍ}
+ % \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾎ}
+ % \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾏ}
+ %
+ % \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾐ}
+ % \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾑ}
+ % \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾒ}
+ % \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾓ}
+ % \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾔ}
+ % \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾕ}
+ % \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾖ}
+ % \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾗ}
+ % \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾘ}
+ % \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾙ}
+ % \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾚ}
+ % \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾛ}
+ % \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾜ}
+ % \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾝ}
+ % \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾞ}
+ % \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾟ}
+ %
+ % \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾠ}
+ % \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾡ}
+ % \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾢ}
+ % \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾣ}
+ % \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾤ}
+ % \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾥ}
+ % \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾦ}
+ % \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾧ}
+ % \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾨ}
+ % \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾩ}
+ % \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾪ}
+ % \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾫ}
+ % \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾬ}
+ % \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾭ}
+ % \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾮ}
+ % \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾯ}
+
+ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\alpha}{ᾰ}
+ \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\alpha}{ᾱ}
+ % \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾲ}
+ % \DeclareTextCompositeCommand{\alpha}{\LastDeclaredEncoding}{\ypogegrammeni}{ᾳ}
+ % \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾴ}
+ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\alpha}{ᾶ}
+ \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\alpha}{ᾶ}
+ % \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾷ}
+ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Alpha}{Ᾰ}
+ \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Alpha}{Ᾱ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Alpha}{Ὰ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Alpha}{Ὰ}
+ % \DeclareTextCompositeCommand{\Alpha}{\LastDeclaredEncoding}{\prosgegrammeni}{ᾼ}
+
+ % \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῂ}
+ % \DeclareTextCompositeCommand{\eta}{\LastDeclaredEncoding}{\ypogegrammeni}{ῃ}
+ % \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῄ}
+ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\eta}{ῆ}
+ \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\eta}{ῆ}
+ % \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῇ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Epsilon}{Ὲ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Eta}{Ὴ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Epsilon}{Ὲ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Eta}{Ὴ}
+ % \DeclareTextCompositeCommand{\Eta}{\LastDeclaredEncoding}{\prosgegrammeni}{ῌ}
+
+
+ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\iota}{ῐ}
+ \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\iota}{ῑ}
+ \DeclareTextCompositeCommand{\accdialytikavaria}{\LastDeclaredEncoding}{\iota}{ῒ}
+ \DeclareTextCompositeCommand{\accdialytikaoxia}{\LastDeclaredEncoding}{\iota}{ΐ}
+ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\iota}{ῖ}
+ \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\iota}{ῖ}
+ \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\iota}{ῗ}
+ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Iota}{Ῐ}
+ \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Iota}{Ῑ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Iota}{Ὶ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Iota}{Ὶ}
+
+ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\upsilon}{ῠ}
+ \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\upsilon}{ῡ}
+ \DeclareTextCompositeCommand{\accdialytikavaria}{\LastDeclaredEncoding}{\upsilon}{ῢ}
+ \DeclareTextCompositeCommand{\accdialytikaoxia}{\LastDeclaredEncoding}{\upsilon}{ΰ}
+ \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\rho}{ῤ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\rho}{ῥ}
+ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\upsilon}{ῦ}
+ \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\upsilon}{ῦ}
+ \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\upsilon}{ῧ}
+ \DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Upsilon}{Ῠ}
+ \DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Upsilon}{Ῡ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Upsilon}{Ὺ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Upsilon}{Ὺ}
+ \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Rho}{Ῥ}
+
+ % \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῲ}
+ % \DeclareTextCompositeCommand{\omega}{\LastDeclaredEncoding}{\ypogegrammeni}{ῳ}
+ % \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῴ}
+ \DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\omega}{ῶ}
+ \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega}{ῶ}
+ % \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῷ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omicron}{Ὸ}
+ \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omega}{Ὼ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omicron}{Ὸ}
+ \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omega}{Ὼ}
+ % \DeclareTextCompositeCommand{\Omega}{\LastDeclaredEncoding}{\prosgegrammeni}{ῼ}
+
+
+.. References
+
+.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt
+.. _alphabeta: http://www.ctan.org/pkg/greek-fontenc
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf
index d041e4a197d..b52ab6f5246 100644
Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf differ
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex
index 3bebcd475c7..b215b016c63 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex
@@ -1,27 +1,29 @@
\documentclass{article}
-\usepackage{hyperref}
+\usepackage{hyperref,bookmark}
\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,pdfencoding=auto}
-\usepackage{bookmark}
\usepackage{parskip}
\usepackage{amsmath}
\ifdefined\XeTeXrevision
\usepackage[no-math]{fontspec}
\setmainfont{Linux Libertine O}
- \usepackage[libertine,slantedGreek ]{newtxmath}
+ \usepackage[libertine,slantedGreek]{newtxmath}
\else\ifdefined\luatexversion
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
- \usepackage[libertine,slantedGreek ]{newtxmath}
+ \usepackage[libertine,slantedGreek]{newtxmath}
\else
+ \usepackage[utf8]{inputenc}
+ \usepackage[LGR,T1]{fontenc}
\usepackage{textcomp}
- \usepackage{lmodern}
+ % \usepackage{lmodern}
% \usepackage{gfsdidot}
% \usepackage{kerkis}
- \usepackage{fixmath}
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
+ \usepackage{newtxtext,newtxmath}
+ \usepackage{substitutefont}
+ \substitutefont{LGR}{\rmdefault}{artemisia}
+ \usepackage{isomath}
\fi\fi
% No section numbers but PDF bookmarks for sections
@@ -32,9 +34,6 @@
% Avoid warnigns with PDF string generation for "alphabeta" commands:
-% PU supports (monotonic) Greek LICR macros
-\DeclareTextCommand{\ensuregreek}{PU}[1]{#1}
-
% let \TextOrMath (from fixltx2e) return the "text" argument:
\pdfstringdefDisableCommands{%
\let\TextOrMath\@firstoftwo%
@@ -57,6 +56,7 @@ Just like Latin letters, the Greek counterparts are by default italic in
math mode (capital letters upright without \emph{fixmath} or
\emph{\href{http://www.ctan.org/pkg/isomath}{isomath}}) and upright in text:
+
\begin{quote}
Text: L \Gamma{} l \gamma,
emphasized text: \emph{L \Gamma{} l \gamma},
@@ -118,7 +118,7 @@ macros. Wrapping in \verb+\ensuregreek+ ensures the right placement of the
accents and breathings (before, not above capital letters). With LICR input
(accent macros + symbol macros), non-standard diacritics are missing in the
PDF data, as hyperref's PU encoding currently does not support polytonic
-Greek. (Here, the dasia dropped at the start of the word in parentheses in
+Greek. (Here, the dasia is dropped at the start of the word in parentheses in
the PDF toc. The warning ``\texttt{Glyph not defined in PU encoding,
removing `\textbackslash<' on input line 145.}'' is written to the log.)
@@ -149,6 +149,8 @@ mathematical mode (for XeTeX/LuaTeX use unicode-math):
Greek letters in math (there are no math macros for Greek letters wich exist
with similar shape in the Latin alphabet):
+Input as macro:
+
\begin{align*}
&
% \Alpha{} \Beta{}
@@ -176,8 +178,8 @@ with similar shape in the Latin alphabet):
\, \digamma{}
\end{align*}
-Unicode input in math mode works with 8-bit TeX. With XeTeX/LuaTeX, it requires the unicode-math
-package.
+Input as Unicode literals (with XeTeX/LuaTeX, this requires the unicode-math
+package):
\begin{align*} & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\
& αβγδεζηθικλμνξπρσςτ υφχψω \, ϝ
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf
index d605f3bae95..9cb463008a2 100644
Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf differ
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.tex b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.tex
index 121693f4531..e05f24b38d4 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.tex
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.tex
@@ -25,13 +25,15 @@
\usepackage{listings}
\lstset{basicstyle=\ttfamily}
-% Babel package::
+% Babel package:
\usepackage{babel}
-% revert the polutonikogreek definition of \~:
-% not required with babel-greek >= 1.4
-% \addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}}
-% \addto\extrasgreek{\renewcommand*{\~}{\a~}}
+
+% With XeTeX/LuaTeX, load fontspec after babel to use Unicode
+% fonts for Latin script and LGR for Greek:
+\ifdefined\luatexversion \usepackage{fontspec}\fi
+\ifdefined\XeTeXrevision \usepackage{fontspec}\fi
+
% "Lipsiakos" italic font `cbleipzig`:
\newcommand*{\lishape}{\fontencoding{LGR}\fontfamily{cmr}%
@@ -45,8 +47,9 @@
\section*{Greek diacritics with standard accent macros}
-\texttt{lgrxenc.def} is a comprehensive font encoding definition file.
-LICR macros are defined for all non-ASCII characters.
+The font encoding definition file \texttt{lgrxenc.def} defines
+LICR macros for all non-ASCII characters in the LGR font encoding.
+
Diacritics can be input using an extension of the standard macro
commands with composite diacritics input as
backslash followed by the LGR transliteration.%
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.pdf
new file mode 100644
index 00000000000..e83f4351026
Binary files /dev/null and b/Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.pdf differ
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.tex
new file mode 100644
index 00000000000..a5f49bdb201
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.tex
@@ -0,0 +1,663 @@
+\documentclass[a4paper]{article}
+% \usepackage{textcomp}
+% \usepackage{hyperref,bookmark}
+\usepackage{parskip}
+% \usepackage{booktabs}
+
+\usepackage[LGR]{fontenc}
+\usepackage{fontspec}
+% \setmainfont{DejaVu Serif}
+% \setsansfont{DejaVu Sans}
+% \usepackage{libertineotf}
+\setmainfont{Linux Libertine O}
+\setsansfont{Linux Biolinum O}
+% \setmainfont{FreeSerif}
+% \setmainfont{Droid Sans}
+
+% Declare the font encoding and Greek LICR definitions:
+\usepackage{textalpha}
+
+% Optionally load the xunicode package:
+% \newcommand{\UTFencname}{\LastDeclaredEncoding}
+% \usepackage{xunicode}
+
+% Accent+Unicode character: proof of concept:
+\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{α}{ἆ}
+
+
+\begin{document}
+
+\section*{Greek LICR definitions with XeTeX/LuaTeX}
+
+The \verb|textalpha| package from the greek-fontenc bundle is a convenient way to
+load Greek LICR macros for use anywhere in the document and with any
+TeX engine supporting the e-TeX extensions (pdfTeX, XeTeX, or LuaTeX).
+With XeTeX or LuaTeX, it loads the file greek-euenc.def.
+
+Typesetting Greek texts requires a font containing Greek letters. With the
+XeTeX or LuaTeX engines, the user should ensure that the choosen font
+contains the required glyphs (the default Latin Modern fonts have only
+capital Greek letters). Examples for suitable fonts are the “Deja Vu” or
+the “Linux Libertine” OpenType fonts.
+
+\section{LICR input}
+
+The example from \texttt{usage.tex} in \emph{babel-greek} input
+using the LICR macros:
+
+\begin{quote}
+ \textTau\'\textiota{}
+ \textphi\'\texteta\textiota\textfinalsigma\texterotimatiko{}
+ \<\textIota\textdelta\`\textomega\textnu{}
+ \>\textepsilon\textnu\texttheta\'\textepsilon\textdelta\textepsilon{}
+ \textpi\textalpha\~\textiota\textdelta\'\'
+ \>\textepsilon\textlambda\textepsilon\textupsilon\texttheta\'\textepsilon\textrho\textalpha\textnu\\
+ \texttau\`\textalpha\textfinalsigma{}
+ \textpi\textlambda\texteta\textsigma\'\textiota\textomicron\textnu{}
+ \textNu\'\textupsilon\textmu\textphi\textalpha\textfinalsigma{}
+ \textsigma\texttau\textepsilon\textphi\textalpha\textnu\textomicron\~\textupsilon\textsigma\textalpha\textnu{},
+ \textSigma\'\textomega\textsigma\texttau\textrho\textalpha\texttau\textepsilon{},\\
+ \>\textepsilon\textrho\~\textomega\textnu{}
+ \'\textalpha\textpi\~\texteta\textlambda\texttheta\textepsilon\textfinalsigma{}
+ \textepsilon\>\textupsilon\texttheta\'\textupsilon\textfinalsigma\texterotimatiko{}
+\end{quote}
+
+\subsection{Greek alphabet}
+
+Greek letters via LICR macros:
+
+
+\textAlpha{} \textBeta{} \textGamma{} \textDelta{} \textEpsilon{}
+\textZeta{} \textEta{} \textTheta{} \textIota{} \textKappa{}
+\textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \textPi{}
+\textRho{} \textSigma{} \textTau{} \textUpsilon{} \textPhi{}
+\textChi{} \textPsi{} \textOmega{}
+
+\textalpha{} \textbeta{} \textgamma{} \textdelta{} \textepsilon{}
+\textzeta{} \texteta{} \texttheta{} \textiota{} \textkappa{}
+\textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \textpi{}
+\textrho{} \textsigma{} \texttau{} \textupsilon{}
+\textphi{} \textchi{} \textpsi{} \textomega{}
+
+The small sigma is set with a different
+glyph if it ends a word:
+
+\begin{itemize}
+ \item[\textsigma] textsigma
+ \item[\textfinalsigma] textfinalsigma or textvarsigma
+\end{itemize}
+
+In the Latin transcription, the letter `s' stands for \verb|\textautosigma|
+which automatically chooses the glyph according to the position.
+
+\subsection{Additional Greek symbols}
+
+\textkoppa{} textkoppa \\ % ϟ
+\textqoppa{} textqoppa (archaic koppa) \\ % ϙ
+\textQoppa{} textQoppa (archaic Koppa) \\ % Ϙ
+\textstigma{} textstigma \\ % ϛ
+% \textvarstigma{} textvarstigma \\ % no separate Unicode character
+\textStigma{} textStigma (Sigma-Tau-Ligature in CB-fonts)%
+\footnote{the name “stigma” originally applied to a medieval sigma-tau
+ ligature, whose shape was confusably similar to the cursive
+ digamma} \\ % Ϛ
+\textsampi{} textsampi \\ % ϡ
+\textSampi{} textSampi \\ % Ϡ
+\textdigamma{} textdigamma \\ % ϝ (\digamma used by amsmath!)
+\textDigamma{} textDigamma \\ % Ϝ
+% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals
+\textdexiakeraia{} textdexiakeraia \\ % ʹ
+\textaristerikeraia{} textaristerikeraia \\ % ͵
+
+Mathematical notation uses variant shapes for pi, kappa, rho, theta, and phi
+as additional symbols. These variations have no syntactic meaning in Greek
+text and are not given separate code-points in the LGR text encoding. Some
+text fonts use the variant shapes in place of the “regular” ones.
+
+TeX's concept of “standard” vs. “variant” symbols does not map to the
+distinction between “Greek Letter ...” vs. “Greek Symbol ...” in the
+Unicode standard:
+
+\begin{tabular}{cccc}
+math symbol & Unicode «letter» & var math symbol & Unicode «symbol» \\
+$\pi$ & π & $\varpi$ & ϖ \\
+$\rho$ & ρ & $\varrho$ & ϱ \\
+$\theta$ & θ & $\vartheta$ & ϑ \\
+$\epsilon$ & ε & $\varepsilon$ & ϵ \\
+$\phi$ & φ & $\varphi$ & ϕ \\
+$\beta$ & β & \emph{missing} & ϐ \\
+$\kappa$ & κ & \emph{missing} & ϰ \\
+$\Theta$ & Θ & \emph{missing} & ϴ \\
+\end{tabular}
+
+\subsection{Diacritics}
+
+Greek diacritcs can be input by named macro or symbol macro. Named macros
+are defined in xunicode-greek.sty for \verb|\LastDeclaredEncoding| (here
+\LastDeclaredEncoding).
+
+\acctonos\textalpha \'\textalpha{} \acctonos x\'x
+\accvaria\textalpha \`\textalpha{} \accvaria x\`x
+\accdialytika\textiota \"\textiota{} \accdialytika x\"x
+\accperispomeni\textalpha \~\textalpha{} \accperispomeni x\~x
+\accpsili\textalpha \>\textalpha{} \accpsili x\>x
+\accdasia\textalpha \<\textalpha{} \accdasia x\
2013-07-17
composite definitions starting with standard accent cmds
0.11
2013-11-28
\greekscript TextCommand
\ProvidesFile{greek-fontenc.def} -[2013/07/18 v0.9.1 Common Greek font encoding definitions] +[2013/11/28 v0.11 Common Greek font encoding definitions]
The \ensuregreek command can be used to ensure that its argument is set +
Provide “empty” encoding-specific definitions for \ensuregreek and +\greekscript. The definitions in this file make the font encoding fit +for use with the Greek script. (See textalpha.sty for default +definitions.)
+The \ensuregreek macro can be used to ensure that its argument is set in a font encoding with support for Greek. If the active font encoding supports it, kerning between adjacent command calls (e.g. \ensuregreek{A}\ensuregreek{\Upsilon}) is preserved. This allows, e.g., wrapping of compound Unicode character definitions.
-\DeclareTextCommand{\ensuregreek}{\LastDeclaredEncoding}[1]{#1} +\ProvideTextCommand{\ensuregreek}{\LastDeclaredEncoding}[1]{#1} ++The \greekscript declaration ensures the current font encoding supports +the Greek script:
+\ProvideTextCommand{\greekscript}{\LastDeclaredEncoding}{}
\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{textalpha} -[2013/09/11 v0.5 macros for Greek letters in text] +[2013/11/28 v0.11 macros for Greek letters in text]
To allow documents using Greek LICR macros without worrying about the TeX -engine used to compile them, this package does a simple test (based on the -\ifdefined command provided by the e-TeX extension) and does “the right -thing” to set up Greek text font support for the detected engine.
-For 8-bit TeX, this package also declares the LGR font encoding as default -for Greek LICR macros (cf. fntguide section 5.3):
+engine used to compile them, this package tests the declared font encodings +and does “the right thing” to set up Greek text font support: +If the Unicode font encodings EU1 (XeTeX) or EU2 (LuaTeX) are declared, +before loading this package (e.g. vie fontspec) the package provides +Greek LICR definitions for them.
If the LGR font encoding is declared before loading this package, it is +set as default for Greek LICR macros (cf. fntguide section 5.3).
+With XeTeX or LuaTex, Unicode fonts and LGR encoded 8-bit fonts can be +used in the same document (see test-euenc.tex).
+Advantages:
Symbols from a Greek text font (e.g. the CB fonts) can be accessed -without the need for an explicite font-encoding switch.
In combination with \usepackage[utf8]{inputenc} and lgrenc.dfu -from greek-inputenc, Unicode input of Greek characters is supported in -any font encoding.
Unicode input of Greek characters is supported
+via \usepackage[utf8]{inputenc} and lgrenc.dfu from +greek-inputenc for 8-bit TeX or XeTeX/LuaTeX in 8-bit compatibility +mode in any font encoding (see textalpha-test.tex).
natively by XeTeX/LuaTeX for Unicode fonts. As inputenc does not work +with these engines, text input can be done via the Latin transcription +or LICR but not via literal Unicode characters for 8-bit font encodings +like LGR (see test-euenc.tex).
Attention!
The macros work well in any font encoding for single symbols. -However, with 8-bit TeX, the automatic font-encoding switches behind the -doors interfere with kerning between letters and replacement of -accent+character with a pre-composed character.
+However, with 8-bit TeX engines, the automatic font-encoding switches +behind the doors interfere with kerning between letters and replacement +of accent+character with a pre-composed character.Therefore, Greek text should be written with the help of babel or polyglossia (setting the language to greek) or wrapped in the provided ensuregreek macro. Using babel or polyglossia also helps -to ensure proper hyphenation.
+to ensure correct hyphenation of Greek text.\usepackage{textalpha}
For details see textalpha-test.tex and textalpha-test.pdf (8-bit -TeX) as well as test-euenc.tex and test-euenc.pdf (XeTeX/LuaTeX).
+TeX and XeTeX/LuaTeX in 8-bit compatibility mode) as well as +test-euenc.tex and test-euenc.pdf (XeTeX/LuaTeX with Unicode +fonts).With XeTeX or LuaTeX, there is one common input and font encoding – -Unicode. 8-bit TeX font encodings should generally not be used. For -compatibility with the LaTeX font selection system, the package euenc -defines the (pseudo) font encodings EU1 and EU2 for XeTeX and LuaTeX -respectively. However euenc does not (yet) define LICR macros. We therefore -explicitely load Greek LICR definitions for XeTeX/LuaTeX from greek-fontenc.
-Use the EU1 font encoding. This is the only font encoding used with XeTeX, -so loading it with fontenc cannot mix up the default font encoding:
-\ifdefined\XeTeXrevision - \usepackage[EU1]{fontenc} --
Load the Greek LICR definitions for XeTeX/LuaTeX. In an ideal world, this -should be done in the eu1enc.def file of the euenc package.
-Before that, we must ensure EU1 is the \LastDeclaredEncoding: Beacause -fontenc loads font encoding definition files only once, it may happen that -another font encoding is defined after EU1 — for example fontspec -declares EU1 but leaves \LastDeclaredEncoding at T3 (tipa), because -it later inputs the xunicode package which in turn loads t3enc.def.
-\renewcommand{\LastDeclaredEncoding}{EU1} -\input{greek-euenc.def} --
No other action is required with Unicode-aware TeX engines:
-\expandafter\endinput % "return" -\fi --
Similar actions to XeTeX, but use the font encoding EU2:1
-\ifdefined\luatexversion - \usepackage[EU2]{fontenc} - \renewcommand{\LastDeclaredEncoding}{EU2} +Unicode. 8-bit TeX font encodings are only used in compatibility mode or for +fonts not available otherwise. For compatibility with the LaTeX font +selection system, the package euenc defines the (pseudo) font encodings EU1 +and EU2 for XeTeX and LuaTeX respectively. However euenc does not (yet) +define LICR macros. We therefore explicitely load Greek LICR definitions for +XeTeX/LuaTeX from greek-euenc.def which in turn +includes greek-fontenc.def. +With 8-bit LaTeX, the LGR font encoding is used for Greek characters. If no +Greek-supporting font encoding (EU1, EU2, or LGR) is declared, LGR is loaded +and set up as default Greek font encoding by this package.
+To give textalpha.sty a chance of finding out which font encodings are +used, load it after fontspec and/or fontenc.
++-Font encodings
+Ensure a Greek-supporting font encoding exists and supports Greek LICR +macros:
+Load the Greek LICR definitions for Unicode if font encoding EU1 (XeTeX) or +EU2 (LuaTeX) is detected.1 In an ideal world, this would be done in +the eu1enc.def (or eu2enc.def) file of the euenc package. If none +of EU1, EU2, and LGR is declared, load lgrenc.def:
+Re-set the \LastDeclaredEncoding: Because fontenc loads font +encoding definition files only once, it may happen that another font +encoding is defined afterwards — for example fontspec leaves +\LastDeclaredEncoding at T3 (tipa), because it inputs the xunicode +package which in turn loads t3enc.def.
+\@ifl@aded{def}{eu1enc}{ + \renewcommand{\LastDeclaredEncoding}{EU1} \input{greek-euenc.def} - \expandafter\endinput % "return" -\fi +}{% else + \@ifl@aded{def}{eu2enc}{ + \renewcommand{\LastDeclaredEncoding}{EU2} + \input{greek-euenc.def} + }{% else + \@ifl@aded{def}{lgrenc}{ + % LGR already declared and set up + }{ + \input{lgrenc.def} + } + } +}-
- 1
- @@ -162,26 +189,13 @@ XeTeX vs. LuaTeX using differently named *.fd files (se details).
-8-bit TeX
-With 8-bit TeX, you usually pass the font encoding name(s) as option to -fontenc which then loads the corresponding *.def file(s). The last -option indicates the document’s default font encoding. (See [fntguide] for -details and lgrenc-test.tex for an example.) Therefore, we do not know -the documents main font encoding and hence cannot use -\usepackage[LGR]{inputenc}. We load lgrenc.def directly, if it is -not already done and re-set \LastDeclaredEncoding else.
---Note
-The use of \@ifundefined has the side-effect that the tested -macro becomes defined and set to \relax (polluting the namespace and -interfering with tests via eTeX’s \ifdefined). However, in this case -no harm is done as the macro is defined by lgrenc.def anyway.
-\@ifundefined{ver@lgrenc.def} - {\input{lgrenc.def}} - {\renewcommand{\LastDeclaredEncoding}{EU1}} +The package hyperref defines the PU font encoding which also supports +(monotonic) Greek. It currently misses polytonic greek and the +\greekscript and \ensuregreek TextCommands:
+\@ifl@aded{def}{puenc} + {\ProvideTextCommand{\greekscript}{PU}{} + \ProvideTextCommand{\ensuregreek}{PU}[1]{#1}} + {}
The following definitions ensure that the Greek LICR macros can be used anywhere in the document also with 8-bit TeX by declaring LGR as their -default font encoding.
-\@ifl@aded{def}{lgrenc} + {\renewcommand{\LastDeclaredEncoding}{LGR}} + {\expandafter\endinput} % "return" ++
The \greekscript declaration ensures the current font encoding supports +the Greek script. greek-fontenc.def sets this to the empty declaration +for font encodings that do so. This is currently used by lgrenc.def +(LGR) and greek-euenc.def (Greek LICR macros for EU1 and EU2).
+We define LGR as default encoding for Greek text. We use +\ProvideTextCommandDefault to enable the author or other packages to use +an alternative definition (see [fntguide]):
+\ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont} +
The \ensuregreek command can be used to ensure that its argument is set in -a font encoding with support for Greek. We define LGR as default encoding for -Greek text:
-\DeclareTextCommandDefault{\ensuregreek}[1]{{\fontencoding{LGR}\selectfont #1}} +a font encoding with support for Greek. Again the default is LGR: +\ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\greekscript #1}}