summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def')
-rw-r--r--Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def42
1 files changed, 40 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def b/Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def
index 920b49ab53f..d308991642d 100644
--- a/Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def
+++ b/Master/texmf-dist/tex/latex/greek-fontenc/puenc-greek.def
@@ -24,6 +24,8 @@
% 2.2 2023-02-28 Add compatibility definitions for hyperref.
% 2.2.1 2023-03-08 Documentation update.
% 2.4 2023-08-15 Print σ, not ς with ``textautosigma`` dummy definition.
+% 2.5 2023-09-12 Composite definitions for "capital" diacritics to fix
+% ``\MakeUppercase`` in PDF strings.
% ====== =========== =======================================================
%
% .. contents::
@@ -34,7 +36,7 @@
% ::
\ProvidesFile{puenc-greek.def}
- [2023-08-15 2.4 Greek LICRs for PDF strings]
+ [2023-09-12 2.5 Greek LICRs for PDF strings]
% Diacritics
@@ -107,7 +109,7 @@
% Without coptic and archaic letters (except the ones used in Greek numerals).
% ::
-% NR Unicode Name % PU name (alias in greek-fontenc.def)
+% NR Unicode Name % legacy PU name (alias in greek-fontenc.def)
\DeclareTextCommand{\textdexiakeraia}{PU}{\83\164} % ʹ \textnumeralsigngreek
\DeclareTextCommand{\textaristerikeraia}{PU}{\83\165} % ͵ \textnumeralsignlowergreek
@@ -465,6 +467,42 @@
\DeclareTextCommand{\textpentemuria}{PU}{𐅇} % "10147 GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+% UPPERCASE
+% ---------
+%
+% Greek letters drop diacritics (eccept dialytika and sub-iota) in UPPERCASE.
+%
+% Babel-Greek introduces macros for "capital accents" in release 1.13.3.
+% Here, we add definitions to drop diacritics in uppercase::
+
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textAlpha }{\textAlpha}
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textEpsilon}{\textEpsilon}
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textEta }{\textEta}
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textIota }{\textIota}
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textOmicron}{\textOmicron}
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textUpsilon}{\textUpsilon}
+\DeclareTextCompositeCommand{\accACUTE}{PU}{\textOmega }{\textOmega}
+
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textAlpha }{\textAlpha}
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textEpsilon}{\textEpsilon}
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textEta }{\textEta}
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textIota }{\textIota}
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textOmicron}{\textOmicron}
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textUpsilon}{\textUpsilon}
+\DeclareTextCompositeCommand{\accGRAVE}{PU}{\textOmega }{\textOmega}
+
+\DeclareTextCompositeCommand{\accTILDE}{PU}{\textAlpha }{\textAlpha}
+\DeclareTextCompositeCommand{\accTILDE}{PU}{\textEta }{\textEta}
+\DeclareTextCompositeCommand{\accTILDE}{PU}{\textIota }{\textIota}
+\DeclareTextCompositeCommand{\accTILDE}{PU}{\textUpsilon}{\textUpsilon}
+\DeclareTextCompositeCommand{\accTILDE}{PU}{\textOmega }{\textOmega}
+
+% The "hiatus" feature does not work with PU (Alpha/Epsilon is dropped!)::
+
+\DeclareTextCompositeCommand{\LGR@hiatus}{PU}{\textAlpha }{\textAlpha}
+\DeclareTextCompositeCommand{\LGR@hiatus}{PU}{\textEpsilon}{\textEpsilon}
+
+
% .. References
%
% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt