# 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}
      [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{\'}{\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

Postfix ypogegrammeni cannot be second part of composite defs.

    \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}{ὼ}

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

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

    \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}{ῶ}
    \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega}{ῶ}
    \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omicron}{Ὸ}
    \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omega}{Ὼ}
    \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omicron}{Ὸ}
    \DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omega}{Ὼ}