summaryrefslogtreecommitdiff
path: root/language/greek/greek-fontenc/tuenc-greek.def
diff options
context:
space:
mode:
Diffstat (limited to 'language/greek/greek-fontenc/tuenc-greek.def')
-rw-r--r--language/greek/greek-fontenc/tuenc-greek.def112
1 files changed, 68 insertions, 44 deletions
diff --git a/language/greek/greek-fontenc/tuenc-greek.def b/language/greek/greek-fontenc/tuenc-greek.def
index 156f9892ff..fc91f22b49 100644
--- a/language/greek/greek-fontenc/tuenc-greek.def
+++ b/language/greek/greek-fontenc/tuenc-greek.def
@@ -3,56 +3,23 @@
% Greek LICR definitions for XeTeX and LuaTeX
% *******************************************
%
-% :Copyright: © 2013 Günter Milde
+% :Version: 2.2.1 (changelog_)
+%
+% :Copyright: © 2013 -- 2023 Günter Milde
+%
% :Licence: This work may be distributed and/or modified under the
% conditions of the `LaTeX Project Public License`_, either
% version 1.3 of this license or any later version.
-% :Identification:
-% ::
-
-\ProvidesFile{tuenc-greek.def}
-[2023/02/28 2.2 Greek LICRs for XeTeX and LuaTeX]
-
+%
% :abstract:
% Support for Greek LICR macros and upcasing of text
% with XeTeX and LuaTeX. Extends tuenc.def_.
% Used by babel-greek_ and textalpha_.
%
-% **History**:
-% .. class:: borderless
-%
-% ====== =========== ========================================================
-% 0.1 2013-07-16 initial version
-% 0.1.1 2013-07-18 bugfix: wrong breathings psilioxia -> dasiaoxia
-% 0.1.2 2013-07-19 bugfix: Disable composite defs starting with char macro,
-% .. fix "hiatus" handling.
-% 0.1.3 2013-07-24 fix "input" path.
-% 0.1.4 2013-10-01 remove clashing defs for legacy characters with oxia,
-% .. fix upcasing of ``\finalsigma``.
-% 0.11.1 2013-12-01 fix identification.
-% 0.11.2 2014-09-08 ``\textKoppa`` macro
-% .. (Capital Koppa is not defined in LGR but Unicode).
-% 0.12 2014-12-12 Remove symbol macros for breathing accents.
-% 0.13 2015-08-07 ``\lccode``/``\uccode`` corrections from xgreek_.
-% .. LICR macros for symbol variants.
-% 0.13.3 2018-01-06 Documentation update.
-% 0.14 2020-02-28 Rename to ``tuenc-greek.def``. Use ``\UTFencname``.
-% 1.0 2020-09-25 New package version. No changes in this file.
-% 2.0 2020-10-13 Move common alias definitions to ``greek-fontenc.def``.
-% .. New compatiblity definitions.
-% .. Use ``\UnicodeEncodingName`` instead of ``\UTFencname``.
-% .. Make the file encoding-independent (required for input
-% in other encodings with `luainputenc`).
-% 2.2 2023-02-28 Add composite definitions for ``\~`` + literal char.
-% .. Fix order in expansion of combined accent macros.
-% .. Let ``\textautosigma`` select sigma/finalsigma
-% depending on context (with LaTeX >= 2022/06/01).
-% .. Skip `uccode` fixes when ignored by ``\MakeUppercase``.
-% .. Add ``\textbackepsilon`` (defined by hyperref for PU).
-% ====== =========== ========================================================
%
% .. contents::
%
+%
% Motivation
% ==========
%
@@ -63,6 +30,7 @@
% for Greek letters and symbols. It works independed of xunicode_ using the
% standard commands for `LaTeX2e font selection`_.
%
+%
% Requirements
% ============
%
@@ -74,8 +42,20 @@
% usage examples.
%
%
+% Implementation
+% ==============
+%
+% Identification
+% --------------
+%
+% ::
+
+\ProvidesFile{tuenc-greek.def}
+ [2023/03/08 2.2.1 Greek LICRs for XeTeX and LuaTeX]
+
+
% Greek Diacritics
-% ================
+% ----------------
%
% Define "named macros" for simple and combined diacritics.
%
@@ -132,7 +112,7 @@
% Common Definitions
-% ==================
+% ------------------
%
% Use the `common Greek font encoding definitions`_::
@@ -140,7 +120,7 @@
\input{greek-fontenc.def}
% Character Definitions
-% =====================
+% ---------------------
%
% Basic Latin
% ~~~~~~~~~~~
@@ -545,7 +525,12 @@
% while the standard short accent macro ``\~`` uses the COMBINING TILDE.
% Only <Greek letter> + COMBINING GREEK PERISPOMENI is considered
% equivalent to the pre-composed <Greek letter> WITH PERISPOMENI.
-% Composite definitions for ``\~`` select the pre-composed character::
+% Composite definitions for ``\~`` select the pre-composed character
+%
+% TODO: don't use literal Unicode characters if ``\inputencodingname``
+% is defined and not "lutf8" to prevent errors with legacy 8-bit documents
+% read with "luainputenc.sty" (cf. test-licr-input.tex).
+% ::
\DeclareUnicodeComposite{\~}{α}{"1FB6} % ᾶ
\DeclareUnicodeComposite{\~}{η}{"1FC6} % ῆ
@@ -591,7 +576,7 @@
% UPPERCASE
-% =========
+% ---------
%
% Greek letters drop diacritics (eccept dialytika and sub-iota) in UPPERCASE.
%
@@ -953,7 +938,46 @@
}%
}
+
+% Changelog
+% =========
+%
+% .. class:: borderless
+%
+% ====== =========== ========================================================
+% 0.1 2013-07-16 initial version
+% 0.1.1 2013-07-18 bugfix: wrong breathings psilioxia -> dasiaoxia
+% 0.1.2 2013-07-19 bugfix: Disable composite defs starting with char macro,
+% .. fix "hiatus" handling.
+% 0.1.3 2013-07-24 fix "input" path.
+% 0.1.4 2013-10-01 remove clashing defs for legacy characters with oxia,
+% .. fix upcasing of ``\finalsigma``.
+% 0.11.1 2013-12-01 fix identification.
+% 0.11.2 2014-09-08 ``\textKoppa`` macro
+% .. (Capital Koppa is not defined in LGR but Unicode).
+% 0.12 2014-12-12 Remove symbol macros for breathing accents.
+% 0.13 2015-08-07 ``\lccode``/``\uccode`` corrections from xgreek_.
+% .. LICR macros for symbol variants.
+% 0.13.3 2018-01-06 Documentation update.
+% 0.14 2020-02-28 Rename to ``tuenc-greek.def``. Use ``\UTFencname``.
+% 1.0 2020-09-25 New package version. No changes in this file.
+% 2.0 2020-10-13 Move common alias definitions to ``greek-fontenc.def``.
+% .. New compatiblity definitions.
+% .. Use ``\UnicodeEncodingName`` instead of ``\UTFencname``.
+% .. Make the file encoding-independent (required for input
+% in other encodings with `luainputenc`).
+% 2.2 2023-02-28 Add composite definitions for ``\~`` + literal char.
+% .. Fix order in expansion of combined accent macros.
+% .. Let ``\textautosigma`` select sigma/finalsigma
+% depending on context (with LaTeX >= 2022/06/01).
+% .. Skip `uccode` fixes when ignored by ``\MakeUppercase``.
+% .. Add ``\textbackepsilon`` (defined by hyperref for PU).
+% 2.2.1 2023-03-08 Documentation update.
+% ====== =========== ========================================================
+%
+%
% .. References
+% ----------
%
% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt
% .. _babel-greek: https://ctan.org/pkg/babel-greek