summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-03-04 21:09:20 +0000
committerKarl Berry <karl@freefriends.org>2023-03-04 21:09:20 +0000
commitec142bccfefd46708d42e2431f91e47cfb92e99a (patch)
tree048c6baeb7d75df07bb5048192db70a9a24a49ea /Master/texmf-dist/doc/generic
parent3a00abb8ff4e1a4cffd27b79441a3f7e1b1f5578 (diff)
babel-greek (4mar23)
git-svn-id: svn://tug.org/texlive/trunk@66346 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic')
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/README253
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/README.html1136
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/README.md35
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/athnum.pdfbin176656 -> 176139 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.html1387
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.rst414
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdfbin255669 -> 544962 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/grmath.pdfbin120534 -> 120493 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.pdfbin188008 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.tex422
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-athnum.pdfbin0 -> 174634 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-athnum.tex70
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-case-changing.tex1048
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greek-8bitcompat.tex37
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greek-ini.tex60
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greek-lgr.pdfbin153395 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greek-tu.pdfbin51599 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greek.pdfbin0 -> 428667 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greek.tex793
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greeknum.tex131
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.pdfbin44372 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.tex236
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-lgr-fixes.tex189
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.pdfbin43239 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.tex264
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/usage.pdfbin176463 -> 184955 bytes
-rw-r--r--Master/texmf-dist/doc/generic/babel-greek/usage.tex216
27 files changed, 4108 insertions, 2583 deletions
diff --git a/Master/texmf-dist/doc/generic/babel-greek/README b/Master/texmf-dist/doc/generic/babel-greek/README
deleted file mode 100644
index 45ecf8f1d11..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/README
+++ /dev/null
@@ -1,253 +0,0 @@
-babel-greek
-***********
-Babel support for the Greek language and script
-===============================================
-
-:Copyright: © 1997 Apostolos Syropoulos, Claudio Beccari, Johannes Brahms,
- © 2013 -- 2020 Günter Milde.
-:Licence: This work may be distributed and/or modified under the
- conditions of the `LaTeX Project Public License`_, either
- version 1.3 of this license or any later version.
-
-:Abstract: Babel-greek is a contributed package providing support for the
- Greek language and script via the Babel_ system.
-
- The file ``greek.ldf`` provides options for the monotonic
- (single-diacritic), polytonic (multiple-diacritic) and ancient
- orthography of the Greek language.
-
- Since 2013-07-19, babel-greek supports also Unicode-aware TeX
- engines (XeTeX/LuaTeX).
-
-News
-----
-
-.. class:: borderless
-
-===== ============ ============================================================
-1.4 2013-05-17 New maintainer.
-.. The encoding definition file ``lgrenc.def`` moved to the
- greek-fontenc_ package.
-
-1.5 2013-06-21 bugfixes and cleanup,
-.. LICR macros in string definitions,
-.. LGR font encoding not used with XeTeX/LuaTeX,
-.. input "xgreek-fixes.def" from polyglossia_ with Xe/LuaTeX.
-1.5a 2013-07-02 Fix LaTeX bugs babel/3707, `babel/4303`_ and `babel/4305`_
-1.6 2013-07-19 Experimental support for XeTeX/LuaTeX.
-1.7 2013-09-09 CB-Fonts font definition files moved to CB-Fonts package.
-.. Do not auto-load euenc.def with XeTeX/LuaTeX.
-1.7a 2013-09-13 Fix bug `babel/4360`_: spurious ``\fi``.
-1.7b 2013-10-01 bugfix: correct upcasing of babel strings with Xe/LuaTeX.
-1.8 2013-12-02 Rename ``greek.dtx`` to ``babel-greek`` so that texdoc_
- shows the right documentation.
-.. Compatibility with Xe/LuaTeX in Unicode and 8-bit mode.
-1.8a 2013-12-03 Set ``\encodingdefault`` in ``\greekscript`` to fix
- Greek in footnotes etc. with document language Greek.
-1.9 2014-07-20 Added attribute for ancient Greek, load correct hyphenation
- patterns: Patch by Claudio Beccari. Bugfix for Makeuppercase
-1.9a 2014-09-12 Remove duplicate code, documentation review.
-1.9b 2014-09-18 Remove spurious whitespace from "extrasgreek" definition.
-.. Use named macros instead of non-standard short macros
- for psili and dasia in the string definitions.
-1.9c 2014-10-21 Fix dummy hyphenation language names (patch Ulrike Fischer).
-1.9d 2015-09-04 Remove `grsymb` (macros for Greek symbols).
- This package is outdated and obsoleted by greek-fontenc_
- (reported by Claudio Beccari).
-.. Unicode uc/lc corrections now in greek-fontenc.
-1.9e 2015-11-27 Fix bug in lccode-setting loop (patch by Enrico Gregorio).
-1.9f 2016-02-04 Support for new standard Unicode text font encoding "TU".
-1.9g 2016-09-07 Babel 3.9i deprecated ``\textlatin``
- and fixed ``\latinencoding``.
-1.9h 2019-07-11 Move breathing composite commands to textalpha_.
-1.9i 2020-02-28 Update test for Unicode fonts.
- Fix accent in ``\seename`` and ``\alsoname``.
-1.9j 2020-03-17 Fix ampersand in math mode.
-1.10 2020-11-10 Use ``TU`` as ``\greekfontencoding`` for Xe/LuaTeX
- (set by LaTeX as `default font encoding for Unicode
- engines`_ since 2017/01/01).
-.. Use zig-zagy ``\textkoppa`` for ``\greeknumeral{90}``.
-.. PDF-string secure implementation of ``\greeknumeral``
- from hyperref_.
-.. Load ``puenc-greek.def`` (from greek-fontenc_)
- if used with hyperref (polytonic Greek in PDF-strings).
-===== ============ ============================================================
-
-
-.. _babel/4303: http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4303
-.. _babel/4305: http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4305
-.. _babel/4360: http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4360
-
-Files
------
-
-`<babel-greek.dtx>`_; `<babel-greek.pdf>`_
- Source of the language definition file ``greek.ldf`` for use with Babel_.
-`<athnum.dtx>`_; `<athnum.pdf>`_
- Athenian Numerals.
-`<grmath.dtx>`_; `<grmath.pdf>`_
- Greek log-like Operators.
-`<babel-greek.ins>`_
- DocStrip_ batch file.
-`<test-greek.tex>`_ `<test-greek-lgr.pdf>`_ `<test-greek-tu.pdf>`_
- Test Babel-Greek features.
-`<test-8bit-greek.tex>`_ `<test-8bit-greek.pdf>`_
- Additional tests and examples for 8-bit TeX.
-`<test-tu-lgr.tex>`_ `<test-tu-lgr.pdf>`_
- Tests and Examples for XeTeX/LuaTeX with LGR 8-bit fonts.
-`<usage.tex>`_ `<usage.pdf>`_
- Description of the `LGR Latin transliteration`_.
-
-
-Requirements
-------------
-
-The "babel-greek" package requires the babel_ base package and font
-definition files from the greek-fontenc_ package. The greek-inputenc_
-package is recommended when using 8-bit TeX engines.
-
-Typesetting Greek texts requires `Greek text fonts`_.
-
-Plain TeX is currently not supported. Patches are welcome.
-
-
-Installation
-------------
-
-If possible, get this package from your distribution using its installation
-manager.
-
-Otherwise, make sure LaTeX can find the required files:
-
-* Download and unpack `babel-greek.zip`.
-
-* Run ``tex`` or ``latex`` on the batch file ``babel-greek.ins``.
-
- This will generate the files ``greek.ldf``, ``athnum.sty``, and
- ``grmath.sty`` in the current directory. [#]_
-
-* Move all files ending in ``.ldf`` or ``.sty`` into a directory searched by
- TeX.
-
-* To produce the documentation, run the file ``usage.tex`` and all files
- ending in ``.dtx`` through LaTeX.
-
-.. [#] If these files already exist somewhere in the TeX-path, you will be
- warned that they might be overwritten. You can ignore this
- warning and answer `y` unless the *current directory* contains versions
- of these files you want to keep.
-
- This is done by docstrip_. Try ``texdoc docstrip`` for details.
-
-Usage
------
-
-Use the "greek" document option or pass the "greek" option to babel::
-
- \usepackage[greek]{babel}
-
-For polytonic Greek, set the language attribute "polutoniko"::
-
- \usepackage[greek]{babel}
- \languageattribute{greek}{polutoniko}
-
-or ::
-
- \usepackage[greek.polutoniko,english]{babel}
-
-Similarly, the attribute "ancient" selects the ancient Greek language
-variant.
-
-For details see `<babel-greek.pdf>`_ and the babel_ documentation.
-
-Input of Greek characters is possible as literal characters (with the
-greek-inputenc_ package or with XeTeX or LuaTeX) or the `LGR Latin
-transliteration`_. See `<usage.pdf>`_ and the example files provided with
-greek-fontenc_.
-
-Greek text fonts
-----------------
-
-A list of Greek text fonts for use with LaTeX is available at the CTAN
-http://www.ctan.org/topic/font-greek
-
-With the XeTeX or LuaTeX engines, the user should ensure that the chosen
-font contains the required glyphs: the default Latin Modern fonts miss
-them. Warnings about missing charcters are only written to the log
-file, not the console output! Select a suitable font with fontspec_.
-
-Examples for suitable fonts are the CM-unicode_ or the `Linux
-Libertine`_ OpenType fonts as well as any system-wide installed OTF fonts
-that support Greek (e.g. `Deja Vu`_).
-
-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.
-
-LGR Latin Transliteration
--------------------------
-
-The LGR font encoding allows input of Greek characters via an ASCII
-transliteration. This enables simple input with a Latin keyboard. Characters
-with diacritics may be selected with accent macros (cf. greek-fontenc_) or
-via the ligature definitions in the font (see `<usage.pdf>`_).
-
-The following ASCII characters are converted to Greek symbols:
-
-= = = = = = = = = = = = = = = = = = = = = = = = =
-A B G D E Z H J I K L M N X O P R S T U F Q Y W
-Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
-- - - - - - - - - - - - - - - - - - - - - - - - -
-- - - - - - - - - - - - - - - - - - - - - - - - -
-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
-α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω
-= = = = = = = = = = = = = = = = = = = = = = = = =
-
-Accent symbols and punctuation:
-
-================= ====== == ====================== ======== ====
-tonos ``'a`` ά semicolon ``;`` ·
-varia \`a ὰ question mark ``?`` ;
-perispomeni ``~a`` ᾶ left apostrophe \` \` ‘
-dasia ``<a`` ἁ right apostrophe ``''`` ’
-psili ``>a`` ἀ left quotation mark ``((`` «
-ypogegrammeni ``a|`` ᾳ right quotation mark ``))`` »
-dialytika ``"i`` ϊ zero width non-joiner v
-================= ====== == ====================== ======== ====
-
-A major drawback of the LGR transliteration is that you cannot access Latin
-letters and some symbols if LGR is the active font encoding (e.g. in
-documents or parts of documents given the `Babel` language ``greek``). This
-means that for every Latin-written word or acronym an explicit
-language-switch is required. This problem can only be solved via a
-font-encoding comprising both Latin and Greek like the hypothetical T7 or
-Unicode (with XeTeX or LuaTeX).
-
-.. References
- ----------
-
-.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt
-.. _babel: http://www.ctan.org/pkg/babel
-.. _docstrip: http://www.ctan.org/pkg/docstrip
-.. _font encoding: http://mirror.ctan.org/macros/latex/base/encguide.pdf
-.. _fontspec: http://www.ctan.org/pkg/fontspec
-.. _fontenc: http://www.ctan.org/pkg/fontenc
-.. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete
-.. _CM-unicode: http://www.ctan.org/pkg/cm-unicode
-.. _Deja Vu: http://dejavu-fonts.org
-.. _e-TeX: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex
-.. _grtimes: http://www.ctan.org/pkg/grtimes
-.. _hyperref: http://www.ctan.org/pkg/hyperref
-.. _textalpha:
-.. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc
-.. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc
-.. _GFS font collection: http://www.ctan.org/pkg/gfs
-.. _Kerkis: http://www.ctan.org/pkg/kerkis
-.. _Linux Libertine: http://www.ctan.org/pkg/libertine
-.. _polyglossia: http://www.ctan.org/pkg/polyglossia
-.. _substitutefont: http://www.ctan.org/pkg/substitutefont
-.. _texdoc: http://www.ctan.org/pkg/texdoc
-.. _default font encoding for Unicode engines:
- https://www.latex-project.org/news/latex2e-news/ltnews26.pdf
diff --git a/Master/texmf-dist/doc/generic/babel-greek/README.html b/Master/texmf-dist/doc/generic/babel-greek/README.html
deleted file mode 100644
index 5b098647b31..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/README.html
+++ /dev/null
@@ -1,1136 +0,0 @@
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta charset="utf-8"/>
-<meta name="generator" content="Docutils 0.17b.dev: http://docutils.sourceforge.net/" />
-<title>babel-greek</title>
-<meta name="dcterms.rights" content="© 1997 Apostolos Syropoulos, Claudio Beccari, Johannes Brahms, © 2013 – 2020 Günter Milde." />
-<link rel="schema.dcterms" href="http://purl.org/dc/terms/"/>
-<style type="text/css">
-
-/* Minimal style sheet for the HTML output of Docutils. */
-/* */
-/* :Author: Günter Milde, based on html4css1.css by David Goodger */
-/* :Id: $Id$ */
-/* :Copyright: © 2015 Günter Milde. */
-/* :License: Released under the terms of the `2-Clause BSD license`_, */
-/* in short: */
-/* */
-/* Copying and distribution of this file, with or without modification, */
-/* are permitted in any medium without royalty provided the copyright */
-/* notice and this notice are preserved. */
-/* */
-/* This file is offered as-is, without any warranty. */
-/* */
-/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
-
-/* This CSS2.1_ stylesheet defines rules for Docutils elements without */
-/* HTML equivalent. It is required to make the document semantic visible. */
-/* */
-/* .. _CSS2.1: http://www.w3.org/TR/CSS2 */
-/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */
-
-/* alignment of text and inline objects inside block objects*/
-.align-left { text-align: left; }
-.align-right { text-align: right; }
-.align-center { clear: both; text-align: center; }
-.align-top { vertical-align: top; }
-.align-middle { vertical-align: middle; }
-.align-bottom { vertical-align: bottom; }
-
-/* titles */
-h1.title, p.subtitle {
- text-align: center;
-}
-p.topic-title,
-p.sidebar-title,
-p.rubric,
-p.admonition-title,
-p.system-message-title {
- font-weight: bold;
-}
-h1 + p.subtitle,
-h2 + p.section-subtitle {
- font-size: 1.6em;
-}
-h3 + p.section-subtitle {
- font-size: 1.28em;
-}
-p.subtitle,
-p.section-subtitle,
-p.sidebar-subtitle {
- font-weight: bold;
- margin-top: -0.5em;
-}
-p.sidebar-title {
- font-size: larger;
-}
-p.rubric {
- font-size: larger;
- color: maroon;
-}
-a.toc-backref {
- color: black;
- text-decoration: none; }
-
-/* Warnings, Errors */
-div.system-messages h2,
-span.problematic,
-p.system-message-title {
- color: red;
-}
-
-/* inline literals */
-span.docutils.literal {
- font-family: monospace;
- white-space: pre-wrap;
-}
-/* do not wraph at hyphens and similar: */
-.literal > span.pre { white-space: nowrap; }
-
-/* Lists */
-
-/* compact and simple lists: no margin between items */
-.simple li, .compact li,
-.simple ul, .compact ul,
-.simple ol, .compact ol,
-.simple > li p, .compact > li p,
-dl.simple > dd, dl.compact > dd {
- margin-top: 0;
- margin-bottom: 0;
-}
-
-/* Table of Contents */
-div.topic.contents { margin: 0.5em 0; }
-div.topic.contents ul {
- list-style-type: none;
- padding-left: 1.5em;
-}
-
-/* Enumerated Lists */
-ol.arabic { list-style: decimal }
-ol.loweralpha { list-style: lower-alpha }
-ol.upperalpha { list-style: upper-alpha }
-ol.lowerroman { list-style: lower-roman }
-ol.upperroman { list-style: upper-roman }
-
-dt span.classifier { font-style: italic }
-dt span.classifier:before {
- font-style: normal;
- margin: 0.5em;
- content: ":";
-}
-
-/* Field Lists and drivatives */
-/* bold field name, content starts on the same line */
-dl.field-list > dt,
-dl.option-list > dt,
-dl.docinfo > dt,
-dl.footnote > dt,
-dl.citation > dt {
- font-weight: bold;
- clear: left;
- float: left;
- margin: 0;
- padding: 0;
- padding-right: 0.5em;
-}
-/* Offset for field content (corresponds to the --field-name-limit option) */
-dl.field-list > dd,
-dl.option-list > dd,
-dl.docinfo > dd {
- margin-left: 9em; /* ca. 14 chars in the test examples */
-}
-/* start field-body on a new line after long field names */
-dl.field-list > dd > *:first-child,
-dl.option-list > dd > *:first-child
-{
- display: inline-block;
- width: 100%;
- margin: 0;
-}
-/* field names followed by a colon */
-dl.field-list > dt:after,
-dl.docinfo > dt:after {
- content: ":";
-}
-
-/* Bibliographic Fields (docinfo) */
-pre.address { font: inherit; }
-dd.authors > p { margin: 0; }
-
-/* Option Lists */
-dl.option-list { margin-left: 1.5em; }
-dl.option-list > dt { font-weight: normal; }
-span.option { white-space: nowrap; }
-
-/* Footnotes and Citations */
-dl.footnote.superscript > dd {margin-left: 1em; }
-dl.footnote.brackets > dd {margin-left: 2em; }
-dl > dt.label { font-weight: normal; }
-a.footnote-reference.brackets:before,
-dt.label > span.brackets:before { content: "["; }
-a.footnote-reference.brackets:after,
-dt.label > span.brackets:after { content: "]"; }
-a.footnote-reference.superscript,
-dl.footnote.superscript > dt.label {
- vertical-align: super;
- font-size: smaller;
-}
-dt.label > span.fn-backref { margin-left: 0.2em; }
-dt.label > span.fn-backref > a { font-style: italic; }
-
-/* Line Blocks */
-div.line-block { display: block; }
-div.line-block div.line-block {
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 40px;
-}
-
-/* Figures, Images, and Tables */
-.figure.align-left,
-figure.align-left,
-img.align-left,
-object.align-left,
-table.align-left {
- margin-right: auto;
-}
-.figure.align-center,
-figure.align-center,
-img.align-center,
-object.align-center,
-table.align-center {
- margin-left: auto;
- margin-right: auto;
-}
-.figure.align-right,
-figure.align-right,
-img.align-right,
-object.align-right,
-table.align-right {
- margin-left: auto;
-}
-img.align-center, img.align-right,
-object.align-center, object.align-right {
- display: block;
-}
-/* reset inner alignment in figures and tables */
-.figure.align-left, .figure.align-right,
-figure.align-left, figure.align-right,
-table.align-left, table.align-center, table.align-right {
- text-align: inherit;
-}
-
-/* Sidebar */
-aside.sidebar {
- width: 30%;
- max-width: 26em;
- float: right;
- clear: right;
-}
-
-/* Text Blocks */
-blockquote,
-div.topic,
-div.admonition,
-div.system-message,
-pre.literal-block,
-pre.doctest-block,
-pre.math,
-pre.code {
- margin-left: 1.5em;
- margin-right: 1.5em;
-}
-pre.code .ln { color: gray; } /* line numbers */
-
-/* Tables */
-table { border-collapse: collapse; }
-td, th {
- border-style: solid;
- border-color: silver;
- padding: 0 1ex;
- border-width: thin;
-}
-td > p:first-child, th > p:first-child { margin-top: 0; }
-td > p, th > p { margin-bottom: 0; }
-
-table > caption {
- text-align: left;
- margin-bottom: 0.25em
-}
-
-table.borderless td, table.borderless th {
- border: 0;
- padding: 0;
- padding-right: 0.5em /* separate table cells */
-}
-
-/* Document Header and Footer */
-header { border-bottom: 1px solid black; }
-footer { border-top: 1px solid black; }
-
-/* new HTML5 block elements: set display for older browsers */
-header, section, footer, aside, nav, main, article, figure {
- display: block;
-}
-
-</style>
-<style type="text/css">
-
-/* CSS31_ style sheet for the output of Docutils HTML writers. */
-/* Rules for easy reading and pre-defined style variants. */
-/* */
-/* :Author: Günter Milde, based on html4css1.css by David Goodger */
-/* :Id: $Id$ */
-/* :Copyright: © 2015 Günter Milde. */
-/* :License: Released under the terms of the `2-Clause BSD license`_, */
-/* in short: */
-/* */
-/* Copying and distribution of this file, with or without modification, */
-/* are permitted in any medium without royalty provided the copyright */
-/* notice and this notice are preserved. */
-/* */
-/* This file is offered as-is, without any warranty. */
-/* */
-/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
-/* .. _CSS3: http://www.w3.org/TR/CSS3 */
-
-
-/* Document Structure */
-/* ****************** */
-
-/* "page layout" */
-body {
- margin: 0;
- background-color: #dbdbdb;
-}
-div.document,
-main {
- line-height:1.3;
- counter-reset: table figure;
- /* avoid long lines --> better reading */
- /* optimum is 45…75 characters/line <http://webtypography.net/2.1.2> */
- /* OTOH: lines should not be too short because of missing hyphenation, */
- max-width: 50em;
- padding: 1px 2%; /* 1px on top avoids grey bar above title (mozilla) */
- margin: auto;
- background-color: white;
-}
-
-/* Sections */
-
-/* Transitions */
-
-hr.docutils {
- width: 80%;
- margin-top: 1em;
- margin-bottom: 1em;
- clear: both;
-}
-
-/* Paragraphs */
-/* ========== */
-
-/* vertical space (parskip) */
-p, ol, ul, dl, li, dd,
-div.line-block,
-div.topic,
-table {
- margin-top: 0.5em;
- margin-bottom: 0.5em;
-}
-p:first-child { margin-top: 0; }
-/* (:last-child is new in CSS 3) */
-p:last-child { margin-bottom: 0; }
-
-h1, h2, h3, h4, h5, h6,
-dl > dd {
- margin-bottom: 0.5em;
-}
-
-/* Lists */
-/* ===== */
-
-/* Separate list entries in compound lists */
-dl > dd, ol > li,
-
-/* Definition Lists */
-/* Indent lists nested in definition lists */
-/* (:only-child is new in CSS 3) */
-dd > ul:only-child, dd > ol:only-child { padding-left: 1em; }
-
-/* Description Lists */
-/* styled like in most dictionaries, encyclopedias etc. */
-dl.description > dt {
- font-weight: bold;
- clear: left;
- float: left;
- margin: 0;
- padding: 0;
- padding-right: 0.5em;
-}
-
-/* Field Lists */
-
-/* example for custom field-name width */
-dl.field-list.narrow > dd {
- margin-left: 5em;
-}
-/* run-in: start field-body on same line after long field names */
-dl.field-list.run-in > dd p {
- display: block;
-}
-
-/* Bibliographic Fields */
-
-/* generally, bibliographic fields use special definition list dl.docinfo */
-/* but dedication and abstract are placed into "topic" divs */
-div.abstract p.topic-title {
- text-align: center;
-}
-div.dedication {
- margin: 2em 5em;
- text-align: center;
- font-style: italic;
-}
-div.dedication p.topic-title {
- font-style: normal;
-}
-
-/* Citations */
-dl.citation dt.label {
- font-weight: bold;
-}
-span.fn-backref {
- font-weight: normal;
-}
-
-/* Text Blocks */
-/* =========== */
-
-/* Literal Blocks */
-
-pre.literal-block,
-pre.doctest-block,
-pre.math,
-pre.code {
- font-family: monospace;
-}
-
-/* Block Quotes */
-
-blockquote > table,
-div.topic > table {
- margin-top: 0;
- margin-bottom: 0;
-}
-blockquote p.attribution,
-div.topic p.attribution {
- text-align: right;
- margin-left: 20%;
-}
-
-/* Tables */
-/* ====== */
-
-/* th { vertical-align: bottom; } */
-
-table tr { text-align: left; }
-
-/* "booktabs" style (no vertical lines) */
-table.booktabs {
- border: 0;
- border-top: 2px solid;
- border-bottom: 2px solid;
- border-collapse: collapse;
-}
-table.booktabs * {
- border: 0;
-}
-table.booktabs th {
- border-bottom: thin solid;
-}
-
-/* numbered tables (counter defined in div.document) */
-table.numbered > caption:before {
- counter-increment: table;
- content: "Table " counter(table) ": ";
- font-weight: bold;
-}
-
-/* Explicit Markup Blocks */
-/* ====================== */
-
-/* Footnotes and Citations */
-/* ----------------------- */
-
-/* line on the left */
-dl.footnote {
- padding-left: 1ex;
- border-left: solid;
- border-left-width: thin;
-}
-
-/* Directives */
-/* ---------- */
-
-/* Body Elements */
-/* ~~~~~~~~~~~~~ */
-
-/* Images and Figures */
-
-/* let content flow to the side of aligned images and figures */
-.figure.align-left,
-figure.align-left,
-img.align-left,
-object.align-left {
- display: block;
- clear: left;
- float: left;
- margin-right: 1em;
-}
-.figure.align-right,
-figure.align-right,
-img.align-right,
-object.align-right {
- display: block;
- clear: right;
- float: right;
- margin-left: 1em;
-}
-/* Stop floating sidebars, images and figures at section level 1,2,3 */
-h1, h2, h3, h4 { clear: both; }
-
-/* Numbered figures */
-figure.numbered > figcaption > p:before {
- counter-increment: figure;
- content: "Figure " counter(figure) ": ";
- font-weight: bold;
-}
-
-
-/* Admonitions and System Messages */
-
-div.admonition,
-div.system-message,
-aside.sidebar {
- border: medium outset;
- margin: 1em 1.5em;
- padding: 0.5em 1em;
-}
-
-div.caution p.admonition-title,
-div.attention p.admonition-title,
-div.danger p.admonition-title,
-div.error p.admonition-title,
-div.warning p.admonition-title,
-div.error {
- color: red;
-}
-
-
-/* Sidebar */
-
-/* Move right. In a layout with fixed margins, */
-/* it can be moved into the margin. */
-div.sidebar,
-aside.sidebar {
- width: 30%;
- max-width: 26em;
- margin-left: 1em;
- margin-right: -2%;
- background-color: #ffffee;
-}
-
-/* Code */
-
-pre.code { padding: 0.7ex }
-pre.code, code { background-color: #eeeeee }
-pre.code .ln { color: gray; } /* line numbers */
-/* basic highlighting: for a complete scheme, see */
-/* http://docutils.sourceforge.net/sandbox/stylesheets/ */
-pre.code .comment, code .comment { color: #5C6576 }
-pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
-pre.code .literal.string, code .literal.string { color: #0C5404 }
-pre.code .name.builtin, code .name.builtin { color: #352B84 }
-pre.code .deleted, code .deleted { background-color: #DEB0A1}
-pre.code .inserted, code .inserted { background-color: #A3D289}
-
-/* Math */
-/* styled separately (see math.css for math-output=HTML) */
-
-/* Epigraph */
-/* Highlights */
-/* Pull-Quote */
-/* Compound Paragraph */
-/* Container */
-
-/* Document Header and Footer */
-
-footer, header {
- font-size: smaller;
- clear: both;
- padding: 0.5em 2%;
- background-color: #ebebee;
- border: none;
-}
-
-/* Inline Markup */
-/* ============= */
-
-/* Emphasis */
-/* em */
-/* Strong Emphasis */
-/* strong */
-/* Interpreted Text */
-/* span.interpreted */
-/* Title Reference */
-/* cite */
-
-/* Inline Literals */
-/* possible values: normal, nowrap, pre, pre-wrap, pre-line */
-/* span.docutils.literal { white-space: pre-wrap; } */
-
-/* Hyperlink References */
-a { text-decoration: none; }
-
-/* External Targets */
-/* span.target.external */
-/* Internal Targets */
-/* span.target.internal */
-/* Footnote References */
-/* a.footnote-reference */
-/* Citation References */
-/* a.citation-reference */
-
-</style>
-</head>
-<body>
-<main id="babel-greek">
-<h1 class="title">babel-greek</h1>
-<p class="subtitle" id="babel-support-for-the-greek-language-and-script">Babel support for the Greek language and script</p>
-<dl class="docinfo simple">
-<dt class="copyright">Copyright</dt>
-<dd class="copyright">© 1997 Apostolos Syropoulos, Claudio Beccari, Johannes Brahms,
-© 2013 – 2020 Günter Milde.</dd>
-<dt class="licence">Licence</dt>
-<dd class="licence"><p>This work may be distributed and/or modified under the
-conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either
-version 1.3 of this license or any later version.</p>
-</dd>
-</dl>
-<div class="abstract topic">
-<p class="topic-title">Abstract</p>
-<p>Babel-greek is a contributed package providing support for the
-Greek language and script via the <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a> system.</p>
-<p>The file <span class="docutils literal">greek.ldf</span> provides options for the monotonic
-(single-diacritic), polytonic (multiple-diacritic) and ancient
-orthography of the Greek language.</p>
-<p>Since 2013-07-19, babel-greek supports also Unicode-aware TeX
-engines (XeTeX/LuaTeX).</p>
-</div>
-<section id="news">
-<h2>News</h2>
-<table class="borderless">
-<colgroup>
-<col style="width: 6%" />
-<col style="width: 16%" />
-<col style="width: 78%" />
-</colgroup>
-<tbody>
-<tr><td><p>1.4</p></td>
-<td><p>2013-05-17</p></td>
-<td><p>New maintainer.</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>The encoding definition file <span class="docutils literal">lgrenc.def</span> moved to the
-<a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a> package.</p></td>
-</tr>
-<tr><td><p>1.5</p></td>
-<td><p>2013-06-21</p></td>
-<td><p>bugfixes and cleanup,</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>LICR macros in string definitions,</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>LGR font encoding not used with XeTeX/LuaTeX,</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>input “xgreek-fixes.def” from <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> with Xe/LuaTeX.</p></td>
-</tr>
-<tr><td><p>1.5a</p></td>
-<td><p>2013-07-02</p></td>
-<td><p>Fix LaTeX bugs babel/3707, <a class="reference external" href="http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4303">babel/4303</a> and <a class="reference external" href="http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4305">babel/4305</a></p></td>
-</tr>
-<tr><td><p>1.6</p></td>
-<td><p>2013-07-19</p></td>
-<td><p>Experimental support for XeTeX/LuaTeX.</p></td>
-</tr>
-<tr><td><p>1.7</p></td>
-<td><p>2013-09-09</p></td>
-<td><p>CB-Fonts font definition files moved to CB-Fonts package.</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>Do not auto-load euenc.def with XeTeX/LuaTeX.</p></td>
-</tr>
-<tr><td><p>1.7a</p></td>
-<td><p>2013-09-13</p></td>
-<td><p>Fix bug <a class="reference external" href="http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4360">babel/4360</a>: spurious <span class="docutils literal">\fi</span>.</p></td>
-</tr>
-<tr><td><p>1.7b</p></td>
-<td><p>2013-10-01</p></td>
-<td><p>bugfix: correct upcasing of babel strings with Xe/LuaTeX.</p></td>
-</tr>
-<tr><td><p>1.8</p></td>
-<td><p>2013-12-02</p></td>
-<td><p>Rename <span class="docutils literal">greek.dtx</span> to <span class="docutils literal"><span class="pre">babel-greek</span></span> so that <a class="reference external" href="http://www.ctan.org/pkg/texdoc">texdoc</a>
-shows the right documentation.</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>Compatibility with Xe/LuaTeX in Unicode and 8-bit mode.</p></td>
-</tr>
-<tr><td><p>1.8a</p></td>
-<td><p>2013-12-03</p></td>
-<td><p>Set <span class="docutils literal">\encodingdefault</span> in <span class="docutils literal">\greekscript</span> to fix
-Greek in footnotes etc. with document language Greek.</p></td>
-</tr>
-<tr><td><p>1.9</p></td>
-<td><p>2014-07-20</p></td>
-<td><p>Added attribute for ancient Greek, load correct hyphenation
-patterns: Patch by Claudio Beccari. Bugfix for Makeuppercase</p></td>
-</tr>
-<tr><td><p>1.9a</p></td>
-<td><p>2014-09-12</p></td>
-<td><p>Remove duplicate code, documentation review.</p></td>
-</tr>
-<tr><td><p>1.9b</p></td>
-<td><p>2014-09-18</p></td>
-<td><p>Remove spurious whitespace from “extrasgreek” definition.</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>Use named macros instead of non-standard short macros
-for psili and dasia in the string definitions.</p></td>
-</tr>
-<tr><td><p>1.9c</p></td>
-<td><p>2014-10-21</p></td>
-<td><p>Fix dummy hyphenation language names (patch Ulrike Fischer).</p></td>
-</tr>
-<tr><td><p>1.9d</p></td>
-<td><p>2015-09-04</p></td>
-<td><p>Remove <cite>grsymb</cite> (macros for Greek symbols).
-This package is outdated and obsoleted by <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>
-(reported by Claudio Beccari).</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>Unicode uc/lc corrections now in greek-fontenc.</p></td>
-</tr>
-<tr><td><p>1.9e</p></td>
-<td><p>2015-11-27</p></td>
-<td><p>Fix bug in lccode-setting loop (patch by Enrico Gregorio).</p></td>
-</tr>
-<tr><td><p>1.9f</p></td>
-<td><p>2016-02-04</p></td>
-<td><p>Support for new standard Unicode text font encoding “TU”.</p></td>
-</tr>
-<tr><td><p>1.9g</p></td>
-<td><p>2016-09-07</p></td>
-<td><p>Babel 3.9i deprecated <span class="docutils literal">\textlatin</span>
-and fixed <span class="docutils literal">\latinencoding</span>.</p></td>
-</tr>
-<tr><td><p>1.9h</p></td>
-<td><p>2019-07-11</p></td>
-<td><p>Move breathing composite commands to <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">textalpha</a>.</p></td>
-</tr>
-<tr><td><p>1.9i</p></td>
-<td><p>2020-02-28</p></td>
-<td><p>Update test for Unicode fonts.
-Fix accent in <span class="docutils literal">\seename</span> and <span class="docutils literal">\alsoname</span>.</p></td>
-</tr>
-<tr><td><p>1.9j</p></td>
-<td><p>2020-03-17</p></td>
-<td><p>Fix ampersand in math mode.</p></td>
-</tr>
-<tr><td><p>1.10</p></td>
-<td><p>2020-11-10</p></td>
-<td><p>Use <span class="docutils literal">TU</span> as <span class="docutils literal">\greekfontencoding</span> for Xe/LuaTeX
-(set by LaTeX as <a class="reference external" href="https://www.latex-project.org/news/latex2e-news/ltnews26.pdf">default font encoding for Unicode
-engines</a> since 2017/01/01).</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>Use zig-zagy <span class="docutils literal">\textkoppa</span> for <span class="docutils literal">\greeknumeral{90}</span>.</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>PDF-string secure implementation of <span class="docutils literal">\greeknumeral</span>
-from <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>.</p></td>
-</tr>
-<tr><td><!-- -->
-</td>
-<td></td>
-<td><p>Load <span class="docutils literal"><span class="pre">puenc-greek.def</span></span> (from <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>)
-if used with hyperref (polytonic Greek in PDF-strings).</p></td>
-</tr>
-</tbody>
-</table>
-</section>
-<section id="files">
-<h2>Files</h2>
-<dl class="simple">
-<dt><a class="reference external" href="babel-greek.dtx">babel-greek.dtx</a>; <a class="reference external" href="babel-greek.pdf">babel-greek.pdf</a></dt>
-<dd><p>Source of the language definition file <span class="docutils literal">greek.ldf</span> for use with <a class="reference external" href="http://www.ctan.org/pkg/babel">Babel</a>.</p>
-</dd>
-<dt><a class="reference external" href="athnum.dtx">athnum.dtx</a>; <a class="reference external" href="athnum.pdf">athnum.pdf</a></dt>
-<dd><p>Athenian Numerals.</p>
-</dd>
-<dt><a class="reference external" href="grmath.dtx">grmath.dtx</a>; <a class="reference external" href="grmath.pdf">grmath.pdf</a></dt>
-<dd><p>Greek log-like Operators.</p>
-</dd>
-<dt><a class="reference external" href="babel-greek.ins">babel-greek.ins</a></dt>
-<dd><p><a class="reference external" href="http://www.ctan.org/pkg/docstrip">DocStrip</a> batch file.</p>
-</dd>
-<dt><a class="reference external" href="test-greek.tex">test-greek.tex</a> <a class="reference external" href="test-greek-lgr.pdf">test-greek-lgr.pdf</a> <a class="reference external" href="test-greek-tu.pdf">test-greek-tu.pdf</a></dt>
-<dd><p>Test Babel-Greek features.</p>
-</dd>
-<dt><a class="reference external" href="test-8bit-greek.tex">test-8bit-greek.tex</a> <a class="reference external" href="test-8bit-greek.pdf">test-8bit-greek.pdf</a></dt>
-<dd><p>Additional tests and examples for 8-bit TeX.</p>
-</dd>
-<dt><a class="reference external" href="test-tu-lgr.tex">test-tu-lgr.tex</a> <a class="reference external" href="test-tu-lgr.pdf">test-tu-lgr.pdf</a></dt>
-<dd><p>Tests and Examples for XeTeX/LuaTeX with LGR 8-bit fonts.</p>
-</dd>
-<dt><a class="reference external" href="usage.tex">usage.tex</a> <a class="reference external" href="usage.pdf">usage.pdf</a></dt>
-<dd><p>Description of the <a class="reference internal" href="#lgr-latin-transliteration">LGR Latin transliteration</a>.</p>
-</dd>
-</dl>
-</section>
-<section id="requirements">
-<h2>Requirements</h2>
-<p>The “babel-greek” package requires the <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> base package and font
-definition files from the <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a> package. The <a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a>
-package is recommended when using 8-bit TeX engines.</p>
-<p>Typesetting Greek texts requires <a class="reference internal" href="#greek-text-fonts">Greek text fonts</a>.</p>
-<p>Plain TeX is currently not supported. Patches are welcome.</p>
-</section>
-<section id="installation">
-<h2>Installation</h2>
-<p>If possible, get this package from your distribution using its installation
-manager.</p>
-<p>Otherwise, make sure LaTeX can find the required files:</p>
-<ul>
-<li><p>Download and unpack <cite>babel-greek.zip</cite>.</p></li>
-<li><p>Run <span class="docutils literal">tex</span> or <span class="docutils literal">latex</span> on the batch file <span class="docutils literal"><span class="pre">babel-greek.ins</span></span>.</p>
-<p>This will generate the files <span class="docutils literal">greek.ldf</span>, <span class="docutils literal">athnum.sty</span>, and
-<span class="docutils literal">grmath.sty</span> in the current directory.<a class="footnote-reference superscript" href="#id2" id="id1">1</a></p>
-</li>
-<li><p>Move all files ending in <span class="docutils literal">.ldf</span> or <span class="docutils literal">.sty</span> into a directory searched by
-TeX.</p></li>
-<li><p>To produce the documentation, run the file <span class="docutils literal">usage.tex</span> and all files
-ending in <span class="docutils literal">.dtx</span> through LaTeX.</p></li>
-</ul>
-<dl class="footnote superscript">
-<dt class="label" id="id2"><span class="superscript"><a class="fn-backref" href="#id1">1</a></span></dt>
-<dd><p>If these files already exist somewhere in the TeX-path, you will be
-warned that they might be overwritten. You can ignore this
-warning and answer <cite>y</cite> unless the <em>current directory</em> contains versions
-of these files you want to keep.</p>
-<p>This is done by <a class="reference external" href="http://www.ctan.org/pkg/docstrip">docstrip</a>. Try <span class="docutils literal">texdoc docstrip</span> for details.</p>
-</dd>
-</dl>
-</section>
-<section id="usage">
-<h2>Usage</h2>
-<p>Use the “greek” document option or pass the “greek” option to babel:</p>
-<pre class="literal-block">\usepackage[greek]{babel}</pre>
-<p>For polytonic Greek, set the language attribute “polutoniko”:</p>
-<pre class="literal-block">\usepackage[greek]{babel}
-\languageattribute{greek}{polutoniko}</pre>
-<p>or</p>
-<pre class="literal-block">\usepackage[greek.polutoniko,english]{babel}</pre>
-<p>Similarly, the attribute “ancient” selects the ancient Greek language
-variant.</p>
-<p>For details see <a class="reference external" href="babel-greek.pdf">babel-greek.pdf</a> and the <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> documentation.</p>
-<p>Input of Greek characters is possible as literal characters (with the
-<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a> package or with XeTeX or LuaTeX) or the <a class="reference internal" href="#lgr-latin-transliteration">LGR Latin
-transliteration</a>. See <a class="reference external" href="usage.pdf">usage.pdf</a> and the example files provided with
-<a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>.</p>
-</section>
-<section id="greek-text-fonts">
-<h2>Greek text fonts</h2>
-<p>A list of Greek text fonts for use with LaTeX is available at the CTAN
-<a class="reference external" href="http://www.ctan.org/topic/font-greek">http://www.ctan.org/topic/font-greek</a></p>
-<p>With the XeTeX or LuaTeX engines, the user should ensure that the chosen
-font contains the required glyphs: the default Latin Modern fonts miss
-them. Warnings about missing charcters are only written to the log
-file, not the console output! Select a suitable font with <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a>.</p>
-<p>Examples for suitable fonts are the <a class="reference external" href="http://www.ctan.org/pkg/cm-unicode">CM-unicode</a> or the <a class="reference external" href="http://www.ctan.org/pkg/libertine">Linux
-Libertine</a> OpenType fonts as well as any system-wide installed OTF fonts
-that support Greek (e.g. <a class="reference external" href="http://dejavu-fonts.org">Deja Vu</a>).</p>
-<p>The LGR <a class="reference external" href="http://mirror.ctan.org/macros/latex/base/encguide.pdf">font encoding</a> is the de-facto standard for typesetting Greek with
-8-bit LaTeX. Fonts in this encoding include the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a> (matching CM),
-<a class="reference external" href="http://www.ctan.org/pkg/grtimes">grtimes</a> (Greek Times), <a class="reference external" href="http://www.ctan.org/pkg/kerkis">Kerkis</a> (matching URW Bookman), and the <a class="reference external" href="http://www.ctan.org/pkg/gfs">GFS font
-collection</a>. Setup of these fonts as Greek variant to matching Latin fonts
-is facilitated by the <a class="reference external" href="http://www.ctan.org/pkg/substitutefont">substitutefont</a> package.</p>
-</section>
-<section id="lgr-latin-transliteration">
-<h2>LGR Latin Transliteration</h2>
-<p>The LGR font encoding allows input of Greek characters via an ASCII
-transliteration. This enables simple input with a Latin keyboard. Characters
-with diacritics may be selected with accent macros (cf. <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>) or
-via the ligature definitions in the font (see <a class="reference external" href="usage.pdf">usage.pdf</a>).</p>
-<p>The following ASCII characters are converted to Greek symbols:</p>
-<table>
-<colgroup>
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-<col style="width: 4%" />
-</colgroup>
-<tbody>
-<tr><td><p>A</p></td>
-<td><p>B</p></td>
-<td><p>G</p></td>
-<td><p>D</p></td>
-<td><p>E</p></td>
-<td><p>Z</p></td>
-<td><p>H</p></td>
-<td><p>J</p></td>
-<td><p>I</p></td>
-<td><p>K</p></td>
-<td><p>L</p></td>
-<td><p>M</p></td>
-<td><p>N</p></td>
-<td><p>X</p></td>
-<td><p>O</p></td>
-<td><p>P</p></td>
-<td><p>R</p></td>
-<td><p>S</p></td>
-<td></td>
-<td><p>T</p></td>
-<td><p>U</p></td>
-<td><p>F</p></td>
-<td><p>Q</p></td>
-<td><p>Y</p></td>
-<td><p>W</p></td>
-</tr>
-<tr><td><p>Α</p></td>
-<td><p>Β</p></td>
-<td><p>Γ</p></td>
-<td><p>Δ</p></td>
-<td><p>Ε</p></td>
-<td><p>Ζ</p></td>
-<td><p>Η</p></td>
-<td><p>Θ</p></td>
-<td><p>Ι</p></td>
-<td><p>Κ</p></td>
-<td><p>Λ</p></td>
-<td><p>Μ</p></td>
-<td><p>Ν</p></td>
-<td><p>Ξ</p></td>
-<td><p>Ο</p></td>
-<td><p>Π</p></td>
-<td><p>Ρ</p></td>
-<td><p>Σ</p></td>
-<td></td>
-<td><p>Τ</p></td>
-<td><p>Υ</p></td>
-<td><p>Φ</p></td>
-<td><p>Χ</p></td>
-<td><p>Ψ</p></td>
-<td><p>Ω</p></td>
-</tr>
-<tr><td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-<td></td>
-</tr>
-<tr><td><p>a</p></td>
-<td><p>b</p></td>
-<td><p>g</p></td>
-<td><p>d</p></td>
-<td><p>e</p></td>
-<td><p>z</p></td>
-<td><p>h</p></td>
-<td><p>j</p></td>
-<td><p>i</p></td>
-<td><p>k</p></td>
-<td><p>l</p></td>
-<td><p>m</p></td>
-<td><p>n</p></td>
-<td><p>x</p></td>
-<td><p>o</p></td>
-<td><p>p</p></td>
-<td><p>r</p></td>
-<td><p>s</p></td>
-<td><p>c</p></td>
-<td><p>t</p></td>
-<td><p>u</p></td>
-<td><p>f</p></td>
-<td><p>q</p></td>
-<td><p>y</p></td>
-<td><p>w</p></td>
-</tr>
-<tr><td><p>α</p></td>
-<td><p>β</p></td>
-<td><p>γ</p></td>
-<td><p>δ</p></td>
-<td><p>ε</p></td>
-<td><p>ζ</p></td>
-<td><p>η</p></td>
-<td><p>θ</p></td>
-<td><p>ι</p></td>
-<td><p>κ</p></td>
-<td><p>λ</p></td>
-<td><p>μ</p></td>
-<td><p>ν</p></td>
-<td><p>ξ</p></td>
-<td><p>ο</p></td>
-<td><p>π</p></td>
-<td><p>ρ</p></td>
-<td><p>σ</p></td>
-<td><p>ς</p></td>
-<td><p>τ</p></td>
-<td><p>υ</p></td>
-<td><p>φ</p></td>
-<td><p>χ</p></td>
-<td><p>ψ</p></td>
-<td><p>ω</p></td>
-</tr>
-</tbody>
-</table>
-<p>Accent symbols and punctuation:</p>
-<table>
-<colgroup>
-<col style="width: 29%" />
-<col style="width: 10%" />
-<col style="width: 3%" />
-<col style="width: 37%" />
-<col style="width: 14%" />
-<col style="width: 7%" />
-</colgroup>
-<tbody>
-<tr><td><p>tonos</p></td>
-<td><p><span class="docutils literal">'a</span></p></td>
-<td><p>ά</p></td>
-<td><p>semicolon</p></td>
-<td><p><span class="docutils literal">;</span></p></td>
-<td><p>·</p></td>
-</tr>
-<tr><td><p>varia</p></td>
-<td><p>`a</p></td>
-<td><p>ὰ</p></td>
-<td><p>question mark</p></td>
-<td><p><span class="docutils literal">?</span></p></td>
-<td><p>;</p></td>
-</tr>
-<tr><td><p>perispomeni</p></td>
-<td><p><span class="docutils literal">~a</span></p></td>
-<td><p>ᾶ</p></td>
-<td><p>left apostrophe</p></td>
-<td><p>` `</p></td>
-<td><p>‘</p></td>
-</tr>
-<tr><td><p>dasia</p></td>
-<td><p><span class="docutils literal">&lt;a</span></p></td>
-<td><p>ἁ</p></td>
-<td><p>right apostrophe</p></td>
-<td><p><span class="docutils literal">''</span></p></td>
-<td><p>’</p></td>
-</tr>
-<tr><td><p>psili</p></td>
-<td><p><span class="docutils literal">&gt;a</span></p></td>
-<td><p>ἀ</p></td>
-<td><p>left quotation mark</p></td>
-<td><p><span class="docutils literal">((</span></p></td>
-<td><p>«</p></td>
-</tr>
-<tr><td><p>ypogegrammeni</p></td>
-<td><p><span class="docutils literal">a|</span></p></td>
-<td><p>ᾳ</p></td>
-<td><p>right quotation mark</p></td>
-<td><p><span class="docutils literal">))</span></p></td>
-<td><p>»</p></td>
-</tr>
-<tr><td><p>dialytika</p></td>
-<td><p><span class="docutils literal">&quot;i</span></p></td>
-<td><p>ϊ</p></td>
-<td><p>zero width non-joiner</p></td>
-<td><p>v</p></td>
-<td></td>
-</tr>
-</tbody>
-</table>
-<p>A major drawback of the LGR transliteration is that you cannot access Latin
-letters and some symbols if LGR is the active font encoding (e.g. in
-documents or parts of documents given the <cite>Babel</cite> language <span class="docutils literal">greek</span>). This
-means that for every Latin-written word or acronym an explicit
-language-switch is required. This problem can only be solved via a
-font-encoding comprising both Latin and Greek like the hypothetical T7 or
-Unicode (with XeTeX or LuaTeX).</p>
-<!-- References
-- - - - - - - - - - -->
-</section>
-</main>
-</body>
-</html>
diff --git a/Master/texmf-dist/doc/generic/babel-greek/README.md b/Master/texmf-dist/doc/generic/babel-greek/README.md
new file mode 100644
index 00000000000..652a58975db
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/README.md
@@ -0,0 +1,35 @@
+babel-greek
+===========
+Babel support for the Greek language
+------------------------------------
+
+Comprehensive support for the Greek language and script with
+[Babel](https://ctan.org/pkg/babel).
+
+**Version**: 1.12 ([changelog][1])
+
+**Copyright**: © 1997 Apostles Syropoulos, Claudio Beccari, Johannes Brahms,
+ © 2013 - 2023 Günter Milde.
+
+**License**:
+ This work may be distributed and/or modified under the conditions of the
+ [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
+ either version 1.3 of this license or any later version.
+
+**Home**: <https://codeberg.org/milde/greek-tex>
+
+**Latest Release**: <https://ctan.org/pkg/babel-greek>
+
+**Requires**: [greek-fontenc](https://ctan.org/pkg/greek-fontenc),
+ [text fonts supporting the Greek script][2]
+
+**Recommends**: [greek-inputenc](https://ctan.org/pkg/greek-inputenc)
+ (when used with 8-bit TeX/pdfTeX)
+
+See [babel-greek-doc][3] ([babel-greek-doc.rst][4]) for a detailed overview.
+
+
+[1]: babel-greek-doc.html#changelog
+[2]: babel-greek-doc.html#greek-text-fonts
+[3]: babel-greek-doc.html
+[4]: babel-greek-doc.rst
diff --git a/Master/texmf-dist/doc/generic/babel-greek/athnum.pdf b/Master/texmf-dist/doc/generic/babel-greek/athnum.pdf
index 6301b00730e..060d16210bb 100644
--- a/Master/texmf-dist/doc/generic/babel-greek/athnum.pdf
+++ b/Master/texmf-dist/doc/generic/babel-greek/athnum.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.html b/Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.html
new file mode 100644
index 00000000000..0e108edc12f
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.html
@@ -0,0 +1,1387 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta charset="utf-8" />
+<meta name="generator" content="Docutils 0.20b.dev: https://docutils.sourceforge.io/" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+<meta name="dcterms.rights" content="© 1997 Apostolos Syropoulos, Claudio Beccari, Johannes Brahms, © 2013 – 2022 Günter Milde." />
+<title>babel-greek</title>
+<link rel="schema.dcterms" href="http://purl.org/dc/terms/"/>
+<style type="text/css">
+
+/* Minimal style sheet for the HTML output of Docutils. */
+/* */
+/* :Author: Günter Milde, based on html4css1.css by David Goodger */
+/* :Id: $Id$ */
+/* :Copyright: © 2015, 2021 Günter Milde. */
+/* :License: Released under the terms of the `2-Clause BSD license`_, */
+/* in short: */
+/* */
+/* Copying and distribution of this file, with or without modification, */
+/* are permitted in any medium without royalty provided the copyright */
+/* notice and this notice are preserved. */
+/* */
+/* This file is offered as-is, without any warranty. */
+/* */
+/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
+
+/* This CSS3 stylesheet defines rules for Docutils elements without */
+/* HTML equivalent. It is required to make the document semantics visible. */
+/* */
+/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */
+
+/* titles */
+p.topic-title,
+p.admonition-title,
+p.system-message-title {
+ font-weight: bold;
+}
+p.sidebar-title,
+p.rubric {
+ font-weight: bold;
+ font-size: larger;
+}
+p.rubric {
+ color: maroon;
+}
+p.subtitle,
+p.section-subtitle,
+p.sidebar-subtitle {
+ font-weight: bold;
+ margin-top: -0.5em;
+}
+h1 + p.subtitle {
+ font-size: 1.6em;
+}
+a.toc-backref {
+ color: inherit;
+ text-decoration: none;
+}
+
+/* Warnings, Errors */
+.system-messages h2,
+.system-message-title,
+span.problematic {
+ color: red;
+}
+
+/* Inline Literals */
+.docutils.literal {
+ font-family: monospace;
+ white-space: pre-wrap;
+}
+/* do not wrap at hyphens and similar: */
+.literal > span.pre { white-space: nowrap; }
+
+/* Lists */
+
+/* compact and simple lists: no margin between items */
+.simple li, .simple ul, .simple ol,
+.compact li, .compact ul, .compact ol,
+.simple > li p, dl.simple > dd,
+.compact > li p, dl.compact > dd {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+/* Nested Paragraphs */
+p:first-child { margin-top: 0; }
+p:last-child { margin-bottom: 0; }
+details > p:last-child { margin-bottom: 1em; }
+
+/* Table of Contents */
+.contents ul.auto-toc { /* section numbers present */
+ list-style-type: none;
+}
+
+/* Enumerated Lists */
+ol.arabic { list-style: decimal }
+ol.loweralpha { list-style: lower-alpha }
+ol.upperalpha { list-style: upper-alpha }
+ol.lowerroman { list-style: lower-roman }
+ol.upperroman { list-style: upper-roman }
+
+/* Definition Lists and Derivatives */
+dt .classifier { font-style: italic }
+dt .classifier:before {
+ font-style: normal;
+ margin: 0.5em;
+ content: ":";
+}
+/* Field Lists and similar */
+/* bold field name, content starts on the same line */
+dl.field-list,
+dl.option-list,
+dl.docinfo {
+ display: flow-root;
+}
+dl.field-list > dt,
+dl.option-list > dt,
+dl.docinfo > dt {
+ font-weight: bold;
+ clear: left;
+ float: left;
+ margin: 0;
+ padding: 0;
+ padding-right: 0.2em;
+}
+/* Offset for field content (corresponds to the --field-name-limit option) */
+dl.field-list > dd,
+dl.option-list > dd,
+dl.docinfo > dd {
+ margin-left: 9em; /* ca. 14 chars in the test examples, fit all Docinfo fields */
+}
+/* start nested lists on new line */
+dd > dl:first-child,
+dd > ul:first-child,
+dd > ol:first-child {
+ clear: left;
+}
+/* start field-body on a new line after long field names */
+dl.field-list > dd > *:first-child,
+dl.option-list > dd > *:first-child
+{
+ display: inline-block;
+ width: 100%;
+ margin: 0;
+}
+
+/* Bibliographic Fields (docinfo) */
+dl.docinfo pre.address {
+ font: inherit;
+ margin: 0.5em 0;
+}
+dl.docinfo > dd.authors > p { margin: 0; }
+
+/* Option Lists */
+dl.option-list > dt { font-weight: normal; }
+span.option { white-space: nowrap; }
+
+/* Footnotes and Citations */
+
+.footnote, .citation { margin: 1em 0; } /* default paragraph skip (Firefox) */
+/* hanging indent */
+.citation { padding-left: 2em; }
+.footnote { padding-left: 1.7em; }
+.footnote.superscript { padding-left: 1.0em; }
+.citation > .label { margin-left: -2em; }
+.footnote > .label { margin-left: -1.7em; }
+.footnote.superscript > .label { margin-left: -1.0em; }
+
+.footnote > .label + *,
+.citation > .label + * {
+ display: inline-block;
+ margin-top: 0;
+ vertical-align: top;
+}
+.footnote > .backrefs + *,
+.citation > .backrefs + * {
+ margin-top: 0;
+}
+.footnote > .label + p, .footnote > .backrefs + p,
+.citation > .label + p, .citation > .backrefs + p {
+ display: inline;
+ vertical-align: inherit;
+}
+
+.backrefs { user-select: none; }
+.backrefs > a { font-style: italic; }
+
+/* superscript footnotes */
+a[role="doc-noteref"].superscript,
+.footnote.superscript > .label,
+.footnote.superscript > .backrefs {
+ vertical-align: super;
+ font-size: smaller;
+ line-height: 1;
+}
+a[role="doc-noteref"].superscript > .fn-bracket,
+.footnote.superscript > .label > .fn-bracket {
+ /* hide brackets in display but leave for copy/paste */
+ display: inline-block;
+ width: 0;
+ overflow: hidden;
+}
+[role="doc-noteref"].superscript + [role="doc-noteref"].superscript {
+ padding-left: 0.15em; /* separate consecutive footnote references */
+ /* TODO: unfortunately, "+" also selects with text between the references. */
+}
+
+/* Alignment */
+.align-left {
+ text-align: left;
+ margin-right: auto;
+}
+.align-center {
+ text-align: center;
+ margin-left: auto;
+ margin-right: auto;
+}
+.align-right {
+ text-align: right;
+ margin-left: auto;
+}
+.align-top { vertical-align: top; }
+.align-middle { vertical-align: middle; }
+.align-bottom { vertical-align: bottom; }
+
+/* reset inner alignment in figures and tables */
+figure.align-left, figure.align-right,
+table.align-left, table.align-center, table.align-right {
+ text-align: inherit;
+}
+
+/* Text Blocks */
+.topic { margin: 1em 2em; }
+.sidebar,
+.admonition,
+.system-message {
+ margin: 1em 2em;
+ border: thin solid;
+ padding: 0.5em 1em;
+}
+div.line-block { display: block; }
+div.line-block div.line-block, pre { margin-left: 2em; }
+
+/* Code line numbers: dropped when copying text from the page */
+pre.code .ln { display: none; }
+pre.code code:before {
+ content: attr(data-lineno); /* …, none) fallback not supported by any browser */
+ color: gray;
+}
+
+/* Tables */
+table {
+ border-collapse: collapse;
+}
+td, th {
+ border: thin solid silver;
+ padding: 0 1ex;
+}
+.borderless td, .borderless th {
+ border: 0;
+ padding: 0;
+ padding-right: 0.5em /* separate table cells */
+}
+
+table > caption {
+ text-align: left;
+ margin-top: 0.2em;
+ margin-bottom: 0.2em;
+}
+table.captionbelow {
+ caption-side: bottom;
+}
+
+/* Document Header and Footer */
+header { border-bottom: 1px solid black; }
+footer { border-top: 1px solid black; }
+
+/* Images are block-level by default in Docutils */
+/* New HTML5 block elements: set display for older browsers */
+img, header, footer, main, aside, nav, section, figure, video, details {
+ display: block;
+}
+/* inline images */
+p img, p video, figure img, figure video {
+ display: inline;
+}
+
+</style>
+<style type="text/css">
+
+/* CSS3_ style sheet for the output of Docutils HTML5 writer. */
+/* Generic responsive design for all screen sizes. */
+/* */
+/* :Author: Günter Milde */
+/* */
+/* :Id: $Id$ */
+/* :Copyright: © 2021 Günter Milde. */
+/* :License: Released under the terms of the `2-Clause BSD license`_, */
+/* in short: */
+/* */
+/* Copying and distribution of this file, with or without modification, */
+/* are permitted in any medium without royalty provided the copyright */
+/* notice and this notice are preserved. */
+/* */
+/* This file is offered as-is, without any warranty. */
+/* */
+/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
+/* .. _CSS3: https://www.w3.org/Style/CSS/ */
+
+/* Note: */
+/* This style sheet is provisional: */
+/* the API is not settled and may change with any minor Docutils version. */
+
+
+
+/* General Settings */
+/* ================ */
+
+
+* { box-sizing: border-box; }
+
+body {
+ background-color: #fafaf6;
+ margin: auto;
+ --field-indent: 6.6em; /* indent of fields in field lists */
+ --sidebar-margin-right: 0; /* adapted in media queries below */
+}
+main {
+ counter-reset: figure table;
+}
+body > * {
+ background-color: white;
+ line-height: 1.6;
+ padding: 0.5rem calc(29% - 7.2rem); /* go from 5% to 15% (8.15em/54em) */
+ margin: auto;
+ max-width: 100rem;
+}
+sup, sub { /* avoid additional inter-line space for lines with sup/sub */
+ line-height: 1;
+}
+
+/* Vertical Space (Parskip) */
+p, ol, ul, dl, li,
+div.line-block,
+.topic,
+.footnote, .citation,
+div > math,
+table {
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+}
+h1, h2, h3, h4, h5, h6,
+dl > dd, details > p:last-child {
+ margin-bottom: 0.5em;
+}
+
+/* Indented Blocks */
+blockquote, figure, .topic {
+ margin: 1em 2%;
+ padding-left: 1em;
+}
+div.line-block div.line-block,
+pre, dd, dl.option-list {
+ margin-left: calc(2% + 1em);
+}
+
+/* Object styling */
+/* ============== */
+
+footer, header {
+ font-size: small;
+}
+
+/* Frontmatter */
+div.dedication {
+ padding: 0;
+ margin: 1.4em 0;
+ font-style: italic;
+ font-size: large;
+}
+.dedication p.topic-title {
+ display: none;
+}
+
+blockquote p.attribution,
+.topic p.attribution {
+ text-align: right;
+}
+
+/* Table of Contents */
+nav.contents ul {
+ padding-left: 1em;
+}
+ul.auto-toc > li > p { /* hanging indent */
+ padding-left: 1em;
+ text-indent: -1em;
+}
+main > nav.contents ul:not(.auto-toc) {
+ list-style-type: square;
+}
+main > nav.contents ul ul:not(.auto-toc) {
+ list-style-type: disc;
+}
+main > nav.contents ul ul ul:not(.auto-toc) {
+ list-style-type: '\2B29\ ';
+}
+main > nav.contents ul ul ul ul:not(.auto-toc) {
+ list-style-type: '\2B1D\ ';
+}
+main > nav.contents ul ul ul ul ul:not(.auto-toc) {
+ list-style-type: '\2B2A\ ';
+}
+nav.contents ul > li::marker {
+ color: grey;
+}
+
+/* Transitions */
+hr {
+ margin: 1em 10%;
+}
+
+/* Lists */
+
+ul, ol {
+ padding-left: 1.1em; /* indent by bullet width (Firefox, DejaVu fonts) */
+}
+dl.field-list > dd,
+dl.docinfo > dd {
+ margin-left: var(--field-indent); /* adapted in media queries or HTML */
+}
+dl.option-list > dd {
+ margin-left: 20%;
+}
+/* run-in: start field-body on same line after long field names */
+dl.field-list.run-in > dd p {
+ display: block;
+}
+/* "description style" like in most dictionaries, encyclopedias etc. */
+dl.description {
+ display: flow-root;
+}
+dl.description > dt {
+ clear: left;
+ float: left;
+ margin: 0;
+ padding: 0;
+ padding-right: 0.3em;
+ font-weight: bold;
+}
+dl.description > dd:after {
+ display: table;
+ content: "";
+ clear: left; /* clearfix for empty descriptions */
+}
+/* start lists nested in description/field lists on new line */
+dd > dl:first-child,
+dd > ul:first-child,
+dd > ol:first-child {
+ clear: left;
+}
+
+/* disclosures */
+details { padding-left: 1em; }
+summary { margin-left: -1em; }
+
+/* Footnotes and Citations */
+.footnote {
+ font-size: small;
+}
+
+/* Images, Figures, and Tables */
+img {
+ display: block;
+}
+p > img, p > a > img,
+figure > img, figure > a > img {
+ display: inline;
+}
+
+figcaption,
+table > caption {
+ /* font-size: small; */
+ font-style: italic;
+}
+figcaption > .legend {
+ font-size: small;
+ font-style: initial;
+}
+figure.numbered > figcaption > p:before {
+ counter-increment: figure;
+ content: "Figure " counter(figure) ": ";
+ font-weight: bold;
+ font-style: initial;
+}
+
+table tr {
+ text-align: left;
+ vertical-align: baseline;
+}
+table.booktabs { /* "booktabs" style (no vertical lines) */
+ border-top: 2px solid;
+ border-bottom: 2px solid;
+}
+table.booktabs * {
+ border: 0;
+}
+table.booktabs th {
+ border-bottom: thin solid;
+}
+table.numbered > caption:before {
+ counter-increment: table;
+ content: "Table " counter(table) ": ";
+ font-weight: bold;
+ font-style: initial;
+}
+
+/* Admonitions and System Messages */
+.admonition,
+div.system-message {
+ border: thin solid silver;
+ margin: 1em 2%;
+ padding: 0.5em 1em;
+}
+.caution p.admonition-title,
+.attention p.admonition-title,
+.danger p.admonition-title,
+.warning p.admonition-title,
+div.error {
+ color: maroon;
+}
+div.system-message > p > span.literal {
+ overflow-wrap: break-word;
+}
+
+/* Literal and Code */
+pre.literal-block, pre.doctest{
+ padding: 0.2em;
+ overflow-x: auto;
+}
+.literal-block, .doctest, span.literal {
+ background-color: #f6f9f8;
+}
+.system-message span.literal {
+ background-color: inherit;
+}
+
+/* basic highlighting: for a complete scheme, see */
+/* https://docutils.sourceforge.io/sandbox/stylesheets/ */
+pre.code .comment, code .comment { color: #5C6576 }
+pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
+pre.code .literal.string, code .literal.string { color: #0C5404 }
+pre.code .name.builtin, code .name.builtin { color: #352B84 }
+pre.code .deleted, code .deleted { background-color: #DEB0A1}
+pre.code .inserted, code .inserted { background-color: #A3D289}
+
+/* Hyperlink References */
+a {
+ text-decoration: none; /* for chromium */
+ /* Wrap links at any place, if this is the only way to prevent overflow */
+ overflow-wrap: break-word;
+}
+.contents a, a.toc-backref, a.citation-reference {
+ overflow-wrap: inherit;
+}
+/* Undecorated Links (see also minimal.css) */
+/* a.citation-reference, */
+.citation a.fn-backref {
+ color: inherit;
+}
+a:hover {
+ text-decoration: underline;
+}
+*:hover > a.toc-backref:after {
+ content: " \2191"; /* ↑ UPWARDS ARROW */
+ color: grey;
+}
+*:hover > a.self-link:after {
+ content: "\1F517"; /* LINK SYMBOL */
+ color: grey;
+ font-size: smaller;
+ margin-left: 0.2em;
+}
+/* highlight the target of the current URL */
+section:target > h2, section:target > h3, section:target > h4,
+section:target > h5, section:target > h6,
+.contents :target,
+.contents:target > .topic-title,
+[role="doc-biblioentry"]:target > .label,
+[role="doc-biblioref"]:target,
+[role="note"]:target, /* Docutils 0.18 ... 0.19 */
+[role="doc-footnote"]:target, /* Docutils >= 0.20 */
+[role="doc-noteref"]:target {
+ background-color: #d2e6ec;
+}
+
+/* Block Alignment */
+/* Let content flow to the side of aligned images and figures */
+
+/* no floats around this elements */
+footer, header, hr,
+h1, h2, h3 {
+ clear: both;
+}
+
+img.align-left,
+video.align-left,
+figure.align-left,
+table.align-left {
+ margin-left: 0;
+ padding-left: 0;
+ margin-right: 0.5em;
+ clear: left;
+ float: left;
+}
+img.align-right,
+video.align-right,
+figure.align-right,
+table.align-right {
+ margin-left: 0.5em;
+ margin-right: 0;
+ clear: right;
+ float: right;
+}
+
+/* Margin Elements */
+/* see below for screen size dependent rules */
+.sidebar,
+.marginal,
+.admonition.marginal {
+ max-width: 40%;
+ border: none;
+ background-color: #efefea;
+ margin: 0.5em var(--sidebar-margin-right) 0.5em 1em;
+ padding: 0.5em;
+ padding-left: 0.7em;
+ clear: right;
+ float: right;
+ font-size: small;
+}
+.sidebar {
+ width: 40%;
+}
+
+/* Math */
+/* for math-output=MathML (for math-output=HTML, see math.css) */
+math .boldsymbol {
+ font-weight: bold;
+}
+mstyle.mathscr, mi.mathscr {
+ font-family: STIX;
+}
+
+/* Adaptive page layout */
+/* ==================== */
+
+@media (max-width: 30em) {
+ /* Smaller margins and no floating elements for small screens */
+ /* (main text less than 40 characters/line) */
+ body > * {
+ padding: 0.5rem 5%;
+ line-height: 1.4
+ }
+ .sidebar,
+ .marginal,
+ .admonition.marginal {
+ width: auto;
+ max-width: 100%;
+ float: none;
+ }
+ dl.option-list,
+ pre {
+ margin-left: 0;
+ }
+ body {
+ --field-indent: 4em;
+ }
+ dl.field-list.narrow, dl.docinfo, dl.option-list {
+ --field-indent: 2.4em;
+ }
+ pre, pre * {
+ font-size: 0.9em;
+ /* overflow: auto; */
+ }
+}
+
+@media (min-width: 54em) {
+ /* Move ToC to the left */
+ /* Main text width before: 70% ≙ 35em ≙ 75…95 chrs (Dejavu/Times) */
+ /* after: ≳ 30em ≙ 54…70 chrs (Dejavu/Times) */
+ body.with-toc {
+ padding-left: 8%;
+ }
+ body.with-toc > * {
+ margin-left: 0;
+ padding-left: 22rem; /* fallback for webkit */
+ padding-left: min(22%, 22rem);
+ padding-right: 7%;
+ }
+ main > nav.contents { /* global ToC */
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: min(25%, 25em);
+ height: 100vh;
+ margin: 0;
+ background-color: #fafaf6;
+ padding: 1em 2% 0 2%;
+ overflow: auto;
+ }
+ main > nav.contents > * {
+ padding-left: 0;
+ line-height: 1.4;
+ }
+ main > nav.contents a {
+ color: inherit;
+ }
+}
+
+@media (min-width: 70em) {
+ body {
+ --field-indent: 9em;
+ }
+}
+
+@media (min-width: 77em) {
+ /* Move marginalia to 6rem from right border */
+ /* .sidebar, */
+ /* .marginal, */
+ /* .admonition.marginal { */
+ /* margin-right: calc(6rem - 15%); */
+ /* } */
+ /* BUG: margin is calculated for break point width */
+ /* workaround: variable + many breakpoints */
+ body > * {
+ padding-left: 18%;
+ padding-right: 28%; /* fallback for webkit */
+ padding-right: min(28%, 28rem);
+ --sidebar-margin-right: -20rem;
+ }
+ /* limit main text to ~ 50em ≙ 85…100 characters DejaVu rsp. …120 Times */
+ body.with-toc > * {
+ padding-left: min(22%, 22rem);
+ padding-right: calc(78% - 50rem); /* fallback for webkit */
+ padding-right: min(78% - 50rem, 28rem);
+ --sidebar-margin-right: 0;
+ }
+}
+
+@media (min-width: 85em) {
+ body.with-toc > * {
+ --sidebar-margin-right: -9rem;
+ }
+}
+
+@media (min-width: 90em) {
+ /* move marginalia into the margin */
+ body > * {
+ padding-left: min(22%, 22rem);
+ --sidebar-margin-right: -23rem;
+ }
+ body.with-toc > * {
+ --sidebar-margin-right: -14rem;
+ }
+}
+
+@media (min-width: 99em) {
+ /* move marginalia out of main text area */
+ body.with-toc > * {
+ --sidebar-margin-right: -20rem;
+ }
+ body > *, body.with-toc > * { /* for webkit */
+ padding-left: 22rem;
+ padding-right: 28rem;
+ }
+ .admonition.marginal,
+ .marginal {
+ width: 40%; /* make marginal figures, ... "full width" */
+ }
+}
+
+@media (min-width: 104em) {
+ body.with-toc > * {
+ --sidebar-margin-right: -23rem;
+ }
+}
+
+</style>
+</head>
+<body class="with-toc">
+<main id="babel-greek">
+<h1 class="title">babel-greek</h1>
+<p class="subtitle" id="babel-support-for-the-greek-language-and-script">Babel support for the Greek language and script</p>
+<dl class="docinfo simple">
+<dt class="copyright">Copyright<span class="colon">:</span></dt>
+<dd class="copyright">© 1997 Apostolos Syropoulos, Claudio Beccari, Johannes Brahms,
+© 2013 – 2022 Günter Milde.</dd>
+<dt class="licence">Licence<span class="colon">:</span></dt>
+<dd class="licence"><p>This work may be distributed and/or modified under the
+conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either
+version 1.3 of this license or any later version.</p>
+</dd>
+<dt class="home">Home<span class="colon">:</span></dt>
+<dd class="home"><p><a class="reference external" href="https://codeberg.org/milde/greek-tex">https://codeberg.org/milde/greek-tex</a></p>
+</dd>
+<dt class="latest-release">Latest Release<span class="colon">:</span></dt>
+<dd class="latest-release"><p><a class="reference external" href="https://ctan.org/pkg/babel-greek">https://ctan.org/pkg/babel-greek</a></p>
+</dd>
+</dl>
+<div class="topic abstract" role="doc-abstract">
+<p class="topic-title">Abstract</p>
+<p><cite>babel-greek</cite> is a contributed package providing comprehensive
+support for the Greek language and script via the <a class="reference external" href="https://ctan.org/pkg/babel">Babel</a> system.
+Document authors can select between the <em>monotonic</em>
+(single-diacritic), <em>polytonic</em> (multiple-diacritic) and
+<em>ancient</em> orthography of the Greek language.</p>
+</div>
+<nav class="contents" id="contents" role="doc-toc">
+<p class="topic-title">Contents</p>
+<ul class="simple">
+<li><p><a class="reference internal" href="#files" id="toc-entry-1">Files</a></p></li>
+<li><p><a class="reference internal" href="#requirements" id="toc-entry-2">Requirements</a></p></li>
+<li><p><a class="reference internal" href="#download-and-installation" id="toc-entry-3">Download and Installation</a></p></li>
+<li><p><a class="reference internal" href="#usage" id="toc-entry-4">Usage</a></p></li>
+<li><p><a class="reference internal" href="#greek-text-fonts" id="toc-entry-5">Greek text fonts</a></p></li>
+<li><p><a class="reference internal" href="#lgr-latin-transliteration" id="toc-entry-6">LGR Latin Transliteration</a></p></li>
+<li><p><a class="reference internal" href="#greek-numerals" id="toc-entry-7">Greek Numerals</a></p></li>
+<li><p><a class="reference internal" href="#changelog" id="toc-entry-8">Changelog</a></p></li>
+<li><p><a class="reference internal" href="#references" id="toc-entry-9">References</a></p></li>
+</ul>
+</nav>
+<section id="files">
+<h2><a class="toc-backref" href="#toc-entry-1" role="doc-backlink">Files</a></h2>
+<dl class="simple">
+<dt><a class="reference external" href="babel-greek.dtx">babel-greek.dtx</a></dt>
+<dd><p>Source of the language definition file <span class="docutils literal">greek.ldf</span> for use with <a class="reference external" href="https://ctan.org/pkg/babel">Babel</a>.
+[<a class="reference external" href="babel-greek.pdf">babel-greek.pdf</a>]</p>
+</dd>
+<dt><a class="reference external" href="athnum.dtx">athnum.dtx</a></dt>
+<dd><p>Athenian (Attic, Herodianic, or acrophonic) Numerals. [<a class="reference external" href="athnum.pdf">athnum.pdf</a>]</p>
+</dd>
+<dt><a class="reference external" href="grmath.dtx">grmath.dtx</a></dt>
+<dd><p>Greek log-like Operators. [<a class="reference external" href="grmath.pdf">grmath.pdf</a>]</p>
+</dd>
+<dt><a class="reference external" href="babel-greek.ins">babel-greek.ins</a></dt>
+<dd><p><a class="reference external" href="https://ctan.org/pkg/docstrip">DocStrip</a> batch file.</p>
+</dd>
+<dt><a class="reference external" href="usage.tex">usage.tex</a></dt>
+<dd><p>Description of the <a class="reference internal" href="#lgr-latin-transliteration">LGR Latin transliteration</a> and the <a class="reference internal" href="#greek-numerals">Greek numerals</a>.
+[<a class="reference external" href="usage.pdf">usage.pdf</a>]</p>
+</dd>
+<dt>test-*</dt>
+<dd><p>Documented test sample documents.</p>
+</dd>
+</dl>
+</section>
+<section id="requirements">
+<h2><a class="toc-backref" href="#toc-entry-2" role="doc-backlink">Requirements</a></h2>
+<p>The <cite>babel-greek</cite> package requires the <a class="reference external" href="https://ctan.org/pkg/babel">Babel</a> package and font
+definition files from the <a class="reference external" href="https://ctan.org/pkg/greek-fontenc">greek-fontenc</a> package. The <a class="reference external" href="https://ctan.org/pkg/greek-inputenc">greek-inputenc</a>
+package is recommended when using 8-bit TeX engines.</p>
+<p>Typesetting Greek texts requires <a class="reference internal" href="#greek-text-fonts">Greek text fonts</a>.</p>
+<p>Plain TeX is currently not supported. Patches are welcome.</p>
+</section>
+<section id="download-and-installation">
+<h2><a class="toc-backref" href="#toc-entry-3" role="doc-backlink">Download and Installation</a></h2>
+<p>The simplest way is to get and install this package from your
+distribution using its installation manager.</p>
+<p>Alternatively:</p>
+<ul>
+<li><p>Download the latest <a class="reference external" href="https://mirrors.ctan.org/macros/latex/contrib/babel-contrib/greek.zip">release</a> from the package’s <a class="reference external" href="https://www.ctan.org/pkg/babel-greek">CTAN page</a> or a
+<a class="reference external" href="https://codeberg.org/milde/greek-tex/archive/master.zip">snapshot</a> of the <a class="reference external" href="https://codeberg.org/milde/greek-tex/">greek-tex</a> repository.</p></li>
+<li><p>Unpack the source archive to a temporary location.</p></li>
+<li><p>From the <span class="docutils literal"><span class="pre">babel-greek</span></span> directory,
+run <span class="docutils literal">tex</span> or <span class="docutils literal">latex</span> on the batch file <span class="docutils literal"><span class="pre">babel-greek.ins</span></span>.</p>
+<p>This will generate the files <span class="docutils literal">greek.ldf</span>, <span class="docutils literal">athnum.sty</span>, and
+<span class="docutils literal">grmath.sty</span> in the current directory.</p>
+</li>
+<li><p>Move all files ending in <span class="docutils literal">.ldf</span> or <span class="docutils literal">.sty</span> into a directory
+in the TeX search path.</p></li>
+<li><p>To produce the documentation, run the file <span class="docutils literal">usage.tex</span> and all files
+ending in <span class="docutils literal">.dtx</span> through LaTeX.</p></li>
+</ul>
+<p>The last steps can be automated using the Unix <a class="reference external" href="https://en.wikipedia.org/wiki/Make_(software)">make</a> tool.
+The provided <a class="reference external" href="Makefile">Makefile</a> defines the targets</p>
+<dl class="field-list simple">
+<dt><span class="docutils literal">all</span><span class="colon">:</span></dt>
+<dd><p>(re)build packages, documentation, and tests,</p>
+</dd>
+<dt><span class="docutils literal">packages</span><span class="colon">:</span></dt>
+<dd><p>(re)build the packages,</p>
+</dd>
+<dt><span class="docutils literal">doc</span><span class="colon">:</span></dt>
+<dd><p>(re)generate HTML and PDF documentation files,</p>
+</dd>
+<dt><span class="docutils literal">test</span><span class="colon">:</span></dt>
+<dd><p>run LaTeX on the test documents,</p>
+</dd>
+<dt><span class="docutils literal">update</span><span class="colon">:</span></dt>
+<dd><p>copy packages into a local TeX tree,<a class="footnote-reference superscript" href="#update" id="footnote-reference-1" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a></p>
+</dd>
+<dt><span class="docutils literal"><span class="pre">update-package</span></span><span class="colon">:</span></dt>
+<dd><p>copy documentation and sources into a local
+TeX tree,<a class="footnote-reference superscript" href="#update" id="footnote-reference-2" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a></p>
+</dd>
+<dt><span class="docutils literal">clean</span><span class="colon">:</span></dt>
+<dd><p>delete auxiliary files.</p>
+</dd>
+</dl>
+<aside class="footnote-list superscript">
+<aside class="footnote superscript" id="update" role="doc-footnote">
+<span class="label"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></span>
+<span class="backrefs">(<a role="doc-backlink" href="#footnote-reference-1">1</a>,<a role="doc-backlink" href="#footnote-reference-2">2</a>)</span>
+<p>This is a simple <span class="docutils literal">cp <span class="pre">--update</span></span> to a pre-set path.
+The destination directory must exist. Files no longer present in the
+package are not removed.</p>
+</aside>
+</aside>
+</section>
+<section id="usage">
+<h2><a class="toc-backref" href="#toc-entry-4" role="doc-backlink">Usage</a></h2>
+<p>Use the “greek” document option or pass the “greek” option to Babel,<a class="footnote-reference superscript" href="#footnote-1" id="footnote-reference-3" role="doc-noteref"><span class="fn-bracket">[</span>2<span class="fn-bracket">]</span></a>
+e.g.:</p>
+<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[greek,english]</span><span class="name builtin">{</span>babel<span class="name builtin">}</span></code></pre>
+<p>For polytonic Greek, set the language attribute “polutoniko”, either
+after loading Babel</p>
+<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[greek,english]</span><span class="name builtin">{</span>babel<span class="name builtin">}</span>
+<span class="keyword">\languageattribute</span><span class="name builtin">{</span>greek<span class="name builtin">}{</span>polutoniko<span class="name builtin">}</span></code></pre>
+<p>or as modifier</p>
+<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[greek.polutoniko,english]</span><span class="name builtin">{</span>babel<span class="name builtin">}</span></code></pre>
+<p>Similarly, the attribute “ancient” selects the ancient Greek language
+variant.</p>
+<p>For details see <a class="citation-reference" href="#" id="citation-reference-1" role="doc-biblioref">[babel-greek.pdf]</a> and the <a class="reference external" href="https://ctan.org/pkg/babel">babel</a> documentation.</p>
+<p>Input of Greek characters is possible as literal characters (α … Ω)<a class="footnote-reference superscript" href="#footnote-2" id="footnote-reference-4" role="doc-noteref"><span class="fn-bracket">[</span>3<span class="fn-bracket">]</span></a>, as LICR macro (<span class="docutils literal">\textalpha{} ... \textOmega</span>), or via the <a class="reference internal" href="#lgr-latin-transliteration">LGR
+Latin transliteration</a> (a … W)<a class="footnote-reference superscript" href="#footnote-3" id="footnote-reference-5" role="doc-noteref"><span class="fn-bracket">[</span>4<span class="fn-bracket">]</span></a>. See
+<a class="citation-reference" href="#" id="citation-reference-2" role="doc-biblioref">[usage.pdf]</a> and the example files provided with <a class="reference external" href="https://ctan.org/pkg/greek-fontenc">greek-fontenc</a>.</p>
+<aside class="footnote-list superscript">
+<aside class="footnote superscript" id="footnote-1" role="doc-footnote">
+<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#footnote-reference-3">2</a><span class="fn-bracket">]</span></span>
+<p>Alongside other languages that will be used in the document.
+The <em>last</em> language option sets the document’s main language.</p>
+</aside>
+<aside class="footnote superscript" id="footnote-2" role="doc-footnote">
+<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#footnote-reference-4">3</a><span class="fn-bracket">]</span></span>
+<p>with the <a class="reference external" href="https://ctan.org/pkg/greek-inputenc">greek-inputenc</a> package or XeTeX/LuaTeX</p>
+</aside>
+<aside class="footnote superscript" id="footnote-3" role="doc-footnote">
+<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#footnote-reference-5">4</a><span class="fn-bracket">]</span></span>
+<p>only with LGR fonts</p>
+</aside>
+</aside>
+</section>
+<section id="greek-text-fonts">
+<h2><a class="toc-backref" href="#toc-entry-5" role="doc-backlink">Greek text fonts</a></h2>
+<p>A list of <a class="reference external" href="https://ctan.org/topic/font-greek">Greek text fonts for use with LaTeX</a> is available at CTAN.</p>
+<p>The non-standard LGR <a class="reference external" href="https://mirrors.ctan.org/macros/latex/base/encguide.pdf">font encoding</a> is used for typesetting Greek with
+“traditional” 8-bit TeX engines (pdfTeX). Fonts in this encoding include
+the <a class="reference external" href="https://ctan.org/pkg/cbgreek-complete">CB fonts</a> (matching CM), <a class="reference external" href="https://ctan.org/pkg/grtimes">grtimes</a> (Greek Times), <a class="reference external" href="https://ctan.org/pkg/kerkis">Kerkis</a> (matching
+URW Bookman), and the <a class="reference external" href="https://ctan.org/pkg/gfs">GFS font collection</a>.
+The package <a class="reference external" href="https://ctan.org/pkg/cbfonts-fd">cbfonts-fd</a> registers the CB fonts as Greek substitute for
+the Computer Modern and Latin Modern font families. For other font
+families, declaring Greek fonts as supplement for matching Latin font
+families can be done with the <code class="latex">\DeclareFontFamilySubstitution</code>
+macro (see section <cite>Providing font family substitutions</cite> in <a class="citation-reference" href="#fntguide" id="citation-reference-3" role="doc-biblioref">[fntguide]</a>).</p>
+<p>Unicode fonts used with XeTeX or LuaTeX provide slots for all Unicode
+characters in one font but commonly only a subset of the actual glyphs.</p>
+<aside class="admonition warning">
+<p class="admonition-title">Warning</p>
+<p>The default <strong>Latin Modern contains only a few Greek letters!</strong>
+Unsupported characters are silently dropped from the output.
+Warnings about missing glyphs are written to the log
+file only, not to the console.</p>
+</aside>
+<p>Select a suitable font with <a class="reference external" href="https://ctan.org/pkg/babel">Babel</a>’s font selecting framework or
+directly with <a class="reference external" href="https://ctan.org/pkg/fontspec">fontspec</a>. Examples for suitable fonts are <a class="reference external" href="https://ctan.org/pkg/cm-unicode">CM-unicode</a>
+or <a class="reference external" href="https://ctan.org/pkg/libertine">Linux Libertine</a> as well as any system-wide installed OTF font
+that supports Greek (e.g. <a class="reference external" href="http://dejavu-fonts.org">Deja Vu</a>). See, e.g., the list of free
+<a class="reference external" href="https://fontinfo.opensuse.org/scripts/script-Greek.html">fonts supporting Greek script</a> by openSUSE’s fontinfo.</p>
+</section>
+<section id="lgr-latin-transliteration">
+<h2><a class="toc-backref" href="#toc-entry-6" role="doc-backlink">LGR Latin Transliteration</a></h2>
+<p>The LGR font encoding allows input of Greek characters via a Latin
+transliteration. This enables simple input with a Latin keyboard. Characters
+with diacritics may be selected with accent macros (cf. <a class="reference external" href="https://ctan.org/pkg/greek-fontenc">greek-fontenc</a>) or
+via the ligature definitions in the font (see <a class="citation-reference" href="#" id="citation-reference-4" role="doc-biblioref">[usage.pdf]</a>).</p>
+<p>The following ASCII characters are converted to Greek symbols:</p>
+<table>
+<tbody>
+<tr><td><p>A</p></td>
+<td><p>B</p></td>
+<td><p>G</p></td>
+<td><p>D</p></td>
+<td><p>E</p></td>
+<td><p>Z</p></td>
+<td><p>H</p></td>
+<td><p>J</p></td>
+<td><p>I</p></td>
+<td><p>K</p></td>
+<td><p>L</p></td>
+<td><p>M</p></td>
+<td><p>N</p></td>
+<td><p>X</p></td>
+<td><p>O</p></td>
+<td><p>P</p></td>
+<td><p>R</p></td>
+<td><p>S</p></td>
+<td></td>
+<td><p>T</p></td>
+<td><p>U</p></td>
+<td><p>F</p></td>
+<td><p>Q</p></td>
+<td><p>Y</p></td>
+<td><p>W</p></td>
+</tr>
+<tr><td><p>Α</p></td>
+<td><p>Β</p></td>
+<td><p>Γ</p></td>
+<td><p>Δ</p></td>
+<td><p>Ε</p></td>
+<td><p>Ζ</p></td>
+<td><p>Η</p></td>
+<td><p>Θ</p></td>
+<td><p>Ι</p></td>
+<td><p>Κ</p></td>
+<td><p>Λ</p></td>
+<td><p>Μ</p></td>
+<td><p>Ν</p></td>
+<td><p>Ξ</p></td>
+<td><p>Ο</p></td>
+<td><p>Π</p></td>
+<td><p>Ρ</p></td>
+<td><p>Σ</p></td>
+<td></td>
+<td><p>Τ</p></td>
+<td><p>Υ</p></td>
+<td><p>Φ</p></td>
+<td><p>Χ</p></td>
+<td><p>Ψ</p></td>
+<td><p>Ω</p></td>
+</tr>
+<tr><td><p>a</p></td>
+<td><p>b</p></td>
+<td><p>g</p></td>
+<td><p>d</p></td>
+<td><p>e</p></td>
+<td><p>z</p></td>
+<td><p>h</p></td>
+<td><p>j</p></td>
+<td><p>i</p></td>
+<td><p>k</p></td>
+<td><p>l</p></td>
+<td><p>m</p></td>
+<td><p>n</p></td>
+<td><p>x</p></td>
+<td><p>o</p></td>
+<td><p>p</p></td>
+<td><p>r</p></td>
+<td><p>s</p></td>
+<td><p>c</p></td>
+<td><p>t</p></td>
+<td><p>u</p></td>
+<td><p>f</p></td>
+<td><p>q</p></td>
+<td><p>y</p></td>
+<td><p>w</p></td>
+</tr>
+<tr><td><p>α</p></td>
+<td><p>β</p></td>
+<td><p>γ</p></td>
+<td><p>δ</p></td>
+<td><p>ε</p></td>
+<td><p>ζ</p></td>
+<td><p>η</p></td>
+<td><p>θ</p></td>
+<td><p>ι</p></td>
+<td><p>κ</p></td>
+<td><p>λ</p></td>
+<td><p>μ</p></td>
+<td><p>ν</p></td>
+<td><p>ξ</p></td>
+<td><p>ο</p></td>
+<td><p>π</p></td>
+<td><p>ρ</p></td>
+<td><p>σ</p></td>
+<td><p>ς</p></td>
+<td><p>τ</p></td>
+<td><p>υ</p></td>
+<td><p>φ</p></td>
+<td><p>χ</p></td>
+<td><p>ψ</p></td>
+<td><p>ω</p></td>
+</tr>
+</tbody>
+</table>
+<p>Accent symbols and punctuation:</p>
+<table>
+<tbody>
+<tr><td><p>tonos</p></td>
+<td><p><span class="docutils literal">'a</span></p></td>
+<td><p>ά</p></td>
+<td><p>right apostrophe</p></td>
+<td><p><span class="docutils literal">''</span></p></td>
+<td><p>’</p></td>
+</tr>
+<tr><td><p>varia</p></td>
+<td><p><span class="docutils literal">`a</span></p></td>
+<td><p>ὰ</p></td>
+<td><p>left apostrophe</p></td>
+<td><p>``</p></td>
+<td><p>‘</p></td>
+</tr>
+<tr><td><p>dasia</p></td>
+<td><p><span class="docutils literal">&lt;a</span></p></td>
+<td><p>ἁ</p></td>
+<td><p>left quotation mark</p></td>
+<td><p><span class="docutils literal">((</span></p></td>
+<td><p>«</p></td>
+</tr>
+<tr><td><p>psili</p></td>
+<td><p><span class="docutils literal">&gt;a</span></p></td>
+<td><p>ἀ</p></td>
+<td><p>right quotation mark</p></td>
+<td><p><span class="docutils literal">))</span></p></td>
+<td><p>»</p></td>
+</tr>
+<tr><td><p>perispomeni</p></td>
+<td><p><span class="docutils literal">\~a</span></p></td>
+<td><p>ᾶ</p></td>
+<td><p>erotimatiko</p></td>
+<td><p><span class="docutils literal">?</span></p></td>
+<td><p>;</p></td>
+</tr>
+<tr><td><p>dialytika</p></td>
+<td><p><span class="docutils literal">&quot;i</span></p></td>
+<td><p>ϊ</p></td>
+<td><p>middle dot</p></td>
+<td><p><span class="docutils literal">;</span></p></td>
+<td><p>·</p></td>
+</tr>
+<tr><td><p>ypogegrammeni</p></td>
+<td><p><span class="docutils literal">a|</span></p></td>
+<td><p>ᾳ</p></td>
+<td><p>zero width non-joiner</p></td>
+<td><p><span class="docutils literal">av|</span></p></td>
+<td><p>αͺ</p></td>
+</tr>
+</tbody>
+</table>
+<p>The downside is, that you cannot print Latin letters and some symbols if
+LGR is the active font encoding. This means that for every Latin-written
+word or acronym in a Greek text part, an explicit font encoding switch is
+required.</p>
+</section>
+<section id="greek-numerals">
+<h2><a class="toc-backref" href="#toc-entry-7" role="doc-backlink">Greek Numerals</a></h2>
+<p><cite>babel-greek</cite> provides the macros <code class="latex">\greeknumeral</code> and
+<code class="latex">\Greeknumeral</code> to transform a number into its corresponding
+<a class="reference external" href="https://en.wikipedia.org/wiki/Greek_numerals">Greek numeral</a>
+(see also section <a class="reference external" href="http://mirrors.ctan.org/macros/latex/contrib/babel-contrib/greek/babel-greek.pdf#greek-numbering">Greek numbering</a> in the PDF documentation).</p>
+<p>The classic <cite>Greek numerals</cite>, also known as Ionic, Ionian, Milesian, or
+Alexandrian numerals were introduced to Athens along with the Ionic alphabet
+from the city of Miletus in Ionia replacing the <a class="reference external" href="https://en.wikipedia.org/wiki/Attic_numerals">Attic numerals</a>.
+They are still used in everyday life for ordinal numbers and
+more generally by the Orthodox church and certain scholars.</p>
+<p>Greek numerals use several now obsolete letters:
+<a class="reference external" href="https://en.wikipedia.org/wiki/Digamma">digamma</a> ϝ or <a class="reference external" href="https://en.wikipedia.org/wiki/Stigma_(ligature)">stigma</a> ϛ, <a class="reference external" href="https://en.wikipedia.org/wiki/Koppa_(letter)">koppa</a> ϟ or ϙ, and <a class="reference external" href="https://en.wikipedia.org/wiki/Sampi">sampi</a> ϡ <a class="citation-reference" href="#nicholas-05" id="citation-reference-5" role="doc-biblioref">[Nicholas-05]</a>.</p>
+<ul>
+<li><p>Standing for 6 is the <a class="reference external" href="https://en.wikipedia.org/wiki/Digamma">digamma</a> ϝ, the sixth letter of the Ionic
+alphabet (just as its Latin equivalent F is the sixth letter of the
+Latin alphabet). As Greek script turned to uncial and then lowercase,
+the numeral changed its shape and became conflated with another,
+similar sign: the ligature for sigma-tau <a class="reference external" href="https://en.wikipedia.org/wiki/Stigma_(ligature)">stigma</a> ϛ.
+The letters στ are frequently used as replacement.</p>
+<p>There is no significant tradition of ϝ being used as a numeral in
+editions of classical texts, even though the Ancients clearly used
+digamma rather than stigma as their numeral.</p>
+</li>
+<li><p>Three different signs are in use for the number 90: Classicists use the
+“archaic <a class="reference external" href="https://en.wikipedia.org/wiki/Koppa_(letter)">koppa</a>” ϙ, and more rarely its uncial form (resembling the
+“<a class="reference external" href="https://en.wikipedia.org/wiki/Koppa_(Cyrillic)">Cyrillic letter koppa</a>” ҁ or the “Gothic letter ninety” 𐍁).
+Modern Greeks use the “Greek letter koppa” ϟ exclusively and
+do not recognise ϙ at all, let alone as a glyph variant of ϟ.</p></li>
+<li><p>The sign for the number 900 is the <a class="reference external" href="https://en.wikipedia.org/wiki/Sampi">sampi</a> ϡ. Its shape, developed
+during its use in minuscule handwriting of the Byzantine era. Earlier
+variants similar to the “archaic sampi” ͳ and the “Gothic Letter Nine
+Hundred” 𐍊 are not used in Greek.</p></li>
+</ul>
+<p>Users can redefine the macros <code class="latex">\greeknumeralsix</code>,
+<code class="latex">\greeknumeralSix</code>, <code class="latex">\greeknumeralninety</code>, and
+<code class="latex">\greeknumeralNinety</code> to configure the used symbols,
+for example</p>
+<pre class="code latex literal-block"><code><span class="keyword">\renewcommand</span><span class="name builtin">{</span><span class="keyword">\greeknumeralninety</span><span class="name builtin">}{</span><span class="keyword">\textkoppa</span><span class="name builtin">}</span>
+<span class="keyword">\renewcommand</span><span class="name builtin">{</span><span class="keyword">\greeknumeralNinety</span><span class="name builtin">}{</span><span class="keyword">\textKoppa</span><span class="name builtin">}</span>
+<span class="keyword">\ifdefined</span> <span class="keyword">\textvarstigma</span>
+ <span class="keyword">\renewcommand</span><span class="name builtin">{</span><span class="keyword">\greeknumeralSix</span><span class="name builtin">}{</span><span class="keyword">\textvarstigma</span><span class="name builtin">}</span>
+<span class="keyword">\fi</span></code></pre>
+<p>sets the symbol for 90 to the “modern” koppa ϟ also for ancient Greek
+and the “capital” 6 symbol to the variant stigma glyph (only defined in LGR).</p>
+</section>
+<section id="changelog">
+<h2><a class="toc-backref" href="#toc-entry-8" role="doc-backlink">Changelog</a></h2>
+<dl class="simple">
+<dt>1.4 (2013-05-17)</dt>
+<dd><ul class="simple">
+<li><p>New maintainer.</p></li>
+<li><p>The encoding definition file <span class="docutils literal">lgrenc.def</span> moved to the
+<a class="reference external" href="https://ctan.org/pkg/greek-fontenc">greek-fontenc</a> package.</p></li>
+</ul>
+</dd>
+<dt>1.5 (2013-06-21)</dt>
+<dd><ul class="simple">
+<li><p>Bugfixes and cleanup.</p></li>
+<li><p>LICR macros in string definitions.</p></li>
+<li><p>LGR font encoding not used with XeTeX/LuaTeX.</p></li>
+<li><p>Input “xgreek-fixes.def” from <a class="reference external" href="https://ctan.org/pkg/polyglossia">polyglossia</a> with Xe/LuaTeX.</p></li>
+</ul>
+</dd>
+<dt>1.5a (2013-07-02)</dt>
+<dd><ul class="simple">
+<li><p>Fix LaTeX bugs babel/3707, <a class="reference external" href="http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4303">babel/4303</a> and <a class="reference external" href="http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4305">babel/4305</a></p></li>
+</ul>
+</dd>
+<dt>1.6 (2013-07-19)</dt>
+<dd><ul class="simple">
+<li><p>Experimental support for XeTeX/LuaTeX.</p></li>
+</ul>
+</dd>
+<dt>1.7 (2013-09-09)</dt>
+<dd><ul class="simple">
+<li><p>CB-Fonts font definition files moved to CB-Fonts package.</p></li>
+<li><p>Do not auto-load euenc.def with XeTeX/LuaTeX.</p></li>
+</ul>
+</dd>
+<dt>1.7a (2013-09-13)</dt>
+<dd><ul class="simple">
+<li><p>Fix bug <a class="reference external" href="http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4360">babel/4360</a>: spurious <span class="docutils literal">\fi</span>.</p></li>
+</ul>
+</dd>
+<dt>1.7b (2013-10-01)</dt>
+<dd><ul class="simple">
+<li><p>Fix upcasing of babel strings with Xe/LuaTeX.</p></li>
+</ul>
+</dd>
+<dt>1.8 (2013-12-02)</dt>
+<dd><ul class="simple">
+<li><p>Rename <span class="docutils literal">greek.dtx</span> to <span class="docutils literal"><span class="pre">babel-greek</span></span> so that <a class="reference external" href="https://ctan.org/pkg/texdoc">texdoc</a>
+shows the right documentation.</p></li>
+<li><p>Compatibility with Xe/LuaTeX in Unicode and 8-bit mode.</p></li>
+</ul>
+</dd>
+<dt>1.8a (2013-12-03)</dt>
+<dd><ul class="simple">
+<li><p>Set <span class="docutils literal">\encodingdefault</span> in <span class="docutils literal">\greekscript</span> to fix Greek
+in footnotes etc. with document language Greek.</p></li>
+</ul>
+</dd>
+<dt>1.9 (2014-07-20)</dt>
+<dd><ul class="simple">
+<li><p>New attribute for ancient Greek, load correct hyphenation
+patterns (patch by Claudio Beccari).</p></li>
+<li><p>Bugfix for <span class="docutils literal">\Makeuppercase</span></p></li>
+</ul>
+</dd>
+<dt>1.9a (2014-09-12)</dt>
+<dd><ul class="simple">
+<li><p>Remove duplicate code, documentation review.</p></li>
+</ul>
+</dd>
+<dt>1.9b (2014-09-18)</dt>
+<dd><ul class="simple">
+<li><p>Remove spurious whitespace from <span class="docutils literal">\extrasgreek</span> definition.</p></li>
+<li><p>Use named macros instead of non-standard short macros
+for <em>psili</em> and <em>dasia</em> in the string definitions.</p></li>
+</ul>
+</dd>
+<dt>1.9c (2014-10-21)</dt>
+<dd><ul class="simple">
+<li><p>Fix dummy hyphenation language names (patch by Ulrike Fischer).</p></li>
+</ul>
+</dd>
+<dt>1.9d (2015-09-04)</dt>
+<dd><ul class="simple">
+<li><p>Remove <cite>grsymb</cite> (macros for Greek symbols).
+This package is outdated and obsoleted by <a class="reference external" href="https://ctan.org/pkg/greek-fontenc">greek-fontenc</a>
+(reported by Claudio Beccari).</p></li>
+<li><p>Unicode uc/lc corrections now in <cite>greek-fontenc</cite>.</p></li>
+</ul>
+</dd>
+<dt>1.9e (2015-11-27)</dt>
+<dd><ul class="simple">
+<li><p>Fix bug in lccode-setting loop (patch by Enrico Gregorio).</p></li>
+</ul>
+</dd>
+<dt>1.9f (2016-02-04)</dt>
+<dd><ul class="simple">
+<li><p>Support for new standard Unicode text font encoding “TU”.</p></li>
+</ul>
+</dd>
+<dt>1.9g (2016-09-07)</dt>
+<dd><ul class="simple">
+<li><p>Babel 3.9i deprecated <span class="docutils literal">\textlatin</span> and fixed <span class="docutils literal">\latinencoding</span>.
+1.9h (2019-07-11)</p></li>
+<li><p>Move breathing composite commands to <a class="reference external" href="https://ctan.org/pkg/greek-fontenc">textalpha</a>.</p></li>
+</ul>
+</dd>
+<dt>1.9i (2020-02-28)</dt>
+<dd><ul class="simple">
+<li><p>Update test for Unicode fonts.</p></li>
+<li><p>Fix accent in <span class="docutils literal">\seename</span> and <span class="docutils literal">\alsoname</span>.</p></li>
+</ul>
+</dd>
+<dt>1.9j (2020-03-17)</dt>
+<dd><ul class="simple">
+<li><p>Fix ampersand in math mode.</p></li>
+</ul>
+</dd>
+<dt>1.10 (2020-11-10)</dt>
+<dd><ul class="simple">
+<li><p>Use <span class="docutils literal">TU</span> as <span class="docutils literal">\greekfontencoding</span> for Xe/LuaTeX (set by LaTeX as
+<a class="reference external" href="https://www.latex-project.org/news/latex2e-news/ltnews26.pdf">default font encoding for Unicode engines</a> since 2017/01/01).</p></li>
+<li><p>Use zig-zaggy <span class="docutils literal">\textkoppa</span> for <span class="docutils literal">\greeknumeral{90}</span>.</p></li>
+<li><p>PDF-string secure implementation of <span class="docutils literal">\greeknumeral</span> from <a class="reference external" href="https://ctan.org/pkg/hyperref">hyperref</a>.</p></li>
+<li><p>Load <span class="docutils literal"><span class="pre">puenc-greek.def</span></span> (from <a class="reference external" href="https://ctan.org/pkg/greek-fontenc">greek-fontenc</a>) if used with hyperref
+(polytonic Greek in PDF-strings).</p></li>
+</ul>
+</dd>
+<dt>1.11 (2020-11-20)</dt>
+<dd><ul class="simple">
+<li><p>Configurable <a class="reference internal" href="#greek-numerals">Greek numerals</a> 6 and 90.</p></li>
+<li><p>Save/restore previous font encoding instead of switching
+to hard-coded <span class="docutils literal">\latinencoding</span> when leaving Greek.</p></li>
+</ul>
+</dd>
+<dt>1.12 (2023-03-04)</dt>
+<dd><ul class="simple">
+<li><p>Do not change the uccode values if the LaTeX version is newer than
+2022/06. The new <span class="docutils literal">\MakeUppercase</span> definition ignores them and fails
+with the “dummy” character 0x9f (cf. <a class="citation-reference" href="#ltnews35" id="citation-reference-6" role="doc-biblioref">[ltnews35]</a>, <a class="reference external" href="https://github.com/latex3/latex2e/issues/987">LaTeX issue 987</a>).</p></li>
+<li><p>New modifiers <span class="docutils literal"><span class="pre">local-LGR-fixes</span></span> and <span class="docutils literal"><span class="pre">no-LGR-fixes</span></span> to address
+indexing problmes with Roman numerals (<a class="reference external" href="https://github.com/latex3/babel/issues/170">Babel issue 170</a>). Provisional.</p></li>
+<li><p>New TextCommand <span class="docutils literal">\EnsureStandardFontEncoding</span>.</p></li>
+<li><p>Rename <span class="docutils literal">\textgreek</span> to <span class="docutils literal">\lgrfont</span> to avoid confusion with a
+language changing command.</p></li>
+<li><p>Documentation update and refactoring.</p></li>
+<li><p>Drop LGR-local re-definition of <span class="docutils literal">\SS</span>.</p></li>
+<li><p><a class="reference external" href="athnum.dtx">athnum.dtx</a> 2.0:
+Don’t require Babel.
+Use LICR macros instead of the Latin transliteration.</p></li>
+</ul>
+</dd>
+</dl>
+</section>
+<section id="references">
+<h2><a class="toc-backref" href="#toc-entry-9" role="doc-backlink">References</a></h2>
+<div role="list" class="citation-list">
+<div class="citation" id="fntguide" role="doc-biblioentry">
+<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#citation-reference-3">fntguide</a><span class="fn-bracket">]</span></span>
+<p>LaTeX Project Team <cite>LaTeX2e font selection</cite>, December 2021.
+<a class="reference external" href="https://www.latex-project.org/help/documentation/fntguide.pdf">https://www.latex-project.org/help/documentation/fntguide.pdf</a></p>
+</div>
+<div class="citation" id="ltnews35" role="doc-biblioentry">
+<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#citation-reference-6">ltnews35</a><span class="fn-bracket">]</span></span>
+<p>LaTeX Project Team <cite>LaTeX News 35</cite>, June 2022.
+<a class="reference external" href="https://www.latex-project.org/news/latex2e-news/ltnews35.pdf">https://www.latex-project.org/news/latex2e-news/ltnews35.pdf</a></p>
+</div>
+<div class="citation" id="nicholas-05" role="doc-biblioentry">
+<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#citation-reference-5">Nicholas-05</a><span class="fn-bracket">]</span></span>
+<p>Nick Nicholas <cite>Numerals: Stigma, Koppa, Sampi</cite>, 2005.
+<a class="reference external" href="https://opoudjis.net/unicode/numerals.html">https://opoudjis.net/unicode/numerals.html</a></p>
+</div>
+<div class="citation" id="vlachou-22" role="doc-biblioentry">
+<span class="label"><span class="fn-bracket">[</span>Vlachou-22<span class="fn-bracket">]</span></span>
+<p>Irene Vlachou
+<cite>Polytonic Greek: a guide for type designers</cite>, 2022.
+<a class="reference external" href="https://irenevl.github.io/Polytonic-tutorial/">https://irenevl.github.io/Polytonic-tutorial/</a></p>
+</div>
+<div class="citation" id="haralambous-98" role="doc-biblioentry">
+<span class="label"><span class="fn-bracket">[</span>Haralambous-98<span class="fn-bracket">]</span></span>
+<p>Yannis Haralambous
+<cite>From Unicode to Typography, a Case Study: the Greek Script</cite>, 1998.
+<a class="reference external" href="https://hal.science/hal-02101618">https://hal.science/hal-02101618</a></p>
+</div>
+</div>
+</section>
+</main>
+</body>
+</html>
diff --git a/Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.rst b/Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.rst
new file mode 100644
index 00000000000..fe62a4ff668
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/babel-greek-doc.rst
@@ -0,0 +1,414 @@
+babel-greek
+***********
+Babel support for the Greek language and script
+===============================================
+
+:Copyright: © 1997 Apostolos Syropoulos, Claudio Beccari, Johannes Brahms,
+ © 2013 -- 2022 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.
+
+:Home: https://codeberg.org/milde/greek-tex
+
+:Latest Release: https://ctan.org/pkg/babel-greek
+
+:Abstract: `babel-greek` is a contributed package providing comprehensive
+ support for the Greek language and script via the Babel_ system.
+ Document authors can select between the *monotonic*
+ (single-diacritic), *polytonic* (multiple-diacritic) and
+ *ancient* orthography of the Greek language.
+
+.. contents::
+
+Files
+-----
+
+`<babel-greek.dtx>`_
+ Source of the language definition file ``greek.ldf`` for use with Babel_.
+ [`<babel-greek.pdf>`_]
+`<athnum.dtx>`_
+ Athenian (Attic, Herodianic, or acrophonic) Numerals. [`<athnum.pdf>`_]
+`<grmath.dtx>`_
+ Greek log-like Operators. [`<grmath.pdf>`_]
+`<babel-greek.ins>`_
+ DocStrip_ batch file.
+`<usage.tex>`_
+ Description of the `LGR Latin transliteration`_ and the `Greek numerals`_.
+ [`<usage.pdf>`_]
+test-*
+ Documented test sample documents.
+
+
+Requirements
+------------
+
+The `babel-greek` package requires the Babel_ package and font
+definition files from the greek-fontenc_ package. The greek-inputenc_
+package is recommended when using 8-bit TeX engines.
+
+Typesetting Greek texts requires `Greek text fonts`_.
+
+Plain TeX is currently not supported. Patches are welcome.
+
+
+Download and Installation
+-------------------------
+
+The simplest way is to get and install this package from your
+distribution using its installation manager.
+
+Alternatively:
+
+* Download the latest `release`_ from the package's `CTAN page`_ or a
+ snapshot_ of the `greek-tex`_ repository.
+
+* Unpack the source archive to a temporary location.
+
+* From the ``babel-greek`` directory,
+ run ``tex`` or ``latex`` on the batch file ``babel-greek.ins``.
+
+ This will generate the files ``greek.ldf``, ``athnum.sty``, and
+ ``grmath.sty`` in the current directory.
+
+* Move all files ending in ``.ldf`` or ``.sty`` into a directory
+ in the TeX search path.
+
+* To produce the documentation, run the file ``usage.tex`` and all files
+ ending in ``.dtx`` through LaTeX.
+
+The last steps can be automated using the Unix `make`_ tool.
+The provided `<Makefile>`_ defines the targets
+
+:``all``: (re)build packages, documentation, and tests,
+:``packages``: (re)build the packages,
+:``doc``: (re)generate HTML and PDF documentation files,
+:``test``: run LaTeX on the test documents,
+:``update``: copy packages into a local TeX tree, [#update]_
+:``update-package``: copy documentation and sources into a local
+ TeX tree, [#update]_
+:``clean``: delete auxiliary files.
+
+.. [#update] This is a simple ``cp --update`` to a pre-set path.
+ The destination directory must exist. Files no longer present in the
+ package are not removed.
+
+.. _release:
+ https://mirrors.ctan.org/macros/latex/contrib/babel-contrib/greek.zip
+.. _CTAN page: https://www.ctan.org/pkg/babel-greek
+.. _greek-tex: https://codeberg.org/milde/greek-tex/
+.. _snapshot: https://codeberg.org/milde/greek-tex/archive/master.zip
+.. _make: https://en.wikipedia.org/wiki/Make_(software)
+
+
+Usage
+-----
+
+.. role:: latex(code)
+
+Use the "greek" document option or pass the "greek" option to Babel, [#]_
+e.g.:
+
+.. code:: latex
+
+ \usepackage[greek,english]{babel}
+
+For polytonic Greek, set the language attribute "polutoniko", either
+after loading Babel
+
+.. code:: latex
+
+ \usepackage[greek,english]{babel}
+ \languageattribute{greek}{polutoniko}
+
+or as modifier
+
+.. code:: latex
+
+ \usepackage[greek.polutoniko,english]{babel}
+
+Similarly, the attribute "ancient" selects the ancient Greek language
+variant.
+
+For details see [babel-greek.pdf]_ and the babel_ documentation.
+
+Input of Greek characters is possible as literal characters (α ... Ω)
+[#]_, as LICR macro (``\textalpha{} ... \textOmega``), or via the `LGR
+Latin transliteration`_ (a ... W) [#]_. See
+[usage.pdf]_ and the example files provided with greek-fontenc_.
+
+.. [#] Alongside other languages that will be used in the document.
+ The *last* language option sets the document's main language.
+.. [#] with the greek-inputenc_ package or XeTeX/LuaTeX
+.. [#] only with LGR fonts
+
+Greek text fonts
+----------------
+
+A list of `Greek text fonts for use with LaTeX`_ is available at CTAN.
+
+The non-standard LGR `font encoding`_ is used for typesetting Greek with
+"traditional" 8-bit TeX engines (pdfTeX). Fonts in this encoding include
+the `CB fonts`_ (matching CM), grtimes_ (Greek Times), Kerkis_ (matching
+URW Bookman), and the `GFS font collection`_.
+The package `cbfonts-fd`_ registers the CB fonts as Greek substitute for
+the Computer Modern and Latin Modern font families. For other font
+families, declaring Greek fonts as supplement for matching Latin font
+families can be done with the :latex:`\DeclareFontFamilySubstitution`
+macro (see section `Providing font family substitutions` in [fntguide]_).
+
+Unicode fonts used with XeTeX or LuaTeX provide slots for all Unicode
+characters in one font but commonly only a subset of the actual glyphs.
+
+.. Warning::
+ The default **Latin Modern contains only a few Greek letters!**
+ Unsupported characters are silently dropped from the output.
+ Warnings about missing glyphs are written to the log
+ file only, not to the console.
+
+Select a suitable font with Babel_'s font selecting framework or
+directly with fontspec_. Examples for suitable fonts are CM-unicode_
+or `Linux Libertine`_ as well as any system-wide installed OTF font
+that supports Greek (e.g. `Deja Vu`_). See, e.g., the list of free
+`fonts supporting Greek script`_ by openSUSE's fontinfo.
+
+.. _Greek text fonts for use with LaTeX: https://ctan.org/topic/font-greek
+.. _fonts supporting Greek script:
+ https://fontinfo.opensuse.org/scripts/script-Greek.html
+
+
+LGR Latin Transliteration
+-------------------------
+
+The LGR font encoding allows input of Greek characters via a Latin
+transliteration. This enables simple input with a Latin keyboard. Characters
+with diacritics may be selected with accent macros (cf. greek-fontenc_) or
+via the ligature definitions in the font (see [usage.pdf]_).
+
+The following ASCII characters are converted to Greek symbols:
+
+= = = = = = = = = = = = = = = = = = = = = = = = =
+A B G D E Z H J I K L M N X O P R S   T U F Q Y W
+Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ   Τ Υ Φ Χ Ψ Ω
+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
+α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω
+= = = = = = = = = = = = = = = = = = = = = = = = =
+
+Accent symbols and punctuation:
+
+============== ======= == ====================== ======= ==
+tonos ``'a`` ά right apostrophe ``''`` ’
+varia ```a`` ὰ left apostrophe \`\` ‘
+dasia ``<a`` ἁ left quotation mark ``((`` «
+psili ``>a`` ἀ right quotation mark ``))`` »
+perispomeni ``\~a`` ᾶ erotimatiko ``?`` ;
+dialytika ``"i`` ϊ middle dot ``;`` ·
+ypogegrammeni ``a|`` ᾳ zero width non-joiner ``av|`` αͺ
+============== ======= == ====================== ======= ==
+
+The downside is, that you cannot print Latin letters and some symbols if
+LGR is the active font encoding. This means that for every Latin-written
+word or acronym in a Greek text part, an explicit font encoding switch is
+required.
+
+
+Greek Numerals
+--------------
+
+`babel-greek` provides the macros :latex:`\greeknumeral` and
+:latex:`\Greeknumeral` to transform a number into its corresponding
+`Greek numeral <https://en.wikipedia.org/wiki/Greek_numerals>`__
+(see also section `Greek numbering`__ in the PDF documentation).
+
+__ http://mirrors.ctan.org/macros/latex/contrib/babel-contrib/
+ greek/babel-greek.pdf#greek-numbering
+
+
+The classic `Greek numerals`, also known as Ionic, Ionian, Milesian, or
+Alexandrian numerals were introduced to Athens along with the Ionic alphabet
+from the city of Miletus in Ionia replacing the `Attic numerals`_.
+They are still used in everyday life for ordinal numbers and
+more generally by the Orthodox church and certain scholars.
+
+Greek numerals use several now obsolete letters:
+digamma_ ϝ or stigma_ ϛ, koppa_ ϟ or ϙ, and sampi_ ϡ [Nicholas-05]_.
+
+* Standing for 6 is the digamma_ ϝ, the sixth letter of the Ionic
+ alphabet (just as its Latin equivalent F is the sixth letter of the
+ Latin alphabet). As Greek script turned to uncial and then lowercase,
+ the numeral changed its shape and became conflated with another,
+ similar sign: the ligature for sigma-tau stigma_ ϛ.
+ The letters στ are frequently used as replacement.
+
+ There is no significant tradition of ϝ being used as a numeral in
+ editions of classical texts, even though the Ancients clearly used
+ digamma rather than stigma as their numeral.
+
+* Three different signs are in use for the number 90: Classicists use the
+ "archaic koppa_" ϙ, and more rarely its uncial form (resembling the
+ "`Cyrillic letter koppa`_" ҁ or the "Gothic letter ninety" 𐍁).
+ Modern Greeks use the "Greek letter koppa" ϟ exclusively and
+ do not recognise ϙ at all, let alone as a glyph variant of ϟ.
+
+* The sign for the number 900 is the sampi_ ϡ. Its shape, developed
+ during its use in minuscule handwriting of the Byzantine era. Earlier
+ variants similar to the "archaic sampi" ͳ and the "Gothic Letter Nine
+ Hundred" 𐍊 are not used in Greek.
+
+Users can redefine the macros :latex:`\greeknumeralsix`,
+:latex:`\greeknumeralSix`, :latex:`\greeknumeralninety`, and
+:latex:`\greeknumeralNinety` to configure the used symbols,
+for example
+
+.. code:: latex
+
+ \renewcommand{\greeknumeralninety}{\textkoppa}
+ \renewcommand{\greeknumeralNinety}{\textKoppa}
+ \ifdefined \textvarstigma
+ \renewcommand{\greeknumeralSix}{\textvarstigma}
+ \fi
+
+sets the symbol for 90 to the "modern" koppa ϟ also for ancient Greek
+and the "capital" 6 symbol to the variant stigma glyph (only defined in LGR).
+
+.. _digamma: https://en.wikipedia.org/wiki/Digamma
+.. _stigma: https://en.wikipedia.org/wiki/Stigma_(ligature)
+.. _koppa: https://en.wikipedia.org/wiki/Koppa_(letter)
+.. _Cyrillic letter koppa: https://en.wikipedia.org/wiki/Koppa_(Cyrillic)
+.. _sampi: https://en.wikipedia.org/wiki/Sampi
+.. _Attic numerals: https://en.wikipedia.org/wiki/Attic_numerals
+
+
+Changelog
+---------
+
+1.4 (2013-05-17)
+ - New maintainer.
+ - The encoding definition file ``lgrenc.def`` moved to the
+ greek-fontenc_ package.
+1.5 (2013-06-21)
+ - Bugfixes and cleanup.
+ - LICR macros in string definitions.
+ - LGR font encoding not used with XeTeX/LuaTeX.
+ - Input "xgreek-fixes.def" from polyglossia_ with Xe/LuaTeX.
+1.5a (2013-07-02)
+ - Fix LaTeX bugs babel/3707, `babel/4303`_ and `babel/4305`_
+1.6 (2013-07-19)
+ - Experimental support for XeTeX/LuaTeX.
+1.7 (2013-09-09)
+ - CB-Fonts font definition files moved to CB-Fonts package.
+ - Do not auto-load euenc.def with XeTeX/LuaTeX.
+1.7a (2013-09-13)
+ - Fix bug `babel/4360`_: spurious ``\fi``.
+1.7b (2013-10-01)
+ - Fix upcasing of babel strings with Xe/LuaTeX.
+1.8 (2013-12-02)
+ - Rename ``greek.dtx`` to ``babel-greek`` so that texdoc_
+ shows the right documentation.
+ - Compatibility with Xe/LuaTeX in Unicode and 8-bit mode.
+1.8a (2013-12-03)
+ - Set ``\encodingdefault`` in ``\greekscript`` to fix Greek
+ in footnotes etc. with document language Greek.
+1.9 (2014-07-20)
+ - New attribute for ancient Greek, load correct hyphenation
+ patterns (patch by Claudio Beccari).
+ - Bugfix for ``\Makeuppercase``
+1.9a (2014-09-12)
+ - Remove duplicate code, documentation review.
+1.9b (2014-09-18)
+ - Remove spurious whitespace from ``\extrasgreek`` definition.
+ - Use named macros instead of non-standard short macros
+ for *psili* and *dasia* in the string definitions.
+1.9c (2014-10-21)
+ - Fix dummy hyphenation language names (patch by Ulrike Fischer).
+1.9d (2015-09-04)
+ - Remove `grsymb` (macros for Greek symbols).
+ This package is outdated and obsoleted by greek-fontenc_
+ (reported by Claudio Beccari).
+ - Unicode uc/lc corrections now in `greek-fontenc`.
+1.9e (2015-11-27)
+ - Fix bug in lccode-setting loop (patch by Enrico Gregorio).
+1.9f (2016-02-04)
+ - Support for new standard Unicode text font encoding "TU".
+1.9g (2016-09-07)
+ - Babel 3.9i deprecated ``\textlatin`` and fixed ``\latinencoding``.
+ 1.9h (2019-07-11)
+ - Move breathing composite commands to textalpha_.
+1.9i (2020-02-28)
+ - Update test for Unicode fonts.
+ - Fix accent in ``\seename`` and ``\alsoname``.
+1.9j (2020-03-17)
+ - Fix ampersand in math mode.
+1.10 (2020-11-10)
+ - Use ``TU`` as ``\greekfontencoding`` for Xe/LuaTeX (set by LaTeX as
+ `default font encoding for Unicode engines`_ since 2017/01/01).
+ - Use zig-zaggy ``\textkoppa`` for ``\greeknumeral{90}``.
+ - PDF-string secure implementation of ``\greeknumeral`` from hyperref_.
+ - Load ``puenc-greek.def`` (from greek-fontenc_) if used with hyperref
+ (polytonic Greek in PDF-strings).
+1.11 (2020-11-20)
+ - Configurable `Greek numerals`_ 6 and 90.
+ - Save/restore previous font encoding instead of switching
+ to hard-coded ``\latinencoding`` when leaving Greek.
+1.12 (2023-03-04)
+ - Do not change the uccode values if the LaTeX version is newer than
+ 2022/06. The new ``\MakeUppercase`` definition ignores them and fails
+ with the "dummy" character 0x9f (cf. [ltnews35]_, `LaTeX issue 987`_).
+ - New modifiers ``local-LGR-fixes`` and ``no-LGR-fixes`` to address
+ indexing problmes with Roman numerals (`Babel issue 170`_). Provisional.
+ - New TextCommand ``\EnsureStandardFontEncoding``.
+ - Rename ``\textgreek`` to ``\lgrfont`` to avoid confusion with a
+ language changing command.
+ - Documentation update and refactoring.
+ - Drop LGR-local re-definition of ``\SS``.
+ - `athnum.dtx`_ 2.0:
+ Don't require Babel.
+ Use LICR macros instead of the Latin transliteration.
+
+.. _babel/4303: http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4303
+.. _babel/4305: http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4305
+.. _babel/4360: http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=babel/4360
+.. _Babel issue 170: https://github.com/latex3/babel/issues/170
+.. _LaTeX issue 987: https://github.com/latex3/latex2e/issues/987
+.. _default font encoding for Unicode engines:
+ https://www.latex-project.org/news/latex2e-news/ltnews26.pdf
+
+
+References
+----------
+
+.. [fntguide] LaTeX Project Team `LaTeX2e font selection`, December 2021.
+ https://www.latex-project.org/help/documentation/fntguide.pdf
+.. [ltnews35] LaTeX Project Team `LaTeX News 35`, June 2022.
+ https://www.latex-project.org/news/latex2e-news/ltnews35.pdf
+.. [Nicholas-05] Nick Nicholas `Numerals: Stigma, Koppa, Sampi`, 2005.
+ https://opoudjis.net/unicode/numerals.html
+.. [Vlachou-22] Irene Vlachou
+ `Polytonic Greek: a guide for type designers`, 2022.
+ https://irenevl.github.io/Polytonic-tutorial/
+.. [Haralambous-98] Yannis Haralambous
+ `From Unicode to Typography, a Case Study: the Greek Script`, 1998.
+ https://hal.science/hal-02101618
+
+.. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt
+.. _babel: https://ctan.org/pkg/babel
+.. _docstrip: https://ctan.org/pkg/docstrip
+.. _font encoding: https://mirrors.ctan.org/macros/latex/base/encguide.pdf
+.. _fontspec: https://ctan.org/pkg/fontspec
+.. _fontenc: https://ctan.org/pkg/fontenc
+.. _CB Fonts: https://ctan.org/pkg/cbgreek-complete
+.. _cbfonts-fd: https://ctan.org/pkg/cbfonts-fd
+.. _CM-unicode: https://ctan.org/pkg/cm-unicode
+.. _Deja Vu: http://dejavu-fonts.org
+.. _e-TeX: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex
+.. _grtimes: https://ctan.org/pkg/grtimes
+.. _hyperref: https://ctan.org/pkg/hyperref
+.. _textalpha:
+.. _greek-fontenc: https://ctan.org/pkg/greek-fontenc
+.. _greek-inputenc: https://ctan.org/pkg/greek-inputenc
+.. _GFS font collection: https://ctan.org/pkg/gfs
+.. _Kerkis: https://ctan.org/pkg/kerkis
+.. _Linux Libertine: https://ctan.org/pkg/libertine
+.. _polyglossia: https://ctan.org/pkg/polyglossia
+.. _substitutefont: https://ctan.org/pkg/substitutefont
+.. _texdoc: https://ctan.org/pkg/texdoc
diff --git a/Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdf b/Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdf
index be0ffa02436..067c3d11b18 100644
--- a/Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdf
+++ b/Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/grmath.pdf b/Master/texmf-dist/doc/generic/babel-greek/grmath.pdf
index b97893d1954..aff6edf0362 100644
--- a/Master/texmf-dist/doc/generic/babel-greek/grmath.pdf
+++ b/Master/texmf-dist/doc/generic/babel-greek/grmath.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.pdf
deleted file mode 100644
index 7fcbc9a0f5a..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.tex b/Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.tex
deleted file mode 100644
index ea8812b5b36..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-8bit-greek.tex
+++ /dev/null
@@ -1,422 +0,0 @@
-\documentclass[a4paper]{article}
-
-\usepackage[LGR,T1]{fontenc}
-\usepackage[utf8]{luainputenc}
-% XeTeX in 8-bit compatibility mode fails :(
-% LuaTeX in 8-bit compatibility mode:
-% hyphenation in Greek text parts fails!
-% (would require the 8-bit, a loader fix for luatex).
-
-% \usepackage{textalpha}
-\usepackage{textcomp}
-\usepackage[unicode]{hyperref}
-% \usepackage{bookmark}
-\usepackage{parskip}
-\usepackage{booktabs}
-
-\usepackage{lmodern}
-% \usepackage{kerkis}
-% \usepackage{gfsdidot}
-% \usepackage{dejavu}
-
-% Load the Babel package with Greek and English language definitions:
-%
-% Uncomment the desired language variant
-
-% Default: modern monotonic Greek
-\usepackage[greek,english]{babel}
-% Obsolete: used instead of `greek', kept for backwards compatibility:
-% \usepackage[polutonikogreek,english]{babel}
-
-% For backwards compatibility, you can also use
-% \selectlanguage{polutonikogreek} instead of \selectlanguage{greek} etc.
-% if the (modern) polytonic Greek language variant is selected.
-
-% uncomment for modern polytonic Greek
-% \languageattribute{greek}{polutoniko}
-
-% uncomment for ancient Greek
-\languageattribute{greek}{ancient}
-
-% \message{Latin encoding is \latinencoding}
-
-\begin{document}
-
-\title{Test the Greek support for Babel}
-\author{Günter Milde}
-\date{2020/11/10}
-\maketitle
-
-The babel option ``greek'' activates the support for the Greek language
-defined in the file \texttt{greek.ldf} (source \texttt{greek.dtx}).
-
-\section{Language Switch}
-
-The declaration \verb|\selectlanguage| switches between languages.
-
-\begin{quote}
- \selectlanguage{greek}
- Τί φήις; Ἱδὼν ἐνθέδε παῖδ’ ἐλευθέραν
- τὰς πλησίον Νύμφας στεφανοῦσαν, Σώστρατε,
- ἐρῶν άπῆλθες εὐθύς;
-\end{quote}
-
-The macro \verb|\foreignlanguage| sets its second argument in the specified
-language. This is intended for short text parts or single words like
-\foreignlanguage{greek}{Βιβλιοθήκη}.
-
-There should be no inserted space before or after the language switch (may
-happen if there are unescaped linebreaks in the font or language definitions):
-
-\begin{quote}
- Change script with \verb|ensuregreek|: |\ensuregreek{do\~ulos}|. Change
- language with \verb|\foreignlanguage|: |\foreignlanguage{greek}{do\~ulos}|.
-\end{quote}
-
-\section{Font Encoding}
-
-In Greek text parts, the font encoding is automatically set to LGR if an
-8-bit TeX engine is used. (See \url{test-unicode-greek.tex} for usage of
-babel-greek with XeTeX or LuaTeX.)
-
-LGR has Greek characters in the slots reserved in a TeX \emph{standard text
-font encoding}. This means you need an explicit font encoding change for
-every Latin letter and some other symbols if the current font encoding is
-LGR.
-
-Babel defines the declaration \verb|\latintext| and the command
-\verb|\textlatin| to switch to the T1 or OT1 font encoding or typeset the
-argument using this encoding.
-
-Switching to a font encoding supporting the Greek script is possible without
-switching the Babel language using the declarations \verb|\greekscript| (no
-switch if the current encoding supports Greek script (e.g. the Unicode font
-encoding TU)) or \verb|\greektext| (always switch to LGR) and the
-corresponding macros \verb|\ensuregreek| or \verb|\textgreek|. These
-commands do not start a new paragraph:
-
-\greekscript Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) --
-\latintext Friends (\ensuregreek{F\'ilwn}) of TeX.
-
-\texttt{greek.ldf} has some workarounds, so that macros relying on Latin
-characters in standard positions keep working. We test, that these
-definitions do not overwrite the selection of pre-composed characters for
-``copyright'' and ``registered trade mark'' by \emph{textcomp} (try copy and
-paste from the PDF output):
-
-Latin: A \& O, © ® ™ \\
-Greek (LGR): \ensuregreek{Α \& Ω, © ® ™}
-or input as macro \ensuregreek{\textAlpha{} \textampersand{} \textOmega{},
-\textcopyright{} \textregistered{} \texttrademark{}}.
-
-The ampersand should also work in mathematical mode: $ 1 \& 2 $
-
-To prevent Roman numerals being typeset in Greek letters we need to adopt
-the internal LaTeX commands. Note that this may cause errors when roman
-numerals are used in a situation where the macros need to be expanded:
-
-\makeatletter
-Latin:
-\@roman{1}, \@roman{2}, \@roman{3}, \@roman{4}, \ldots, \@roman{1975}
-\@Roman{1}, \@Roman{2}, \@Roman{3}, \@Roman{4}, \ldots, \@Roman{1975}
-
-Greek: \ensuregreek{
-\@roman{1}, \@roman{2}, \@roman{3}, \@roman{4}, \ldots, \@roman{1975}
-\@Roman{1}, \@Roman{2}, \@Roman{3}, \@Roman{4}, \ldots, \@Roman{1975}
-}
-\makeatother
-
-\section{MakeUppercase, MakeLowercase}
-
-Capital Greek letters have diacritics (except the dialytika and sub-iota) to
-the left (instead of above) and drop them in uppercase, e.g.
-\ensuregreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}.
-
-Upcased letters with diacritics keep the dialytika. This is implemented for
-all input variants of diacritics with dialytika. (\texttt{greek.ldf} has
-\emph{composite command} definitions to ensure this also works for accent
-characters "upcased" to the charcter No 159.)
-
-\foreignlanguage{greek}{\"i \"'i \"`i \"~i \'"i \`"i \~"i
- \"u \"\'u \"\`u \"\~u
- ϊ ΐ ῒ ῗ ΐ ῒ ῗ ϋ ΰ ῢ ῧ
- $\mapsto$ \MakeUppercase{\"i \"'i \"`i \"~i \'"i \`"i \~"i
- \"u \"\'u \"\`u \"\~u
- ϊ ΐ ῒ ῗ ΐ ῒ ῗ ϋ ΰ ῢ ῧ
- }
-}
-
-
-Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if
-placed on the first vowel of a diphthong
-(\ensuregreek{\'ai, \'au, \'ei, \'>ai, \'>au, \'>ei}).
-A dialytika must be placed on the second vowel if they are dropped:
-(\ensuregreek{\MakeUppercase{\'ai, \'au, \'ei, \'>ai, \'>au, \'>ei}}).
-
-\selectlanguage{greek}
-% from teubner: άυλος/ΑΫΛΟΣ
-\'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}
-\accpsili{a}upn\'ia $\mapsto$ \MakeUppercase{\accpsili{a}upn\'ia}
-\selectlanguage{english}
-
-There are several alternative styles for the capitalized sub-iota.
-
-In order to let the Up/Downcasing work also with the Latin transcription
-defined by the LGR font encoding, ``babel-greek'' also defines lc/uccodes
-for non-standard assignments:
-
-\selectlanguage{greek}
-', ", `, >, <, | $\mapsto$ \MakeUppercase{', ", `, >, <, |}
-\selectlanguage{english}
-
-The uppercase of the zero-width space at the place of ``v'' is kept to point
-to the glyph at the position of ``V'', the Dasia-Oxia accent
-(\ensuregreek{\MakeUppercase{v}}):
-
-\begin{quotation}
- greek-1.3i 2000/10/02: uc code of `v' is switched to V
- so that mixed text appears correctly in headers.
-\end{quotation}
-
-Use \verb+\textcompwordmark+:
-not \foreignlanguage{greek}{avu $\mapsto$ \MakeUppercase{avu}} but
-\foreignlanguage{greek}{a\textcompwordmark u
-$\mapsto$ \MakeUppercase{a\textcompwordmark u}}
-
-The following subsections test MakeUppercase and MakeLowercase with all
-characters defined in lgrenc.dfu:
-
-\subsection{Greek and Coptic}
-
-\newcommand{\GreekAndCoptic}{\ensuregreek{
-ʹ͵ͺ; ΄ ΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϘϚϜϠ}}
-\newcommand{\greekandcoptic}{\ensuregreek{
-άέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϙϛϝϟϡ}}
-
-Characters of the Greek and Coptic Unicode Block:
-
-\begin{quote}
- \GreekAndCoptic\\
- \greekandcoptic
-\end{quote}
-
-MakeUppercase:
-
-\begin{quote}
- \MakeUppercase{\GreekAndCoptic}\\
- \MakeUppercase{\greekandcoptic}
-\end{quote}
-\end{document}
-
-Letters and sub-iota upcased, other diacritics except dialytika dropped.
-
-There is no capital Koppa in LGR, therefore \ensuregreek{ϟ} is left
-unchanged with MakeUppercase.
-
-
-MakeLowercase:
-
-\begin{quote}
- \MakeLowercase{\GreekAndCoptic}\\
- \MakeLowercase{\greekandcoptic}
-\end{quote}
-
-The lowercase of \ensuregreek{Σ} 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
-\ensuregreek{Ϛ} is \ensuregreek{\MakeLowercase{Ϛ}} not \verb|\textvarstigma|
-(\ensuregreek\textvarstigma).
-
-% \newpage
-
-\subsection{Greek extended}
-
-Characters of the Greek extended Unicode block:
-
-\selectlanguage{greek}
-ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ \\
-ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ \\
-ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ \\
-ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ \\
-ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ \\
-ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ \\
-ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ \\
-ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ \\
-ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ \\
-ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ \\
-ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ \\
-ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ \\
-῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ \\
-ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ \\
-ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` \\
- ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾
-\selectlanguage{english}
-
-MakeUppercase:
-
-\selectlanguage{greek}
-
-\MakeUppercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\
-\MakeUppercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\
-\MakeUppercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\
-\MakeUppercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\
-\MakeUppercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\
-\MakeUppercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\
-\MakeUppercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\
-\MakeUppercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\
-\MakeUppercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\
-\MakeUppercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\
-\MakeUppercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\
-\MakeUppercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\
-\MakeUppercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\
-\MakeUppercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\
-\MakeUppercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\
-\MakeUppercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ }
-\selectlanguage{english}
-
-MakeLowercase:
-
-\selectlanguage{greek}
-\MakeLowercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\
-\MakeLowercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\
-\MakeLowercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\
-\MakeLowercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\
-\MakeLowercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\
-\MakeLowercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\
-\MakeLowercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\
-\MakeLowercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\
-\MakeLowercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\
-\MakeLowercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\
-\MakeLowercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\
-\MakeLowercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\
-\MakeLowercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\
-\MakeLowercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\
-\MakeLowercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\
-\MakeLowercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ }
-\selectlanguage{english}
-
-\section{Babel Strings}
-
-Babel defines macros for several autogenerated strings so that they may
-appear in the choosen language. babel-greek uses LICRs in order to let the
-string macros work independent of the font encoding, in both 8-bit and
-Unicode-aware TeX.
-
-\subsection{Captions}
-
-\selectlanguage{greek}
-\prefacename,
-\refname,
-\abstractname,
-\bibname,
-\chaptername,
-\appendixname,
-\contentsname,
-\listfigurename ,
-\listtablename,
-\indexname,
-\figurename,
-\tablename,
-\partname,
-\enclname,
-\ccname,
-\headtoname,
-\pagename,
-\seename,
-\alsoname,
-\proofname,
-\glossaryname,
-\selectlanguage{english}
-
-
-\subsection{Months}
-
-\selectlanguage{greek}
-\newcounter{foo}
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\selectlanguage{english}
-
-\section{Greek Numerals}
-
-See greek.pdf for the formation rules of Greek numerals.
-Some examples:
-
-\selectlanguage{greek}
-
-\greeknumeral{1},
-\greeknumeral{2},
-\greeknumeral{3},
-\greeknumeral{4},
-\greeknumeral{5},
-\greeknumeral{6},
-\greeknumeral{7},
-\greeknumeral{8},
-\greeknumeral{9},
-\greeknumeral{10},
-\greeknumeral{11},
-\greeknumeral{12},
-\greeknumeral{20},
-\greeknumeral{345},
-\greeknumeral{500},
-\greeknumeral{1997},
-\greeknumeral{2013},
-
-\Greeknumeral{1},
-\Greeknumeral{2},
-\Greeknumeral{3},
-\Greeknumeral{4},
-\Greeknumeral{5},
-\Greeknumeral{6},
-\Greeknumeral{7},
-\Greeknumeral{8},
-\Greeknumeral{9},
-\Greeknumeral{10},
-\Greeknumeral{11},
-\Greeknumeral{12},
-\Greeknumeral{20},
-\Greeknumeral{345},
-\Greeknumeral{500},
-\Greeknumeral{1997},
-\Greeknumeral{2013},
-
-\selectlanguage{english}
-
-Enumerated lists use Greek numerals in the second and fourth level:
-
-\selectlanguage{greek}
-\begin{enumerate}
- \item \textlatin{Item} 1
- \begin{enumerate}
- \item \textlatin{Item} 1.1
- \begin{enumerate}
- \item \textlatin{Item} 1.1.1
- \begin{enumerate}
- \item \textlatin{Item} 1.1.1.1
- \item \textlatin{Item} 1.1.1.2
- \end{enumerate}
- \item \textlatin{Item} 1.1.2
- \end{enumerate}
- \end{enumerate}
-\end{enumerate}
-\selectlanguage{english}
-
-
-\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-athnum.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-athnum.pdf
new file mode 100644
index 00000000000..fa56892ffa3
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-athnum.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-athnum.tex b/Master/texmf-dist/doc/generic/babel-greek/test-athnum.tex
new file mode 100644
index 00000000000..0d8a6bfb6b2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-athnum.tex
@@ -0,0 +1,70 @@
+\documentclass[a4paper]{article}
+\usepackage{ifthen}
+\usepackage[LGR,T1]{fontenc}
+\usepackage{booktabs}
+\usepackage{longtable,ltcaption,array}
+\usepackage[textwidth=14cm]{geometry} % to fit the number table
+\setlength{\extrarowheight}{2pt}
+\usepackage{parskip}
+
+\ifdefined \UnicodeEncodingName
+ \usepackage{fontspec}
+ % \setmainfont{Linux Libertine O} % no GREEK ACROPHONIC ATTIC numbers
+ % \setmainfont{Liberation Serif} % no GREEK ACROPHONIC ATTIC numbers
+ \setmainfont{FreeSerif}
+\else
+ \usepackage{lmodern}
+\fi
+
+
+\usepackage{textalpha}
+\usepackage{athnum}
+
+\begin{document}
+\title{Test Attic numerals}
+\author{Günter Milde}
+\date{2022/12/08}
+\maketitle
+
+The Greek font encoding is \greekfontencoding.\footnote{
+ Since version 2.0 you can use \emph{athnum} also without
+ \emph{babel-greek} and with Unicode fonts (if they support the
+ ``Greek acrophonic attic'' number symbols for 50, 500, and 5000).}
+
+\begin{tabular}{rrrrrrrrr}
+\toprule
+1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
+\athnum{1} & \athnum{2} & \athnum{3} & \athnum{4} &
+\athnum{5} & \athnum{6} & \athnum{7} & \athnum{8} & \athnum{9} \\
+
+10 & 20 & 30 & 40 & 50 & 60 & 70 & 80 & 90 \\
+\athnum{10} & \athnum{20} & \athnum{30} & \athnum{40} &
+\athnum{50} & \athnum{60} & \athnum{70} & \athnum{80} & \athnum{90} \\
+
+100 & 200 & 300 & 400 & 500 & 600 & 700 & 800 & 900 \\
+\athnum{100} & \athnum{200} & \athnum{300} & \athnum{400} &
+\athnum{500} & \athnum{600} & \athnum{700} & \athnum{800} & \athnum{900} \\
+
+1000 & 2000 & 3000 & 4000 & 5000 & 6000 & 7000 & 8000 & 9000 \\
+\athnum{1000}& \athnum{2000}& \athnum{3000}& \athnum{4000}&
+\athnum{5000}& \athnum{6000}& \athnum{7000}& \athnum{8000}& \athnum{9000} \\
+
+10000 & 20000 & 30000 & 40000 & 50000 & 60000 & 70000 & 80000 & 90000 \\
+\athnum{10000}&\athnum{20000}&\athnum{30000}&\athnum{40000}&
+\athnum{50000}&\athnum{60000}&\athnum{70000}&\athnum{80000}&\athnum{90000} \\
+
+\bottomrule
+\end{tabular}
+
+Some examples:
+
+
+678 = \athnum{678}, 2022 = \athnum{2022}
+
+Largest ``canonical'' number: 9999 = \athnum{9999}
+
+Largest allowed number: 249999 = \athnum{249999}
+
+Hexadecimal input works, too: \texttt{"10} = \athnum{"10}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-case-changing.tex b/Master/texmf-dist/doc/generic/babel-greek/test-case-changing.tex
new file mode 100644
index 00000000000..c2b61596ad2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-case-changing.tex
@@ -0,0 +1,1048 @@
+% Backrolling does not work for \MakeUppercase (cf. LaTeX News 35)
+% \RequirePackage{latexbug}
+%\RequirePackage[2022-05-01]{latexrelease}
+
+\documentclass[a4paper]{article}
+
+\usepackage[LGR,T1]{fontenc}
+\usepackage{lmodern}
+
+\ifdefined \UnicodeEncodingName
+ \usepackage{fontspec}
+ \setmainfont[Scale=0.92]{DejaVu Serif}
+ \newcommand*{\texengine}{Xe/LuaLaTeX}
+\else
+ \usepackage{lmodern}
+ \newcommand*{\texengine}{pdfLaTeX}
+\fi
+
+% Load encoding definitions
+\usepackage[normalize-symbols]{textalpha} % "Greek script everywhere"
+
+% With TL22, the special handling of Greek UPPERCASE is only triggered
+% if the text language is set to "greek" with Babel:
+%
+\usepackage[greek,english]{babel} % babel-greek
+% \usepackage[greek,english,provide=*]{babel} % Babel's Greek "ini"
+\languageattribute{greek}{polutoniko} % "modern" polytonic Greek
+
+
+\usepackage[unicode,colorlinks,linkcolor=blue]{hyperref}
+\usepackage{bookmark}
+
+% Auxiliary commands
+
+\newcommand{\langGreek}{\foreignlanguage{greek}}
+
+% print the selected language variant
+\newcommand{\GreekLanguageVariant}{%
+ \ifx\captionsgreek\captionspolutonikogreek
+ \ifx\captionsgreek\captionsancientgreek
+ ancient%
+ \else
+ polutoniko%
+ \fi
+ \else
+ monotoniko%
+ \fi
+}
+
+% -----------------------------------------------------------------------
+
+\begin{document}
+
+\tableofcontents
+
+\section{Test case conversions of Greek letters}
+
+This document tests the combination of \verb|MakeUppercase| and Greek.
+
+\makeatletter
+It is compiled with \texengine, format version \fmtversion{} patch-level
+\patch@level{} and the L3 programming layer from \ExplFileDate{}.
+\makeatother
+The \verb|\greekfontencoding| is \greekfontencoding.
+
+\section{Unicode literals}
+
+\subsection{Greek and Coptic}
+
+Characters from the Greek and Coptic Unicode block that are supported by
+\emph{greek-fontenc} and \emph{greek-inputenc}:
+
+\newcommand{\GreekAndCoptic}{
+ \raggedright
+ ␣ ␣ ␣ ␣ ʹ ͵ ␣ ␣ ␣ ␣ ͺ ␣ ␣ ␣ ; ␣ \\
+ ␣ ␣ ␣ ␣ ΄ ΅ Ά · Έ Ή Ί ␣ Ό ␣ Ύ Ώ \\
+ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο \\
+ Π Ρ ␣ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί \\
+ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο \\
+ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ ␣ \\
+ ϐ ϑ ␣ ␣ ␣ ϕ ϖ ␣ Ϙ ϙ Ϛ ϛ Ϝ ϝ Ϟ ϟ \\
+ Ϡ ϡ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣
+}
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekAndCoptic
+\end{quote}
+%
+MakeUppercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekAndCoptic}
+\end{quote}
+%
+MakeLowercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekAndCoptic}
+\end{quote}
+
+The lowercase of \langGreek{Σ} is the «auto-sigma»
+(\verb|\textautosigma|): \langGreek{ΣΣ $\mapsto$ \MakeLowercase{ΣΣ}}.
+Add a ZWNJ or use the \verb|\noboundary| macro to prevent conversion to
+final sigma: \langGreek{\MakeLowercase{ΣΣ‌}}.
+
+
+\subsection{Greek extended}
+
+Characters of the Greek Extended Unicode block:
+
+\newcommand{\GreekExtended}{\raggedright
+ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ \\
+ ἐ ἑ ἒ ἓ ἔ ἕ ␣ ␣ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ \\
+ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ \\
+ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ \\
+ ὀ ὁ ὂ ὃ ὄ ὅ ␣ ␣ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ \\
+ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ ␣ Ὑ ␣ Ὓ ␣ Ὕ ␣ Ὗ \\
+ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ \\
+ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ \\
+ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ \\
+ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ \\
+ ᾠ ᾡ ᾢ ᾣ ᾤ ᾦ ᾧ ᾥ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ \\
+ ᾰ ᾱ ᾲ ᾳ ᾴ ␣ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ \\
+ ῀ ῁ ῂ ῃ ῄ ␣ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ \\
+ ῐ ῑ ῒ ΐ ␣ ␣ ῖ ῗ Ῐ Ῑ Ὶ Ί ␣ ῝ ῞ ῟ \\
+ ῠ ῡ ῢ ΰ ␣ ␣ ῤ ῥ ῦ ῧ Ὺ Ύ Ῥ ῭ ΅ ` \\
+ ␣ ␣ ῲ ῳ ῴ ␣ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ ␣
+}
+
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekExtended
+\end{quote}
+%
+MakeUppercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekExtended}
+\end{quote}
+
+MakeLowercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekExtended}
+\end{quote}
+
+% With TeXLive 2020 (old \verb|\Makeuppercase|),
+% all accents except dialytika and prosgegrammeni are dropped in UPPERCASE
+% and kept in lowercase.
+% No errors.
+%
+% With current TeXLive:
+% pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022)
+% LaTeX2e <2022-11-01> patch level 1
+% L3 programming layer <2023-02-22>
+%
+% Upcasing ``Unicode errors'' are resolved.
+%
+% Uppercase of character ';' 0x37E GREEK QUESTION MARK is a semicolon
+% which is mapped to '·' 0x387 GREEK ANO TELEIA by LGR. :(
+%
+% Accents dropped with MakeUppercase (not for single letter ή) :)
+% TODO: how to treat MakeUppercase of a single captial «΄Η»?
+%
+% The "Latin" accents macron and breve should be kept. (minor)
+%
+% Spacing prosgegrammeni (ι) turned to capital Iota. (minor)
+%
+% Spacing single diacritics are kept. (irrelevant, OK)
+% Spacing combining diacritics are mapped to single diacritics. (irrelevant)
+%
+% Auto-Hiatus: ἀυπνία → ΑΥΠΝΙΑ (missing dialytika on the Upsilon).
+
+% With pdfLaTeX and LGR, a ZWNJ or the ``\noboundary`` macro can be used to
+% prevent conversion of trailing Σ to a final sigma ς by ``\MakeLowercase``.
+% This does not work with Unicode fonts (XeTeX/LuaTeX).
+
+% With XeTeX and Unicode fonts,
+\subsubsection{hiatus}
+
+Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if placed on
+the first of two consecutive vowels (άι, άυ, έι, ἀυ, ἄι, ἄυ, ἔι).
+A dialytika must be placed on the second vowel if they are dropped.
+
+Since the 2022/06 LaTeX release, it works with monotonic Unicode literals
+(since 2023/02/10] also some polytonic but fails with psili):
+\begin{quote}
+ \selectlanguage{greek}
+ \newcommand*{\hiatest}{άι, άυ, έι, ἄι, ἄυ, ἔι, ἀυ}
+ \hiatest{} $\mapsto$ \MakeUppercase{\hiatest}
+\end{quote}
+
+Example \foreignlanguage{greek}{ἀυπνία $\mapsto$ \MakeUppercase{ἀυπνία}}
+(missing dialytika on the Upsilon).
+
+\section{LICR macros}
+
+This section compares literal Unicode Greek characters to characters input
+as LICR macros
+
+\subsection{Greek and Coptic}
+
+\subsubsection{short accent macros}
+
+\renewcommand{\GreekAndCoptic}{% only characters supported by LGR
+ \raggedright
+ ␣ ␣ ␣ ␣ ʹ ͵ ␣ ␣ ␣ ␣ ͺ ␣ ␣ ␣ ; ␣ \\
+ ␣ ␣ ␣ ␣ \textnumeralsigngreek{} \textnumeralsignlowergreek{}
+ ␣ ␣ ␣ ␣ { }\ypogegrammeni{} ␣ ␣ ␣ \texterotimatiko\\
+
+ ␣ ␣ ␣ ␣ ΄ ΅ Ά · Έ Ή Ί ␣ Ό ␣ Ύ Ώ \\
+
+ ␣ ␣ ␣ ␣ \'{ } \"'{ } \'\textAlpha{} \textanoteleia{}
+ \'\textEpsilon{} \'\textEta{} \'\textIota{}
+ ␣ \'\textOmicron{} ␣ \'\textUpsilon{} \'\textOmega{} \\
+
+ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο \\
+ \'"\textiota{} \textAlpha{} \textBeta{} \textGamma{} \textDelta{}
+ \textEpsilon{} \textZeta{} \textEta{} \textTheta{} \textIota{}
+ \textKappa{} \textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \\
+
+ Π Ρ ␣ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί \\
+ \textPi{} \textRho{} ␣ \textSigma{} \textTau{} \textUpsilon{}
+ \textPhi{} \textChi{} \textPsi{} \textOmega{} \"\textIota{}
+ \"\textUpsilon{} \'\textalpha{} \'\textepsilon{} \'\texteta{}
+ \'\textiota{} \\
+
+ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο \\
+ \"'\textupsilon{} \textalpha{} \textbeta{} \textgamma{} \textdelta{}
+ \textepsilon{} \textzeta{} \texteta{} \texttheta{} \textiota{}
+ \textkappa{} \textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \\
+
+ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ ␣ \\
+ \textpi{} \textrho{} \textfinalsigma{} \textsigma{} \texttau{}
+ \textupsilon{} \textphi{} \textchi{} \textpsi{} \textomega{} \"\textiota{}
+ \"\textupsilon{} \'\textomicron{} \'\textupsilon{} \'\textomega{} \\
+
+ ϐ ϑ ␣ ␣ ␣ ϕ ϖ ␣ Ϙ ϙ Ϛ ϛ Ϝ ϝ Ϟ ϟ \\
+ \textbetasymbol{} \textthetasymbol{} ␣ ␣ ␣ \textphisymbol{}
+ \textpisymbol{} ␣ \textQoppa{} \textqoppa{} \textStigma{} \textstigma{}
+ \textDigamma{} \textdigamma{} \textKoppa{} \textkoppa{} \\
+
+ Ϡ ϡ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ϰ ϱ ϴ ϵ \\
+ \textSampi{} \textsampi{} ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣
+ \textkappasymbol{} \textrhosymbol{} \textThetasymbol{} \textepsilonsymbol
+}
+
+No case change:
+
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekAndCoptic
+\end{quote}
+%
+MakeUppercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekAndCoptic}
+\end{quote}
+%
+MakeLowercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekAndCoptic}
+\end{quote}
+
+\subsubsection{named accent macros}
+
+\renewcommand{\GreekAndCoptic}{% only characters supported by LGR
+ \raggedright
+ ␣ ␣ ␣ ␣ ʹ ͵ ␣ ␣ ␣ ␣ ͺ ␣ ␣ ␣ ; ␣ \\
+ ␣ ␣ ␣ ␣ \textnumeralsigngreek{} \textnumeralsignlowergreek{}
+ ␣ ␣ ␣ ␣ { }\ypogegrammeni{} ␣ ␣ ␣ \texterotimatiko\\
+
+ ␣ ␣ ␣ ␣ ΄ ΅ Ά · Έ Ή Ί ␣ Ό ␣ Ύ Ώ \\
+ ␣ ␣ ␣ ␣ \acctonos{ } \accdialytikatonos{ } \acctonos\textAlpha{}
+ \textanoteleia{} \acctonos\textEpsilon{} \acctonos\textEta{}
+ \acctonos\textIota{} ␣ \acctonos\textOmicron{} ␣ \acctonos\textUpsilon{}
+ \acctonos\textOmega{} \\
+
+ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο \\
+ \accdialytikatonos\textiota{} \textAlpha{} \textBeta{} \textGamma{}
+ \textDelta{} \textEpsilon{} \textZeta{} \textEta{} \textTheta{} \textIota{}
+ \textKappa{} \textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \\
+
+ Π Ρ ␣ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί \\
+ \textPi{} \textRho{} ␣ \textSigma{} \textTau{} \textUpsilon{}
+ \textPhi{} \textChi{} \textPsi{} \textOmega{} \accdialytika\textIota{}
+ \accdialytika\textUpsilon{} \acctonos\textalpha{} \acctonos\textepsilon{}
+ \acctonos\texteta{} \acctonos\textiota{} \\
+
+ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο \\
+ \accdialytikatonos\textupsilon{} \textalpha{} \textbeta{} \textgamma{}
+ \textdelta{} \textepsilon{} \textzeta{} \texteta{} \texttheta{} \textiota{}
+ \textkappa{} \textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \\
+
+ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ ␣ \\
+ \textpi{} \textrho{} \textfinalsigma{} \textsigma{} \texttau{}
+ \textupsilon{} \textphi{} \textchi{} \textpsi{} \textomega{}
+ \accdialytika\textiota{} \accdialytika\textupsilon{}
+ \acctonos\textomicron{} \acctonos\textupsilon{} \acctonos\textomega{} \\
+
+ ϐ ϑ ␣ ␣ ␣ ϕ ϖ ␣ Ϙ ϙ Ϛ ϛ Ϝ ϝ Ϟ ϟ \\
+ \textbetasymbol{} \textthetasymbol{} ␣ ␣ ␣ \textphisymbol{}
+ \textpisymbol{} ␣ \textQoppa{} \textqoppa{} \textStigma{} \textstigma{}
+ \textDigamma{} \textdigamma{} \textKoppa{} \textkoppa{} \\
+
+ Ϡ ϡ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ϰ ϱ ϴ ϵ \\
+ \textSampi{} \textsampi{} ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣ ␣
+ \textkappasymbol{} \textrhosymbol{} \textThetasymbol{} \textepsilonsymbol
+}
+No case change:
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekAndCoptic
+\end{quote}
+%
+MakeUppercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekAndCoptic}
+\end{quote}
+%
+MakeLowercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekAndCoptic}
+\end{quote}
+
+
+\subsection{Greek extended}
+
+\subsubsection{short accent macros}
+
+\renewcommand{\GreekExtended}{\raggedright
+ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ \\
+ \>\textalpha{}
+ \<\textalpha{}
+ \>`\textalpha{}
+ \<`\textalpha{}
+ \>'\textalpha{}
+ \<'\textalpha{}
+ \~>\textalpha{}
+ \~<\textalpha{}
+ \>\textAlpha{}
+ \<\textAlpha{}
+ \>`\textAlpha{}
+ \<`\textAlpha{}
+ \>'\textAlpha{}
+ \<'\textAlpha{}
+ \~>\textAlpha{}
+ \~<\textAlpha{} \\
+
+ ἐ ἑ ἒ ἓ ἔ ἕ ␣ ␣ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ \\
+ \>\textepsilon{}
+ \<\textepsilon{}
+ \>`\textepsilon{}
+ \<`\textepsilon{}
+ \>'\textepsilon{}
+ \<'\textepsilon{}
+ ␣ ␣ \>\textEpsilon{}
+ \<\textEpsilon{}
+ \>`\textEpsilon{}
+ \<`\textEpsilon{}
+ \>'\textEpsilon{}
+ \<'\textEpsilon{}\\
+
+ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ \\
+ \>\texteta{}
+ \<\texteta{}
+ \>`\texteta{}
+ \<`\texteta{}
+ \>'\texteta{}
+ \<'\texteta{}
+ \~>\texteta{}
+ \~<\texteta{}
+ \>\textEta{}
+ \<\textEta{}
+ \>`\textEta{}
+ \<`\textEta{}
+ \>'\textEta{}
+ \<'\textEta{}
+ \~>\textEta{}
+ \~<\textEta{} \\
+
+ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ \\
+ \>\textiota{}
+ \<\textiota{}
+ \>`\textiota{}
+ \<`\textiota{}
+ \>'\textiota{}
+ \<'\textiota{}
+ \~>\textiota{}
+ \~<\textiota{}
+ \>\textIota{}
+ \<\textIota{}
+ \>`\textIota{}
+ \<`\textIota{}
+ \>'\textIota{}
+ \<'\textIota{}
+ \~>\textIota{}
+ \~<\textIota{} \\
+
+ ὀ ὁ ὂ ὃ ὄ ὅ ␣ ␣ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ \\
+ \>\textomicron{}
+ \<\textomicron{}
+ \>`\textomicron{}
+ \<`\textomicron{}
+ \>'\textomicron{}
+ \<'\textomicron{}
+ ␣ ␣ \>\textOmicron{}
+ \<\textOmicron{}
+ \>`\textOmicron{}
+ \<`\textOmicron{}
+ \>'\textOmicron{}
+ \<'\textOmicron{} \\
+
+ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ ␣ Ὑ ␣ Ὓ ␣ Ὕ ␣ Ὗ \\
+ \>\textupsilon{}
+ \<\textupsilon{}
+ \>`\textupsilon{}
+ \<`\textupsilon{}
+ \>'\textupsilon{}
+ \<'\textupsilon{}
+ \~>\textupsilon{}
+ \~<\textupsilon{}
+ ␣ \<\textUpsilon{}
+ ␣ \<`\textUpsilon{}
+ ␣ \<'\textUpsilon{}
+ ␣ \~<\textUpsilon{} \\
+
+ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ \\
+ \>\textomega{}
+ \<\textomega{}
+ \>`\textomega{}
+ \<`\textomega{}
+ \>'\textomega{}
+ \<'\textomega{}
+ \~>\textomega{}
+ \~<\textomega{}
+ \>\textOmega{}
+ \<\textOmega{}
+ \>`\textOmega{}
+ \<`\textOmega{}
+ \>'\textOmega{}
+ \<'\textOmega{}
+ \~>\textOmega{}
+ \~<\textOmega{} \\
+
+ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ \\
+ \`\textalpha{}
+ \'\textalpha{}
+ \`\textepsilon{}
+ \'\textepsilon{}
+ \`\texteta{}
+ \'\texteta{}
+ \`\textiota{}
+ \'\textiota{}
+ \`\textomicron{}
+ \'\textomicron{}
+ \`\textupsilon{}
+ \'\textupsilon{}
+ \`\textomega{}
+ \'\textomega{} \\
+
+ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ \\
+ \>\textalpha\ypogegrammeni{}
+ \<\textalpha\ypogegrammeni{}
+ \>`\textalpha\ypogegrammeni{}
+ \<`\textalpha\ypogegrammeni{}
+ \>'\textalpha\ypogegrammeni{}
+ \<'\textalpha\ypogegrammeni{}
+ \~>\textalpha\ypogegrammeni{}
+ \~<\textalpha\ypogegrammeni{}
+ \>\textAlpha\ypogegrammeni{}
+ \<\textAlpha\ypogegrammeni{}
+ \>`\textAlpha\ypogegrammeni{}
+ \<`\textAlpha\ypogegrammeni{}
+ \>'\textAlpha\ypogegrammeni{}
+ \<'\textAlpha\ypogegrammeni{}
+ \~>\textAlpha\ypogegrammeni{}
+ \~<\textAlpha\ypogegrammeni{} \\
+
+ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ \\
+ \>\texteta\ypogegrammeni{}
+ \<\texteta\ypogegrammeni{}
+ \>`\texteta\ypogegrammeni{}
+ \<`\texteta\ypogegrammeni{}
+ \>'\texteta\ypogegrammeni{}
+ \<'\texteta\ypogegrammeni{}
+ \~>\texteta\ypogegrammeni{}
+ \~<\texteta\ypogegrammeni{}
+ \>\textEta\ypogegrammeni{}
+ \<\textEta\ypogegrammeni{}
+ \>`\textEta\ypogegrammeni{}
+ \<`\textEta\ypogegrammeni{}
+ \>'\textEta\ypogegrammeni{}
+ \<'\textEta\ypogegrammeni{}
+ \~>\textEta\ypogegrammeni{}
+ \~<\textEta\ypogegrammeni{} \\
+
+ ᾠ ᾡ ᾢ ᾣ ᾤ ᾦ ᾧ ᾥ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ \\
+ \>\textomega\ypogegrammeni{}
+ \<\textomega\ypogegrammeni{}
+ \>`\textomega\ypogegrammeni{}
+ \<`\textomega\ypogegrammeni{}
+ \>'\textomega\ypogegrammeni{}
+ \<'\textomega\ypogegrammeni{}
+ \~>\textomega\ypogegrammeni{}
+ \~<\textomega\ypogegrammeni{}
+ \>\textOmega\ypogegrammeni{}
+ \<\textOmega\ypogegrammeni{}
+ \>`\textOmega\ypogegrammeni{}
+ \<`\textOmega\ypogegrammeni{}
+ \>'\textOmega\ypogegrammeni{}
+ \<'\textOmega\ypogegrammeni{}
+ \~>\textOmega\ypogegrammeni{}
+ \~<\textOmega\ypogegrammeni{} \\
+
+ ᾰ ᾱ ᾲ ᾳ ᾴ ␣ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ \\
+ \u\textalpha{}
+ \=\textalpha{}
+ \`\textalpha\ypogegrammeni{}
+ \textalpha\ypogegrammeni{}
+ \'\textalpha\ypogegrammeni{}
+ ␣ \~\textalpha{}
+ \~\textalpha\ypogegrammeni{}
+ \u\textAlpha{}
+ \=\textAlpha{}
+ \`\textAlpha{}
+ \'\textAlpha{}
+ \textAlpha\ypogegrammeni{}
+ \>{}
+ \prosgegrammeni{}
+ \>{} \\
+
+ ῀ ῁ ῂ ῃ ῄ ␣ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ \\
+ \~{}
+ \"\~{}
+ \`\texteta\ypogegrammeni{}
+ \texteta\ypogegrammeni{}
+ \'\texteta\ypogegrammeni{}
+ ␣ \~\texteta{}
+ \~\texteta\ypogegrammeni{}
+ \`\textEpsilon{}
+ \'\textEpsilon{}
+ \`\textEta{}
+ \'\textEta{}
+ \textEta\ypogegrammeni{}
+ \>`{}
+ \>'{}
+ \~>{} \\
+
+ ῐ ῑ ῒ ΐ ␣ ␣ ῖ ῗ Ῐ Ῑ Ὶ Ί ␣ ῝ ῞ ῟ \\
+ \u\textiota{}
+ \=\textiota{}
+ \`"\textiota{}
+ \'"\textiota{}
+ ␣ ␣ \~\textiota{}
+ \~"\textiota{}
+ \u\textIota{}
+ \=\textIota{}
+ \`\textIota{}
+ \'\textIota{}
+ ␣
+ \<`{}
+ \<'{}
+ \~<{} \\
+
+ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` \\
+ \u\textupsilon{}
+ \=\textupsilon{}
+ \`"\textupsilon{}
+ \'"\textupsilon{}
+ \>\textrho{}
+ \<\textrho{}
+ \~\textupsilon{}
+ \~"\textupsilon{}
+ \u\textUpsilon{}
+ \=\textUpsilon{}
+ \`\textUpsilon{}
+ \'\textUpsilon{}
+ \<\textRho{}
+ \`"{}
+ \'"{}
+ \`{} \\
+
+ ␣ ␣ ῲ ῳ ῴ ␣ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ ␣ \\
+
+ ␣ ␣ \`\textomega\ypogegrammeni{}
+ \textomega\ypogegrammeni{}
+ \'\textomega\ypogegrammeni{}
+ ␣ \~\textomega{}
+ \~\textomega\ypogegrammeni{}
+ \`\textOmicron{}
+ \'\textOmicron{}
+ \`\textOmega{}
+ \'\textOmega{}
+ \textOmega\ypogegrammeni{}
+ \'{}
+ \<{} ␣
+}
+
+No case change:
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekExtended
+\end{quote}
+%
+MakeUppercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekExtended}
+\end{quote}
+%
+MakeLowercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekExtended}
+\end{quote}
+
+
+\subsubsection{named accent macros}
+
+\renewcommand{\GreekExtended}{\raggedright
+ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ \\
+ \accpsili\textalpha{}
+ \accdasia\textalpha{}
+ \accpsilivaria\textalpha{}
+ \accdasiavaria\textalpha{}
+ \accpsilioxia\textalpha{}
+ \accdasiaoxia\textalpha{}
+ \accpsiliperispomeni\textalpha{}
+ \accdasiaperispomeni\textalpha{}
+ \accpsili\textAlpha{}
+ \accdasia\textAlpha{}
+ \accpsilivaria\textAlpha{}
+ \accdasiavaria\textAlpha{}
+ \accpsilioxia\textAlpha{}
+ \accdasiaoxia\textAlpha{}
+ \accpsiliperispomeni\textAlpha{}
+ \accdasiaperispomeni\textAlpha{} \\
+
+ ἐ ἑ ἒ ἓ ἔ ἕ ␣ ␣ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ \\
+ \accpsili\textepsilon{}
+ \accdasia\textepsilon{}
+ \accpsilivaria\textepsilon{}
+ \accdasiavaria\textepsilon{}
+ \accpsilioxia\textepsilon{}
+ \accdasiaoxia\textepsilon{}
+ ␣ ␣ \accpsili\textEpsilon{}
+ \accdasia\textEpsilon{}
+ \accpsilivaria\textEpsilon{}
+ \accdasiavaria\textEpsilon{}
+ \accpsilioxia\textEpsilon{}
+ \accdasiaoxia\textEpsilon{}\\
+
+ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ \\
+ \accpsili\texteta{}
+ \accdasia\texteta{}
+ \accpsilivaria\texteta{}
+ \accdasiavaria\texteta{}
+ \accpsilioxia\texteta{}
+ \accdasiaoxia\texteta{}
+ \accpsiliperispomeni\texteta{}
+ \accdasiaperispomeni\texteta{}
+ \accpsili\textEta{}
+ \accdasia\textEta{}
+ \accpsilivaria\textEta{}
+ \accdasiavaria\textEta{}
+ \accpsilioxia\textEta{}
+ \accdasiaoxia\textEta{}
+ \accpsiliperispomeni\textEta{}
+ \accdasiaperispomeni\textEta{} \\
+
+ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ \\
+ \accpsili\textiota{}
+ \accdasia\textiota{}
+ \accpsilivaria\textiota{}
+ \accdasiavaria\textiota{}
+ \accpsilioxia\textiota{}
+ \accdasiaoxia\textiota{}
+ \accpsiliperispomeni\textiota{}
+ \accdasiaperispomeni\textiota{}
+ \accpsili\textIota{}
+ \accdasia\textIota{}
+ \accpsilivaria\textIota{}
+ \accdasiavaria\textIota{}
+ \accpsilioxia\textIota{}
+ \accdasiaoxia\textIota{}
+ \accpsiliperispomeni\textIota{}
+ \accdasiaperispomeni\textIota{} \\
+
+ ὀ ὁ ὂ ὃ ὄ ὅ ␣ ␣ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ \\
+ \accpsili\textomicron{}
+ \accdasia\textomicron{}
+ \accpsilivaria\textomicron{}
+ \accdasiavaria\textomicron{}
+ \accpsilioxia\textomicron{}
+ \accdasiaoxia\textomicron{}
+ ␣ ␣ \accpsili\textOmicron{}
+ \accdasia\textOmicron{}
+ \accpsilivaria\textOmicron{}
+ \accdasiavaria\textOmicron{}
+ \accpsilioxia\textOmicron{}
+ \accdasiaoxia\textOmicron{} \\
+
+ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ ␣ Ὑ ␣ Ὓ ␣ Ὕ ␣ Ὗ \\
+ \accpsili\textupsilon{}
+ \accdasia\textupsilon{}
+ \accpsilivaria\textupsilon{}
+ \accdasiavaria\textupsilon{}
+ \accpsilioxia\textupsilon{}
+ \accdasiaoxia\textupsilon{}
+ \accpsiliperispomeni\textupsilon{}
+ \accdasiaperispomeni\textupsilon{}
+ ␣ \accdasia\textUpsilon{}
+ ␣ \accdasiavaria\textUpsilon{}
+ ␣ \accdasiaoxia\textUpsilon{}
+ ␣ \accdasiaperispomeni\textUpsilon{} \\
+
+ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ \\
+ \accpsili\textomega{}
+ \accdasia\textomega{}
+ \accpsilivaria\textomega{}
+ \accdasiavaria\textomega{}
+ \accpsilioxia\textomega{}
+ \accdasiaoxia\textomega{}
+ \accpsiliperispomeni\textomega{}
+ \accdasiaperispomeni\textomega{}
+ \accpsili\textOmega{}
+ \accdasia\textOmega{}
+ \accpsilivaria\textOmega{}
+ \accdasiavaria\textOmega{}
+ \accpsilioxia\textOmega{}
+ \accdasiaoxia\textOmega{}
+ \accpsiliperispomeni\textOmega{}
+ \accdasiaperispomeni\textOmega{} \\
+
+ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ \\
+ \accvaria\textalpha{}
+ \accoxia\textalpha{}
+ \accvaria\textepsilon{}
+ \accoxia\textepsilon{}
+ \accvaria\texteta{}
+ \accoxia\texteta{}
+ \accvaria\textiota{}
+ \accoxia\textiota{}
+ \accvaria\textomicron{}
+ \accoxia\textomicron{}
+ \accvaria\textupsilon{}
+ \accoxia\textupsilon{}
+ \accvaria\textomega{}
+ \accoxia\textomega{} \\
+
+ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ \\
+ \accpsili\textalpha\ypogegrammeni{}
+ \accdasia\textalpha\ypogegrammeni{}
+ \accpsilivaria\textalpha\ypogegrammeni{}
+ \accdasiavaria\textalpha\ypogegrammeni{}
+ \accpsilioxia\textalpha\ypogegrammeni{}
+ \accdasiaoxia\textalpha\ypogegrammeni{}
+ \accpsiliperispomeni\textalpha\ypogegrammeni{}
+ \accdasiaperispomeni\textalpha\ypogegrammeni{}
+ \accpsili\textAlpha\ypogegrammeni{}
+ \accdasia\textAlpha\ypogegrammeni{}
+ \accpsilivaria\textAlpha\ypogegrammeni{}
+ \accdasiavaria\textAlpha\ypogegrammeni{}
+ \accpsilioxia\textAlpha\ypogegrammeni{}
+ \accdasiaoxia\textAlpha\ypogegrammeni{}
+ \accpsiliperispomeni\textAlpha\ypogegrammeni{}
+ \accdasiaperispomeni\textAlpha\ypogegrammeni{} \\
+
+ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ \\
+ \accpsili\texteta\ypogegrammeni{}
+ \accdasia\texteta\ypogegrammeni{}
+ \accpsilivaria\texteta\ypogegrammeni{}
+ \accdasiavaria\texteta\ypogegrammeni{}
+ \accpsilioxia\texteta\ypogegrammeni{}
+ \accdasiaoxia\texteta\ypogegrammeni{}
+ \accpsiliperispomeni\texteta\ypogegrammeni{}
+ \accdasiaperispomeni\texteta\ypogegrammeni{}
+ \accpsili\textEta\ypogegrammeni{}
+ \accdasia\textEta\ypogegrammeni{}
+ \accpsilivaria\textEta\ypogegrammeni{}
+ \accdasiavaria\textEta\ypogegrammeni{}
+ \accpsilioxia\textEta\ypogegrammeni{}
+ \accdasiaoxia\textEta\ypogegrammeni{}
+ \accpsiliperispomeni\textEta\ypogegrammeni{}
+ \accdasiaperispomeni\textEta\ypogegrammeni{} \\
+
+ ᾠ ᾡ ᾢ ᾣ ᾤ ᾦ ᾧ ᾥ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ \\
+ \accpsili\textomega\ypogegrammeni{}
+ \accdasia\textomega\ypogegrammeni{}
+ \accpsilivaria\textomega\ypogegrammeni{}
+ \accdasiavaria\textomega\ypogegrammeni{}
+ \accpsilioxia\textomega\ypogegrammeni{}
+ \accdasiaoxia\textomega\ypogegrammeni{}
+ \accpsiliperispomeni\textomega\ypogegrammeni{}
+ \accdasiaperispomeni\textomega\ypogegrammeni{}
+ \accpsili\textOmega\ypogegrammeni{}
+ \accdasia\textOmega\ypogegrammeni{}
+ \accpsilivaria\textOmega\ypogegrammeni{}
+ \accdasiavaria\textOmega\ypogegrammeni{}
+ \accpsilioxia\textOmega\ypogegrammeni{}
+ \accdasiaoxia\textOmega\ypogegrammeni{}
+ \accpsiliperispomeni\textOmega\ypogegrammeni{}
+ \accdasiaperispomeni\textOmega\ypogegrammeni{} \\
+
+ ᾰ ᾱ ᾲ ᾳ ᾴ ␣ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ \\
+ \u\textalpha{}
+ \=\textalpha{}
+ \accvaria\textalpha\ypogegrammeni{}
+ \textalpha\ypogegrammeni{}
+ \accoxia\textalpha\ypogegrammeni{}
+ ␣ \accperispomeni\textalpha{}
+ \accperispomeni\textalpha\ypogegrammeni{}
+ \u\textAlpha{}
+ \=\textAlpha{}
+ \accvaria\textAlpha{}
+ \accoxia\textAlpha{}
+ \textAlpha\ypogegrammeni{}
+ \accpsili{}
+ \prosgegrammeni{}
+ \accpsili{} \\
+
+ ῀ ῁ ῂ ῃ ῄ ␣ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ \\
+ \accperispomeni{}
+ \accdialytikaperispomeni{}
+ \accvaria\texteta\ypogegrammeni{}
+ \texteta\ypogegrammeni{}
+ \accoxia\texteta\ypogegrammeni{}
+ ␣ \accperispomeni\texteta{}
+ \accperispomeni\texteta\ypogegrammeni{}
+ \accvaria\textEpsilon{}
+ \accoxia\textEpsilon{}
+ \accvaria\textEta{}
+ \accoxia\textEta{}
+ \textEta\ypogegrammeni{}
+ \accpsilivaria{}
+ \accpsilioxia{}
+ \accpsiliperispomeni{} \\
+
+ ῐ ῑ ῒ ΐ ␣ ␣ ῖ ῗ Ῐ Ῑ Ὶ Ί ␣ ῝ ῞ ῟ \\
+ \u\textiota{}
+ \=\textiota{}
+ \accdialytikavaria\textiota{}
+ \accdialytikatonos\textiota{}
+ ␣ ␣ \accperispomeni\textiota{}
+ \accperispomeni"\textiota{}
+ \u\textIota{}
+ \=\textIota{}
+ \accvaria\textIota{}
+ \accoxia\textIota{}
+ ␣
+ \accdasiavaria{}
+ \accdasiaoxia{}
+ \accdasiaperispomeni{} \\
+
+ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` \\
+ \u\textupsilon{}
+ \=\textupsilon{}
+ \accdialytikavaria\textupsilon{}
+ \accdialytikatonos\textupsilon{}
+ \accpsili\textrho{}
+ \accdasia\textrho{}
+ \accperispomeni\textupsilon{}
+ \accdialytikaperispomeni\textupsilon{}
+ \u\textUpsilon{}
+ \=\textUpsilon{}
+ \accvaria\textUpsilon{}
+ \accoxia\textUpsilon{}
+ \accdasia\textRho{}
+ \accdialytikavaria{}
+ \accdialytikatonos{}
+ \accvaria{} \\
+
+ ␣ ␣ ῲ ῳ ῴ ␣ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ ␣ \\
+
+ ␣ ␣ \accvaria\textomega\ypogegrammeni{}
+ \textomega\ypogegrammeni{}
+ \accoxia\textomega\ypogegrammeni{}
+ ␣ \accperispomeni\textomega{}
+ \accperispomeni\textomega\ypogegrammeni{}
+ \accvaria\textOmicron{}
+ \accoxia\textOmicron{}
+ \accvaria\textOmega{}
+ \accoxia\textOmega{}
+ \textOmega\ypogegrammeni{}
+ \accoxia{}
+ \accdasia{} ␣
+}
+
+No case change:
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekExtended
+\end{quote}
+%
+MakeUppercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekExtended}
+\end{quote}
+%
+MakeLowercase:
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekExtended}
+\end{quote}
+
+
+\section{Latin transliteration}
+
+\ifdefined \UnicodeEncodingName % set by LaTeX for Unicode-aware engines
+ \textbf{Warning:}
+ As the uc/lccode re-definitions are not performed when Unicode fonts are
+ used, the accents are not dropped from upcased Latin transliterations.
+ Accent macros work fine also in Latin transliterations with Xe/LuaTeX.
+\fi
+
+\subsection{Greek and Coptic}
+
+Every second line is input as Latin transliteration:
+
+\renewcommand{\GreekAndCoptic}{%
+ ͺ ; ␣ ␣ ΄ ΅ Ά · Έ Ή Ί ␣ Ό ␣ Ύ Ώ \\
+ \lgrfont{ | ? ␣ ␣ ' "' 'A ; 'E 'H 'I ␣ 'O ␣ 'U 'W} \\
+ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο \\
+ \lgrfont{'"i A B G D E Z H J I K L M N X O} \\
+ Π Ρ ␣ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί \\
+ \lgrfont{ P R ␣ S T U F Q Y W "I "U 'a 'e 'h 'i} \\
+ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο \\
+ \lgrfont{'"u a b g d e z h j i k l m n x o} \\
+ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ ␣ \\
+ \lgrfont{ p r s s\textcompwordmark{}
+ t u f q y w "i "u 'o 'u 'w ␣}
+}
+
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekAndCoptic
+\end{quote}
+%
+MakeUppercase:
+
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekAndCoptic}
+\end{quote}
+%
+Letters upcased, dialytika and sub-iota unchanged, other diacritics dropped
+(if \verb|\greekfontencoding| is LGR).
+
+
+MakeLowercase:
+
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekAndCoptic}
+\end{quote}
+%
+With LGR, the lowercase of \ensuregreek{Σ} 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 \ensuregreek{Ϛ} is
+\ensuregreek{\MakeLowercase{Ϛ}}, not \verb|\textvarstigma|%
+\ifdefined \UnicodeEncodingName \else
+ (\ensuregreek\textvarstigma)%
+\fi .
+
+\subsection{Greek extended}
+
+Every second line is input as Latin transliteration. The current language
+variant is \emph\GreekLanguageVariant.
+
+\renewcommand{\GreekExtended}{\raggedright
+ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ \\
+ \lgrfont{>a <a >`a <`a >'a <'a >~a <~a >A <A >`A <`A >'A <'A >~A <~A } \\
+ ἐ ἑ ἒ ἓ ἔ ἕ ␣ ␣ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ \\
+ \lgrfont{>e <e >`e <`e >'e <'e ␣ ␣ >E <E >`E <`E >'E <'E } \\
+ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ \\
+ \lgrfont{>h <h >`h <`h >'h <'h >~h <~h >H <H >`H <`H >'H <'H >~H <~H } \\
+ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ \\
+ \lgrfont{>i <i >`i <`i >'i <'i >~i <~i >I <I >`I <`I >'I <'I >~I <~I } \\
+ ὀ ὁ ὂ ὃ ὄ ὅ ␣ ␣ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ \\
+ \lgrfont{>o <o >`o <`o >'o <'o ␣ ␣ >O <O >`O <`O >'O <'O } \\
+ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ ␣ Ὑ ␣ Ὓ ␣ Ὕ ␣ Ὗ \\
+ \lgrfont{>u <u >`u <`u >'u <'u >~u <~u ␣ <U ␣ <`U ␣ <'U ␣ <~U } \\
+ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ \\
+ \lgrfont{>w <w >`w <`w >'w <'w >~w <~w >W <W >`W <`W >'W <'W >~W <~W } \\
+ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ \\
+ \lgrfont{`a 'a `e 'e `h 'h `i 'i `o 'o `u 'u `w 'w } \\
+ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ \\
+ \lgrfont{>a| <a| >`a| <`a| >'a| <'a| >~a| <~a| >A| <A| >`A| <`A| >'A| <'A| >~A| <~A|} \\
+ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ \\
+ \lgrfont{>h| <h| >`h| <`h| >'h| <'h| >~h| <~h| >H| <H| >`H| <`H| >'H| <'H| >~H| <~H|} \\
+ ᾠ ᾡ ᾢ ᾣ ᾤ ᾦ ᾧ ᾥ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ \\
+ \lgrfont{>w| <w| >`w| <`w| >'w| <'w| >~w| <~w| >W| <W| >`W| <`W| >'W| <'W| >~W| <~W|} \\
+ ᾰ ᾱ ᾲ ᾳ ᾴ ␣ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ \\
+\lgrfont{\u{a} \=a `a| a| 'a| ␣ ~a ~a| \u{A} \=A `A 'A A| > | > } \\
+ ῀ ῁ ῂ ῃ ῄ ␣ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ \\
+ \lgrfont{~ "~ `h| h| 'h| ␣ ~h ~h| `E 'E `H 'H H| >` >' ~> } \\
+ ῐ ῑ ῒ ΐ ␣ ␣ ῖ ῗ Ῐ Ῑ Ὶ Ί ␣ ῝ ῞ ῟ \\
+\lgrfont{\u{i} \=i `"i '"i ␣ ␣ ~i ~"i \u{I} \=I `I 'I ␣ <` <' ~< } \\
+ ῠ ῡ ῢ ΰ ␣ ␣ ῤ ῥ ῦ ῧ Ὺ Ύ Ῥ ῭ ΅ ` \\
+\lgrfont{\u{u} \=u `"u '"u ␣ ␣ >r <r ~u ~"u `U 'U <R `" '" ` } \\
+ ␣ ␣ ῲ ῳ ῴ ␣ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ \\
+ \lgrfont{ ␣ ␣ `w| w| 'w| ␣ ~w ~w| `O 'O `W 'W W| ' < } \\
+}
+
+\begin{quote}
+ \selectlanguage{greek}
+ \GreekExtended
+\end{quote}
+
+With monotonic Greek or if the Greek font encoding is not LGR, the tilde
+keeps its default expansion as NBSP and transliterations involving \verb|~|
+fail. (The tilde accent \verb|\~| as well as combined accents involving the
+tilde work in all language variants.)
+
+MakeUppercase:
+
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeUppercase{\GreekExtended}
+\end{quote}
+
+Breathings, combined accents and varia are re-mapped to the "empty" char
+only with the language variants \emph{polutoniko} or \emph{ancient}
+(currently \GreekLanguageVariant) as they are not required with monotonic
+Greek and only if \verb|\greekfontencoding| is LGR.
+
+In literal input, the uppercase of spacing combining accents including a
+dialytika \verb|"~ "` "'| appears as apostrophe, as a single \verb|"| stands
+for an apostrophe in the LGR transliteration if followed by a space or empty
+character.
+
+MakeLowercase:
+
+\begin{quote}
+ \selectlanguage{greek}
+ \MakeLowercase{\GreekExtended}
+\end{quote}
+
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek-8bitcompat.tex b/Master/texmf-dist/doc/generic/babel-greek/test-greek-8bitcompat.tex
new file mode 100644
index 00000000000..5fba328dc6b
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-greek-8bitcompat.tex
@@ -0,0 +1,37 @@
+% Test Babel-Greek with LuaTeX and 8-bit fonts
+% © 2022 Günter Milde
+
+% Setup for LuaTeX with 8-bit fonts
+\newcommand{\SETUP}{
+ % LGR must be defined before loading "luainputenc" (bug in luainputenc?)
+ \usepackage[LGR,T1]{fontenc}
+ \usepackage{lmodern}
+ \usepackage[utf8]{luainputenc}
+ \newcommand*{\greekfontencoding}{LGR} % force LGR setup¹
+
+ \usepackage[greek,
+ % greek.local-LGR-fixes,
+ english]{babel}
+ % Uncomment the desired language variant
+ % \languageattribute{greek}{polutoniko} % "modern" polytonic Greek
+ \languageattribute{greek}{ancient} % ancient Greek
+}
+
+\newcommand{\SETUPDOC}{%
+This test is
+\ifdefined\luatexversion compiled
+\else intended for but \textbf{not} compiled
+\fi
+with LuaTeX in 8-bit compatibility mode.
+It loads the \pkgref{luainputenc} package for UTF-8 decoding
+and sets \texttt{\textbackslash greekfontencoding} to LGR.
+
+Hyphenation in Greek text parts fails (would require the
+8-bit hyphenation patterns, i.a., a loader fix for LuaTeX).
+}
+
+\input{test-greek.tex}
+
+% ¹TODO: Currently, defining \greekfontencoding must be done with
+% \def or \newcommand* and fails with \newcommand because
+% of the fragile string comparison using \ifx in greek.ldf!
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek-ini.tex b/Master/texmf-dist/doc/generic/babel-greek/test-greek-ini.tex
new file mode 100644
index 00000000000..f6fe1e15be6
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-greek-ini.tex
@@ -0,0 +1,60 @@
+% Test Babel's "ini" file for Greek
+% © 2023 Günter Milde
+
+% Setup for Greek with localisation from the "ini" files.
+\newcommand{\SETUP}{
+
+ \ifdefined\UnicodeEncodingName % set by XeTeX/LuaTeX
+ \else % 8-bit TeX
+ \usepackage{lmodern}
+ \usepackage[LGR,T1]{fontenc}
+ % \usepackage{textalpha}
+ \ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont
+ \def\encodingdefault{\greekfontencoding}}
+ \ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\greekscript ##1}}
+ % Babel <= (3.84) misses the automatic font encoding switch to LGR
+ % \addto\extrasgreek{\greekscript}
+ % \addto\noextrasgreek{\latintext}
+ \fi
+
+ \usepackage[greek, english, provide*=*]{babel}
+
+ \ifdefined\UnicodeEncodingName % set by XeTeX/LuaTeX
+ \babelfont{rm}[Scale=0.92]{DejaVu Serif}
+ % The "ini" Greek setup does not load extended Greek definitions for TU.
+ % Load textalpha or provide dummy definitions:
+ % \usepackage{textalpha}
+ \ProvideTextCommand{\ensuregreek}{TU}[1]{##1}
+ \ProvideTextCommand{\greekscript}{TU}{}
+ \ProvideTextCommand{\textalpha}{TU}{\cs{textalpha}}
+ \ProvideTextCommand{\textOmega}{TU}{\cs{textOmega}}
+ \fi
+
+ \usepackage{hyperref}
+ \hypersetup{unicode, colorlinks=true,linkcolor=blue,urlcolor=blue}
+
+ % fallbacks for commands defined in babel-greek:
+ \providecommand*\greekfontencoding{None}
+ % \providecommand*\lgrfont[1]{\cs{lgrfont} \emph{missing}}
+ \ProvideTextCommandDefault{\textampersand}{\&}
+ \providecommand*\greeknumeral[1]{\{##1\}}
+}
+
+\newcommand{\SETUPDOC}{%
+This test uses Babel's built-in Greek support (``ini'' file,
+cf. \href{https://latex3.github.io/babel/guides/locale-greek.html}
+{Babel guides ``Greek''}).
+
+The following problems can be easily fixed by loading the \emph{textalpha}
+package.
+\begin{itemize}
+ \item Accents not dropped with old (pre 2022/06) \cs{MakeUppercase}.
+ \item Greek LICR macros unknown in TU.
+\end{itemize}
+
+The new 2023/02/10 \cs{MakeUppercase} code fixes the UPPERCASE of Greek
+Unicode literals (including a fix for the ``hiatus'' problem).
+
+}
+
+\input{test-greek.tex}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek-lgr.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-greek-lgr.pdf
deleted file mode 100644
index c1e973315c9..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-greek-lgr.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek-tu.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-greek-tu.pdf
deleted file mode 100644
index c022976fbe1..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-greek-tu.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf
new file mode 100644
index 00000000000..2abc4e024d3
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex b/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex
index 03dd9db4e33..8c72c355a6e 100644
--- a/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex
@@ -1,30 +1,127 @@
+% Test document for Babel-Greek
+% © 2013, 2022 Günter Milde
+
+% Configuration constants (see test-greek-8bit-luatex.tex for a use case)
+
+\providecommand{\SETUP}{
+ \usepackage[LGR,T1]{fontenc}
+ \usepackage{lmodern}
+ % \usepackage{kerkis}
+ % \usepackage{gfsdidot}
+ % \usepackage{dejavu}
+ % \usepackage{textalpha} % support Greek literal chars and LICR "everywhere"
+ \ifdefined \UnicodeEncodingName
+ \usepackage{fontspec}
+ % \setmainfont[%
+ % ItalicFont=NewCM10-Italic.otf,%
+ % BoldFont=NewCM10-Bold.otf,%
+ % BoldItalicFont=NewCM10-BoldItalic.otf,%
+ % SmallCapsFeatures={Numbers=OldStyle}]{NewCM10-Regular.otf}
+ % \setsansfont[%
+ % ItalicFont=NewCMSans10-Oblique.otf,%
+ % BoldFont=NewCMSans10-Bold.otf,%
+ % BoldItalicFont=NewCMSans10-BoldOblique.otf,%
+ % SmallCapsFeatures={Numbers=OldStyle}]{NewCMSans10-Regular.otf}
+ % \setmonofont[%
+ % ItalicFont=NewCMMono10-Italic.otf,%
+ % BoldFont=NewCMMono10-Bold.otf,%
+ % BoldItalicFont=NewCMMono10-BoldOblique.otf,%
+ % SmallCapsFeatures={Numbers=OldStyle}]{NewCMMono10-Regular.otf}
+ %
+ \setmainfont[Scale=0.92]{DejaVu Serif}
+ \fi
+
+ % Load and configure Babel:
+
+ % Default: modern monotonic Greek
+ \usepackage[greek,% comment out "greek" to test the "basic support"
+ % greek.local-LGR-fixes,
+ english]{babel}
+ % Uncomment the desired language variant
+ \languageattribute{greek}{polutoniko} % "modern" polytonic Greek
+ % \languageattribute{greek}{ancient} % ancient Greek
+
+ % The "polytonic" language attribute is an alias for "polutoniko" matching
+ % the spelling in polyglossia and Babel *.ini files.
+ % \languageattribute{greek}{polytonic}
+
+ % Support for the pseudo-language "polutonikogreek", used instead of "greek",
+ % is kept for backwards compatibility:
+ % \usepackage[polutonikogreek,english]{babel}
+
+ % For backwards compatibility, you can also use
+ % \selectlanguage{polutonikogreek} instead of \selectlanguage{greek} etc.
+ % if the "polutoniko" Greek language variant is selected.
+}
+
+\providecommand{\SETUPDOC}{}
+
+
\documentclass[a4paper]{article}
-\usepackage[colorlinks=true,linkcolor=blue]{hyperref}
+
+\SETUP
+
+\usepackage{hyperref}
+\hypersetup{unicode, colorlinks=true,linkcolor=blue,urlcolor=blue}
+% \usepackage{bookmark}
+
\usepackage{parskip}
-\usepackage[greek,english]{babel}
-% \languageattribute{greek}{polutoniko}
-% \languageattribute{greek}{ancient}
+% Semantic styling:
-\ifdefined \UnicodeEncodingName
- \usepackage{fontspec}
- \setmainfont{DejaVu Serif}
-\fi
+\newcommand{\file}{\texttt}
+\newcommand{\cs}[1]{\texttt{\textbackslash#1}}
+\newcommand{\pkgref}[1]{\emph{\href{https://ctan.org/pkg/#1}{#1}}}
+
+
+% Auxiliary commands:
+
+% print the selected language variant
+\newcommand{\GreekLanguageVariant}{%
+ \ifx\captionsgreek\captionspolutonikogreek
+ \ifx\captionsgreek\captionsancientgreek
+ ancient%
+ \else
+ polutoniko%
+ \fi
+ \else
+ monotoniko%
+ \fi
+}
+
+% The paragraph after \showhyphenpar is printed with all words
+% shown as hy-phen-ated.
+% from https://tex.stackexchange.com/questions/55282/display-hyphenation-options-for-a-specific-word/55283#55283
+\def\showhyphenpar{\bgroup
+ \def\par{\setparams\endgraf\composelines}
+ \setbox0=\vbox\bgroup \noindent\hskip0pt\relax}
+\def\setparams{\rightskip=0pt plus1fil
+ \linepenalty=1000 \pretolerance=-1 \hyphenpenalty=-10000}
+\def\composelines{\setbox2=\hbox{}%
+ \loop \setbox0=\lastbox \unskip \unpenalty
+ \ifhbox0 % je už \vbox vyprázdněn?
+ \global\setbox2=\hbox{\unhbox0\unskip\unhbox2}
+ \repeat
+ \egroup % vyprázdněný \vbox ukončím
+ \exhyphenpenalty=10000 % \box2 vyšoupnu do vnějšího seznamu
+ \emergencystretch=4em \leavevmode\unhbox2 \endgraf\egroup}
+
+% --------------------------------------------------------------------------
\begin{document}
-\title{Greek support for Babel}
+\title{Test the Greek support for Babel}
\author{Günter Milde}
-\date{2020/11/10}
+\date{\today}
\maketitle
-The babel option «greek» activates the support for the Greek language
-defined in the file «greek.ldf» (source «greek.dtx»).
+Test support for the Greek language as defined in the file
+\file{greek.ldf} (source \file{greek.dtx}).
+
+\SETUPDOC % print additional setup information.
+
+\tableofcontents
-Typesetting Greek texts requires a font containing Greek letters. With the
-XeTeX or LuaTeX engines, the user must ensure that the selected font
-contains the required glyphs (the default Latin Modern fonts miss most of
-them).
\section{Language Switch}
@@ -38,172 +135,376 @@ The declaration \verb|\selectlanguage| switches between languages.
\end{quote}
The command \verb|\foreignlanguage| sets its second argument in the language
-specified as first argument. This is intended for short text parts like
-\foreignlanguage{greek}{Βιβλιοθήκη}.
+specified as first argument. This is intended for short text parts or
+single words like \foreignlanguage{greek}{Βιβλιοθήκη}.
-\section{Font Encoding}
+Input may use literal Greek characters (\foreignlanguage{greek}{α \ldots Ω}),
+LICR macros (\foreignlanguage{greek}{\textalpha{} \ldots{} \textOmega}),
+or the Latin transliteration (\foreignlanguage{greek}{a \ldots{} W}) defined
+by the LGR font encoding (if LGR is used).
-Every language switch to \texttt{greek} calls the \verb|\extrasgreek|
-command which in turn calls \verb|\greekscript| to ensure a Greek-supporting
-font encoding (LGR or TU). At this point, the «greekfontencoding»
-is \texttt{\greekfontencoding}.
+There should be no inserted space before or after the language switch (this
+may happen if there are unescaped linebreaks in the font or language
+definitions):
+\begin{quotation}
+ Change script with \verb|ensuregreek|: |\ensuregreek{δοῦλος}|.
+ Change
+ language with \verb|\foreignlanguage|: |\foreignlanguage{greek}{δοῦλος}|.
-LGR has Greek characters in the slots reserved in a TeX \emph{standard text
-font encoding}. Therefore, the Babel core defines the declaration
-\verb|\latintext| and the command \verb|\textlatin| to switch to the TU, T1
-or OT1 font encoding or typeset the argument using this encoding. At this
-point, the «latinencoding» is \texttt{\latinencoding}.
+ Change language with \verb|\selectlanguage|:
+ |\selectlanguage{greek}δοῦλος\selectlanguage{english}|.
+\end{quotation}
-With the Unicode font encoding \texttt{TU},
-Latin characters can be used in Greek text parts and
-input via the «LGR Latin transcription» is not possible.
-The following quote mixes Latin transcription and Greek literal characters:
+\section{Auto-strings}
-\begin{quote}
- \greekscript Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) --
- \latintext Friends (\ensuregreek{F\'ilwn}) of TeX.%
-\end{quote}
-
-\section{LICR Macros}
-
-Babel defines macros for several autogenerated strings so that they may
-appear in the choosen language. \emph{babel-greek} uses LICR%
+\emph{Babel} defines macros for several autogenerated strings so that they
+may appear in the choosen language. \emph{Babel-greek} uses LICR%
\footnote{LaTeX internal character representation} macros in
order to let the string macros work independent of the font encoding.
-If \verb|\greekfontencoding| is TU, \emph{babel-greek} loads Greek LICR
-definitions from the file \texttt{tuenc-greek.def} provided by
-\href{http://www.ctan.org/pkg/greek-fontenc}{greek-fontenc}
-since version~0.14 (2020-02-28).
+\selectlanguage{greek}
+\begin{abstract}
+ \ensureascii{Look for the abstract name. Today is} \today.
+\end{abstract}
+\selectlanguage{english}
-With this setup, it is also possible to use accent macros instead of
-pre-composed Unicode characters for letters with diacritics%
-\ifdefined \UnicodeEncodingName
- : Τ\'ι φ\'ηις;, \`<ορα = \accdasiavaria{ο}ρα
-\fi
-.
+Show the auto-strings for language variant ``\GreekLanguageVariant''.
\subsection{Captions}
+\newcommand{\AutoStrings}{%
+ \abstractname,
+ \alsoname,
+ \appendixname,
+ \bibname,\\
+ \ccname,
+ \chaptername,
+ \contentsname,
+ \enclname,\\
+ \figurename,
+ \glossaryname,
+ \headtoname,
+ \indexname,\\
+ \listfigurename ,
+ \listtablename,\\
+ \pagename,
+ \partname,
+ \prefacename,
+ \proofname,\\
+ \refname,
+ \seename,
+ \tablename
+}
\selectlanguage{greek}
-\prefacename,
-\refname,
-\abstractname,
-\bibname,
-\chaptername,
-\appendixname,
-\contentsname,
-\listfigurename ,
-\listtablename,
-\indexname,
-\figurename,
-\tablename,
-\partname,
-\enclname,
-\ccname,
-\headtoname,
-\pagename,
-\seename,
-\alsoname,
-\proofname,
-\glossaryname
+\AutoStrings
\selectlanguage{english}
Test correct upcasing (dropping of accents):
\selectlanguage{greek}
-\MakeUppercase{
-\prefacename,
-\refname,
-\abstractname,
-\bibname,
-\chaptername,
-\appendixname,
-\contentsname,
-\listfigurename,
-\listtablename,
-\indexname,
-\figurename,
-\tablename,
-\partname,
-\enclname,
-\ccname,
-\headtoname,
-\pagename,
-\seename,
-\alsoname,
-\proofname,
-\glossaryname
-}
+\MakeUppercase{\AutoStrings}
\selectlanguage{english}
-
\subsection{Months}
-\selectlanguage{greek}
-\newcounter{foo}
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\selectlanguage{english}
-\section{Greek Numerals (\greeknumeral{1} to \Greeknumeral{999999})}
+\begin{quotation}
+ \selectlanguage{greek}
+ \newcounter{origmonth}
+ \setcounter{origmonth}{\the\month}
+ \newcounter{foo}
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
-See greek.pdf for the formation rules of Greek numerals.
-Some examples:
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
-\selectlanguage{greek}
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
-\greeknumeral{1},
-\greeknumeral{2},
-\greeknumeral{3},
-\greeknumeral{4},
-\greeknumeral{5},
-\greeknumeral{6},
-\greeknumeral{7},
-\greeknumeral{8},
-\greeknumeral{9},
-\greeknumeral{10},
-\greeknumeral{11},
-\greeknumeral{12},
-\greeknumeral{20},
-\greeknumeral{345},
-\greeknumeral{500},
-\greeknumeral{1997},
-\greeknumeral{2013}
-
-\Greeknumeral{1},
-\Greeknumeral{2},
-\Greeknumeral{3},
-\Greeknumeral{4},
-\Greeknumeral{5},
-\Greeknumeral{6},
-\Greeknumeral{7},
-\Greeknumeral{8},
-\Greeknumeral{9},
-\Greeknumeral{10},
-\Greeknumeral{11},
-\Greeknumeral{12},
-\Greeknumeral{20},
-\Greeknumeral{345},
-\Greeknumeral{500},
-\Greeknumeral{1997},
-\Greeknumeral{2013}
-\selectlanguage{english}
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
-Enumerated lists use Greek characters/numerals in the second and fourth level:
+ \stepcounter{foo} \month=\value{foo} \today \qquad \MakeUppercase{\today}
+ \month=\value{origmonth}
+\end{quotation}
+
+
+\section{Hyphenation}
+
+Patterns for the Greek language variants:
+
+\makeatletter
+monotonic: \verb|\l@monogreek| = \the\l@monogreek \\
+polytonic: \verb|\l@polygreek| = \the\l@polygreek \\
+ancient: \verb|\l@ancientgreek| = \the\l@ancientgreek
+
+current: \verb|\l@greek| = \the\l@greek
+\makeatletter
+
+Greek paragraph:
+\begin{quote}
+ \selectlanguage{greek}
+ \showhyphenpar
+ \ensureascii{monotonic:} Ευρετήριο, επίσης, Απόδειξη \\
+ \ensureascii{polytonic:} Εὑρετήριο, ἐπίσης, Ἀπόδειξη \\
+ \ensureascii{ancient:} Εὑρετήριον, ὡσαύτως, Ἀπόδειξις
+\end{quote}
+
+English paragraph with Greek text (\verb|\foreignlanguage{greek}|):
+\begin{quote}
+ \showhyphenpar
+ monotonic: \foreignlanguage{greek}{Ευρετήριο, επίσης, Απόδειξη } \\
+ polytonic: \foreignlanguage{greek}{Εὑρετήριο, ἐπίσης, Ἀπόδειξη } \\
+ ancient: \foreignlanguage{greek}{Εὑρετήριον, ὡσαύτως, Ἀπόδειξις}
+\end{quote}
+
+English paragraph with Greek script (\verb|\ensuregreek|): no hypenation
+\begin{quote}
+ \showhyphenpar
+ monotonic: \ensuregreek{Ευρετήριο, επίσης, Απόδειξη } \\
+ polytonic: \ensuregreek{Εὑρετήριο, ἐπίσης, Ἀπόδειξη } \\
+ ancient: \ensuregreek{Εὑρετήριον, ὡσαύτως, Ἀπόδειξις}
+\end{quote}
+
+\section{Greek Numerals (\greeknumeral{1} \ldots{} \greeknumeral{999999})%
+ \label{sec:greek-numerals}}
+
+\emph{Babel-Greek} provides the macros \verb|\greeknumeral| and
+\verb|\Greeknumeral| for the conversion of Arabic numbers from 1 to 999\,999
+into their Greek counterparts (\greeknumeral{1}, \greeknumeral{2},
+\greeknumeral{3}, \ldots, \greeknumeral{999999}).
+See \file{babel-greek.pdf} for the formation rules and configuration
+options and \file{test-greeknum.pdf} for samples.
+
+Examples:
+
+\newcommand*{\shownumeral}[2]{\mbox{#2 = \csname #1\endcsname{#2}}}
+\newcommand*{\numeralsample}[1]{%
+ \shownumeral{#1}{36}\quad
+ \shownumeral{#1}{94}\quad
+ \shownumeral{#1}{678}\quad
+ \shownumeral{#1}{2002}\quad
+ \shownumeral{#1}{923090}}
+
+\numeralsample{greeknumeral}
+
+\numeralsample{Greeknumeral}
+
+Users can redefine the macros \verb`\greeknumeralsix` and
+\verb`\greeknumeralSix` as well as \verb`\greeknumeralninety`
+\verb`\greeknumeralNinety` to configure the used symbols.
+
+If a font misses glyphs for the Greek numeral signs, subsitute characters
+may be defined with the macros
+\cs{textdexiakeraia} and \cs{textaristerikeraia}.
+
+\ifdefined \greeknumeralsix
+ Example (use ``archaic kappa'', ``varstigma'' with pdftex and substitute
+ chars for the numeral signs with Xe/LuaTeX):
+ \renewcommand*{\greeknumeralninety}{\textqoppa}
+ \renewcommand*{\greeknumeralNinety}{\textQoppa}
+ \ifdefined\UnicodeEncodingName
+ \renewcommand*{\textdexiakeraia}{\textquoteright}
+ \renewcommand*{\textaristerikeraia}{\quotesinglbase}
+ \else
+ \renewcommand*{\greeknumeralSix}{\textvarstigma}
+ \fi
+
+ \numeralsample{greeknumeral}
+
+ \numeralsample{Greeknumeral}
+
+ The macro \verb|\Grtoday| produces the current date with the month
+ and the day as greek numerals. Today is \ensuregreek{\Grtoday}.
+
+ \subsection{Alphabetical counters}
+
+ In line with Greek typographical tradition (and to avoid messed up
+ alphabetical counters with LGR fonts), \emph{babel-greek} changes
+ the internal LaTeX commands \cs{@alph} and \cs{@Alph}
+ to use Greek numerals inside Greek text parts
+ (see section~\ref{sec:LGR-redefinitions} for an example).
+
+\fi
+
+\section{Font Encoding}
+
+TeX's standard 8-bit text fonts don't provide for Greek characters.
+Every language switch to \texttt{greek} calls the \verb|\extrasgreek|
+language hook which in turn calls \verb|\greekscript| to ensure a
+Greek-supporting font encoding (LGR or TU).
+With the current setup, this document uses
+\begin{itemize}
+ \item \greekfontencoding{} as \verb|\greekfontencoding|,
+ \item \latinencoding{} as \verb|\latinencoding|, and
+ \makeatletter \ensureascii{\cf@encoding} \makeatother
+ inside \verb|\ensureascii|.
+\end{itemize}
+
+If \verb|\greekfontencoding| is LGR, \emph{babel-greek} performs additional
+setup steps to fix issues with the Latin transliteration (see below).
+If it is TU, \emph{babel-greek} loads Greek LICR definitions from the file
+\file{tuenc-greek.def}\footnote{%
+ Provided by \pkgref{greek-fontenc} since version~0.14 (2020-02-28)}.
+\ifdefined\UnicodeEncodingName
+ %
+ % Attention: \meaning\greekfontencoding\ != \meaning\UnicodeEncodingName
+ \expandafter\ifx\greekfontencoding\UnicodeEncodingName
+ With this setup, it is also possible to use accent macros instead of
+ pre-composed Unicode characters for letters with diacritics,
+ ὃρα = \`<ορα = \accdasiavaria{ο}ρα.
+ \fi
+\fi
+
+\ifdefined\greekscript
+ Switching to a font encoding supporting the Greek script is possible without
+ switching the Babel language using the declarations \verb|\greekscript| (no
+ switch if the current encoding supports the Greek script (e.g. the Unicode
+ font encodings TU and PU) or \verb|\greektext| (always switch to LGR) and the
+ corresponding functions \verb|\ensuregreek| and \verb|\lgrfont|.%
+ \footnote{Hyphenation patterns are not changed,
+ check for wrong hyphenations.}
+ These commands also work in the middle of a paragraph or word:
+ \greekscript Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) --
+ \latintext Friends (\ensuregreek{F\'ilwn}) of TeX.
+\fi
+
+
+\subsection{LGR's \emph{Latin transliteration}}
+
+LGR has Greek characters in the slots reserved for Latin characters and
+other symbols in a TeX \emph{standard text font encoding}.
+This allows the use of a \emph{Latin transliteration} for the input of Greek
+characters\footnote{see \file{usage.pdf}}, however, characters that should
+be printed as Latin characters must be protected from conversion by a font
+encoding switch, either selecting a different language or wrapping them with
+\verb|\ensureascii| (provided by the Babel core), that sets its argument
+using an ASCII-compatible font encoding. The legacy declaration
+\verb|\latintext| switches the font encoding to \verb|\latinencoding|.
+
+With the Unicode font encoding TU, Latin characters can be used in Greek
+text parts and the Latin transliteration does not work (but see the
+last example below).
+
+The following quote (with the Babel language set to Greek) illustrates the
+problem:
+
+Literal characters, words in the ``foreign'' script protected:
+\begin{quote}
+ \selectlanguage{greek}
+ Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) --
+ \selectlanguage{english}
+ Friends (\ensuregreek{Φίλων}) of TeX.
+\end{quote}
+
+Unprotected ASCII characters come out as Greek characters with LGR:
+\begin{quote}
+ \selectlanguage{greek}
+ Φίλων τοῦ TeX (ΕΦΤ) -- Friends (Φίλων) of TeX.
+\end{quote}
+
+The Latin transliteration works in LGR but not TU:
+\begin{quote}
+ \selectlanguage{greek}
+ F'ilwn to\~u \ensureascii{TeX} (EFT) --
+ \selectlanguage{english}
+ \latintext Friends (\ensuregreek{F\'ilwn}) of TeX.
+\end{quote}
+
+\ifdefined\lgrfont
+ The Latin transliteration can be used with also with
+ Xe/LuaTeX, if the input text is wrapped in \cs{lgrfont}
+ \footnote{available, if the LGR encoding is loaded
+ with the \pkgref{fontenc} package}
+ but may result in non-matching fonts and wrong hyphenation:
+ \begin{quote}
+ \selectlanguage{greek}
+ \lgrfont{F'ilwn to\~u \ensureascii{TeX} (EFT)} --
+ \selectlanguage{english}
+ \latintext Friends (\lgrfont{F\'ilwn}) of TeX.
+ \end{quote}
+\fi
+
+\subsubsection{LGR-proofed macros}
+
+\emph{Babel-greek} provides LGR-local variants for some
+\emph{TextCommand}s that rely on a standard text encoding.\footnote{%
+ These workarounds cannot be done in \file{lgrenc.def} from the
+ \pkgref{greek-fontenc} package because they are not allowed in a
+ ``font encoding definition file'' [\file{fntguide.pdf}].}
+The fallback definitions for some \emph{textcomp} symbols compose the
+symbols out of Latin letters.
+The fixes must not overwrite the selection of pre-composed symbols
+from \pkgref{textcomp} or TU (try copy and paste from the PDF output).
+
+LGR fonts have a middle dot glyph at the place of the ampersand. The new
+\emph{TextCommand} \verb|\textampersand| always prints an ampersand.
+\makeatletter \newcommand{\AsciiSymbolTest}{(\f@encoding) ©®™
+ A\textampersand W}
+\makeatother
+\begin{quote}
+ English: \AsciiSymbolTest\\
+ English: \ensuregreek{\AsciiSymbolTest}\\
+ Greek: \foreignlanguage{greek}{\AsciiSymbolTest}
+\end{quote}
+% English (LGR), input as macro:
+% \lgrfont{|\textcopyright|\textregistered|\texttrademark|
+% A\textampersand W.}
+
+\ifdefined\lgrfont% babel-greek and LGR font encoding loaded
+
+ \subsection{LGR re-definitions \label{sec:LGR-redefinitions}}
+
+ The generic macro \verb|\&| is re-defined inside Greek text parts to use
+ the original definition in math mode and \cs{textampersand} in text
+ mode.
+
+ \subsubsection{Roman numerals \label{sec:roman-numerals}}
+
+ Without fixes, Roman numerals are printed according to the Latin
+ transliteration (including the conversion of ``v'' to a
+ ZERO WIDTH NON-JOINER) if the font encoding is LGR:
+
+ \makeatletter
+ \newcommand{\RomanNumeralTest}{\f@encoding:
+ \romannumeral 1, \romannumeral 2, \romannumeral 3,
+ \romannumeral 4, \ldots, \romannumeral 1975}
+ \makeatother
+ \begin{quote}
+ \RomanNumeralTest\\
+ \lgrfont{\RomanNumeralTest}
+ \end{quote}
+
+ Roman numerals are used by the default document classes, e.g., in the third
+ level of enumerations or as page numbers in the frontmatter of a book.
+ They may move to auto-generated document parts like the ToC,
+ (hyper)references, or an index.
+
+ As document authors cannot wrap page numbers in a ToC in \verb|\ensureascii|,
+ \emph{Babel-greek} redefines the internal LaTeX commands \verb|\@roman| and
+ \verb|\@Roman| to make Roman numberals LGR-proof.
+ Unfortunately, this breaks Makeindex (cf. \file{test-lgr-fixes.tex}).
+
+\fi
+
+
+\subsubsection{Example}
+
+In Greek text parts, enumerated lists use Greek numerals in the second and
+fourth level and ASCII-proofed Roman numerals in the third level.
\selectlanguage{greek}
\begin{enumerate}
@@ -215,6 +516,7 @@ Enumerated lists use Greek characters/numerals in the second and fourth level:
\begin{enumerate}
\item item 1.1.1.1
\item item 1.1.1.2
+ \item item 1.1.1.3 \label{item 1.1.1.3}
\end{enumerate}
\item item 1.1.2
\end{enumerate}
@@ -222,20 +524,183 @@ Enumerated lists use Greek characters/numerals in the second and fourth level:
\end{enumerate}
\selectlanguage{english}
+\selectlanguage{english}
+Setting the language back to English should restore the alphabetic numbering:
+\begin{enumerate}
+ \item item 1
+ \begin{enumerate}
+ \item item 1.1
+ \begin{enumerate}
+ \item item 1.1.1
+ \begin{enumerate}
+ \item item 1.1.1.1
+ \item item 1.1.1.2
+ \item item 1.1.1.3
+ \end{enumerate}
+ \item item 1.1.2
+ \end{enumerate}
+ \end{enumerate}
+\end{enumerate}
-This may be problematic with fonts that only partially support Greek and
-miss the numeral signs (dexiakeraia and aristerikeraia).
+More test of the LGR-redefinitions are in \file{test-lgr-fixes.tex}.
-You may redefine the commands \verb+\textdexiakeraia+ and
-\verb+\textaristerikeraia+ to some substitute characters.
-Or, if you prefer the ``normal'' enumeration, write in the preamble after
-loading babel:
+\ifdefined\lgrfont
+\else
+ \end{document}
+\fi
-\begin{verbatim}
- \makeatletter
- \addto\extrasgreek{\let\@alph\latin@alph
- \let\@Alph\latin@Alph}
- \makeatother
-\end{verbatim}
+\section{Up- and downcasing in Greek}
+
+Capital Greek letters have diacritics (except the dialytika and sub-iota) to
+the left (instead of above) and drop them in uppercase (except the
+dialytika), e.g., \ensuregreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}.
+For literal Greek characters and accent macros, these rules are implemented
+and tested in the required package \pkgref{greek-fontenc}.
+
+Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if
+placed on the first vowel of a diphthong.
+A dialytika must be placed on the second vowel if they are dropped, e.g.
+%
+\newcommand{\HiatusLICR}{\acctonos\textalpha\textiota,
+ \acctonos\textalpha\textupsilon,
+ \acctonos\textepsilon\textiota,
+ \'>\textalpha\textiota,
+ \'>\textalpha\textupsilon,
+ \accpsili\textalpha\textupsilon,
+ \accdasiaoxia\textepsilon\textiota}%
+\ensuregreek{\HiatusLICR\ $\mapsto$ \MakeUppercase{\HiatusLICR}}.
+
+Some affected words:
+\begin{quotation}
+ \selectlanguage{greek}
+ \newcommand*{\aylos}{% from teubner.sty: άυλος → ΑΫΛΟΣ
+ \acctonos\textalpha\textupsilon\textlambda\textomicron\textfinalsigma}
+ \aylos{} $\mapsto$ \MakeUppercase{\aylos},
+ \renewcommand*{\aylos}{% polytonic: ἄυλος → ΑΫΛΟΣ
+ \'>\textalpha\textupsilon\textlambda\textomicron\textfinalsigma}
+ \aylos{} $\mapsto$ \MakeUppercase{\aylos},
+
+ % from http://diacritics.typo.cz/index.php?id=69
+ \newcommand*{\maina}{%μάινα → ΜΑΪΝΑ
+ \textmu\acctonos\textalpha\textiota\textnu\textalpha}
+ \maina{} $\mapsto$ \MakeUppercase{\maina},
+
+ % from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema
+ \newcommand*{\keik}{% κέικ → ΚΕΪΚ
+ \textkappa\acctonos\textepsilon\textiota\textkappa}
+ \keik{} $\mapsto$ \MakeUppercase{\keik},
+
+ \newcommand*{\ahypnia}{% ἀυπνία → ΑΫΠΝΙΑ
+ \accpsili\textalpha\textupsilon\textpi\textnu\acctonos\textiota\textalpha}
+ \ahypnia{} $\mapsto$ \MakeUppercase{\ahypnia},
+
+ % from http://multilingualtypesetting.co.uk/blog/greek-typesetting-tips/
+ \newcommand*{\romeika}{\textrho\textomega\textmu
+ \acctonos\textepsilon\textiota\textkappa\textalpha}
+ \romeika{} $\mapsto$ \MakeUppercase{\romeika}.
+\end{quotation}
+
+With the pre-2022/06 \cs{MakeUppercase}, automatic upcasing of words with
+\emph{hiatus} works correctly only if the accents are input as macro and the
+letters as macro or via the Latin transliteration.
+
+With the current (2023/02/10) \cs{MakeUppercase}, it works for literal
+Unicode input and named accents. The definitions in \texttt{*enc.def} files,
+\texttt{uccode}s and the \texttt{@uclclist} are ignored.
+
+\subsection{Changed uccode/lccode values for LGR}
+
+LGR encoded fonts define ligatures for characters with diacritics. To enable
+correct upcasing, \emph{babel-greek} changes the uc/lccodes of some
+characters. Characters used to input diacritics are mapped to the ``empty''
+character 0x9f = 159.
+
+To minimise side-effects (see below), uc/lccodes are only changed:
+\begin{itemize}
+ \item if \cs{greekfontencoding} is a ``short macro'' expanding to LGR,%
+ \footnote{i.e. not in documents using Unicode fonts unless
+ \cs{greekfontencoding} is explicitly set to \texttt{LGR} before
+ loading \emph{babel-greek}}
+ \item if the LaTeX version is older than 2022/06, as uccodes are ignored
+ by the \cs{MakeUppercase} implementation introduced in this version
+ \item for accents that are actually required in the selcected language
+ variant (i.e. only for the \emph{tonos}, if the language variant
+ is the default ``monotonic''.
+\end{itemize}
+
+With \cs{greekfontencoding} \greekfontencoding, LaTeX version \fmtversion,
+and language variant ``\GreekLanguageVariant'' we get for
+dialytika\footnote{%
+ Unless followed by a to-be accented vowel, the quotation mark \texttt{"}
+ is converted to an upper right apostrophe by LGR.},
+sub-iota, tonos/oxia, varia, psili, and dasia:
+
+\newcommand{\AccentCharacters}{" | ' ` > <}
+\begin{quote}
+ \selectlanguage{greek}
+ \AccentCharacters{} $\mapsto$ \MakeUppercase{\AccentCharacters}
+\end{quote}
+
+\emph{Composite command} definitions ensure that combined accents
+also work for accent characters ``upcased'' to the charcter
+No 159 = 0x9f):
+
+\newcommand{\CombinedAccentSample}{
+ \ifdefined \UnicodeEncodingName
+ % TODO: combined accents swallow whitespace after base char
+ % unless protected
+ \"'υ{} \"`υ{} \`"υ{} \'"υ{} \`<α{} \'<α{}
+ \else
+ \"'u \"`u \`"u \'"u \`<a \'<a \'<ai
+ \fi
+ \'<\textalpha\textiota
+}
+\begin{quote}
+ \selectlanguage{greek}
+ \CombinedAccentSample{} $\mapsto$ \MakeUppercase{\CombinedAccentSample}
+\end{quote}
+
+With babel-greek versions up to 1.11, using the tilde for the
+\emph{perispomeni} accent inside \verb|\MakeUppercase| led to a
+\begin{quote}
+ \texttt{Package inputenc Error: Invalid UTF-8 byte "9F}
+\end{quote}
+(even without loading \emph{inputenc} and with \verb|\UseRawInputEncoding|).%
+\footnote{cf.
+ \href{https://www.latex-project.org/news/latex2e-news/ltnews28.pdf}%
+ {LaTeX News 28}}
+Version 1.12 fixes the issue so that all three input variants work again
+(with LaTeX versions up to 2022/06)%
+\footnote{There are new issues with the implementation of \cs{MakeUppercase}
+ introduced in the 2022/06 LaTeX release, cf.\
+ \href{https://www.latex-project.org/news/latex2e-news/ltnews35.pdf}%
+ {LaTeX News 35}}
+\begin{quote}
+ \selectlanguage{greek}
+ \greektext
+ ~u \~u \accperispomeni{u} $\mapsto$ \MakeUppercase{~u \~u \accperispomeni{u}}
+\end{quote}
+
+
+The changed uc/lccodes have strange effects on Latin text parts
+in Greek paragraphs if only the encoding is switched:
+\begin{quote}
+ \selectlanguage{greek}
+ \foreignlanguage{english}{English:
+ Let's see: \AccentCharacters{} $\mapsto$
+ \MakeUppercase{Let's see: \AccentCharacters}}\\
+ \ensureascii{\cs{ensureascii}:
+ Let's see: \AccentCharacters{} $\mapsto$
+ \MakeUppercase{Let's see: \AccentCharacters}}
+\end{quote}
+%
+To limit the effect on, e.g., section headings (which are printed
+capitalised with the ``headings'' style), uccodes for ``v''
+(zero-width space) and ``c'' (final sigma) are not changed.
+Use \verb|\textcompwordmark| instead of \texttt{v} and autosigma
+(\texttt{s}) instead of \texttt{c} in text parts that could/should
+become upcased, e.g., \lgrfont{a\textcompwordmark us $\mapsto$
+\MakeUppercase{a\textcompwordmark us}}
+not \lgrfont{avuc $\mapsto$ \MakeUppercase{avuc}}.
\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greeknum.tex b/Master/texmf-dist/doc/generic/babel-greek/test-greeknum.tex
new file mode 100644
index 00000000000..c04699d9054
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-greeknum.tex
@@ -0,0 +1,131 @@
+\documentclass[a4paper]{article}
+\usepackage{ifthen}
+\usepackage[LGR,T1]{fontenc}
+\usepackage{booktabs}
+\usepackage{longtable,ltcaption,array}
+\usepackage[textwidth=14cm]{geometry} % to fit the number table
+\setlength{\extrarowheight}{2pt}
+\usepackage{parskip}
+\pagestyle{empty}
+
+\ifdefined \UnicodeEncodingName
+ \usepackage{fontspec}
+ \setmainfont{Linux Libertine O} % no GREEK ACROPHONIC ATTIC numbers
+ % \setmainfont{Liberation Serif} % no GREEK ACROPHONIC ATTIC numbers
+ % \setmainfont{FreeSerif}
+\else
+ \usepackage{lmodern}
+ % \usepackage{kerkis} % !! Data loss: \textStigma and \textSampi
+ % characters missing!
+ % \usepackage{gfsdidot} % !! Data loss: \textsampi, \textSampi,
+ % and \textStigma characters missing!
+ % \usepackage{dejavu} % !! Data loss: \textSampi character missing!
+ % Prevent dataloss with re-definitions, e.g:
+ % \renewcommand*{\greeknumeralSix}{\textSigma\textTau} % default \textStigma
+ % \renewcommand*{\greeknumeralNinety}{\textsampi} % default \textSampi
+\fi
+
+
+\usepackage[greek,english]{babel}
+
+\begin{document}
+\section*{Test Greek (Milesian) numerals}
+\author{Günter Milde}
+\date{2023/01/06}
+
+Babel-greek defines the functions \verb|\greeknumeral| and
+\verb|\Greeknumeral| that work similar to the TeX primitive
+\verb|\romannumeral|. For details and configuration options, see
+\texttt{babel-greek.pdf}.
+
+Examples:
+
+\newcommand*{\greeknumeralsample}[1]{\mbox{#1 = \greeknumeral{#1}}}
+\newcommand*{\Greeknumeralsample}[1]{\mbox{#1 = \Greeknumeral{#1}}}
+
+\greeknumeralsample{16}\quad
+\greeknumeralsample{32}\quad
+\greeknumeralsample{64}\quad
+\greeknumeralsample{678}\quad
+\greeknumeralsample{2022}\quad
+\greeknumeralsample{123456}
+
+\Greeknumeralsample{16}\quad
+\Greeknumeralsample{32}\quad
+\Greeknumeralsample{64}\quad
+\Greeknumeralsample{678}\quad
+\Greeknumeralsample{2022}\quad
+\Greeknumeralsample{123456}
+
+Hexadecimal input works, too: \greeknumeralsample{"10}
+
+Largest supported number: \greeknumeralsample{999999}
+
+Values outside the supported range are printed as arabic decimal numbers
+(a warning is issued):
+\greeknumeralsample{-1}\quad
+\greeknumeralsample{0}\quad
+\greeknumeralsample{"1000000}
+
+All Ionic number symbols.
+The Greek font encoding is \greekfontencoding.
+
+\begin{tabular}{rrrrrrrrr}
+\toprule
+1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
+\greeknumeral{1} & \greeknumeral{2} & \greeknumeral{3} & \greeknumeral{4} &
+\greeknumeral{5} & \greeknumeral{6} & \greeknumeral{7} & \greeknumeral{8} & \greeknumeral{9} \\[0.3em]
+
+10 & 20 & 30 & 40 & 50 & 60 & 70 & 80 & 90 \\
+\greeknumeral{10} & \greeknumeral{20} & \greeknumeral{30} & \greeknumeral{40} &
+\greeknumeral{50} & \greeknumeral{60} & \greeknumeral{70} & \greeknumeral{80} & \greeknumeral{90} \\[0.3em]
+
+100 & 200 & 300 & 400 & 500 & 600 & 700 & 800 & 900 \\
+\greeknumeral{100} & \greeknumeral{200} & \greeknumeral{300} & \greeknumeral{400} &
+\greeknumeral{500} & \greeknumeral{600} & \greeknumeral{700} & \greeknumeral{800} & \greeknumeral{900} \\[0.3em]
+
+1000 & 2000 & 3000 & 4000 & 5000 & 6000 & 7000 & 8000 & 9000 \\
+\greeknumeral{1000}& \greeknumeral{2000}& \greeknumeral{3000}& \greeknumeral{4000}&
+\greeknumeral{5000}& \greeknumeral{6000}& \greeknumeral{7000}& \greeknumeral{8000}& \greeknumeral{9000} \\[0.3em]
+
+10000 & 20000 & 30000 & 40000 & 50000 & 60000 & 70000 & 80000 & 90000 \\
+\greeknumeral{10000}&\greeknumeral{20000}&\greeknumeral{30000}&\greeknumeral{40000}&
+\greeknumeral{50000}&\greeknumeral{60000}&\greeknumeral{70000}&\greeknumeral{80000}&\greeknumeral{90000} \\[0.3em]
+
+100000 & 200000 & 300000 & 400000 & 500000 & 600000 & 700000 & 800000 & 900000 \\
+\greeknumeral{100000}&\greeknumeral{200000}&\greeknumeral{300000}&\greeknumeral{400000}&
+\greeknumeral{500000}&\greeknumeral{600000}&\greeknumeral{700000}&\greeknumeral{800000}&\greeknumeral{900000} \\[0.3em]
+
+\bottomrule
+\end{tabular}
+
+\begin{tabular}{rrrrrrrrr}
+\toprule
+1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
+\Greeknumeral{1} & \Greeknumeral{2} & \Greeknumeral{3} & \Greeknumeral{4} &
+\Greeknumeral{5} & \Greeknumeral{6} & \Greeknumeral{7} & \Greeknumeral{8} & \Greeknumeral{9} \\[0.3em]
+
+10 & 20 & 30 & 40 & 50 & 60 & 70 & 80 & 90 \\
+\Greeknumeral{10} & \Greeknumeral{20} & \Greeknumeral{30} & \Greeknumeral{40} &
+\Greeknumeral{50} & \Greeknumeral{60} & \Greeknumeral{70} & \Greeknumeral{80} & \Greeknumeral{90} \\[0.3em]
+
+100 & 200 & 300 & 400 & 500 & 600 & 700 & 800 & 900 \\
+\Greeknumeral{100} & \Greeknumeral{200} & \Greeknumeral{300} & \Greeknumeral{400} &
+\Greeknumeral{500} & \Greeknumeral{600} & \Greeknumeral{700} & \Greeknumeral{800} & \Greeknumeral{900} \\[0.3em]
+
+1000 & 2000 & 3000 & 4000 & 5000 & 6000 & 7000 & 8000 & 9000 \\
+\Greeknumeral{1000}& \Greeknumeral{2000}& \Greeknumeral{3000}& \Greeknumeral{4000}&
+\Greeknumeral{5000}& \Greeknumeral{6000}& \Greeknumeral{7000}& \Greeknumeral{8000}& \Greeknumeral{9000} \\[0.3em]
+
+10000 & 20000 & 30000 & 40000 & 50000 & 60000 & 70000 & 80000 & 90000 \\
+\Greeknumeral{10000}&\Greeknumeral{20000}&\Greeknumeral{30000}&\Greeknumeral{40000}&
+\Greeknumeral{50000}&\Greeknumeral{60000}&\Greeknumeral{70000}&\Greeknumeral{80000}&\Greeknumeral{90000} \\[0.3em]
+
+100000 & 200000 & 300000 & 400000 & 500000 & 600000 & 700000 & 800000 & 900000 \\
+\Greeknumeral{100000}&\Greeknumeral{200000}&\Greeknumeral{300000}&\Greeknumeral{400000}&
+\Greeknumeral{500000}&\Greeknumeral{600000}&\Greeknumeral{700000}&\Greeknumeral{800000}&\Greeknumeral{900000} \\
+
+\bottomrule
+\end{tabular}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.pdf
deleted file mode 100644
index fafe3a1a08f..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.tex b/Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.tex
deleted file mode 100644
index f60bcaff75f..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-greeknumeral.tex
+++ /dev/null
@@ -1,236 +0,0 @@
-\documentclass[a4paper]{scrartcl}
-
-% Load font packages depending on engine:
-\ifdefined\luatexversion
- \usepackage{fontspec}
-\fi
-\ifdefined\XeTeXrevision
- \usepackage{fontspec}
-\fi
-\ifdefined \UTFencname % set by "fontspec.sty"
- % Latin Modern misses most Greek characters.
- \setmainfont{DejaVu Serif}
- \setsansfont{DejaVu Sans}
-\else
- \usepackage[LGR,T1]{fontenc}
- \usepackage[utf8]{inputenc}
- \usepackage{lmodern}
- % \usepackage{kerkis} % missing glyphs (Qoppa, in sans serif also koppa, Koppa)
- % \usepackage{dejavu} missing glyphs (qoppa, Qoppa, Sampi)
- % \usepackage{epigrafica} # many missing glyphs
- % \usepackage{gentium} % missing glyphs (Qoppa, Sampi)
- % \usepackage{gfsdidot} % sampi in place of qoppa, missing sampi Sampi
- % \usepackage{gfsartemisia} % sampi in place of qoppa, missing sampi Sampi
- % \usepackage{libertinegc}
- % \usepackage{noto}
- % \usepackage{OldStandard}
- % \usepackage{roboto}
-\fi
-
-
-% Greek script support with textalpha (greek-fontec) or babel-greek:
-
-% \usepackage{textalpha}
-\usepackage[greek,english]{babel}
-
-% Save the unpatched version
-\let\origgreeknumeral\greeknumeral
-\let\origGreeknumeral\Greeknumeral
-
-% uncomment, if you prefer Qoppa for Koppa
-% \let\textKoppa\textQoppa
-% \let\textkoppa\textqoppa
-
-
-% Hyperref
-% default PDFstring encoding is PD1 without Greek support:
-% \usepackage[unicode]{hyperref}
-% With option unicode, there is partial Greek support (no polytonic)
-\usepackage[unicode]{hyperref}
-
-
-\DeclareTextCommand{\greekscript}{PU}{}
-\DeclareTextCommand{\ensuregreek}{PU}[1]{#1}
-% Greek LICR names from "greek-fontenc"
-\DeclareTextCommand{\textdexiakeraia}{PU}{\83\164}% U+0374
-\DeclareTextCommand{\textaristerikeraia}{PU}{\83\165}% U+0375
-\DeclareTextCommand{\textQoppa}{PU}{\83\330}% U+03D8
-\DeclareTextCommand{\textqoppa}{PU}{\83\331}% U+03D9
-\DeclareTextCommand{\textStigma}{PU}{\83\332}% U+03DA
-\DeclareTextCommand{\textstigma}{PU}{\83\333}% U+03DB
-\DeclareTextCommand{\textDigamma}{PU}{\83\334}% U+03DC
-\DeclareTextCommand{\textdigamma}{PU}{\83\335}% U+03DD
-\DeclareTextCommand{\textKoppa}{PU}{\83\336}% U+03DE
-\DeclareTextCommand{\textkoppa}{PU}{\83\337}% U+03DF
-\DeclareTextCommand{\textSampi}{PU}{\83\340}% U+03E0
-\DeclareTextCommand{\textsampi}{PU}{\83\341}% U+03E1
-% TODO: support polytonic Greek (Greek Extended Unicode block)
-
-
-
-\begin{document}
-
-% \textuppercase{Grüße}
-
-% \selectlanguage{greek}
-% \selectlanguage{english}
-
-
-\section{Test Hyperref-safe implementation of Greek numerals}
-
-Every number is set in 4 versions:
-
-1: lowercase Babel,
-2: lowercase Hyperref-patched,
-
-3: uppercase Babel,
-4: uppercase Hyperref-patched,
-
-
-\DeclareRobustCommand{\numeraltest}[1]{
- \origgreeknumeral{#1}
- \ensuregreek{\greeknumeral{#1}}\
- \origGreeknumeral{#1}
- \ensuregreek{\Greeknumeral{#1}}
-}
-
-
-\noindent single numerals
-
-1-5
-\numeraltest{1}
-\numeraltest{2}
-\numeraltest{3}
-\numeraltest{4}
-\numeraltest{5}
-
-6-9
-\numeraltest{6}
-\numeraltest{7}
-\numeraltest{8}
-\numeraltest{9}
-
-10-50
-\numeraltest{10}
-\numeraltest{20}
-\numeraltest{30}
-\numeraltest{40}
-\numeraltest{50}
-
-60-90
-\numeraltest{60}
-\numeraltest{70}
-\numeraltest{80}
-\numeraltest{90}
-
-100-500
-\numeraltest{100}
-\numeraltest{200}
-\numeraltest{300}
-\numeraltest{400}
-\numeraltest{500}
-
-600-900
-\numeraltest{600}
-\numeraltest{700}
-\numeraltest{800}
-\numeraltest{900}
-
-1000-5000
-\numeraltest{1000}
-\numeraltest{2000}
-\numeraltest{3000}
-\numeraltest{4000}
-\numeraltest{5000}
-
-6000-9000
-\numeraltest{6000}
-\numeraltest{7000}
-\numeraltest{8000}
-\numeraltest{9000}
-
-10 000 - 900 000
-\numeraltest{10000}
-\numeraltest{20000}
-\numeraltest{800000}
-\numeraltest{900000}
-
-\noindent compound numbers
-
-123-323
-\numeraltest{123}
-\numeraltest{223}
-\numeraltest{323}
-
-445-645
-\numeraltest{445}
-\numeraltest{545}
-\numeraltest{645}
-
-767-967
-\numeraltest{767}
-\numeraltest{867}
-\numeraltest{967}
-
-967021 \numeraltest{967021}
-
-\noindent outside of bounds
-
-Negative and zero
-\greeknumeral{-1}
-% \Greeknumeral{-1}
-\greeknumeral{0}
-%\Greeknumeral{0}
-
-Too large:
-\greeknumeral{1000000}
-% \Greeknumeral{1000000}
-
-\paragraph{Discussion}
-
-The new implementation gives identical results.
-
-\section{Greek numerals in PDF bookmarks}
-
-\section{
- \numeraltest{1}
- \numeraltest{90}
- \numeraltest{200}
-}
-
-\section{
- \numeraltest{1000}
- \numeraltest{90000}
- \numeraltest{200000}
-}
-\section{
- \numeraltest{24}
- \numeraltest{96}
-}
-
-\section{
- \numeraltest{96}
- \numeraltest{263}
-}
-
-\section{
- \numeraltest{4695}
-}
-
-\section{Original numeral:
- \greekscript{\origgreeknumeral{1293}}
- % \greekscript{\origGreeknumeral{1293}}
-}
-
-Babels original lower case version works fine in text. However, use in a
-section heading results in spurious numeral marks (dexia keraia) in the
-PDF bookmark. and the warning
-\begin{verbatim}
- Package hyperref Warning: Token not allowed in a PDF string (Unicode):
- (hyperref) removing `\@ifnextchar' on input line 353.
-\end{verbatim}
-
-The upper case version fails because MakeUpercase is not defined for
-PDFstrings.
-
-\end{document},
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-lgr-fixes.tex b/Master/texmf-dist/doc/generic/babel-greek/test-lgr-fixes.tex
new file mode 100644
index 00000000000..88c628cbcad
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/babel-greek/test-lgr-fixes.tex
@@ -0,0 +1,189 @@
+% Test fixes for the LGR font encoding
+\documentclass[a4paper,oneside]{book}
+
+\pagestyle{headings}
+
+\usepackage[LGR,T1]{fontenc}
+\usepackage{lmodern}
+
+% Play with the modifiers and watch the effects:
+\newcommand*{\greeklanguagespecifier}{%
+ % greek%
+ greek.local-LGR-fixes%
+ % greek.no-LGR-fixes%
+}
+
+\usepackage[\greeklanguagespecifier,english]{babel}
+
+% hyperref and makeindex both have special requirements for \@roman & \@Roman
+\usepackage{hyperref}
+\hypersetup{unicode, colorlinks=true,linkcolor=blue,urlcolor=blue}
+\usepackage{makeidx}
+\makeindex
+
+
+\begin{document}
+
+% Pagenumbering uses Roman numerals in the front matter for "book" class
+\frontmatter
+
+\tableofcontents
+% Check Roman page numbers!
+
+\chapter{Preface \label{ch:preface}}
+
+This document tests workarounds for the non-standard LGR Greek text font
+encoding for \emph{necessity}, \emph{effects}, and \emph{side-effects}.
+
+The ideal result would be that all Roman numerals came out as expeced
+and the Index would contain two entries.
+
+The new language attributes \texttt{local-LGR-fixes} and
+\texttt{no-LGR-fixes} provide a tradeoff: limiting the work-arounds to local
+scope or skipping them completely helps with the index but breaks some of
+the Roman numbers. This can help in documents using only small Greek text
+parts. In the current compilation, Babel is called with the
+\texttt{\greeklanguagespecifier} and \texttt{english} options.
+
+In this document, English text in Greek text parts is not protected against
+the Greek transliteration (deliberately, to show clearly where Greek is the
+active language). See the source \texttt{*.tex} file for the English
+original.
+
+\begin{enumerate}
+ \item Problem
+ \begin{enumerate}
+ \item Roman numerals require Latin characters.
+ \item Alphabetic counters use Latin characters, too.
+ \item
+ In document parts using the LGR font encoding, this leads to errors.
+ \begin{enumerate}
+ \item While an ``i'' is still recognizable after conversion to a
+ small Iota, a ``v'', say, becomes an invisible no-break space.
+ \item The transliteration of ``a) b) c) d) e) f) g)''
+ leads to strange results, too.%
+ \label{item with roman number}
+ \end{enumerate}
+ \end{enumerate}
+ \item Solution for (a): wrapping roman numbers in \verb|\ensureascii|.
+ \begin{enumerate}
+ \item However, some numbers, e.g. page numbers are auto-generated
+ at ``unpredictible'' places.
+ Other are used at places ``inaccessible'' to the author (e.g. the
+ page number of a Greek chapter in the ToC).
+
+ → Re-define counter-formatting functions to make them LGR-proof.
+
+ \item Moving arguments complicate the matter.
+ \begin{enumerate}
+ \item The proofing must be robust (to some degree) to fix, e.g.,
+ a Roman page number of a Greek chapter in the ToC.
+ \item The proofing must be global to work reliably.
+ \end{enumerate}
+ \end{enumerate}
+ \item Side-effect: the proofing makes Makeindex fail if there are
+ index entries on pages with Roman numbering.
+
+ \index{makeindex-problem}
+ Makeindex expects ``pagenumbers'' to be simple text strings, without
+ font encoding change or similar. Cf.
+ \href{https://github.com/latex3/babel/issues/170}{Babel issue~\#170}.
+
+\end{enumerate}
+
+
+\selectlanguage{greek}
+\chapter{Προλογος \label{ch:prologos}}
+
+\begin{enumerate}
+ \item Problem
+ \begin{enumerate}
+ \item Roman numerals require Latin characters.
+ \item Alphabetic counters use Latin characters, too.
+ \item
+ In document parts using the LGR font encoding, this leads to errors.
+ \begin{enumerate}
+ \item While an ``i'' is still recognizable after conversion to a
+ small Iota, a ``v'', say, becomes an invisible no-break space.
+ \index{invisible-v-problem}
+ \item A transliteration of ``a) b) c) d) e) f) g)''
+ leads to strange results, too.%
+ \label{item with roman number greek}
+ \end{enumerate}
+ \end{enumerate}
+\end{enumerate}
+
+% \newpage
+% Second page of the Greek preface.
+
+\selectlanguage{english}
+
+
+\mainmatter
+
+\chapter{First Chapter \label{ch:1}}
+
+\section{Page references}
+
+The ``preface'' is at page \pageref{ch:preface}.
+The ``\ensuregreek{prologos}'' is at page \pageref{ch:prologos}.
+
+\section{Page references from a Greek text part}
+
+\selectlanguage{greek}
+
+Ο ''\ensureascii{preface}'' βρίσκεται στη σελίδα
+ \pageref{ch:preface}.
+Ο ``πρόλογος'' βρίσκεται στη σελίδα \pageref{ch:prologos}.
+
+\selectlanguage{english}
+
+\begin{itemize}
+\item With ``local-LGR-fixes'', the page number of the \ensuregreek{Προλογος}
+ comes out wrong.
+\item Authors can fix it by wrapping the \verb|\pageref| function.
+ However, a change of the the default ``LGR fix scope'' to ``local''
+ may break existing documents.
+\end{itemize}
+
+
+\section{References to items in an enumeration}
+
+See item \ref{item with roman number} in an English list.
+See item \ref{item with roman number greek} in a Greek list.
+
+\section{References to items in an enumeration from a Greek text part}
+
+\selectlanguage{greek}
+
+See item \ref{item with roman number} in an English list.
+See item \ref{item with roman number greek} in a Greek list.
+
+\selectlanguage{english}
+
+\begin{itemize}
+\item The ``alph'' counter in the ``English'' list comes out wrong.
+ (This is also the behaviour in previous versions of babel-greek.)
+\item Authors must treat references to non-Greek text parts similar to
+ non-Greek words and abbreviations (wrap in \verb|\ensureascii|).
+\end{itemize}
+
+\section{The Index}
+
+The next page should show an Index with 2 entries
+(see \texttt{test-lgr-fixes.idx}).
+
+\begin{itemize}
+\item With global LGR fixes, no index entry is printed (both are rejected by
+ \texttt{makeindex} because of the font encoding change command
+ preceding the page number.
+\item With ``local-LGR-fixes'', only ``makeindex-problem'' is rejected.
+ (The pagenumber is generated when the \verb|\chapter| command starts
+ the \ensuregreek{Prologos} on a new page. At this point, the active
+ language is Greek and the font encoding LGR.)
+\end{itemize}
+
+\backmatter
+\printindex
+
+\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.pdf
deleted file mode 100644
index c1ddae2a473..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.tex b/Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.tex
deleted file mode 100644
index e1994f31364..00000000000
--- a/Master/texmf-dist/doc/generic/babel-greek/test-tu-lgr.tex
+++ /dev/null
@@ -1,264 +0,0 @@
-\documentclass[a4paper]{article}
-% \usepackage{textcomp}
-\usepackage{hyperref}
-% \usepackage{bookmark}
-\usepackage{parskip}
-
-% Declare the font encoding and Greek LICR definitions:
-\usepackage[LGR]{fontenc}
-
-% Set up Latin Modern OpenType unicode font
-\usepackage{fontspec}
-
-\usepackage[greek,english]{babel}
-% \languageattribute{greek}{polutoniko}
-% \languageattribute{greek}{ancient}
-
-% use LGR (8-bit CB-fonts) instead of Unicode fonts for Greek:
-\addto{\extrasgreek}{\greektext}
-% Alternative:
-% \renewcommand*{\greekscript}{\fontencoding{LGR}\selectfont}
-
-\begin{document}
-
-\title{XeTeX/LuaTeX with LGR fonts}
-\author{Günter Milde}
-\date{2020/11/10}
-\maketitle
-
-The babel option «greek» activates the support for the Greek language
-defined in «greek.ldf» (source «greek.dtx»).
-
-Typesetting Greek texts requires a font containing Greek letters. With the
-XeTeX or LuaTeX engines, the user must ensure that the selected font
-contains the required glyphs (the default Latin Modern fonts miss them).
-
-Latin Modern can be combined with the matching CB-Greek 8-bit font. For the
-setup, see the preamble of this document \texttt{test-unicode-lgr.tex}
-
-Caveat: Currently, hyphenation does not work with this setup. Use it only
-for short Greek quotes or as a last ressort.
-
-\section{Language Switch}
-
-The declaration \verb|\selectlanguage| switches between languages. With
-XeTeX or LuaTeX and LGR as \verb|\greekfontencoding|, Unicode input is not
-possible. Instead, use the Latin transliteration or LICR macros:
-
-\begin{quote}
- \selectlanguage{greek}
- T'i f'hic? <Id`wn >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}
-
-The macro \verb|\foreignlanguage| sets its second argument in the specified
-language. This is intended for short text parts like
-\foreignlanguage{greek}{Biblioj'hkh}.
-
-\section{Font Encoding}
-
-Switching to a font encoding supporting the Greek script is possible without
-switching the text language using the declarations \verb|\greekscript| or
-\verb|\greektext| (always LGR) and the macros \verb|\ensuregreek| or
-\verb|\textgreek|. These commands do not start a new paragraph.
-
-The Babel core defines the declaration \verb|\latintext| and the command
-\verb|\textlatin| to switch to the T1 or OT1 font encoding or typeset the
-argument using this encoding. \texttt{greek.ldf} adds a test for the Unicode
-font encodings TU, EU1, and EU2. Here, \verb|\latinencoding| is
-\latinencoding.
-
-With Unicode fonts, the macros \verb|\greektext| and \verb|\textgreek| are
-only defined, if the LGR font encoding is loaded via the \texttt{fontenc}
-package (see test-unicode-lgr.tex).
-
-% don't change the font encoding.
-With LGR, Latin characters in Greek text parts are typeset as Greek characters
-according to the Latin transcription defined in LGR.%
-
-\begin{quote}
- \greektext F\'ilwn to\~u \textlatin{TeX} (EFT) --
- \latintext{Friends (\textgreek{F\'ilwn}) of TeX.}%
-\end{quote}
-
-\section{MakeUppercase, MakeLowercase}
-
-Capital Greek letters have diacritics (except the dialytika and sub-iota) to
-the left (instead of above) and drop them in uppercase.
-
-Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if placed on
-the first vowel of a diphthong (\textgreek{\'ai, \'au, \'ei, \'>ai, \'>au,
-\'>ei}). A dialytika must be placed on the second vowel if they are dropped.
-(\foreignlanguage{greek}{\MakeUppercase{\'ai, \'au, \'ei, \'>ai, \'>au,
-\'>ei}}).
-
-\section{LICR Macros}
-
-Babel defines macros for several autogenerated strings so that they may
-appear in the choosen language. \emph{babel-greek} uses LICR macros in
-order to let the string macros work independent of the font encoding.
-
-If \texttt{fontspec} is loaded before babel, babel-greek loads Greek LICR
-for TU from the file \texttt{tuenc-greek.def} provided with
-\emph{greek-fontenc} since version~0.14 (2020-02-28).
-
-\subsection{Hiatus}
-
-The «hiatus» feature works with macro input:
-
-\selectlanguage{greek}
-% from teubner: άυλος/ΑΫΛΟΣ
-\acctonos\textalpha\textupsilon\textlambda\textomicron\textfinalsigma{}
-$\mapsto$
-\MakeUppercase{\acctonos\textalpha\textupsilon\textlambda\textomicron\textfinalsigma},
-\'>\textalpha\textupsilon\textlambda\textomicron\textfinalsigma{} $\mapsto$
-\MakeUppercase{\'>\textalpha\textupsilon\textlambda\textomicron\textfinalsigma},
-% from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ
-\textmu\acctonos\textalpha\textiota\textnu\textalpha{} $\mapsto$
-\MakeUppercase{\textmu\acctonos\textalpha\textiota\textnu\textalpha},
-% from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema
-% κέικ, ἀυπνία/αϋπνία
-\textkappa\acctonos\textepsilon\textiota\textkappa $\mapsto$
-\MakeUppercase{\textkappa\acctonos\textepsilon\textiota\textkappa},
-\accpsili\textalpha\textupsilon\textpi\textnu\'\textiota\textalpha{} $\mapsto$
-\MakeUppercase{\accpsili\textalpha\textupsilon\textpi\textnu\'\textiota\textalpha}.
-\selectlanguage{english}
-
-\subsection{Captions}
-
-\selectlanguage{greek}
-\prefacename,
-\refname,
-\abstractname,
-\bibname,
-\chaptername,
-\appendixname,
-\contentsname,
-\listfigurename ,
-\listtablename,
-\indexname,
-\figurename,
-\tablename,
-\partname,
-\enclname,
-\ccname,
-\headtoname,
-\pagename,
-\seename,
-\alsoname,
-\proofname,
-\glossaryname
-\selectlanguage{english}
-
-Test correct upcasing (dropping of accents):
-
-\selectlanguage{greek}
-\MakeUppercase{
-\prefacename,
-\refname,
-\abstractname,
-\bibname,
-\chaptername,
-\appendixname,
-\contentsname,
-\listfigurename,
-\listtablename,
-\indexname,
-\figurename,
-\tablename,
-\partname,
-\enclname,
-\ccname,
-\headtoname,
-\pagename,
-\seename,
-\alsoname,
-\proofname,
-\glossaryname
-}
-\selectlanguage{english}
-
-\subsection{Months}
-
-\selectlanguage{greek}
-\newcounter{foo}
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\stepcounter{foo} \month=\value{foo} \today \\
-\selectlanguage{english}
-
-\section{Greek Numerals}
-
-See greek.pdf for the formation rules of Greek numerals.
-Some examples:
-
-\selectlanguage{greek}
-
-\greeknumeral{1},
-\greeknumeral{2},
-\greeknumeral{3},
-\greeknumeral{4},
-\greeknumeral{5},
-\greeknumeral{6},
-\greeknumeral{7},
-\greeknumeral{8},
-\greeknumeral{9},
-\greeknumeral{10},
-\greeknumeral{11},
-\greeknumeral{12},
-\greeknumeral{20},
-\greeknumeral{345},
-\greeknumeral{500},
-\greeknumeral{1997},
-\greeknumeral{2013},
-
-\Greeknumeral{1},
-\Greeknumeral{2},
-\Greeknumeral{3},
-\Greeknumeral{4},
-\Greeknumeral{5},
-\Greeknumeral{6},
-\Greeknumeral{7},
-\Greeknumeral{8},
-\Greeknumeral{9},
-\Greeknumeral{10},
-\Greeknumeral{11},
-\Greeknumeral{12},
-\Greeknumeral{20},
-\Greeknumeral{345},
-\Greeknumeral{500},
-\Greeknumeral{1997},
-\Greeknumeral{2013},
-
-
-\selectlanguage{english}
-Enumerated lists use Greek characters/numerals in the second and fourth level:
-
-\selectlanguage{greek}
-\begin{enumerate}
- \item \textlatin{item} 1
- \begin{enumerate}
- \item \textlatin{item} 1.1
- \begin{enumerate}
- \item \textlatin{item} 1.1.1
- \begin{enumerate}
- \item \textlatin{item} 1.1.1.1
- \item \textlatin{item} 1.1.1.2
- \end{enumerate}
- \item \textlatin{item} 1.1.2
- \end{enumerate}
- \end{enumerate}
-\end{enumerate}
-\selectlanguage{english}
-
-\end{document}
diff --git a/Master/texmf-dist/doc/generic/babel-greek/usage.pdf b/Master/texmf-dist/doc/generic/babel-greek/usage.pdf
index 43a51a2053f..884321bacfc 100644
--- a/Master/texmf-dist/doc/generic/babel-greek/usage.pdf
+++ b/Master/texmf-dist/doc/generic/babel-greek/usage.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/babel-greek/usage.tex b/Master/texmf-dist/doc/generic/babel-greek/usage.tex
index 519b721e5fe..167bcca38ce 100644
--- a/Master/texmf-dist/doc/generic/babel-greek/usage.tex
+++ b/Master/texmf-dist/doc/generic/babel-greek/usage.tex
@@ -1,11 +1,8 @@
-% \iffalse meta-comment
+% Copyright 1997 Apostolos Syropoulos
+%
+% This file is part of the babel-greek package.
+% ---------------------------------------------
%
-% Copyright 1989-2008 Johannes L. Braams and any individual authors
-% listed elsewhere in this file. All rights reserved.
-%
-% This file is part of the Babel system.
-% --------------------------------------
-%
% It may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
@@ -13,22 +10,17 @@
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
-%
+%
% This work has the LPPL maintenance status "maintained".
-%
+%
% The Current Maintainer of this work is Günter Milde.
-%
-% The list of all files belonging to the Babel system is
-% given in the file `manifest.bbl. See also `legal.bbl' for additional
-% information.
-%
-% The list of derived (unpacked) files belonging to the distribution
-% and covered by LPPL is defined by the unpacking scripts (with
-% extension .ins) which are part of the distribution.
-% \fi
+
\documentclass[11pt]{article}
\usepackage[american,greek]{babel}
\languageattribute{greek}{polutoniko}
+% \languageattribute{greek}{ancient}
+\newcommand{\langGreek}{\foreignlanguage{greek}}
+
\usepackage{athnum,grmath}
\newcommand{\sg}{\selectlanguage{greek}}
\newcommand{\sa}{\selectlanguage{american}}
@@ -49,8 +41,8 @@
\abstract{\noindent
This document describes the use of the Latin transliteration for Greek that
is defined by the LGR font encoding. Today, all modern LaTeX distributions
-support literal input of Greek, which is the preferred method for new
-documents. [G. Milde 2013/12/02]}
+support literal input of Greek characters, which is the preferred method for
+new documents. [G. Milde 2013/12/02]}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -59,11 +51,11 @@ documents. [G. Milde 2013/12/02]}
The \texttt{greek} option of the \texttt{babel} package is an attempt to
make it possible for someone to write Greek text with \LaTeX. The current
version of the \texttt{greek} option supports the
-\textgreek{monotonik'o} and \textgreek{polutonik'o}
+\langGreek{monotonik'o} and \langGreek{polutonik'o}
accentual systems of the Greek language.
-Moreover, there is now support for Greek numerals. One can produce easily
+Moreover, there is now support for Greek numerals. One can produce easily
valid Greek numerals both in uppercase and lowercase forms, e.g,
-\textgreek{\greeknumeral{1997}}\ and \textgreek{\Greeknumeral{1997}}. The
+\langGreek{\greeknumeral{1997}}\ and \langGreek{\Greeknumeral{1997}}. The
labels in second and fourth level enumerations are lowercase
and uppercase Greek numerals correspondingly.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -78,60 +70,60 @@ which are mapped to their Greek ``counterparts'' by \TeX. The following
table shows the transliteration employed:
\begin{center}
\begin{tabular}{|lllllllllllll|}\hline
-\textgreek{a}&
-\textgreek{b}&
-\textgreek{g}&
-\textgreek{d}&
-\textgreek{e}&
-\textgreek{z}&
-\textgreek{h}&
-\textgreek{j}&
-\textgreek{i}&
-\textgreek{k}&
-\textgreek{l}&
-\textgreek{m}&
-\textgreek{n}\\
+\langGreek{a}&
+\langGreek{b}&
+\langGreek{g}&
+\langGreek{d}&
+\langGreek{e}&
+\langGreek{z}&
+\langGreek{h}&
+\langGreek{j}&
+\langGreek{i}&
+\langGreek{k}&
+\langGreek{l}&
+\langGreek{m}&
+\langGreek{n}\\
a& b& g& d& e& z& h& j& i& k& l& m& n\\
-\hline
-\textgreek{x}&
-\textgreek{o}&
-\textgreek{p}&
-\textgreek{r}&
-\textgreek{sv}&
-\textgreek{t}&
-\textgreek{u}&
-\textgreek{f}&
-\textgreek{q}&
-\textgreek{y}&
-\textgreek{w}&
-\textgreek{c}& \hbox{ } \\
-x& o& p& r& s&
+\hline
+\langGreek{x}&
+\langGreek{o}&
+\langGreek{p}&
+\langGreek{r}&
+\langGreek{sv}&
+\langGreek{t}&
+\langGreek{u}&
+\langGreek{f}&
+\langGreek{q}&
+\langGreek{y}&
+\langGreek{w}&
+\langGreek{c}& \hbox{ } \\
+x& o& p& r& s&
t& u& f& q& y& w& c& \hbox{ }\\ \hline
\end{tabular}
\end{center}
-Please, note that in order to produce the letter \textgreek{sv} in isolation
-on has to type \texttt{sv}. This feature is due to the strong ligature
-that \TeX\ employs.
-In the ``modern'' \textgreek{monotonik'o} accentual system only one accent is
-used---\textgreek{oxe'ia} (acute). In the traditional \textgreek{polutonik'o}
-accentual system we
+Please, note that in order to produce the letter \langGreek{sv} in isolation
+one has to type \texttt{sv}. This feature is due to the strong ligature
+that \TeX\ employs.
+In the ``modern'' \langGreek{monotonik'o} accentual system only one accent is
+used---\langGreek{oxe'ia} (acute). In the traditional \langGreek{polutonik'o}
+accentual system we
need more accents and breathing signs. We can produce an accented letter by
prefixing the letter with he symbol that denotes the accent, e.g.,
-\texttt{>a'erac} produces the word \sg >a'erac.\sa\footnote{For the
+\texttt{>a'erac} produces the word \sg >a'erac.\sa\footnote{For the
technically inclined reader, we must say that \TeX\ uses the ligature table of
the font in order to determine the character that corresponds to the
-input character sequence.} Here are the symbols that are recognized:
+input character sequence.} Here are the symbols that are recognized:
\begin{center}
\begin{tabular}{cccc}\hline
Accent & Symbol & Example & Output\\ \hline
-acute & \texttt{'} & \texttt{g'ata} & \textgreek{g'ata}\\
-grave & \texttt{`} & \texttt{dad`i} & \textgreek{dad`i}\\
-circumflex & \verb+~+ & \verb+ful~hc+ & \sg\textgreek{ful~hc}\sa\\
-rough breathing & \verb+<+ & \verb+<'otan+ & \sg\textgreek{<'otan}\sa\\
-smooth breathing & \verb+>+ & \verb+>'aneu+ & \sg\textgreek{>'aneu}\sa\\
-subscript & \texttt{|} & \verb+>anate'ilh|+ & \sg\textgreek{>anate'ilh|}\\
-dieresis & \texttt{"}& \texttt{qa"ide'uh|c} & \sg\textgreek{qa"ide'uh|c}\\
+acute & \texttt{'} & \texttt{g'ata} & \langGreek{g'ata}\\
+grave & \texttt{`} & \texttt{dad`i} & \langGreek{dad`i}\\
+circumflex & \verb+~+ & \verb+ful~hc+ & \sg\langGreek{ful~hc}\sa\\
+rough breathing & \verb+<+ & \verb+<'otan+ & \sg\langGreek{<'otan}\sa\\
+smooth breathing & \verb+>+ & \verb+>'aneu+ & \sg\langGreek{>'aneu}\sa\\
+subscript & \texttt{|} & \verb+>anate'ilh|+ & \sg\langGreek{>anate'ilh|}\\
+dieresis & \texttt{"}& \texttt{qa"ide'uh|c} & \sg\langGreek{qa"ide'uh|c}\\
\hline
\end{tabular}
\end{center}
@@ -141,21 +133,22 @@ text is the punctuation marks used in the language:
\begin{center}
\begin{tabular}{ccc}\hline
Punctuation Sign & Symbol & Output\\ \hline
-period & \texttt{.} & \sg\textgreek{.}\sa\\
-semicolon & \texttt{;} & \sg\textgreek{;}\sa\\
-exclamation mark & \texttt{!} & \sg\textgreek{!}\sa\\
-comma & \texttt{,} & \sg\textgreek{,}\sa\\
-colon & \texttt{:} & \sg\textgreek{:}\sa\\
-question mark & \texttt{?} & \sg\textgreek{?}\sa\\
-left apostrophe & \texttt{``} & \sg\textgreek{``}\sa\\
-right apostrophe & \texttt{''} & \sg\textgreek{''}\sa\\
-left quotation mark & \texttt{((} & \sg\textgreek{))}\sa\\
-right quotation mark & \texttt{))} & \sg\textgreek{))}\sa\\ \hline
+period & \texttt{.} & \sg\langGreek{.}\sa\\
+semicolon & \texttt{;} & \sg\langGreek{;}\sa\\
+exclamation mark & \texttt{!} & \sg\langGreek{!}\sa\\
+comma & \texttt{,} & \sg\langGreek{,}\sa\\
+colon & \texttt{:} & \sg\langGreek{:}\sa\\
+question mark & \texttt{?} & \sg\langGreek{?}\sa\\
+left apostrophe & \texttt{``} & \sg\langGreek{``}\sa\\
+right apostrophe & \texttt{''} & \sg\langGreek{''}\sa\\
+right apostrophe (alias) & \texttt{"} & \sg\langGreek{"}\sa\\
+left quotation mark & \texttt{((} & \sg\langGreek{((}\sa\\
+right quotation mark & \texttt{))} & \sg\langGreek{))}\sa\\ \hline
\end{tabular}
\end{center}
Using these conventions it is a straightforward exercise to write Greek
-\textgreek{polutoniko} text. For example the following excerpt from
-\textgreek{D'uskoloc} of \textgreek{M'enandroc}
+\langGreek{polutoniko} text. For example the following excerpt from
+\langGreek{D'uskoloc} of \langGreek{M'enandroc}
\sg
\begin{quote}
T'i f'hic? <Id`wn >enj'ede pa~id'' >eleuj'eran\\
@@ -177,69 +170,76 @@ Once the Greek language is selected with the command
\verb+\selectlanguage{greek}+
\end{center}
whatever we type will be typeset with the Greek fonts. The command
-\verb+\textlatin+ can be used for short passages in some language that
-uses the Latin alphabet, while the the command \verb+\latintext+ changes
-the base fonts to the ones used by languages that use the Latin alphabet.
+\verb+\ensureascii+ can be used for short passages in some language that
+uses the Latin alphabet.
However, all words will be hyphenated by following the Greek hyphenation
-rules! Similar commands are available once someone has selected some
-other language. The commands \verb+\textgreek+ and \verb+\greektext+
-behave exactly like their ``latin'' counterparts. For example, the
-word \textgreek{M'imhc} has been produced with the command
-\verb+\textgreek{M'imhc}+. Please note that certain symbols cannot have
-their expected result for Greek text, unless someone has selected the Greek
+rules! Therefore it is better to switch to the other language
+with \verb+\foreignlanguage+. The commands \verb+\lgrfont+ and
+\verb+\greektext+ switch to the Greek LGR font encoding.
+For example, the word \lgrfont{M'imhc} has been produced with the command
+\verb+\lgrfont{M'imhc}+. Please note that Greek hyphenation and upcasing rules
+are not applied and certain symbols cannot have
+their expected result for Greek text, unless someone has selected the Greek
language, e.g., \verb+~+ is such a symbol.
As we have mentioned above this version of the \texttt{greek} option of the
\texttt{babel} package supports the use of Greek numerals. The commands
-\verb+\greeknumeral+ and \verb+\Greeknumeral+ produce the lowercase and
-the uppercase Greek numeral, e.g.,
+\verb+\greeknumeral+ and \verb+\Greeknumeral+ produce the lowercase and
+the uppercase Greek numeral, e.g.,
\begin{center}
\begin{tabular}{cc}\hline
Command & Output\\ \hline
-\verb+\Greeknumeral{9999}+ & \sg\textgreek{\Greeknumeral{9999}}\\
-\verb+\greeknumeral{9999}+ & \sg\textgreek{\greeknumeral{9999}}\\
+\verb+\Greeknumeral{9999}+ & \sg\langGreek{\Greeknumeral{9999}}\\
+\verb+\greeknumeral{9999}+ & \sg\langGreek{\greeknumeral{9999}}\\
\hline
\end{tabular}
\end{center}
In order to correctly typeset the greek numerals the greek option file
-provides the following commands:
+uses the following commands:
\begin{center}
\begin{tabular}{cc}\hline
Command & Output\\ \hline
-\verb+\textkoppa+ & \textgreek{\textkoppa}\\
-\verb+\textsampi+ & \textgreek{\textsampi}\\
-\verb+\textstigma+ & \textgreek{\textstigma}\\
-\verb+\textKoppa+ & \textgreek{\textKoppa}\\
-\verb+\textSampi+ & \textgreek{\textSampi}\\
-\verb+\textStigma+ & \textgreek{\textStigma}\\
+% symbol names updated to current defaults [GM]
+% name used by package "greek-fontenc" % obsolete name
+\verb+\textdexiakeraia+ & \langGreek{\textdexiakeraia}\\ % \anwtonos
+\verb+\textaristerikeraia+ & \langGreek{\textaristerikeraia}\\ % \katwtonos
+\verb+\textkoppa+ & \langGreek{\textkoppa}\\ % \qoppa
+\verb+\textsampi+ & \langGreek{\textsampi}\\ % \sampi
+\verb+\textstigma+ & \langGreek{\textstigma}\\ % \stigma
+\verb+\textKoppa+ & \langGreek{\textKoppa}\\ % n.a. (\qoppa)
+\verb+\textSampi+ & \langGreek{\textSampi}\\
+\verb+\textStigma+ & \langGreek{\textStigma}\\
\hline
\end{tabular}
\end{center}
-In traditional Greek typography the first paragraph after a header is
-always indented, contrary to the habit of, say, American typography. This
-effect can be achieved by using the package \verb+indentfirst+.
-
Additional symbols are available:
\begin{center}
\begin{tabular}{cc}\hline
Command & Output\\ \hline
-\verb+\textDigamma+ & \textgreek{\textDigamma}\\
-\verb+\textdigamma+ & \textgreek{\textdigamma}\\
-\verb+\VarQoppa+ & \textgreek{\textQoppa}\\
-\verb+\textqoppa+ & \textgreek{\textqoppa}\\
-\verb+\texteuro+ & \textgreek{\euro}\\
-\verb+\textperthousand+ & \textgreek{\permill}\\
+% symbol names updated to current defaults [GM]
+% name used by package "greek-fontenc" % obsolete name
+\verb+\textDigamma+ & \langGreek{\textDigamma}\\ % \Digamma
+\verb+\textdigamma+ & \langGreek{\textdigamma}\\ % \ddigamma
+\verb+\textQoppa+ & \langGreek{\textQoppa}\\ % \varqoppa
+\verb+\textqoppa+ & \langGreek{\textqoppa}\\ % \VarQoppa
+\verb+\textvarstigma+ & \langGreek{\textvarstigma}\\ % \varstigma
+\verb+\texteuro+ & \langGreek{\texteuro}\\ % \texteuro
+\verb+\textperthousand+ & \langGreek{\textperthousand}\\ % \permill
\hline
\end{tabular}
\end{center}
+In traditional Greek typography the first paragraph after a header is
+always indented, contrary to the habit of, say, American typography. This
+effect can be achieved by using the package \verb+indentfirst+.
+
The package \verb|athnum| provides the command \verb|\athnum|, with which
one can produce the so called \textit{Athenian numerals}:
\begin{center}
\begin{tabular}{cc}\hline
Command & Output\\ \hline
-\verb|\athnum{1997}| & \textgreek{\athnum{1997}}\\
+\verb|\athnum{1997}| & \langGreek{\athnum{1997}}\\
\hline
\end{tabular}
\end{center}