summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def')
-rw-r--r--Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def76
1 files changed, 58 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def b/Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def
index fc91f22b49b..1a4c8875c57 100644
--- a/Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def
+++ b/Master/texmf-dist/tex/latex/greek-fontenc/tuenc-greek.def
@@ -3,7 +3,7 @@
% Greek LICR definitions for XeTeX and LuaTeX
% *******************************************
%
-% :Version: 2.2.1 (changelog_)
+% :Version: 2.4 (changelog_)
%
% :Copyright: © 2013 -- 2023 Günter Milde
%
@@ -51,7 +51,7 @@
% ::
\ProvidesFile{tuenc-greek.def}
- [2023/03/08 2.2.1 Greek LICRs for XeTeX and LuaTeX]
+ [2023-08-15 2.4 Greek LICRs for XeTeX and LuaTeX]
% Greek Diacritics
@@ -98,17 +98,17 @@
% ``\DeclareUnicodeAccent`` does not work with more than one argument::
% The COMBINING DIALYTIKA TONOS is discarded and not well supported by fonts:
-\DeclareTextCommand{\accdialytikatonos}{\UnicodeEncodingName}[1]{#1\char"0308\char"0301}
-\DeclareTextCommand{\accdialytikavaria}{\UnicodeEncodingName}[1]{#1\char"0308\char"0300}
-\DeclareTextCommand{\accdialytikaperispomeni}{\UnicodeEncodingName}[1]{#1\char"0308\char"0342}
+\DeclareTextCommand{\accdialytikatonos}{\UnicodeEncodingName}[1]{#1\char"0308\relax\char"0301\relax}
+\DeclareTextCommand{\accdialytikavaria}{\UnicodeEncodingName}[1]{#1\char"0308\relax\char"0300\relax}
+\DeclareTextCommand{\accdialytikaperispomeni}{\UnicodeEncodingName}[1]{#1\char"0308\relax\char"0342\relax}
-\DeclareTextCommand{\accdasiaoxia}{\UnicodeEncodingName}[1]{#1\char"0314\char"0301}
-\DeclareTextCommand{\accdasiavaria}{\UnicodeEncodingName}[1]{#1\char"0314\char"0300}
-\DeclareTextCommand{\accdasiaperispomeni}{\UnicodeEncodingName}[1]{#1\char"0314\char"0342}
+\DeclareTextCommand{\accdasiaoxia}{\UnicodeEncodingName}[1]{#1\char"0314\relax\char"0301\relax}
+\DeclareTextCommand{\accdasiavaria}{\UnicodeEncodingName}[1]{#1\char"0314\relax\char"0300\relax}
+\DeclareTextCommand{\accdasiaperispomeni}{\UnicodeEncodingName}[1]{#1\char"0314\relax\char"0342\relax}
-\DeclareTextCommand{\accpsilioxia}{\UnicodeEncodingName}[1]{#1\char"0313\char"0301}
-\DeclareTextCommand{\accpsilivaria}{\UnicodeEncodingName}[1]{#1\char"0313\char"0300}
-\DeclareTextCommand{\accpsiliperispomeni}{\UnicodeEncodingName}[1]{#1\char"0313\char"0342}
+\DeclareTextCommand{\accpsilioxia}{\UnicodeEncodingName}[1]{#1\char"0313\relax\char"0301\relax}
+\DeclareTextCommand{\accpsilivaria}{\UnicodeEncodingName}[1]{#1\char"0313\relax\char"0300\relax}
+\DeclareTextCommand{\accpsiliperispomeni}{\UnicodeEncodingName}[1]{#1\char"0313\relax\char"0342\relax}
% Common Definitions
@@ -290,9 +290,11 @@
\DeclareTextSymbol{\textbackepsilon }\UnicodeEncodingName{"03F6} % ϶ not in LGR
% Dummy definition (\textautosigma is lowercase of \textSigma)
-% TODO: implement autosigma for TU::
+% TODO: Fix implementation of autosigma for TU::
-\ProvideTextCommand{\textautosigma}{\UnicodeEncodingName}{\MakeLowercase{Σ}}
+\ProvideTextCommand{\textautosigma}\UnicodeEncodingName{\textsigma} % σ
+% The following definition always prints a final sigma :(
+% \ProvideTextCommand{\textautosigma}{\UnicodeEncodingName}{\MakeLowercase{Σ}}
% Greek Extended
@@ -580,14 +582,52 @@
%
% Greek letters drop diacritics (eccept dialytika and sub-iota) in UPPERCASE.
%
-% uc/lc values
-% ~~~~~~~~~~~~
+% Babel-Greek indroduces macros for "capital accents" in 1.13.3.
+% Here, we add definitions to drop diacritics in uppercase::
+
+\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} % new in 2020
+\IfFormatAtLeastTF{2022/06/01}{
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textAlpha }{\LGR@A@hiatus}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textEpsilon}{\LGR@E@hiatus}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textEta }{Η}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textIota }{Ι}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textOmicron}{Ο}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textUpsilon}{Υ}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{\textOmega }{Ω}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Α}{\LGR@A@hiatus}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Ε}{\LGR@E@hiatus}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Η}{Η}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Ι}{Ι}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Ο}{Ο}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Υ}{Υ}
+ \DeclareTextCompositeCommand{\accACUTE}{TU}{Ω}{Ω}
+
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textAlpha }{Α}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textEpsilon}{Ε}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textEta }{Η}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textIota }{Ι}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textOmicron}{Ο}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textUpsilon}{Υ}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{\textOmega }{Ω}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Α}{Α}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Ε}{Ε}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Η}{Η}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Ι}{Ι}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Ο}{Ο}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Υ}{Υ}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Ω}{Ω}
+ \DeclareTextCompositeCommand{\accGRAVE}{TU}{Ω}{Ω}
+
+ \DeclareTextCompositeCommand{\LGR@hiatus}{TU}{Α}{\LGR@A@hiatus}
+ \DeclareTextCompositeCommand{\LGR@hiatus}{TU}{Ε}{\LGR@E@hiatus}
+
+% The new (2022) implementation of ``\MakeUppercase`` drops accents from
+% literal Unicode input (if the text language is set to Greek with Babel).
%
% With the old ``\MakeUppercase`` implementation, we can fix this using
% ``\lccode`` and ``\uccode`` corrections from the xgreek_ package by
% Apostolos Syropoulos::
-\IfFormatAtLeastTF{2022/06/01}{
}{% else
\global\lccode"0370="0371 \global\uccode"0370="0370
\global\lccode"0371="0371 \global\uccode"0371="0370
@@ -968,11 +1008,11 @@
% 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.
+% 2.4 2023-08-15 Fix behaviour of composite diacritics.
+% .. Composite commands for "captital" macros.
% ====== =========== ========================================================
%
%