summaryrefslogtreecommitdiff
path: root/language/greek/greek-fontenc/textalpha.sty.html
diff options
context:
space:
mode:
Diffstat (limited to 'language/greek/greek-fontenc/textalpha.sty.html')
-rw-r--r--language/greek/greek-fontenc/textalpha.sty.html36
1 files changed, 21 insertions, 15 deletions
diff --git a/language/greek/greek-fontenc/textalpha.sty.html b/language/greek/greek-fontenc/textalpha.sty.html
index f3cd385494..8f8d046012 100644
--- a/language/greek/greek-fontenc/textalpha.sty.html
+++ b/language/greek/greek-fontenc/textalpha.sty.html
@@ -794,7 +794,7 @@ mstyle.mathscr, mi.mathscr {
<p class="subtitle" id="greek-symbols-in-text">Greek symbols in text</p>
<dl class="docinfo">
<dt class="version">Version<span class="colon">:</span></dt>
-<dd class="version">2.4 (<a class="reference internal" href="#changelog">changelog</a>)</dd>
+<dd class="version">2.5 (<a class="reference internal" href="#changelog">changelog</a>)</dd>
<dt class="copyright">Copyright<span class="colon">:</span></dt>
<dd class="copyright">© 2010, 2023 Günter Milde</dd>
<dt class="licence">Licence<span class="colon">:</span></dt>
@@ -916,7 +916,7 @@ in the same document (see <a class="reference external" href="test-tuenc-greek.t
<section id="identification">
<h3><a class="toc-backref" href="#toc-entry-5" role="doc-backlink">Identification</a></h3>
<pre class="literal-block">\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{textalpha}[2023-08-15 2.4 macros for Greek letters in text]</pre>
+\ProvidesPackage{textalpha}[2023-09-12 2.5 macros for Greek letters in text]</pre>
</section>
<section id="options">
<h3><a class="toc-backref" href="#toc-entry-6" role="doc-backlink">Options</a></h3>
@@ -967,7 +967,9 @@ With XeTeX/LuaTeX and Unicode fonts, this option is ignored.</p>
<p>In the Latin transliteration provided by LGR, breathing accents (Dasia and
Psili) are input as &lt; and &gt;. Provide the corresponding NFSS macro accents.
(Used below for LGR, TU, and PU, if these font encodings are defined):</p>
-<pre class="literal-block">\newcommand{\textalpha&#64;define&#64;breathings}[1]{
+<pre class="literal-block">\providecommand*{\IfFormatAtLeastTF}[3]{#3} % new in 2020
+
+\newcommand{\textalpha&#64;define&#64;breathings}[1]{
\DeclareTextCommand{\&lt;}{#1}{\accdasia}
\DeclareTextCommand{\&gt;}{#1}{\accpsili}
% Composite accents starting with the new-defined shortcuts:
@@ -976,9 +978,14 @@ Psili) are input as &lt; and &gt;. Provide the corresponding NFSS macro accents.
\DeclareTextCompositeCommand{\&gt;}{#1}{~}{\accpsiliperispomeni}
\DeclareTextCompositeCommand{\&lt;}{#1}{'}{\accdasiaoxia}
\DeclareTextCompositeCommand{\&lt;}{#1}{`}{\accdasiavaria}
- \DeclareTextCompositeCommand{\&lt;}{#1}{~}{\accdasiaperispomeni}</pre>
+ \DeclareTextCompositeCommand{\&lt;}{#1}{~}{\accdasiaperispomeni}
+
+ \IfFormatAtLeastTF{2022/06/01}{}{% else
+ \DeclareTextCompositeCommand{\&lt;}{#1}{^^9f}{\LGR&#64;hiatus}
+ \DeclareTextCompositeCommand{\&gt;}{#1}{^^9f}{\LGR&#64;hiatus}
+ }</pre>
<p>Also define “mixed” composites (required due to the fix for
-<span class="docutils literal">\MakeUppercse</span> below:</p>
+<span class="docutils literal">\MakeUppercase</span> below:</p>
<pre class="literal-block"> % \MakeUppercse: \&gt;~a, \&lt;~a
% \DeclareTextCompositeCommand{\accpsili}{#1}{~}{\accpsiliperispomeni}
% \DeclareTextCompositeCommand{\accdasia}{#1}{~}{\accdasiaperispomeni}
@@ -1005,8 +1012,6 @@ macros:</p>
<pre class="literal-block">\ifdefined \UnicodeEncodingName % set by LaTeX for Unicode-aware engines
\input{tuenc-greek.def}
\textalpha&#64;define&#64;breathings{\UnicodeEncodingName}
- \DeclareTextCompositeCommand{\&lt;}{\UnicodeEncodingName}{^^9f}{\LGR&#64;hiatus}
- \DeclareTextCompositeCommand{\&gt;}{\UnicodeEncodingName}{^^9f}{\LGR&#64;hiatus}
\else
\&#64;ifl&#64;aded{def}{lgrenc}
{}
@@ -1017,11 +1022,7 @@ macros:</p>
(enables use of 8-bit TeX fonts and input via the Latin transliteration).
Add setup for breathings:</p>
<pre class="literal-block">\&#64;ifl&#64;aded{def}{lgrenc}
- {\textalpha&#64;define&#64;breathings{LGR}
- % Hiatus feature (see greek-fontenc.def and babel-greek (greek.ldf))
- \DeclareTextCompositeCommand{\&lt;}{LGR}{^^9f}{\LGR&#64;hiatus}
- \DeclareTextCompositeCommand{\&gt;}{LGR}{^^9f}{\LGR&#64;hiatus}
- }
+ {\textalpha&#64;define&#64;breathings{LGR}}
{}</pre>
<p>The package <a class="reference external" href="https://ctan.org/pkg/hyperref">hyperref</a> defines the PU font encoding and adds some
LICR commands for monotonic Greek (in punenc-greekbasick.def).
@@ -1131,15 +1132,15 @@ would work also for cases like <span class="docutils literal"><span class="pre">
\DeclareTextSymbolDefault{\textkappa}{LGR}
\DeclareTextSymbolDefault{\textlambda}{LGR}
\DeclareTextSymbolDefault{\textmu}{LGR}
-\DeclareTextSymbolDefault{\textmugreek}{LGR} % (puenc.def)
+\DeclareTextSymbolDefault{\textmugreek}{LGR} % (puenc.def)
\DeclareTextSymbolDefault{\textnu}{LGR}
\DeclareTextSymbolDefault{\textxi}{LGR}
\DeclareTextSymbolDefault{\textomicron}{LGR}
\DeclareTextSymbolDefault{\textpi}{LGR}
\DeclareTextSymbolDefault{\textrho}{LGR}
\DeclareTextSymbolDefault{\textsigma}{LGR}
-\DeclareTextSymbolDefault{\textvarsigma}{LGR}
-\DeclareTextSymbolDefault{\textfinalsigma}{LGR} % alias for \textvarsigma
+\DeclareTextSymbolDefault{\textfinalsigma}{LGR}
+\DeclareTextSymbolDefault{\textvarsigma}{LGR} % alias for \textfinalsigma
\DeclareTextSymbolDefault{\textautosigma}{LGR} % char 115 in LGR
\DeclareTextSymbolDefault{\texttau}{LGR}
\DeclareTextSymbolDefault{\textupsilon}{LGR}
@@ -1216,6 +1217,7 @@ The variations have no syntactic meaning in Greek text.</p>
<pre class="literal-block">\DeclareTextAccentDefault{\accdasia}{LGR}
\DeclareTextAccentDefault{\accpsili}{LGR}
\DeclareTextAccentDefault{\acctonos}{LGR}
+\DeclareTextAccentDefault{\accoxia}{LGR}
\DeclareTextAccentDefault{\accvaria}{LGR}
\DeclareTextAccentDefault{\accperispomeni}{LGR}
\DeclareTextAccentDefault{\accdialytika}{LGR}
@@ -1384,6 +1386,10 @@ Don’t use <span class="docutils literal">\LastDeclaredEncoding</span>.</p></td
<td></td>
<td><p>Fix upcasing of Greek letters with <span class="docutils literal">\&lt;</span> and <span class="docutils literal">\&gt;</span>.</p></td>
</tr>
+<tr><td><p>2.5</p></td>
+<td><p>2023-09-12</p></td>
+<td><p>Support the <span class="docutils literal">\accoxia</span> alias.</p></td>
+</tr>
</tbody>
</table>
<!-- References