From 41b65de3ca404c665b94ea7716f036ce4f024619 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 19 Mar 2023 03:01:21 +0000 Subject: CTAN sync 202303190301 --- language/greek/greek-fontenc/README.md | 32 ++++++++++----------- language/greek/greek-fontenc/alphabeta-doc-tu.pdf | Bin 74857 -> 74849 bytes language/greek/greek-fontenc/alphabeta-doc.pdf | Bin 433268 -> 433268 bytes .../greek/greek-fontenc/greek-fontenc-doc.html | 7 ++++- language/greek/greek-fontenc/greek-fontenc-doc.rst | 4 ++- language/greek/greek-fontenc/greek-fontenc.def | 17 +++++++---- .../greek/greek-fontenc/greek-fontenc.def.html | 16 +++++++---- .../greek/greek-fontenc/hyperref-with-greek.pdf | Bin 296813 -> 296813 bytes language/greek/greek-fontenc/test-diacritics.tex | 2 +- language/greek/greek-fontenc/test-lgrenc.pdf | Bin 326304 -> 327645 bytes language/greek/greek-fontenc/test-lgrenc.tex | 18 ++++++------ language/greek/greek-fontenc/test-licr-input.pdf | Bin 398308 -> 398308 bytes language/greek/greek-fontenc/test-tuenc-greek.pdf | Bin 85979 -> 85980 bytes language/greek/greek-fontenc/textalpha-doc-tu.pdf | Bin 83999 -> 84851 bytes language/greek/greek-fontenc/textalpha-doc.pdf | Bin 501358 -> 500770 bytes language/greek/greek-fontenc/textalpha-doc.tex | 21 ++++++-------- language/greek/greek-fontenc/textalpha.sty | 11 ++++--- language/greek/greek-fontenc/textalpha.sty.html | 14 ++++++--- 18 files changed, 82 insertions(+), 60 deletions(-) (limited to 'language/greek') diff --git a/language/greek/greek-fontenc/README.md b/language/greek/greek-fontenc/README.md index 0b61d52f49..ae5699585a 100644 --- a/language/greek/greek-fontenc/README.md +++ b/language/greek/greek-fontenc/README.md @@ -5,10 +5,10 @@ Font encoding definition files with *LaTeX internal character representation* (LICR) macros for letters and symbols from the Greek script. -The included LaTeX packages [textalpha][1] and [alphabeta][2] -facilitate the use of Greek symbols in text. +The included LaTeX packages [textalpha][textalpha.sty] and +[alphabeta][alphabeta.sty] facilitate the use of Greek symbols in text. -**Version**: 2.2.1 +**Version**: 2.2.2 **Copyright**: © 2010 – 2023 Günter Milde @@ -24,27 +24,25 @@ either version 1.3 of this license or any later version. Usage ----- -Usually, the font definition files are loaded via +Usually, the font encoding definition files are loaded via [Babel's ``greek`` option](https://ctan.org/pkg/babel-greek), -the [textalpha][1] or [textbeta][2] packages, or the -[fontenc](https://ctan.org/pkg/fontenc) package. +the [textalpha][textalpha.sty] or [textbeta][alphabeta.sty] packages, +or the [fontenc](https://ctan.org/pkg/fontenc) package. -Requires [text fonts supporting the Greek script][3]. +Requires [text fonts supporting the Greek script][greek fonts]. With 8-bit TeX/pdfTeX, [greek-inputenc](https://ctan.org/pkg/greek-inputenc) is recommended. Documentation ------------- -* [greek-fontenc-doc.html][4] (CTAN) +* [greek-fontenc-doc.html](https://mirrors.ctan.org/language/greek/greek-fontenc/greek-fontenc-doc.html) + (🡥CTAN) +* [greek-fontenc-doc.rst](https://codeberg.org/milde/greek-tex/src/branch/master/greek-fontenc/greek-fontenc-doc.rst) + (🡥codeberg.org) +* `texdoc greek-fontenc` (local TeXLive installation) -* [greek-fontenc-doc.html](greek-fontenc-doc.html) (next to this file) -* [greek-fontenc-doc.rst][5] (source repository) - - -[1]: http://mirrors.ctan.org/language/greek/greek-fontenc/textalpha.sty.html -[2]: http://mirrors.ctan.org/language/greek/greek-fontenc/alphabeta.sty.html -[3]: https://ctan.org/tex-archive/macros/latex/contrib/babel-contrib/greek/babel-greek-doc.html#greek-text-fonts -[4]: http://mirrors.ctan.org/language/greek/greek-fontenc/greek-fontenc-doc.html -[5]: https://codeberg.org/milde/greek-tex/src/branch/master/greek-fontenc/greek-fontenc-doc.rst +[textalpha.sty]: https://mirrors.ctan.org/language/greek/greek-fontenc/textalpha.sty.html +[alphabeta.sty]: https://mirrors.ctan.org/language/greek/greek-fontenc/alphabeta.sty.html +[greek fonts]: https://ctan.org/tex-archive/macros/latex/contrib/babel-contrib/greek/babel-greek-doc.html#greek-text-fonts diff --git a/language/greek/greek-fontenc/alphabeta-doc-tu.pdf b/language/greek/greek-fontenc/alphabeta-doc-tu.pdf index 02bd042e9e..1377f45f36 100644 Binary files a/language/greek/greek-fontenc/alphabeta-doc-tu.pdf and b/language/greek/greek-fontenc/alphabeta-doc-tu.pdf differ diff --git a/language/greek/greek-fontenc/alphabeta-doc.pdf b/language/greek/greek-fontenc/alphabeta-doc.pdf index 85a69a21af..6f8efd56d3 100644 Binary files a/language/greek/greek-fontenc/alphabeta-doc.pdf and b/language/greek/greek-fontenc/alphabeta-doc.pdf differ diff --git a/language/greek/greek-fontenc/greek-fontenc-doc.html b/language/greek/greek-fontenc/greek-fontenc-doc.html index df2405c2dd..bfdaf9b57c 100644 --- a/language/greek/greek-fontenc/greek-fontenc-doc.html +++ b/language/greek/greek-fontenc/greek-fontenc-doc.html @@ -793,7 +793,7 @@ mstyle.mathscr, mi.mathscr {

Greek font encoding definition files

Version:
-
2.2.1 (changelog)
+
2.2.2 (changelog)
Licence:
@@ -1393,6 +1393,11 @@ converted to pre-composed characters.

downcasing \textStigma to \textvarstigma.

+
2.2.2 (2023-03-17)
+
    +
  • Don’t map active ; to \textsemicolon in math mode.

  • +
+
diff --git a/language/greek/greek-fontenc/greek-fontenc-doc.rst b/language/greek/greek-fontenc/greek-fontenc-doc.rst index 67a866da11..a98f4b50a6 100644 --- a/language/greek/greek-fontenc/greek-fontenc-doc.rst +++ b/language/greek/greek-fontenc/greek-fontenc-doc.rst @@ -4,7 +4,7 @@ greek-fontenc Greek font encoding definition files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -:Version: 2.2.1 (changelog_) +:Version: 2.2.2 (changelog_) :Copyright: © 2010 -- 2023 Günter Milde :Licence: This work may be distributed and/or modified under the @@ -540,6 +540,8 @@ Changelog - Fix broken links in README.md. - ``@uclclist`` entry for ``\accoxia``, prevent downcasing ``\textStigma`` to ``\textvarstigma``. +2.2.2 (2023-03-17) + - Don't map active ``;`` to ``\textsemicolon`` in math mode. __ http://tex.stackexchange.com/questions/281631/greek-small-rho-with-dasia-and-also-psili-problem-with-accent-and-lgr-encodin .. _ltxbugs 4399: diff --git a/language/greek/greek-fontenc/greek-fontenc.def b/language/greek/greek-fontenc/greek-fontenc.def index 1e5d781b49..0ebda57015 100644 --- a/language/greek/greek-fontenc/greek-fontenc.def +++ b/language/greek/greek-fontenc/greek-fontenc.def @@ -248,15 +248,14 @@ % .. _uclclist: % -% UPPERCASE -% ~~~~~~~~~ +% Case changing +% ~~~~~~~~~~~~~ % % 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 @@ -267,6 +266,14 @@ % 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. +% +% __ https://icu.unicode.org/design/case/greek-upper +% % Up to 2022/06, macro substitutions in the ``\@uclclist`` could be used to % get the expected behaviour: % diff --git a/language/greek/greek-fontenc/greek-fontenc.def.html b/language/greek/greek-fontenc/greek-fontenc.def.html index 68d93d25d0..972de519d1 100644 --- a/language/greek/greek-fontenc/greek-fontenc.def.html +++ b/language/greek/greek-fontenc/greek-fontenc.def.html @@ -817,7 +817,7 @@ font encodings providing Greek characters.

  • ensuregreek, greekscript

  • Aliases

  • Composite diacritics

  • -
  • UPPERCASE

    +
  • Case changing

    • @uclclist extension

    • Substitution macros

    • @@ -1019,13 +1019,12 @@ composite definitions starting with standard macros are requried:

      \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\accperispomeni}{\accdasiaperispomeni} \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\~}{\accdasiaperispomeni}
  • -
    -

    UPPERCASE

    +
    +

    Case changing

    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)
    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]

    Options

    @@ -1238,7 +1238,9 @@ The variations have no syntactic meaning in Greek text.

    semicolon as erotimatiko

    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.

    +