+
UPPERCASE (all-caps) is generated with \MakeUppercase. The
implementation of this command changed in June 2022 [ltnews35].
-According to Greek typographical tradition, diacritics (except dialytika,
-iota subscript, macron, and breve) are placed before capital letters in
-Titlecase and dropped in UPPERCASE.
+According to Greek typographical tradition, diacritics (except dialytika)
+are placed before capital letters in Titlecase and dropped in UPPERCASE.
Different conventions exist for the treatment of the mute iota with
uppercase letters. The traditional typographic form and the most common
used in Greece is a subscript, corresponding to the COMBINING GREEK
@@ -1034,6 +1033,11 @@ WITH [… AND] PROSGEGRAMMENI, capitalization should not use the GREEK
PROSGEGRAMMENI (U+1FBE) [Nicholas-03], [Haralambous-98]. Upper case
glyphs with adscript are a stylistic choice, provided by the font. In the
CB Fonts, a small capital adscript iota is used.
+The “Latin” diacritics macron and breve are used to denote the
+length of vowels. They are sometimes used in dictionaries and textbooks
+but not part of the Greek orthography. There is no established rule
+regarding their handling in uppercase. LaTeX used to keep them but
+the Unicode reference implementation drops them.
Up to 2022/06, macro substitutions in the \@uclclist could be used to
get the expected behaviour:
diff --git a/language/greek/greek-fontenc/hyperref-with-greek.pdf b/language/greek/greek-fontenc/hyperref-with-greek.pdf
index f59b95823b..01f801cb88 100644
Binary files a/language/greek/greek-fontenc/hyperref-with-greek.pdf and b/language/greek/greek-fontenc/hyperref-with-greek.pdf differ
diff --git a/language/greek/greek-fontenc/test-diacritics.tex b/language/greek/greek-fontenc/test-diacritics.tex
index f1a6c36417..c06a795dca 100644
--- a/language/greek/greek-fontenc/test-diacritics.tex
+++ b/language/greek/greek-fontenc/test-diacritics.tex
@@ -43,7 +43,7 @@ Greek typography if used with Greek letters.
Apart from the diacritical marks native to Greek itself, linguists also
regularly mark vowel length with macrons (¯) and breves (˘).
-Both keep the ``Latin'' behaviour also with capital Greek letters.
+There is no established praxis regarding their handling in uppercase.
The \emph{textalpha} or \emph{alphabeta} packages define the symbol macros
\verb|\<| and \verb|\>| as alias for the breathings (Dasia and Psili).
diff --git a/language/greek/greek-fontenc/test-lgrenc.pdf b/language/greek/greek-fontenc/test-lgrenc.pdf
index 2c4049d8be..7106c1f30b 100644
Binary files a/language/greek/greek-fontenc/test-lgrenc.pdf and b/language/greek/greek-fontenc/test-lgrenc.pdf differ
diff --git a/language/greek/greek-fontenc/test-lgrenc.tex b/language/greek/greek-fontenc/test-lgrenc.tex
index 4ba10eeb92..5db8e98396 100644
--- a/language/greek/greek-fontenc/test-lgrenc.tex
+++ b/language/greek/greek-fontenc/test-lgrenc.tex
@@ -57,7 +57,8 @@
% font encoding switch declarations:
\newcommand{\LGR}{\fontencoding{LGR}\selectfont}
-\newcommand{\Latin}{\fontencoding{\encodingdefault}\selectfont}
+\newcommand{\Latin}{\fontencoding{T1}\selectfont}
+\ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\LGR #1}}
% Auxiliary macros:
@@ -381,16 +382,15 @@ interchangeably.
\section{Diacritics}
-Capital Greek letters have diacritics (except dialytika, breve, macron, and
-sub-iota) to the left (instead of above) and drop them if text is set in
-UPPERCASE. This is implemented for all combinations that are used in Greek
-texts (i.e. for which pre-composed Unicode character exist), but not for,
+Capital Greek letters have breathings and accents (except dialytika) to
+the left (instead of above) and drop them if text is set in UPPERCASE.%
+\footnote{The word \ensuregreek{Ἢ} (or), is an exception to this rule
+ because of the need to distinguish it from the nominative
+ feminine article \ensuregreek{Η}.}
+This is implemented for all combinations that are used in Greek texts
+(i.e. for which pre-composed Unicode character exist), but not for,
e.g., \LGR\~W\Latin).
-% When a word is written entirely in capital letters, diacritics are
-% never used; the word Ἢ (or), is an exception to this rule because of
-% the need to distinguish it from the nominative feminine article Η.
-
Different conventions exist for the treatment of the sub-iota with uppercase
letters. The CB-Fonts use a capital Iota ``index'' (\LGR A|, H|, W|\Latin).
diff --git a/language/greek/greek-fontenc/test-licr-input.pdf b/language/greek/greek-fontenc/test-licr-input.pdf
index 5fdafab10a..71a5417cda 100644
Binary files a/language/greek/greek-fontenc/test-licr-input.pdf and b/language/greek/greek-fontenc/test-licr-input.pdf differ
diff --git a/language/greek/greek-fontenc/test-tuenc-greek.pdf b/language/greek/greek-fontenc/test-tuenc-greek.pdf
index 3a0837cdfc..d9f7002b13 100644
Binary files a/language/greek/greek-fontenc/test-tuenc-greek.pdf and b/language/greek/greek-fontenc/test-tuenc-greek.pdf differ
diff --git a/language/greek/greek-fontenc/textalpha-doc-tu.pdf b/language/greek/greek-fontenc/textalpha-doc-tu.pdf
index 5f2459b90c..64976cb797 100644
Binary files a/language/greek/greek-fontenc/textalpha-doc-tu.pdf and b/language/greek/greek-fontenc/textalpha-doc-tu.pdf differ
diff --git a/language/greek/greek-fontenc/textalpha-doc.pdf b/language/greek/greek-fontenc/textalpha-doc.pdf
index bbe6d82713..ef4e4c7b09 100644
Binary files a/language/greek/greek-fontenc/textalpha-doc.pdf and b/language/greek/greek-fontenc/textalpha-doc.pdf differ
diff --git a/language/greek/greek-fontenc/textalpha-doc.tex b/language/greek/greek-fontenc/textalpha-doc.tex
index 2f37d340a4..7d1992c346 100644
--- a/language/greek/greek-fontenc/textalpha-doc.tex
+++ b/language/greek/greek-fontenc/textalpha-doc.tex
@@ -1,4 +1,4 @@
-\documentclass{article}
+\documentclass[a4paper]{article}
\usepackage{parskip}
\usepackage{booktabs}
\usepackage{cmap}
@@ -82,12 +82,6 @@ Load this package in the preamble of your document with
\begin{verbatim}
\usepackage[]{textalpha}
\end{verbatim}
-to get a unified interface for Greek letters and symbols that works in all
-text font encodings, with both, Unicode fonts and the
-\href{https://ctan.org/pkg/fontspec}{\emph{fontspec}} package or 8-bit
-fonts and the \href{https://ctan.org/pkg/fontenc}{\emph{fontenc}}
-package.
-
See the source of this document \url{textalpha-doc.tex} for a setup and
usage example, the literate source of the package
\href{textalpha.sty.html}{textalpha.sty} for the implementation, and
@@ -110,7 +104,7 @@ use the variant shapes in place of the “regular” ones as a stylistic choice.
The \texttt{normalize-symbols} option merges letters and symbols to Greek
letters.
This way, text copied from external sources can be compiled without
-errors even if it contains a GREEK SYMBOL ... in place of a GREEK LETTER ...:
+errors even if it contains a GREEK SYMBOL … in place of a GREEK LETTER …
\begin{quote}
The source of this paragraph uses both variants for beta (β|ϐ),
theta (θ|ϑ), phi (φ|ϕ), pi (π|ϖ), kappa (κ|ϰ), rho (ρ|ϱ), Theta (Θ|ϴ),
@@ -157,18 +151,21 @@ With the \texttt{keep-semicolon} option, character 003B SEMICOLON can be used
for the \emph{erotimatiko} also with LGR encoded fonts:
\begin{center}
-\begin{tabular}{lll}
+\begin{tabular}{ccl}
Latin (\latinencoding) & Greek (\greekfontencoding) & question mark character \\
\midrule
- Τί φήις; & \ensuregreek{Τί φήις;} & 037E GREEK QUESTION MARK \\
- Τί φήις; & \ensuregreek{Τί φήις;} & 003B SEMICOLON \\
- Τί φήις? & \ensuregreek{Τί φήις?} & 003F QUESTION MARK \\
+ ; & \ensuregreek{;} & 037E GREEK QUESTION MARK \\
+ ; & \ensuregreek{;} & 003B SEMICOLON \\
+ ? & \ensuregreek{?} & 003F QUESTION MARK \\
\end{tabular}
\end{center}
This option is ignored with Unicode fonts (where the SEMICOLON literal
always prints a semicolon character).
+Test whether this works as expected in math mode:
+\ensuregreek{$a b; a\;b, (\mathrm{a;}\textrm{a;}2)$}.
+
\section{Limitations \label{sec:limitations}}
diff --git a/language/greek/greek-fontenc/textalpha.sty b/language/greek/greek-fontenc/textalpha.sty
index 97b7423fc7..20e40bec2b 100644
--- a/language/greek/greek-fontenc/textalpha.sty
+++ b/language/greek/greek-fontenc/textalpha.sty
@@ -3,7 +3,7 @@
% Greek symbols in text
% *********************
%
-% :Version: 2.2.1 (changelog_)
+% :Version: 2.2.2 (changelog_)
%
% :Copyright: © 2010, 2023 Günter Milde
%
@@ -111,7 +111,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{textalpha}
- [2023/03/08 2.2.1 macros for Greek letters in text]
+ [2023-03-17 2.2.2 macros for Greek letters in text]
% Options
@@ -517,7 +517,9 @@
% """"""""""""""""""""""""
%
% The text command ``\textsemicolon`` inserts ``\texterotimatiko``
-% in LGR font encoding and a "normal" semicolon else::
+% in LGR font encoding and a "normal" semicolon else.
+% In math mode, it inserts the "normal" semicolon also if the text font
+% encoding is LGR::
\ProvideTextCommandDefault{\textsemicolon}{;}
\ProvideTextCommand{\textsemicolon}{LGR}{\texterotimatiko}
@@ -528,7 +530,7 @@
\iftextalpha@keepSemicolon
\catcode`;=\active
- \newcommand{;}{\textsemicolon}
+ \newcommand{;}{\TextOrMath{\textsemicolon}{\char59}}
\fi
@@ -583,6 +585,7 @@
% .. Load ``puenc-greek.def`` if used with `hyperref`_.
% 2.2 2023-02-28 Don't use ``\makeatother`` in ``\AtBeginDocument``.
% 2.2.1 2023-03-08 Documentation update.
+% 2.2.2 2023-03-17 Don't map active `;` to ``\textsemicolon`` in math mode.
% ====== =========== ========================================================
%
%
diff --git a/language/greek/greek-fontenc/textalpha.sty.html b/language/greek/greek-fontenc/textalpha.sty.html
index dce522aadb..e003701cb6 100644
--- a/language/greek/greek-fontenc/textalpha.sty.html
+++ b/language/greek/greek-fontenc/textalpha.sty.html
@@ -793,7 +793,7 @@ mstyle.mathscr, mi.mathscr {
Greek symbols in text
- Version:
-- 2.2.1 (changelog)
+- 2.2.2 (changelog)
- Copyright:
- © 2010, 2023 Günter Milde
- Licence:
@@ -911,7 +911,7 @@ in the same document (see Identification
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{textalpha}
- [2023/03/08 2.2.1 macros for Greek letters in text]
+ [2023-03-17 2.2.2 macros for Greek letters in text]
@@ -1238,7 +1238,9 @@ The variations have no syntactic meaning in Greek text.
The text command \textsemicolon inserts \texterotimatiko
-in LGR font encoding and a “normal” semicolon else:
+in LGR font encoding and a “normal” semicolon else.
+In math mode, it inserts the “normal” semicolon also if the text font
+encoding is LGR:
\ProvideTextCommandDefault{\textsemicolon}{;}
\ProvideTextCommand{\textsemicolon}{LGR}{\texterotimatiko}
The LGR font encoding maps “;” to a middle dot (ano teleia). With the
@@ -1246,7 +1248,7 @@ in LGR font encoding and a “normal” semicolon else:
\textsemicolon:
\iftextalpha@keepSemicolon
\catcode`;=\active
- \newcommand{;}{\textsemicolon}
+ \newcommand{;}{\TextOrMath{\textsemicolon}{\char59}}
\fi
@@ -1356,6 +1358,10 @@ Don’t use \LastDeclaredEncoding.2023-03-08
Documentation update. |
+2.2.2 |
+2023-03-17 |
+Don’t map active ; to \textsemicolon in math mode. |
+