From 53c3d301a2e0a56f9b9e952d0f4d37290c64b215 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 28 Jun 2013 22:19:19 +0000 Subject: lgrx (10jun13) git-svn-id: svn://tug.org/texlive/trunk@31013 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/lgrx/8-bit-greek.txt | 206 ---- Master/texmf-dist/doc/latex/lgrx/README | 303 ++--- Master/texmf-dist/doc/latex/lgrx/README.html | 317 ++--- .../texmf-dist/doc/latex/lgrx/alphabeta-test.pdf | Bin 252870 -> 264875 bytes .../texmf-dist/doc/latex/lgrx/alphabeta-test.tex | 127 +- .../texmf-dist/doc/latex/lgrx/alphabeta.sty.html | 226 ++-- Master/texmf-dist/doc/latex/lgrx/diacritics.pdf | Bin 257523 -> 0 bytes Master/texmf-dist/doc/latex/lgrx/diacritics.tex | 183 --- Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf | Bin 212317 -> 0 bytes Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex | 338 ------ Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf | Bin 224351 -> 0 bytes Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex | 113 -- Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu | 517 -------- Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu.html | 1231 -------------------- Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf | Bin 234392 -> 236572 bytes Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex | 18 +- Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html | 1172 ++----------------- .../texmf-dist/doc/latex/lgrx/textalpha-test.pdf | Bin 176862 -> 331428 bytes .../texmf-dist/doc/latex/lgrx/textalpha-test.tex | 211 ++-- .../texmf-dist/doc/latex/lgrx/textalpha.sty.html | 134 +-- Master/texmf-dist/tex/latex/lgrx/alphabeta.sty | 278 +++-- Master/texmf-dist/tex/latex/lgrx/lgrxenc.def | 1210 ++----------------- Master/texmf-dist/tex/latex/lgrx/textalpha.sty | 205 ++-- 23 files changed, 1047 insertions(+), 5742 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/lgrx/8-bit-greek.txt delete mode 100644 Master/texmf-dist/doc/latex/lgrx/diacritics.pdf delete mode 100644 Master/texmf-dist/doc/latex/lgrx/diacritics.tex delete mode 100644 Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf delete mode 100644 Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex delete mode 100644 Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf delete mode 100644 Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex delete mode 100644 Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu delete mode 100644 Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu.html (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/lgrx/8-bit-greek.txt b/Master/texmf-dist/doc/latex/lgrx/8-bit-greek.txt deleted file mode 100644 index 6c137f02a01..00000000000 --- a/Master/texmf-dist/doc/latex/lgrx/8-bit-greek.txt +++ /dev/null @@ -1,206 +0,0 @@ -Greek support for 8-bit (La)TeX -******************************* - -LaTeX Internal Character Representations for Greek -================================================== - -State of the art ----------------- - -Greek LICRs are defined/used by the packages - -:lgrx: lgrxenc.def, lgrenc.dfu, -:hyperref: puenc.def, -:ucs: uni3.def, uni31.def, -:xunicode: xunicode.sty -:textgreek: textgreek.sty, - -Currently, - -* there are incompatibilities between the definitions of archaic characters - and variants. - -* Babel and the EU2 encoding (eu2enc.def) miss Greek LICRs. - -* Only lgrx and ucs define LICRs for the "Extended Greek" Unicode block. - -Proposals ---------- - -* Agree on a common set of `LaTeX Internal Character Representations` (LICR) - for Greek characters of the "Greek and Coptic" and the "Extended Greek" - Unicode blocks. - -* Update "participating" packages/projects to support the common Greek LICRs. - - The general rule should be to generate the common set but accept - compatibility and convenience aliases. - -* Use LICRs instead of LGR specific transliteration for representation of - Greek characters in - - :babel: "Babel strings" in greek.ldf - :greek-inputenc: currently translates to LGR-specific Latin transliteration - -* Document the LICRs for use in external "to-LaTeX converters" and - LaTeX-generating programs (recode, LyX, Docutils, pandoc, Python codecs, - ...) - -CTAN organization -================= - -With the Babel version 3.8b, came some changes to the file organization: - - Babel language files are "outsourced" and are located in a separate - directory ... - - ... - - - Fonts are not strictly part of a language, so they are best placed in - the corresponding TeX tree. This includes not only tfm, vf, ps1, otf, mf - files and the like, but also fd ones. - - - Font and input encodings are usually best placed in the corresponding - tree, too, but sometimes they belong more naturally to the babel style. - Note you may also need to define a LICR. - - -- http://mirrors.ctan.org/macros/latex/required/babel/base/CONTRIB - - -CB-Font definition files ------------------------- - -The *.fd files now in babel-contrib/greek/ set up the CB-Fonts as CM and LM -substitute. They could move to the cb-complete package. -http://mirrors.ctan.org/macros/latex/contrib/babel-contrib/greek/greek.fdd - -Encodings ---------- - -Greek input and font encodings can be used independent from babel. -Currently, http://www.ctan.org/tex-archive/language/greek/encodings -is a link to greek-inputenc/ while the LGR font encoding is defined in -babel-contrib/greek and lgrx. - -I propose to change "language/greek/encodings" to a directory with the -subdirectories "greek-inputenc" and "greek-fontenc" - -The new package "greek-fontenc" should contain the LGR font definition file -"lgrenc.def", documentation and tests, replacing both lgrenc.def from Babel -and lgrxenc.def from lgrx. -In future, it may also hold a comprehensive font encoding definition for LGI -and (if this ever comes to live) T7. - -"greek-inputenc" should be updated to use LICRs and to include -"lgrenc.dfu" now in lgrx. - -Related packages -================ - -See also http://www.ctan.org/tex-archive/language/greek - -LICR and encodings ------------------- - -Babel http://www.ctan.org/pkg/babel - Multilingual support for Plain TeX or LaTeX - - "Since version 3.9b, Babel uses contributed configuration files that - provide the detail of what has to be done for each language." - -Babel-Greek http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/greek - Greek language support for babel - -lgrx http://www.ctan.org/pkg/lgrx - Greek text with the LGR font encoding - -greek-inputenc - Macintosh Greek encoding and ISO 8859-7 definition files for use - with inputenc. - -xunicode http://www.ctan.org/pkg/xunicode - Generate Unicode characters from accented glyphs - -EUenc http://www.ctan.org/pkg/euenc - Font encoding definitions for unicode fonts loaded by LaTeX in X∃TeX - or LuaTeX. The package provides two encodings: — EU1, designed for - use with X∃TeX, which the fontspec uses for unicode fonts which require - no macro-level processing for accents, and — EU2, which provides the - same facilities for use with LuaTeX. - -hyperref http://www.ctan.org/pkg/hyperref - handle cross-referencing commands in LaTeX to produce hypertext - links in the document - - -ucs http://www.ctan.org/pkg/ucs - Extended UTF-8 input encoding support for LaTeX - -textgreek - Upright greek letters in text - - -Fonts in LGR encoding ---------------------- - -Only fonts available in T1 (vector) format are listed. - - -CB Fonts http://www.ctan.org/pkg/cbgreek-complete - Complete set of Greek fonts matching CM - -Kerkis http://www.ctan.org/pkg/kerkis - Sans-serif Greek fonts to match the URW Bookman - -dejavu http://www.ctan.org/pkg/dejavu - LaTeX support for the DejaVu fonts - -Epigrafica http://www.ctan.org/pkg/epigrafica - Epigrafica is forked from the development of the MgOpen font - Cosmetica, which is a similar design to Optima and includes Greek. - -GFS fonts http://www.ctan.org/pkg/gfs - Fonts from The Greek Font Society - (Antonis Tsolomitis, George D. Matthiopoulos) - -txfontsb http://www.ctan.org/pkg/txfontsb - Extensions to txfonts, using GNU Freefont - -grkfinst http://www.ctan.org/pkg/grkfinst - - plug-in for fontinst, for installing Greek Type 1 fonts - - -Others ------- - -teubner http://www.ctan.org/pkg/teubner - Philological typesetting of classical Greek - -hyphenation - hyphenation-greek http://www.ctan.org/pkg/hyphenation-greek - elhyphen http://www.ctan.org/pkg/elhyphen - - - -Developers -========== - -Apostolos Syropoulos no longer works on/for 8-bit LaTeX. - -==================================================== ===================== -Alexej Kryukov grkfinst -Antonis Tsolomitis gfs -Claudio Beccari teubner -Dimitrios Filippou inputenc, hyphenation -Günter Milde lgrx -Heiko Oberdiek hyperref -Javier Bezos babel -Leonard Michlmayr textgreek -Pavel Farář dejavu -Ross Moore xunicode -Will Robertson EUENC -Elie Roux EUENC -Khaled Hosny EUENC -Wolfgang Jeltsch ucs -==================================================== ===================== diff --git a/Master/texmf-dist/doc/latex/lgrx/README b/Master/texmf-dist/doc/latex/lgrx/README index dc5ffe8d41f..ab87415a71d 100644 --- a/Master/texmf-dist/doc/latex/lgrx/README +++ b/Master/texmf-dist/doc/latex/lgrx/README @@ -8,238 +8,94 @@ Greek text with the LGR font encoding conditions of the `LaTeX Project Public License`_, either version 1.3 of this license or any later version. -:Abstract: The LGR font encoding is the de-facto standard for Greek - typesetting with (8-bit) LaTeX. However, the encoding definition - file that ships with babel_ misses many of the definitions common - since the advent of the NFSS [fntguide]_. +:Abstract: The `lgrx` bundle provides packages that help typesetting Greek + symbols with 8-bit LaTeX in multi-lingual documents. - The `lgrx` bundle provides packages and definitions for - typesetting Greek text with fonts in the LGR encoding. It works - for both, monotonic and polytonic Greek, independent of the - `babel` package. - The bundle is available from CTAN__ and included in - TeXLive 2012. +News +==== - __ http://www.ctan.org/pkg/lgrx +:2013-05-28: The new package greek-fontenc_ provides a comprehensive LGR + font encoding file ``lgrenc.def``, that supersedes both this + bundles ``lgrxenc.def`` and the minimal ``lgrenc.def`` + that used to be part of babel-greek_ -.. Note:: +:2013-05-28: The file ``lgrenc.dfu`` (support for Unicode input) moved to + the greek-inputenc_ package. - The TeXLive 2012 pre-release contains the Unicode definition file - ``lgrenc.dfu`` in the documentation instead of the TEXPATH. To enable - `utf-8 support for Greek`_, update via `tlmgr` or place a copy in the - TEXPATH «by hand». - See http://tug.org/pipermail/tex-live/2012-June/031757.html - -.. contents:: - - -Manifest -======== - -The lgrx bundle consists of the following LaTeX files: - -LaTeX files: - :lgrxenc.def: comprehensive LGR encoding definition file - :lgrenc.dfu: support for Unicode input - :textalpha.sty: ``\text...`` macros for Greek letters in non-Greek text - :alphabeta.sty: Greek letters with ``\alpha``, ``\beta``, ... in text - and math - - Literal sources: - ``_, ``_, - ``_, ``_ - -Documentation and test documents: - .. class:: run-in - - :``_: `Greek diacritics with standard accent macros` - source ``__ - :``_: `Greek script in PDF metadata`, - source ``__ - :``_: `Greek Unicode with lgrenc.dfu`, - source ``__ - :``_: source ``__ - :``_: source ``__ - :``_: source ``__ - - - -Motivation -========== - -Greek font encodings --------------------- - -Unicode -~~~~~~~ - -The Unicode standard allows fonts that comprise glyphs from (almost) all -known scripts. With the TeX engines XeTeX or LuaTeX, typesetting Greek with -LaTeX is as easy as finding a font that contains Greek letters and setting -it up with fontspec_. Beware, that you must not use the ``greek`` or -``polutonikogreek`` options of the babel_ package. The `babel` replacement -polyglossia_ provides Greek language support for XeLaTeX/LuaLaTeX. -If you go this way, you don't need the lgrx bundle. - -T7 -~~~~ - -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. - -LGR -~~~ - -The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. Fonts in this encoding include the `CB fonts`_ (matching CM), -grtimes_ (Greek Times), Kerkis_ (matching URW Bookman), and the `GFS font -collection`_. Setup of these fonts as Greek variant to matching Latin fonts -is facilitated by the substitutefont_ package. - -The LGR font encoding generates Greek characters via an ASCII -transliteration. This enables simple input with a Latin keyboard. -Characters with diacritics are selected by ligature definitions in the -font (see [greek-usage]_, [teubner-doc]_, [cbfonts]_). - -A major drawback of this 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``). -This means that for every Latin-written word or acronym an explicite -language-switch is required. This problem can only be solved via a -font-encoding comprising Latin and Greek like the hypothetic T7_ or Unicode -(with XeTeX or LuaTeX). - -\*OT7 -~~~~~ - -The name LGR does not reflect status of this font encoding due to historical -reasons. [encguide]_ classifies encodings starting with `L` as "local". -Indeed, LGR started as a local encoding for the `CB fonts`_ by Claudio -Beccari. Later, Apostolos Syropoulos advanced it to the default font -encoding for the `babel` package's ``greek`` option. A better name would be -OT7: - -* It is an 'old' encoding. -* It implements a Latin transcription for a non-Latin script like the - OT2 encoding. -* It is not confined to 128 bit but OT4 shows that this is no - absolute requirement for an `OT` encoding. +:2013-06-03: ``alphabeta.sty`` enables Unicode input in math mode, -However, due to the fact that the LGR font encoding has been used under its -current name for a long time, the name will not change for compatibility -reasons. + ``textalpha.sty`` and ``alphabeta.sty`` require ``lgrenc.def`` + from greek-fontenc_ instead of ``lgrxenc.def``, + ``lgrxenc.def`` now loads ``lgrenc.def`` and adds some + backwards compatibility definitions. -Problems with the default setup -------------------------------- - -The `lgrx` budle adresses a set of problems with the LGR font encoding as -set up by `babel`: - -1. Ligatures with prefix notation prevent kerning (see the example document - lgrxenc-test.pdf_ and [teubner-doc]_). - -2. Sub-optimal results with the standard accent macros: - - * no combined accents, - * accents above (instead of before) capital letters, - * pre-composed characters are not used. - -3. The tilde character ``~`` is used for a non-breaking space by - default. Therefore the transliteration for the *perispomeni* accent is - not available without re-definition of this character. [#tildehack]_ - -4. The ``polutonikogreek`` `babel` option redefines both, ``~`` and ``\~`` - to produce accents via input ligatures (restricted to the language - setting instead of the font encoding). This prevents the placing of a - tilde-accent on non-supported characters like in *niño* if the language - is set to polytonic Greek, even if ``\textlatin`` is used. [#poluhack]_ - -5. There is no Unicode support with `inputenc`_'s ``utf8`` option. +.. note:: The TeXLive 2012 pre-release contained the Unicode definition file + ``lgrenc.dfu`` in the documentation instead of the TEXPATH. To enable + `utf-8 support for Greek`_, update via `tlmgr` or place a copy in the + TEXPATH «by hand». See + http://tug.org/pipermail/tex-live/2012-June/031757.html - The `ucs` package contributed by Dominique Unruh provides Unicode support - with the ``utf8x`` option. A babel patch by Werner Lemberg for Greek - Unicode support [lemberg2008]_ never got applied.) -6. The LGR transliteration does not work for PDF metadata. +Files +===== -.. [#tildehack] Problem 3 can be solved by the simple one-liner :: +LaTeX files: + :textalpha.sty: `Default text macros for Greek symbols`_ independent of + the current font encoding. Requires greek-fontenc_, + enhances greek-inputenc_. - \DeclareTextSymbol{\~}{LGR}{126} + Literal source: ``_ - which results in ``\~`` inserting a plain tilde character if the - font encoding is LGR. + :alphabeta.sty: `Generic macros for Greek symbols`_ in text and math. + Requires ``textalpha.sty``. - Drawback: you cannot place a ~-accent on Greek characters except the - ones supported by an input ligature. + Literal source: ``_ -.. [#poluhack] Fortunately, LaTeX saves copies of the accent macros: ``\~`` - is an alias of ``\a~`` (which is an alias of ``\@tabacckludge~``), so it - can be restored after loading `babel` with:: + :lgrxenc.def: backwards compatibility file. New documents should use + greek-fontenc_'s ``lgrenc.def`` instead. - \addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}} - \addto\extrasgreek{\renewcommand*{\~}{\a~}} +Documentation and test documents: + .. class:: run-in - With this addition, both the comprehensive font encoding definitions and - the workaround [#tildehack]_ also work with the ``polutonikogreek`` - `babel` option. + :``_: `The textalpha package`, + source ``__ + :``_: `The alphabeta package`, + source ``__ + :``_: source ``__ Components of the `lgrx` bundle =============================== -The `lgrx` bundle comprises tools that help typesetting Greek script -with (8-bit) LaTeX in Greek as well as multi-lingual documents. - -Comprehensive font encoding definition file -------------------------------------------- - -``lgrxenc.def`` is an alternative to the rudimentary LGR encoding definition -file [#fdf]_ ``lgrenc.def`` which comes with babel_'s Greek support. It -defines LICR macros for Greek characters that select pre-composed glyphs if -possible and places the diacritics according to Greek typesetting rules -else. Combined accents can be specified as backslash + transliteration -(``\~>a``) or iteratively (``\~\>{a}``). -For usage and documentation see the literal source lgrxenc.def.html_, the -user manual diacritics.pdf_, and the test document lgrxenc-test.pdf_. +The `lgrx` bundle consists of the `textalpha` and `alphabeta` packages and +the backwards compatibility file ``lgrxenc.def``. -.. [#fdf] See [fntguide_, section 5] for a definition of `encoding definition - files`. -UTF-8 support for Greek ------------------------ - -``lgrenc.dfu`` provides standards-compatible UTF-8 support for Greek based -on the comprehensive font encoding definitions. It is compatible with -hyperref_ enabling Greek characters in PDF metadata without the need for -``\texorpdfstring``. - -See the literal source lgrenc.dfu.html_ and the test document -greek-unicode.pdf_. +Default text macros for Greek symbols +------------------------------------- -Text macros for Greek symbols ------------------------------ - -``textalpha.sty`` makes the ``\textalpha``, ``\textbeta`` ... macros as well -as the ``\ensuregreek`` command aviable in any font encoding. With this -package, Unicode input of Greek letters works in any font encoding, too. +``textalpha.sty`` makes the ``\textalpha``, ``\textbeta`` ... macros as well as +the ``\ensuregreek`` command aviable in any font encoding. With the +greek-inputenc_ package, Unicode input of Greek letters works in any font +encoding, too. .. _limitations: However, in any font encoding except LGR: * there is no kerning between Greek characters, -* composition of diacritics (like ``\Dasia\Tonos``) fails, +* composition of diacritics (like ``\'"``) fails, * accent macros do not select precomposed characters (pre-composed Unicode literals work fine). -See the literal source textalpha.sty.html_ and textalpha-test.pdf_ for -details on usage, limitations, and recommended workarounds. +See the literal source textalpha.sty.html_ and the example document +textalpha-test.pdf_ for details on usage, limitations, and recommended +workarounds. + Generic macros for Greek symbols -------------------------------- @@ -248,8 +104,25 @@ Generic macros for Greek symbols and math mode. For this, the math macros are redefined with the help of ``\TextOrMath`` from the standard package fixltx2e_. -See the literal source alphabeta.sty.html_ and the test document -alphabeta-test.pdf_. +Unicode input of Greek letters works also in mathematical formulas. + +See the literal source alphabeta.sty.html_ and the example document +alphabeta-test.pdf_ for details. + + +LGR font encoding definition file +--------------------------------- + +``lgrxenc.def`` was an alternative to the rudimentary LGR encoding +definition file ``lgrenc.def`` that came with babel_'s Greek +support. It is now superseded by ``lgrenc.def`` from greek-fontenc_ but kept +here for backwards compatibility. + + +UTF-8 support for Greek +----------------------- + +Moved to the greek-inputenc_ package. References @@ -268,23 +141,27 @@ References .. [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 -.. [lemberg2008] Werner Lemberg, +.. [lemberg2008] Werner Lemberg, `Unicode support for the Greek LGR encoding`, Εὔτυπον, τεῦχος № 20, 2008. http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt -.. _CB Fonts: http://mirror.ctan.org/help/Catalogue/entries/cbgreek-complete.html -.. _grtimes: http://mirror.ctan.org/help/Catalogue/entries/grtimes.html -.. _GFS font collection: http://mirror.ctan.org/help/Catalogue/entries/gfs.html -.. _Kerkis: http://mirror.ctan.org/help/Catalogue/entries/kerkis.html -.. _substitutefont: http://mirror.ctan.org/help/Catalogue/entries/substitutefont.html -.. _babel: http://mirror.ctan.org/help/Catalogue/entries/babel.html -.. _fontenc: http://mirror.ctan.org/help/Catalogue/entries/fontenc.html -.. _inputenc: http://mirror.ctan.org/help/Catalogue/entries/inputenc.html -.. _fontspec: http://mirror.ctan.org/help/Catalogue/entries/fontspec.html -.. _polyglossia: http://mirror.ctan.org/help/Catalogue/entries/polyglossia.html -.. _textgreek: http://mirror.ctan.org/help/Catalogue/entries/textgreek.html -.. _fixltx2e: http://mirror.ctan.org/help/Catalogue/entries/fixltx2e.html -.. _hyperref: http://mirror.ctan.org/help/Catalogue/entries/hyperref.html -.. _bookmark: http://mirror.ctan.org/help/Catalogue/entries/bookmark.html +.. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete +.. _grtimes: http://www.ctan.org/pkg/grtimes +.. _GFS font collection: http://www.ctan.org/pkg/gfs +.. _Kerkis: http://www.ctan.org/pkg/kerkis +.. _lgrx: http://www.ctan.org/pkg/lgrx +.. _substitutefont: http://www.ctan.org/pkg/substitutefont +.. _babel: http://www.ctan.org/pkg/babel +.. _babel-greek: http://www.ctan.org/pkg/babel-greek +.. _fontenc: http://www.ctan.org/pkg/fontenc +.. _inputenc: http://www.ctan.org/pkg/inputenc +.. _fontspec: http://www.ctan.org/pkg/fontspec +.. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc +.. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc +.. _polyglossia: http://www.ctan.org/pkg/polyglossia +.. _textgreek: http://www.ctan.org/pkg/textgreek +.. _fixltx2e: http://www.ctan.org/pkg/fixltx2e +.. _hyperref: http://www.ctan.org/pkg/hyperref +.. _bookmark: http://www.ctan.org/pkg/bookmark diff --git a/Master/texmf-dist/doc/latex/lgrx/README.html b/Master/texmf-dist/doc/latex/lgrx/README.html index dfc362d30e4..b84b420dd23 100644 --- a/Master/texmf-dist/doc/latex/lgrx/README.html +++ b/Master/texmf-dist/doc/latex/lgrx/README.html @@ -728,279 +728,124 @@ version 1.3 of this license or any later version.

Abstract

-

The LGR font encoding is the de-facto standard for Greek -typesetting with (8-bit) LaTeX. However, the encoding definition -file that ships with babel misses many of the definitions common -since the advent of the NFSS [fntguide].

-

The lgrx bundle provides packages and definitions for -typesetting Greek text with fonts in the LGR encoding. It works -for both, monotonic and polytonic Greek, independent of the -babel package.

-

The bundle is available from CTAN and included in -TeXLive 2012.

+

The lgrx bundle provides packages that help typesetting Greek +symbols with 8-bit LaTeX in multi-lingual documents.

+
+

News

+
+
2013-05-28
+

The new package greek-fontenc provides a comprehensive LGR +font encoding file lgrenc.def, that supersedes both this +bundles lgrxenc.def and the minimal lgrenc.def +that used to be part of babel-greek

+
+
2013-05-28
+

The file lgrenc.dfu (support for Unicode input) moved to +the greek-inputenc package.

+
+
2013-06-03
+

alphabeta.sty enables Unicode input in math mode,

+

textalpha.sty and alphabeta.sty require lgrenc.def +from greek-fontenc instead of lgrxenc.def,

+

lgrxenc.def now loads lgrenc.def and adds some +backwards compatibility definitions.

+
+

Note

-

The TeXLive 2012 pre-release contains the Unicode definition file +

The TeXLive 2012 pre-release contained the Unicode definition file lgrenc.dfu in the documentation instead of the TEXPATH. To enable utf-8 support for Greek, update via tlmgr or place a copy in the -TEXPATH «by hand». -See http://tug.org/pipermail/tex-live/2012-June/031757.html

+TEXPATH «by hand». See +http://tug.org/pipermail/tex-live/2012-June/031757.html

- -
-

Manifest

-

The lgrx bundle consists of the following LaTeX files:

+
+

Files

LaTeX files:
-
-
lgrxenc.def
-

comprehensive LGR encoding definition file

-
-
lgrenc.dfu
-

support for Unicode input

-
+
textalpha.sty
-

\text... macros for Greek letters in non-Greek text

+

Default text macros for Greek symbols independent of +the current font encoding. Requires greek-fontenc, +enhances greek-inputenc.

+

Literal source: textalpha.sty.html

alphabeta.sty
-

Greek letters with \alpha, \beta, … in text -and math

+

Generic macros for Greek symbols in text and math. +Requires textalpha.sty.

+

Literal source: alphabeta.sty.html

-
-
-
Literal sources:
-

lgrxenc.def.html, lgrenc.dfu.html, -textalpha.sty.html, alphabeta.sty.html

+
lgrxenc.def
+

backwards compatibility file. New documents should use +greek-fontenc’s lgrenc.def instead.

Documentation and test documents:
-
diacritics.pdf
-

Greek diacritics with standard accent macros -source diacritics.tex

-
-
greekhyperref.pdf
-

Greek script in PDF metadata, -source greekhyperref.tex

-
-
greek-unicode.pdf
-

Greek Unicode with lgrenc.dfu, -source greek-unicode.tex

-
-
lgrxenc-test.pdf
-

source lgrxenc-test.tex

-
textalpha-test.pdf
-

source textalpha-test.tex

+

The textalpha package, +source textalpha-test.tex

alphabeta-test.pdf
-

source alphabeta-test.tex

+

The alphabeta package, +source alphabeta-test.tex

-
+
lgrxenc-test.pdf
+

source lgrxenc-test.tex

-
-
-

Motivation

-
-

Greek font encodings

-
-

Unicode

-

The Unicode standard allows fonts that comprise glyphs from (almost) all -known scripts. With the TeX engines XeTeX or LuaTeX, typesetting Greek with -LaTeX is as easy as finding a font that contains Greek letters and setting -it up with fontspec. Beware, that you must not use the greek or -polutonikogreek options of the babel package. The babel replacement -polyglossia provides Greek language support for XeLaTeX/LuaLaTeX. -If you go this way, you don’t need the lgrx bundle.

-
-
-

T7

-

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.

-
-
-

LGR

-

The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. Fonts in this encoding include the CB fonts (matching CM), -grtimes (Greek Times), Kerkis (matching URW Bookman), and the GFS font -collection. Setup of these fonts as Greek variant to matching Latin fonts -is facilitated by the substitutefont package.

-

The LGR font encoding generates Greek characters via an ASCII -transliteration. This enables simple input with a Latin keyboard. -Characters with diacritics are selected by ligature definitions in the -font (see [greek-usage], [teubner-doc], [cbfonts]).

-

A major drawback of this 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). -This means that for every Latin-written word or acronym an explicite -language-switch is required. This problem can only be solved via a -font-encoding comprising Latin and Greek like the hypothetic T7 or Unicode -(with XeTeX or LuaTeX).

-
-
-

*OT7

-

The name LGR does not reflect status of this font encoding due to historical -reasons. [encguide] classifies encodings starting with L as “local”. -Indeed, LGR started as a local encoding for the CB fonts by Claudio -Beccari. Later, Apostolos Syropoulos advanced it to the default font -encoding for the babel package’s greek option. A better name would be -OT7:

-
    -
  • It is an ‘old’ encoding.

  • -
  • It implements a Latin transcription for a non-Latin script like the -OT2 encoding.

  • -
  • It is not confined to 128 bit but OT4 shows that this is no -absolute requirement for an OT encoding.

  • -
-

However, due to the fact that the LGR font encoding has been used under its -current name for a long time, the name will not change for compatibility -reasons.

-
-
-
-

Problems with the default setup

-

The lgrx budle adresses a set of problems with the LGR font encoding as -set up by babel:

-
    -
  1. Ligatures with prefix notation prevent kerning (see the example document -lgrxenc-test.pdf and [teubner-doc]).

  2. -
  3. Sub-optimal results with the standard accent macros:

    -
      -
    • no combined accents,

    • -
    • accents above (instead of before) capital letters,

    • -
    • pre-composed characters are not used.

    • -
    -
  4. -
  5. The tilde character ~ is used for a non-breaking space by -default. Therefore the transliteration for the perispomeni accent is -not available without re-definition of this character.1

  6. -
  7. The polutonikogreek babel option redefines both, ~ and \~ -to produce accents via input ligatures (restricted to the language -setting instead of the font encoding). This prevents the placing of a -tilde-accent on non-supported characters like in niño if the language -is set to polytonic Greek, even if \textlatin is used.2

  8. -
  9. There is no Unicode support with inputenc’s utf8 option.

    -

    The ucs package contributed by Dominique Unruh provides Unicode support -with the utf8x option. A babel patch by Werner Lemberg for Greek -Unicode support [lemberg2008] never got applied.)

    -
  10. -
  11. The LGR transliteration does not work for PDF metadata.

  12. -
-
1
-
-(1, 2)

Problem 3 can be solved by the simple one-liner

-
\DeclareTextSymbol{\~}{LGR}{126}
-
-

which results in \~ inserting a plain tilde character if the -font encoding is LGR.

-

Drawback: you cannot place a ~-accent on Greek characters except the -ones supported by an input ligature.

-
-
2
-
-

Fortunately, LaTeX saves copies of the accent macros: \~ -is an alias of \a~ (which is an alias of \@tabacckludge~), so it -can be restored after loading babel with:

-
\addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}}
-\addto\extrasgreek{\renewcommand*{\~}{\a~}}
-
-

With this addition, both the comprehensive font encoding definitions and -the workaround1 also work with the polutonikogreek -babel option.

-
-

Components of the lgrx bundle

-

The lgrx bundle comprises tools that help typesetting Greek script -with (8-bit) LaTeX in Greek as well as multi-lingual documents.

-
-

Comprehensive font encoding definition file

-

lgrxenc.def is an alternative to the rudimentary LGR encoding definition -file3 lgrenc.def which comes with babel’s Greek support. It -defines LICR macros for Greek characters that select pre-composed glyphs if -possible and places the diacritics according to Greek typesetting rules -else. Combined accents can be specified as backslash + transliteration -(\~>a) or iteratively (\~\>{a}).

-

For usage and documentation see the literal source lgrxenc.def.html, the -user manual diacritics.pdf, and the test document lgrxenc-test.pdf.

-
3
-
-

See [fntguide, section 5] for a definition of encoding definition -files.

-
-
-
-
-

UTF-8 support for Greek

-

lgrenc.dfu provides standards-compatible UTF-8 support for Greek based -on the comprehensive font encoding definitions. It is compatible with -hyperref enabling Greek characters in PDF metadata without the need for -\texorpdfstring.

-

See the literal source lgrenc.dfu.html and the test document -greek-unicode.pdf.

-
-
-

Text macros for Greek symbols

-

textalpha.sty makes the \textalpha, \textbeta … macros as well -as the \ensuregreek command aviable in any font encoding. With this -package, Unicode input of Greek letters works in any font encoding, too.

+

Components of the lgrx bundle

+

The lgrx bundle consists of the textalpha and alphabeta packages and +the backwards compatibility file lgrxenc.def.

+
+

Default text macros for Greek symbols

+

textalpha.sty makes the \textalpha, \textbeta … macros as well as +the \ensuregreek command aviable in any font encoding. With the +greek-inputenc package, Unicode input of Greek letters works in any font +encoding, too.

However, in any font encoding except LGR:

  • there is no kerning between Greek characters,

  • -
  • composition of diacritics (like \Dasia\Tonos) fails,

  • +
  • composition of diacritics (like \'") fails,

  • accent macros do not select precomposed characters (pre-composed Unicode literals work fine).

-

See the literal source textalpha.sty.html and textalpha-test.pdf for -details on usage, limitations, and recommended workarounds.

+

See the literal source textalpha.sty.html and the example document +textalpha-test.pdf for details on usage, limitations, and recommended +workarounds.

-

Generic macros for Greek symbols

+

Generic macros for Greek symbols

alphabeta.sty allows you to use \alpha, \beta, … in both, text and math mode. For this, the math macros are redefined with the help of -\TextOrMath from the standard package fixltx2e.

-

See the literal source alphabeta.sty.html and the test document -alphabeta-test.pdf.

+\TextOrMath from the standard package fixltx2e.

+

Unicode input of Greek letters works also in mathematical formulas.

+

See the literal source alphabeta.sty.html and the example document +alphabeta-test.pdf for details.

+
+
+

LGR font encoding definition file

+

lgrxenc.def was an alternative to the rudimentary LGR encoding +definition file lgrenc.def that came with babel’s Greek +support. It is now superseded by lgrenc.def from greek-fontenc but kept +here for backwards compatibility.

+
+
+

UTF-8 support for Greek

+

Moved to the greek-inputenc package.

-

References

-
[fntguide]
+

References

+
[fntguide]

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

@@ -1008,19 +853,19 @@ and math mode. For this, the math macros are redefined with the help of
[encguide]
-(1, 2)

Frank Mittelbach, Robin Fairbairns, Werner Lemberg, +

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

@@ -1028,12 +873,12 @@ of the babel package, 1997.
[teubner-doc]
-(1, 2)

Claudio Beccari, teubner.sty +

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

-
[lemberg2008]
+
[lemberg2008]

Werner Lemberg, Unicode support for the Greek LGR encoding, Εὔτυπον, τεῦχος № 20, 2008. diff --git a/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.pdf b/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.pdf index 26484c134bf..cc9685828e3 100644 Binary files a/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.pdf and b/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.pdf differ diff --git a/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.tex b/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.tex index 4230587418e..c71bc56b2ef 100644 --- a/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.tex +++ b/Master/texmf-dist/doc/latex/lgrx/alphabeta-test.tex @@ -9,8 +9,8 @@ % \usepackage{kerkis} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} -\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} -\hypersetup{unicode=true} +\usepackage{hyperref} +\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,pdfencoding=auto} \usepackage{bookmark} % No section numbers but PDF bookmarks for sections \setcounter{secnumdepth}{0} @@ -20,27 +20,31 @@ \begin{document} -\section{Test the \emph{alphabeta} package} +\title{The \emph{alphabeta} package} +\author{Günter Milde} +\maketitle With the \emph{alphabeta} package, you can write Greek letters ``by name'' -or as literal Unicode character in both, ``text'' and ``math'' mode. The +or as literal Unicode characters in both, ``text'' and ``math'' mode. The mode determines whether the letters are taken from the text or math font. Just like Latin letters, the Greek counterparts are by default italic in -math (capital letters upright without \emph{fixmath} or \emph{isomath}) and -upright in text: +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 \Lambda{} l \lambda, - emphasized text: \emph{L \Lambda{} l \lambda}, - math: $ L \ \Lambda \ l \ \lambda $ + Text: L \Gamma{} l \gamma, + emphasized text: \emph{L \Gamma{} l \gamma}, + mathematics: $ L \ \Gamma \ l \ \gamma $ \end{quote} -So you can easily write a single Greek symbol (like \Psi{} or \mu{}) -or \lambda\omicron\gamma\omicron\varsigma{} in non-Greek text as well as -ISO-conforming formulas with upright symbols for constants like -$A = \text{\pi} r^2$ instead of $A = \pi r^2$. +This makes it easy to write a single Greek symbol (like \Psi{} or \mu{}) or +a \lambda\omicron\gamma\omicron\varsigma{} in non-Greek text as well as +ISO-conforming formulas with upright symbols for constants like $A = +\text{\pi} r^2$ instead of $A = \pi r^2$. -\section{Greek alphabet} +\section{Tests and examples} + +\subsection{Greek alphabet} Greek letters via Latin transscription in LGR font encoding: @@ -59,6 +63,9 @@ Greek letters via default macros in LGR font encoding: \alpha{} \beta{} \gamma{} \delta{} \epsilon{} \zeta{} \eta{} \theta{} \iota{} \kappa{} \lambda{} \mu{} \nu{} \xi{} \omicron{} \pi{} \rho{} \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} + \\ + \digamma{} \Digamma{} \stigma{} \varstigma{} \koppa{} \qoppa{} \Qoppa{} + \Stigma{} \Sampi{} \sampi{} } \end{quote} @@ -72,16 +79,23 @@ Greek letters via default macros in other font encoding (here T1): \alpha{} \beta{} \gamma{} \delta{} \epsilon{} \zeta{} \eta{} \theta{} \iota{} \kappa{} \lambda{} \mu{} \nu{} \xi{} \omicron{} \pi{} \rho{} \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} + \\ + \digamma{} \Digamma{} \stigma{} \varstigma{} \koppa{} \qoppa{} \Qoppa{} + \Stigma{} \Sampi{} \sampi{} \end{quote} Greek letters via Unicode input in T1 font encoding: \begin{quote} - ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ\\ - αβγδεζηθικλμνξοπρσςτυφχψω + Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω\\ + α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω\\ + ϝ Ϝ ϛ ϟ ϙ Ϙ Ϛ Ϡ ϡ \end{quote} -Greek letters in math (with ``fixmath"): +Greek letters in math (with \emph{fixmath}): +(There are no math macros for Greek letters wich exist with similar shape in +the Latin alphabet.) + \begin{align*} & % \Alpha{} \Beta{} @@ -106,26 +120,25 @@ Greek letters in math (with ``fixmath"): % \omicron{} \pi{} \rho{} \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} + \, \digamma{} \end{align*} -There are no math macros for Greek letters wich exist with similar shape in -the Latin alphabet. -Unicode input in math mode is currently not supported: +Unicode input in math mode: \begin{align*} & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\ - & αβγδεζηθικλμνξπρσςτ υφχψω + & αβγδεζηθικλμνξπρσςτ υφχψω \, ϝ \end{align*} -\section{ +\subsection{ \ensuregreek{\<\Epsilon\lambda\lambda\eta\nu\iota\kappa\'\alpha{} (Ἑλληνικά)} in PDF strings} With the alphabeta package, you get Greek letters in both, the document body and PDF metadata generated by hyperref if the input uses Unicode literals or macros. Wrapping in \verb+\ensuregreek+ ensures the right placement of the -accents and breathings (before, not above capital letters). -As the hyperref packages "PU" encoding uses the \verb+\text...+ macros, -some diacritics are missing in the PDF data if the short macros are used -(dasia dropped at the start of the heading in the PDF toc). +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 (dasia dropped at the start of the heading in the PDF toc). The generic macros result in warnings like % @@ -142,13 +155,25 @@ that can savely be ignored. \subsection{Greek in math $\sin^2\alpha$} -Ensure Greek in math continues to work in both text and PDF metadata: -$\Gamma = \frac{\sin\alpha}{\cos{\beta}}$. +PDF strings do not know math mode. The content of a formula or equation is +evaluated in text mode with non-valid commands discarded. This works for +simple formulas (but not for super-/subscripts). With the \emph{alphabeta} +package, it works also for Greek letters (with the abovementionend warnings +from hyperref). + +In the main document, Greek continues to work as usual: + +\[\Gamma = \frac{\sin\alpha}{\cos{\beta}}. +\] -\section{Diacritics} +Literal Unicode characters in mathematics are currently not supported. +% $sin^2 α$ is printed with latin letter a: sin²a -Shortcuts as well as named macros are set up for use with -the Latin transcription. + +\subsection{Diacritics} + +Accent macros are set up for use with the generic macros by definition of +``TextComposite'' commands. Diacritics (except the dialytika) should placed before capital letters and dropped with MakeUppercase: @@ -165,18 +190,22 @@ before capital letters and dropped with MakeUppercase: \'<{\omicron} \~<{\upsilon} \~>{\omega} }} -\section{Limitations} +\subsection{Limitations} -\begin{itemize} +If the current font encoding is not LGR, the same limitation like with +\emph{textalpha} apply: -\item Composition of diacritics (like \verb+\>\'+) fails in other font encodings: +\begin{itemize} +\item Composition of diacritics (like \verb+\>\'+) fails: + \<{\alpha} \>{\epsilon} \"'{\iota} \>`\eta{} \'<{\omicron} \~<{\upsilon} \~>{\omega} -\item Long names (like \verb+\accdasiaoxia+) work, however they do not select - precomposed characters (the difference becomes obvious if you - drag-and-drop text from the PDF version of this document): + Long names (like \verb+\accdasiaoxia+) work in any font encoding, + however they do not select precomposed characters (the difference + becomes obvious if you drag-and-drop text from the PDF version of this + document): % \ensuregreek{\<'\alpha{} \accdasia\acctonos\alpha{} \accdasiaoxia\alpha{}} (LGR) vs. \accdasiaoxia\alpha{} (T1) @@ -186,22 +215,18 @@ before capital letters and dropped with MakeUppercase: % \<\alpha{} \>\epsilon{} \'\iota{} \`\eta{} \~\upsilon{} % } -\item There is no kerning between Greek letters, if the font encoding is not LGR: - compare \ensuregreek{AUA} (LGR) to \Alpha\Upsilon\Alpha (T1). Because - of this (and for proper hyphenation), use of the Babel package and - correct language setting is recommended for Greek quotes. - +\item There is no kerning between Greek letters, if the font encoding is not + LGR: compare \ensuregreek{AUA} (LGR) to \Alpha\Upsilon\Alpha (T1). + Because of this (and for proper hyphenation), use of the Babel package + and correct language setting is recommended for Greek quotes. + \end{itemize} The \verb+\ensuregreek+ TextCommandDefault ensures that the argument is -typeset with an LGR encoded font. This works with the Babel transscription -(\ensuregreek{logos}), keeps kerning (if the kerning pair is inside the -argument, \ensuregreek{\Alpha\Upsilon\Alpha}), and allows iterative accent -macros where pre-composed characters are selected -(\ensuregreek{\<'\alpha}). - -The Unicode definitions in lgrenc.dfu use this to fix the handling of -diacritics in pre-composed accented Unicode literals so literal input of, -e.g., ἅ works in any font encoding (cf. greek-unicode.pdf). +typeset with a font encoding supporting Greek. This keeps kerning (if the +kerning pair is inside the argument, \ensuregreek{\Alpha\Upsilon\Alpha}), +and allows iterative accent macros where pre-composed characters are +selected (\ensuregreek{\<'\alpha}). \end{document} + diff --git a/Master/texmf-dist/doc/latex/lgrx/alphabeta.sty.html b/Master/texmf-dist/doc/latex/lgrx/alphabeta.sty.html index 612b5fc7143..a320c720dbf 100644 --- a/Master/texmf-dist/doc/latex/lgrx/alphabeta.sty.html +++ b/Master/texmf-dist/doc/latex/lgrx/alphabeta.sty.html @@ -728,14 +728,15 @@ version 1.3 of this license or any later version.

Identification
\NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{alphabeta}
-[2013/05/03 v0.2 macros for Greek letters in text and math]
+[2013/05/28 v0.3 macros for Greek letters in text and math]
 

This package is part of the lgrx bundle.

Abstract

-

Use \alpha, \beta, ... for Greek letters in text and math.

+

Use \alpha, \beta, ... for Greek letters in text and math +mode.

Changelog:
@@ -752,7 +753,16 @@ version 1.3 of this license or any later version.

2013-05-03

0.2

-

new accent macro names with lgrxenc.def 0.7

+

new accent macro names with lgrxenc.def 0.7

+ +

2013-05-28

+

0.3

+

use lgrenc.def from greek-fontenc,

+ + + +  +

enable Unicode input in math mode

@@ -762,34 +772,44 @@ version 1.3 of this license or any later version.

Motivation

By default, the \alpha, \beta, ... macros for Greek letters are only valid in mathematical mode.

-

The textalpha package provides a set of macros that can be used to -access Greek symbols from a font in LGR encoding (e.g. the CB fonts) -without the need for an explicite font-encoding switch under the names -\textalpha, \textbeta, …, \textOmega.

With this package, the math macros are redefined to work in both, text and math mode, so that Greek letters can be specified with the established command names in text, too.

+

If used together with the utf8 option of inputenc, literal Unicode +characters can be used for Greek symbols in mathematical formulas.

Attention
-

While the macros work reasonably well for single letters, the automatic -font-encoding switches behind the doors interferes with the kerning -between the letters and replacement of accent+character with a -pre-composed character.

-

Therefore, Greek text should be written with the help of babel, setting -the language to either greek or polutonikogreek or wrapped in the -provided \ensuregreek macro.

+

The macros work well in any font encoding for single symbols.

+

However, 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 wrapped in the +provided \ensuregreek macro or written with the help of babel, +setting the language to greek.

Implementation

-

This package extends the textalpha package:

+
+

Requirements

+

This package extends the textalpha package:

\RequirePackage{textalpha}
 
+

textalpha depends on greek-fontenc and recommends greek-inputenc.

+

This package requires the e-TeX extensions (i.e. a not too old TeX +distribution) for the \ifdefined test.

It uses the \TextOrMath test from the fixltx2e standard LaTeX package:

\RequirePackage{fixltx2e}
 
+
+
+

Postpone the re-definitions

+

To prevent other packages overwriting the re-defined commands we postpone +the next steps until the start of the document body:

+
\AtBeginDocument{
+
+

Save math macros

Provide an alias for the standard math commands:

@@ -829,6 +849,9 @@ package:

\let\mathchi\chi \let\mathpsi\psi \let\mathomega\omega +% ``\digamma`` is defined by amsmath, provide a fallback +\providecommand*{\digamma}{\textit{\textdigamma}} +\let\mathdigamma\digamma
@@ -836,60 +859,75 @@ package:

For letters defined in math mode, the commands work in both, text and math.

Some Greek letters look identic to Latin letters and can therefore not be used as variable symbols in math formulas. These letters are not defined in -TeX’s math mode, we define just an alias to the corrsponding \text... +TeX’s math mode, we provide an alias to the corrsponding \text... command.

-
\newcommand{\Alpha}{\textAlpha}
-\newcommand{\Beta}{\textBeta}
-\renewcommand{\Gamma}{\TextOrMath{\textGamma}{\mathGamma}}
-\renewcommand{\Delta}{\TextOrMath{\textDelta}{\mathDelta}}
-\newcommand{\Epsilon}{\textEpsilon}
-\newcommand{\Zeta}{\textZeta}
-\newcommand{\Eta}{\textEta}
-\renewcommand{\Theta}{\TextOrMath{\textTheta}{\mathTheta}}
-\newcommand{\Iota}{\textIota}
-\newcommand{\Kappa}{\textKappa}
-\renewcommand{\Lambda}{\TextOrMath{\textLambda}{\mathLambda}}
-\newcommand{\Mu}{\textMu}
-\newcommand{\Nu}{\textNu}
-\renewcommand{\Xi}{\TextOrMath{\textXi}{\mathXi}}
-\newcommand{\Omicron}{\textOmicron}
-\renewcommand{\Pi}{\TextOrMath{\textPi}{\mathPi}}
-\newcommand{\Rho}{\textRho}
-\renewcommand{\Sigma}{\TextOrMath{\textSigma}{\mathSigma}}
-\newcommand{\Tau}{\textTau}
-\renewcommand{\Upsilon}{\TextOrMath{\textUpsilon}{\mathUpsilon}}
-\renewcommand{\Phi}{\TextOrMath{\textPhi}{\mathPhi}}
-\newcommand{\Chi}{\textChi}
-\renewcommand{\Psi}{\TextOrMath{\textPsi}{\mathPsi}}
-\renewcommand{\Omega}{\TextOrMath{\textOmega}{\mathOmega}}
+
\providecommand*{\Alpha}{\textAlpha}
+\providecommand*{\Beta}{\textBeta}
+\renewcommand*{\Gamma}{\TextOrMath{\textGamma}{\mathGamma}}
+\renewcommand*{\Delta}{\TextOrMath{\textDelta}{\mathDelta}}
+\providecommand*{\Epsilon}{\textEpsilon}
+\providecommand*{\Zeta}{\textZeta}
+\providecommand*{\Eta}{\textEta}
+\renewcommand*{\Theta}{\TextOrMath{\textTheta}{\mathTheta}}
+\providecommand*{\Iota}{\textIota}
+\providecommand*{\Kappa}{\textKappa}
+\renewcommand*{\Lambda}{\TextOrMath{\textLambda}{\mathLambda}}
+\providecommand*{\Mu}{\textMu}
+\providecommand*{\Nu}{\textNu}
+\renewcommand*{\Xi}{\TextOrMath{\textXi}{\mathXi}}
+\providecommand*{\Omicron}{\textOmicron}
+\renewcommand*{\Pi}{\TextOrMath{\textPi}{\mathPi}}
+\providecommand*{\Rho}{\textRho}
+\renewcommand*{\Sigma}{\TextOrMath{\textSigma}{\mathSigma}}
+\providecommand*{\Tau}{\textTau}
+\renewcommand*{\Upsilon}{\TextOrMath{\textUpsilon}{\mathUpsilon}}
+\renewcommand*{\Phi}{\TextOrMath{\textPhi}{\mathPhi}}
+\providecommand*{\Chi}{\textChi}
+\renewcommand*{\Psi}{\TextOrMath{\textPsi}{\mathPsi}}
+\renewcommand*{\Omega}{\TextOrMath{\textOmega}{\mathOmega}}
 %
-\renewcommand{\alpha}{\TextOrMath{\textalpha}{\mathalpha}}
-\renewcommand{\beta}{\TextOrMath{\textbeta}{\mathbeta}}
-\renewcommand{\gamma}{\TextOrMath{\textgamma}{\mathgamma}}
-\renewcommand{\delta}{\TextOrMath{\textdelta}{\mathdelta}}
-\renewcommand{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}}
-\renewcommand{\zeta}{\TextOrMath{\textzeta}{\mathzeta}}
-\renewcommand{\eta}{\TextOrMath{\texteta}{\matheta}}
-\renewcommand{\theta}{\TextOrMath{\texttheta}{\maththeta}}
-\renewcommand{\iota}{\TextOrMath{\textiota}{\mathiota}}
-\renewcommand{\kappa}{\TextOrMath{\textkappa}{\mathkappa}}
-\renewcommand{\lambda}{\TextOrMath{\textlambda}{\mathlambda}}
-\renewcommand{\mu}{\TextOrMath{\textmu}{\mathmu}}
-\renewcommand{\nu}{\TextOrMath{\textnu}{\mathnu}}
-\renewcommand{\xi}{\TextOrMath{\textxi}{\mathxi}}
-\newcommand{\omicron}{\textomicron}
-\renewcommand{\pi}{\TextOrMath{\textpi}{\mathpi}}
-\renewcommand{\rho}{\TextOrMath{\textrho}{\mathrho}}
-\renewcommand{\sigma}{\TextOrMath{\textsigma}{\mathsigma}}
-\renewcommand{\varsigma}{\TextOrMath{\textvarsigma}{\mathvarsigma}}
-\renewcommand{\tau}{\TextOrMath{\texttau}{\mathtau}}
-\renewcommand{\upsilon}{\TextOrMath{\textupsilon}{\mathupsilon}}
-\renewcommand{\phi}{\TextOrMath{\textphi}{\mathphi}}
-\renewcommand{\chi}{\TextOrMath{\textchi}{\mathchi}}
-\renewcommand{\psi}{\TextOrMath{\textpsi}{\mathpsi}}
-\renewcommand{\omega}{\TextOrMath{\textomega}{\mathomega}}
+\renewcommand*{\alpha}{\TextOrMath{\textalpha}{\mathalpha}}
+\renewcommand*{\beta}{\TextOrMath{\textbeta}{\mathbeta}}
+\renewcommand*{\gamma}{\TextOrMath{\textgamma}{\mathgamma}}
+\renewcommand*{\delta}{\TextOrMath{\textdelta}{\mathdelta}}
+\renewcommand*{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}}
+\renewcommand*{\zeta}{\TextOrMath{\textzeta}{\mathzeta}}
+\renewcommand*{\eta}{\TextOrMath{\texteta}{\matheta}}
+\renewcommand*{\theta}{\TextOrMath{\texttheta}{\maththeta}}
+\renewcommand*{\iota}{\TextOrMath{\textiota}{\mathiota}}
+\renewcommand*{\kappa}{\TextOrMath{\textkappa}{\mathkappa}}
+\renewcommand*{\lambda}{\TextOrMath{\textlambda}{\mathlambda}}
+\renewcommand*{\mu}{\TextOrMath{\textmu}{\mathmu}}
+\renewcommand*{\nu}{\TextOrMath{\textnu}{\mathnu}}
+\renewcommand*{\xi}{\TextOrMath{\textxi}{\mathxi}}
+\providecommand*{\omicron}{\textomicron}
+\renewcommand*{\pi}{\TextOrMath{\textpi}{\mathpi}}
+\renewcommand*{\rho}{\TextOrMath{\textrho}{\mathrho}}
+\renewcommand*{\sigma}{\TextOrMath{\textsigma}{\mathsigma}}
+\renewcommand*{\varsigma}{\TextOrMath{\textvarsigma}{\mathvarsigma}}
+\providecommand*{\finalsigma}{\varsigma}
+\renewcommand*{\tau}{\TextOrMath{\texttau}{\mathtau}}
+\renewcommand*{\upsilon}{\TextOrMath{\textupsilon}{\mathupsilon}}
+\renewcommand*{\phi}{\TextOrMath{\textphi}{\mathphi}}
+\renewcommand*{\chi}{\TextOrMath{\textchi}{\mathchi}}
+\renewcommand*{\psi}{\TextOrMath{\textpsi}{\mathpsi}}
+\renewcommand*{\omega}{\TextOrMath{\textomega}{\mathomega}}
+
+
+

Archaic letters

+
\renewcommand*{\digamma}{\TextOrMath{\textdigamma}{\mathdigamma}} % ϝ
+\providecommand*{\Digamma}{\textDigamma}     % Ϝ
+\providecommand*{\stigma}{\textstigma}       % ϛ
+\providecommand*{\varstigma}{\textvarstigma} % stigma variant (CB.enc, teubner)
+\providecommand*{\koppa}{\textkoppa}         % ϟ (greek small letter koppa)
+\providecommand*{\qoppa}{\textqoppa}         % ϙ (archaic koppa)
+\providecommand*{\Qoppa}{\textQoppa}         % Ϙ (archaic Koppa)
+\providecommand*{\Stigma}{\textStigma}       % Ϛ (in some fonts ϹΤ ligature)
+\providecommand*{\Sampi}{\textSampi}         % Ϡ
+\providecommand*{\sampi}{\textsampi}         % ϡ
 
+

TextCompositeCommands for the generic macros

The NFSS TextComposite mechanism looks for the next token without expanding @@ -1040,8 +1078,62 @@ is LGR).

\DeclareTextCompositeCommand{\accvaria}{LGR}{\Omega}{`W} \DeclareTextComposite{\accdialytika}{LGR}{\Iota}{219} \DeclareTextComposite{\accdialytika}{LGR}{\Upsilon}{223} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{\Alpha}{\A@hiatus} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{\Epsilon}{\E@hiatus} +\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Alpha}{\LGR@A@hiatus} +\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Epsilon}{\LGR@E@hiatus} + +
+
+

Re-definition for Greek Unicode input in math mode

+

Check with \ifdefined for the definition of +\DeclareUnicodeCharacter. In contrast to \@ifdefined, this works +without side-effects. It makes, however, the package dependent on the e-TeX +extensions. Alternatively, we could provide a dummy definition

+
\providecommand*{\DeclareUnicodeCharacter}[2]{}
+
+

Map Greek characters that are also defined in math mode to the generic +macros:

+
\ifdefined\DeclareUnicodeCharacter
+  \DeclareUnicodeCharacter{0393}{\Gamma}   % Γ
+  \DeclareUnicodeCharacter{0394}{\Delta}   % Δ
+  \DeclareUnicodeCharacter{0398}{\Theta}   % Θ
+  \DeclareUnicodeCharacter{039B}{\Lambda}  % Λ
+  \DeclareUnicodeCharacter{039E}{\Xi}      % Ξ
+  \DeclareUnicodeCharacter{03A0}{\Pi}      % Π
+  \DeclareUnicodeCharacter{03A3}{\Sigma}   % Σ
+  \DeclareUnicodeCharacter{03A5}{\Upsilon} % Υ
+  \DeclareUnicodeCharacter{03A6}{\Phi}     % Φ
+  \DeclareUnicodeCharacter{03A8}{\Psi}     % Ψ
+  \DeclareUnicodeCharacter{03A9}{\Omega}   % Ω
+
+  \DeclareUnicodeCharacter{03B1}{\alpha}    % α
+  \DeclareUnicodeCharacter{03B2}{\beta}     % β
+  \DeclareUnicodeCharacter{03B3}{\gamma}    % γ
+  \DeclareUnicodeCharacter{03B4}{\delta}    % δ
+  \DeclareUnicodeCharacter{03B5}{\epsilon}  % ε
+  \DeclareUnicodeCharacter{03B6}{\zeta}     % ζ
+  \DeclareUnicodeCharacter{03B7}{\eta}      % η
+  \DeclareUnicodeCharacter{03B8}{\theta}    % θ
+  \DeclareUnicodeCharacter{03B9}{\iota}     % ι
+  \DeclareUnicodeCharacter{03BA}{\kappa}    % κ
+  \DeclareUnicodeCharacter{03BB}{\lambda}   % λ
+  \DeclareUnicodeCharacter{03BC}{\mu}       % μ
+  \DeclareUnicodeCharacter{03BD}{\nu}       % ν
+  \DeclareUnicodeCharacter{03BE}{\xi}       % ξ
+  \DeclareUnicodeCharacter{03C0}{\pi}       % π
+  \DeclareUnicodeCharacter{03C1}{\rho}      % ρ
+  \DeclareUnicodeCharacter{03C2}{\varsigma} % ς
+  \DeclareUnicodeCharacter{03C3}{\sigma}    % σ
+  \DeclareUnicodeCharacter{03C4}{\tau}      % τ
+  \DeclareUnicodeCharacter{03C5}{\upsilon}  % υ
+  \DeclareUnicodeCharacter{03C6}{\phi}      % φ
+  \DeclareUnicodeCharacter{03C7}{\chi}      % χ
+  \DeclareUnicodeCharacter{03C8}{\psi}      % ψ
+  \DeclareUnicodeCharacter{03C9}{\omega}    % ω
+
+  \DeclareUnicodeCharacter{03DD}{\digamma}  % ϝ
+\fi
+
+
} % close the \AtBeginDocument macro
 
diff --git a/Master/texmf-dist/doc/latex/lgrx/diacritics.pdf b/Master/texmf-dist/doc/latex/lgrx/diacritics.pdf deleted file mode 100644 index f95d245f6c7..00000000000 Binary files a/Master/texmf-dist/doc/latex/lgrx/diacritics.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/lgrx/diacritics.tex b/Master/texmf-dist/doc/latex/lgrx/diacritics.tex deleted file mode 100644 index bef04ff61a2..00000000000 --- a/Master/texmf-dist/doc/latex/lgrx/diacritics.tex +++ /dev/null @@ -1,183 +0,0 @@ -% Test definitions for accents and composite accents in Greek -\documentclass[a4paper,british,polutonikogreek]{article} -\pagestyle{empty} -\usepackage[margin=2.5cm]{geometry} -\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader - -\usepackage% -{lmodern} -% {gfsartemisia} -% {gfsbaskerville} -% [default]{gfsbodoni} -% [default]{gfscomplutum} -% {gfsdidot} -% [default]{gfsneohellenic} -% {lmodern} \usepackage{gfsporson} \renewcommand*\rmdefault{porson} -% [default]{gfssolomos} -% {kerkis} -% {teubner} -% \renewcommand{\ttdefault}{txtt} - -% Load the extended font encoding definitions (after font package) -\usepackage[LGRx,T1]{fontenc} - -\usepackage{listings} -\lstset{basicstyle=\ttfamily} - -% Babel package:: - -\usepackage{babel} -% revert the polutonikogreek definition of \~: -\addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}} -\addto\extrasgreek{\renewcommand*{\~}{\a~}} - -% "Lipsiakos" italic font `cbleipzig`: -\newcommand*{\lishape}{\fontencoding{LGR}\fontfamily{cmr}% - \fontshape{li}\selectfont} -\DeclareTextFontCommand{\textli}{\lishape} - - -\begin{document} - -\selectlanguage{british} - -\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. -Diacritics can be input using an extension of the standard macro -commands with composite diacritics input as -backslash followed by the LGR transliteration.% -\footnote{This makes it easy to follow the advise in - \emph{teubner-doc}: ``typeset your paper with the regular - accent vowel ligatures and [{\ldots}] substitute them in the - final revision with the accented vowel macros only in those - instances where the lack of kerning is disturbing''.} - -The example in greek-usage.pdf: -% -\begin{quote} \selectlanguage{greek} - T\'i f\'hic? \enj\'ede pa\~id'' - \>eleuj\'eran t\`ac plhs\'ion N\'umfac stefano\~usan, - S\'wstrate, \>er\~wn \'ap\~hljec e\>uj\'uc? -\end{quote} -can be input as -\begin{lstlisting} - T\'i f\'hic? \enj\'ede pa\~id'' - \>eleuj\'eran t\`ac plhs\'ion N\'umfac stefano\~usan, - S\'wstrate, \>er\~wn \'ap\~hljec e\>uj\'uc? -\end{lstlisting} -% -Improvements: -% -\begin{itemize} - -\item Accents can be placed on any character:% - \footnote{Babel's \emph{polutonikogreek} option re-defines - \textbackslash\textasciitilde (even for - Latin with \textbackslash textlatin). - This document reverts the babel definition in the preamble - to make the tilde/perispomeni-accent work as usual in both, - English (\textgreek{ni\~n\~o} ni\~n\~o) and Greek % - % (\foreignlanguage{greek}{ni\~n\~o \textlatin{ni\~n\~o}}). - .} - \textgreek{\"k \`l \'m \~'p \>9 \`\>-} - -\item Kerning is preserved - \selectlanguage{greek} - \begin{tabular}[t]{llll} - & \textlatin{roman} & \textlatin{italic} & \textlatin{cbleipzig} \\ - \foreignlanguage{british}{accent macro:} & - a\>ut'os & \emph{a\>ut\'os} & \textli{a\>ut\'os} \\ - \foreignlanguage{british}{transliteration:} & - a>ut'os & \emph{a>ut'os} & \textli{a>ut'os}\\ - \end{tabular} - \selectlanguage{british} - - Like in any font encoding, kerning only works with pre-composed glyphs: - \textgreek{A\"UA $\ne$ A\~UA}, AVA $\ne$ A\~VA. - -\item Compatible with hyperref (see greekhyperref.pdf). - -\item Following Greek typesetting convention, diacritics (except the - dialytika) are placed to the left of capital letters and and dropped - by \verb|\MakeUppercase|: - - \begin{quote} \selectlanguage{greek} - \'antropos $\mapsto$ \MakeUppercase{\'antropos}, - \>'antropos $\mapsto$ \MakeUppercase{\>'antropos},\\ - Aqill\'eas $\mapsto$ \MakeUppercase{Aqill\'eas}, - \>Aqille\'us $\mapsto$ \MakeUppercase{\>Aqille\'us}. - \end{quote} - - The dialytika is printed even in cases where it's not needed - in lowercase: % the "hiatus" feature - \begin{quote} \selectlanguage{greek} - \'aulos $\mapsto$ \MakeUppercase{\'aulos}, - \'>aulos $\mapsto$ \MakeUppercase{\'\>aulos}, - % from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ - m\'aina $\mapsto$ \MakeUppercase{m\'aina},\\ - % from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema - % κέικ, ἀυπνία/αϋπνία - k\'eik, $\mapsto$ \MakeUppercase{k\'eik}, - \>aupn\'ia $\mapsto$ \MakeUppercase{\>aupn\'ia}. - \end{quote} -\end{itemize} - -\selectlanguage{british} Composite diacritics can be specified as -backslash + LGR transliteration or combined accent macros, -e.\,g. \textgreek{\~>a} can be written as -\begin{quote} - \verb+\~>a+, \verb+\>~a+, - \verb+\~\>{a}+, or \verb+\~\>a+. -\end{quote} -However, braces in composite accents -(\verb+\~{\>a}+, \verb+\~{>a}+, or \verb+\~{\>{a}}+) -lead to errors. - -\verb+\MakeUppercase+ works with most input variants -but fails with -% -\begin{itemize} -\item \verb+\"`+, \verb+\"'+ or \verb+\>'+ if the language is \texttt{greek} - or \texttt{polutonikogreek} (which maps \texttt{'} and \texttt{`} - to an empty character preventing the correct placing of the dialytika - via TextComposite definitions - \foreignlanguage{polutonikogreek}{\"'u $\mapsto$ \MakeUppercase{\"'u}, - \"`u $\mapsto$ \MakeUppercase{\"`u}, - \>'aulos $\mapsto$ \MakeUppercase{\>'aulos}}), - or -\item a tilde in a document which does \textbf{not} define - the \texttt{greek} or \texttt{polutonikogreek} language (it will - produce a no-break space). -\end{itemize} -% -Combining ``symbol macros'' (\verb+\"\' \>\' \>\~+) or reversing the order -(\verb+\'" \'> \~>+) resolves these cases. -% Test: -\begin{quote} \selectlanguage{greek} - % \~>a $\mapsto$ \MakeUppercase{\~>a}, - % \'>e $\mapsto$ \MakeUppercase{\'o $\mapsto$ \MakeUppercase{\'>o}, - \"\'u $\mapsto$ \MakeUppercase{\"\'u}, - \"\`u $\mapsto$ \MakeUppercase{\"\`u}, - % \'>w $\mapsto$ \MakeUppercase{\'>w}, - \>\'aulos $\mapsto$ \MakeUppercase{\>\'aulos} -\end{quote} - -Accent macros can start with \verb|\a| instead of \verb|\| when the -short form is redefined, e.\,g. inside a \emph{tabbing} environment. -This also works for the new-defined Dasia and Psili shortcuts -(\verb|\a<| and \verb|\a>|): -% -\begin{quote} -\selectlanguage{greek} -\begin{tabbing} -T'i f'hic? \= T\a'i f\a'hic? \\ - \a>enj\a'ede pa\a~id -\end{tabbing} -\end{quote} - -\end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf deleted file mode 100644 index e7b073bc7fe..00000000000 Binary files a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex deleted file mode 100644 index 2a2b10ccc03..00000000000 --- a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex +++ /dev/null @@ -1,338 +0,0 @@ -\documentclass[a4paper]{article} -\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader -\usepackage[T1]{fontenc} -\usepackage[utf8]{inputenc} -\usepackage{textalpha} -% \usepackage{textcomp} -\usepackage{hyperref,bookmark} -\usepackage{parskip} -\usepackage{booktabs} - -\usepackage{lmodern} -% \usepackage{kerkis} -% \usepackage{gfsdidot} - -% The document should work with and without babel: -% \usepackage[greek,english]{babel} -\usepackage[polutonikogreek,english]{babel} -% revert the polutonikogreek definition of \~: -\addto\extraspolutonikogreek{\renewcommand*{\~}{\a~}} -\addto\extrasgreek{\renewcommand*{\~}{\a~}} - - -\begin{document} - -\section*{Greek Unicode with \texttt{lgrenc.dfu}} - -The definitions in \texttt{lgrenc.dfu} provide standards-compatible UTF-8 -support for Greek based on the LICRs (LaTeX internal character -representations) defined in \texttt{lgrxenc.def}. - -Like other \emph{inputenc} Unicode definitions, they only work for text -in the correct font encoding (in this case LGR). -% e.g. Π produces: -% ! LaTeX Error: Command \textPi unavailable in encoding T1. -% just like Ж produces: -% ! LaTeX Error: Command \CYRZH unavailable in encoding T1. -% -The font encoding is automatically set to LGR by babel for the languages -\emph{greek} and \emph{polutonikogreek}. - -With the combination -% -\begin{verbatim} - \usepackage[utf8]{inputenc} - \usepackage{textalpha} -\end{verbatim} -% -Greek Unicode literals can be used in text with any font encoding just like -the symbols provided by package ``textcomp'' (i.e. with some -limitations to kerning, MakeUppercase/MakeLowercase and multiple accents, -described in \href{textalpha-test.pdf}{textalpha-test}). - - -\section{Supported Characters} - -Unicode definitions exist for all non-ASCII characters that can be rendered -with an LGR-encoded font. - -\subsection{Greek and Coptic} - -legend: * glyph missing in LGR, · Unicode point not defined - -\begin{tabular}{rrrrrrrrrrrrrrrrr} -\toprule - & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ -\midrule -370 & * & * & * & * & ʹ & ͵ & * & * & · & · & ͺ & * & * & * & ; & \\ -380 & · & · & · & · & ΄ & ΅ & Ά & · & Έ & Ή & Ί & · & Ό & · & Ύ & Ώ\\ -390 & ΐ & Α & Β & Γ & Δ & Ε & Ζ & Η & Θ & Ι & Κ & Λ & Μ & Ν & Ξ & Ο\\ -3A0 & Π & Ρ & · & Σ & Τ & Υ & Φ & Χ & Ψ & Ω & Ϊ & Ϋ & ά & έ & ή & ί\\ -3B0 & ΰ & α & β & γ & δ & ε & ζ & η & θ & ι & κ & λ & μ & ν & ξ & ο\\ -3C0 & π & ρ & ς & σ & τ & υ & φ & χ & ψ & ω & ϊ & ϋ & ό & ύ & ώ & \\ -3D0 & * & * & * & * & * & * & * & * & Ϙ & ϙ & Ϛ & ϛ & Ϝ & ϝ & * & ϟ\\ -3E0 & Ϡ & ϡ & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ -3F0 & * & * & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ -\bottomrule -\end{tabular} - -\subsection{Greek Extended} - -\begin{tabular}{rrrrrrrrrrrrrrrrr} -\toprule - & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ -\midrule - 1F00 & ἀ & ἁ & ἂ & ἃ & ἄ & ἅ & ἆ & ἇ & Ἀ & Ἁ & Ἂ & Ἃ & Ἄ & Ἅ & Ἆ & Ἇ\\ - 1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & · & · & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & · & ·\\ - 1F20 & ἠ & ἡ & ἢ & ἣ & ἤ & ἥ & ἦ & ἧ & Ἠ & Ἡ & Ἢ & Ἣ & Ἤ & Ἥ & Ἦ & Ἧ\\ - 1F30 & ἰ & ἱ & ἲ & ἳ & ἴ & ἵ & ἶ & ἷ & Ἰ & Ἱ & Ἲ & Ἳ & Ἴ & Ἵ & Ἶ & Ἷ\\ - 1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & · & · & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & · & ·\\ - 1F50 & ὐ & ὑ & ὒ & ὓ & ὔ & ὕ & ὖ & ὗ & · & Ὑ & · & Ὓ & · & Ὕ & · & Ὗ\\ - 1F60 & ὠ & ὡ & ὢ & ὣ & ὤ & ὥ & ὦ & ὧ & Ὠ & Ὡ & Ὢ & Ὣ & Ὤ & Ὥ & Ὦ & Ὧ\\ - 1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & · & ·\\ - 1F80 & ᾀ & ᾁ & ᾂ & ᾃ & ᾄ & ᾅ & ᾆ & ᾇ & ᾈ & ᾉ & ᾊ & ᾋ & ᾌ & ᾍ & ᾎ & ᾏ\\ - 1F90 & ᾐ & ᾑ & ᾒ & ᾓ & ᾔ & ᾕ & ᾖ & ᾗ & ᾘ & ᾙ & ᾚ & ᾛ & ᾜ & ᾝ & ᾞ & ᾟ\\ - 1FA0 & ᾠ & ᾡ & ᾢ & ᾣ & ᾤ & ᾥ & ᾦ & ᾧ & ᾨ & ᾩ & ᾪ & ᾫ & ᾬ & ᾭ & ᾮ & ᾯ\\ - 1FB0 & ᾰ & ᾱ & ᾲ & ᾳ & ᾴ & · & ᾶ & ᾷ & Ᾰ & Ᾱ & Ὰ & Ά & ᾼ & ᾽ & ι & ᾿\\ - 1FC0 & ῀ & ῁ & ῂ & ῃ & ῄ & · & ῆ & ῇ & Ὲ & Έ & Ὴ & Ή & ῌ & ῍ & ῎ & ῏\\ - 1FD0 & ῐ & ῑ & ῒ & ΐ & · & · & ῖ & ῗ & Ῐ & Ῑ & Ὶ & Ί & · & ῝ & ῞ & ῟\\ - 1FE0 & ῠ & ῡ & ῢ & ΰ & ῤ & ῥ & ῦ & ῧ & Ῠ & Ῡ & Ὺ & Ύ & Ῥ & ῭ & ΅ & `\\ - 1FF0 & · & · & ῲ & ῳ & ῴ & · & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & ·\\ -\bottomrule -\end{tabular} - - -\subsection{Other Unicode Blocks} - -Latin-1 Supplement: \ensuregreek{¨ « ¯ ´ · »} - -IPA Extensions: \ensuregreek{ə} - -Spacing Modifier Letters: \ensuregreek{˘a} (here followed by letter alpha) - -General Punctuation: \ensuregreek{– — ‘ ’ ‰} ZWNJ (zero width no joiner, -prevents kerning and ligatures, e.g. \ensuregreek{A‌‌U} vs. \ensuregreek{AU} and -\ensuregreek{'‌a} vs. \ensuregreek{'a}) - -Currency Symbols: \ensuregreek{€} - -Letterlike Symbols: Ω % OHM SIGN, preferred representation is 03A9 - -Ancient Greek Numbers: -𐅄 % \textPiDelta{} % GREEK ACROPHONIC ATTIC FIFTY -𐅅 % \textPiEta{} % GREEK ACROPHONIC ATTIC FIVE HUNDRED -𐅆 % \textPiChi{} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -𐅇 % \textPiMu{} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND - - -\section{MakeUppercase, MakeLowercase} - -Capital Greek letters have diacritics (except the dialytika) to the left -(instead of above) and drop them in uppercase, e.g. -\ensuregreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}. - -Tonos and dasia on the first vowel of a diphthong (\ensuregreek{άι, άυ, έι}) -imply a \emph{hiatus}. A dialytika must be placed on the second -vowel if they are dropped (\ensuregreek{\MakeUppercase{\'ai, \'au, \'ei}}). - -The auto-hiatus feature in lgrxenc.def works nice with the Latin -transcription and with character-macros (% -\ensuregreek{\MakeUppercase{% - \'ai, - \'\textalpha \textupsilon, - \'\textepsilon \textiota -}}) -and also if the first character is wrapped in \verb+\ensuregreek+ (as done by -the lgrenc.dfu definition for accented characters) or a literal Unicode -character -(\ensuregreek{\MakeUppercase{% - \ensuregreek{\'\textalpha}\textiota, - ά\textupsilon, - ά\textiota -}}) -but not if the second character of the diphthong is a Unicode literal -(\ensuregreek{\MakeUppercase{% - \'\textalpha ι, - άυ, - \'\textepsilon ι -}}). - -Therefore, the diaresis is missing in the following examples: -\ensuregreek{άυλος $\mapsto$ \MakeUppercase{άυλος}, - ἄυλος $\mapsto$ \MakeUppercase{ἄυλος}, - μάινα $\mapsto$ \MakeUppercase{μάινα}, - κέικ, $\mapsto$ \MakeUppercase{κέικ}, - ἀυπνία $\mapsto$ \MakeUppercase{ἀυπνία}}. - -Fixing this shortcoming requires knowledge of what the -\verb+\LGR@ifnextchar+ ``sees'' when the next character is an upcased -Unicode literal. - -As an ugly workaround, use \verb+\textiota+ resp. \verb+\textupsilon+ -for the character that should get the diaresis: -\ensuregreek{ἀ\textupsilon{}πνία $\mapsto$ \MakeUppercase{ἀ\textupsilon{}πνία}}. - - - -The following subsections test MakeUppercase and MakeLowercase with all -characters defined in lgrenc.dfu: - -\subsection{Greek and Coptic} - -\newcommand{\GreekAndCoptic}{ʹ͵ͺ; ΄ ΅ Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϘϚϜϠ} -\newcommand{\greekandcoptic}{άέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϙϛϝϟϡ} - -Characters of the Greek and Coptic Unicode Block: - -\begin{quote} - \GreekAndCoptic\\ - \greekandcoptic -\end{quote} - -MakeUppercase: - -\begin{quote} - \MakeUppercase{\GreekAndCoptic}\\ - \MakeUppercase{\greekandcoptic} -\end{quote} - -Letters and ypogegrammeni upcased, tonos dropped, dialytika kept. - -There is no capital Koppa in LGR, therefore ϟ is left unchanged -with MakeUppercase. - - -MakeLowercase: - -\begin{quote} - \MakeLowercase{\GreekAndCoptic}\\ - \MakeLowercase{\greekandcoptic} -\end{quote} - -The lowercase of Σ is the «auto-sigma» (\verb+\textautosigma+): -\ensuregreek{ΣΣ $\mapsto$ \MakeLowercase{ΣΣ}}. Add a ZWNJ or use the -\verb+\noboundary+ macro to prevent conversion to final sigma: -\ensuregreek{\MakeLowercase{ΣΣ‌}}. The lowercase of GREEK LETTER STIGMA Ϛ is -\MakeLowercase{Ϛ}. - -\newpage - -\subsection{Greek extended} - -MakeUppercase: - -\selectlanguage{greek} - -\MakeUppercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ -\MakeUppercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ -\MakeUppercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ -\MakeUppercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ -\MakeUppercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ -\MakeUppercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ -\MakeUppercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ -\MakeUppercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ -\MakeUppercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ -\MakeUppercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ -\MakeUppercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ -\MakeUppercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ -\MakeUppercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ -\MakeUppercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ -\MakeUppercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ -\MakeUppercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } - -\selectlanguage{english} -MakeLowercase: - -\MakeLowercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ -\MakeLowercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ -\MakeLowercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ -\MakeLowercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ -\MakeLowercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ -\MakeLowercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ -\MakeLowercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ -\MakeLowercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ -\MakeLowercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ -\MakeLowercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ -\MakeLowercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ -\MakeLowercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ -\MakeLowercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ -\MakeLowercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ -\MakeLowercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ -\MakeLowercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } - -\subsection{Other Unicode Blocks} - -MakeUppercase works without effect on non-letter symbols and the letter shwa: - -\ensuregreek{ -\MakeUppercase{¨ « ¯ ´ · »} -\MakeUppercase{ə} -\MakeUppercase{˘a} -\MakeUppercase{– — ‘ ’ ‰ a‌u} -\MakeUppercase{€} -% \MakeUppercase{Ω} -\MakeUppercase{ -𐅄 % GREEK ACROPHONIC ATTIC FIFTY -𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED -𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND -𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -} -} - -MakeLowercase works without effect on non-letter symbols, too: - -\ensuregreek{ -\MakeLowercase{¨ « ¯ ´ · »} -\MakeLowercase{ə} -\MakeLowercase{˘A} -\MakeLowercase{– — ‘ ’ ‰ A‌‌U} -\MakeLowercase{€} -% \MakeLowercase{Ω} -\MakeLowercase{ -𐅄 % GREEK ACROPHONIC ATTIC FIFTY -𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED -𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND -𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -} -} -\end{document} - - -Problems with text-extraction from PDF with Kerkis: - - 0 1 2 3 4 5 6 7 8 9 A B C D E F -370 * * * * ΄ ͵ * * ι * * * ; -380 ΄ ΅ ΄Α ΄Ε ΄Η ΄Ι ΄Ο ΄Υ ΄Ω -390 ΐ Α Β Γ ∆ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο -3Α0 Π Ρ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί -3Β0 ΰ α ϐ γ δ ε Ϲ η ϑ ι κ λ µ ν ξ ο -3῝0 π ϱ ς σ τ υ ϕ χ ψ ω ϊ ϋ ό ύ ώ -3∆0 * * * * * * * * Ϟ Ϝ ϝ Ϝ ϝ * ϟ -3Ε0 ϡ * * * * * * * * * * * * * * -3Φ0 * * * * * * * * * * * * * * * * - - -0387 GREEK ANO TELEIA missing -03B6 zeta replaced by 03F9 GREEK CAPITAL LUNATE SIGMA SYMBOL -03B8 GREEK SMALL LETTER THETA replaced by 03D1 GREEK THETA SYMBOL -03C1 GREEK SMALL LETTER RHO replaced by 03F1 GREEK RHO SYMBOL -03C6 GREEK SMALL LETTER PHI replaced by 03D5 GREEK PHI SYMBOL - - -and GFS Didot: - - 0 1 2 3 4 5 6 7 8 9 A B C D E F -370 * * * * ´ ͵ * * ι * * * ; -380 ´ ῆ Α - ´ ´ ´Ε ´Η ´Ι ´Ο ´Υ ´Ω -390 ῆ ´ι Α Β Γ ∆ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο -3Α0 Π Ρ Σ Τ Υ Φ Χ Ψ Ω ῆ - Ι ῆ - Υ ά έ ή ί -3Β0 ῆ ´υ α β γ δ ε ζ η ϑ ι κ λ μ ν ξ ο - 3῝0 π ρ ς σ τ υ φ χ ψ ω ι - ῆ υ - ῆ ό ύ ώ -3∆0 * * * * * * * * Ϛ Ϝ Ϝ * Ϟ -3Ε0 * * * * * * * * * * * * * * -3Φ0 * * * * * * * * * * * * * * * * diff --git a/Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf b/Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf deleted file mode 100644 index 053f94c5de3..00000000000 Binary files a/Master/texmf-dist/doc/latex/lgrx/greekhyperref.pdf and /dev/null differ diff --git a/Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex b/Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex deleted file mode 100644 index f8163fdcb99..00000000000 --- a/Master/texmf-dist/doc/latex/lgrx/greekhyperref.tex +++ /dev/null @@ -1,113 +0,0 @@ -\documentclass{article} -\usepackage{fixltx2e} % LaTeX patches, \textsubscript -\usepackage{cmap} % fix search and cut-and-paste in Acrobat -\usepackage[LGR,T1]{fontenc} -\usepackage{lmodern} - -\usepackage[greek,english]{babel} -\usepackage{alphabeta} -\usepackage[utf8]{inputenc} - -\usepackage[unicode,colorlinks=true,linkcolor=blue]{hyperref} -\usepackage{bookmark} - -% \pagestyle{headings} - -\begin{document} - -\title{Greek and hyperref} -\maketitle - -\noindent -On 2010-11-05, Heiko Oberdiek wrote in comp.text.tex: -% -\begin{quote} - \textbackslash pdfstringdef (converting TeX code to PDF strings for - bookmarks) supports NFSS2 and needs active characters. Encoding - stuff based on the internal font machinery of TeX (letters with - catcode 11 or 12, ligatures) does not work, because the strings - don't reach TeX's stomach. -\end{quote} -% -The \emph{lgrx} bundle allows input of Greek characters that work in both, -the main document as well as in PDF strings (e.g. bookmarks). - - -\section{Transcription: \TextGreek{logos}, \foreignlanguage{greek}{logos}} - -\textbackslash{}textgreek + LGR transcription or -Greek language (babel) + LGR transcription: -In the PDF-bookmark are Latin letters instead of Greek ones. - - -\section{Macros: - \textlambda\textomicron\textgamma\textomicron\textvarsigma{}, - \lambda\omicron\gamma\omicron\varsigma{}, - λογος} - -textalpha package with \textbackslash{}textgreek* macros, -alphabeta package with \textbackslash{}alpha ... \textbackslash{}Omega macros, -and literal Greek Unicode characters (using \textbackslash{}textgreek* -macros internally). - -Works, if the "unicode" option is given to hyperref. -(With xpdf, Greek letters are not shown in PDF bookmarks.) - -The generic short macros from the \emph{alphabeta} package result in -hyperref warnings: -\begin{verbatim} - Package hyperref Warning: Token not allowed in a PDF string (Unicode): - (hyperref) removing `\TextOrMath ' on input line 44. - - Package hyperref Warning: Token not allowed in a PDF string (Unicode): - (hyperref) removing `\mathlambda' on input line 44. -\end{verbatim} -However, the warnings can be ignored and the output is OK. - -\section{LGR + Macros: \foreignlanguage{greek}{ - \textlambda\textomicron\textgamma\textomicron\textvarsigma{}}} - -LICR-macro input works also if the font encoding is LGR. - -\section{% - Kerning: \textAlpha\textUpsilon\textLambda{} - \TextGreek{\textAlpha\textUpsilon\textLambda} - \foreignlanguage{greek}{\textAlpha\textUpsilon\textLambda}% -} - -Kerning is impossible if the font encoding is switched for every single -character. Wrap the Greek part in a command switching to LGR font encoding -to fix this, either \verb+\TextGreek{...}+ (with package textalpha) or -\verb+\foreignlanguage{greek}{...}+ (with babel). - -% letters of the Greek and Coptic Unicode Block supported by LGR: -\newcommand{\GreekAndCoptic}{ʹ͵ͺ; ΄ ΅ Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϘϚϜϠ} -\newcommand{\greekandcoptic}{άέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϙϛϝϟϡ} - -\section{Supported Unicode chars} -\subsection{\GreekAndCoptic} -\subsection{\greekandcoptic} -\subsection{ἀἁἂἃἄἅἆἇἈἉἊἋἌἍἎἏ ἐἑἒἓἔἕἘἙἚἛἜἝ} -\subsection{ἠἡἢἣἤἥἦἧἨἩἪἫἬἭἮἯ ἰἱἲἳἴἵἶἷἸἹἺἻἼἽἾἿ} -\subsection{ὀὁὂὃὄὅὈὉὊὋὌὍ ὐὑὒὓὔὕὖὗὙὛὝὟ} -\subsection{ὠὡὢὣὤὥὦὧὨὩὪὫὬὭὮὯ ὰάὲέὴήὶίὸόὺύὼώ} -\subsection{ᾀᾁᾂᾃᾄᾅᾆᾇᾈᾉᾊᾋᾌᾍᾎᾏ ᾐᾑᾒᾓᾔᾕᾖᾗᾘᾙᾚᾛᾜᾝᾞᾟ} -\subsection{ᾠᾡᾢᾣᾤᾥᾦᾧᾨᾩᾪᾫᾬᾭᾮᾯ ᾰᾱᾲᾳᾴᾶᾷᾸᾹᾺΆᾼ᾽ι᾿} -\subsection{῀῁ῂῃῄῆῇῈΈῊΉῌ῍῎῏ ῐῑῒΐῖῗῘῙῚΊ῝῞῟} -\subsection{ῠῡῢΰῤῥῦῧῨῩῪΎῬ῭΅` ῲῳῴῶῷῸΌῺΏῼ´῾} - -\section{non-standard and multi-accents: \TextGreek{\>a \'"a}} - -Currently, there is no hyperref support for LICR input with non-standard -accents or multi-accented characters. - -\section{Conclusion} - -For Greek text parts in section headers use either literal Unicode -characters or macros. For multi-accented letters or non-standard accents, -use literal Unicode chars. - -For proper kerning in the main document, combine this with the -\verb+\textgreek+ or \verb+\foreignlanguage{greek}+ macros. - -\end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu b/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu deleted file mode 100644 index 21665dd6dee..00000000000 --- a/Master/texmf-dist/doc/latex/lgrx/lgrenc.dfu +++ /dev/null @@ -1,517 +0,0 @@ -% lgrenc.dfu: Greek Unicode support using LGR fonts -% ================================================== -% -% :Copyright: © 2010 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{lgrenc.dfu}[2012/07/03 0.2 UTF-8 support for Greek] - -% This package is part of the lgrx_ bundle. -% -% Based on a `babel patch`_ by Werner Lemberg, with input from the ucs_ -% package (``ucsencs.def``) by Dominique Unruh and ``CB.enc`` by -% Apostolos Syropoulos. -% -% Changelog: -% .. class:: borderless -% -% ========== ===== ========================================================= -% 2010-06-16 0.1 initial version -% 2012-06-27 0.2 support for accented Greek characters with textalpha_ -% 2013-05-03 0.2 new accent macro names with lgrxenc.def 0.7 -% ========== ===== ========================================================= -% -% Usage -% ----- -% -% Requires extended font encoding definitions from ``lgrxenc.def``: -% -% ``\usepackage[LGRx,T1]{fontenc}`` % define LGR and T1 encodings -% ``\usepackage[utf8]{inputenc}`` % standard UTF-8 input encoding -% -% .. Note:: as the LGRx option define the ``LGR`` (not ``LGRx``) font -% encoding, it cannot be given as last option! Use, e.g., -% ``\usepackage[LGRx,T1,LGR]{fontenc}`` to make LGR the default. -% -% By default, text containing Greek Unicode characters must be marked as -% requiring a font encoding that supports Greek script, e.g. by setting the -% language to ``greek`` or ``polutonikogreek``. This is a generic feature of -% inputenc_'s `utf8` option (an equivalent restriction holds for the Cyrillic -% script). -% -% With the textalpha_ or alphabeta_ packages of this bundle, Greek Unicode -% literals can be used without special markup also in non-Greek documents: -% -% ``\usepackage[utf8]{inputenc}`` % standard UTF-8 input encoding -% ``\usepackage[T1]{fontenc}`` % use T1 font encoding as default -% ``\usepackage{textalpha}`` % also loads lgrxenc.def -% -% -% Character Declarations -% ---------------------- -% -% Some characters exist in other font encodings too. Care has been taken -% to ensure the definitions match with other ``*.dfu`` and ``*enc.def`` -% files. -% -% Use ``\ensuregreek`` for composite definitions of Unicode characters to make -% sure accented characters work in any font encoding if the textalpha_ package -% is used. -% -% The order of parts in composite diacritics matches the Unicode names. -% Exceptions are ``\`"`` and ``\'"`` to keep ``\MakeUppercase`` working with -% babel's "greek" option (upcasing of oxia and tonos to an empty character -% prevents selection of the pre-composed character with dialytika). Also, the -% perispomeni ``~`` is never used in second position as otherwise -% Makeuppercase fails if the document does not use babel's "greek" or -% "polutonikogreek" option (the tilde beeing converted to a no-break space). -% -% -% Latin-1 Supplement (T1) -% ~~~~~~~~~~~~~~~~~~~~~~~ -% :: - -\DeclareUnicodeCharacter{00A8}{\textasciidieresis} % ¨ -\DeclareUnicodeCharacter{00AB}{\guillemotleft} % « -\DeclareUnicodeCharacter{00AF}{\textasciimacron} % ¯ -\DeclareUnicodeCharacter{00B4}{\textasciiacute} % ´ -\DeclareUnicodeCharacter{00B7}{\textperiodcentered} % · -\DeclareUnicodeCharacter{00BB}{\guillemotright} % » - -% IPA Extensions (T3) -% ~~~~~~~~~~~~~~~~~~~ -% :: - -\DeclareUnicodeCharacter{0259}{\textschwa} % ə - -% Spacing Modifier Letters -% ~~~~~~~~~~~~~~~~~~~~~~~~ -% :: - -\DeclareUnicodeCharacter{02D8}{\textasciibreve} % ˘ - -% General Punctuation -% ~~~~~~~~~~~~~~~~~~~ -% :: - -\DeclareUnicodeCharacter{200C}{\textcompwordmark} % ZWNJ -\DeclareUnicodeCharacter{2013}{\textendash} % – -\DeclareUnicodeCharacter{2014}{\textemdash} % — -\DeclareUnicodeCharacter{2018}{\textquoteleft} % ‘ -\DeclareUnicodeCharacter{2019}{\textquoteright} % ’ -\DeclareUnicodeCharacter{201A}{\quotesinglbase} % ‚ -\DeclareUnicodeCharacter{2030}{\textperthousand} % ‰ -\DeclareUnicodeCharacter{2039}{\guilsinglleft} % ‹ -\DeclareUnicodeCharacter{203A}{\guilsinglright} % › - -% Currency Symbols -% ~~~~~~~~~~~~~~~~ -% :: - -\DeclareUnicodeCharacter{20AC}{\texteuro} % € - -% Greek and Coptic -% ~~~~~~~~~~~~~~~~ -% -% When there are different names for a Greek letter, use the one from -% PUenc.dfu (hyperref's PDF-Unicode encoding) as this is the one most likely -% to be used together with this file. -% -% :: - -% 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 % Ͳ -\DeclareUnicodeCharacter{0374}{\textnumeralsigngreek} % ʹ \anwtonos, \textdexiakeraia -\DeclareUnicodeCharacter{0375}{\textnumeralsignlowergreek} % ͵ \katwtonos, \textaristerikeraia, -% 0376 GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA % Ͷ -% 0377 GREEK SMALL LETTER PAMPHYLIAN DIGAMMA % ͷ - -\DeclareUnicodeCharacter{037A}{\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 % -\DeclareUnicodeCharacter{037E}{\erotimatiko} % ; \textquestion - -\DeclareUnicodeCharacter{0384}{\ensuregreek{\@tabacckludge'\textcompwordmark}} % ΄ -\DeclareUnicodeCharacter{0385}{\ensuregreek{\"'\textcompwordmark}} % ΅ \textdialytikatonos -\DeclareUnicodeCharacter{0386}{\ensuregreek{\@tabacckludge'\textAlpha}} % Ά -\DeclareUnicodeCharacter{0387}{\anoteleia} % · \textanoteleia -\DeclareUnicodeCharacter{0388}{\ensuregreek{\@tabacckludge'\textEpsilon}} % Έ -\DeclareUnicodeCharacter{0389}{\ensuregreek{\@tabacckludge'\textEta}} % Ή -\DeclareUnicodeCharacter{038A}{\ensuregreek{\@tabacckludge'\textIota}} % Ί -\DeclareUnicodeCharacter{038C}{\ensuregreek{\@tabacckludge'\textOmicron}} % Ό -\DeclareUnicodeCharacter{038E}{\ensuregreek{\@tabacckludge'\textUpsilon}} % Ύ -\DeclareUnicodeCharacter{038F}{\ensuregreek{\@tabacckludge'\textOmega}} % Ώ -\DeclareUnicodeCharacter{0390}{\ensuregreek{\'"\textiota}} % ΐ - -\DeclareUnicodeCharacter{0391}{\textAlpha} % Α -\DeclareUnicodeCharacter{0392}{\textBeta} % Β -\DeclareUnicodeCharacter{0393}{\textGamma} % Γ -\DeclareUnicodeCharacter{0394}{\textDelta} % Δ -\DeclareUnicodeCharacter{0395}{\textEpsilon} % Ε -\DeclareUnicodeCharacter{0396}{\textZeta} % Ζ -\DeclareUnicodeCharacter{0397}{\textEta} % Η -\DeclareUnicodeCharacter{0398}{\textTheta} % Θ -\DeclareUnicodeCharacter{0399}{\textIota} % Ι -\DeclareUnicodeCharacter{039A}{\textKappa} % Κ -\DeclareUnicodeCharacter{039B}{\textLambda} % Λ -\DeclareUnicodeCharacter{039C}{\textMu} % Μ -\DeclareUnicodeCharacter{039D}{\textNu} % Ν -\DeclareUnicodeCharacter{039E}{\textXi} % Ξ -\DeclareUnicodeCharacter{039F}{\textOmicron} % Ο -\DeclareUnicodeCharacter{03A0}{\textPi} % Π -\DeclareUnicodeCharacter{03A1}{\textRho} % Ρ -\DeclareUnicodeCharacter{03A3}{\textSigma} % Σ -\DeclareUnicodeCharacter{03A4}{\textTau} % Τ -\DeclareUnicodeCharacter{03A5}{\textUpsilon} % Υ -\DeclareUnicodeCharacter{03A6}{\textPhi} % Φ -\DeclareUnicodeCharacter{03A7}{\textChi} % Χ -\DeclareUnicodeCharacter{03A8}{\textPsi} % Ψ -\DeclareUnicodeCharacter{03A9}{\textOmega} % Ω - -\DeclareUnicodeCharacter{03AA}{\ensuregreek{\"\textIota}} % Ϊ -\DeclareUnicodeCharacter{03AB}{\ensuregreek{\"\textUpsilon}} % Ϋ -\DeclareUnicodeCharacter{03AC}{\ensuregreek{\@tabacckludge'\textalpha}} % ά -\DeclareUnicodeCharacter{03AD}{\ensuregreek{\@tabacckludge'\textepsilon}} % έ -\DeclareUnicodeCharacter{03AE}{\ensuregreek{\@tabacckludge'\texteta}} % ή -\DeclareUnicodeCharacter{03AF}{\ensuregreek{\@tabacckludge'\textiota}} % ί -\DeclareUnicodeCharacter{03B0}{\ensuregreek{\"'\textupsilon}} % ΰ - -\DeclareUnicodeCharacter{03B1}{\textalpha} % α -\DeclareUnicodeCharacter{03B2}{\textbeta} % β -\DeclareUnicodeCharacter{03B3}{\textgamma} % γ -\DeclareUnicodeCharacter{03B4}{\textdelta} % δ -\DeclareUnicodeCharacter{03B5}{\textepsilon} % ε -\DeclareUnicodeCharacter{03B6}{\textzeta} % ζ -\DeclareUnicodeCharacter{03B7}{\texteta} % η -\DeclareUnicodeCharacter{03B8}{\texttheta} % θ -\DeclareUnicodeCharacter{03B9}{\textiota} % ι -\DeclareUnicodeCharacter{03BA}{\textkappa} % κ -\DeclareUnicodeCharacter{03BB}{\textlambda} % λ -\DeclareUnicodeCharacter{03BC}{\textmu} % μ \textmu, \textmugreek -\DeclareUnicodeCharacter{03BD}{\textnu} % ν -\DeclareUnicodeCharacter{03BE}{\textxi} % ξ -\DeclareUnicodeCharacter{03BF}{\textomicron} % ο -\DeclareUnicodeCharacter{03C0}{\textpi} % π -\DeclareUnicodeCharacter{03C1}{\textrho} % ρ -\DeclareUnicodeCharacter{03C2}{\textvarsigma} % ς -\DeclareUnicodeCharacter{03C3}{\textsigma} % σ -\DeclareUnicodeCharacter{03C4}{\texttau} % τ -\DeclareUnicodeCharacter{03C5}{\textupsilon} % υ -\DeclareUnicodeCharacter{03C6}{\textphi} % φ -\DeclareUnicodeCharacter{03C7}{\textchi} % χ -\DeclareUnicodeCharacter{03C8}{\textpsi} % ψ -\DeclareUnicodeCharacter{03C9}{\textomega} % ω - -\DeclareUnicodeCharacter{03CA}{\ensuregreek{\"\textiota}} % ϊ -\DeclareUnicodeCharacter{03CB}{\ensuregreek{\"\textupsilon}} % ϋ -\DeclareUnicodeCharacter{03CC}{\ensuregreek{\@tabacckludge'\textomicron}} % ό -\DeclareUnicodeCharacter{03CD}{\ensuregreek{\@tabacckludge'\textupsilon}} % ύ -\DeclareUnicodeCharacter{03CE}{\ensuregreek{\@tabacckludge'\textomega}} % ώ - -\DeclareUnicodeCharacter{03D8}{\Qoppa} % Ϙ -\DeclareUnicodeCharacter{03D9}{\qoppa} % ϙ -\DeclareUnicodeCharacter{03DA}{\textStigmagreek} % Ϛ \Stigma -\DeclareUnicodeCharacter{03DB}{\textstigmagreek} % ϛ \stigma, \textstigma -\DeclareUnicodeCharacter{03DC}{\textDigammagreek} % Ϝ \Digamma, \textDigamma -\DeclareUnicodeCharacter{03DD}{\textdigammagreek} % ϝ \ddigamma, \textdigamma -%03DE GREEK LETTER KOPPA % Ϟ \textKoppagreek -\DeclareUnicodeCharacter{03DF}{\textkoppagreek} % ϟ \koppa, \textqoppa [sic!] -\DeclareUnicodeCharacter{03E0}{\textSampigreek} % Ϡ \Sampi -\DeclareUnicodeCharacter{03E1}{\textsampigreek} % ϡ \sampi, \textsampi - -% Greek Extended -% ~~~~~~~~~~~~~~ -% :: - -\DeclareUnicodeCharacter{1F00}{\ensuregreek{\@tabacckludge>\textalpha}} % ἀ -\DeclareUnicodeCharacter{1F01}{\ensuregreek{\@tabacckludge<\textalpha}} % ἁ -\DeclareUnicodeCharacter{1F02}{\ensuregreek{\@tabacckludge>`\textalpha}} % ἂ -\DeclareUnicodeCharacter{1F03}{\ensuregreek{\@tabacckludge<`\textalpha}} % ἃ -\DeclareUnicodeCharacter{1F04}{\ensuregreek{\@tabacckludge>'\textalpha}} % ἄ -\DeclareUnicodeCharacter{1F05}{\ensuregreek{\@tabacckludge<'\textalpha}} % ἅ -\DeclareUnicodeCharacter{1F06}{\ensuregreek{\@tabacckludge~>\textalpha}} % ἆ -\DeclareUnicodeCharacter{1F07}{\ensuregreek{\@tabacckludge~<\textalpha}} % ἇ -\DeclareUnicodeCharacter{1F08}{\ensuregreek{\@tabacckludge>\textAlpha}} % Ἀ -\DeclareUnicodeCharacter{1F09}{\ensuregreek{\@tabacckludge<\textAlpha}} % Ἁ -\DeclareUnicodeCharacter{1F0A}{\ensuregreek{\@tabacckludge>`\textAlpha}} % Ἂ -\DeclareUnicodeCharacter{1F0B}{\ensuregreek{\@tabacckludge<`\textAlpha}} % Ἃ -\DeclareUnicodeCharacter{1F0C}{\ensuregreek{\@tabacckludge>'\textAlpha}} % Ἄ -\DeclareUnicodeCharacter{1F0D}{\ensuregreek{\@tabacckludge>'\textAlpha}} % Ἅ -\DeclareUnicodeCharacter{1F0E}{\ensuregreek{\@tabacckludge~>\textAlpha}} % Ἆ -\DeclareUnicodeCharacter{1F0F}{\ensuregreek{\@tabacckludge~<\textAlpha}} % Ἇ - -\DeclareUnicodeCharacter{1F10}{\ensuregreek{\@tabacckludge>\textepsilon}} % ἐ -\DeclareUnicodeCharacter{1F11}{\ensuregreek{\@tabacckludge<\textepsilon}} % ἑ -\DeclareUnicodeCharacter{1F12}{\ensuregreek{\@tabacckludge>`\textepsilon}} % ἒ -\DeclareUnicodeCharacter{1F13}{\ensuregreek{\@tabacckludge<`\textepsilon}} % ἓ -\DeclareUnicodeCharacter{1F14}{\ensuregreek{\@tabacckludge>'\textepsilon}} % ἔ -\DeclareUnicodeCharacter{1F15}{\ensuregreek{\@tabacckludge>'\textepsilon}} % ἕ -\DeclareUnicodeCharacter{1F18}{\ensuregreek{\@tabacckludge>\textEpsilon}} % Ἐ -\DeclareUnicodeCharacter{1F19}{\ensuregreek{\@tabacckludge<\textEpsilon}} % Ἑ -\DeclareUnicodeCharacter{1F1A}{\ensuregreek{\@tabacckludge>`\textEpsilon}} % Ἒ -\DeclareUnicodeCharacter{1F1B}{\ensuregreek{\@tabacckludge<`\textEpsilon}} % Ἓ -\DeclareUnicodeCharacter{1F1C}{\ensuregreek{\@tabacckludge>'\textEpsilon}} % Ἔ -\DeclareUnicodeCharacter{1F1D}{\ensuregreek{\@tabacckludge>'\textEpsilon}} % Ἕ - -\DeclareUnicodeCharacter{1F20}{\ensuregreek{\@tabacckludge>\texteta}} % ἠ -\DeclareUnicodeCharacter{1F21}{\ensuregreek{\@tabacckludge<\texteta}} % ἡ -\DeclareUnicodeCharacter{1F22}{\ensuregreek{\@tabacckludge>`\texteta}} % ἢ -\DeclareUnicodeCharacter{1F23}{\ensuregreek{\@tabacckludge<`\texteta}} % ἣ -\DeclareUnicodeCharacter{1F24}{\ensuregreek{\@tabacckludge>'\texteta}} % ἤ -\DeclareUnicodeCharacter{1F25}{\ensuregreek{\@tabacckludge>'\texteta}} % ἥ -\DeclareUnicodeCharacter{1F26}{\ensuregreek{\@tabacckludge~>\texteta}} % ἦ -\DeclareUnicodeCharacter{1F27}{\ensuregreek{\@tabacckludge~<\texteta}} % ἧ -\DeclareUnicodeCharacter{1F28}{\ensuregreek{\@tabacckludge>\textEta}} % Ἠ -\DeclareUnicodeCharacter{1F29}{\ensuregreek{\@tabacckludge<\textEta}} % Ἡ -\DeclareUnicodeCharacter{1F2A}{\ensuregreek{\@tabacckludge>`\textEta}} % Ἢ -\DeclareUnicodeCharacter{1F2B}{\ensuregreek{\@tabacckludge<`\textEta}} % Ἣ -\DeclareUnicodeCharacter{1F2C}{\ensuregreek{\@tabacckludge>'\textEta}} % Ἤ -\DeclareUnicodeCharacter{1F2D}{\ensuregreek{\@tabacckludge>'\textEta}} % Ἥ -\DeclareUnicodeCharacter{1F2E}{\ensuregreek{\@tabacckludge~>\textEta}} % Ἦ -\DeclareUnicodeCharacter{1F2F}{\ensuregreek{\@tabacckludge~<\textEta}} % Ἧ - -\DeclareUnicodeCharacter{1F30}{\ensuregreek{\@tabacckludge>\textiota}} % ἰ -\DeclareUnicodeCharacter{1F31}{\ensuregreek{\@tabacckludge<\textiota}} % ἱ -\DeclareUnicodeCharacter{1F32}{\ensuregreek{\@tabacckludge>`\textiota}} % ἲ -\DeclareUnicodeCharacter{1F33}{\ensuregreek{\@tabacckludge<`\textiota}} % ἳ -\DeclareUnicodeCharacter{1F34}{\ensuregreek{\@tabacckludge>'\textiota}} % ἴ -\DeclareUnicodeCharacter{1F35}{\ensuregreek{\@tabacckludge>'\textiota}} % ἵ -\DeclareUnicodeCharacter{1F36}{\ensuregreek{\@tabacckludge~>\textiota}} % ἶ -\DeclareUnicodeCharacter{1F37}{\ensuregreek{\@tabacckludge~<\textiota}} % ἷ -\DeclareUnicodeCharacter{1F38}{\ensuregreek{\@tabacckludge>\textIota}} % Ἰ -\DeclareUnicodeCharacter{1F39}{\ensuregreek{\@tabacckludge<\textIota}} % Ἱ -\DeclareUnicodeCharacter{1F3A}{\ensuregreek{\@tabacckludge>`\textIota}} % Ἲ -\DeclareUnicodeCharacter{1F3B}{\ensuregreek{\@tabacckludge<`\textIota}} % Ἳ -\DeclareUnicodeCharacter{1F3C}{\ensuregreek{\@tabacckludge>'\textIota}} % Ἴ -\DeclareUnicodeCharacter{1F3D}{\ensuregreek{\@tabacckludge>'\textIota}} % Ἵ -\DeclareUnicodeCharacter{1F3E}{\ensuregreek{\@tabacckludge~>\textIota}} % Ἶ -\DeclareUnicodeCharacter{1F3F}{\ensuregreek{\@tabacckludge~<\textIota}} % Ἷ - -\DeclareUnicodeCharacter{1F40}{\ensuregreek{\@tabacckludge>\textomicron}} % ὀ -\DeclareUnicodeCharacter{1F41}{\ensuregreek{\@tabacckludge<\textomicron}} % ὁ -\DeclareUnicodeCharacter{1F42}{\ensuregreek{\@tabacckludge>`\textomicron}} % ὂ -\DeclareUnicodeCharacter{1F43}{\ensuregreek{\@tabacckludge<`\textomicron}} % ὃ -\DeclareUnicodeCharacter{1F44}{\ensuregreek{\@tabacckludge>'\textomicron}} % ὄ -\DeclareUnicodeCharacter{1F45}{\ensuregreek{\@tabacckludge>'\textomicron}} % ὅ -\DeclareUnicodeCharacter{1F48}{\ensuregreek{\@tabacckludge>\textOmicron}} % Ὀ -\DeclareUnicodeCharacter{1F49}{\ensuregreek{\@tabacckludge<\textOmicron}} % Ὁ -\DeclareUnicodeCharacter{1F4A}{\ensuregreek{\@tabacckludge>`\textOmicron}} % Ὂ -\DeclareUnicodeCharacter{1F4B}{\ensuregreek{\@tabacckludge<`\textOmicron}} % Ὃ -\DeclareUnicodeCharacter{1F4C}{\ensuregreek{\@tabacckludge>'\textOmicron}} % Ὄ -\DeclareUnicodeCharacter{1F4D}{\ensuregreek{\@tabacckludge>'\textOmicron}} % Ὅ - -\DeclareUnicodeCharacter{1F50}{\ensuregreek{\@tabacckludge>\textupsilon}} % ὐ -\DeclareUnicodeCharacter{1F51}{\ensuregreek{\@tabacckludge<\textupsilon}} % ὑ -\DeclareUnicodeCharacter{1F52}{\ensuregreek{\@tabacckludge>`\textupsilon}} % ὒ -\DeclareUnicodeCharacter{1F53}{\ensuregreek{\@tabacckludge<`\textupsilon}} % ὓ -\DeclareUnicodeCharacter{1F54}{\ensuregreek{\@tabacckludge>'\textupsilon}} % ὔ -\DeclareUnicodeCharacter{1F55}{\ensuregreek{\@tabacckludge>'\textupsilon}} % ὕ -\DeclareUnicodeCharacter{1F56}{\ensuregreek{\@tabacckludge~>\textupsilon}} % ὖ -\DeclareUnicodeCharacter{1F57}{\ensuregreek{\@tabacckludge~<\textupsilon}} % ὗ -\DeclareUnicodeCharacter{1F59}{\ensuregreek{\@tabacckludge<\textUpsilon}} % Ὑ -\DeclareUnicodeCharacter{1F5B}{\ensuregreek{\@tabacckludge<`\textUpsilon}} % Ὓ -\DeclareUnicodeCharacter{1F5D}{\ensuregreek{\@tabacckludge>'\textUpsilon}} % Ὕ -\DeclareUnicodeCharacter{1F5F}{\ensuregreek{\@tabacckludge~<\textUpsilon}} % Ὗ - -\DeclareUnicodeCharacter{1F60}{\ensuregreek{\@tabacckludge>\textomega}} % ὠ -\DeclareUnicodeCharacter{1F61}{\ensuregreek{\@tabacckludge<\textomega}} % ὡ -\DeclareUnicodeCharacter{1F62}{\ensuregreek{\@tabacckludge>`\textomega}} % ὢ -\DeclareUnicodeCharacter{1F63}{\ensuregreek{\@tabacckludge<`\textomega}} % ὣ -\DeclareUnicodeCharacter{1F64}{\ensuregreek{\@tabacckludge>'\textomega}} % ὤ -\DeclareUnicodeCharacter{1F65}{\ensuregreek{\@tabacckludge>'\textomega}} % ὥ -\DeclareUnicodeCharacter{1F66}{\ensuregreek{\@tabacckludge~>\textomega}} % ὦ -\DeclareUnicodeCharacter{1F67}{\ensuregreek{\@tabacckludge~<\textomega}} % ὧ -\DeclareUnicodeCharacter{1F68}{\ensuregreek{\@tabacckludge>\textOmega}} % Ὠ -\DeclareUnicodeCharacter{1F69}{\ensuregreek{\@tabacckludge<\textOmega}} % Ὡ -\DeclareUnicodeCharacter{1F6A}{\ensuregreek{\@tabacckludge>`\textOmega}} % Ὢ -\DeclareUnicodeCharacter{1F6B}{\ensuregreek{\@tabacckludge<`\textOmega}} % Ὣ -\DeclareUnicodeCharacter{1F6C}{\ensuregreek{\@tabacckludge>'\textOmega}} % Ὤ -\DeclareUnicodeCharacter{1F6D}{\ensuregreek{\@tabacckludge>'\textOmega}} % Ὥ -\DeclareUnicodeCharacter{1F6E}{\ensuregreek{\@tabacckludge~>\textOmega}} % Ὦ -\DeclareUnicodeCharacter{1F6F}{\ensuregreek{\@tabacckludge~<\textOmega}} % Ὧ - -\DeclareUnicodeCharacter{1F70}{\ensuregreek{\@tabacckludge`\textalpha}} % ὰ -\DeclareUnicodeCharacter{1F71}{\ensuregreek{\@tabacckludge'\textalpha}} % ά -\DeclareUnicodeCharacter{1F72}{\ensuregreek{\@tabacckludge`\textepsilon}} % ὲ -\DeclareUnicodeCharacter{1F73}{\ensuregreek{\@tabacckludge'\textepsilon}} % έ -\DeclareUnicodeCharacter{1F74}{\ensuregreek{\@tabacckludge`\texteta}} % ὴ -\DeclareUnicodeCharacter{1F75}{\ensuregreek{\@tabacckludge'\texteta}} % ή -\DeclareUnicodeCharacter{1F76}{\ensuregreek{\@tabacckludge`\textiota}} % ὶ -\DeclareUnicodeCharacter{1F77}{\ensuregreek{\@tabacckludge'\textiota}} % ί -\DeclareUnicodeCharacter{1F78}{\ensuregreek{\@tabacckludge`\textomicron}} % ὸ -\DeclareUnicodeCharacter{1F79}{\ensuregreek{\@tabacckludge'\textomicron}} % ό -\DeclareUnicodeCharacter{1F7A}{\ensuregreek{\@tabacckludge`\textupsilon}} % ὺ -\DeclareUnicodeCharacter{1F7B}{\ensuregreek{\@tabacckludge'\textupsilon}} % ύ -\DeclareUnicodeCharacter{1F7C}{\ensuregreek{\@tabacckludge`\textomega}} % ὼ -\DeclareUnicodeCharacter{1F7D}{\ensuregreek{\@tabacckludge'\textomega}} % ώ - -\DeclareUnicodeCharacter{1F80}{\ensuregreek{\@tabacckludge>\textalpha|}} % ᾀ -\DeclareUnicodeCharacter{1F81}{\ensuregreek{\@tabacckludge<\textalpha|}} % ᾁ -\DeclareUnicodeCharacter{1F82}{\ensuregreek{\@tabacckludge>`\textalpha|}} % ᾂ -\DeclareUnicodeCharacter{1F83}{\ensuregreek{\@tabacckludge<`\textalpha|}} % ᾃ -\DeclareUnicodeCharacter{1F84}{\ensuregreek{\@tabacckludge>'\textalpha|}} % ᾄ -\DeclareUnicodeCharacter{1F85}{\ensuregreek{\@tabacckludge>'\textalpha|}} % ᾅ -\DeclareUnicodeCharacter{1F86}{\ensuregreek{\@tabacckludge~>\textalpha|}} % ᾆ -\DeclareUnicodeCharacter{1F87}{\ensuregreek{\@tabacckludge~<\textalpha|}} % ᾇ -\DeclareUnicodeCharacter{1F88}{\ensuregreek{\@tabacckludge>\textAlpha|}} % ᾈ -\DeclareUnicodeCharacter{1F89}{\ensuregreek{\@tabacckludge<\textAlpha|}} % ᾉ -\DeclareUnicodeCharacter{1F8A}{\ensuregreek{\@tabacckludge>`\textAlpha|}} % ᾊ -\DeclareUnicodeCharacter{1F8B}{\ensuregreek{\@tabacckludge<`\textAlpha|}} % ᾋ -\DeclareUnicodeCharacter{1F8C}{\ensuregreek{\@tabacckludge>'\textAlpha|}} % ᾌ -\DeclareUnicodeCharacter{1F8D}{\ensuregreek{\@tabacckludge>'\textAlpha|}} % ᾍ -\DeclareUnicodeCharacter{1F8E}{\ensuregreek{\@tabacckludge~>\textAlpha|}} % ᾎ -\DeclareUnicodeCharacter{1F8F}{\ensuregreek{\@tabacckludge~<\textAlpha|}} % ᾏ - -\DeclareUnicodeCharacter{1F90}{\ensuregreek{\@tabacckludge>\texteta|}} % ᾐ -\DeclareUnicodeCharacter{1F91}{\ensuregreek{\@tabacckludge<\texteta|}} % ᾑ -\DeclareUnicodeCharacter{1F92}{\ensuregreek{\@tabacckludge>`\texteta|}} % ᾒ -\DeclareUnicodeCharacter{1F93}{\ensuregreek{\@tabacckludge<`\texteta|}} % ᾓ -\DeclareUnicodeCharacter{1F94}{\ensuregreek{\@tabacckludge>'\texteta|}} % ᾔ -\DeclareUnicodeCharacter{1F95}{\ensuregreek{\@tabacckludge>'\texteta|}} % ᾕ -\DeclareUnicodeCharacter{1F96}{\ensuregreek{\@tabacckludge~>\texteta|}} % ᾖ -\DeclareUnicodeCharacter{1F97}{\ensuregreek{\@tabacckludge~<\texteta|}} % ᾗ -\DeclareUnicodeCharacter{1F98}{\ensuregreek{\@tabacckludge>\textEta|}} % ᾘ -\DeclareUnicodeCharacter{1F99}{\ensuregreek{\@tabacckludge<\textEta|}} % ᾙ -\DeclareUnicodeCharacter{1F9A}{\ensuregreek{\@tabacckludge>`\textEta|}} % ᾚ -\DeclareUnicodeCharacter{1F9B}{\ensuregreek{\@tabacckludge<`\textEta|}} % ᾛ -\DeclareUnicodeCharacter{1F9C}{\ensuregreek{\@tabacckludge>'\textEta|}} % ᾜ -\DeclareUnicodeCharacter{1F9D}{\ensuregreek{\@tabacckludge>'\textEta|}} % ᾝ -\DeclareUnicodeCharacter{1F9E}{\ensuregreek{\@tabacckludge~>\textEta|}} % ᾞ -\DeclareUnicodeCharacter{1F9F}{\ensuregreek{\@tabacckludge~<\textEta|}} % ᾟ - -\DeclareUnicodeCharacter{1FA0}{\ensuregreek{\@tabacckludge>\textomega|}} % ᾠ -\DeclareUnicodeCharacter{1FA1}{\ensuregreek{\@tabacckludge<\textomega|}} % ᾡ -\DeclareUnicodeCharacter{1FA2}{\ensuregreek{\@tabacckludge>`\textomega|}} % ᾢ -\DeclareUnicodeCharacter{1FA3}{\ensuregreek{\@tabacckludge<`\textomega|}} % ᾣ -\DeclareUnicodeCharacter{1FA4}{\ensuregreek{\@tabacckludge>'\textomega|}} % ᾤ -\DeclareUnicodeCharacter{1FA5}{\ensuregreek{\@tabacckludge>'\textomega|}} % ᾥ -\DeclareUnicodeCharacter{1FA6}{\ensuregreek{\@tabacckludge~>\textomega|}} % ᾦ -\DeclareUnicodeCharacter{1FA7}{\ensuregreek{\@tabacckludge~<\textomega|}} % ᾧ -\DeclareUnicodeCharacter{1FA8}{\ensuregreek{\@tabacckludge>\textOmega|}} % ᾨ -\DeclareUnicodeCharacter{1FA9}{\ensuregreek{\@tabacckludge<\textOmega|}} % ᾩ -\DeclareUnicodeCharacter{1FAA}{\ensuregreek{\@tabacckludge>`\textOmega|}} % ᾪ -\DeclareUnicodeCharacter{1FAB}{\ensuregreek{\@tabacckludge<`\textOmega|}} % ᾫ -\DeclareUnicodeCharacter{1FAC}{\ensuregreek{\@tabacckludge>'\textOmega|}} % ᾬ -\DeclareUnicodeCharacter{1FAD}{\ensuregreek{\@tabacckludge>'\textOmega|}} % ᾭ -\DeclareUnicodeCharacter{1FAE}{\ensuregreek{\@tabacckludge~>\textOmega|}} % ᾮ -\DeclareUnicodeCharacter{1FAF}{\ensuregreek{\@tabacckludge~<\textOmega|}} % ᾯ - -\DeclareUnicodeCharacter{1FB0}{\ensuregreek{\u\textalpha}} % ᾰ -\DeclareUnicodeCharacter{1FB1}{\ensuregreek{\@tabacckludge=\textalpha}} % ᾱ -\DeclareUnicodeCharacter{1FB2}{\ensuregreek{\@tabacckludge`\textalpha|}} % ᾲ -\DeclareUnicodeCharacter{1FB3}{\ensuregreek{\textalpha|}} % ᾳ -\DeclareUnicodeCharacter{1FB4}{\ensuregreek{\@tabacckludge'\textalpha|}} % ᾴ -\DeclareUnicodeCharacter{1FB6}{\ensuregreek{\~\textalpha}} % ᾶ -\DeclareUnicodeCharacter{1FB7}{\ensuregreek{\~\textalpha|}} % ᾷ -\DeclareUnicodeCharacter{1FB8}{\ensuregreek{\u\textAlpha}} % Ᾰ -\DeclareUnicodeCharacter{1FB9}{\ensuregreek{\@tabacckludge=\textAlpha}} % Ᾱ -\DeclareUnicodeCharacter{1FBA}{\ensuregreek{\@tabacckludge`\textAlpha}} % Ὰ -\DeclareUnicodeCharacter{1FBB}{\ensuregreek{\@tabacckludge'\textAlpha}} % Ά -\DeclareUnicodeCharacter{1FBC}{\ensuregreek{\textAlpha|}} % ᾼ -\DeclareUnicodeCharacter{1FBD}{\ensuregreek{\@tabacckludge>\textcompwordmark}} % ᾽ -\DeclareUnicodeCharacter{1FBE}{\textcompwordmark\Prosgegrammeni} % ι -\DeclareUnicodeCharacter{1FBF}{\ensuregreek{\@tabacckludge>\textcompwordmark}} % ᾿ - -\DeclareUnicodeCharacter{1FC0}{\ensuregreek{\~\textcompwordmark}} % ῀ -\DeclareUnicodeCharacter{1FC1}{\ensuregreek{\"\~\textcompwordmark}} % ῁ -\DeclareUnicodeCharacter{1FC2}{\ensuregreek{\@tabacckludge`\texteta|}} % ῂ -\DeclareUnicodeCharacter{1FC3}{\ensuregreek{\texteta|}} % ῃ -\DeclareUnicodeCharacter{1FC4}{\ensuregreek{\@tabacckludge'\texteta|}} % ῄ -\DeclareUnicodeCharacter{1FC6}{\ensuregreek{\~\texteta}} % ῆ -\DeclareUnicodeCharacter{1FC7}{\ensuregreek{\~\texteta|}} % ῇ -\DeclareUnicodeCharacter{1FC8}{\ensuregreek{\@tabacckludge`\textEpsilon}} % Ὲ -\DeclareUnicodeCharacter{1FC9}{\ensuregreek{\@tabacckludge'\textEpsilon}} % Έ -\DeclareUnicodeCharacter{1FCA}{\ensuregreek{\@tabacckludge`\textEta}} % Ὴ -\DeclareUnicodeCharacter{1FCB}{\ensuregreek{\@tabacckludge'\textEta}} % Ή -\DeclareUnicodeCharacter{1FCC}{\ensuregreek{\textEta|}} % ῌ -\DeclareUnicodeCharacter{1FCD}{\ensuregreek{\@tabacckludge>`\textcompwordmark}} % ῍ -\DeclareUnicodeCharacter{1FCE}{\ensuregreek{\@tabacckludge>'\textcompwordmark}} % ῎ -\DeclareUnicodeCharacter{1FCF}{\ensuregreek{\@tabacckludge~>\textcompwordmark}} % ῏ - -\DeclareUnicodeCharacter{1FD0}{\ensuregreek{\u\textiota}} % ῐ -\DeclareUnicodeCharacter{1FD1}{\ensuregreek{\@tabacckludge=\textiota}} % ῑ -\DeclareUnicodeCharacter{1FD2}{\ensuregreek{\`"\textiota}} % not \"`... % ῒ -\DeclareUnicodeCharacter{1FD3}{\ensuregreek{\'"\textiota}} % not \"'... % ΐ -\DeclareUnicodeCharacter{1FD6}{\ensuregreek{\~\textiota}} % ῖ -\DeclareUnicodeCharacter{1FD7}{\ensuregreek{\~"\textiota}} % ῗ -\DeclareUnicodeCharacter{1FD8}{\ensuregreek{\u\textIota}} % Ῐ -\DeclareUnicodeCharacter{1FD9}{\ensuregreek{\@tabacckludge=\textIota}} % Ῑ -\DeclareUnicodeCharacter{1FDA}{\ensuregreek{\@tabacckludge`\textIota}} % Ὶ -\DeclareUnicodeCharacter{1FDB}{\ensuregreek{\@tabacckludge'\textIota}} % Ί -\DeclareUnicodeCharacter{1FDD}{\ensuregreek{\@tabacckludge<`\textcompwordmark}} % ῝ -\DeclareUnicodeCharacter{1FDE}{\ensuregreek{\@tabacckludge>'\textcompwordmark}} % ῞ -\DeclareUnicodeCharacter{1FDF}{\ensuregreek{\@tabacckludge~<\textcompwordmark}} % ῟ - -\DeclareUnicodeCharacter{1FE0}{\ensuregreek{\u\textupsilon}} % ῠ -\DeclareUnicodeCharacter{1FE1}{\ensuregreek{\@tabacckludge=\textupsilon}} % ῡ -\DeclareUnicodeCharacter{1FE2}{\ensuregreek{\`"\textupsilon}} % not \"`... % ῢ -\DeclareUnicodeCharacter{1FE3}{\ensuregreek{\'"\textupsilon}} % not \"'... % ΰ -\DeclareUnicodeCharacter{1FE4}{\ensuregreek{\@tabacckludge>r}} % ῤ -\DeclareUnicodeCharacter{1FE5}{\ensuregreek{\@tabacckludge - - - - - -lgrenc.dfu: Greek Unicode support using LGR fonts - - - - - -
-

lgrenc.dfu: Greek Unicode support using LGR fonts

- -
- - -
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{lgrenc.dfu}[2012/07/03 0.2 UTF-8 support for Greek]
-
-

This package is part of the lgrx bundle.

-
-
-

Based on a babel patch by Werner Lemberg, with input from the ucs -package (ucsencs.def) by Dominique Unruh and CB.enc by -Apostolos Syropoulos.

-
-
Changelog:
-
----- - - - - - - - - - - - - - - -

2010-06-16

0.1

initial version

2012-06-27

0.2

support for accented Greek characters with textalpha

2013-05-03

0.2

new accent macro names with lgrxenc.def 0.7

-
-
-
-

Usage

-

Requires extended font encoding definitions from lgrxenc.def:

-
-

\usepackage[LGRx,T1]{fontenc} % define LGR and T1 encodings -\usepackage[utf8]{inputenc} % standard UTF-8 input encoding

-
-
-

Note

-

as the LGRx option define the LGR (not LGRx) font -encoding, it cannot be given as last option! Use, e.g., -\usepackage[LGRx,T1,LGR]{fontenc} to make LGR the default.

-
-

By default, text containing Greek Unicode characters must be marked as -requiring a font encoding that supports Greek script, e.g. by setting the -language to greek or polutonikogreek. This is a generic feature of -inputenc’s utf8 option (an equivalent restriction holds for the Cyrillic -script).

-

With the textalpha or alphabeta packages of this bundle, Greek Unicode -literals can be used without special markup also in non-Greek documents:

-
-

\usepackage[utf8]{inputenc} % standard UTF-8 input encoding -\usepackage[T1]{fontenc} % use T1 font encoding as default -\usepackage{textalpha} % also loads lgrxenc.def

-
-
-
-

Character Declarations

-

Some characters exist in other font encodings too. Care has been taken -to ensure the definitions match with other *.dfu and *enc.def -files.

-

Use \ensuregreek for composite definitions of Unicode characters to make -sure accented characters work in any font encoding if the textalpha package -is used.

-

The order of parts in composite diacritics matches the Unicode names. -Exceptions are \`" and \'" to keep \MakeUppercase working with -babel’s “greek” option (upcasing of oxia and tonos to an empty character -prevents selection of the pre-composed character with dialytika). Also, the -perispomeni ~ is never used in second position as otherwise -Makeuppercase fails if the document does not use babel’s “greek” or -“polutonikogreek” option (the tilde beeing converted to a no-break space).

-
-

Latin-1 Supplement (T1)

-
\DeclareUnicodeCharacter{00A8}{\textasciidieresis}      % ¨
-\DeclareUnicodeCharacter{00AB}{\guillemotleft}          % «
-\DeclareUnicodeCharacter{00AF}{\textasciimacron}        % ¯
-\DeclareUnicodeCharacter{00B4}{\textasciiacute}         % ´
-\DeclareUnicodeCharacter{00B7}{\textperiodcentered}     % ·
-\DeclareUnicodeCharacter{00BB}{\guillemotright}         % »
-
-
-
-

IPA Extensions (T3)

-
\DeclareUnicodeCharacter{0259}{\textschwa}              % ə
-
-
-
-

Spacing Modifier Letters

-
\DeclareUnicodeCharacter{02D8}{\textasciibreve}         % ˘
-
-
-
-

General Punctuation

-
\DeclareUnicodeCharacter{200C}{\textcompwordmark}       % ZWNJ
-\DeclareUnicodeCharacter{2013}{\textendash}             % –
-\DeclareUnicodeCharacter{2014}{\textemdash}             % —
-\DeclareUnicodeCharacter{2018}{\textquoteleft}          % ‘
-\DeclareUnicodeCharacter{2019}{\textquoteright}         % ’
-\DeclareUnicodeCharacter{201A}{\quotesinglbase}         % ‚
-\DeclareUnicodeCharacter{2030}{\textperthousand}        % ‰
-\DeclareUnicodeCharacter{2039}{\guilsinglleft}          % ‹
-\DeclareUnicodeCharacter{203A}{\guilsinglright}         % ›
-
-
-
-

Currency Symbols

-
\DeclareUnicodeCharacter{20AC}{\texteuro}               % €
-
-
-
-

Greek and Coptic

-

When there are different names for a Greek letter, use the one from -PUenc.dfu (hyperref’s PDF-Unicode encoding) as this is the one most likely -to be used together with this file.

-
% 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                   % Ͳ
-\DeclareUnicodeCharacter{0374}{\textnumeralsigngreek}      % ʹ \anwtonos, \textdexiakeraia
-\DeclareUnicodeCharacter{0375}{\textnumeralsignlowergreek} % ͵ \katwtonos, \textaristerikeraia,
-% 0376  GREEK CAPITAL LETTER PAMPHYLIAN DIGAMMA            % Ͷ
-% 0377  GREEK SMALL LETTER PAMPHYLIAN DIGAMMA              % ͷ
-
-\DeclareUnicodeCharacter{037A}{\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    %
-\DeclareUnicodeCharacter{037E}{\erotimatiko}               % ; \textquestion
-
-\DeclareUnicodeCharacter{0384}{\ensuregreek{\@tabacckludge'\textcompwordmark}} % ΄
-\DeclareUnicodeCharacter{0385}{\ensuregreek{\"'\textcompwordmark}}        % ΅ \textdialytikatonos
-\DeclareUnicodeCharacter{0386}{\ensuregreek{\@tabacckludge'\textAlpha}}   % Ά
-\DeclareUnicodeCharacter{0387}{\anoteleia}                                % · \textanoteleia
-\DeclareUnicodeCharacter{0388}{\ensuregreek{\@tabacckludge'\textEpsilon}} % Έ
-\DeclareUnicodeCharacter{0389}{\ensuregreek{\@tabacckludge'\textEta}}     % Ή
-\DeclareUnicodeCharacter{038A}{\ensuregreek{\@tabacckludge'\textIota}}    % Ί
-\DeclareUnicodeCharacter{038C}{\ensuregreek{\@tabacckludge'\textOmicron}} % Ό
-\DeclareUnicodeCharacter{038E}{\ensuregreek{\@tabacckludge'\textUpsilon}} % Ύ
-\DeclareUnicodeCharacter{038F}{\ensuregreek{\@tabacckludge'\textOmega}}   % Ώ
-\DeclareUnicodeCharacter{0390}{\ensuregreek{\'"\textiota}}                % ΐ
-
-\DeclareUnicodeCharacter{0391}{\textAlpha}   % Α
-\DeclareUnicodeCharacter{0392}{\textBeta}    % Β
-\DeclareUnicodeCharacter{0393}{\textGamma}   % Γ
-\DeclareUnicodeCharacter{0394}{\textDelta}   % Δ
-\DeclareUnicodeCharacter{0395}{\textEpsilon} % Ε
-\DeclareUnicodeCharacter{0396}{\textZeta}    % Ζ
-\DeclareUnicodeCharacter{0397}{\textEta}     % Η
-\DeclareUnicodeCharacter{0398}{\textTheta}   % Θ
-\DeclareUnicodeCharacter{0399}{\textIota}    % Ι
-\DeclareUnicodeCharacter{039A}{\textKappa}   % Κ
-\DeclareUnicodeCharacter{039B}{\textLambda}  % Λ
-\DeclareUnicodeCharacter{039C}{\textMu}      % Μ
-\DeclareUnicodeCharacter{039D}{\textNu}      % Ν
-\DeclareUnicodeCharacter{039E}{\textXi}      % Ξ
-\DeclareUnicodeCharacter{039F}{\textOmicron} % Ο
-\DeclareUnicodeCharacter{03A0}{\textPi}      % Π
-\DeclareUnicodeCharacter{03A1}{\textRho}     % Ρ
-\DeclareUnicodeCharacter{03A3}{\textSigma}   % Σ
-\DeclareUnicodeCharacter{03A4}{\textTau}     % Τ
-\DeclareUnicodeCharacter{03A5}{\textUpsilon} % Υ
-\DeclareUnicodeCharacter{03A6}{\textPhi}     % Φ
-\DeclareUnicodeCharacter{03A7}{\textChi}     % Χ
-\DeclareUnicodeCharacter{03A8}{\textPsi}     % Ψ
-\DeclareUnicodeCharacter{03A9}{\textOmega}   % Ω
-
-\DeclareUnicodeCharacter{03AA}{\ensuregreek{\"\textIota}}                 % Ϊ
-\DeclareUnicodeCharacter{03AB}{\ensuregreek{\"\textUpsilon}}              % Ϋ
-\DeclareUnicodeCharacter{03AC}{\ensuregreek{\@tabacckludge'\textalpha}}   % ά
-\DeclareUnicodeCharacter{03AD}{\ensuregreek{\@tabacckludge'\textepsilon}} % έ
-\DeclareUnicodeCharacter{03AE}{\ensuregreek{\@tabacckludge'\texteta}}     % ή
-\DeclareUnicodeCharacter{03AF}{\ensuregreek{\@tabacckludge'\textiota}}    % ί
-\DeclareUnicodeCharacter{03B0}{\ensuregreek{\"'\textupsilon}}             % ΰ
-
-\DeclareUnicodeCharacter{03B1}{\textalpha}    % α
-\DeclareUnicodeCharacter{03B2}{\textbeta}     % β
-\DeclareUnicodeCharacter{03B3}{\textgamma}    % γ
-\DeclareUnicodeCharacter{03B4}{\textdelta}    % δ
-\DeclareUnicodeCharacter{03B5}{\textepsilon}  % ε
-\DeclareUnicodeCharacter{03B6}{\textzeta}     % ζ
-\DeclareUnicodeCharacter{03B7}{\texteta}      % η
-\DeclareUnicodeCharacter{03B8}{\texttheta}    % θ
-\DeclareUnicodeCharacter{03B9}{\textiota}     % ι
-\DeclareUnicodeCharacter{03BA}{\textkappa}    % κ
-\DeclareUnicodeCharacter{03BB}{\textlambda}   % λ
-\DeclareUnicodeCharacter{03BC}{\textmu}       % μ \textmu, \textmugreek
-\DeclareUnicodeCharacter{03BD}{\textnu}       % ν
-\DeclareUnicodeCharacter{03BE}{\textxi}       % ξ
-\DeclareUnicodeCharacter{03BF}{\textomicron}  % ο
-\DeclareUnicodeCharacter{03C0}{\textpi}       % π
-\DeclareUnicodeCharacter{03C1}{\textrho}      % ρ
-\DeclareUnicodeCharacter{03C2}{\textvarsigma} % ς
-\DeclareUnicodeCharacter{03C3}{\textsigma}    % σ
-\DeclareUnicodeCharacter{03C4}{\texttau}      % τ
-\DeclareUnicodeCharacter{03C5}{\textupsilon}  % υ
-\DeclareUnicodeCharacter{03C6}{\textphi}      % φ
-\DeclareUnicodeCharacter{03C7}{\textchi}      % χ
-\DeclareUnicodeCharacter{03C8}{\textpsi}      % ψ
-\DeclareUnicodeCharacter{03C9}{\textomega}    % ω
-
-\DeclareUnicodeCharacter{03CA}{\ensuregreek{\"\textiota}}                 % ϊ
-\DeclareUnicodeCharacter{03CB}{\ensuregreek{\"\textupsilon}}              % ϋ
-\DeclareUnicodeCharacter{03CC}{\ensuregreek{\@tabacckludge'\textomicron}} % ό
-\DeclareUnicodeCharacter{03CD}{\ensuregreek{\@tabacckludge'\textupsilon}} % ύ
-\DeclareUnicodeCharacter{03CE}{\ensuregreek{\@tabacckludge'\textomega}}   % ώ
-
-\DeclareUnicodeCharacter{03D8}{\Qoppa}            % Ϙ
-\DeclareUnicodeCharacter{03D9}{\qoppa}            % ϙ
-\DeclareUnicodeCharacter{03DA}{\textStigmagreek}  % Ϛ \Stigma
-\DeclareUnicodeCharacter{03DB}{\textstigmagreek}  % ϛ \stigma, \textstigma
-\DeclareUnicodeCharacter{03DC}{\textDigammagreek} % Ϝ \Digamma, \textDigamma
-\DeclareUnicodeCharacter{03DD}{\textdigammagreek} % ϝ \ddigamma, \textdigamma
-%03DE GREEK LETTER KOPPA                          % Ϟ \textKoppagreek
-\DeclareUnicodeCharacter{03DF}{\textkoppagreek}   % ϟ \koppa, \textqoppa [sic!]
-\DeclareUnicodeCharacter{03E0}{\textSampigreek}   % Ϡ \Sampi
-\DeclareUnicodeCharacter{03E1}{\textsampigreek}   % ϡ \sampi, \textsampi
-
-
-
-

Greek Extended

-
\DeclareUnicodeCharacter{1F00}{\ensuregreek{\@tabacckludge>\textalpha}}     % ἀ
-\DeclareUnicodeCharacter{1F01}{\ensuregreek{\@tabacckludge<\textalpha}}     % ἁ
-\DeclareUnicodeCharacter{1F02}{\ensuregreek{\@tabacckludge>`\textalpha}}    % ἂ
-\DeclareUnicodeCharacter{1F03}{\ensuregreek{\@tabacckludge<`\textalpha}}    % ἃ
-\DeclareUnicodeCharacter{1F04}{\ensuregreek{\@tabacckludge>'\textalpha}}    % ἄ
-\DeclareUnicodeCharacter{1F05}{\ensuregreek{\@tabacckludge<'\textalpha}}    % ἅ
-\DeclareUnicodeCharacter{1F06}{\ensuregreek{\@tabacckludge~>\textalpha}}    % ἆ
-\DeclareUnicodeCharacter{1F07}{\ensuregreek{\@tabacckludge~<\textalpha}}    % ἇ
-\DeclareUnicodeCharacter{1F08}{\ensuregreek{\@tabacckludge>\textAlpha}}     % Ἀ
-\DeclareUnicodeCharacter{1F09}{\ensuregreek{\@tabacckludge<\textAlpha}}     % Ἁ
-\DeclareUnicodeCharacter{1F0A}{\ensuregreek{\@tabacckludge>`\textAlpha}}    % Ἂ
-\DeclareUnicodeCharacter{1F0B}{\ensuregreek{\@tabacckludge<`\textAlpha}}    % Ἃ
-\DeclareUnicodeCharacter{1F0C}{\ensuregreek{\@tabacckludge>'\textAlpha}}    % Ἄ
-\DeclareUnicodeCharacter{1F0D}{\ensuregreek{\@tabacckludge>'\textAlpha}}    % Ἅ
-\DeclareUnicodeCharacter{1F0E}{\ensuregreek{\@tabacckludge~>\textAlpha}}    % Ἆ
-\DeclareUnicodeCharacter{1F0F}{\ensuregreek{\@tabacckludge~<\textAlpha}}    % Ἇ
-
-\DeclareUnicodeCharacter{1F10}{\ensuregreek{\@tabacckludge>\textepsilon}}   % ἐ
-\DeclareUnicodeCharacter{1F11}{\ensuregreek{\@tabacckludge<\textepsilon}}   % ἑ
-\DeclareUnicodeCharacter{1F12}{\ensuregreek{\@tabacckludge>`\textepsilon}}  % ἒ
-\DeclareUnicodeCharacter{1F13}{\ensuregreek{\@tabacckludge<`\textepsilon}}  % ἓ
-\DeclareUnicodeCharacter{1F14}{\ensuregreek{\@tabacckludge>'\textepsilon}}  % ἔ
-\DeclareUnicodeCharacter{1F15}{\ensuregreek{\@tabacckludge>'\textepsilon}}  % ἕ
-\DeclareUnicodeCharacter{1F18}{\ensuregreek{\@tabacckludge>\textEpsilon}}   % Ἐ
-\DeclareUnicodeCharacter{1F19}{\ensuregreek{\@tabacckludge<\textEpsilon}}   % Ἑ
-\DeclareUnicodeCharacter{1F1A}{\ensuregreek{\@tabacckludge>`\textEpsilon}}  % Ἒ
-\DeclareUnicodeCharacter{1F1B}{\ensuregreek{\@tabacckludge<`\textEpsilon}}  % Ἓ
-\DeclareUnicodeCharacter{1F1C}{\ensuregreek{\@tabacckludge>'\textEpsilon}}  % Ἔ
-\DeclareUnicodeCharacter{1F1D}{\ensuregreek{\@tabacckludge>'\textEpsilon}}  % Ἕ
-
-\DeclareUnicodeCharacter{1F20}{\ensuregreek{\@tabacckludge>\texteta}}       % ἠ
-\DeclareUnicodeCharacter{1F21}{\ensuregreek{\@tabacckludge<\texteta}}       % ἡ
-\DeclareUnicodeCharacter{1F22}{\ensuregreek{\@tabacckludge>`\texteta}}      % ἢ
-\DeclareUnicodeCharacter{1F23}{\ensuregreek{\@tabacckludge<`\texteta}}      % ἣ
-\DeclareUnicodeCharacter{1F24}{\ensuregreek{\@tabacckludge>'\texteta}}      % ἤ
-\DeclareUnicodeCharacter{1F25}{\ensuregreek{\@tabacckludge>'\texteta}}      % ἥ
-\DeclareUnicodeCharacter{1F26}{\ensuregreek{\@tabacckludge~>\texteta}}      % ἦ
-\DeclareUnicodeCharacter{1F27}{\ensuregreek{\@tabacckludge~<\texteta}}      % ἧ
-\DeclareUnicodeCharacter{1F28}{\ensuregreek{\@tabacckludge>\textEta}}       % Ἠ
-\DeclareUnicodeCharacter{1F29}{\ensuregreek{\@tabacckludge<\textEta}}       % Ἡ
-\DeclareUnicodeCharacter{1F2A}{\ensuregreek{\@tabacckludge>`\textEta}}      % Ἢ
-\DeclareUnicodeCharacter{1F2B}{\ensuregreek{\@tabacckludge<`\textEta}}      % Ἣ
-\DeclareUnicodeCharacter{1F2C}{\ensuregreek{\@tabacckludge>'\textEta}}      % Ἤ
-\DeclareUnicodeCharacter{1F2D}{\ensuregreek{\@tabacckludge>'\textEta}}      % Ἥ
-\DeclareUnicodeCharacter{1F2E}{\ensuregreek{\@tabacckludge~>\textEta}}      % Ἦ
-\DeclareUnicodeCharacter{1F2F}{\ensuregreek{\@tabacckludge~<\textEta}}      % Ἧ
-
-\DeclareUnicodeCharacter{1F30}{\ensuregreek{\@tabacckludge>\textiota}}      % ἰ
-\DeclareUnicodeCharacter{1F31}{\ensuregreek{\@tabacckludge<\textiota}}      % ἱ
-\DeclareUnicodeCharacter{1F32}{\ensuregreek{\@tabacckludge>`\textiota}}     % ἲ
-\DeclareUnicodeCharacter{1F33}{\ensuregreek{\@tabacckludge<`\textiota}}     % ἳ
-\DeclareUnicodeCharacter{1F34}{\ensuregreek{\@tabacckludge>'\textiota}}     % ἴ
-\DeclareUnicodeCharacter{1F35}{\ensuregreek{\@tabacckludge>'\textiota}}     % ἵ
-\DeclareUnicodeCharacter{1F36}{\ensuregreek{\@tabacckludge~>\textiota}}     % ἶ
-\DeclareUnicodeCharacter{1F37}{\ensuregreek{\@tabacckludge~<\textiota}}     % ἷ
-\DeclareUnicodeCharacter{1F38}{\ensuregreek{\@tabacckludge>\textIota}}      % Ἰ
-\DeclareUnicodeCharacter{1F39}{\ensuregreek{\@tabacckludge<\textIota}}      % Ἱ
-\DeclareUnicodeCharacter{1F3A}{\ensuregreek{\@tabacckludge>`\textIota}}     % Ἲ
-\DeclareUnicodeCharacter{1F3B}{\ensuregreek{\@tabacckludge<`\textIota}}     % Ἳ
-\DeclareUnicodeCharacter{1F3C}{\ensuregreek{\@tabacckludge>'\textIota}}     % Ἴ
-\DeclareUnicodeCharacter{1F3D}{\ensuregreek{\@tabacckludge>'\textIota}}     % Ἵ
-\DeclareUnicodeCharacter{1F3E}{\ensuregreek{\@tabacckludge~>\textIota}}     % Ἶ
-\DeclareUnicodeCharacter{1F3F}{\ensuregreek{\@tabacckludge~<\textIota}}     % Ἷ
-
-\DeclareUnicodeCharacter{1F40}{\ensuregreek{\@tabacckludge>\textomicron}}   % ὀ
-\DeclareUnicodeCharacter{1F41}{\ensuregreek{\@tabacckludge<\textomicron}}   % ὁ
-\DeclareUnicodeCharacter{1F42}{\ensuregreek{\@tabacckludge>`\textomicron}}  % ὂ
-\DeclareUnicodeCharacter{1F43}{\ensuregreek{\@tabacckludge<`\textomicron}}  % ὃ
-\DeclareUnicodeCharacter{1F44}{\ensuregreek{\@tabacckludge>'\textomicron}}  % ὄ
-\DeclareUnicodeCharacter{1F45}{\ensuregreek{\@tabacckludge>'\textomicron}}  % ὅ
-\DeclareUnicodeCharacter{1F48}{\ensuregreek{\@tabacckludge>\textOmicron}}   % Ὀ
-\DeclareUnicodeCharacter{1F49}{\ensuregreek{\@tabacckludge<\textOmicron}}   % Ὁ
-\DeclareUnicodeCharacter{1F4A}{\ensuregreek{\@tabacckludge>`\textOmicron}}  % Ὂ
-\DeclareUnicodeCharacter{1F4B}{\ensuregreek{\@tabacckludge<`\textOmicron}}  % Ὃ
-\DeclareUnicodeCharacter{1F4C}{\ensuregreek{\@tabacckludge>'\textOmicron}}  % Ὄ
-\DeclareUnicodeCharacter{1F4D}{\ensuregreek{\@tabacckludge>'\textOmicron}}  % Ὅ
-
-\DeclareUnicodeCharacter{1F50}{\ensuregreek{\@tabacckludge>\textupsilon}}   % ὐ
-\DeclareUnicodeCharacter{1F51}{\ensuregreek{\@tabacckludge<\textupsilon}}   % ὑ
-\DeclareUnicodeCharacter{1F52}{\ensuregreek{\@tabacckludge>`\textupsilon}}  % ὒ
-\DeclareUnicodeCharacter{1F53}{\ensuregreek{\@tabacckludge<`\textupsilon}}  % ὓ
-\DeclareUnicodeCharacter{1F54}{\ensuregreek{\@tabacckludge>'\textupsilon}}  % ὔ
-\DeclareUnicodeCharacter{1F55}{\ensuregreek{\@tabacckludge>'\textupsilon}}  % ὕ
-\DeclareUnicodeCharacter{1F56}{\ensuregreek{\@tabacckludge~>\textupsilon}}  % ὖ
-\DeclareUnicodeCharacter{1F57}{\ensuregreek{\@tabacckludge~<\textupsilon}}  % ὗ
-\DeclareUnicodeCharacter{1F59}{\ensuregreek{\@tabacckludge<\textUpsilon}}   % Ὑ
-\DeclareUnicodeCharacter{1F5B}{\ensuregreek{\@tabacckludge<`\textUpsilon}}  % Ὓ
-\DeclareUnicodeCharacter{1F5D}{\ensuregreek{\@tabacckludge>'\textUpsilon}}  % Ὕ
-\DeclareUnicodeCharacter{1F5F}{\ensuregreek{\@tabacckludge~<\textUpsilon}}  % Ὗ
-
-\DeclareUnicodeCharacter{1F60}{\ensuregreek{\@tabacckludge>\textomega}}     % ὠ
-\DeclareUnicodeCharacter{1F61}{\ensuregreek{\@tabacckludge<\textomega}}     % ὡ
-\DeclareUnicodeCharacter{1F62}{\ensuregreek{\@tabacckludge>`\textomega}}    % ὢ
-\DeclareUnicodeCharacter{1F63}{\ensuregreek{\@tabacckludge<`\textomega}}    % ὣ
-\DeclareUnicodeCharacter{1F64}{\ensuregreek{\@tabacckludge>'\textomega}}    % ὤ
-\DeclareUnicodeCharacter{1F65}{\ensuregreek{\@tabacckludge>'\textomega}}    % ὥ
-\DeclareUnicodeCharacter{1F66}{\ensuregreek{\@tabacckludge~>\textomega}}    % ὦ
-\DeclareUnicodeCharacter{1F67}{\ensuregreek{\@tabacckludge~<\textomega}}    % ὧ
-\DeclareUnicodeCharacter{1F68}{\ensuregreek{\@tabacckludge>\textOmega}}     % Ὠ
-\DeclareUnicodeCharacter{1F69}{\ensuregreek{\@tabacckludge<\textOmega}}     % Ὡ
-\DeclareUnicodeCharacter{1F6A}{\ensuregreek{\@tabacckludge>`\textOmega}}    % Ὢ
-\DeclareUnicodeCharacter{1F6B}{\ensuregreek{\@tabacckludge<`\textOmega}}    % Ὣ
-\DeclareUnicodeCharacter{1F6C}{\ensuregreek{\@tabacckludge>'\textOmega}}    % Ὤ
-\DeclareUnicodeCharacter{1F6D}{\ensuregreek{\@tabacckludge>'\textOmega}}    % Ὥ
-\DeclareUnicodeCharacter{1F6E}{\ensuregreek{\@tabacckludge~>\textOmega}}    % Ὦ
-\DeclareUnicodeCharacter{1F6F}{\ensuregreek{\@tabacckludge~<\textOmega}}    % Ὧ
-
-\DeclareUnicodeCharacter{1F70}{\ensuregreek{\@tabacckludge`\textalpha}}     % ὰ
-\DeclareUnicodeCharacter{1F71}{\ensuregreek{\@tabacckludge'\textalpha}}     % ά
-\DeclareUnicodeCharacter{1F72}{\ensuregreek{\@tabacckludge`\textepsilon}}   % ὲ
-\DeclareUnicodeCharacter{1F73}{\ensuregreek{\@tabacckludge'\textepsilon}}   % έ
-\DeclareUnicodeCharacter{1F74}{\ensuregreek{\@tabacckludge`\texteta}}       % ὴ
-\DeclareUnicodeCharacter{1F75}{\ensuregreek{\@tabacckludge'\texteta}}       % ή
-\DeclareUnicodeCharacter{1F76}{\ensuregreek{\@tabacckludge`\textiota}}      % ὶ
-\DeclareUnicodeCharacter{1F77}{\ensuregreek{\@tabacckludge'\textiota}}      % ί
-\DeclareUnicodeCharacter{1F78}{\ensuregreek{\@tabacckludge`\textomicron}}   % ὸ
-\DeclareUnicodeCharacter{1F79}{\ensuregreek{\@tabacckludge'\textomicron}}   % ό
-\DeclareUnicodeCharacter{1F7A}{\ensuregreek{\@tabacckludge`\textupsilon}}   % ὺ
-\DeclareUnicodeCharacter{1F7B}{\ensuregreek{\@tabacckludge'\textupsilon}}   % ύ
-\DeclareUnicodeCharacter{1F7C}{\ensuregreek{\@tabacckludge`\textomega}}     % ὼ
-\DeclareUnicodeCharacter{1F7D}{\ensuregreek{\@tabacckludge'\textomega}}     % ώ
-
-\DeclareUnicodeCharacter{1F80}{\ensuregreek{\@tabacckludge>\textalpha|}}    % ᾀ
-\DeclareUnicodeCharacter{1F81}{\ensuregreek{\@tabacckludge<\textalpha|}}    % ᾁ
-\DeclareUnicodeCharacter{1F82}{\ensuregreek{\@tabacckludge>`\textalpha|}}   % ᾂ
-\DeclareUnicodeCharacter{1F83}{\ensuregreek{\@tabacckludge<`\textalpha|}}   % ᾃ
-\DeclareUnicodeCharacter{1F84}{\ensuregreek{\@tabacckludge>'\textalpha|}}   % ᾄ
-\DeclareUnicodeCharacter{1F85}{\ensuregreek{\@tabacckludge>'\textalpha|}}   % ᾅ
-\DeclareUnicodeCharacter{1F86}{\ensuregreek{\@tabacckludge~>\textalpha|}}   % ᾆ
-\DeclareUnicodeCharacter{1F87}{\ensuregreek{\@tabacckludge~<\textalpha|}}   % ᾇ
-\DeclareUnicodeCharacter{1F88}{\ensuregreek{\@tabacckludge>\textAlpha|}}    % ᾈ
-\DeclareUnicodeCharacter{1F89}{\ensuregreek{\@tabacckludge<\textAlpha|}}    % ᾉ
-\DeclareUnicodeCharacter{1F8A}{\ensuregreek{\@tabacckludge>`\textAlpha|}}   % ᾊ
-\DeclareUnicodeCharacter{1F8B}{\ensuregreek{\@tabacckludge<`\textAlpha|}}   % ᾋ
-\DeclareUnicodeCharacter{1F8C}{\ensuregreek{\@tabacckludge>'\textAlpha|}}   % ᾌ
-\DeclareUnicodeCharacter{1F8D}{\ensuregreek{\@tabacckludge>'\textAlpha|}}   % ᾍ
-\DeclareUnicodeCharacter{1F8E}{\ensuregreek{\@tabacckludge~>\textAlpha|}}   % ᾎ
-\DeclareUnicodeCharacter{1F8F}{\ensuregreek{\@tabacckludge~<\textAlpha|}}   % ᾏ
-
-\DeclareUnicodeCharacter{1F90}{\ensuregreek{\@tabacckludge>\texteta|}}      % ᾐ
-\DeclareUnicodeCharacter{1F91}{\ensuregreek{\@tabacckludge<\texteta|}}      % ᾑ
-\DeclareUnicodeCharacter{1F92}{\ensuregreek{\@tabacckludge>`\texteta|}}     % ᾒ
-\DeclareUnicodeCharacter{1F93}{\ensuregreek{\@tabacckludge<`\texteta|}}     % ᾓ
-\DeclareUnicodeCharacter{1F94}{\ensuregreek{\@tabacckludge>'\texteta|}}     % ᾔ
-\DeclareUnicodeCharacter{1F95}{\ensuregreek{\@tabacckludge>'\texteta|}}     % ᾕ
-\DeclareUnicodeCharacter{1F96}{\ensuregreek{\@tabacckludge~>\texteta|}}     % ᾖ
-\DeclareUnicodeCharacter{1F97}{\ensuregreek{\@tabacckludge~<\texteta|}}     % ᾗ
-\DeclareUnicodeCharacter{1F98}{\ensuregreek{\@tabacckludge>\textEta|}}      % ᾘ
-\DeclareUnicodeCharacter{1F99}{\ensuregreek{\@tabacckludge<\textEta|}}      % ᾙ
-\DeclareUnicodeCharacter{1F9A}{\ensuregreek{\@tabacckludge>`\textEta|}}     % ᾚ
-\DeclareUnicodeCharacter{1F9B}{\ensuregreek{\@tabacckludge<`\textEta|}}     % ᾛ
-\DeclareUnicodeCharacter{1F9C}{\ensuregreek{\@tabacckludge>'\textEta|}}     % ᾜ
-\DeclareUnicodeCharacter{1F9D}{\ensuregreek{\@tabacckludge>'\textEta|}}     % ᾝ
-\DeclareUnicodeCharacter{1F9E}{\ensuregreek{\@tabacckludge~>\textEta|}}     % ᾞ
-\DeclareUnicodeCharacter{1F9F}{\ensuregreek{\@tabacckludge~<\textEta|}}     % ᾟ
-
-\DeclareUnicodeCharacter{1FA0}{\ensuregreek{\@tabacckludge>\textomega|}}    % ᾠ
-\DeclareUnicodeCharacter{1FA1}{\ensuregreek{\@tabacckludge<\textomega|}}    % ᾡ
-\DeclareUnicodeCharacter{1FA2}{\ensuregreek{\@tabacckludge>`\textomega|}}   % ᾢ
-\DeclareUnicodeCharacter{1FA3}{\ensuregreek{\@tabacckludge<`\textomega|}}   % ᾣ
-\DeclareUnicodeCharacter{1FA4}{\ensuregreek{\@tabacckludge>'\textomega|}}   % ᾤ
-\DeclareUnicodeCharacter{1FA5}{\ensuregreek{\@tabacckludge>'\textomega|}}   % ᾥ
-\DeclareUnicodeCharacter{1FA6}{\ensuregreek{\@tabacckludge~>\textomega|}}   % ᾦ
-\DeclareUnicodeCharacter{1FA7}{\ensuregreek{\@tabacckludge~<\textomega|}}   % ᾧ
-\DeclareUnicodeCharacter{1FA8}{\ensuregreek{\@tabacckludge>\textOmega|}}    % ᾨ
-\DeclareUnicodeCharacter{1FA9}{\ensuregreek{\@tabacckludge<\textOmega|}}    % ᾩ
-\DeclareUnicodeCharacter{1FAA}{\ensuregreek{\@tabacckludge>`\textOmega|}}   % ᾪ
-\DeclareUnicodeCharacter{1FAB}{\ensuregreek{\@tabacckludge<`\textOmega|}}   % ᾫ
-\DeclareUnicodeCharacter{1FAC}{\ensuregreek{\@tabacckludge>'\textOmega|}}   % ᾬ
-\DeclareUnicodeCharacter{1FAD}{\ensuregreek{\@tabacckludge>'\textOmega|}}   % ᾭ
-\DeclareUnicodeCharacter{1FAE}{\ensuregreek{\@tabacckludge~>\textOmega|}}   % ᾮ
-\DeclareUnicodeCharacter{1FAF}{\ensuregreek{\@tabacckludge~<\textOmega|}}   % ᾯ
-
-\DeclareUnicodeCharacter{1FB0}{\ensuregreek{\u\textalpha}}                  % ᾰ
-\DeclareUnicodeCharacter{1FB1}{\ensuregreek{\@tabacckludge=\textalpha}}     % ᾱ
-\DeclareUnicodeCharacter{1FB2}{\ensuregreek{\@tabacckludge`\textalpha|}}    % ᾲ
-\DeclareUnicodeCharacter{1FB3}{\ensuregreek{\textalpha|}}                   % ᾳ
-\DeclareUnicodeCharacter{1FB4}{\ensuregreek{\@tabacckludge'\textalpha|}}    % ᾴ
-\DeclareUnicodeCharacter{1FB6}{\ensuregreek{\~\textalpha}}                  % ᾶ
-\DeclareUnicodeCharacter{1FB7}{\ensuregreek{\~\textalpha|}}                 % ᾷ
-\DeclareUnicodeCharacter{1FB8}{\ensuregreek{\u\textAlpha}}                  % Ᾰ
-\DeclareUnicodeCharacter{1FB9}{\ensuregreek{\@tabacckludge=\textAlpha}}     % Ᾱ
-\DeclareUnicodeCharacter{1FBA}{\ensuregreek{\@tabacckludge`\textAlpha}}     % Ὰ
-\DeclareUnicodeCharacter{1FBB}{\ensuregreek{\@tabacckludge'\textAlpha}}     % Ά
-\DeclareUnicodeCharacter{1FBC}{\ensuregreek{\textAlpha|}}                   % ᾼ
-\DeclareUnicodeCharacter{1FBD}{\ensuregreek{\@tabacckludge>\textcompwordmark}} % ᾽
-\DeclareUnicodeCharacter{1FBE}{\textcompwordmark\Prosgegrammeni}          % ι
-\DeclareUnicodeCharacter{1FBF}{\ensuregreek{\@tabacckludge>\textcompwordmark}} % ᾿
-
-\DeclareUnicodeCharacter{1FC0}{\ensuregreek{\~\textcompwordmark}}           % ῀
-\DeclareUnicodeCharacter{1FC1}{\ensuregreek{\"\~\textcompwordmark}}         % ῁
-\DeclareUnicodeCharacter{1FC2}{\ensuregreek{\@tabacckludge`\texteta|}}      % ῂ
-\DeclareUnicodeCharacter{1FC3}{\ensuregreek{\texteta|}}                     % ῃ
-\DeclareUnicodeCharacter{1FC4}{\ensuregreek{\@tabacckludge'\texteta|}}      % ῄ
-\DeclareUnicodeCharacter{1FC6}{\ensuregreek{\~\texteta}}                    % ῆ
-\DeclareUnicodeCharacter{1FC7}{\ensuregreek{\~\texteta|}}                   % ῇ
-\DeclareUnicodeCharacter{1FC8}{\ensuregreek{\@tabacckludge`\textEpsilon}}   % Ὲ
-\DeclareUnicodeCharacter{1FC9}{\ensuregreek{\@tabacckludge'\textEpsilon}}   % Έ
-\DeclareUnicodeCharacter{1FCA}{\ensuregreek{\@tabacckludge`\textEta}}       % Ὴ
-\DeclareUnicodeCharacter{1FCB}{\ensuregreek{\@tabacckludge'\textEta}}       % Ή
-\DeclareUnicodeCharacter{1FCC}{\ensuregreek{\textEta|}}                     % ῌ
-\DeclareUnicodeCharacter{1FCD}{\ensuregreek{\@tabacckludge>`\textcompwordmark}} % ῍
-\DeclareUnicodeCharacter{1FCE}{\ensuregreek{\@tabacckludge>'\textcompwordmark}} % ῎
-\DeclareUnicodeCharacter{1FCF}{\ensuregreek{\@tabacckludge~>\textcompwordmark}} % ῏
-
-\DeclareUnicodeCharacter{1FD0}{\ensuregreek{\u\textiota}}                   % ῐ
-\DeclareUnicodeCharacter{1FD1}{\ensuregreek{\@tabacckludge=\textiota}}      % ῑ
-\DeclareUnicodeCharacter{1FD2}{\ensuregreek{\`"\textiota}} % not \"`...     % ῒ
-\DeclareUnicodeCharacter{1FD3}{\ensuregreek{\'"\textiota}} % not \"'...     % ΐ
-\DeclareUnicodeCharacter{1FD6}{\ensuregreek{\~\textiota}}                   % ῖ
-\DeclareUnicodeCharacter{1FD7}{\ensuregreek{\~"\textiota}}                  % ῗ
-\DeclareUnicodeCharacter{1FD8}{\ensuregreek{\u\textIota}}                   % Ῐ
-\DeclareUnicodeCharacter{1FD9}{\ensuregreek{\@tabacckludge=\textIota}}      % Ῑ
-\DeclareUnicodeCharacter{1FDA}{\ensuregreek{\@tabacckludge`\textIota}}      % Ὶ
-\DeclareUnicodeCharacter{1FDB}{\ensuregreek{\@tabacckludge'\textIota}}      % Ί
-\DeclareUnicodeCharacter{1FDD}{\ensuregreek{\@tabacckludge<`\textcompwordmark}} % ῝
-\DeclareUnicodeCharacter{1FDE}{\ensuregreek{\@tabacckludge>'\textcompwordmark}} % ῞
-\DeclareUnicodeCharacter{1FDF}{\ensuregreek{\@tabacckludge~<\textcompwordmark}} % ῟
-
-\DeclareUnicodeCharacter{1FE0}{\ensuregreek{\u\textupsilon}}                % ῠ
-\DeclareUnicodeCharacter{1FE1}{\ensuregreek{\@tabacckludge=\textupsilon}}   % ῡ
-\DeclareUnicodeCharacter{1FE2}{\ensuregreek{\`"\textupsilon}} % not \"`...  % ῢ
-\DeclareUnicodeCharacter{1FE3}{\ensuregreek{\'"\textupsilon}} % not \"'...  % ΰ
-\DeclareUnicodeCharacter{1FE4}{\ensuregreek{\@tabacckludge>r}}              % ῤ
-\DeclareUnicodeCharacter{1FE5}{\ensuregreek{\@tabacckludge<r}}              % ῥ
-\DeclareUnicodeCharacter{1FE6}{\ensuregreek{\~\textupsilon}}                % ῦ
-\DeclareUnicodeCharacter{1FE7}{\ensuregreek{\~"\textupsilon}}               % ῧ
-\DeclareUnicodeCharacter{1FE8}{\ensuregreek{\u\textUpsilon}}                % Ῠ
-\DeclareUnicodeCharacter{1FE9}{\ensuregreek{\@tabacckludge=\textUpsilon}}   % Ῡ
-\DeclareUnicodeCharacter{1FEA}{\ensuregreek{\@tabacckludge`\textUpsilon}}   % Ὺ
-\DeclareUnicodeCharacter{1FEB}{\ensuregreek{\@tabacckludge'\textUpsilon}}   % Ύ
-\DeclareUnicodeCharacter{1FEC}{\ensuregreek{\@tabacckludge<\textRho}}       % Ῥ
-\DeclareUnicodeCharacter{1FED}{\ensuregreek{\`"\textcompwordmark}}          % ῭
-\DeclareUnicodeCharacter{1FEE}{\ensuregreek{\'"\textcompwordmark}}          % ΅
-\DeclareUnicodeCharacter{1FEF}{\ensuregreek{\@tabacckludge`\textcompwordmark}} % `
-
-\DeclareUnicodeCharacter{1FF2}{\ensuregreek{\@tabacckludge`\textomega|}}    % ῲ
-\DeclareUnicodeCharacter{1FF3}{\ensuregreek{\textomega|}}                   % ῳ
-\DeclareUnicodeCharacter{1FF4}{\ensuregreek{\@tabacckludge'\textomega|}}    % ῴ
-\DeclareUnicodeCharacter{1FF6}{\ensuregreek{\~\textomega}}                  % ῶ
-\DeclareUnicodeCharacter{1FF7}{\ensuregreek{\~\textomega|}}                 % ῷ
-\DeclareUnicodeCharacter{1FF8}{\ensuregreek{\@tabacckludge`\textOmicron}}   % Ὸ
-\DeclareUnicodeCharacter{1FF9}{\ensuregreek{\@tabacckludge'\textOmicron}}   % Ό
-\DeclareUnicodeCharacter{1FFA}{\ensuregreek{\@tabacckludge`\textOmega}}     % Ὼ
-\DeclareUnicodeCharacter{1FFB}{\ensuregreek{\@tabacckludge'\textOmega}}     % Ώ
-\DeclareUnicodeCharacter{1FFC}{\ensuregreek{\textOmega|}}                   % ῼ
-\DeclareUnicodeCharacter{1FFD}{\ensuregreek{\@tabacckludge'\textcompwordmark}} % ´
-\DeclareUnicodeCharacter{1FFE}{\ensuregreek{\@tabacckludge<\textcompwordmark}} % ῾
-
-
-
-

General Punctuation

-
\DeclareUnicodeCharacter{2013}{\textendash}      % –
-\DeclareUnicodeCharacter{2014}{\textemdash}      % —
-\DeclareUnicodeCharacter{2018}{\textquoteleft}   % ‘
-\DeclareUnicodeCharacter{2019}{\textquoteright}  % ’
-\DeclareUnicodeCharacter{2030}{\textperthousand} % ‰
-\DeclareUnicodeCharacter{20AC}{\texteuro}        % €
-
-
-
-

Letterlike Symbols

-
\DeclareUnicodeCharacter{2126}{\textOmega}  % Ω OHM SIGN
-
-
-
-

Ancient Greek Numbers

-

TODO: map other chars to corresponding Greek letters. -See also the grnumalt package:

-
\DeclareUnicodeCharacter{10144}{\PiDelta} % GREEK ACROPHONIC ATTIC FIFTY
-\DeclareUnicodeCharacter{10145}{\PiEta}   % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-\DeclareUnicodeCharacter{10146}{\PiChi}   % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-\DeclareUnicodeCharacter{10147}{\PiMu}    % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-
-
-
-
- - diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf index 68a3e65f73d..058ffe32c44 100644 Binary files a/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf and b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.pdf differ diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex index 3a1743e11dd..dc65a38561a 100644 --- a/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc-test.tex @@ -127,11 +127,11 @@ Ligature break up: AY fi \LGR AU "i $\mapsto$ % \texttrademark{} % \ss$\mapsto$\SS{} % -\Latin Babel's lgrenc.def defines them with \verb|\latintext|, however -this macro is not guaranteed to be defined, so it should not be used -in a font encoding definition file. Instead, the textcomp.sty package -should be used to provide the symbols for all font encodings (using the -sharp s (\ss) in Greek is bound to fail anyway). +\Latin Babel's lgrenc.def defines them with \verb|\latintext|, however this +macro is not guaranteed to be defined, so it should not be used in a font +encoding definition file. Instead, the textcomp.sty package should be used +to provide the symbols for all font encodings (the sharp s (\ss) is used in +German text that cannot be set with LGR anyway). \subsubsection*{Greek alphabet} @@ -204,7 +204,9 @@ $\mapsto$ \MakeUppercase{% \Latin The komma-below (\verb|\k|) is not defined in LGR. -Additional Greek diacritics +Additional Greek diacritics\footnote{% +The dialytika is not used on Initial letters, therfore the combined +``something + dialytika'' accents are not moved befor the capital Iota.} \LGR \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w} @@ -212,7 +214,6 @@ $\mapsto$ \MakeUppercase{% \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w} } -% The dialytika is not used on Initial letters ("'I \"`I \~"I) \<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W} $\mapsto$ \MakeUppercase{% \<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W} @@ -316,8 +317,7 @@ with tonos or psili. % \'AO \'AP \'AR \'AS \'AC \'AT \'AU \'AF \'AQ \'AY \'AW rows 15 and 16: Like in any font encoding, there is no kerning for -non-defined accent-letter-combinations (dialytica on \LGR A O D\Latin).% -\footnote{with the Kerkis fonts, kerning is kept} +non-defined accent-letter-combinations (dialytica on \LGR A O D\Latin). The uppercase of the zero-width space at the place of ``v`` is the Dasia-Oxia accent~\LGR \MakeUppercase{v}\Latin , the glyph at the diff --git a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html index 4b4581527b5..bc6b06f298b 100644 --- a/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html +++ b/Master/texmf-dist/doc/latex/lgrx/lgrxenc.def.html @@ -729,76 +729,33 @@ version 1.3 of this license or any later version.

Abstract

-

The LGR font encoding is the de-facto standard for Greek -typesetting with LaTeX. However, the encoding definition file -that ships with babel misses many of the definitions common -since the introduction of the NFSS (see fntguide “Encodings”).

-

This file provides a comprehensive set of macros to -typeset Greek with LGR encoded fonts. It works for both, -monotonic and polytonic Greek, independent of the babel -package.

+

This file is only kept for backwards compatibility with existing +documents.

+

For new documents, use lgrenc.def from greek-fontenc (which +is also required by this file).

-

This package is part of the lgrx bundle.

+

This file is part of the lgrx bundle.

Usage

-

To prevent confusion with Babel’s lgrenc.def, this file is -named lgrxenc.def. Load it by calling fontenc with the LGRx option -or indirectly via the textalpha or alphabeta packages.

-
-
Example:
-

Select font encodings T1 (as default) and LGR (with the comprehensive -font encoding definitions)

-
-

\usepackage[LGRx,T1]{fontenc}

-
-
-
-
-

Attention!

-

The name of the font encoding defined by the option LGRx -is not LGRx but LGR. Therefore, LGRx must not be the -last option (as fontenc uses the last option to select the default font -encoding). To set LGR as as default font encoding specify both, -LGRx and LGR, e.g.

-
-

\usepackage[LGRx,T1,LGR]{fontenc}

-
-
-
-
-

LICR macro names

-

The fntguide (section 6.4 Naming conventions) recommends:

-
-

Where possible, text symbols should be named as \text followed -by the Adobe glyph name: for example \textonequarter or -\textsterling. Similarly, math symbols should be named as -\math followed by the glyph name, for example -\mathonequarter or \mathsterling.

-
-

The Adobe Glyph List For New Fonts has names for many glyphs in the -Greek and Coptic Unicode block, but not for Greek extended. -The Adobe Glyph List (for existing fonts) lists additional glyph names -used in older fonts.

-
-

Proposals

-
    -
  • If there exists a math-mode macro for a symbol, form the corresponding text -macro by prepending text?

    -
    -
    Example:
    -

    The glyph name for the GREEK SMALL LETTER FINAL SIGMA is sigma1, -the corresponding math-macro is \varsigma. The text symbol could be -made available as \textvarsigma.

    -
    -
    Problems:
    -

    \varepsilon and \varphi math macros map to characters named -“GREEK SMALL LETTER …”, while \\vartheta, \\varkappa, -\\varrho, and \\varpi math macros map to “GREEK … SYMBOL” -Unicode characters.

    -

    In Greek text, these variants are interchangeable. The LGR font encoding -does not contain slots for “symbol” glyph variants. In some Greek fonts, -GREEK SMALL LETTERS use glyph variants resembling the corresponding -GREEK SYMBOL Unicode character’s reference glyph.

    -
    -
    -
  • -
  • Derive macro names from Unicode names?

    -

    The Unicode names list provides standardized descriptive names for all -Unicode characters that use only capital letters of the Latin alphabet. -While not suited for direct use in a LICR macros, they can be either

    -
      -
    1. used as inspiration for new LICR macro names or

    2. -
    3. converted to LICR macro names via a defined set of transformation rules.

    4. -
    +

    This file is only kept for backwards compatibility with existing documents.

    +

    For new documents, use lgrenc.def from greek-fontenc (which is also +required by this file).

    Example:
    -

    \textfinalsigma or just \finalsigma as a more descriptive name -for GREEK SMALL LETTER FINAL SIGMA derived via the rules:

    -
      -
    • drop “LETTER” if the name remains unique,

    • -
    • drop “GREEK” if the name remains unique,

    • -
    • use capitalized name for capital letters, lowercase for “SMALL” letters -and drop “SMALL”,

    • -
    • concatenate

    • -
    -
    -
    -
  • -
  • Omit the “text” prefix for macros that do not have a math counterpart?

    -
    -
    Pro:
    -
      -
    • Simpler,

    • -
    • ease of use (less typing, better readability of source text),

    • -
    • many established text macro names without “text”,

    • -
    • there are examples of encoding-specific macros -without the text-prefix, especially for letters,

      -
      -
      T1
      -

      \AE \DH \DJ \L \NG \OE \O \SS \TH \ae \dh \dj \guillemotleft -\guillemotright \guilsinglleft \guilsinglright \i \j \l \ng -\oe \o \quotedblbase \quotesinglbase \ss \th (also in OT1)

      -
      -
      T2*
      -

      \CYR* and \cyr*

      -
      -
      HE8
      -

      \heb* or no prefix

      -
      -
      PU
      -

      short descriptive names in the arabic part (puarenc.def)

      -
      -
      -
    • -
    • text prefix does not mark a macro as encoding-specific or -“inserting a glyph”. There are e.g. font-changing macros (\textbf, -\textit) and encoding-changing macros (\textgreek, -\textcyr).

    • -
    -
    -
    Contra:
    -
      -
    • Less consistent.

    • -
    • text prefix marks a macro as confined to text mode.

    • -
    +

    Select font encodings T1 (as default) and LGR:

    +
    \usepackage[LGR,T1]{fontenc}
    +
    +

    Select font encodings T1 and (as default) LGR:

    +
    \usepackage[T1,LGR]{fontenc}
    +
    +

    Babel’s “greek” option and the textalpha and alphabeta packages also load +lgrenc.def, so after any of the following lines, “LGR” is declared and +set up as a font encoding:

    +
    \usepackage[greek,english]{babel} % default language English
    +
    +\usepackage[greek,english]{babel} % default language Greek
    +
    +\usepackage{textalpha}
    +
    +\usepackage{alphabeta}
    +
    -
  • -
-
-
-

How to name accent macros?

-
    -
  • standard accent macros (\DeclareTextAccent definitions in -latex/base/...) are one-symbol macros (\' \" ... \u \v ...) .

  • -
  • tipa.sty and ucs use the “text” prefix also for accents.

    -

    However, the Adobe Glyph List For New Fonts maps, e.g., “tonos” and -“dieresistonos” to 0384 GREEK TONOS and 0385 GREEK DIALYTIKA TONOS, hence -texttonos and textdiaresistonos should denote these spacing -characters.

    -
  • -
  • textcomp (ts1enc.def) defines \capital... accents (i.e. without -text prefix).

  • -
  • Use a common prefix \accent... or postfix \...accent, -or short \acc...?

  • -
-

Currently, lgrx uses for diacritics:

-
    -
  • Greek names like in Unicode, and ucsencs.def

  • -
  • The prefix “acc” to distinguish the macros as TextAaccent and reduce the -risc of name clashes (cf \@tabacckludge).

  • -
  • For the end-user “symbol macros” (\~ \' \` \" \< \>) are provided.

  • -
-
-
-

References

-

An alternative, more complete set of short mnemonic character names is -the XML Entity Definitions for Characters W3C Recommendation from -01 April 2010.

-

For glyph names of the LGR encoding see e.g. CB.enc by Apostolos -Syropoulos and xl-lgr.enc from the libertine (legacy) package. -lgr.cmap provides a mapping to Unicode characters.

-

A full set of \text* symbol macros is defined in ucsencs.def -from the ucs package.

-

Aliases from puenc.def ensure that the hyperref package can -convert Greek symbols to a PDF-string.

-
-

Implementation

-
-

Read this file only once

-
-

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 test via eTeX’s \ifdefined). However, in this case -no harm is done as the macro is defined by the identification below -anyway.

-
-
\@ifundefined{ver@lgrxenc.def}
-  {\message{setting up comprehensive LGR font encoding definitions.}}
-  {\message{comprehensive LGR font encoding definitions already loaded}
-   \expandafter\endinput % "return"
-  }
-
-
+

Implementation

-

Identification

+

Identification

\ProvidesFile{lgrxenc.def}
-[2013/05/03 v0.7 comprehensive LGR Greek Font Encoding definitions]
+[2013/05/30 v0.8 comprehensive LGR Greek Font Encoding definitions]
 
-
-

Base setup

-

Declare the font encoding and substitutions. -(from the file lgrenc.def that comes with the Babel package):

-
\DeclareFontEncoding{LGR}{}{}
-\DeclareFontSubstitution{LGR}{cmr}{m}{n}
-\DeclareErrorFont{LGR}{cmr}{m}{n}{10}
-
-

The \ensuregreek command can be used to ensure that its argument is set in -a font encoding with support for Greek. If the font encoding is already LGR, -kerning between adjacent command calls (e.g. -\ensuregreek{A}\ensuregreek{\Upsilon}) is preserved. This allows wrapping of -compound Unicode character definitions.

-
\DeclareTextCommand{\ensuregreek}{LGR}[1]{#1}
-\DeclareTextCommand{\TextGreek}{LGR}[1]{#1} % backwards compatibility
+
+

Requirements

+

To declare and set up the LGR font encoding, we use the successor file +lgrenc.def from greek-fontenc:

+
\input{lgrenc.def}
 
-
-

Text symbols

-
-

Greek Alphabet

-

Greek letters are accessible by the Latin transcription, but the mapping is -specific to the LGR font encoding.

-

The LICR macros provide a way to access the symbols independent of the -specific font encoding, in any font encoding supporting Greek. Alternative -Greek font encodings are LGI (ibycus) and PU (PDF Unicode used by -hyperref for PDF metadata). The textalpha package makes these macros -available independent of the current font encoding.

-
\DeclareTextSymbol{\textAlpha}{LGR}{65}
-\DeclareTextSymbol{\textBeta}{LGR}{66}
-\DeclareTextSymbol{\textGamma}{LGR}{71}
-\DeclareTextSymbol{\textDelta}{LGR}{68}
-\DeclareTextSymbol{\textEpsilon}{LGR}{69}
-\DeclareTextSymbol{\textZeta}{LGR}{90}
-\DeclareTextSymbol{\textEta}{LGR}{72}
-\DeclareTextSymbol{\textTheta}{LGR}{74}
-\DeclareTextSymbol{\textIota}{LGR}{73}
-\DeclareTextSymbol{\textKappa}{LGR}{75}
-\DeclareTextSymbol{\textLambda}{LGR}{76}
-\DeclareTextSymbol{\textMu}{LGR}{77}
-\DeclareTextSymbol{\textNu}{LGR}{78}
-\DeclareTextSymbol{\textXi}{LGR}{88}
-\DeclareTextSymbol{\textOmicron}{LGR}{79}
-\DeclareTextSymbol{\textPi}{LGR}{80}
-\DeclareTextSymbol{\textRho}{LGR}{82}
-\DeclareTextSymbol{\textSigma}{LGR}{83}
-\DeclareTextSymbol{\textTau}{LGR}{84}
-\DeclareTextSymbol{\textUpsilon}{LGR}{85}
-\DeclareTextSymbol{\textPhi}{LGR}{70}
-\DeclareTextSymbol{\textChi}{LGR}{81}
-\DeclareTextSymbol{\textPsi}{LGR}{89}
-\DeclareTextSymbol{\textOmega}{LGR}{87}
-%
-\DeclareTextSymbol{\textalpha}{LGR}{97}
-\DeclareTextSymbol{\textbeta}{LGR}{98}
-\DeclareTextSymbol{\textgamma}{LGR}{103}
-\DeclareTextSymbol{\textdelta}{LGR}{100}
-\DeclareTextSymbol{\textepsilon}{LGR}{101}
-\DeclareTextSymbol{\textzeta}{LGR}{122}
-\DeclareTextSymbol{\texteta}{LGR}{104}
-\DeclareTextSymbol{\texttheta}{LGR}{106}
-\DeclareTextSymbol{\textiota}{LGR}{105}
-\DeclareTextSymbol{\textkappa}{LGR}{107}
-\DeclareTextSymbol{\textlambda}{LGR}{108}
-\DeclareTextSymbol{\textmu}{LGR}{109}
-\DeclareTextSymbol{\textnu}{LGR}{110}
-\DeclareTextSymbol{\textxi}{LGR}{120}
-\DeclareTextSymbol{\textomicron}{LGR}{111}
-\DeclareTextSymbol{\textpi}{LGR}{112}
-\DeclareTextSymbol{\textrho}{LGR}{114}
-\DeclareTextCommand{\textsigma}{LGR}{s\noboundary} % σ
-\DeclareTextSymbol{\textvarsigma}{LGR}{99}         % ς final sigma
-\DeclareTextSymbol{\textfinalsigma}{LGR}{99}       % ς final sigma
-\DeclareTextSymbol{\textautosigma}{LGR}{115}       % σ (ς at end of word)
-\DeclareTextSymbol{\texttau}{LGR}{116}
-\DeclareTextSymbol{\textupsilon}{LGR}{117}
-\DeclareTextSymbol{\textphi}{LGR}{102}
-\DeclareTextSymbol{\textchi}{LGR}{113}
-\DeclareTextSymbol{\textpsi}{LGR}{121}
-\DeclareTextSymbol{\textomega}{LGR}{119}
+
+

Backwards compatibility definitions

+

\TextGreek is now called \ensuregreek:

+
\DeclareTextCommand{\TextGreek}{LGR}[1]{#1}
 
-
-

Additional Greek symbols

+

Additional Greek symbols

+

Compatibility aliases (defined via TextCommand so that up/downcasing works +without the need for additional uclclist entries.

-

Ancient Greek Numbers (Athenian Numerals)

+

Ancient Greek Numbers (Athenian Numerals)

Names from the athnum package:

-
\DeclareTextSymbol{\PiDelta}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY
-\DeclareTextSymbol{\PiEta}{LGR}{3}   % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-\DeclareTextSymbol{\PiChi}{LGR}{4}   % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-\DeclareTextSymbol{\PiMu}{LGR}{5}    % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-
-

Names from xl-lgr.enc (Greek numerals):

-
\DeclareTextSymbol{\pentedeka}{LGR}{2}    % GREEK ACROPHONIC ATTIC FIFTY
-\DeclareTextSymbol{\pentehekaton}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-\DeclareTextSymbol{\penteqilioi}{LGR}{4}  % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-\DeclareTextSymbol{\pentemurioi}{LGR}{5}  % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+
\DeclareTextCommand{\PiDelta}{LGR}{\pentedeka}  % GREEK ACROPHONIC ATTIC FIFTY
+\DeclareTextCommand{\PiEta}{LGR}{\pentehekaton} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+\DeclareTextCommand{\PiChi}{LGR}{\penteqilioi}  % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+\DeclareTextCommand{\PiMu}{LGR}{\pentemurioi}   % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
 
-

Archaic letters

-

Names after babel’s greek.ldf, teubner and hyperref’s puenc.def:

-
\DeclareTextSymbol{\stigma}{LGR}{6}           % ϛ (greek.ldf, teubner)
-\DeclareTextSymbol{\varstigma}{LGR}{7}        % stigma variant (CB.enc, teubner)
-\DeclareTextSymbol{\koppa}{LGR}{18}           % ϟ (greek small letter koppa)
-\DeclareTextSymbol{\qoppa}{LGR}{19}           % ϙ (archaic koppa)
-\DeclareTextSymbol{\Qoppa}{LGR}{21}           % Ϙ (archaic Koppa)
-\DeclareTextSymbol{\Stigma}{LGR}{22}          % Ϛ (teubner) in some fonts ϹΤ ligature
-\DeclareTextSymbol{\Sampi}{LGR}{23}           % Ϡ
-\DeclareTextSymbol{\sampi}{LGR}{27}           % ϡ
-\DeclareTextSymbol{\anoteleia}{LGR}{38}       % ·
-\DeclareTextSymbol{\textanoteleia}{LGR}{38}   % ·
-\DeclareTextSymbol{\erotimatiko}{LGR}{63}     % ;
-% \digamma used by amsmath for math-macro:
-\DeclareTextSymbol{\textdigamma}{LGR}{147}    % ϝ (uni-3.def (ucs))
-\DeclareTextSymbol{\textDigamma}{LGR}{195}    % Ϝ (uni-3.def (ucs))
-
-

Compatibility aliases (defined via TextCommand so that up/downcasing works -without the need for additional uclclist entries:

-
\DeclareTextCommand{\vardigamma}{LGR}{\varstigma}         % greek.ldf
-\DeclareTextCommand{\textSampigreek}{LGR}{\Sampi}         % puenc.def
-\DeclareTextCommand{\textsampigreek}{LGR}{\sampi}         % puenc.def
-\DeclareTextCommand{\textstigmagreek}{LGR}{\stigma}       % puenc.def
-\DeclareTextCommand{\textkoppagreek}{LGR}{\koppa}         % puenc.def
-\DeclareTextCommand{\textStigmagreek}{LGR}{\Stigma}       % puenc.def
-\DeclareTextCommand{\ddigamma}{LGR}{\textdigamma}         % greek.ldf
-\DeclareTextCommand{\textdigammagreek}{LGR}{\textdigamma} % puenc.def
-\DeclareTextCommand{\Digamma}{LGR}{\textDigamma}          % greek.ldf
-\DeclareTextCommand{\textDigammagreek}{LGR}{\textDigamma} % puenc.def
+

Archaic letters

+

Names from babel’s greek.ldf and teubner

+
\DeclareTextCommand{\vardigamma}{LGR}{\textvarstigma} % greek.ldf
+\DeclareTextCommand{\ddigamma}{LGR}{\textdigamma}     % greek.ldf
+\DeclareTextCommand{\Digamma}{LGR}{\textDigamma}      % greek.ldf
+
+\DeclareTextCommand{\stigma}{LGR}{\textstigma}       % ϛ (greek.ldf, teubner)
+\DeclareTextCommand{\varstigma}{LGR}{\textvarstigma} % stigma variant (CB.enc, teubner)
+\DeclareTextCommand{\koppa}{LGR}{\textkoppa}         % ϟ (greek small letter koppa)
+\DeclareTextCommand{\qoppa}{LGR}{\textqoppa}         % ϙ (archaic koppa)
+\DeclareTextCommand{\Qoppa}{LGR}{\textQoppa}         % Ϙ (archaic Koppa)
+\DeclareTextCommand{\Stigma}{LGR}{\textStigma}       % Ϛ (teubner) in some fonts ϹΤ ligature
+\DeclareTextCommand{\Sampi}{LGR}{\textSampi}         % Ϡ
+\DeclareTextCommand{\sampi}{LGR}{\textsampi}         % ϡ
+\DeclareTextCommand{\anoteleia}{LGR}{\textanoteleia} % ·
+\DeclareTextCommand{\erotimatiko}{LGR}{\texterotimatiko} % ;
 
-

Numeral signs

+

Numeral signs

See also http://en.wikipedia.org/wiki/Greek_numerals

Names from babel, teubner, and hyperref’s puenc.def:

-
\DeclareTextSymbol{\anwtonos}{LGR}{254}             % ʹ (Dexia keraia)
-\DeclareTextSymbol{\textnumeralsigngreek}{LGR}{254} % ʹ (puenc.def)
-\DeclareTextSymbol{\katwtonos}{LGR}{255}            % ͵ (Aristeri keraia)
-\DeclareTextSymbol{\textnumeralsignlowergreek}{LGR}{255} % ͵ (puenc.def)
-
-
-
-
-

Other

-

Characters that also exist in other font encodings:

-
    -
  • define them for LGR if there is a matching glyph,

  • -
  • use established macro names that match with other *enc.def files and -textcomp.sty.

  • -
-
% all encodings: See usrguide.pdf, chapter 3.14 ff
-\DeclareTextSymbol{\textendash}{LGR}{0}          % EN DASH
-\DeclareTextSymbol{\textquoteleft}{LGR}{28}      % ‘
-\DeclareTextSymbol{\textquoteright}{LGR}{29}     % ’
-\DeclareTextSymbol{\textperiodcentered}{LGR}{46} % · = \textanoteleia
-\DeclareTextSymbol{\textcompwordmark}{LGR}{118}  % ZERO WIDTH NO JOINER
-\DeclareTextSymbol{\textemdash}{LGR}{127}        % EM DASH
-
-% T1
-\DeclareTextSymbol{\guillemotleft}{LGR}{123}     % «
-\DeclareTextSymbol{\guillemotright}{LGR}{125}    % »
-
-% TS1
-\ProvideTextCommand{\textasciibreve}{LGR}{\char30\textcompwordmark}    % ˘
-\ProvideTextCommand{\textasciimacron}{LGR}{\char31\textcompwordmark}   % ¯
-\ProvideTextCommand{\textasciidieresis}{LGR}{\char34\textcompwordmark} % "
-\ProvideTextCommand{\textasciiacute}{LGR}{\char39\textcompwordmark}    % '
-\ProvideTextCommand{\textasciigrave}{LGR}{\char96\textcompwordmark}    % `
-\DeclareTextCommand{\textasciitilde}{LGR}{\char126\textcompwordmark}   % ~
-\DeclareTextSymbol{\textohm}{LGR}{87}            % Ω (Ohm sign -> Omega)
-\DeclareTextSymbol{\texteuro}{LGR}{24}           % € \euro in greek.ldf
-\DeclareTextSymbol{\textpercent}{LGR}{37}        % %
-\DeclareTextSymbol{\textperthousand}{LGR}{25}    % ‰ \permille in greek.ldf
-
-% T3
-\DeclareTextSymbol{\textschwa}{LGR}{26}          % ə
+
\DeclareTextCommand{\anwtonos}{LGR}{\textnumeralsigngreek} % ʹ (Dexia keraia)
+\DeclareTextCommand{\katwtonos}{LGR}{\textnumeralsignlowergreek} % ͵ (Aristeri keraia)
 
-
-

Not implemented

-

The characters at position 16 and 17 are used in the \nexus macro -of the teubner package to form an extensible, hat-like bracket. In -CB.enc, they are mapped to

-
-

16–MODIFIER LETTER LOW ACUTE ACCENT -17–MODIFIER LETTER LOW GRAVE ACCENT

-
-

but according to the documentation of Werner Lemberg’s babel patch, -they rather represent the left and right part of U+23E0 TOP TORTOISE -SHELL BRACKET.

-

Babel’s lgrenc.def has some definitions to prevent surprises with -macros that expect a Latin script. These definitions are problematic -in a font-encoding definition file as they

-
    -
  • require \textlatin which is defined in babel.def,

  • -
  • prevent use of TS1 symbols set as default by textcomp.sty.

  • -
-
%\ProvideTextCommand{\textcopyright}{LGR}{\textcircled{\textlatin{c}}}
-%\ProvideTextCommand{\textregistered}{LGR}{\textcircled{\textlatin{\textsc r}}}
-%\ProvideTextCommand{\texttrademark}{LGR}{\textsuperscript{\textlatin{TM}}}
-%\ProvideTextCommand{\SS}{LGR}{\textlatin{SS}}
-
-

They may be moved to greek.ldf one day (with a caveat for textcomp/TS1).

-

Diacritics

-

This section defines named macros for Greek diacritics and standard -symbol macros as alias for simple diacritics. Convenient input -conventions for composite diacritics are defined as composite -definitions.

-

Advantages:

-
    -
  • input convention similar to LGR input encodings (just prepend a \).

  • -
  • Access pre-composed characters without resorting to the -ligature mechanism (allows proper kerning, cf. teubner-doc).

  • -
  • Named macros can be used to ensure a font encoding supporting Greek is -used. However, substitution with pre-composed characters works only for -the active font encoding (cf. textalpha). Named accent macros can also be -used instead of the \@tabacckludge by to-LaTeX converters to ensure -working also inside the tabbing environment.

  • -
  • Named macros are required for upcasing according to Greek typesetting -conventions (cf. UPPERCASE below) and for composite diacritics.

  • -
-
-

Named macros

-

Definitions are based on the teubner package by Claudio Beccari, the ucs -package, and the babel patch by Werner Lemberg. Names are derived from -the Unicode name with the prefix “acc” (cf. How to name accent macros? -above) resulting in reduced probability of incompatibilities compared to the -two-letter teubner diacritic macros.

-

Simple Greek diacritics:

-
\DeclareTextAccent{\accdialytika}{LGR}{34} % διαλυτικά (diaeresis/trema)
-\DeclareTextAccent{\acctonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute)
-\DeclareTextAccent{\accdasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing)
-\DeclareTextAccent{\accpsili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing)
-\DeclareTextAccent{\accvaria}{LGR}{96} % βαρεῖα (grave)
-\DeclareTextAccent{\accperispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde)
-
-

The sub-iota is input after the base character. In LGR fonts, ligatures are -defined for pre-composed characters, the postfix ligature does not interfere -with kerning:

-
\DeclareTextSymbol{\prosgegrammeni}{LGR}{8}  % ι "capital" sub-iota
-\DeclareTextSymbol{\ypogegrammeni}{LGR}{124} % ͺ "small" sub-iota
-
-

Composite diacritics:

-
%                                                       Teubner name
-\DeclareTextAccent{\accdialytikaperispomeni}{LGR}{32} % Cd
-\DeclareTextAccent{\accdialytikatonos}{LGR}{35}       % Ad
-\DeclareTextAccent{\accdialytikavaria}{LGR}{36}       % Gd
-
-\DeclareTextAccent{\accdasiaperispomeni}{LGR}{64}     % Cr
-\DeclareTextAccent{\accdasiavaria}{LGR}{67}           % Gr
-\DeclareTextAccent{\accdasiaoxia}{LGR}{86}            % Ar
-
-\DeclareTextAccent{\accpsiliperispomeni}{LGR}{92}     % Cs
-\DeclareTextAccent{\accpsilioxia}{LGR}{94}            % As
-\DeclareTextAccent{\accpsilivaria}{LGR}{95}           % Gs
-
-

For classical Greek and linguistics, the LGR font encoding contains a number -of additional diacritic symbols:

-
\DeclareTextAccent{\subinvertedbreve}{LGR}{1} % INVERTED BREVE BELOW
-\DeclareTextAccent{\textsubarch}{LGR}{1}      % (tipa)
-\DeclareTextAccent{\subbreve}{LGR}{20}        % BREVE BELOW
-\DeclareTextAccent{\u}{LGR}{30}               % BREVE
-\DeclareTextAccent{\=}{LGR}{31}               % MACRON
-
-
-
-

Aliases

-

Symbol macros:

-
\DeclareTextCommand{\"}{LGR}{\accdialytika}
-\DeclareTextCommand{\'}{LGR}{\acctonos}
-\DeclareTextCommand{\`}{LGR}{\accvaria}
-\DeclareTextCommand{\~}{LGR}{\accperispomeni}
-\DeclareTextCommand{\<}{LGR}{\accdasia}
-\DeclareTextCommand{\>}{LGR}{\accpsili}
-
-

TODO: do we also want alternative symbols for the breathings (cf. X compose -table, LCI encoding)?

-
%\DeclareTextCommand{\(}{LGR}{\accdasia}
-%\DeclareTextCommand{\)}{LGR}{\accpsili}
-
-

Two Unicode names for one character:

-
\DeclareTextCommand{\accoxia}{LGR}{\acctonos}
-\DeclareTextCommand{\acckoronis}{LGR}{\accpsili}
-
+

Diacritics

Backwards compatibility with LGRx versions < 0.7:

\DeclareTextCommand{\Ypogegrammeni}{LGR}{\ypogegrammeni}
 \DeclareTextCommand{\Prosgegrammeni}{LGR}{\prosgegrammeni}
@@ -1361,599 +936,10 @@ table, LCI encoding)?

\DeclareTextCommand{\PsiliOxia}{LGR}{\accpsilioxia} \DeclareTextCommand{\PsiliVaria}{LGR}{\accpsilivaria}
-
-
-
-

Composite definitions

-
-

Composite diacritics

-

Composite accents can be input as sequence of simple diacritics (in -arbitrary order) via named macro, symbol macro and “transcription -characters”, e.g. \accdialytica\accvaria\textalpha, \"\'\textalpha, -\"'\textalpha, or \'"\textalpha.

-

Separate definitions for the supported variants of the second input token -are required as composition is based on the non-expanded input

-

The composition with simple “transcription characters” must also be defined -for the symbol macros, otherwise it fails with \Makeuppercase):

-
\DeclareTextCompositeCommand{\accdialytika}{LGR}{\acctonos}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{\'}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{'}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\"}{LGR}{'}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{\accvaria}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{\`}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{`}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\"}{LGR}{`}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{\accperispomeni}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{\~}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{~}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\"}{LGR}{~}{\accdialytikaperispomeni}
-
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\accdialytika}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\"}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{"}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\'}{LGR}{"}{\accdialytikatonos}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\accdasia}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\<}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{<}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\'}{LGR}{<}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\accpsili}{\accpsilioxia}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\>}{\accpsilioxia}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{>}{\accpsilioxia}
-\DeclareTextCompositeCommand{\'}{LGR}{>}{\accpsilioxia}
-
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\accdialytika}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\"}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{"}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\`}{LGR}{"}{\accdialytikavaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\accdasia}{\accdasiavaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\<}{\accdasiavaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{<}{\accdasiavaria}
-\DeclareTextCompositeCommand{\`}{LGR}{<}{\accdasiavaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\accpsili}{\accpsilivaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\>}{\accpsilivaria}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{>}{\accpsilivaria}
-\DeclareTextCompositeCommand{\`}{LGR}{>}{\accpsilivaria}
-
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accdialytika}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\"}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{"}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\~}{LGR}{"}{\accdialytikaperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accdasia}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\<}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{<}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\~}{LGR}{<}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accpsili}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\>}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\accperispomeni}{LGR}{>}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\~}{LGR}{>}{\accpsiliperispomeni}
-
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\acctonos}{\accpsilioxia}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\'}{\accpsilioxia}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{'}{\accpsilioxia}
-\DeclareTextCompositeCommand{\>}{LGR}{'}{\accpsilioxia}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\accvaria}{\accpsilivaria}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\`}{\accpsilivaria}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{`}{\accpsilivaria}
-\DeclareTextCompositeCommand{\>}{LGR}{`}{\accpsilivaria}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\accperispomeni}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\~}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{~}{\accpsiliperispomeni}
-\DeclareTextCompositeCommand{\>}{LGR}{~}{\accpsiliperispomeni}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\acctonos}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\'}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{'}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\<}{LGR}{'}{\accdasiaoxia}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\accvaria}{\accdasiavaria}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\`}{\accdasiavaria}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{`}{\accdasiavaria}
-\DeclareTextCompositeCommand{\<}{LGR}{`}{\accdasiavaria}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\accperispomeni}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\~}{\accdasiaperispomeni}
-\DeclareTextCompositeCommand{\<}{LGR}{~}{\accdasiaperispomeni}
-
-
-
-

Pre-composed letters

-
-

Small letters with diacritics

-

(from teubner with changed names of the composite accents):

-
\DeclareTextComposite{\accvaria}{LGR}{a}{128}
-\DeclareTextComposite{\accdasia}{LGR}{a}{129}
-\DeclareTextComposite{\accpsili}{LGR}{a}{130}
-\DeclareTextComposite{\accdasiavaria}{LGR}{a}{131}
-\DeclareTextComposite{\acctonos}{LGR}{a}{136}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{a}{137}
-\DeclareTextComposite{\accpsilioxia}{LGR}{a}{138}
-\DeclareTextComposite{\accpsilivaria}{LGR}{a}{139}
-\DeclareTextComposite{\accperispomeni}{LGR}{a}{144}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{a}{145}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{a}{146}
-\DeclareTextComposite{\accvaria}{LGR}{h}{152}
-\DeclareTextComposite{\accdasia}{LGR}{h}{153}
-\DeclareTextComposite{\accpsili}{LGR}{h}{154}
-\DeclareTextComposite{\acctonos}{LGR}{h}{160}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{h}{161}
-\DeclareTextComposite{\accpsilioxia}{LGR}{h}{162}
-\DeclareTextComposite{\accdasiavaria}{LGR}{h}{163}
-\DeclareTextComposite{\accperispomeni}{LGR}{h}{168}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{h}{169}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{h}{170}
-\DeclareTextComposite{\accpsilivaria}{LGR}{h}{171}
-\DeclareTextComposite{\accvaria}{LGR}{w}{176}
-\DeclareTextComposite{\accdasia}{LGR}{w}{177}
-\DeclareTextComposite{\accpsili}{LGR}{w}{178}
-\DeclareTextComposite{\accdasiavaria}{LGR}{w}{179}
-\DeclareTextComposite{\acctonos}{LGR}{w}{184}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{w}{185}
-\DeclareTextComposite{\accpsilioxia}{LGR}{w}{186}
-\DeclareTextComposite{\accpsilivaria}{LGR}{w}{187}
-\DeclareTextComposite{\accperispomeni}{LGR}{w}{192}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{w}{193}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{w}{194}
-\DeclareTextComposite{\accvaria}{LGR}{i}{200}
-\DeclareTextComposite{\accdasia}{LGR}{i}{201}
-\DeclareTextComposite{\accpsili}{LGR}{i}{202}
-\DeclareTextComposite{\accdasiavaria}{LGR}{i}{203}
-\DeclareTextComposite{\acctonos}{LGR}{i}{208}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{i}{209}
-\DeclareTextComposite{\accpsilioxia}{LGR}{i}{210}
-\DeclareTextComposite{\accpsilivaria}{LGR}{i}{211}
-\DeclareTextComposite{\accperispomeni}{LGR}{i}{216}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{i}{217}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{i}{218}
-\DeclareTextComposite{\accdialytika}{LGR}{i}{240}
-\DeclareTextComposite{\accdialytikavaria}{LGR}{i}{241}
-\DeclareTextComposite{\accdialytikatonos}{LGR}{i}{242}
-\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{i}{243}
-\DeclareTextComposite{\accvaria}{LGR}{u}{204}
-\DeclareTextComposite{\accdasia}{LGR}{u}{205}
-\DeclareTextComposite{\accpsili}{LGR}{u}{206}
-\DeclareTextComposite{\accdasiavaria}{LGR}{u}{207}
-\DeclareTextComposite{\acctonos}{LGR}{u}{212}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{u}{213}
-\DeclareTextComposite{\accpsilioxia}{LGR}{u}{214}
-\DeclareTextComposite{\accpsilivaria}{LGR}{u}{215}
-\DeclareTextComposite{\accperispomeni}{LGR}{u}{220}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{u}{221}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{u}{222}
-\DeclareTextComposite{\accdialytika}{LGR}{u}{244}
-\DeclareTextComposite{\accdialytikavaria}{LGR}{u}{245}
-\DeclareTextComposite{\accdialytikatonos}{LGR}{u}{246}
-\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{u}{247}
-\DeclareTextComposite{\accvaria}{LGR}{e}{224}
-\DeclareTextComposite{\accdasia}{LGR}{e}{225}
-\DeclareTextComposite{\accpsili}{LGR}{e}{226}
-\DeclareTextComposite{\accdasiavaria}{LGR}{e}{227}
-\DeclareTextComposite{\acctonos}{LGR}{e}{232}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{e}{233}
-\DeclareTextComposite{\accpsilioxia}{LGR}{e}{234}
-\DeclareTextComposite{\accpsilivaria}{LGR}{e}{235}
-\DeclareTextComposite{\accvaria}{LGR}{o}{228}
-\DeclareTextComposite{\accdasia}{LGR}{o}{229}
-\DeclareTextComposite{\accpsili}{LGR}{o}{230}
-\DeclareTextComposite{\accdasiavaria}{LGR}{o}{231}
-\DeclareTextComposite{\acctonos}{LGR}{o}{236}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{o}{237}
-\DeclareTextComposite{\accpsilioxia}{LGR}{o}{238}
-\DeclareTextComposite{\accpsilivaria}{LGR}{o}{239}
-\DeclareTextComposite{\accdasia}{LGR}{r}{251}
-\DeclareTextComposite{\accpsili}{LGR}{r}{252}
-
-

Pre-composed letters with diacritics + LICR macros:

-
\DeclareTextComposite{\accvaria}{LGR}{\textalpha}{128}
-\DeclareTextComposite{\accdasia}{LGR}{\textalpha}{129}
-\DeclareTextComposite{\accpsili}{LGR}{\textalpha}{130}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\textalpha}{131}
-\DeclareTextComposite{\acctonos}{LGR}{\textalpha}{136}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\textalpha}{137}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\textalpha}{138}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\textalpha}{139}
-\DeclareTextComposite{\accperispomeni}{LGR}{\textalpha}{144}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textalpha}{145}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textalpha}{146}
-\DeclareTextComposite{\accvaria}{LGR}{\texteta}{152}
-\DeclareTextComposite{\accdasia}{LGR}{\texteta}{153}
-\DeclareTextComposite{\accpsili}{LGR}{\texteta}{154}
-\DeclareTextComposite{\acctonos}{LGR}{\texteta}{160}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\texteta}{161}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\texteta}{162}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\texteta}{163}
-\DeclareTextComposite{\accperispomeni}{LGR}{\texteta}{168}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\texteta}{169}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\texteta}{170}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\texteta}{171}
-\DeclareTextComposite{\accvaria}{LGR}{\textomega}{176}
-\DeclareTextComposite{\accdasia}{LGR}{\textomega}{177}
-\DeclareTextComposite{\accpsili}{LGR}{\textomega}{178}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\textomega}{179}
-\DeclareTextComposite{\acctonos}{LGR}{\textomega}{184}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\textomega}{185}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\textomega}{186}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\textomega}{187}
-\DeclareTextComposite{\accperispomeni}{LGR}{\textomega}{192}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textomega}{193}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textomega}{194}
-\DeclareTextComposite{\accvaria}{LGR}{\textiota}{200}
-\DeclareTextComposite{\accdasia}{LGR}{\textiota}{201}
-\DeclareTextComposite{\accpsili}{LGR}{\textiota}{202}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\textiota}{203}
-\DeclareTextComposite{\acctonos}{LGR}{\textiota}{208}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\textiota}{209}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\textiota}{210}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\textiota}{211}
-\DeclareTextComposite{\accperispomeni}{LGR}{\textiota}{216}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textiota}{217}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textiota}{218}
-\DeclareTextComposite{\accdialytika}{LGR}{\textiota}{240}
-\DeclareTextComposite{\accdialytikavaria}{LGR}{\textiota}{241}
-\DeclareTextComposite{\accdialytikatonos}{LGR}{\textiota}{242}
-\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\textiota}{243}
-\DeclareTextComposite{\accvaria}{LGR}{\textupsilon}{204}
-\DeclareTextComposite{\accdasia}{LGR}{\textupsilon}{205}
-\DeclareTextComposite{\accpsili}{LGR}{\textupsilon}{206}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\textupsilon}{207}
-\DeclareTextComposite{\acctonos}{LGR}{\textupsilon}{212}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\textupsilon}{213}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\textupsilon}{214}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\textupsilon}{215}
-\DeclareTextComposite{\accperispomeni}{LGR}{\textupsilon}{220}
-\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textupsilon}{221}
-\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textupsilon}{222}
-\DeclareTextComposite{\accdialytika}{LGR}{\textupsilon}{244}
-\DeclareTextComposite{\accdialytikavaria}{LGR}{\textupsilon}{245}
-\DeclareTextComposite{\accdialytikatonos}{LGR}{\textupsilon}{246}
-\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\textupsilon}{247}
-\DeclareTextComposite{\accvaria}{LGR}{\textepsilon}{224}
-\DeclareTextComposite{\accdasia}{LGR}{\textepsilon}{225}
-\DeclareTextComposite{\accpsili}{LGR}{\textepsilon}{226}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\textepsilon}{227}
-\DeclareTextComposite{\acctonos}{LGR}{\textepsilon}{232}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\textepsilon}{233}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\textepsilon}{234}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\textepsilon}{235}
-\DeclareTextComposite{\accvaria}{LGR}{\textomicron}{228}
-\DeclareTextComposite{\accdasia}{LGR}{\textomicron}{229}
-\DeclareTextComposite{\accpsili}{LGR}{\textomicron}{230}
-\DeclareTextComposite{\accdasiavaria}{LGR}{\textomicron}{231}
-\DeclareTextComposite{\acctonos}{LGR}{\textomicron}{236}
-\DeclareTextComposite{\accdasiaoxia}{LGR}{\textomicron}{237}
-\DeclareTextComposite{\accpsilioxia}{LGR}{\textomicron}{238}
-\DeclareTextComposite{\accpsilivaria}{LGR}{\textomicron}{239}
-\DeclareTextComposite{\accdasia}{LGR}{r}{251}
-\DeclareTextComposite{\accpsili}{LGR}{r}{252}
-
-
-
-

Capital letters with diacritics

-
-

In Greek, diacritics are omitted in all-uppercase words, but kept as part -of an uppercase initial (written before rather than above the letter).

-

The diaytika should also always be used in all-uppercase words (even -in cases where they are not needed when writing in lowercase)

-

http://en.wikipedia.org/wiki/Capitalization

-
-

In Title Case, place diacritics before instead of above the base character:

-
\DeclareTextCompositeCommand{\accdasia}{LGR}{A}{<A}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{A}{<`A}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{A}{<'A}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{A}{<\char126A}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{A}{>A}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{A}{>`A}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{A}{>'A}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{A}{>\char126A}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{A}{'A}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{A}{`A}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{E}{<E}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{E}{<'E}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{E}{<`E}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{E}{>E}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{E}{>'E}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{E}{>`E}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{E}{'E}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{E}{`E}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{H}{<H}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{H}{<`H}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{H}{<'H}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{H}{<\char126H}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{H}{>H}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{H}{>`H}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{H}{>'H}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{H}{>\char126H}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{H}{'H}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{H}{`H}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{I}{<I}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{I}{<`I}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{I}{<'I}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{I}{<\char126I}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{I}{>I}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{I}{>`I}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{I}{>'I}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{I}{>\char126I}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{I}{'I}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{I}{`I}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{O}{<O}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{O}{<`O}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{O}{<'O}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{O}{>O}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{O}{>`O}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{O}{>'O}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{O}{'O}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{O}{`O}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{U}{<U}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{U}{<`U}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{U}{<'U}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{U}{<\char126U}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{U}{'U}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{U}{`U}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{W}{<W}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{W}{<`W}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{W}{<'W}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{W}{<\char126W}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{W}{>W}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{W}{>`W}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{W}{>'W}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{W}{>\char126W}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{W}{'W}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{W}{`W}
-
-

Except for the dialytika:

-
\DeclareTextComposite{\accdialytika}{LGR}{I}{219}
-\DeclareTextComposite{\accdialytika}{LGR}{U}{223}
-
-

Do the same for the LICR macros:

-
\DeclareTextCompositeCommand{\accdasia}{LGR}{\textAlpha}{<A}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textAlpha}{<`A}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textAlpha}{<'A}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textAlpha}{<\char126A}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\textAlpha}{>A}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textAlpha}{>`A}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textAlpha}{>'A}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textAlpha}{>\char126A}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textAlpha}{'A}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textAlpha}{`A}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\textEpsilon}{<E}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textEpsilon}{<'E}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textEpsilon}{<`E}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\textEpsilon}{>E}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textEpsilon}{>'E}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textEpsilon}{>`E}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textEpsilon}{'E}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textEpsilon}{`E}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\textEta}{<H}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textEta}{<`H}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textEta}{<'H}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textEta}{<\char126H}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\textEta}{>H}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textEta}{>`H}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textEta}{>'H}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textEta}{>\char126H}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textEta}{'H}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textEta}{`H}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\textIota}{<I}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textIota}{<`I}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textIota}{<'I}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textIota}{<\char126I}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\textIota}{>I}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textIota}{>`I}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textIota}{>'I}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textIota}{>\char126I}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textIota}{'I}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textIota}{`I}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\textOmicron}{<O}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textOmicron}{<`O}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textOmicron}{<'O}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\textOmicron}{>O}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textOmicron}{>`O}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmicron}{>'O}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmicron}{'O}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmicron}{`O}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\textUpsilon}{<U}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textUpsilon}{<`U}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textUpsilon}{<'U}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textUpsilon}{<\char126U}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textUpsilon}{'U}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textUpsilon}{`U}
-
-\DeclareTextCompositeCommand{\accdasia}{LGR}{\textOmega}{<W}
-\DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\textOmega}{<`W}
-\DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\textOmega}{<'W}
-\DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\textOmega}{<\char126W}
-\DeclareTextCompositeCommand{\accpsili}{LGR}{\textOmega}{>W}
-\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textOmega}{>`W}
-\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmega}{>'W}
-\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textOmega}{>\char126W}
-\DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmega}{'W}
-\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmega}{`W}
-
-

Except for the dialytika:

-
\DeclareTextComposite{\accdialytika}{LGR}{\textIota}{219}
-\DeclareTextComposite{\accdialytika}{LGR}{\textUpsilon}{223}
-
-
-
-
-
-

UPPERCASE

-
-

@uclclist extension

-

If UPPERCASE (all-caps) is generated with \MakeUppercase, macro -substitutions in the \@uclclist apply. This can be used to drop the -diacritics (except dialytika).

-

Based on the babel patch and fontenc.sty. -(The first two lines are TeX’ way of writing uclclist += …):

-
\expandafter\def\expandafter\@uclclist\expandafter{%
-   \@uclclist
-    \accdasia\acc@invisible
-    \accdasiaoxia\@hiatus
-    \accdasiavaria\acc@invisible
-    \accdasiaperispomeni\acc@invisible
-    \accpsili\@hiatus
-    \accpsilioxia\@hiatus
-    \accpsilivaria\@hiatus
-    \accpsiliperispomeni\acc@invisible
-    \acctonos\@hiatus
-    \accvaria\acc@invisible
-    \accdialytikatonos\acc@Dialytika
-    \accdialytikavaria\acc@Dialytika
-    \accdialytikaperispomeni\acc@Dialytika
-    \accperispomeni\acc@invisible
-    \ypogegrammeni\prosgegrammeni
-    %
-    \textalpha  \textAlpha
-    \textbeta   \textBeta
-    \textgamma  \textGamma
-    \textdelta  \textDelta
-    \textepsilon\textEpsilon
-    \textzeta   \textZeta
-    \texteta    \textEta
-    \texttheta  \textTheta
-    \textiota   \textIota
-    \textkappa  \textKappa
-    \textlambda \textLambda
-    \textmu     \textMu
-    \textnu     \textNu
-    \textxi     \textXi
-    \textomicron\textOmicron
-    \textpi     \textPi
-    \textrho    \textRho
-    \textvarsigma  \textSigma
-    \textsigma     \textSigma
-    \textautosigma \textSigma
-    \texttau    \textTau
-    \textupsilon\textUpsilon
-    \textphi    \textPhi
-    \textchi    \textChi
-    \textpsi    \textPsi
-    \textomega  \textOmega
-    %
-    \qoppa      \Qoppa
-    \varstigma  \Stigma
-    \stigma     \Stigma
-    \sampi      \Sampi
-    \textdigamma \textDigamma
-}
-
-
-
-

Substitution macros

-
-

Drop diacritics

-
\DeclareTextCommand{\acc@invisible}{LGR}[1]{#1}
-
-

(The argument processing ensures that kerning is preserved)

-
-
-

Keep dialytika.

-

Define a dummy alias so that downcasing with \MakeLowercase does not -convert a simple dialytika to a composite accent:

-
\DeclareTextCommand{\acc@Dialytika}{LGR}{\accdialytika}
-
-\DeclareTextCompositeCommand{\accdialytika}{LGR}{\@hiatus}{\accdialytika}
-
- -
-
-

Mark hiatus

-

Tonos and dasia mark a hiatus if placed on the -first vowel of a diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the -second vowel if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ, -ἀυπνία → ΑΫΠΝΙΑ):

-
\DeclareTextCommand{\@hiatus}{LGR}[1]{#1}
-\DeclareTextCompositeCommand{\@hiatus}{LGR}{>}{\@hiatus}
-\DeclareTextCompositeCommand{\@hiatus}{LGR}{<}{\acc@invisible}
-\DeclareTextCompositeCommand{\@hiatus}{LGR}{A}{\A@hiatus}
-\DeclareTextCompositeCommand{\@hiatus}{LGR}{\textAlpha}{\A@hiatus}
-\DeclareTextCompositeCommand{\@hiatus}{LGR}{E}{\E@hiatus}
-\DeclareTextCompositeCommand{\@hiatus}{LGR}{\textEpsilon}{\E@hiatus}
-% What does the \@hiatus command "see" if an unicode literal follows?
-% \DeclareTextCompositeCommand{\@hiatus}{LGR}{\symbol{"ce}}{bluff}
-% \DeclareTextCompositeCommand{\@hiatus}{LGR}{"cf}{blaff}
-% \DeclareTextCompositeCommand{\@hiatus}{LGR}{ι}{blaff}
-
-

Look ahead and place a diaeresis on Ι or Υ:

-
\DeclareTextCommand{\A@hiatus}{LGR}{%
-  \LGR@ifnextchar{I}{A\"}{%
-    \LGR@ifnextchar{U}{A\"}{%
-      \LGR@ifnextchar{\textIota}{A\"}{%
-        \LGR@ifnextchar{\textUpsilon}{A\"}{A}%
-      }%
-    }%
-  }%
-}
-\DeclareTextCommand{\E@hiatus}{LGR}{%
-  \LGR@ifnextchar{I}{E\"}{%
-    \LGR@ifnextchar{U}{E\"}{%
-      \LGR@ifnextchar{\textIota}{E\"}{%
-        \LGR@ifnextchar{\textUpsilon}{E\"}{E}%
-      }%
-    }%
-  }%
-}
-
-

As \@ifnextchar gobbles spaces the lookahead macro definition from -amsgen.sty is used:

-
-

This macro is a new version of LaTeX’s \@ifnextchar, macro -that does not skip over spaces.

-
-
\ProvideTextCommand{\LGR@ifnextchar}{LGR}[3]{%
-% \long\def\LGR@ifnextchar#1#2#3{%
-  \let\reserved@d= #1%
-  \def\reserved@a{#2}\def\reserved@b{#3}%
-  \futurelet\@let@token\LGR@ifnch
-}
-\ProvideTextCommand{\LGR@ifnch}{LGR}{%
-  \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi
-  \reserved@b
-}
-
-

Unfortunately, the lookahead breaks kerning.

-

Alternatives tried:

-
    -
  • CompositeCommands fail at the end of a macro, e.g. \emph{\'a}:

    -
    %\DeclareTextCommand{\A@hiatus}{LGR}{A}
    -%\DeclareTextCommand{\E@hiatus}{LGR}{E}
    -
    -%\DeclareTextCompositeCommand{\A@hiatus}{LGR}{}{A}
    -%\DeclareTextCompositeCommand{\A@hiatus}{LGR}{I}{A\"I}
    -%\DeclareTextCompositeCommand{\A@hiatus}{LGR}{U}{A\"U}
    -
    -
  • -
  • The glyph No 12 is a special “Upcase Alpha” that in ligature with Y -and I adds a diaresis to them. However, it seems that it has only -kerning definitions for I and Y (as it is not intended for direct -use):

    -
    %\DeclareTextComposite{\@hiatus}{LGR}{A}{12}
    -
    -

    No such glyph exists for E but this is no problem as E does -not require kerning anyway.

    -
  • -
-
-
diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf index 9ad28718225..4373e67f7e7 100644 Binary files a/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf and b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.pdf differ diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex index 0b29154a683..0a600a5a2eb 100644 --- a/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex +++ b/Master/texmf-dist/doc/latex/lgrx/textalpha-test.tex @@ -6,7 +6,7 @@ \usepackage{textcomp} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} -\usepackage[unicode=true]{hyperref} +\usepackage[pdfencoding=auto,colorlinks=true]{hyperref} \usepackage{bookmark} % \pagestyle{headings} @@ -15,36 +15,124 @@ \begin{document} -\section*{Test the \emph{textalpha} package} +\title{The \emph{textalpha} package} +\author{Günter Milde} +\maketitle With the \emph{textalpha} package, you can easily write a single Greek symbol (like \textPsi{} or \textmu{}) or a \textlambda\textomicron\textgamma\textomicron\textvarsigma{} in non-Greek text as well as ISO-conforming formulas with upright constants (like \textpi): $A = \mbox{\textpi} r^2$ vs. $A = \pi r^2$. Input is possible via -LICR macros (\verb+\textalpha+ \ldots \verb+\textOmega+) or (with the utf8 -option to \emph{inputenc}) Unicode literals. +LICR macros (\verb|\textalpha| \ldots \verb|\textOmega|) or (with the utf8 +option to \href{http://www.ctan.org/pkg/inputenc}{inputenc}) Unicode literals. \section{Greek alphabet} -Greek letters via Latin transscription in LGR font encoding: +Greek letters via Latin transcription in LGR font encoding: -\ensuregreek{A B G D E Z H J I K L M N X O P R S T U F Q Y W}\\ -\ensuregreek{a b g d e z h j i k l m n x o p r s c t u f q y w} +\begin{quote} + \ensuregreek{A B G D E Z H J I K L M N X O P R S T U F Q Y W}\\ + \ensuregreek{a b g d e z h j i k l m n x o p r sv c t u f q y w} +\end{quote} Greek letters via default macros in other font encoding (here T1): -\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{} \textvarsigma{} \texttau{} \textupsilon{} -\textphi{} \textchi{} \textpsi{} \textomega{} +\begin{quote} + \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{} \textvarsigma{} \texttau{} \textupsilon{} + \textphi{} \textchi{} \textpsi{} \textomega{} +\end{quote} + +Archaic Greek letters and Greek punctuation + +\begin{quote} + \textDigamma + \textanoteleia + \textQoppa + \textSampi + \textStigma + \textnumeralsigngreek + \texterotimatiko + \\ + \textdigamma + \textkoppa + \textqoppa + \textsampi + \textstigma + \textnumeralsignlowergreek + \textvarstigma +\end{quote} + +\pagebreak{} + +\section{Greek Unicode characters in non-Greek text} + +With the \emph{textalpha} package and input encoding \texttt{utf8}, Greek +Unicode characters can be used in text with any font encoding. + +Kerning is preserved if the font encoding is LGR. This holds also for +pre-composed accented characters: \ensuregreek{AΫA}. + +All characters of the Greek and Coptic Unicode Block present in LGR via +literal Unicode input in T1 font encoding +(legend: * glyph missing in LGR): + +\begin{tabular}{rrrrrrrrrrrrrrrrr} +\toprule + & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ +\midrule +370 & * & * & * & * & ʹ & ͵ & * & * & & & ͺ & * & * & * & ; & \\ +380 & & & & & ΄ & ΅ & Ά & · & Έ & Ή & Ί & & Ό & & Ύ & Ώ\\ +390 & ΐ & Α & Β & Γ & Δ & Ε & Ζ & Η & Θ & Ι & Κ & Λ & Μ & Ν & Ξ & Ο\\ +3A0 & Π & Ρ & & Σ & Τ & Υ & Φ & Χ & Ψ & Ω & Ϊ & Ϋ & ά & έ & ή & ί\\ +3B0 & ΰ & α & β & γ & δ & ε & ζ & η & θ & ι & κ & λ & μ & ν & ξ & ο\\ +3C0 & π & ρ & ς & σ & τ & υ & φ & χ & ψ & ω & ϊ & ϋ & ό & ύ & ώ & \\ +3D0 & * & * & * & * & * & * & * & * & Ϙ & ϙ & Ϛ & ϛ & Ϝ & ϝ & * & ϟ\\ +3E0 & Ϡ & ϡ & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ +3F0 & * & * & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ +\bottomrule +\end{tabular} + +All characters of the Greek Extended Unicode Block via literal Unicode +input in T1 font encoding: + +\begin{tabular}{rrrrrrrrrrrrrrrrr} +\toprule + & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ +\midrule +1F00 & ἀ & ἁ & ἂ & ἃ & ἄ & ἅ & ἆ & ἇ & Ἀ & Ἁ & Ἂ & Ἃ & Ἄ & Ἅ & Ἆ & Ἇ\\ +1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & & & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & & \\ +1F20 & ἠ & ἡ & ἢ & ἣ & ἤ & ἥ & ἦ & ἧ & Ἠ & Ἡ & Ἢ & Ἣ & Ἤ & Ἥ & Ἦ & Ἧ\\ +1F30 & ἰ & ἱ & ἲ & ἳ & ἴ & ἵ & ἶ & ἷ & Ἰ & Ἱ & Ἲ & Ἳ & Ἴ & Ἵ & Ἶ & Ἷ\\ +1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & & & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & & \\ +1F50 & ὐ & ὑ & ὒ & ὓ & ὔ & ὕ & ὖ & ὗ & & Ὑ & & Ὓ & & Ὕ & & Ὗ\\ +1F60 & ὠ & ὡ & ὢ & ὣ & ὤ & ὥ & ὦ & ὧ & Ὠ & Ὡ & Ὢ & Ὣ & Ὤ & Ὥ & Ὦ & Ὧ\\ +1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & & \\ +1F80 & ᾀ & ᾁ & ᾂ & ᾃ & ᾄ & ᾅ & ᾆ & ᾇ & ᾈ & ᾉ & ᾊ & ᾋ & ᾌ & ᾍ & ᾎ & ᾏ\\ +1F90 & ᾐ & ᾑ & ᾒ & ᾓ & ᾔ & ᾕ & ᾖ & ᾗ & ᾘ & ᾙ & ᾚ & ᾛ & ᾜ & ᾝ & ᾞ & ᾟ\\ +1FA0 & ᾠ & ᾡ & ᾢ & ᾣ & ᾤ & ᾥ & ᾦ & ᾧ & ᾨ & ᾩ & ᾪ & ᾫ & ᾬ & ᾭ & ᾮ & ᾯ\\ +1FB0 & ᾰ & ᾱ & ᾲ & ᾳ & ᾴ & & ᾶ & ᾷ & Ᾰ & Ᾱ & Ὰ & Ά & ᾼ & ᾽ & ι & ᾿\\ +1FC0 & ῀ & ῁ & ῂ & ῃ & ῄ & & ῆ & ῇ & Ὲ & Έ & Ὴ & Ή & ῌ & ῍ & ῎ & ῏\\ +1FD0 & ῐ & ῑ & ῒ & ΐ & & & ῖ & ῗ & Ῐ & Ῑ & Ὶ & Ί & & ῝ & ῞ & ῟\\ +1FE0 & ῠ & ῡ & ῢ & ΰ & ῤ & ῥ & ῦ & ῧ & Ῠ & Ῡ & Ὺ & Ύ & Ῥ & ῭ & ΅ & `\\ +1FF0 & & & ῲ & ῳ & ῴ & & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & \\ +\bottomrule +\end{tabular} + + +Combined Diacritics work ᾅ, diacritics (except diaeresis) are dropped with +MakeUppercase (μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}). + + \section{PDF strings} @@ -56,46 +144,36 @@ With \emph{textalpha}, you can get Greek letters in PDF strings, too. The subsection title above uses: text* macros, Unicode input and the LGR transcription for the Greek word \ensuregreek{logos}. Check the table of contents in the PDF viewer: text* macros and Unicode literals work fine, the -Latin transscription stays Latin in the PDF metadata. +Latin transcription stays Latin in the PDF metadata. + \section{Limitations} Because the internal font encoding switch interferes with other work behind -the scenes, kerning, diacritics and up/downcasing show problems if -Greek letters are used without explicit change of the font encoding. -These problems can be avoided by use of babel and the correct language -setting (greek or polutonikogreek) or an explicit font encoding switch. - -The \verb+\ensuregreek+ macro ensures the argument is set in a font encoding -supporting Greek. This can be used to fix these problems (without adverse -side-effects if the active font encoding is already LGR). - -\subsection{Kerning} - -No kerning occures between Greek characters in non-Greek text due to the -internal font encoding switch: compare -\ensuregreek{\textAlpha\textUpsilon\textAlpha} (LGR) to -\textAlpha\textUpsilon\textAlpha (T1). Because of this (and for proper -hyphenation), use of babel and correct language setting is recommended for -Greek text parts. - -The \verb+\ensuregreek+ macro is also used for wrapping of composite Unicode -character definitions. Kerning is preserved also between accented -characters if the font encoding is LGR: \ensuregreek{AΫA} vs. AΫA (T1). +the scenes, kerning, diacritics and up/down-casing show problems if Greek +letters are used without explicit change of the font encoding. These +problems can be avoided by use of \emph{babel} and the correct language +setting (greek) or an explicit font encoding switch (e.g. +wrapping the Greek text in \verb|\ensuregreek|% +\footnote{The \texttt{\textbackslash ensuregreek} macro ensures the argument +is set in a font encoding supporting Greek. This can be used to fix these +problems without adverse side-effects if the active font encoding is already +LGR.}). \subsection{Diacritics} -Composition of diacritics (like \verb+\accdasia\acctonos+) fails in other -font encodings. Long names (like \verb+\accdasiaoxia+) work, however they do -not select precomposed characters. With LGR, pre-composed glyphs are chosen +Composition of diacritics (like \verb|\accdasia\acctonos|) fails in other +font encodings. Long names (like \verb|\accdasiaoxia|) work, however they do +not select pre-composed characters. With LGR, pre-composed glyphs are chosen if available (the difference becomes obvious if you drag-and-drop text from the PDF version of this document): % \ensuregreek{\<'a \accdasia\acctonos a \accdasiaoxia a \accdasiaoxia\textalpha} (LGR) vs. \accdasiaoxia\textalpha{} (T1). -Diacritics (except the dialytika) are placed before capital letters in -titlecase and dropped in all-caps: +According to Greek typographical tradition, diacritics (except the +dialytika) are placed before capital letters in titlecase and dropped in +all-caps: % \begin{quote} \ensuregreek{% @@ -112,8 +190,10 @@ titlecase and dropped in all-caps: } \end{quote} % -However, this does not work in other font encodings: -\ensuregreek{\<\textAlpha} (LGR) vs. \<\textAlpha (T1). +This fails if the active font encoding is not LGR: +\ensuregreek{\'\textAlpha} (LGR) vs. \'\textAlpha (T1). +To overcome this, the \verb|\ensuregreek| macro is used in composite Unicode +character definitions: \ensuregreek{Ά} (LGR) = Ά (T1). The dialytika marks a \emph{hiatus} (break-up of a diphthong). It must be @@ -128,34 +208,17 @@ auto-hiatus feature works in LGR font encoding only: \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{}% }. -The CamelCase accent macro names should no longer be used. Support will be -removed in a future version. -\ensuregreek{\Tonos\textalpha, \Tonos\textAlpha, -\MakeUppercase{\Tonos\textalpha} -\DasiaVaria\textalpha{} \DialytikaVaria\textupsilon{} -\MakeUppercase{\DasiaVaria\textalpha{} \DialytikaVaria\textupsilon{}} -} (LGR) -\Tonos\textalpha{}, \Tonos\textAlpha{}, -\MakeUppercase{\Tonos\textalpha{}} (T1) -\DasiaVaria\textalpha{} \DialytikaVaria\textupsilon{}. -\DasiaVaria\textalpha{} \DialytikaVaria\textupsilon{} -\MakeUppercase{\DasiaVaria\textalpha{} \DialytikaVaria\textupsilon{}} -(T1). - - -\section{Greek Unicode characters in non-Greek text} +Currently, the second vowel of the diphthong must be given as macro, not +Unicode literal if the auto-hiatus feature should work: +\ensuregreek{ἀ\textupsilon{}πνία} $\mapsto$ +\ensuregreek{\MakeUppercase{\ensuregreek{ἀ\textupsilon{}πνία}}} vs. +\ensuregreek{\MakeUppercase{\ensuregreek{ἀυπνία}}}. -With the \emph{textalpha} package and inputencoding "utf8", Greek Unicode -characters can be used in text with any font encoding. +\subsection{Kerning} -Combined Diacritics work ᾅ, diacritics (except diaresis) are dopped with -MakeUppercase (μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}), -% -but the Hiatus-detection does not work: Currently, the second vowel of the -diphthong must be given as macro, not Unicode literal: -(\ensuregreek{ἀ\textupsilon{}πνία} $\mapsto$ -\ensuregreek{\MakeUppercase{\ensuregreek{ἀ\textupsilon{}πνία}}} vs. -\ensuregreek{\MakeUppercase{\ensuregreek{ἀυπνία}}}). -See \href{greek-unicode.pdf}{greek-unicode} for more details. +No kerning occurs between Greek characters in non-Greek text due to the +internal font encoding switch: compare +\ensuregreek{\textAlpha\textUpsilon\textAlpha} (LGR) to +\textAlpha\textUpsilon\textAlpha (T1). \end{document} diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html index 3ba29bad7af..56632c2c82a 100644 --- a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html +++ b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html @@ -728,7 +728,7 @@ version 1.3 of this license or any later version.

Identification
\NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{textalpha}
-[2013/05/03 v0.3 macros for Greek letters in text]
+[2013/05/28 v0.4 macros for Greek letters in text]
 

This package is part of the lgrx bundle.

@@ -762,7 +762,11 @@ confusion with the lgrxenc.def 0.7

+ +

2013-05-28

+

0.4

+

use lgrenc.def from greek-fontenc

@@ -770,33 +774,26 @@ confusion with the

Motivation

-

By default, TeX macros for Greek letters

-
    -
  • are only valid in mathematical mode,

  • -
  • do not change shape (default shape is italic).

  • -
-

In Greek text fonts with the LGR font encoding, letters are accessible by a -Latin transcription or, with lgrx, \textalpha\textOmega -LICR macros.

-

This package declares the LGR font encoding as default for Greek LICR -macros. After loading it, symbols from a Greek text font (e.g. the CB -fonts) can be accessed without the need for an explicite font-encoding -switch.

+

By default, TeX macros for Greek letters are only valid in mathematical +mode. This package declares the LGR font encoding as default for Greek LICR +macros (\textalpha\textOmega).

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

  • In combination with the \text macro from amsmath, this can be used to get matching upright and bold upright Greek symbols in math mode.

  • -
  • In combination with \usepackage[utf8]{inputenc} and the accompanying -lgrenc.dfu file, Unicode input of Greek characters is supported.

Attention
-

While the font-encoding independent macros work reasonably well for single -symbols, the automatic font-encoding switches behind the doors interferes -with the kerning between letters and replacement of accent+character -with a pre-composed character.

-

Therefore, Greek text should be written with the help of babel, setting -the language to either greek or polutonikogreek or wrapped in the -provided \ensuregreek macro.

+

The macros work well in any font encoding for single symbols.

+

However, 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, setting the language to greek or wrapped in the +provided ensuregreek macro.

The package uses NFSS default definitions as explained in the fntguide @@ -806,8 +803,8 @@ provided \ensuregreek macro.

Implementation

Requirements

-

This package requires the extended font encoding definitions

-
\input{lgrxenc.def}
+

This package requires the font encoding definitions from greek-fontenc:

+
\input{lgrenc.def}
 
@@ -837,10 +834,6 @@ also for cases like \ensuregreek{\'A}U -

Backwards compatibility definition: versions < 0.3 used the macro -name \TextGreek:

-
\DeclareTextCommandDefault{\TextGreek}[1]{{\fontencoding{LGR}\selectfont #1}}
-

Greek Alphabet

@@ -900,54 +893,43 @@ name \TextGreek:

Additional Greek symbols

-

Including alias names for compatibility with hyperref’s puenc.def and babel’s -greek.ldf.

+

Including alias names for compatibility with hyperref’s puenc.def.

Ancient Greek Numbers (Athenian Numerals):

-
\DeclareTextSymbolDefault{\PiDelta}{LGR} % GREEK ACROPHONIC ATTIC FIFTY
-\DeclareTextSymbolDefault{\PiEta}{LGR}   % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-\DeclareTextSymbolDefault{\PiChi}{LGR}   % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-\DeclareTextSymbolDefault{\PiMu}{LGR}    % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-% \DeclareTextSymbolDefault{\pentedeka}{LGR}    % GREEK ACROPHONIC ATTIC FIFTY
-% \DeclareTextSymbolDefault{\pentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-% \DeclareTextSymbolDefault{\penteqilioi}{LGR}  % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-% \DeclareTextSymbolDefault{\pentemurioi}{LGR}  % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-
-\DeclareTextSymbolDefault{\stigma}{LGR}        % ϛ
+
\DeclareTextSymbolDefault{\textpentedeka}{LGR}    % GREEK ACROPHONIC ATTIC FIFTY
+\DeclareTextSymbolDefault{\textpentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+\DeclareTextSymbolDefault{\textpenteqilioi}{LGR}  % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+\DeclareTextSymbolDefault{\textpentemurioi}{LGR}  % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+
+

Archaic letters:

+
\DeclareTextSymbolDefault{\textstigma}{LGR}      % ϛ
 \DeclareTextSymbolDefault{\textstigmagreek}{LGR} % ϛ (puenc.def)
-\DeclareTextSymbolDefault{\varstigma}{LGR}     % stigma variant (CB.enc, teubner)
-% \DeclareTextSymbolDefault{\vardigamma}{LGR}  % digamma variant (greek.ldf)
-\DeclareTextSymbolDefault{\koppa}{LGR}         % ϟ (greek small letter koppa)
+\DeclareTextSymbolDefault{\textvarstigma}{LGR}   % stigma variant
+\DeclareTextSymbolDefault{\textkoppa}{LGR}       % ϟ (greek small letter koppa)
 \DeclareTextSymbolDefault{\textkoppagreek}{LGR}  % ϟ (puenc.def)
-\DeclareTextSymbolDefault{\qoppa}{LGR}           % ϙ (archaic koppa)
-\DeclareTextSymbolDefault{\Qoppa}{LGR}           % Ϙ (archaic Koppa)
-\DeclareTextSymbolDefault{\Stigma}{LGR}          % ϹΤ ligature (teubner)
-\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % ϹΤ ligature (puenc.def)
-\DeclareTextSymbolDefault{\Sampi}{LGR}           % Ϡ
+\DeclareTextSymbolDefault{\textqoppa}{LGR}       % ϙ (archaic koppa)
+\DeclareTextSymbolDefault{\textQoppa}{LGR}       % Ϙ (archaic Koppa)
+\DeclareTextSymbolDefault{\textStigma}{LGR}      % Ϛ ϹΤ ligature in some fonts
+\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % Ϛ (puenc.def)
+\DeclareTextSymbolDefault{\textSampi}{LGR}       % Ϡ
 \DeclareTextSymbolDefault{\textSampigreek}{LGR}  % Ϡ (puenc.def)
-\DeclareTextSymbolDefault{\sampi}{LGR}           % ϡ
+\DeclareTextSymbolDefault{\textsampi}{LGR}       % ϡ
 \DeclareTextSymbolDefault{\textsampigreek}{LGR}  % ϡ (puenc.def)
-\DeclareTextSymbolDefault{\anoteleia}{LGR}     % ·
-\DeclareTextSymbolDefault{\erotimatiko}{LGR}   % ;
-% \digamma used by amsmath!
-\DeclareTextSymbolDefault{\textdigamma}{LGR}   % ϝ (LGRx)
-\DeclareTextSymbolDefault{\textDigamma}{LGR}   % Ϝ
-\DeclareTextSymbolDefault{\ddigamma}{LGR}      % ϝ (greek.ldf)
-\DeclareTextSymbolDefault{\Digamma}{LGR}       % Ϝ
+\DeclareTextSymbolDefault{\textanoteleia}{LGR}   % ·
+\DeclareTextSymbolDefault{\texterotimatiko}{LGR} % ; (003B is the preferred character)
+\DeclareTextSymbolDefault{\textdigamma}{LGR}     % ϝ
+\DeclareTextSymbolDefault{\textDigamma}{LGR}     % Ϝ
 \DeclareTextSymbolDefault{\textdigammagreek}{LGR} % ϝ (puenc.def)
 \DeclareTextSymbolDefault{\textDigammagreek}{LGR} % Ϝ (puenc.def)
-
-% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals
-\DeclareTextSymbolDefault{\anwtonos}{LGR}     % ʹ (Dexia keraia)
-\DeclareTextSymbolDefault{\katwtonos}{LGR}    % ͵ (Aristeri keraia)
-\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR}      % (puenc.def)
+
+

numeral signs: http://en.wikipedia.org/wiki/Greek_numerals

+
\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR}      % (puenc.def)
 \DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def)
 

Diacritics

-

Diacritics are defined via “named” macros in lgrxenc.def. Make them -default in any encoding:

+

Greek diacritics via “named” macros:

\DeclareTextAccentDefault{\accdasia}{LGR}
 \DeclareTextAccentDefault{\accpsili}{LGR}
 \DeclareTextAccentDefault{\acctonos}{LGR}
@@ -975,28 +957,8 @@ default in any encoding:

Auxiliary macros

\MakeUppercase requires two internal commands:

-
\DeclareTextAccentDefault{\@hiatus}{LGR}
-\DeclareTextAccentDefault{\@Dialytika}{LGR}
-
-

Backwards compatibility with LGRx versions < 0.7:

-
\DeclareTextSymbolDefault{\Ypogegrammeni}{LGR}
-\DeclareTextSymbolDefault{\Prosgegrammeni}{LGR}
-\DeclareTextAccentDefault{\Dasia}{LGR}
-\DeclareTextAccentDefault{\Psili}{LGR}
-\DeclareTextAccentDefault{\Tonos}{LGR}
-\DeclareTextAccentDefault{\Varia}{LGR}
-\DeclareTextAccentDefault{\Perispomeni}{LGR}
-\DeclareTextAccentDefault{\Dialytika}{LGR}
-
-\DeclareTextAccentDefault{\DialytikaPerispomeni}{LGR}
-\DeclareTextAccentDefault{\DialytikaTonos}{LGR}
-\DeclareTextAccentDefault{\DialytikaVaria}{LGR}
-\DeclareTextAccentDefault{\DasiaPerispomeni}{LGR}
-\DeclareTextAccentDefault{\DasiaVaria}{LGR}
-\DeclareTextAccentDefault{\DasiaOxia}{LGR}
-\DeclareTextAccentDefault{\PsiliPerispomeni}{LGR}
-\DeclareTextAccentDefault{\PsiliOxia}{LGR}
-\DeclareTextAccentDefault{\PsiliVaria}{LGR}
+
\DeclareTextAccentDefault{\LGR@hiatus}{LGR}
+\DeclareTextAccentDefault{\LGR@Dialytika}{LGR}
 
diff --git a/Master/texmf-dist/tex/latex/lgrx/alphabeta.sty b/Master/texmf-dist/tex/latex/lgrx/alphabeta.sty index 637a3c0a27f..8d687ac6c49 100644 --- a/Master/texmf-dist/tex/latex/lgrx/alphabeta.sty +++ b/Master/texmf-dist/tex/latex/lgrx/alphabeta.sty @@ -1,74 +1,90 @@ % alphabeta: Greek symbols in text and math % ***************************************** -% +% % :Copyright: © 2010 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. -% -% :Abstract: Use ``\alpha, \beta, ...`` for Greek letters in text and math. -% +% +% :Abstract: Use ``\alpha, \beta, ...`` for Greek letters in text and math +% mode. +% % :Identification: % :: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{alphabeta} -[2013/05/03 v0.2 macros for Greek letters in text and math] +[2013/05/28 v0.3 macros for Greek letters in text and math] % This package is part of the lgrx_ bundle. -% +% % Changelog: % .. class:: borderless -% +% % ========== ===== ========================================================= % 2012-06-26 0.1 initial version -% 2013-05-03 0.2 new accent macro names with lgrxenc.def 0.7 +% 2013-05-03 0.2 new accent macro names with ``lgrxenc.def`` 0.7 +% 2013-05-28 0.3 use ``lgrenc.def`` from greek-fontenc, +% .. enable Unicode input in math mode % ========== ===== ========================================================= -% +% % Motivation % ========== -% +% % By default, the ``\alpha, \beta, ...`` macros for Greek letters % are only valid in mathematical mode. -% -% The `textalpha` package provides a set of macros that can be used to -% access Greek symbols from a font in LGR encoding (e.g. the `CB fonts`_) -% without the need for an explicite font-encoding switch under the names -% ``\textalpha, \textbeta``, ..., ``\textOmega``. -% +% % With this package, the math macros are redefined to work in both, text and % math mode, so that Greek letters can be specified with the established -% command names in text, too. -% +% command names in text, too. +% +% If used together with the ``utf8`` option of inputenc_, literal Unicode +% characters can be used for Greek symbols in mathematical formulas. +% % Attention -% While the macros work reasonably well for single letters, the automatic -% font-encoding switches behind the doors interferes with the kerning -% between the letters and replacement of accent+character with a -% pre-composed character. -% -% Therefore, Greek text should be written with the help of babel_, setting -% the language to either ``greek`` or ``polutonikogreek`` or wrapped in the -% provided ``\ensuregreek`` macro. -% -% +% The macros work well in any font encoding for single symbols. +% +% However, 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 wrapped in the +% provided ``\ensuregreek`` macro or written with the help of babel_, +% setting the language to ``greek``. +% +% % Implementation % ============== -% -% This package extends the `textalpha` package:: +% +% Requirements +% ------------ +% +% This package extends the `textalpha `_ package:: \RequirePackage{textalpha} +% `textalpha` depends on greek-fontenc_ and recommends greek-inputenc_. +% +% This package requires the e-TeX_ extensions (i.e. a not too old TeX +% distribution) for the ``\ifdefined`` test. +% % It uses the ``\TextOrMath`` test from the fixltx2e_ standard LaTeX % package:: \RequirePackage{fixltx2e} % .. _fixltx2e: http://www.ctan.org/pkg/fixltx2e -% -% +% +% +% Postpone the re-definitions +% --------------------------- +% +% To prevent other packages overwriting the re-defined commands we postpone +% the next steps until the start of the document body:: + +\AtBeginDocument{ + % Save math macros % ---------------- -% +% % Provide an alias for the standard math commands:: \let\mathGamma\Gamma @@ -107,73 +123,95 @@ \let\mathchi\chi \let\mathpsi\psi \let\mathomega\omega +% ``\digamma`` is defined by amsmath, provide a fallback +\providecommand*{\digamma}{\textit{\textdigamma}} +\let\mathdigamma\digamma + % Commands to access Greek letters by name % ---------------------------------------- -% +% % For letters defined in math mode, the commands work in both, text and math. -% +% % Some Greek letters look identic to Latin letters and can therefore not be % used as variable symbols in math formulas. These letters are not defined in -% TeX's math mode, we define just an alias to the corrsponding ``\text...`` +% TeX's math mode, we provide an alias to the corrsponding ``\text...`` % command. % :: -\newcommand{\Alpha}{\textAlpha} -\newcommand{\Beta}{\textBeta} -\renewcommand{\Gamma}{\TextOrMath{\textGamma}{\mathGamma}} -\renewcommand{\Delta}{\TextOrMath{\textDelta}{\mathDelta}} -\newcommand{\Epsilon}{\textEpsilon} -\newcommand{\Zeta}{\textZeta} -\newcommand{\Eta}{\textEta} -\renewcommand{\Theta}{\TextOrMath{\textTheta}{\mathTheta}} -\newcommand{\Iota}{\textIota} -\newcommand{\Kappa}{\textKappa} -\renewcommand{\Lambda}{\TextOrMath{\textLambda}{\mathLambda}} -\newcommand{\Mu}{\textMu} -\newcommand{\Nu}{\textNu} -\renewcommand{\Xi}{\TextOrMath{\textXi}{\mathXi}} -\newcommand{\Omicron}{\textOmicron} -\renewcommand{\Pi}{\TextOrMath{\textPi}{\mathPi}} -\newcommand{\Rho}{\textRho} -\renewcommand{\Sigma}{\TextOrMath{\textSigma}{\mathSigma}} -\newcommand{\Tau}{\textTau} -\renewcommand{\Upsilon}{\TextOrMath{\textUpsilon}{\mathUpsilon}} -\renewcommand{\Phi}{\TextOrMath{\textPhi}{\mathPhi}} -\newcommand{\Chi}{\textChi} -\renewcommand{\Psi}{\TextOrMath{\textPsi}{\mathPsi}} -\renewcommand{\Omega}{\TextOrMath{\textOmega}{\mathOmega}} +\providecommand*{\Alpha}{\textAlpha} +\providecommand*{\Beta}{\textBeta} +\renewcommand*{\Gamma}{\TextOrMath{\textGamma}{\mathGamma}} +\renewcommand*{\Delta}{\TextOrMath{\textDelta}{\mathDelta}} +\providecommand*{\Epsilon}{\textEpsilon} +\providecommand*{\Zeta}{\textZeta} +\providecommand*{\Eta}{\textEta} +\renewcommand*{\Theta}{\TextOrMath{\textTheta}{\mathTheta}} +\providecommand*{\Iota}{\textIota} +\providecommand*{\Kappa}{\textKappa} +\renewcommand*{\Lambda}{\TextOrMath{\textLambda}{\mathLambda}} +\providecommand*{\Mu}{\textMu} +\providecommand*{\Nu}{\textNu} +\renewcommand*{\Xi}{\TextOrMath{\textXi}{\mathXi}} +\providecommand*{\Omicron}{\textOmicron} +\renewcommand*{\Pi}{\TextOrMath{\textPi}{\mathPi}} +\providecommand*{\Rho}{\textRho} +\renewcommand*{\Sigma}{\TextOrMath{\textSigma}{\mathSigma}} +\providecommand*{\Tau}{\textTau} +\renewcommand*{\Upsilon}{\TextOrMath{\textUpsilon}{\mathUpsilon}} +\renewcommand*{\Phi}{\TextOrMath{\textPhi}{\mathPhi}} +\providecommand*{\Chi}{\textChi} +\renewcommand*{\Psi}{\TextOrMath{\textPsi}{\mathPsi}} +\renewcommand*{\Omega}{\TextOrMath{\textOmega}{\mathOmega}} % -\renewcommand{\alpha}{\TextOrMath{\textalpha}{\mathalpha}} -\renewcommand{\beta}{\TextOrMath{\textbeta}{\mathbeta}} -\renewcommand{\gamma}{\TextOrMath{\textgamma}{\mathgamma}} -\renewcommand{\delta}{\TextOrMath{\textdelta}{\mathdelta}} -\renewcommand{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}} -\renewcommand{\zeta}{\TextOrMath{\textzeta}{\mathzeta}} -\renewcommand{\eta}{\TextOrMath{\texteta}{\matheta}} -\renewcommand{\theta}{\TextOrMath{\texttheta}{\maththeta}} -\renewcommand{\iota}{\TextOrMath{\textiota}{\mathiota}} -\renewcommand{\kappa}{\TextOrMath{\textkappa}{\mathkappa}} -\renewcommand{\lambda}{\TextOrMath{\textlambda}{\mathlambda}} -\renewcommand{\mu}{\TextOrMath{\textmu}{\mathmu}} -\renewcommand{\nu}{\TextOrMath{\textnu}{\mathnu}} -\renewcommand{\xi}{\TextOrMath{\textxi}{\mathxi}} -\newcommand{\omicron}{\textomicron} -\renewcommand{\pi}{\TextOrMath{\textpi}{\mathpi}} -\renewcommand{\rho}{\TextOrMath{\textrho}{\mathrho}} -\renewcommand{\sigma}{\TextOrMath{\textsigma}{\mathsigma}} -\renewcommand{\varsigma}{\TextOrMath{\textvarsigma}{\mathvarsigma}} -\renewcommand{\tau}{\TextOrMath{\texttau}{\mathtau}} -\renewcommand{\upsilon}{\TextOrMath{\textupsilon}{\mathupsilon}} -\renewcommand{\phi}{\TextOrMath{\textphi}{\mathphi}} -\renewcommand{\chi}{\TextOrMath{\textchi}{\mathchi}} -\renewcommand{\psi}{\TextOrMath{\textpsi}{\mathpsi}} -\renewcommand{\omega}{\TextOrMath{\textomega}{\mathomega}} +\renewcommand*{\alpha}{\TextOrMath{\textalpha}{\mathalpha}} +\renewcommand*{\beta}{\TextOrMath{\textbeta}{\mathbeta}} +\renewcommand*{\gamma}{\TextOrMath{\textgamma}{\mathgamma}} +\renewcommand*{\delta}{\TextOrMath{\textdelta}{\mathdelta}} +\renewcommand*{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}} +\renewcommand*{\zeta}{\TextOrMath{\textzeta}{\mathzeta}} +\renewcommand*{\eta}{\TextOrMath{\texteta}{\matheta}} +\renewcommand*{\theta}{\TextOrMath{\texttheta}{\maththeta}} +\renewcommand*{\iota}{\TextOrMath{\textiota}{\mathiota}} +\renewcommand*{\kappa}{\TextOrMath{\textkappa}{\mathkappa}} +\renewcommand*{\lambda}{\TextOrMath{\textlambda}{\mathlambda}} +\renewcommand*{\mu}{\TextOrMath{\textmu}{\mathmu}} +\renewcommand*{\nu}{\TextOrMath{\textnu}{\mathnu}} +\renewcommand*{\xi}{\TextOrMath{\textxi}{\mathxi}} +\providecommand*{\omicron}{\textomicron} +\renewcommand*{\pi}{\TextOrMath{\textpi}{\mathpi}} +\renewcommand*{\rho}{\TextOrMath{\textrho}{\mathrho}} +\renewcommand*{\sigma}{\TextOrMath{\textsigma}{\mathsigma}} +\renewcommand*{\varsigma}{\TextOrMath{\textvarsigma}{\mathvarsigma}} +\providecommand*{\finalsigma}{\varsigma} +\renewcommand*{\tau}{\TextOrMath{\texttau}{\mathtau}} +\renewcommand*{\upsilon}{\TextOrMath{\textupsilon}{\mathupsilon}} +\renewcommand*{\phi}{\TextOrMath{\textphi}{\mathphi}} +\renewcommand*{\chi}{\TextOrMath{\textchi}{\mathchi}} +\renewcommand*{\psi}{\TextOrMath{\textpsi}{\mathpsi}} +\renewcommand*{\omega}{\TextOrMath{\textomega}{\mathomega}} + + +% Archaic letters +% ''''''''''''''' +% +% :: + +\renewcommand*{\digamma}{\TextOrMath{\textdigamma}{\mathdigamma}} % ϝ +\providecommand*{\Digamma}{\textDigamma} % Ϝ +\providecommand*{\stigma}{\textstigma} % ϛ +\providecommand*{\varstigma}{\textvarstigma} % stigma variant (CB.enc, teubner) +\providecommand*{\koppa}{\textkoppa} % ϟ (greek small letter koppa) +\providecommand*{\qoppa}{\textqoppa} % ϙ (archaic koppa) +\providecommand*{\Qoppa}{\textQoppa} % Ϙ (archaic Koppa) +\providecommand*{\Stigma}{\textStigma} % Ϛ (in some fonts ϹΤ ligature) +\providecommand*{\Sampi}{\textSampi} % Ϡ +\providecommand*{\sampi}{\textsampi} % ϡ % TextCompositeCommands for the generic macros % -------------------------------------------- -% +% % The NFSS TextComposite mechanism looks for the next token without expanding % it. In order to let compositions like ``\TextGreek{\'\Alpha}`` or % ``\TextGreek{\>"\alpha}`` work as expected we define TextComposites with the @@ -323,14 +361,78 @@ \DeclareTextCompositeCommand{\accvaria}{LGR}{\Omega}{`W} \DeclareTextComposite{\accdialytika}{LGR}{\Iota}{219} \DeclareTextComposite{\accdialytika}{LGR}{\Upsilon}{223} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{\Alpha}{\A@hiatus} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{\Epsilon}{\E@hiatus} +\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Alpha}{\LGR@A@hiatus} +\DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Epsilon}{\LGR@E@hiatus} + + +% Re-definition for Greek Unicode input in math mode +% -------------------------------------------------- +% +% Check with ``\ifdefined`` for the definition of +% ``\DeclareUnicodeCharacter``. In contrast to ``\@ifdefined``, this works +% without side-effects. It makes, however, the package dependent on the `e-TeX` +% extensions. Alternatively, we could provide a dummy definition +% +% .. code:: latex +% +% \providecommand*{\DeclareUnicodeCharacter}[2]{} +% +% Map Greek characters that are also defined in math mode to the generic +% macros:: + +\ifdefined\DeclareUnicodeCharacter + \DeclareUnicodeCharacter{0393}{\Gamma} % Γ + \DeclareUnicodeCharacter{0394}{\Delta} % Δ + \DeclareUnicodeCharacter{0398}{\Theta} % Θ + \DeclareUnicodeCharacter{039B}{\Lambda} % Λ + \DeclareUnicodeCharacter{039E}{\Xi} % Ξ + \DeclareUnicodeCharacter{03A0}{\Pi} % Π + \DeclareUnicodeCharacter{03A3}{\Sigma} % Σ + \DeclareUnicodeCharacter{03A5}{\Upsilon} % Υ + \DeclareUnicodeCharacter{03A6}{\Phi} % Φ + \DeclareUnicodeCharacter{03A8}{\Psi} % Ψ + \DeclareUnicodeCharacter{03A9}{\Omega} % Ω + + \DeclareUnicodeCharacter{03B1}{\alpha} % α + \DeclareUnicodeCharacter{03B2}{\beta} % β + \DeclareUnicodeCharacter{03B3}{\gamma} % γ + \DeclareUnicodeCharacter{03B4}{\delta} % δ + \DeclareUnicodeCharacter{03B5}{\epsilon} % ε + \DeclareUnicodeCharacter{03B6}{\zeta} % ζ + \DeclareUnicodeCharacter{03B7}{\eta} % η + \DeclareUnicodeCharacter{03B8}{\theta} % θ + \DeclareUnicodeCharacter{03B9}{\iota} % ι + \DeclareUnicodeCharacter{03BA}{\kappa} % κ + \DeclareUnicodeCharacter{03BB}{\lambda} % λ + \DeclareUnicodeCharacter{03BC}{\mu} % μ + \DeclareUnicodeCharacter{03BD}{\nu} % ν + \DeclareUnicodeCharacter{03BE}{\xi} % ξ + \DeclareUnicodeCharacter{03C0}{\pi} % π + \DeclareUnicodeCharacter{03C1}{\rho} % ρ + \DeclareUnicodeCharacter{03C2}{\varsigma} % ς + \DeclareUnicodeCharacter{03C3}{\sigma} % σ + \DeclareUnicodeCharacter{03C4}{\tau} % τ + \DeclareUnicodeCharacter{03C5}{\upsilon} % υ + \DeclareUnicodeCharacter{03C6}{\phi} % φ + \DeclareUnicodeCharacter{03C7}{\chi} % χ + \DeclareUnicodeCharacter{03C8}{\psi} % ψ + \DeclareUnicodeCharacter{03C9}{\omega} % ω + + \DeclareUnicodeCharacter{03DD}{\digamma} % ϝ +\fi + +% :: +} % close the \AtBeginDocument macro % .. References % ---------- % .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt % .. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete % .. _babel: http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel +% .. _e-TeX: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex +% .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc +% .. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc +% .. _inputenc: http://www.ctan.org/pkg/inputenc % .. _lgrx: http://www.ctan.org/pkg/lgrx % .. _fixltx2e: http://www.ctan.org/pkg/fixltx2e diff --git a/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def b/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def index c703c638380..bd9861db6c8 100644 --- a/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def +++ b/Master/texmf-dist/tex/latex/lgrx/lgrxenc.def @@ -1,34 +1,30 @@ % lgrxenc.def % *********** -% +% % comprehensive LGR Greek font encoding definitions % ================================================= -% +% % :Copyright: © 2010 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. -% -% :Abstract: The LGR font encoding is the de-facto standard for Greek -% typesetting with LaTeX. However, the encoding definition file -% that ships with babel misses many of the definitions common -% since the introduction of the NFSS (see fntguide_ "Encodings"). -% -% This file provides a comprehensive set of macros to -% typeset Greek with LGR encoded fonts. It works for both, -% monotonic and polytonic Greek, independent of the `babel` -% package. -% -% This package is part of the lgrx_ bundle. -% +% +% :Abstract: This file is only kept for backwards compatibility with existing +% documents. +% +% For new documents, use ``lgrenc.def`` from greek-fontenc_ (which +% is also required by this file). +% +% This file is part of the lgrx_ bundle. +% % .. contents:: -% -% +% +% % Changelog % --------- -% +% % .. class:: borderless -% +% % ===== ============ ==================================================== % 0.1 2010-03-31 initial attempt % 0.2 2010-04-20 diacritics dropped in UPPERCASE @@ -43,517 +39,123 @@ % 0.6 2012-06-29 ``\TextGreek`` wrapper command (used in lgrenc.dfu), % aliases for ``puenc.def`` compatibility % 0.6.1 2013-02-12 ``\@uclclist`` entries for `PU` aliases -% 0.7 unreleased documentation update, new accent macros names +% 0.7 2013-05-03 documentation update, new accent macros names +% 0.8 2013-05-30 backwards compatibility file for new lgrenc.def % ===== ============ ==================================================== -% +% % Usage % ----- -% -% To prevent confusion with Babel_'s ``lgrenc.def``, this file is -% named ``lgrxenc.def``. Load it by calling fontenc_ with the ``LGRx`` option -% or indirectly via the textalpha_ or alphabeta_ packages. -% +% +% This file is only kept for backwards compatibility with existing documents. +% +% For new documents, use ``lgrenc.def`` from greek-fontenc_ (which is also +% required by this file). +% % Example: -% Select font encodings `T1` (as default) and `LGR` (with the comprehensive -% font encoding definitions) -% -% ``\usepackage[LGRx,T1]{fontenc}`` -% -% .. Attention:: The name of the font encoding defined by the option ``LGRx`` -% is **not** `LGRx` but `LGR`. Therefore, ``LGRx`` must not be the -% last option (as fontenc uses the last option to select the default font -% encoding). To set `LGR` as as default font encoding specify both, -% `LGRx` and `LGR`, e.g. -% -% ``\usepackage[LGRx,T1,LGR]{fontenc}`` -% -% -% LICR macro names -% ---------------- -% -% The fntguide_ (section 6.4 Naming conventions) recommends: -% -% Where possible, text symbols should be named as ``\text`` followed -% by the Adobe glyph name: for example ``\textonequarter`` or -% ``\textsterling``. Similarly, math symbols should be named as -% ``\math`` followed by the glyph name, for example -% ``\mathonequarter`` or ``\mathsterling``. -% -% The `Adobe Glyph List For New Fonts`_ has names for many glyphs in the -% `Greek and Coptic` Unicode block, but not for `Greek extended`. -% The `Adobe Glyph List`_ (for existing fonts) lists additional glyph names -% used in older fonts. -% -% Proposals -% ~~~~~~~~~ -% -% * If there exists a math-mode macro for a symbol, form the corresponding text -% macro by prepending ``text``? -% -% Example: -% The glyph name for the GREEK SMALL LETTER FINAL SIGMA is ``sigma1``, -% the corresponding math-macro is ``\varsigma``. The text symbol could be -% made available as ``\textvarsigma``. -% -% Problems: -% ``\varepsilon`` and ``\varphi`` math macros map to characters named -% "GREEK SMALL **LETTER** ...", while ``\\vartheta``, ``\\varkappa``, -% ``\\varrho``, and ``\\varpi`` math macros map to "GREEK ... **SYMBOL**" -% Unicode characters. -% -% In Greek text, these variants are interchangeable. The LGR font encoding -% does not contain slots for "symbol" glyph variants. In some Greek fonts, -% GREEK SMALL LETTERS use glyph variants resembling the corresponding -% GREEK SYMBOL Unicode character's reference glyph. -% -% * Derive macro names from Unicode names? -% -% The `Unicode names list`_ provides standardized descriptive names for all -% Unicode characters that use only capital letters of the Latin alphabet. -% While not suited for direct use in a LICR macros, they can be either -% -% a) used as inspiration for new LICR macro names or -% -% b) converted to LICR macro names via a defined set of transformation rules. -% -% Example: -% ``\textfinalsigma`` or just ``\finalsigma`` as a more descriptive name -% for GREEK SMALL LETTER FINAL SIGMA derived via the rules: -% -% * drop "LETTER" if the name remains unique, -% * drop "GREEK" if the name remains unique, -% * use capitalized name for capital letters, lowercase for "SMALL" letters -% and drop "SMALL", -% * concatenate -% -% * Omit the "text" prefix for macros that do not have a math counterpart? -% -% Pro: -% + Simpler, -% -% + ease of use (less typing, better readability of source text), -% -% + many established text macro names without "text", -% -% + there are examples of encoding-specific macros -% without the ``text``-prefix, especially for letters, -% -% :T1: ``\AE \DH \DJ \L \NG \OE \O \SS \TH \ae \dh \dj \guillemotleft`` -% ``\guillemotright \guilsinglleft \guilsinglright \i \j \l \ng`` -% ``\oe \o \quotedblbase \quotesinglbase \ss \th`` (also in OT1) -% :T2*: ``\CYR*`` and ``\cyr*`` -% :HE8: ``\heb*`` or no prefix -% :PU: short descriptive names in the arabic part (``puarenc.def``) -% -% + ``text`` prefix does **not** mark a macro as encoding-specific or -% "inserting a glyph". There are e.g. font-changing macros (``\textbf``, -% ``\textit``) and encoding-changing macros (``\textgreek``, -% ``\textcyr``). -% -% Contra: -% - Less consistent. -% -% - ``text`` prefix marks a macro as confined to text mode. -% -% -% How to name *accent macros*? -% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -% -% * standard accent macros (``\DeclareTextAccent`` definitions in -% ``latex/base/...``) are one-symbol macros (``\' \" ... \u \v ...``) . -% -% * tipa.sty and ucs use the "text" prefix also for accents. -% -% However, the `Adobe Glyph List For New Fonts`_ maps, e.g., "tonos" and -% "dieresistonos" to 0384 GREEK TONOS and 0385 GREEK DIALYTIKA TONOS, hence -% `\texttonos` and `\textdiaresistonos` should denote these spacing -% characters. -% -% * textcomp (ts1enc.def) defines ``\capital...`` accents (i.e. without -% ``text`` prefix). -% -% * Use a common prefix ``\accent...`` or postfix ``\...accent``, -% or short ``\acc...``? -% -% Currently, `lgrx` uses for diacritics_: -% -% - Greek names like in Unicode, and ucsencs.def -% -% - The prefix "acc" to distinguish the macros as `TextAaccent` and reduce the -% risc of name clashes (cf ``\@tabacckludge``). -% -% - For the end-user "symbol macros" (``\~ \' \` \" \< \>``) are provided. -% -% -% References -% ~~~~~~~~~~ -% -% An alternative, more complete set of short mnemonic character names is -% the `XML Entity Definitions for Characters`_ W3C Recommendation from -% 01 April 2010. -% -% For glyph names of the LGR encoding see e.g. ``CB.enc`` by Apostolos -% Syropoulos and ``xl-lgr.enc`` from the libertine_ (legacy) package. -% ``lgr.cmap`` provides a mapping to Unicode characters. -% -% A full set of ``\text*`` symbol macros is defined in ``ucsencs.def`` -% from the ucs_ package. -% -% Aliases from ``puenc.def`` ensure that the hyperref_ package can -% convert Greek symbols to a PDF-string. -% -% +% Select font encodings `T1` (as default) and `LGR`: +% +% .. code:: latex +% +% \usepackage[LGR,T1]{fontenc} +% +% Select font encodings `T1` and (as default) `LGR`: +% +% .. code:: latex +% +% \usepackage[T1,LGR]{fontenc} +% +% Babel_'s "greek" option and the textalpha and alphabeta packages also load +% ``lgrenc.def``, so after any of the following lines, "LGR" is declared and +% set up as a font encoding: +% +% .. code:: latex +% +% \usepackage[greek,english]{babel} % default language English +% +% \usepackage[greek,english]{babel} % default language Greek +% +% \usepackage{textalpha} +% +% \usepackage{alphabeta} +% +% % Implementation % -------------- -% -% Read this file only once -% ~~~~~~~~~~~~~~~~~~~~~~~~ -% .. 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 test via eTeX's ``\ifdefined``). However, in this case -% no harm is done as the macro is defined by the identification_ below -% anyway. -% -% :: - -\@ifundefined{ver@lgrxenc.def} - {\message{setting up comprehensive LGR font encoding definitions.}} - {\message{comprehensive LGR font encoding definitions already loaded} - \expandafter\endinput % "return" - } - +% % Identification % ~~~~~~~~~~~~~~ % :: \ProvidesFile{lgrxenc.def} -[2013/05/03 v0.7 comprehensive LGR Greek Font Encoding definitions] - - -% Base setup -% ~~~~~~~~~~ -% -% Declare the font encoding and substitutions. -% (from the file ``lgrenc.def`` that comes with the Babel package):: +[2013/05/30 v0.8 comprehensive LGR Greek Font Encoding definitions] -\DeclareFontEncoding{LGR}{}{} -\DeclareFontSubstitution{LGR}{cmr}{m}{n} -\DeclareErrorFont{LGR}{cmr}{m}{n}{10} -% The ``\ensuregreek`` command can be used to ensure that its argument is set in -% a font encoding with support for Greek. If the font encoding is already LGR, -% kerning between adjacent command calls (e.g. -% ``\ensuregreek{A}\ensuregreek{\Upsilon}``) is preserved. This allows wrapping of -% compound Unicode character definitions. :: - -\DeclareTextCommand{\ensuregreek}{LGR}[1]{#1} -\DeclareTextCommand{\TextGreek}{LGR}[1]{#1} % backwards compatibility - - -% Text symbols +% Requirements % ~~~~~~~~~~~~ -% -% Greek Alphabet -% """""""""""""" -% -% Greek letters are accessible by the Latin transcription, but the mapping is -% specific to the LGR font encoding. -% -% The LICR macros provide a way to access the symbols independent of the -% specific font encoding, in any font encoding supporting Greek. Alternative -% Greek font encodings are LGI (ibycus_) and PU (`PDF Unicode` used by -% hyperref_ for PDF metadata). The textalpha_ package makes these macros -% available independent of the current font encoding. -% :: +% +% To declare and set up the LGR font encoding, we use the successor file +% ``lgrenc.def`` from greek-fontenc_:: + +\input{lgrenc.def} -\DeclareTextSymbol{\textAlpha}{LGR}{65} -\DeclareTextSymbol{\textBeta}{LGR}{66} -\DeclareTextSymbol{\textGamma}{LGR}{71} -\DeclareTextSymbol{\textDelta}{LGR}{68} -\DeclareTextSymbol{\textEpsilon}{LGR}{69} -\DeclareTextSymbol{\textZeta}{LGR}{90} -\DeclareTextSymbol{\textEta}{LGR}{72} -\DeclareTextSymbol{\textTheta}{LGR}{74} -\DeclareTextSymbol{\textIota}{LGR}{73} -\DeclareTextSymbol{\textKappa}{LGR}{75} -\DeclareTextSymbol{\textLambda}{LGR}{76} -\DeclareTextSymbol{\textMu}{LGR}{77} -\DeclareTextSymbol{\textNu}{LGR}{78} -\DeclareTextSymbol{\textXi}{LGR}{88} -\DeclareTextSymbol{\textOmicron}{LGR}{79} -\DeclareTextSymbol{\textPi}{LGR}{80} -\DeclareTextSymbol{\textRho}{LGR}{82} -\DeclareTextSymbol{\textSigma}{LGR}{83} -\DeclareTextSymbol{\textTau}{LGR}{84} -\DeclareTextSymbol{\textUpsilon}{LGR}{85} -\DeclareTextSymbol{\textPhi}{LGR}{70} -\DeclareTextSymbol{\textChi}{LGR}{81} -\DeclareTextSymbol{\textPsi}{LGR}{89} -\DeclareTextSymbol{\textOmega}{LGR}{87} -% -\DeclareTextSymbol{\textalpha}{LGR}{97} -\DeclareTextSymbol{\textbeta}{LGR}{98} -\DeclareTextSymbol{\textgamma}{LGR}{103} -\DeclareTextSymbol{\textdelta}{LGR}{100} -\DeclareTextSymbol{\textepsilon}{LGR}{101} -\DeclareTextSymbol{\textzeta}{LGR}{122} -\DeclareTextSymbol{\texteta}{LGR}{104} -\DeclareTextSymbol{\texttheta}{LGR}{106} -\DeclareTextSymbol{\textiota}{LGR}{105} -\DeclareTextSymbol{\textkappa}{LGR}{107} -\DeclareTextSymbol{\textlambda}{LGR}{108} -\DeclareTextSymbol{\textmu}{LGR}{109} -\DeclareTextSymbol{\textnu}{LGR}{110} -\DeclareTextSymbol{\textxi}{LGR}{120} -\DeclareTextSymbol{\textomicron}{LGR}{111} -\DeclareTextSymbol{\textpi}{LGR}{112} -\DeclareTextSymbol{\textrho}{LGR}{114} -\DeclareTextCommand{\textsigma}{LGR}{s\noboundary} % σ -\DeclareTextSymbol{\textvarsigma}{LGR}{99} % ς final sigma -\DeclareTextSymbol{\textfinalsigma}{LGR}{99} % ς final sigma -\DeclareTextSymbol{\textautosigma}{LGR}{115} % σ (ς at end of word) -\DeclareTextSymbol{\texttau}{LGR}{116} -\DeclareTextSymbol{\textupsilon}{LGR}{117} -\DeclareTextSymbol{\textphi}{LGR}{102} -\DeclareTextSymbol{\textchi}{LGR}{113} -\DeclareTextSymbol{\textpsi}{LGR}{121} -\DeclareTextSymbol{\textomega}{LGR}{119} +% Backwards compatibility definitions +% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +% +% ``\TextGreek`` is now called ``\ensuregreek``:: +\DeclareTextCommand{\TextGreek}{LGR}[1]{#1} + % Additional Greek symbols % """""""""""""""""""""""" -% +% +% Compatibility aliases (defined via `TextCommand` so that up/downcasing works +% without the need for additional uclclist entries. +% % Ancient Greek Numbers (Athenian Numerals) % ''''''''''''''''''''''''''''''''''''''''' -% +% % Names from the athnum_ package:: -\DeclareTextSymbol{\PiDelta}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY -\DeclareTextSymbol{\PiEta}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED -\DeclareTextSymbol{\PiChi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\DeclareTextSymbol{\PiMu}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND - -% Names from ``xl-lgr.enc`` (Greek numerals):: - -\DeclareTextSymbol{\pentedeka}{LGR}{2} % GREEK ACROPHONIC ATTIC FIFTY -\DeclareTextSymbol{\pentehekaton}{LGR}{3} % GREEK ACROPHONIC ATTIC FIVE HUNDRED -\DeclareTextSymbol{\penteqilioi}{LGR}{4} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\DeclareTextSymbol{\pentemurioi}{LGR}{5} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND - +\DeclareTextCommand{\PiDelta}{LGR}{\pentedeka} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareTextCommand{\PiEta}{LGR}{\pentehekaton} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareTextCommand{\PiChi}{LGR}{\penteqilioi} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareTextCommand{\PiMu}{LGR}{\pentemurioi} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND % Archaic letters % ''''''''''''''' -% Names after babel_'s ``greek.ldf``, teubner_ and hyperref_'s puenc.def:: +% +% Names from babel_'s ``greek.ldf`` and teubner_ :: -\DeclareTextSymbol{\stigma}{LGR}{6} % ϛ (greek.ldf, teubner) -\DeclareTextSymbol{\varstigma}{LGR}{7} % stigma variant (CB.enc, teubner) -\DeclareTextSymbol{\koppa}{LGR}{18} % ϟ (greek small letter koppa) -\DeclareTextSymbol{\qoppa}{LGR}{19} % ϙ (archaic koppa) -\DeclareTextSymbol{\Qoppa}{LGR}{21} % Ϙ (archaic Koppa) -\DeclareTextSymbol{\Stigma}{LGR}{22} % Ϛ (teubner) in some fonts ϹΤ ligature -\DeclareTextSymbol{\Sampi}{LGR}{23} % Ϡ -\DeclareTextSymbol{\sampi}{LGR}{27} % ϡ -\DeclareTextSymbol{\anoteleia}{LGR}{38} % · -\DeclareTextSymbol{\textanoteleia}{LGR}{38} % · -\DeclareTextSymbol{\erotimatiko}{LGR}{63} % ; -% \digamma used by amsmath for math-macro: -\DeclareTextSymbol{\textdigamma}{LGR}{147} % ϝ (uni-3.def (ucs)) -\DeclareTextSymbol{\textDigamma}{LGR}{195} % Ϝ (uni-3.def (ucs)) +\DeclareTextCommand{\vardigamma}{LGR}{\textvarstigma} % greek.ldf +\DeclareTextCommand{\ddigamma}{LGR}{\textdigamma} % greek.ldf +\DeclareTextCommand{\Digamma}{LGR}{\textDigamma} % greek.ldf -% Compatibility aliases (defined via `TextCommand` so that up/downcasing works -% without the need for additional uclclist entries:: - -\DeclareTextCommand{\vardigamma}{LGR}{\varstigma} % greek.ldf -\DeclareTextCommand{\textSampigreek}{LGR}{\Sampi} % puenc.def -\DeclareTextCommand{\textsampigreek}{LGR}{\sampi} % puenc.def -\DeclareTextCommand{\textstigmagreek}{LGR}{\stigma} % puenc.def -\DeclareTextCommand{\textkoppagreek}{LGR}{\koppa} % puenc.def -\DeclareTextCommand{\textStigmagreek}{LGR}{\Stigma} % puenc.def -\DeclareTextCommand{\ddigamma}{LGR}{\textdigamma} % greek.ldf -\DeclareTextCommand{\textdigammagreek}{LGR}{\textdigamma} % puenc.def -\DeclareTextCommand{\Digamma}{LGR}{\textDigamma} % greek.ldf -\DeclareTextCommand{\textDigammagreek}{LGR}{\textDigamma} % puenc.def +\DeclareTextCommand{\stigma}{LGR}{\textstigma} % ϛ (greek.ldf, teubner) +\DeclareTextCommand{\varstigma}{LGR}{\textvarstigma} % stigma variant (CB.enc, teubner) +\DeclareTextCommand{\koppa}{LGR}{\textkoppa} % ϟ (greek small letter koppa) +\DeclareTextCommand{\qoppa}{LGR}{\textqoppa} % ϙ (archaic koppa) +\DeclareTextCommand{\Qoppa}{LGR}{\textQoppa} % Ϙ (archaic Koppa) +\DeclareTextCommand{\Stigma}{LGR}{\textStigma} % Ϛ (teubner) in some fonts ϹΤ ligature +\DeclareTextCommand{\Sampi}{LGR}{\textSampi} % Ϡ +\DeclareTextCommand{\sampi}{LGR}{\textsampi} % ϡ +\DeclareTextCommand{\anoteleia}{LGR}{\textanoteleia} % · +\DeclareTextCommand{\erotimatiko}{LGR}{\texterotimatiko} % ; % Numeral signs % ''''''''''''' % See also http://en.wikipedia.org/wiki/Greek_numerals -% +% % Names from babel_, teubner_, and hyperref_'s puenc.def:: -\DeclareTextSymbol{\anwtonos}{LGR}{254} % ʹ (Dexia keraia) -\DeclareTextSymbol{\textnumeralsigngreek}{LGR}{254} % ʹ (puenc.def) -\DeclareTextSymbol{\katwtonos}{LGR}{255} % ͵ (Aristeri keraia) -\DeclareTextSymbol{\textnumeralsignlowergreek}{LGR}{255} % ͵ (puenc.def) - +\DeclareTextCommand{\anwtonos}{LGR}{\textnumeralsigngreek} % ʹ (Dexia keraia) +\DeclareTextCommand{\katwtonos}{LGR}{\textnumeralsignlowergreek} % ͵ (Aristeri keraia) -% Other -% """"" -% -% Characters that also exist in other font encodings: -% -% * define them for LGR if there is a matching glyph, -% * use established macro names that match with other ``*enc.def`` files and -% ``textcomp.sty``. -% -% :: - -% all encodings: See usrguide.pdf, chapter 3.14 ff -\DeclareTextSymbol{\textendash}{LGR}{0} % EN DASH -\DeclareTextSymbol{\textquoteleft}{LGR}{28} % ‘ -\DeclareTextSymbol{\textquoteright}{LGR}{29} % ’ -\DeclareTextSymbol{\textperiodcentered}{LGR}{46} % · = \textanoteleia -\DeclareTextSymbol{\textcompwordmark}{LGR}{118} % ZERO WIDTH NO JOINER -\DeclareTextSymbol{\textemdash}{LGR}{127} % EM DASH - -% T1 -\DeclareTextSymbol{\guillemotleft}{LGR}{123} % « -\DeclareTextSymbol{\guillemotright}{LGR}{125} % » - -% TS1 -\ProvideTextCommand{\textasciibreve}{LGR}{\char30\textcompwordmark} % ˘ -\ProvideTextCommand{\textasciimacron}{LGR}{\char31\textcompwordmark} % ¯ -\ProvideTextCommand{\textasciidieresis}{LGR}{\char34\textcompwordmark} % " -\ProvideTextCommand{\textasciiacute}{LGR}{\char39\textcompwordmark} % ' -\ProvideTextCommand{\textasciigrave}{LGR}{\char96\textcompwordmark} % ` -\DeclareTextCommand{\textasciitilde}{LGR}{\char126\textcompwordmark} % ~ -\DeclareTextSymbol{\textohm}{LGR}{87} % Ω (Ohm sign -> Omega) -\DeclareTextSymbol{\texteuro}{LGR}{24} % € \euro in greek.ldf -\DeclareTextSymbol{\textpercent}{LGR}{37} % % -\DeclareTextSymbol{\textperthousand}{LGR}{25} % ‰ \permille in greek.ldf - -% T3 -\DeclareTextSymbol{\textschwa}{LGR}{26} % ə - -% Not implemented -% """"""""""""""" -% -% The characters at position 16 and 17 are used in the ``\nexus`` macro -% of the teubner_ package to form an extensible, hat-like bracket. In -% ``CB.enc``, they are mapped to -% -% 16--MODIFIER LETTER LOW ACUTE ACCENT -% 17--MODIFIER LETTER LOW GRAVE ACCENT -% -% but according to the documentation of Werner Lemberg's `babel patch`_, -% they rather represent the left and right part of U+23E0 TOP TORTOISE -% SHELL BRACKET. -% -% Babel's ``lgrenc.def`` has some definitions to prevent surprises with -% macros that expect a Latin script. These definitions are problematic -% in a font-encoding definition file as they -% -% * require ``\textlatin`` which is defined in ``babel.def``, -% * prevent use of TS1 symbols set as default by ``textcomp.sty``. -% -% :: -%\ProvideTextCommand{\textcopyright}{LGR}{\textcircled{\textlatin{c}}} -%\ProvideTextCommand{\textregistered}{LGR}{\textcircled{\textlatin{\textsc r}}} -%\ProvideTextCommand{\texttrademark}{LGR}{\textsuperscript{\textlatin{TM}}} -%\ProvideTextCommand{\SS}{LGR}{\textlatin{SS}} - -% They may be moved to ``greek.ldf`` one day (with a caveat for textcomp/TS1). -% -% % Diacritics % ~~~~~~~~~~ -% -% This section defines `named macros`_ for Greek diacritics and standard -% `symbol macros`_ as alias for simple diacritics. Convenient input -% conventions for `composite diacritics`_ are defined as `composite -% definitions`_. -% -% Advantages: -% -% * input convention similar to LGR input encodings (just prepend a ``\``). -% -% * Access pre-composed characters without resorting to the -% ligature mechanism (allows proper kerning, cf. teubner-doc_). -% -% * Named macros can be used to ensure a font encoding supporting Greek is -% used. However, substitution with pre-composed characters works only for -% the active font encoding (cf. textalpha_). Named accent macros can also be -% used instead of the ``\@tabacckludge`` by to-LaTeX converters to ensure -% working also inside the tabbing environment. -% -% * Named macros are required for upcasing according to Greek typesetting -% conventions (cf. `UPPERCASE`_ below) and for composite diacritics. -% -% -% Named macros -% """""""""""" -% -% Definitions are based on the teubner_ package by Claudio Beccari, the ucs_ -% package, and the `babel patch`_ by Werner Lemberg. Names are derived from -% the Unicode name with the prefix "acc" (cf. `How to name accent macros?`_ -% above) resulting in reduced probability of incompatibilities compared to the -% two-letter teubner_ diacritic macros. -% -% Simple Greek diacritics:: - -\DeclareTextAccent{\accdialytika}{LGR}{34} % διαλυτικά (diaeresis/trema) -\DeclareTextAccent{\acctonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute) -\DeclareTextAccent{\accdasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing) -\DeclareTextAccent{\accpsili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing) -\DeclareTextAccent{\accvaria}{LGR}{96} % βαρεῖα (grave) -\DeclareTextAccent{\accperispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde) - -% The sub-iota is input after the base character. In LGR fonts, ligatures are -% defined for pre-composed characters, the postfix ligature does not interfere -% with kerning:: - -\DeclareTextSymbol{\prosgegrammeni}{LGR}{8} % ι "capital" sub-iota -\DeclareTextSymbol{\ypogegrammeni}{LGR}{124} % ͺ "small" sub-iota - -% Composite diacritics:: - -% Teubner name -\DeclareTextAccent{\accdialytikaperispomeni}{LGR}{32} % Cd -\DeclareTextAccent{\accdialytikatonos}{LGR}{35} % Ad -\DeclareTextAccent{\accdialytikavaria}{LGR}{36} % Gd - -\DeclareTextAccent{\accdasiaperispomeni}{LGR}{64} % Cr -\DeclareTextAccent{\accdasiavaria}{LGR}{67} % Gr -\DeclareTextAccent{\accdasiaoxia}{LGR}{86} % Ar - -\DeclareTextAccent{\accpsiliperispomeni}{LGR}{92} % Cs -\DeclareTextAccent{\accpsilioxia}{LGR}{94} % As -\DeclareTextAccent{\accpsilivaria}{LGR}{95} % Gs - -% For classical Greek and linguistics, the LGR font encoding contains a number -% of additional diacritic symbols:: - -\DeclareTextAccent{\subinvertedbreve}{LGR}{1} % INVERTED BREVE BELOW -\DeclareTextAccent{\textsubarch}{LGR}{1} % (tipa) -\DeclareTextAccent{\subbreve}{LGR}{20} % BREVE BELOW -\DeclareTextAccent{\u}{LGR}{30} % BREVE -\DeclareTextAccent{\=}{LGR}{31} % MACRON - - -% Aliases -% """"""" -% -% _`Symbol macros`:: - -\DeclareTextCommand{\"}{LGR}{\accdialytika} -\DeclareTextCommand{\'}{LGR}{\acctonos} -\DeclareTextCommand{\`}{LGR}{\accvaria} -\DeclareTextCommand{\~}{LGR}{\accperispomeni} -\DeclareTextCommand{\<}{LGR}{\accdasia} -\DeclareTextCommand{\>}{LGR}{\accpsili} - -% TODO: do we also want alternative symbols for the breathings (cf. X compose -% table, LCI encoding)? :: - -%\DeclareTextCommand{\(}{LGR}{\accdasia} -%\DeclareTextCommand{\)}{LGR}{\accpsili} - -% Two Unicode names for one character:: - -\DeclareTextCommand{\accoxia}{LGR}{\acctonos} -\DeclareTextCommand{\acckoronis}{LGR}{\accpsili} - +% % Backwards compatibility with LGRx versions < 0.7:: \DeclareTextCommand{\Ypogegrammeni}{LGR}{\ypogegrammeni} @@ -578,641 +180,19 @@ \DeclareTextCommand{\PsiliVaria}{LGR}{\accpsilivaria} -% Composite definitions -% ~~~~~~~~~~~~~~~~~~~~~ -% -% Composite diacritics -% """""""""""""""""""" -% -% Composite accents can be input as sequence of simple diacritics (in -% arbitrary order) via named macro, symbol macro and "transcription -% characters", e.g. ``\accdialytica\accvaria\textalpha``, ``\"\'\textalpha``, -% ``\"'\textalpha``, or ``\'"\textalpha``. -% -% Separate definitions for the supported variants of the second input token -% are required as composition is based on the non-expanded input - -% The composition with simple "transcription characters" must also be defined -% for the symbol macros, otherwise it fails with ``\Makeuppercase``):: - -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\acctonos}{\accdialytikatonos} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\'}{\accdialytikatonos} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{'}{\accdialytikatonos} -\DeclareTextCompositeCommand{\"}{LGR}{'}{\accdialytikatonos} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\accvaria}{\accdialytikavaria} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\`}{\accdialytikavaria} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{`}{\accdialytikavaria} -\DeclareTextCompositeCommand{\"}{LGR}{`}{\accdialytikavaria} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\accperispomeni}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\~}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\accdialytika}{LGR}{~}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\"}{LGR}{~}{\accdialytikaperispomeni} - -\DeclareTextCompositeCommand{\acctonos}{LGR}{\accdialytika}{\accdialytikatonos} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\"}{\accdialytikatonos} -\DeclareTextCompositeCommand{\acctonos}{LGR}{"}{\accdialytikatonos} -\DeclareTextCompositeCommand{\'}{LGR}{"}{\accdialytikatonos} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\accdasia}{\accdasiaoxia} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\<}{\accdasiaoxia} -\DeclareTextCompositeCommand{\acctonos}{LGR}{<}{\accdasiaoxia} -\DeclareTextCompositeCommand{\'}{LGR}{<}{\accdasiaoxia} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\accpsili}{\accpsilioxia} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\>}{\accpsilioxia} -\DeclareTextCompositeCommand{\acctonos}{LGR}{>}{\accpsilioxia} -\DeclareTextCompositeCommand{\'}{LGR}{>}{\accpsilioxia} - -\DeclareTextCompositeCommand{\accvaria}{LGR}{\accdialytika}{\accdialytikavaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\"}{\accdialytikavaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{"}{\accdialytikavaria} -\DeclareTextCompositeCommand{\`}{LGR}{"}{\accdialytikavaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\accdasia}{\accdasiavaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\<}{\accdasiavaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{<}{\accdasiavaria} -\DeclareTextCompositeCommand{\`}{LGR}{<}{\accdasiavaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\accpsili}{\accpsilivaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\>}{\accpsilivaria} -\DeclareTextCompositeCommand{\accvaria}{LGR}{>}{\accpsilivaria} -\DeclareTextCompositeCommand{\`}{LGR}{>}{\accpsilivaria} - -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accdialytika}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\"}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{"}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\~}{LGR}{"}{\accdialytikaperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accdasia}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\<}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{<}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\~}{LGR}{<}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\accpsili}{\accpsiliperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{\>}{\accpsiliperispomeni} -\DeclareTextCompositeCommand{\accperispomeni}{LGR}{>}{\accpsiliperispomeni} -\DeclareTextCompositeCommand{\~}{LGR}{>}{\accpsiliperispomeni} - -\DeclareTextCompositeCommand{\accpsili}{LGR}{\acctonos}{\accpsilioxia} -\DeclareTextCompositeCommand{\accpsili}{LGR}{\'}{\accpsilioxia} -\DeclareTextCompositeCommand{\accpsili}{LGR}{'}{\accpsilioxia} -\DeclareTextCompositeCommand{\>}{LGR}{'}{\accpsilioxia} -\DeclareTextCompositeCommand{\accpsili}{LGR}{\accvaria}{\accpsilivaria} -\DeclareTextCompositeCommand{\accpsili}{LGR}{\`}{\accpsilivaria} -\DeclareTextCompositeCommand{\accpsili}{LGR}{`}{\accpsilivaria} -\DeclareTextCompositeCommand{\>}{LGR}{`}{\accpsilivaria} -\DeclareTextCompositeCommand{\accpsili}{LGR}{\accperispomeni}{\accpsiliperispomeni} -\DeclareTextCompositeCommand{\accpsili}{LGR}{\~}{\accpsiliperispomeni} -\DeclareTextCompositeCommand{\accpsili}{LGR}{~}{\accpsiliperispomeni} -\DeclareTextCompositeCommand{\>}{LGR}{~}{\accpsiliperispomeni} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\acctonos}{\accdasiaoxia} -\DeclareTextCompositeCommand{\accdasia}{LGR}{\'}{\accdasiaoxia} -\DeclareTextCompositeCommand{\accdasia}{LGR}{'}{\accdasiaoxia} -\DeclareTextCompositeCommand{\<}{LGR}{'}{\accdasiaoxia} -\DeclareTextCompositeCommand{\accdasia}{LGR}{\accvaria}{\accdasiavaria} -\DeclareTextCompositeCommand{\accdasia}{LGR}{\`}{\accdasiavaria} -\DeclareTextCompositeCommand{\accdasia}{LGR}{`}{\accdasiavaria} -\DeclareTextCompositeCommand{\<}{LGR}{`}{\accdasiavaria} -\DeclareTextCompositeCommand{\accdasia}{LGR}{\accperispomeni}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\accdasia}{LGR}{\~}{\accdasiaperispomeni} -\DeclareTextCompositeCommand{\<}{LGR}{~}{\accdasiaperispomeni} - - -% Pre-composed letters -% """""""""""""""""""" -% Small letters with diacritics -% ''''''''''''''''''''''''''''' -% -% (from teubner_ with changed names of the composite accents):: - -\DeclareTextComposite{\accvaria}{LGR}{a}{128} -\DeclareTextComposite{\accdasia}{LGR}{a}{129} -\DeclareTextComposite{\accpsili}{LGR}{a}{130} -\DeclareTextComposite{\accdasiavaria}{LGR}{a}{131} -\DeclareTextComposite{\acctonos}{LGR}{a}{136} -\DeclareTextComposite{\accdasiaoxia}{LGR}{a}{137} -\DeclareTextComposite{\accpsilioxia}{LGR}{a}{138} -\DeclareTextComposite{\accpsilivaria}{LGR}{a}{139} -\DeclareTextComposite{\accperispomeni}{LGR}{a}{144} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{a}{145} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{a}{146} -\DeclareTextComposite{\accvaria}{LGR}{h}{152} -\DeclareTextComposite{\accdasia}{LGR}{h}{153} -\DeclareTextComposite{\accpsili}{LGR}{h}{154} -\DeclareTextComposite{\acctonos}{LGR}{h}{160} -\DeclareTextComposite{\accdasiaoxia}{LGR}{h}{161} -\DeclareTextComposite{\accpsilioxia}{LGR}{h}{162} -\DeclareTextComposite{\accdasiavaria}{LGR}{h}{163} -\DeclareTextComposite{\accperispomeni}{LGR}{h}{168} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{h}{169} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{h}{170} -\DeclareTextComposite{\accpsilivaria}{LGR}{h}{171} -\DeclareTextComposite{\accvaria}{LGR}{w}{176} -\DeclareTextComposite{\accdasia}{LGR}{w}{177} -\DeclareTextComposite{\accpsili}{LGR}{w}{178} -\DeclareTextComposite{\accdasiavaria}{LGR}{w}{179} -\DeclareTextComposite{\acctonos}{LGR}{w}{184} -\DeclareTextComposite{\accdasiaoxia}{LGR}{w}{185} -\DeclareTextComposite{\accpsilioxia}{LGR}{w}{186} -\DeclareTextComposite{\accpsilivaria}{LGR}{w}{187} -\DeclareTextComposite{\accperispomeni}{LGR}{w}{192} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{w}{193} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{w}{194} -\DeclareTextComposite{\accvaria}{LGR}{i}{200} -\DeclareTextComposite{\accdasia}{LGR}{i}{201} -\DeclareTextComposite{\accpsili}{LGR}{i}{202} -\DeclareTextComposite{\accdasiavaria}{LGR}{i}{203} -\DeclareTextComposite{\acctonos}{LGR}{i}{208} -\DeclareTextComposite{\accdasiaoxia}{LGR}{i}{209} -\DeclareTextComposite{\accpsilioxia}{LGR}{i}{210} -\DeclareTextComposite{\accpsilivaria}{LGR}{i}{211} -\DeclareTextComposite{\accperispomeni}{LGR}{i}{216} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{i}{217} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{i}{218} -\DeclareTextComposite{\accdialytika}{LGR}{i}{240} -\DeclareTextComposite{\accdialytikavaria}{LGR}{i}{241} -\DeclareTextComposite{\accdialytikatonos}{LGR}{i}{242} -\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{i}{243} -\DeclareTextComposite{\accvaria}{LGR}{u}{204} -\DeclareTextComposite{\accdasia}{LGR}{u}{205} -\DeclareTextComposite{\accpsili}{LGR}{u}{206} -\DeclareTextComposite{\accdasiavaria}{LGR}{u}{207} -\DeclareTextComposite{\acctonos}{LGR}{u}{212} -\DeclareTextComposite{\accdasiaoxia}{LGR}{u}{213} -\DeclareTextComposite{\accpsilioxia}{LGR}{u}{214} -\DeclareTextComposite{\accpsilivaria}{LGR}{u}{215} -\DeclareTextComposite{\accperispomeni}{LGR}{u}{220} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{u}{221} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{u}{222} -\DeclareTextComposite{\accdialytika}{LGR}{u}{244} -\DeclareTextComposite{\accdialytikavaria}{LGR}{u}{245} -\DeclareTextComposite{\accdialytikatonos}{LGR}{u}{246} -\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{u}{247} -\DeclareTextComposite{\accvaria}{LGR}{e}{224} -\DeclareTextComposite{\accdasia}{LGR}{e}{225} -\DeclareTextComposite{\accpsili}{LGR}{e}{226} -\DeclareTextComposite{\accdasiavaria}{LGR}{e}{227} -\DeclareTextComposite{\acctonos}{LGR}{e}{232} -\DeclareTextComposite{\accdasiaoxia}{LGR}{e}{233} -\DeclareTextComposite{\accpsilioxia}{LGR}{e}{234} -\DeclareTextComposite{\accpsilivaria}{LGR}{e}{235} -\DeclareTextComposite{\accvaria}{LGR}{o}{228} -\DeclareTextComposite{\accdasia}{LGR}{o}{229} -\DeclareTextComposite{\accpsili}{LGR}{o}{230} -\DeclareTextComposite{\accdasiavaria}{LGR}{o}{231} -\DeclareTextComposite{\acctonos}{LGR}{o}{236} -\DeclareTextComposite{\accdasiaoxia}{LGR}{o}{237} -\DeclareTextComposite{\accpsilioxia}{LGR}{o}{238} -\DeclareTextComposite{\accpsilivaria}{LGR}{o}{239} -\DeclareTextComposite{\accdasia}{LGR}{r}{251} -\DeclareTextComposite{\accpsili}{LGR}{r}{252} - -% Pre-composed letters with diacritics + LICR macros:: - -\DeclareTextComposite{\accvaria}{LGR}{\textalpha}{128} -\DeclareTextComposite{\accdasia}{LGR}{\textalpha}{129} -\DeclareTextComposite{\accpsili}{LGR}{\textalpha}{130} -\DeclareTextComposite{\accdasiavaria}{LGR}{\textalpha}{131} -\DeclareTextComposite{\acctonos}{LGR}{\textalpha}{136} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\textalpha}{137} -\DeclareTextComposite{\accpsilioxia}{LGR}{\textalpha}{138} -\DeclareTextComposite{\accpsilivaria}{LGR}{\textalpha}{139} -\DeclareTextComposite{\accperispomeni}{LGR}{\textalpha}{144} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textalpha}{145} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textalpha}{146} -\DeclareTextComposite{\accvaria}{LGR}{\texteta}{152} -\DeclareTextComposite{\accdasia}{LGR}{\texteta}{153} -\DeclareTextComposite{\accpsili}{LGR}{\texteta}{154} -\DeclareTextComposite{\acctonos}{LGR}{\texteta}{160} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\texteta}{161} -\DeclareTextComposite{\accpsilioxia}{LGR}{\texteta}{162} -\DeclareTextComposite{\accdasiavaria}{LGR}{\texteta}{163} -\DeclareTextComposite{\accperispomeni}{LGR}{\texteta}{168} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\texteta}{169} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\texteta}{170} -\DeclareTextComposite{\accpsilivaria}{LGR}{\texteta}{171} -\DeclareTextComposite{\accvaria}{LGR}{\textomega}{176} -\DeclareTextComposite{\accdasia}{LGR}{\textomega}{177} -\DeclareTextComposite{\accpsili}{LGR}{\textomega}{178} -\DeclareTextComposite{\accdasiavaria}{LGR}{\textomega}{179} -\DeclareTextComposite{\acctonos}{LGR}{\textomega}{184} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\textomega}{185} -\DeclareTextComposite{\accpsilioxia}{LGR}{\textomega}{186} -\DeclareTextComposite{\accpsilivaria}{LGR}{\textomega}{187} -\DeclareTextComposite{\accperispomeni}{LGR}{\textomega}{192} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textomega}{193} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textomega}{194} -\DeclareTextComposite{\accvaria}{LGR}{\textiota}{200} -\DeclareTextComposite{\accdasia}{LGR}{\textiota}{201} -\DeclareTextComposite{\accpsili}{LGR}{\textiota}{202} -\DeclareTextComposite{\accdasiavaria}{LGR}{\textiota}{203} -\DeclareTextComposite{\acctonos}{LGR}{\textiota}{208} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\textiota}{209} -\DeclareTextComposite{\accpsilioxia}{LGR}{\textiota}{210} -\DeclareTextComposite{\accpsilivaria}{LGR}{\textiota}{211} -\DeclareTextComposite{\accperispomeni}{LGR}{\textiota}{216} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textiota}{217} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textiota}{218} -\DeclareTextComposite{\accdialytika}{LGR}{\textiota}{240} -\DeclareTextComposite{\accdialytikavaria}{LGR}{\textiota}{241} -\DeclareTextComposite{\accdialytikatonos}{LGR}{\textiota}{242} -\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\textiota}{243} -\DeclareTextComposite{\accvaria}{LGR}{\textupsilon}{204} -\DeclareTextComposite{\accdasia}{LGR}{\textupsilon}{205} -\DeclareTextComposite{\accpsili}{LGR}{\textupsilon}{206} -\DeclareTextComposite{\accdasiavaria}{LGR}{\textupsilon}{207} -\DeclareTextComposite{\acctonos}{LGR}{\textupsilon}{212} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\textupsilon}{213} -\DeclareTextComposite{\accpsilioxia}{LGR}{\textupsilon}{214} -\DeclareTextComposite{\accpsilivaria}{LGR}{\textupsilon}{215} -\DeclareTextComposite{\accperispomeni}{LGR}{\textupsilon}{220} -\DeclareTextComposite{\accdasiaperispomeni}{LGR}{\textupsilon}{221} -\DeclareTextComposite{\accpsiliperispomeni}{LGR}{\textupsilon}{222} -\DeclareTextComposite{\accdialytika}{LGR}{\textupsilon}{244} -\DeclareTextComposite{\accdialytikavaria}{LGR}{\textupsilon}{245} -\DeclareTextComposite{\accdialytikatonos}{LGR}{\textupsilon}{246} -\DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\textupsilon}{247} -\DeclareTextComposite{\accvaria}{LGR}{\textepsilon}{224} -\DeclareTextComposite{\accdasia}{LGR}{\textepsilon}{225} -\DeclareTextComposite{\accpsili}{LGR}{\textepsilon}{226} -\DeclareTextComposite{\accdasiavaria}{LGR}{\textepsilon}{227} -\DeclareTextComposite{\acctonos}{LGR}{\textepsilon}{232} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\textepsilon}{233} -\DeclareTextComposite{\accpsilioxia}{LGR}{\textepsilon}{234} -\DeclareTextComposite{\accpsilivaria}{LGR}{\textepsilon}{235} -\DeclareTextComposite{\accvaria}{LGR}{\textomicron}{228} -\DeclareTextComposite{\accdasia}{LGR}{\textomicron}{229} -\DeclareTextComposite{\accpsili}{LGR}{\textomicron}{230} -\DeclareTextComposite{\accdasiavaria}{LGR}{\textomicron}{231} -\DeclareTextComposite{\acctonos}{LGR}{\textomicron}{236} -\DeclareTextComposite{\accdasiaoxia}{LGR}{\textomicron}{237} -\DeclareTextComposite{\accpsilioxia}{LGR}{\textomicron}{238} -\DeclareTextComposite{\accpsilivaria}{LGR}{\textomicron}{239} -\DeclareTextComposite{\accdasia}{LGR}{r}{251} -\DeclareTextComposite{\accpsili}{LGR}{r}{252} - - -% Capital letters with diacritics -% ''''''''''''''''''''''''''''''' -% -% In Greek, diacritics are omitted in all-uppercase words, but kept as part -% of an uppercase initial (written before rather than above the letter). -% -% The diaytika should also always be used in all-uppercase words (even -% in cases where they are not needed when writing in lowercase) -% -% -- http://en.wikipedia.org/wiki/Capitalization -% -% In Title Case, place diacritics before instead of above the base character:: - -\DeclareTextCompositeCommand{\accdasia}{LGR}{A}{A} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{A}{>`A} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{A}{>'A} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{A}{>\char126A} -\DeclareTextCompositeCommand{\acctonos}{LGR}{A}{'A} -\DeclareTextCompositeCommand{\accvaria}{LGR}{A}{`A} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{E}{E} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{E}{>'E} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{E}{>`E} -\DeclareTextCompositeCommand{\acctonos}{LGR}{E}{'E} -\DeclareTextCompositeCommand{\accvaria}{LGR}{E}{`E} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{H}{H} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{H}{>`H} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{H}{>'H} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{H}{>\char126H} -\DeclareTextCompositeCommand{\acctonos}{LGR}{H}{'H} -\DeclareTextCompositeCommand{\accvaria}{LGR}{H}{`H} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{I}{I} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{I}{>`I} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{I}{>'I} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{I}{>\char126I} -\DeclareTextCompositeCommand{\acctonos}{LGR}{I}{'I} -\DeclareTextCompositeCommand{\accvaria}{LGR}{I}{`I} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{O}{O} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{O}{>`O} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{O}{>'O} -\DeclareTextCompositeCommand{\acctonos}{LGR}{O}{'O} -\DeclareTextCompositeCommand{\accvaria}{LGR}{O}{`O} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{U}{W} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{W}{>`W} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{W}{>'W} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{W}{>\char126W} -\DeclareTextCompositeCommand{\acctonos}{LGR}{W}{'W} -\DeclareTextCompositeCommand{\accvaria}{LGR}{W}{`W} - -% Except for the dialytika:: - -\DeclareTextComposite{\accdialytika}{LGR}{I}{219} -\DeclareTextComposite{\accdialytika}{LGR}{U}{223} - -% Do the same for the LICR macros:: - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\textAlpha}{A} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textAlpha}{>`A} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textAlpha}{>'A} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textAlpha}{>\char126A} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\textAlpha}{'A} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textAlpha}{`A} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\textEpsilon}{E} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textEpsilon}{>'E} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textEpsilon}{>`E} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\textEpsilon}{'E} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textEpsilon}{`E} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\textEta}{H} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textEta}{>`H} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textEta}{>'H} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textEta}{>\char126H} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\textEta}{'H} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textEta}{`H} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\textIota}{I} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textIota}{>`I} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textIota}{>'I} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textIota}{>\char126I} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\textIota}{'I} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textIota}{`I} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\textOmicron}{O} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textOmicron}{>`O} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmicron}{>'O} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmicron}{'O} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmicron}{`O} - -\DeclareTextCompositeCommand{\accdasia}{LGR}{\textUpsilon}{W} -\DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\textOmega}{>`W} -\DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\textOmega}{>'W} -\DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\textOmega}{>\char126W} -\DeclareTextCompositeCommand{\acctonos}{LGR}{\textOmega}{'W} -\DeclareTextCompositeCommand{\accvaria}{LGR}{\textOmega}{`W} - -% Except for the dialytika:: - -\DeclareTextComposite{\accdialytika}{LGR}{\textIota}{219} -\DeclareTextComposite{\accdialytika}{LGR}{\textUpsilon}{223} - - -% UPPERCASE -% ~~~~~~~~~ -% -% @uclclist extension -% """"""""""""""""""" -% -% If UPPERCASE (all-caps) is generated with ``\MakeUppercase``, macro -% substitutions in the ``\@uclclist`` apply. This can be used to drop the -% diacritics (except dialytika). -% -% Based on the `babel patch`_ and ``fontenc.sty``. -% (The first two lines are TeX' way of writing ``uclclist += …``):: - -\expandafter\def\expandafter\@uclclist\expandafter{% - \@uclclist - \accdasia\acc@invisible - \accdasiaoxia\@hiatus - \accdasiavaria\acc@invisible - \accdasiaperispomeni\acc@invisible - \accpsili\@hiatus - \accpsilioxia\@hiatus - \accpsilivaria\@hiatus - \accpsiliperispomeni\acc@invisible - \acctonos\@hiatus - \accvaria\acc@invisible - \accdialytikatonos\acc@Dialytika - \accdialytikavaria\acc@Dialytika - \accdialytikaperispomeni\acc@Dialytika - \accperispomeni\acc@invisible - \ypogegrammeni\prosgegrammeni - % - \textalpha \textAlpha - \textbeta \textBeta - \textgamma \textGamma - \textdelta \textDelta - \textepsilon\textEpsilon - \textzeta \textZeta - \texteta \textEta - \texttheta \textTheta - \textiota \textIota - \textkappa \textKappa - \textlambda \textLambda - \textmu \textMu - \textnu \textNu - \textxi \textXi - \textomicron\textOmicron - \textpi \textPi - \textrho \textRho - \textvarsigma \textSigma - \textsigma \textSigma - \textautosigma \textSigma - \texttau \textTau - \textupsilon\textUpsilon - \textphi \textPhi - \textchi \textChi - \textpsi \textPsi - \textomega \textOmega - % - \qoppa \Qoppa - \varstigma \Stigma - \stigma \Stigma - \sampi \Sampi - \textdigamma \textDigamma -} - -% Substitution macros -% """"""""""""""""""" -% -% Drop diacritics -% ''''''''''''''' -% :: - -\DeclareTextCommand{\acc@invisible}{LGR}[1]{#1} - -% (The argument processing ensures that kerning is preserved) -% -% Keep dialytika. -% ''''''''''''''' -% -% Define a dummy alias so that downcasing with ``\MakeLowercase`` does not -% convert a simple dialytika to a composite accent:: - -\DeclareTextCommand{\acc@Dialytika}{LGR}{\accdialytika} - -\DeclareTextCompositeCommand{\accdialytika}{LGR}{\@hiatus}{\accdialytika} - -% .. TODO: MakeUppercase with ``\"'`` fails if the language is "greek". -% How can we specify a composite command with character ``"9F``, -% the uccode of ``'``? -% -% % \DeclareTextCompositeCommand{\acc@Dialytika}{LGR}{"9F}{\accdialytika} -% % \DeclareTextAccent{\acc@Dialytika}{LGR}{34} % upcase Dialytika -% % \DeclareTextCompositeCommand{\acc@Dialytika}{LGR}{\@hiatus}{\accdialytika} -% % \DeclareTextCompositeCommand{\acc@Dialytika}{LGR}{'}{\accdialytika} -% -% Mark hiatus -% ''''''''''' -% -% Tonos and dasia mark a hiatus if placed on the -% first vowel of a diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the -% second vowel if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ, -% ἀυπνία → ΑΫΠΝΙΑ):: - -\DeclareTextCommand{\@hiatus}{LGR}[1]{#1} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{>}{\@hiatus} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{<}{\acc@invisible} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{A}{\A@hiatus} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{\textAlpha}{\A@hiatus} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{E}{\E@hiatus} -\DeclareTextCompositeCommand{\@hiatus}{LGR}{\textEpsilon}{\E@hiatus} -% What does the \@hiatus command "see" if an unicode literal follows? -% \DeclareTextCompositeCommand{\@hiatus}{LGR}{\symbol{"ce}}{bluff} -% \DeclareTextCompositeCommand{\@hiatus}{LGR}{"cf}{blaff} -% \DeclareTextCompositeCommand{\@hiatus}{LGR}{ι}{blaff} - -% Look ahead and place a diaeresis on Ι or Υ:: - -\DeclareTextCommand{\A@hiatus}{LGR}{% - \LGR@ifnextchar{I}{A\"}{% - \LGR@ifnextchar{U}{A\"}{% - \LGR@ifnextchar{\textIota}{A\"}{% - \LGR@ifnextchar{\textUpsilon}{A\"}{A}% - }% - }% - }% -} -\DeclareTextCommand{\E@hiatus}{LGR}{% - \LGR@ifnextchar{I}{E\"}{% - \LGR@ifnextchar{U}{E\"}{% - \LGR@ifnextchar{\textIota}{E\"}{% - \LGR@ifnextchar{\textUpsilon}{E\"}{E}% - }% - }% - }% -} - -% As ``\@ifnextchar`` gobbles spaces the lookahead macro definition from -% ``amsgen.sty`` is used: -% -% This macro is a new version of LaTeX’s ``\@ifnextchar``, macro -% that does not skip over spaces. -% -% :: - -\ProvideTextCommand{\LGR@ifnextchar}{LGR}[3]{% -% \long\def\LGR@ifnextchar#1#2#3{% - \let\reserved@d= #1% - \def\reserved@a{#2}\def\reserved@b{#3}% - \futurelet\@let@token\LGR@ifnch -} -\ProvideTextCommand{\LGR@ifnch}{LGR}{% - \ifx\@let@token\reserved@d \let\reserved@b\reserved@a \fi - \reserved@b -} - -% Unfortunately, the lookahead breaks kerning. -% -% Alternatives tried: -% -% * CompositeCommands fail at the end of a macro, e.g. ``\emph{\'a}``:: - - %\DeclareTextCommand{\A@hiatus}{LGR}{A} - %\DeclareTextCommand{\E@hiatus}{LGR}{E} - - %\DeclareTextCompositeCommand{\A@hiatus}{LGR}{}{A} - %\DeclareTextCompositeCommand{\A@hiatus}{LGR}{I}{A\"I} - %\DeclareTextCompositeCommand{\A@hiatus}{LGR}{U}{A\"U} - - -% * The glyph No 12 is a special "Upcase Alpha" that in ligature with Y -% and I adds a diaresis to them. However, it seems that it has only -% kerning definitions for I and Y (as it is not intended for direct -% use):: - - %\DeclareTextComposite{\@hiatus}{LGR}{A}{12} - -% No such glyph exists for E but this is no problem as E does -% not require kerning anyway. -% % .. References % ---------- -% -% .. _Adobe Glyph List For New Fonts: -% http://www.adobe.com/devnet-archive/opentype/archives/aglfn.txt -% .. _Adobe Glyph List: -% http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt +% % .. _alphabeta: alphabeta.sty.html % .. _athnum: http://www.ctan.org/pkg/athnum % .. _Babel: http://www.ctan.org/pkg/babel -% .. _babel patch: http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf % .. _fntguide: http://mirror.ctan.org/macros/latex/doc/fntguide.pdf % .. _fontenc: http://www.ctan.org/pkg/fontenc +% .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc % .. _hyperref: http://www.ctan.org/pkg/hyperref -% .. _ibycus: http://www.ctan.org/pkg/ibycus-babel % .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt % .. _lgrx: http://www.ctan.org/pkg/lgrx % .. _libertine: http://www.ctan.org/pkg/libertine-legacy % .. _teubner: http://www.ctan.org/pkg/teubner -% .. _teubner-doc: -% http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf % .. _textalpha: textalpha.sty.html % .. _ucs: http://www.ctan.org/pkg/unicode -% .. _Unicode names list: http://www.unicode.org/Public/UNIDATA/NamesList.txt -% .. _XML Entity Definitions for Characters: -% http://www.w3.org/TR/xml-entity-names/ diff --git a/Master/texmf-dist/tex/latex/lgrx/textalpha.sty b/Master/texmf-dist/tex/latex/lgrx/textalpha.sty index be762209959..11d8a1f5dc2 100644 --- a/Master/texmf-dist/tex/latex/lgrx/textalpha.sty +++ b/Master/texmf-dist/tex/latex/lgrx/textalpha.sty @@ -1,88 +1,82 @@ % textalpha: Greek symbols in text % ******************************** -% +% % :Copyright: © 2010 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. -% +% % :Abstract: Provide a set of ``\text*`` macros for Greek letters % outside math. -% +% % :Identification: % :: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{textalpha} -[2013/05/03 v0.3 macros for Greek letters in text] +[2013/05/28 v0.4 macros for Greek letters in text] % This package is part of the lgrx_ bundle. -% +% % .. note:: -% +% % The package was renamed from `textgreek` to `textalpha` to prevent % confusion with the textgreek_ package by Leonard Michlmayr. -% -% +% +% % Changelog: % .. class:: borderless -% +% % ========== ===== ========================================================= % 2010-06-16 0.1 initial version % 2012-06-27 0.2 support for compound Unicode definitions outside LGR -% 2013-05-03 0.3 new accent macro names with lgrxenc.def 0.7 +% 2013-05-03 0.3 new accent macro names with ``lgrxenc.def`` 0.7 +% 2013-05-28 0.4 use ``lgrenc.def`` from greek-fontenc % ========== ===== ========================================================= -% +% % Motivation % ========== -% -% By default, TeX macros for Greek letters -% -% * are only valid in mathematical mode, -% * do not change shape (default shape is italic). -% -% In Greek text fonts with the LGR font encoding, letters are accessible by a -% Latin transcription or, with lgrx_, ``\textalpha`` -- ``\textOmega`` -% LICR macros. -% -% This package declares the LGR font encoding as default for Greek LICR -% macros. After loading it, symbols from a Greek text font (e.g. the `CB -% fonts`_) can be accessed without the need for an explicite font-encoding -% switch. -% +% +% By default, TeX macros for Greek letters are only valid in mathematical +% mode. This package declares the LGR font encoding as default for Greek LICR +% macros (``\textalpha`` -- ``\textOmega``). +% +% * 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. +% % * In combination with the ``\text`` macro from amsmath, this can be used to % get matching upright and bold upright Greek symbols in math mode. -% -% * In combination with ``\usepackage[utf8]{inputenc}`` and the accompanying -% ``lgrenc.dfu`` file, Unicode input of Greek characters is supported. -% +% % Attention -% While the font-encoding independent macros work reasonably well for single -% symbols, the automatic font-encoding switches behind the doors interferes -% with the kerning between letters and replacement of accent+character -% with a pre-composed character. -% -% Therefore, Greek text should be written with the help of babel_, setting -% the language to either ``greek`` or ``polutonikogreek`` or wrapped in the -% provided ``\ensuregreek`` macro. -% +% The macros work well in any font encoding for single symbols. +% +% However, 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_, setting the language to ``greek`` or wrapped in the +% provided ensuregreek_ macro. +% % The package uses NFSS default definitions as explained in the fntguide_ % (section 5.3). -% -% +% +% % Implementation % ============== -% +% % Requirements % ------------ -% -% This package requires the extended font encoding definitions :: +% +% This package requires the font encoding definitions from greek-fontenc_:: -\input{lgrxenc.def} +\input{lgrenc.def} % ensuregreek % ----------- -% +% % 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:: @@ -90,37 +84,32 @@ \DeclareTextCommandDefault{\ensuregreek}[1]{{\fontencoding{LGR}\selectfont #1}} % .. The [fntguide_] writes -% +% % Note that ``\DeclareTextAccentDefault`` can be used on any % one-argument encoding-specific command, not just those defined with % ``\DeclareTextAccent``. -% +% % However, the simpler alternative % ``\DeclareTextAccentDefault{\ensuregreek}{LGR}`` fails with the table of % Unicode characters in the test document ``__: -% +% % ``! You can't use a prefix with `end-group character }'.`` -% +% % Eventually, all font encodings supporting Greek script (e.g. LGI, PU, EU1, % EU2) will declare ``\ensuregreek`` as text command that passes the argument % unchanged. This way, kerning and selection of precomposed glyphs would work % also for cases like ``\ensuregreek{\'A}U``. -% +% % .. Do this for PU here? ``\DeclareTextCommand{\ensuregreek}{PU}[1]{#1}`` -% +% % Can lead to infinite recursion (``TeX capacity exeeded``) without the % ``unicode=true`` hyperref option. % (How about a test whether the PU font encoding is defined?). -% -% Backwards compatibility definition: versions < 0.3 used the macro -% name ``\TextGreek``:: - -\DeclareTextCommandDefault{\TextGreek}[1]{{\fontencoding{LGR}\selectfont #1}} - - +% +% % Greek Alphabet % -------------- -% +% % Define the ``text*`` marcos as default for all font encodings:: \DeclareTextSymbolDefault{\textAlpha}{LGR} @@ -178,56 +167,47 @@ % Additional Greek symbols % """""""""""""""""""""""" -% -% Including alias names for compatibility with hyperref's puenc.def and babel's -% greek.ldf. -% +% +% Including alias names for compatibility with hyperref's puenc.def. +% % Ancient Greek Numbers (Athenian Numerals):: -\DeclareTextSymbolDefault{\PiDelta}{LGR} % GREEK ACROPHONIC ATTIC FIFTY -\DeclareTextSymbolDefault{\PiEta}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED -\DeclareTextSymbolDefault{\PiChi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -\DeclareTextSymbolDefault{\PiMu}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -% \DeclareTextSymbolDefault{\pentedeka}{LGR} % GREEK ACROPHONIC ATTIC FIFTY -% \DeclareTextSymbolDefault{\pentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED -% \DeclareTextSymbolDefault{\penteqilioi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND -% \DeclareTextSymbolDefault{\pentemurioi}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND +\DeclareTextSymbolDefault{\textpentedeka}{LGR} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareTextSymbolDefault{\textpentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareTextSymbolDefault{\textpenteqilioi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareTextSymbolDefault{\textpentemurioi}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND + +% Archaic letters:: -\DeclareTextSymbolDefault{\stigma}{LGR} % ϛ +\DeclareTextSymbolDefault{\textstigma}{LGR} % ϛ \DeclareTextSymbolDefault{\textstigmagreek}{LGR} % ϛ (puenc.def) -\DeclareTextSymbolDefault{\varstigma}{LGR} % stigma variant (CB.enc, teubner) -% \DeclareTextSymbolDefault{\vardigamma}{LGR} % digamma variant (greek.ldf) -\DeclareTextSymbolDefault{\koppa}{LGR} % ϟ (greek small letter koppa) +\DeclareTextSymbolDefault{\textvarstigma}{LGR} % stigma variant +\DeclareTextSymbolDefault{\textkoppa}{LGR} % ϟ (greek small letter koppa) \DeclareTextSymbolDefault{\textkoppagreek}{LGR} % ϟ (puenc.def) -\DeclareTextSymbolDefault{\qoppa}{LGR} % ϙ (archaic koppa) -\DeclareTextSymbolDefault{\Qoppa}{LGR} % Ϙ (archaic Koppa) -\DeclareTextSymbolDefault{\Stigma}{LGR} % ϹΤ ligature (teubner) -\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % ϹΤ ligature (puenc.def) -\DeclareTextSymbolDefault{\Sampi}{LGR} % Ϡ +\DeclareTextSymbolDefault{\textqoppa}{LGR} % ϙ (archaic koppa) +\DeclareTextSymbolDefault{\textQoppa}{LGR} % Ϙ (archaic Koppa) +\DeclareTextSymbolDefault{\textStigma}{LGR} % Ϛ ϹΤ ligature in some fonts +\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % Ϛ (puenc.def) +\DeclareTextSymbolDefault{\textSampi}{LGR} % Ϡ \DeclareTextSymbolDefault{\textSampigreek}{LGR} % Ϡ (puenc.def) -\DeclareTextSymbolDefault{\sampi}{LGR} % ϡ +\DeclareTextSymbolDefault{\textsampi}{LGR} % ϡ \DeclareTextSymbolDefault{\textsampigreek}{LGR} % ϡ (puenc.def) -\DeclareTextSymbolDefault{\anoteleia}{LGR} % · -\DeclareTextSymbolDefault{\erotimatiko}{LGR} % ; -% \digamma used by amsmath! -\DeclareTextSymbolDefault{\textdigamma}{LGR} % ϝ (LGRx) -\DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ -\DeclareTextSymbolDefault{\ddigamma}{LGR} % ϝ (greek.ldf) -\DeclareTextSymbolDefault{\Digamma}{LGR} % Ϝ +\DeclareTextSymbolDefault{\textanoteleia}{LGR} % · +\DeclareTextSymbolDefault{\texterotimatiko}{LGR} % ; (003B is the preferred character) +\DeclareTextSymbolDefault{\textdigamma}{LGR} % ϝ +\DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ \DeclareTextSymbolDefault{\textdigammagreek}{LGR} % ϝ (puenc.def) \DeclareTextSymbolDefault{\textDigammagreek}{LGR} % Ϝ (puenc.def) -% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals -\DeclareTextSymbolDefault{\anwtonos}{LGR} % ʹ (Dexia keraia) -\DeclareTextSymbolDefault{\katwtonos}{LGR} % ͵ (Aristeri keraia) +% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals :: + \DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def) \DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def) % Diacritics % ---------- -% -% Diacritics are defined via "named" macros in ``lgrxenc.def``. Make them -% default in any encoding:: +% +% Greek diacritics via "named" macros:: \DeclareTextAccentDefault{\accdasia}{LGR} \DeclareTextAccentDefault{\accpsili}{LGR} @@ -255,39 +235,20 @@ % Auxiliary macros % ---------------- -% +% % ``\MakeUppercase`` requires two internal commands:: -\DeclareTextAccentDefault{\@hiatus}{LGR} -\DeclareTextAccentDefault{\@Dialytika}{LGR} - -% Backwards compatibility with LGRx versions < 0.7:: - -\DeclareTextSymbolDefault{\Ypogegrammeni}{LGR} -\DeclareTextSymbolDefault{\Prosgegrammeni}{LGR} -\DeclareTextAccentDefault{\Dasia}{LGR} -\DeclareTextAccentDefault{\Psili}{LGR} -\DeclareTextAccentDefault{\Tonos}{LGR} -\DeclareTextAccentDefault{\Varia}{LGR} -\DeclareTextAccentDefault{\Perispomeni}{LGR} -\DeclareTextAccentDefault{\Dialytika}{LGR} - -\DeclareTextAccentDefault{\DialytikaPerispomeni}{LGR} -\DeclareTextAccentDefault{\DialytikaTonos}{LGR} -\DeclareTextAccentDefault{\DialytikaVaria}{LGR} -\DeclareTextAccentDefault{\DasiaPerispomeni}{LGR} -\DeclareTextAccentDefault{\DasiaVaria}{LGR} -\DeclareTextAccentDefault{\DasiaOxia}{LGR} -\DeclareTextAccentDefault{\PsiliPerispomeni}{LGR} -\DeclareTextAccentDefault{\PsiliOxia}{LGR} -\DeclareTextAccentDefault{\PsiliVaria}{LGR} +\DeclareTextAccentDefault{\LGR@hiatus}{LGR} +\DeclareTextAccentDefault{\LGR@Dialytika}{LGR} % .. References % ---------- % .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt -% .. _lgrx: http://www.ctan.org/pkg/lgrx -% .. _textgreek: http://www.ctan.org/pkg/textgreek +% .. _CB fonts: http://www.ctan.org/pkg/cbgreek-complete % .. _babel: http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel % .. _fntguide: http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf -% .. _CB fonts: http://www.ctan.org/pkg/cbgreek-complete +% .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc +% .. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc +% .. _lgrx: http://www.ctan.org/pkg/lgrx +% .. _textgreek: http://www.ctan.org/pkg/textgreek -- cgit v1.2.3