# alphabeta-euenc.def

Composite definitions for XeTeX and LuaTeX

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}
[2014/09/04 0.11.2 Composite definitions for XeTeX and LuaTeX]

Composite definitions for alphabeta.sty with XeTeX and LuaTeX.

Changelog:
 2013-09-12 0.1 initial version 2013-10-01 0.1.1 remove clashing defs for legacy characters with oxia. 2014-09-04 0.11.2 documentation update

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.

This file expands the font encoding definitions in greek-euenc.def with composite commands for use with Unicode fonts. It is sourced by alphabeta under XeTeX/LuaTeX.

# Greek and Coptic

\DeclareTextCompositeCommand{\'}{\UTFencname}{\Alpha}{Ά}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\Epsilon}{Έ}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\Eta}{Ή}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\Iota}{Ί}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\Omicron}{Ό}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\Upsilon}{Ύ}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\Omega}{Ώ}
\DeclareTextCompositeCommand{\accdialytikatonos}{\UTFencname}{\iota}{ΐ}

\DeclareTextCompositeCommand{\"}{\UTFencname}{\Iota}{Ϊ}
\DeclareTextCompositeCommand{\"}{\UTFencname}{\Upsilon}{Ϋ}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\alpha}{ά}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\epsilon}{έ}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\eta}{ή}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\iota}{ί}
\DeclareTextCompositeCommand{\accdialytikatonos}{\UTFencname}{\upsilon}{ΰ}

\DeclareTextCompositeCommand{\"}{\UTFencname}{\iota}{ϊ}
\DeclareTextCompositeCommand{\"}{\UTFencname}{\upsilon}{ϋ}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\omicron}{ό}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\upsilon}{ύ}
\DeclareTextCompositeCommand{\'}{\UTFencname}{\omega}{ώ}

# Greek Extended

Postfix ypogegrammeni cannot be second part of composite defs.

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\alpha}{ἀ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\alpha}{ἁ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\alpha}{ἂ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\alpha}{ἃ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\alpha}{ἄ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\alpha}{ἅ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\alpha}{ἆ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\alpha}{ἇ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\Alpha}{Ἀ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Alpha}{Ἁ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\Alpha}{Ἂ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Alpha}{Ἃ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\Alpha}{Ἄ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Alpha}{Ἅ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\Alpha}{Ἆ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\Alpha}{Ἇ}

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\epsilon}{ἐ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\epsilon}{ἑ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\epsilon}{ἒ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\epsilon}{ἓ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\epsilon}{ἔ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\epsilon}{ἕ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\Epsilon}{Ἐ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Epsilon}{Ἑ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\Epsilon}{Ἒ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Epsilon}{Ἓ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\Epsilon}{Ἔ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Epsilon}{Ἕ}

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\eta}{ἠ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\eta}{ἡ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\eta}{ἢ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\eta}{ἣ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\eta}{ἤ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\eta}{ἥ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\eta}{ἦ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\eta}{ἧ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\Eta}{Ἠ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Eta}{Ἡ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\Eta}{Ἢ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Eta}{Ἣ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\Eta}{Ἤ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Eta}{Ἥ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\Eta}{Ἦ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\Eta}{Ἧ}

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\iota}{ἰ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\iota}{ἱ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\iota}{ἲ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\iota}{ἳ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\iota}{ἴ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\iota}{ἵ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\iota}{ἶ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\iota}{ἷ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\Iota}{Ἰ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Iota}{Ἱ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\Iota}{Ἲ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Iota}{Ἳ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\Iota}{Ἴ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Iota}{Ἵ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\Iota}{Ἶ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\Iota}{Ἷ}

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\omicron}{ὀ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\omicron}{ὁ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\omicron}{ὂ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\omicron}{ὃ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\omicron}{ὄ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\omicron}{ὅ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\Omicron}{Ὀ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Omicron}{Ὁ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\Omicron}{Ὂ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Omicron}{Ὃ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\Omicron}{Ὄ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Omicron}{Ὅ}

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\upsilon}{ὐ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\upsilon}{ὑ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\upsilon}{ὒ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\upsilon}{ὓ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\upsilon}{ὔ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\upsilon}{ὕ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\upsilon}{ὖ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\upsilon}{ὗ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Upsilon}{Ὑ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Upsilon}{Ὓ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Upsilon}{Ὕ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\Upsilon}{Ὗ}

\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\omega}{ὠ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\omega}{ὡ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\omega}{ὢ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\omega}{ὣ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\omega}{ὤ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\omega}{ὥ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\omega}{ὦ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\omega}{ὧ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\Omega}{Ὠ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Omega}{Ὡ}
\DeclareTextCompositeCommand{\accpsilivaria}{\UTFencname}{\Omega}{Ὢ}
\DeclareTextCompositeCommand{\accdasiavaria}{\UTFencname}{\Omega}{Ὣ}
\DeclareTextCompositeCommand{\accpsilioxia}{\UTFencname}{\Omega}{Ὤ}
\DeclareTextCompositeCommand{\accdasiaoxia}{\UTFencname}{\Omega}{Ὥ}
\DeclareTextCompositeCommand{\accpsiliperispomeni}{\UTFencname}{\Omega}{Ὦ}
\DeclareTextCompositeCommand{\accdasiaperispomeni}{\UTFencname}{\Omega}{Ὧ}

\DeclareTextCompositeCommand{\}{\UTFencname}{\alpha}{ὰ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\epsilon}{ὲ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\eta}{ὴ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\iota}{ὶ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\omicron}{ὸ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\upsilon}{ὺ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\omega}{ὼ}

\DeclareTextCompositeCommand{\u}{\UTFencname}{\alpha}{ᾰ}
\DeclareTextCompositeCommand{\=}{\UTFencname}{\alpha}{ᾱ}
\DeclareTextCompositeCommand{\~}{\UTFencname}{\alpha}{ᾶ}
\DeclareTextCompositeCommand{\accperispomeni}{\UTFencname}{\alpha}{ᾶ}
\DeclareTextCompositeCommand{\u}{\UTFencname}{\Alpha}{Ᾰ}
\DeclareTextCompositeCommand{\=}{\UTFencname}{\Alpha}{Ᾱ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Alpha}{Ὰ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Alpha}{Ὰ}

\DeclareTextCompositeCommand{\~}{\UTFencname}{\eta}{ῆ}
\DeclareTextCompositeCommand{\accperispomeni}{\UTFencname}{\eta}{ῆ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Epsilon}{Ὲ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Eta}{Ὴ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Epsilon}{Ὲ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Eta}{Ὴ}

\DeclareTextCompositeCommand{\u}{\UTFencname}{\iota}{ῐ}
\DeclareTextCompositeCommand{\=}{\UTFencname}{\iota}{ῑ}
\DeclareTextCompositeCommand{\accdialytikavaria}{\UTFencname}{\iota}{ῒ}
\DeclareTextCompositeCommand{\accdialytikaoxia}{\UTFencname}{\iota}{ΐ}
\DeclareTextCompositeCommand{\~}{\UTFencname}{\iota}{ῖ}
\DeclareTextCompositeCommand{\accperispomeni}{\UTFencname}{\iota}{ῖ}
\DeclareTextCompositeCommand{\accdialytikaperispomeni}{\UTFencname}{\iota}{ῗ}
\DeclareTextCompositeCommand{\u}{\UTFencname}{\Iota}{Ῐ}
\DeclareTextCompositeCommand{\=}{\UTFencname}{\Iota}{Ῑ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Iota}{Ὶ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Iota}{Ὶ}

\DeclareTextCompositeCommand{\u}{\UTFencname}{\upsilon}{ῠ}
\DeclareTextCompositeCommand{\=}{\UTFencname}{\upsilon}{ῡ}
\DeclareTextCompositeCommand{\accdialytikavaria}{\UTFencname}{\upsilon}{ῢ}
\DeclareTextCompositeCommand{\accdialytikaoxia}{\UTFencname}{\upsilon}{ΰ}
\DeclareTextCompositeCommand{\accpsili}{\UTFencname}{\rho}{ῤ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\rho}{ῥ}
\DeclareTextCompositeCommand{\~}{\UTFencname}{\upsilon}{ῦ}
\DeclareTextCompositeCommand{\accperispomeni}{\UTFencname}{\upsilon}{ῦ}
\DeclareTextCompositeCommand{\accdialytikaperispomeni}{\UTFencname}{\upsilon}{ῧ}
\DeclareTextCompositeCommand{\u}{\UTFencname}{\Upsilon}{Ῠ}
\DeclareTextCompositeCommand{\=}{\UTFencname}{\Upsilon}{Ῡ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Upsilon}{Ὺ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Upsilon}{Ὺ}
\DeclareTextCompositeCommand{\accdasia}{\UTFencname}{\Rho}{Ῥ}

\DeclareTextCompositeCommand{\~}{\UTFencname}{\omega}{ῶ}
\DeclareTextCompositeCommand{\accperispomeni}{\UTFencname}{\omega}{ῶ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Omicron}{Ὸ}
\DeclareTextCompositeCommand{\}{\UTFencname}{\Omega}{Ὼ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Omicron}{Ὸ}
\DeclareTextCompositeCommand{\accvaria}{\UTFencname}{\Omega}{Ὼ}