alphabeta-tuenc.def
Composite definitions for XeTeX and LuaTeX
- Copyright:
- © 2013, 2020 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-tuenc} [2020/10/30 2.0 Composite definitions for XeTeX and LuaTeX]
- Changelog:
0.1
2013-09-12
initial version
0.1.1
2013-10-01
remove clashing defs for legacy characters with oxia.
0.11.2
2014-09-04
documentation update
0.14
2020-02-28
rename to alphabeta-tuenc.def, use \UTFencname instead of \LastDeclaredEncoding
1.0
2020-09-25
New package version. No changes in this file.
2.0
2020-10-30
Use \UnicodeEncodingName instead of \UTFencname.
Abstract
Composite definitions for alphabeta.sty with XeTeX and LuaTeX.
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 tuenc-greek.def with composite commands for use with Unicode fonts. It is sourced by alphabeta under XeTeX/LuaTeX.
Greek and Coptic
\DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Alpha}{Ά} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Epsilon}{Έ} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Eta}{Ή} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Iota}{Ί} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Omicron}{Ό} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Upsilon}{Ύ} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\Omega}{Ώ} \DeclareTextCompositeCommand{\accdialytikatonos}{\UnicodeEncodingName}{\iota}{ΐ} \DeclareTextCompositeCommand{\"}{\UnicodeEncodingName}{\Iota}{Ϊ} \DeclareTextCompositeCommand{\"}{\UnicodeEncodingName}{\Upsilon}{Ϋ} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\alpha}{ά} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\epsilon}{έ} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\eta}{ή} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\iota}{ί} \DeclareTextCompositeCommand{\accdialytikatonos}{\UnicodeEncodingName}{\upsilon}{ΰ} \DeclareTextCompositeCommand{\"}{\UnicodeEncodingName}{\iota}{ϊ} \DeclareTextCompositeCommand{\"}{\UnicodeEncodingName}{\upsilon}{ϋ} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\omicron}{ό} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\upsilon}{ύ} \DeclareTextCompositeCommand{\'}{\UnicodeEncodingName}{\omega}{ώ}
Greek Extended
Postfix ypogegrammeni cannot be second part of composite defs.
\DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\alpha}{ἀ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\alpha}{ἁ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\alpha}{ἂ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\alpha}{ἃ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\alpha}{ἄ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\alpha}{ἅ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\alpha}{ἆ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\alpha}{ἇ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\Alpha}{Ἀ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Alpha}{Ἁ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\Alpha}{Ἂ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Alpha}{Ἃ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\Alpha}{Ἄ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Alpha}{Ἅ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\Alpha}{Ἆ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\Alpha}{Ἇ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\epsilon}{ἐ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\epsilon}{ἑ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\epsilon}{ἒ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\epsilon}{ἓ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\epsilon}{ἔ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\epsilon}{ἕ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\Epsilon}{Ἐ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Epsilon}{Ἑ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\Epsilon}{Ἒ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Epsilon}{Ἓ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\Epsilon}{Ἔ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Epsilon}{Ἕ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\eta}{ἠ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\eta}{ἡ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\eta}{ἢ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\eta}{ἣ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\eta}{ἤ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\eta}{ἥ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\eta}{ἦ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\eta}{ἧ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\Eta}{Ἠ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Eta}{Ἡ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\Eta}{Ἢ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Eta}{Ἣ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\Eta}{Ἤ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Eta}{Ἥ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\Eta}{Ἦ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\Eta}{Ἧ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\iota}{ἰ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\iota}{ἱ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\iota}{ἲ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\iota}{ἳ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\iota}{ἴ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\iota}{ἵ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\iota}{ἶ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\iota}{ἷ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\Iota}{Ἰ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Iota}{Ἱ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\Iota}{Ἲ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Iota}{Ἳ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\Iota}{Ἴ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Iota}{Ἵ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\Iota}{Ἶ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\Iota}{Ἷ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\omicron}{ὀ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\omicron}{ὁ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\omicron}{ὂ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\omicron}{ὃ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\omicron}{ὄ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\omicron}{ὅ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\Omicron}{Ὀ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Omicron}{Ὁ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\Omicron}{Ὂ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Omicron}{Ὃ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\Omicron}{Ὄ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Omicron}{Ὅ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\upsilon}{ὐ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\upsilon}{ὑ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\upsilon}{ὒ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\upsilon}{ὓ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\upsilon}{ὔ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\upsilon}{ὕ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\upsilon}{ὖ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\upsilon}{ὗ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Upsilon}{Ὑ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Upsilon}{Ὓ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Upsilon}{Ὕ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\Upsilon}{Ὗ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\omega}{ὠ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\omega}{ὡ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\omega}{ὢ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\omega}{ὣ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\omega}{ὤ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\omega}{ὥ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\omega}{ὦ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\omega}{ὧ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\Omega}{Ὠ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Omega}{Ὡ} \DeclareTextCompositeCommand{\accpsilivaria}{\UnicodeEncodingName}{\Omega}{Ὢ} \DeclareTextCompositeCommand{\accdasiavaria}{\UnicodeEncodingName}{\Omega}{Ὣ} \DeclareTextCompositeCommand{\accpsilioxia}{\UnicodeEncodingName}{\Omega}{Ὤ} \DeclareTextCompositeCommand{\accdasiaoxia}{\UnicodeEncodingName}{\Omega}{Ὥ} \DeclareTextCompositeCommand{\accpsiliperispomeni}{\UnicodeEncodingName}{\Omega}{Ὦ} \DeclareTextCompositeCommand{\accdasiaperispomeni}{\UnicodeEncodingName}{\Omega}{Ὧ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\alpha}{ὰ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\epsilon}{ὲ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\eta}{ὴ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\iota}{ὶ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\omicron}{ὸ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\upsilon}{ὺ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\omega}{ὼ} \DeclareTextCompositeCommand{\u}{\UnicodeEncodingName}{\alpha}{ᾰ} \DeclareTextCompositeCommand{\=}{\UnicodeEncodingName}{\alpha}{ᾱ} \DeclareTextCompositeCommand{\~}{\UnicodeEncodingName}{\alpha}{ᾶ} \DeclareTextCompositeCommand{\accperispomeni}{\UnicodeEncodingName}{\alpha}{ᾶ} \DeclareTextCompositeCommand{\u}{\UnicodeEncodingName}{\Alpha}{Ᾰ} \DeclareTextCompositeCommand{\=}{\UnicodeEncodingName}{\Alpha}{Ᾱ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Alpha}{Ὰ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Alpha}{Ὰ} \DeclareTextCompositeCommand{\~}{\UnicodeEncodingName}{\eta}{ῆ} \DeclareTextCompositeCommand{\accperispomeni}{\UnicodeEncodingName}{\eta}{ῆ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Epsilon}{Ὲ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Eta}{Ὴ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Epsilon}{Ὲ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Eta}{Ὴ} \DeclareTextCompositeCommand{\u}{\UnicodeEncodingName}{\iota}{ῐ} \DeclareTextCompositeCommand{\=}{\UnicodeEncodingName}{\iota}{ῑ} \DeclareTextCompositeCommand{\accdialytikavaria}{\UnicodeEncodingName}{\iota}{ῒ} \DeclareTextCompositeCommand{\accdialytikatonos}{\UnicodeEncodingName}{\iota}{ΐ} \DeclareTextCompositeCommand{\~}{\UnicodeEncodingName}{\iota}{ῖ} \DeclareTextCompositeCommand{\accperispomeni}{\UnicodeEncodingName}{\iota}{ῖ} \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\UnicodeEncodingName}{\iota}{ῗ} \DeclareTextCompositeCommand{\u}{\UnicodeEncodingName}{\Iota}{Ῐ} \DeclareTextCompositeCommand{\=}{\UnicodeEncodingName}{\Iota}{Ῑ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Iota}{Ὶ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Iota}{Ὶ} \DeclareTextCompositeCommand{\u}{\UnicodeEncodingName}{\upsilon}{ῠ} \DeclareTextCompositeCommand{\=}{\UnicodeEncodingName}{\upsilon}{ῡ} \DeclareTextCompositeCommand{\accdialytikavaria}{\UnicodeEncodingName}{\upsilon}{ῢ} \DeclareTextCompositeCommand{\accdialytikatonos}{\UnicodeEncodingName}{\upsilon}{ΰ} \DeclareTextCompositeCommand{\accpsili}{\UnicodeEncodingName}{\rho}{ῤ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\rho}{ῥ} \DeclareTextCompositeCommand{\~}{\UnicodeEncodingName}{\upsilon}{ῦ} \DeclareTextCompositeCommand{\accperispomeni}{\UnicodeEncodingName}{\upsilon}{ῦ} \DeclareTextCompositeCommand{\accdialytikaperispomeni}{\UnicodeEncodingName}{\upsilon}{ῧ} \DeclareTextCompositeCommand{\u}{\UnicodeEncodingName}{\Upsilon}{Ῠ} \DeclareTextCompositeCommand{\=}{\UnicodeEncodingName}{\Upsilon}{Ῡ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Upsilon}{Ὺ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Upsilon}{Ὺ} \DeclareTextCompositeCommand{\accdasia}{\UnicodeEncodingName}{\Rho}{Ῥ} \DeclareTextCompositeCommand{\~}{\UnicodeEncodingName}{\omega}{ῶ} \DeclareTextCompositeCommand{\accperispomeni}{\UnicodeEncodingName}{\omega}{ῶ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Omicron}{Ὸ} \DeclareTextCompositeCommand{\`}{\UnicodeEncodingName}{\Omega}{Ὼ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Omicron}{Ὸ} \DeclareTextCompositeCommand{\accvaria}{\UnicodeEncodingName}{\Omega}{Ὼ}