From 83583b57e8624e227242b9bc763bbe6e389280ed Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 29 Nov 2013 22:11:02 +0000 Subject: greek-fontenc (29nov13) git-svn-id: svn://tug.org/texlive/trunk@32276 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/greek-fontenc/README | 60 +- .../texmf-dist/doc/latex/greek-fontenc/README.html | 84 ++- .../latex/greek-fontenc/alphabeta-euenc.def.txt | 304 ++++++++++ .../doc/latex/greek-fontenc/alphabeta-test.pdf | Bin 55750 -> 56226 bytes .../doc/latex/greek-fontenc/alphabeta-test.tex | 30 +- .../doc/latex/greek-fontenc/diacritics.pdf | Bin 255988 -> 97764 bytes .../doc/latex/greek-fontenc/diacritics.tex | 17 +- .../doc/latex/greek-fontenc/euenc-test.pdf | Bin 0 -> 67373 bytes .../doc/latex/greek-fontenc/euenc-test.tex | 663 +++++++++++++++++++++ .../doc/latex/greek-fontenc/greek-fontenc.def.html | 24 +- .../doc/latex/greek-fontenc/greekhyperref.pdf | Bin 217608 -> 221203 bytes .../doc/latex/greek-fontenc/lgrenc-test.pdf | Bin 284966 -> 126797 bytes .../doc/latex/greek-fontenc/lgrenc-test.tex | 22 +- .../doc/latex/greek-fontenc/test-euenc.pdf | Bin 60527 -> 0 bytes .../doc/latex/greek-fontenc/test-euenc.tex | 613 ------------------- .../doc/latex/greek-fontenc/textalpha-test.pdf | Bin 330012 -> 59863 bytes .../doc/latex/greek-fontenc/textalpha-test.tex | 15 +- .../doc/latex/greek-fontenc/textalpha.sty.html | 184 +++--- 18 files changed, 1235 insertions(+), 781 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.txt create mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.pdf create mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/euenc-test.tex delete mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf delete mode 100644 Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex (limited to 'Master/texmf-dist/doc/latex/greek-fontenc') diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README b/Master/texmf-dist/doc/latex/greek-fontenc/README index 552bc52248c..fa84ec05db8 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README @@ -4,7 +4,7 @@ Greek font encoding definition files ************************************ :Author: Günter Milde -:Date: 2013-09-10 +:Date: 2013-10-01 :Copyright: © 2013 Günter Milde :Licence: This work may be distributed and/or modified under the conditions of the `LaTeX Project Public License`_, either @@ -39,10 +39,11 @@ News updated to work with XeTeX/LuaTeX. .. greek-fontenc.sty removed (obsoleted by textalpha.sty). 2013-10-01 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. ========== ====== ========================================================== - LaTeX files =========== @@ -67,7 +68,11 @@ LaTeX files `Composite defintions for alphabeta.sty_ with XeTeX/LuaTeX. `_ -Literate source files were converted with PyLit_ to reStructuredText and +``_ + `Greek LICR definitions for XeTeX and LuaTeX `_. + Requires euenc_. + +Literate source files were converted with PyLit_ to reStructuredText_ and with Docutils_ to the HTML documentation. @@ -83,6 +88,11 @@ Documentation and test documents ``_, ``_ Test and usage example. +``_, ``_ + Example for use of the experimental Greek LICR definitions with XeTeX or + LuaTeX. + + ``_, ``_ `Greek script in PDF metadata`. @@ -95,14 +105,6 @@ Experimental files These files are still in development and will eventually be moved to/merged with other packages or removed in future versions: -``_ - `Greek LICR definitions for XeTeX and LuaTeX `_. - Requires euenc_. - -``_ - Example for use of the experimental Greek LICR definitions with XeTeX or - LuaTeX. - ``_ `LGR Transcription to Greek LICR transformation `_ @@ -125,31 +127,42 @@ Otherwise, make sure LaTeX can find the package and definition files: Usage ===== -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 ``_ and ``_ (8-bit -TeX) as well as ``_ and ``_ (XeTeX/LuaTeX). + For details see ``_ and ``_ (8-bit + TeX) as well as ``_ and ``_ + (XeTeX/LuaTeX). -To use the established macro names (``\alpha`` ... ``\Omega``) in text and -math mode, write :: +* To use the short macro names (``\alpha`` ... ``\Omega``) known from math + mode in both, text and math mode, write :: \usepackage{alphabeta} -For details see ``_ and ``_. + For details see ``_ and ``_. -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[LGR,T1]{fontenc} + \usepackage[greek]{babel} -In this case, using Greek text macros without explicite font switch will -lead to errors. +* Declare LGR via fontenc_. For example, specify T1 (8-bit + Latin) as default font encoding and LGR for Greek with :: -See [fntguide]_ for details and ``_ for an example. + \usepackage[LGR,T1]{fontenc} + Note that without ``textalpha`` or ``alphabeta``, Greek text macros work + only if the current font encoding supports Greek. See [fntguide]_ for + details and ``_ 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 ``_ -> ``_ and + ``_ -> ``_. Greek text font encodings ========================= @@ -381,6 +394,7 @@ as-is). .. _GFS font collection: http://www.ctan.org/pkg/gfs .. _Kerkis: http://www.ctan.org/pkg/kerkis .. _babel: http://www.ctan.org/pkg/babel +.. _babel-greek: http://www.ctan.org/pkg/babel-greek .. _euenc: http://www.ctan.org/pkg/euenc .. _fontenc: http://www.ctan.org/pkg/fontenc .. _grtimes: http://www.ctan.org/pkg/grtimes diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README.html b/Master/texmf-dist/doc/latex/greek-fontenc/README.html index 7fe732243e7..4f48d45d1c5 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README.html @@ -6,7 +6,7 @@ greek-fontenc - + @@ -20,7 +20,7 @@
Author
Günter Milde
Date
-
2013-09-10
+
2013-10-01
Licence
@@ -101,6 +101,15 @@ updated to work with XeTeX/LuaTeX.

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.

+ @@ -126,8 +135,12 @@ independent of font encoding and TeX engine.

alphabeta-euenc.def

Composite defintions for alphabeta.sty_ with XeTeX/LuaTeX.

+
greek-euenc.def
+

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.

@@ -142,6 +155,10 @@ with lgrenc-test.tex, lgrenc-test.pdf

Test and usage example.

+
euenc-test.tex, euenc-test.pdf
+

Example for use of the experimental Greek LICR definitions with XeTeX or +LuaTeX.

+
greekhyperref.tex, greekhyperref.pdf

Greek script in PDF metadata.

The package hyperref defines the PU font encoding which also supports @@ -154,14 +171,6 @@ with -

greek-euenc.def
-

Greek LICR definitions for XeTeX and LuaTeX. -Requires euenc.

-
-
test-euenc.tex
-

Example for use of the experimental Greek LICR definitions with XeTeX or -LuaTeX.

-
lgr2licr.lua

LGR Transcription to Greek LICR transformation

@@ -181,23 +190,40 @@ directory (e.g. for testing).

Usage

-

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.

  • +

Greek text font encodings

@@ -206,7 +232,7 @@ Greek letters and symbols are also defined in the Unicode-based font encodings EU1 (XeTeX), EU2 (LuaTeX) and PU (hyperref).

T7

-

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).

LGI

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 uc

Aliases 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).

-
[fntguide]
+
[fntguide]

LaTeX3 Project Team, LaTeX2ε font selection, 2005. http://mirror.ctan.org/macros/latex/doc/fntguide.pdf

-
[encguide]
+
[encguide]

Frank Mittelbach, Robin Fairbairns, Werner Lemberg, LaTeX3 Project Team, LaTeX font encodings, 2006. http://mirror.ctan.org/macros/latex/doc/encguide.pdf

-
[greek-usage]
+
[greek-usage]

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

-
[cbfonts]
+
[cbfonts]

Claudio Beccari, The CB Greek fonts, Εὔτυπον, τεῦχος № 21, 2008. http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf

-
[teubner-doc]
+
[teubner-doc]

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

-
[babel-patch]
+
[babel-patch]

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\α +\accdasia α \<α + + +Please mail a feature request if there is demand for definitions selecting +precomposed characters. +As proof of concept, this document defines a composite command for +alpha with psili and perispomeni. Compare \<~α with \>~α. + + + +Composite commands for combined diacritics are defined in +“greek-fontenc.def”, also for the \verb|\LastDeclaredEncoding|. There are +composite definitions for all precomposed characters, the fallback +definition uses combining characters: + +\accdialytikatonos\textiota{} \"'\textiota{} \"\'\textiota{} +\accdialytikatonos x \"'x \"\'x +\accdialytikavaria\textiota{} \"`\textiota{} \"\`\textiota{} +\accdialytikavaria x \"`x \"\`x +\accdialytikaperispomeni\textiota{} \~"\textiota{} \~\"\textiota{} +\accdialytikaperispomeni x \~"x \~\"x + +\accdasiaoxia\textiota{} \<'\textiota{} \<\'\textiota{} +\accdasiaoxia x \<'x \<\'x +\accdasiavaria\textiota{} \<`\textiota{} \<\`\textiota{} +\accdasiavaria x \<`x \<\`x +\accdasiaperispomeni\textiota{} \~<\textiota{} \~\<\textiota{} +\accdasiaperispomeni x \~'\textiota{} \>\'\textiota{} +\accpsilioxia x \>'x \>\'x +\accpsilivaria\textiota{} \>`\textiota{} \>\`\textiota{} +\accpsilivaria x \>`x \>\`x +\accpsiliperispomeni\textiota{} \~>\textiota{} \~\>\textiota{} +\accpsiliperispomeni x \~>x \~\>x + +Problems: Composite diacritics with breathings overlap when set using two +combining characters (in the tested fonts). + + +Upcasing with \verb|\MakeUppercase| drops diacritics (except +dialytika and sub-iota): + +\MakeUppercase{ +\accdialytikatonos\textiota \"'\textiota{} \accdialytikatonos x \"'x +\accdialytikavaria\textiota \"`\textiota{} \accdialytikavaria x \"`x +\accdialytikaperispomeni\textiota \~"\textiota{} \accdialytikaperispomeni x \~"x +} + +\MakeUppercase{ +\accdasiaoxia\textiota \<'\textiota{} \accdasiaoxia x \<'x +\accdasiavaria\textiota \<`\textiota{} \accdasiavaria x \<`x +\accdasiaperispomeni\textiota \~<\textiota{} \accdasiaperispomeni x \~'\textiota{} \accpsilioxia x \>'x +\accpsilivaria\textiota \>`\textiota{} \accpsilivaria x \>`x +\accpsiliperispomeni\textiota \~>\textiota{} \accpsiliperispomeni x \~>x +} + + +However, when the tonos, varia, and perispomeni accents are input using the +symbol macros (\verb|\' \` \~|), they behave like standard accents with +XeTeX/LuaTeX. If these accents should be dropped by MakeUppercase, they must +be input as named macro: + +\MakeUppercase{ +\acctonos\textalpha \'\textalpha{} \acctonos x\'x +\accvaria\textalpha \`\textalpha{} \accvaria x\`x +\accperispomeni\textalpha \~\textalpha{} \accperispomeni x\~x +} + + +The sub-iota is input after the base letter. +Ligature definitions in the 8-bit LGR fonts ensure that precomposed +characters are used. This does not work with Unicode fonts:\footnote{% + When copy/pasting generated output from the “evince” PDF + viewer, the COMBINING GREEK YPOGEGRAMMENI is merged with the base + character. A capital letter + combining ypogegrammeni results in GREEK + CAPITAL LETTER ... WITH [.. AND] PROSGEGRAMMENI). This indicates that for + a subfix (in contrast to post-fix) prosgegrammeni, the combining + \emph{ypogegrammeni} could be used together with a captial base letter.} + +\textalpha\ypogegrammeni{} x\ypogegrammeni{} \textAlpha\prosgegrammeni{} +X\prosgegrammeni, see also the \emph{Greek extended} Unicode block below. + +Both, the standard LaTeX and the “xunicode” composite mechanism require +the first part of a composite definition to be a macro requiring one +argument. I.e. selecting pre-defined characters with sub-iota would require +prefix \verb|\accypogegrammeni| and \verb|\accprosgegrammeni| accent +macros and composite definitions for all combination of letters and letters +with diacritic and sub-iota. + +\subsection{Greek and Coptic Unicode block} + +Greek symbols from the Greek and Coptic Unicode block are fully supported: + +% NR Unicode Name % babel name, UCS name +% 0370 GREEK CAPITAL LETTER HETA % Ͱ +% 0371 GREEK SMALL LETTER HETA % ͱ +% 0372 GREEK CAPITAL LETTER ARCHAIC SAMPI % Ͳ +% 0373 GREEK SMALL LETTER ARCHAIC SAMPI % Ͳ +\textnumeralsigngreek{} % ʹ \anwtonos, \textdexiakeraia +\textnumeralsignlowergreek{} % ͵ \katwtonos, \textaristerikeraia, +% 0376 GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA % Ͷ +% 0377 GREEK SMALL LETTER PAMPHYLIAN DIGAMMA % ͷ + +\textcompwordmark\ypogegrammeni{} % ͺ \textsubiota{\empty} +% 037B GREEK SMALL REVERSED LUNATE SIGMA SYMBOL % +% 037C GREEK SMALL DOTTED LUNATE SIGMA SYMBOL % +% 037D GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL % +\texterotimatiko{} % ; \textquestion + +\acctonos\textcompwordmark{} % ΄ +\"'\textcompwordmark{} % ΅ +\'\textAlpha{} % Ά +\textanoteleia{} % · \anoteleia +\'\textEpsilon{} % Έ +\'\textEta{} % Ή +\'\textIota{} % Ί +\'\textOmicron{} % Ό +\'\textUpsilon{} % Ύ +\'\textOmega{} % Ώ +\'"\textiota{} % ΐ + +\textAlpha{} % Α +\textBeta{} % Β +\textGamma{} % Γ +\textDelta{} % Δ +\textEpsilon{} % Ε +\textZeta{} % Ζ +\textEta{} % Η +\textTheta{} % Θ +\textIota{} % Ι +\textKappa{} % Κ +\textLambda{} % Λ +\textMu{} % Μ +\textNu{} % Ν +\textXi{} % Ξ +\textOmicron{} % Ο +\textPi{} % Π +\textRho{} % Ρ +\textSigma{} % Σ +\textTau{} % Τ +\textUpsilon{} % Υ +\textPhi{} % Φ +\textChi{} % Χ +\textPsi{} % Ψ +\textOmega{} % Ω + +\"\textIota{} % Ϊ +\"\textUpsilon{} % Ϋ +\'\textalpha{} % ά +\'\textepsilon{} % έ +\'\texteta{} % ή +\'\textiota{} % ί +\"'\textupsilon{} % ΰ + +\textalpha{} % α +\textbeta{} % β +\textgamma{} % γ +\textdelta{} % δ +\textepsilon{} % ε +\textzeta{} % ζ +\texteta{} % η +\texttheta{} % θ +\textiota{} % ι +\textkappa{} % κ +\textlambda{} % λ +\textmu{} % μ \textmugreek +\textnu{} % ν +\textxi{} % ξ +\textomicron{} % ο +\textpi{} % π +\textrho{} % ρ +\textvarsigma{} % ς +\textsigma{} % σ +\texttau{} % τ +\textupsilon{} % υ +\textphi{} % φ +\textchi{} % χ +\textpsi{} % ψ +\textomega{} % ω + +\"\textiota{} % ϊ +\"\textupsilon{} % ϋ +\'\textomicron{} % ό +\'\textupsilon{} % ύ +\'\textomega{} % ώ + +\textQoppa{} % Ϙ +\textqoppa{} % ϙ +\textStigma{} % Ϛ \Stigma +\textstigma{} % ϛ \stigma +\textDigamma{} % Ϝ \Digamma +\textdigamma{} % ϝ \ddigamma +%03DE GREEK LETTER KOPPA % Ϟ \textKoppagreek +\textkoppa{} % ϟ \koppa, \textqoppa [sic!] +\textSampi{} % Ϡ \Sampi +\textsampi{} % ϡ \sampi + + +\subsection{Greek Extended Unicode block} + +Characters from the Greek Extended Unicode block are only partially +supported, accented characters with sub-iota currently use a combining +prosgegrammeni or ypogegrammeni character. + +For comparision, the LICR macro is followed by the corresponding literal +Unicode character: + +\>\textalpha ἀ +\<\textalpha ἁ +\>`\textalpha ἂ +\<`\textalpha ἃ +\>'\textalpha ἄ +\<'\textalpha ἅ +\~>\textalpha ἆ +\~<\textalpha ἇ +\>\textAlpha Ἀ +\<\textAlpha Ἁ +\>`\textAlpha Ἂ +\<`\textAlpha Ἃ +\>'\textAlpha Ἄ +\<'\textAlpha Ἅ +\~>\textAlpha Ἆ +\~<\textAlpha Ἇ + +\>\textepsilon ἐ +\<\textepsilon ἑ +\>`\textepsilon ἒ +\<`\textepsilon ἓ +\>'\textepsilon ἔ +\<'\textepsilon ἕ +\>\textEpsilon Ἐ +\<\textEpsilon Ἑ +\>`\textEpsilon Ἒ +\<`\textEpsilon Ἓ +\>'\textEpsilon Ἔ +\<'\textEpsilon Ἕ + +\>\texteta ἠ +\<\texteta ἡ +\>`\texteta ἢ +\<`\texteta ἣ +\>'\texteta ἤ +\<'\texteta ἥ +\~>\texteta ἦ +\~<\texteta ἧ +\>\textEta Ἠ +\<\textEta Ἡ +\>`\textEta Ἢ +\<`\textEta Ἣ +\>'\textEta Ἤ +\<'\textEta Ἥ +\~>\textEta Ἦ +\~<\textEta Ἧ + +\>\textiota ἰ +\<\textiota ἱ +\>`\textiota ἲ +\<`\textiota ἳ +\>'\textiota ἴ +\<'\textiota ἵ +\~>\textiota ἶ +\~<\textiota ἷ +\>\textIota Ἰ +\<\textIota Ἱ +\>`\textIota Ἲ +\<`\textIota Ἳ +\>'\textIota Ἴ +\<'\textIota Ἵ +\~>\textIota Ἶ +\~<\textIota Ἷ + +\>\textomicron ὀ +\<\textomicron ὁ +\>`\textomicron ὂ +\<`\textomicron ὃ +\>'\textomicron ὄ +\<'\textomicron ὅ +\>\textOmicron Ὀ +\<\textOmicron Ὁ +\>`\textOmicron Ὂ +\<`\textOmicron Ὃ +\>'\textOmicron Ὄ +\<'\textOmicron Ὅ + +\>\textupsilon ὐ +\<\textupsilon ὑ +\>`\textupsilon ὒ +\<`\textupsilon ὓ +\>'\textupsilon ὔ +\<'\textupsilon ὕ +\~>\textupsilon ὖ +\~<\textupsilon ὗ +\<\textUpsilon Ὑ +\<`\textUpsilon Ὓ +\<'\textUpsilon Ὕ +\~<\textUpsilon Ὗ + +\>\textomega ὠ +\<\textomega ὡ +\>`\textomega ὢ +\<`\textomega ὣ +\>'\textomega ὤ +\<'\textomega ὥ +\~>\textomega ὦ +\~<\textomega ὧ +\>\textOmega Ὠ +\<\textOmega Ὡ +\>`\textOmega Ὢ +\<`\textOmega Ὣ +\>'\textOmega Ὤ +\<'\textOmega Ὥ +\~>\textOmega Ὦ +\~<\textOmega Ὧ + +\`\textalpha ὰ +\'\textalpha ά +\`\textepsilon ὲ +\'\textepsilon έ +\`\texteta ὴ +\'\texteta ή +\`\textiota ὶ +\'\textiota ί +\`\textomicron ὸ +\'\textomicron ό +\`\textupsilon ὺ +\'\textupsilon ύ +\`\textomega ὼ +\'\textomega ώ + +\>\textalpha\ypogegrammeni ᾀ +\<\textalpha\ypogegrammeni ᾁ +\>`\textalpha\ypogegrammeni ᾂ +\<`\textalpha\ypogegrammeni ᾃ +\>'\textalpha\ypogegrammeni ᾄ +\<'\textalpha\ypogegrammeni ᾅ +\~>\textalpha\ypogegrammeni ᾆ +\~<\textalpha\ypogegrammeni ᾇ +\>\textAlpha\prosgegrammeni ᾈ +\<\textAlpha\prosgegrammeni ᾉ +\>`\textAlpha\prosgegrammeni ᾊ +\<`\textAlpha\prosgegrammeni ᾋ +\>'\textAlpha\prosgegrammeni ᾌ +\<'\textAlpha\prosgegrammeni ᾍ +\~>\textAlpha\prosgegrammeni ᾎ +\~<\textAlpha\prosgegrammeni ᾏ + +\>\texteta\ypogegrammeni ᾐ +\<\texteta\ypogegrammeni ᾑ +\>`\texteta\ypogegrammeni ᾒ +\<`\texteta\ypogegrammeni ᾓ +\>'\texteta\ypogegrammeni ᾔ +\<'\texteta\ypogegrammeni ᾕ +\~>\texteta\ypogegrammeni ᾖ +\~<\texteta\ypogegrammeni ᾗ +\>\textEta\prosgegrammeni ᾘ +\<\textEta\prosgegrammeni ᾙ +\>`\textEta\prosgegrammeni ᾚ +\<`\textEta\prosgegrammeni ᾛ +\>'\textEta\prosgegrammeni ᾜ +\<'\textEta\prosgegrammeni ᾝ +\~>\textEta\prosgegrammeni ᾞ +\~<\textEta\prosgegrammeni ᾟ + +\>\textomega\ypogegrammeni ᾠ +\<\textomega\ypogegrammeni ᾡ +\>`\textomega\ypogegrammeni ᾢ +\<`\textomega\ypogegrammeni ᾣ +\>'\textomega\ypogegrammeni ᾤ +\<'\textomega\ypogegrammeni ᾥ +\~>\textomega\ypogegrammeni ᾦ +\~<\textomega\ypogegrammeni ᾧ +\>\textOmega\prosgegrammeni ᾨ +\<\textOmega\prosgegrammeni ᾩ +\>`\textOmega\prosgegrammeni ᾪ +\<`\textOmega\prosgegrammeni ᾫ +\>'\textOmega\prosgegrammeni ᾬ +\<'\textOmega\prosgegrammeni ᾭ +\~>\textOmega\prosgegrammeni ᾮ +\~<\textOmega\prosgegrammeni ᾯ + +\u\textalpha ᾰ +\=\textalpha ᾱ +\`\textalpha\ypogegrammeni ᾲ +\textalpha\ypogegrammeni ᾳ +\'\textalpha\ypogegrammeni ᾴ +\~\textalpha ᾶ +\~\textalpha\ypogegrammeni ᾷ +\u\textAlpha Ᾰ +\=\textAlpha Ᾱ +\`\textAlpha Ὰ +\'\textAlpha Ά +\textAlpha\prosgegrammeni ᾼ +\>\textcompwordmark ᾽ +\textcompwordmark\prosgegrammeni ι +\>\textcompwordmark ᾿ + +\accperispomeni\textcompwordmark ῀ +\"\~\textcompwordmark ῁ +\`\texteta\ypogegrammeni ῂ +\texteta\ypogegrammeni ῃ +\'\texteta\ypogegrammeni ῄ +\~\texteta ῆ +\~\texteta\ypogegrammeni ῇ +\`\textEpsilon Ὲ +\'\textEpsilon Έ +\`\textEta Ὴ +\'\textEta Ή +\textEta\prosgegrammeni ῌ +\>`\textcompwordmark ῍ +\>'\textcompwordmark ῎ +\~>\textcompwordmark ῏ + +\u\textiota ῐ +\=\textiota ῑ +\`"\textiota ῒ +\'"\textiota ΐ +\~\textiota ῖ +\~"\textiota ῗ +\u\textIota Ῐ +\=\textIota Ῑ +\`\textIota Ὶ +\'\textIota Ί +\<`\textcompwordmark ῝ +\>'\textcompwordmark ῞ +\~<\textcompwordmark ῟ + +\u\textupsilon ῠ +\=\textupsilon ῡ +\`"\textupsilon ῢ +\'"\textupsilon ΰ +\>\textrho ῤ +\<\textrho ῥ +\~\textupsilon ῦ +\~"\textupsilon ῧ +\u\textUpsilon Ῠ +\=\textUpsilon Ῡ +\`\textUpsilon Ὺ +\'\textUpsilon Ύ +\<\textRho Ῥ +\`"\textcompwordmark ῭ +\'"\textcompwordmark ΅ +\accvaria\textcompwordmark ` + +\`\textomega\ypogegrammeni ῲ +\textomega\ypogegrammeni ῳ +\'\textomega\ypogegrammeni ῴ +\~\textomega ῶ +\~\textomega\ypogegrammeni ῷ +\`\textOmicron Ὸ +\'\textOmicron Ό +\`\textOmega Ὼ +\'\textOmega Ώ +\textOmega\prosgegrammeni ῼ +\accoxia\textcompwordmark ´ +\<\textcompwordmark ῾ + +Ancient Greek Numbers are missing in most fonts (including Libertine and +Deja Vu). The “FreeSerif” font works fine. + +\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY +\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND + +If the LGR font encoding is loaded via «fontenc» in the document preamble, +Ancient Greek Numbers (as well as any other character) from LGR encoded +8-bit TeX fonts can be used after a font-encoding switch. babel-greek +defines the \verb|\textgreek| command for this purpose: + +\providecommand*{\textgreek}[1]{\leavevmode{% + \fontfamily{cmr}\fontencoding{LGR}\selectfont#1}% +} + +\textgreek{ +\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY +\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +} + +\section{Latin transcription} + +The \verb|\textgreek| macro and LGR encoded fonts can also be used for the +input of Greek letters via the \emph{Latin transcription} provided by this +font encoding, e.g. «logos» becomes «\textgreek{logos}» +and «\verb|\>aupn\'ia|» +becomes «\textgreek{\>aupn\'ia}» (capitalized +«\textgreek{\MakeUppercase{\>aupn\'ia}}»). For details of the Latin +transliteration see the teubner package or the file usage.pdf from the +babel-greek package. + +Mark, that you cannot use Unicode input with LGR encoded fonts except when +running in 8-bit compatibility mode because of the incompatibility between +Xe/LuaTeX and the inputenc package. + +LICR macros work in both, Unicode font encoding and LGR: compare +\>\textIota\textalpha\textnu\textomicron\textupsilon\textalpha +\textrho\acctonos\textiota\textomicron\textupsilon{} (Unicode font set up +via fontspec) vs. +\textgreek{\>\textIota\textalpha\textnu\textomicron\textupsilon\textalpha + \textrho\acctonos\textiota\textomicron\textupsilon} +(LGR-encoded 8-bit font set up via NFSS commands, see \emph{The LaTeX font +guide} [fntguide.pdf]). + +\end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html index 78e5e52f5f7..7f2dfe2f70c 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.def.html @@ -3,7 +3,7 @@ - + greek-fontenc.def @@ -45,6 +45,10 @@ font encodings providing Greek characters.

2013-07-17

composite definitions starting with standard accent cmds

+

0.11

+

2013-11-28

+

\greekscript TextCommand

+
@@ -68,17 +72,25 @@ font encoding.

Identification

\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]
 
-
-

Ensuregreek

-

The \ensuregreek command can be used to ensure that its argument is set +

+

ensuregreek, greekscript

+

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}{}
 
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf index a49d6697873..4d1ef3dd3b4 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/greekhyperref.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf index 35d3e750ff9..986893e1e18 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex index e569e6cdc5d..619a130003e 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex @@ -1,5 +1,4 @@ \documentclass{article} -\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader % Test with various LGR-encoded fonts: \usepackage% @@ -20,15 +19,26 @@ \usepackage{textcomp} \usepackage[LGR,T1]{fontenc} -\usepackage[utf8]{inputenc} +% With XeTeX/LuaTeX, use Unicode for Latin script: +\ifdefined\luatexversion \usepackage{fontspec}\else + \ifdefined\XeTeXrevision \usepackage{fontspec}\else + \usepackage[utf8]{inputenc} + \fi +\fi +% This is experimental. The general advise is not to mix fontenc and fontspec. +% One problem is that xunicode makes \nobreakspace font encoding specific +% We provide a default: +\DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ } + +% PDF hyperlinks: \usepackage[pdfencoding=auto]{hyperref} +\usepackage{bookmark} +\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,pdfencoding=auto} +% font encoding switch declarations: \newcommand{\LGR}{\fontencoding{LGR}\selectfont} -\newcommand{\Latin}{\fontencoding{T1}\selectfont} -\DeclareTextCommandDefault{\ensuregreek}[1]{{\fontencoding{LGR}\selectfont #1}} +\newcommand{\Latin}{\fontencoding{\encodingdefault}\selectfont} -% \pagestyle{empty} -% ------------------------------------------------------------------------- \begin{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf deleted file mode 100644 index a16a92e3c3a..00000000000 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex deleted file mode 100644 index e4b7fac6066..00000000000 --- a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex +++ /dev/null @@ -1,613 +0,0 @@ -\documentclass[a4paper]{article} -% \usepackage{textcomp} -% \usepackage{hyperref,bookmark} -\usepackage{parskip} -% \usepackage{booktabs} - -\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} - -\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\α -\accdasia α \<α - -Composite commands for combined diacritics are defined in -“greek-fontenc.def”, also for the \verb|\LastDeclaredEncoding|. There are -composite definitions for all pre-composed characters, the fallback -definition uses combining characters: - -\accdialytikatonos\textiota{} \"'\textiota{} \"\'\textiota{} -\accdialytikatonos x \"'x \"\'x -\accdialytikavaria\textiota{} \"`\textiota{} \"\`\textiota{} -\accdialytikavaria x \"`x \"\`x -\accdialytikaperispomeni\textiota{} \~"\textiota{} \~\"\textiota{} -\accdialytikaperispomeni x \~"x \~\"x - -\accdasiaoxia\textiota{} \<'\textiota{} \<\'\textiota{} -\accdasiaoxia x \<'x \<\'x -\accdasiavaria\textiota{} \<`\textiota{} \<\`\textiota{} -\accdasiavaria x \<`x \<\`x -\accdasiaperispomeni\textiota{} \~<\textiota{} \~\<\textiota{} -\accdasiaperispomeni x \~'\textiota{} \>\'\textiota{} -\accpsilioxia x \>'x \>\'x -\accpsilivaria\textiota{} \>`\textiota{} \>\`\textiota{} -\accpsilivaria x \>`x \>\`x -\accpsiliperispomeni\textiota{} \~>\textiota{} \~\>\textiota{} -\accpsiliperispomeni x \~>x \~\>x - -Problems: Composite diacritics with breathings overlap when set using two -combining characters (in the tested fonts). - - -Upcasing with \verb|\MakeUppercase| drops diacritics (except -dialytika and sub-iota): - -\MakeUppercase{ -\accdialytikatonos\textiota \"'\textiota{} \accdialytikatonos x \"'x -\accdialytikavaria\textiota \"`\textiota{} \accdialytikavaria x \"`x -\accdialytikaperispomeni\textiota \~"\textiota{} \accdialytikaperispomeni x \~"x -} - -\MakeUppercase{ -\accdasiaoxia\textiota \<'\textiota{} \accdasiaoxia x \<'x -\accdasiavaria\textiota \<`\textiota{} \accdasiavaria x \<`x -\accdasiaperispomeni\textiota \~<\textiota{} \accdasiaperispomeni x \~'\textiota{} \accpsilioxia x \>'x -\accpsilivaria\textiota \>`\textiota{} \accpsilivaria x \>`x -\accpsiliperispomeni\textiota \~>\textiota{} \accpsiliperispomeni x \~>x -} - - -However, when the tonos, varia, and perispomeni accents are input as symbols -(\verb|\' \` \~|) they behave like standard accents with XeTeX/LuaTeX. If -these accents should be dropped by MakeUppercase, they must be input as -named macro: - -\MakeUppercase{ -\acctonos\textalpha \'\textalpha{} \acctonos x\'x -\accvaria\textalpha \`\textalpha{} \accvaria x\`x -\accperispomeni\textalpha \~\textalpha{} \accperispomeni x\~x -} - - -The sub-iota is input after the base letter. -Ligature definitions in the 8-bit LGR fonts ensure that pre-composed -characters are used. This does not work with XeTeX/LuaTeX:\footnote{% - When copy/pasting generated output from the “evince” PDF - viewer, the COMBINING GREEK YPOGEGRAMMENI is merged with the base - character. A capital letter + combining ypogegrammeni results in GREEK - CAPITAL LETTER ... WITH [.. AND] PROSGEGRAMMENI). This indicates that for - a subfix (in contrast to post-fix) prosgegrammeni, the combining - \emph{ypogegrammeni} could be used together with a captial base letter.} - -\textalpha\ypogegrammeni{} x\ypogegrammeni{} \textAlpha\prosgegrammeni{} -X\prosgegrammeni, see also the \emph{Greek extended} Unicode block below. - -Both, the standard LaTeX and the “xunicode” composite mechanism require -the first part of a composite definition to be a macro requiring one -argument. I.e. selecting pre-defined characters with sub-iota would require -prefix \verb|\accypogegrammeni| and \verb|\accprosgegrammeni| accent -macros and composite definitions for all combination of letters and letters -with diacritic and sub-iota. - -\subsection{Greek and Coptic Unicode block} - -Greek symbols from the Greek and Coptic Unicode block are fully supported: - -% NR Unicode Name % babel name, UCS name -% 0370 GREEK CAPITAL LETTER HETA % Ͱ -% 0371 GREEK SMALL LETTER HETA % ͱ -% 0372 GREEK CAPITAL LETTER ARCHAIC SAMPI % Ͳ -% 0373 GREEK SMALL LETTER ARCHAIC SAMPI % Ͳ -\textnumeralsigngreek{} % ʹ \anwtonos, \textdexiakeraia -\textnumeralsignlowergreek{} % ͵ \katwtonos, \textaristerikeraia, -% 0376 GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA % Ͷ -% 0377 GREEK SMALL LETTER PAMPHYLIAN DIGAMMA % ͷ - -\textcompwordmark\ypogegrammeni{} % ͺ \textsubiota{\empty} -% 037B GREEK SMALL REVERSED LUNATE SIGMA SYMBOL % -% 037C GREEK SMALL DOTTED LUNATE SIGMA SYMBOL % -% 037D GREEK SMALL REVERSED DOTTED LUNATE SIGMA SYMBOL % -\texterotimatiko{} % ; \textquestion - -\acctonos\textcompwordmark{} % ΄ -\"'\textcompwordmark{} % ΅ -\'\textAlpha{} % Ά -\textanoteleia{} % · \anoteleia -\'\textEpsilon{} % Έ -\'\textEta{} % Ή -\'\textIota{} % Ί -\'\textOmicron{} % Ό -\'\textUpsilon{} % Ύ -\'\textOmega{} % Ώ -\'"\textiota{} % ΐ - -\textAlpha{} % Α -\textBeta{} % Β -\textGamma{} % Γ -\textDelta{} % Δ -\textEpsilon{} % Ε -\textZeta{} % Ζ -\textEta{} % Η -\textTheta{} % Θ -\textIota{} % Ι -\textKappa{} % Κ -\textLambda{} % Λ -\textMu{} % Μ -\textNu{} % Ν -\textXi{} % Ξ -\textOmicron{} % Ο -\textPi{} % Π -\textRho{} % Ρ -\textSigma{} % Σ -\textTau{} % Τ -\textUpsilon{} % Υ -\textPhi{} % Φ -\textChi{} % Χ -\textPsi{} % Ψ -\textOmega{} % Ω - -\"\textIota{} % Ϊ -\"\textUpsilon{} % Ϋ -\'\textalpha{} % ά -\'\textepsilon{} % έ -\'\texteta{} % ή -\'\textiota{} % ί -\"'\textupsilon{} % ΰ - -\textalpha{} % α -\textbeta{} % β -\textgamma{} % γ -\textdelta{} % δ -\textepsilon{} % ε -\textzeta{} % ζ -\texteta{} % η -\texttheta{} % θ -\textiota{} % ι -\textkappa{} % κ -\textlambda{} % λ -\textmu{} % μ \textmugreek -\textnu{} % ν -\textxi{} % ξ -\textomicron{} % ο -\textpi{} % π -\textrho{} % ρ -\textvarsigma{} % ς -\textsigma{} % σ -\texttau{} % τ -\textupsilon{} % υ -\textphi{} % φ -\textchi{} % χ -\textpsi{} % ψ -\textomega{} % ω - -\"\textiota{} % ϊ -\"\textupsilon{} % ϋ -\'\textomicron{} % ό -\'\textupsilon{} % ύ -\'\textomega{} % ώ - -\textQoppa{} % Ϙ -\textqoppa{} % ϙ -\textStigma{} % Ϛ \Stigma -\textstigma{} % ϛ \stigma -\textDigamma{} % Ϝ \Digamma -\textdigamma{} % ϝ \ddigamma -%03DE GREEK LETTER KOPPA % Ϟ \textKoppagreek -\textkoppa{} % ϟ \koppa, \textqoppa [sic!] -\textSampi{} % Ϡ \Sampi -\textsampi{} % ϡ \sampi - - -\subsection{Greek Extended Unicode block} - -Characters from the Greek Extended Unicode block are only partially -supported (multi-accented characters with sub-iota currently use a combining -prosgegrammeni or ypogegrammeni character. - -For comparision, the LICR macro is followed by the corresponding literal -Unicode character: - -\>\textalpha ἀ -\<\textalpha ἁ -\>`\textalpha ἂ -\<`\textalpha ἃ -\>'\textalpha ἄ -\<'\textalpha ἅ -\~>\textalpha ἆ -\~<\textalpha ἇ -\>\textAlpha Ἀ -\<\textAlpha Ἁ -\>`\textAlpha Ἂ -\<`\textAlpha Ἃ -\>'\textAlpha Ἄ -\<'\textAlpha Ἅ -\~>\textAlpha Ἆ -\~<\textAlpha Ἇ - -\>\textepsilon ἐ -\<\textepsilon ἑ -\>`\textepsilon ἒ -\<`\textepsilon ἓ -\>'\textepsilon ἔ -\<'\textepsilon ἕ -\>\textEpsilon Ἐ -\<\textEpsilon Ἑ -\>`\textEpsilon Ἒ -\<`\textEpsilon Ἓ -\>'\textEpsilon Ἔ -\<'\textEpsilon Ἕ - -\>\texteta ἠ -\<\texteta ἡ -\>`\texteta ἢ -\<`\texteta ἣ -\>'\texteta ἤ -\<'\texteta ἥ -\~>\texteta ἦ -\~<\texteta ἧ -\>\textEta Ἠ -\<\textEta Ἡ -\>`\textEta Ἢ -\<`\textEta Ἣ -\>'\textEta Ἤ -\<'\textEta Ἥ -\~>\textEta Ἦ -\~<\textEta Ἧ - -\>\textiota ἰ -\<\textiota ἱ -\>`\textiota ἲ -\<`\textiota ἳ -\>'\textiota ἴ -\<'\textiota ἵ -\~>\textiota ἶ -\~<\textiota ἷ -\>\textIota Ἰ -\<\textIota Ἱ -\>`\textIota Ἲ -\<`\textIota Ἳ -\>'\textIota Ἴ -\<'\textIota Ἵ -\~>\textIota Ἶ -\~<\textIota Ἷ - -\>\textomicron ὀ -\<\textomicron ὁ -\>`\textomicron ὂ -\<`\textomicron ὃ -\>'\textomicron ὄ -\<'\textomicron ὅ -\>\textOmicron Ὀ -\<\textOmicron Ὁ -\>`\textOmicron Ὂ -\<`\textOmicron Ὃ -\>'\textOmicron Ὄ -\<'\textOmicron Ὅ - -\>\textupsilon ὐ -\<\textupsilon ὑ -\>`\textupsilon ὒ -\<`\textupsilon ὓ -\>'\textupsilon ὔ -\<'\textupsilon ὕ -\~>\textupsilon ὖ -\~<\textupsilon ὗ -\<\textUpsilon Ὑ -\<`\textUpsilon Ὓ -\<'\textUpsilon Ὕ -\~<\textUpsilon Ὗ - -\>\textomega ὠ -\<\textomega ὡ -\>`\textomega ὢ -\<`\textomega ὣ -\>'\textomega ὤ -\<'\textomega ὥ -\~>\textomega ὦ -\~<\textomega ὧ -\>\textOmega Ὠ -\<\textOmega Ὡ -\>`\textOmega Ὢ -\<`\textOmega Ὣ -\>'\textOmega Ὤ -\<'\textOmega Ὥ -\~>\textOmega Ὦ -\~<\textOmega Ὧ - -\`\textalpha ὰ -\'\textalpha ά -\`\textepsilon ὲ -\'\textepsilon έ -\`\texteta ὴ -\'\texteta ή -\`\textiota ὶ -\'\textiota ί -\`\textomicron ὸ -\'\textomicron ό -\`\textupsilon ὺ -\'\textupsilon ύ -\`\textomega ὼ -\'\textomega ώ - -\>\textalpha\ypogegrammeni ᾀ -\<\textalpha\ypogegrammeni ᾁ -\>`\textalpha\ypogegrammeni ᾂ -\<`\textalpha\ypogegrammeni ᾃ -\>'\textalpha\ypogegrammeni ᾄ -\<'\textalpha\ypogegrammeni ᾅ -\~>\textalpha\ypogegrammeni ᾆ -\~<\textalpha\ypogegrammeni ᾇ -\>\textAlpha\prosgegrammeni ᾈ -\<\textAlpha\prosgegrammeni ᾉ -\>`\textAlpha\prosgegrammeni ᾊ -\<`\textAlpha\prosgegrammeni ᾋ -\>'\textAlpha\prosgegrammeni ᾌ -\<'\textAlpha\prosgegrammeni ᾍ -\~>\textAlpha\prosgegrammeni ᾎ -\~<\textAlpha\prosgegrammeni ᾏ - -\>\texteta\ypogegrammeni ᾐ -\<\texteta\ypogegrammeni ᾑ -\>`\texteta\ypogegrammeni ᾒ -\<`\texteta\ypogegrammeni ᾓ -\>'\texteta\ypogegrammeni ᾔ -\<'\texteta\ypogegrammeni ᾕ -\~>\texteta\ypogegrammeni ᾖ -\~<\texteta\ypogegrammeni ᾗ -\>\textEta\prosgegrammeni ᾘ -\<\textEta\prosgegrammeni ᾙ -\>`\textEta\prosgegrammeni ᾚ -\<`\textEta\prosgegrammeni ᾛ -\>'\textEta\prosgegrammeni ᾜ -\<'\textEta\prosgegrammeni ᾝ -\~>\textEta\prosgegrammeni ᾞ -\~<\textEta\prosgegrammeni ᾟ - -\>\textomega\ypogegrammeni ᾠ -\<\textomega\ypogegrammeni ᾡ -\>`\textomega\ypogegrammeni ᾢ -\<`\textomega\ypogegrammeni ᾣ -\>'\textomega\ypogegrammeni ᾤ -\<'\textomega\ypogegrammeni ᾥ -\~>\textomega\ypogegrammeni ᾦ -\~<\textomega\ypogegrammeni ᾧ -\>\textOmega\prosgegrammeni ᾨ -\<\textOmega\prosgegrammeni ᾩ -\>`\textOmega\prosgegrammeni ᾪ -\<`\textOmega\prosgegrammeni ᾫ -\>'\textOmega\prosgegrammeni ᾬ -\<'\textOmega\prosgegrammeni ᾭ -\~>\textOmega\prosgegrammeni ᾮ -\~<\textOmega\prosgegrammeni ᾯ - -\u\textalpha ᾰ -\=\textalpha ᾱ -\`\textalpha\ypogegrammeni ᾲ -\textalpha\ypogegrammeni ᾳ -\'\textalpha\ypogegrammeni ᾴ -\~\textalpha ᾶ -\~\textalpha\ypogegrammeni ᾷ -\u\textAlpha Ᾰ -\=\textAlpha Ᾱ -\`\textAlpha Ὰ -\'\textAlpha Ά -\textAlpha\prosgegrammeni ᾼ -\>\textcompwordmark ᾽ -\textcompwordmark\prosgegrammeni ι -\>\textcompwordmark ᾿ - -\accperispomeni\textcompwordmark ῀ -\"\~\textcompwordmark ῁ -\`\texteta\ypogegrammeni ῂ -\texteta\ypogegrammeni ῃ -\'\texteta\ypogegrammeni ῄ -\~\texteta ῆ -\~\texteta\ypogegrammeni ῇ -\`\textEpsilon Ὲ -\'\textEpsilon Έ -\`\textEta Ὴ -\'\textEta Ή -\textEta\prosgegrammeni ῌ -\>`\textcompwordmark ῍ -\>'\textcompwordmark ῎ -\~>\textcompwordmark ῏ - -\u\textiota ῐ -\=\textiota ῑ -\`"\textiota ῒ -\'"\textiota ΐ -\~\textiota ῖ -\~"\textiota ῗ -\u\textIota Ῐ -\=\textIota Ῑ -\`\textIota Ὶ -\'\textIota Ί -\<`\textcompwordmark ῝ -\>'\textcompwordmark ῞ -\~<\textcompwordmark ῟ - -\u\textupsilon ῠ -\=\textupsilon ῡ -\`"\textupsilon ῢ -\'"\textupsilon ΰ -\>\textrho ῤ -\<\textrho ῥ -\~\textupsilon ῦ -\~"\textupsilon ῧ -\u\textUpsilon Ῠ -\=\textUpsilon Ῡ -\`\textUpsilon Ὺ -\'\textUpsilon Ύ -\<\textRho Ῥ -\`"\textcompwordmark ῭ -\'"\textcompwordmark ΅ -\accvaria\textcompwordmark ` - -\`\textomega\ypogegrammeni ῲ -\textomega\ypogegrammeni ῳ -\'\textomega\ypogegrammeni ῴ -\~\textomega ῶ -\~\textomega\ypogegrammeni ῷ -\`\textOmicron Ὸ -\'\textOmicron Ό -\`\textOmega Ὼ -\'\textOmega Ώ -\textOmega\prosgegrammeni ῼ -\accoxia\textcompwordmark ´ -\<\textcompwordmark ῾ - -Ancient Greek Numbers are missing in most fonts (including Libertine and -Deja Vu). The “FreeSerif” font works fine. - -\textpentedeka % GREEK ACROPHONIC ATTIC FIFTY -\textpentehekaton % GREEK ACROPHONIC ATTIC FIVE HUNDRED -\textpenteqilioi % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND - - -\end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf index 74fc6892390..bdc52975c6e 100644 Binary files a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf and b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf differ diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex index 1a0f796faad..ed90a87b636 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex @@ -4,8 +4,17 @@ \usepackage{lmodern} \usepackage{textcomp} -\usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc} +\usepackage[LGR,T1]{fontenc} + +% UTF8 input encoding for pdfTeX or Xe/LuaTeX in 8-bit compatibility mode: +\ifdefined \luatexversion + \usepackage[utf8]{luainputenc} +\else + \usepackage[utf8]{inputenc} + \ifdefined \XeTeXrevision + \XeTeXinputencoding "bytes" + \fi +\fi \usepackage[pdfencoding=auto,colorlinks=true]{hyperref} \usepackage{bookmark} @@ -263,4 +272,6 @@ internal font encoding switch: compare \ensuregreek{\textAlpha\textUpsilon\textAlpha} (LGR) to \textAlpha\textUpsilon\textAlpha (T1). +Compiling with LuaTeX provides kerning also over font encoding boundaries. + \end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html index 49876aeabe7..14574d9a88f 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html @@ -24,7 +24,7 @@ version 1.3 of this license or any later version.

Identification
\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]
 
@@ -72,6 +72,10 @@ confusion with the \textalpha – \textOmega).

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.

  • +without the need for an explicite font-encoding switch anywhere in the +text.

    +
  • 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.

@@ -111,49 +132,55 @@ to ensure proper hyphenation.

\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).

Implementation

Requirements

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.

-
-

XeTeX

-

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
-
-
-
-

LuaTeX

-

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}}
+  {}
 
@@ -189,13 +203,26 @@ no harm is done as the macro is defined by lgrenc.def a

Default declarations

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.

-
-

ensuregreek

+default font encoding. Abort here, if another Greek-supporting +font encoding is used instead of LGR:

+
\@ifl@aded{def}{lgrenc}
+  {\renewcommand{\LastDeclaredEncoding}{LGR}}
+  {\expandafter\endinput} % "return"
+
+
+

greekscript, ensuregreek

+

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}}
 

Greek Alphabet

-- cgit v1.2.3