summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-07-10 20:28:23 +0000
committerKarl Berry <karl@freefriends.org>2019-07-10 20:28:23 +0000
commit93dc906dc01c75bdbe19ebd78c0a1538bfc25b53 (patch)
tree31f48869b8f24446b6778d464dc4bd5aa7b6ea03 /Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex
parent38035d16f502e46fac8ff2451219410a87edf7e9 (diff)
greek-fontenc (10jul19)
git-svn-id: svn://tug.org/texlive/trunk@51597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex76
1 files changed, 44 insertions, 32 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex
index 8cc2fad5403..78ed736ef13 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc-doc.tex
@@ -4,6 +4,7 @@
\usepackage{bookmark}
% \usepackage{parskip}
\usepackage{booktabs}
+\usepackage{amssymb}
% It is possible to use 8-bit Greek text fonts in the LGR TeX font encoding
% also with XeTeX/LuaTeX, if the »fontenc« package is loaded before
@@ -11,17 +12,17 @@
\usepackage[LGR]{fontenc}
% Unicode font setup:
-\usepackage{fontspec} % also loads xunicode
+\usepackage[tuenc]{fontspec}
% \setmainfont{DejaVu Serif}
% \setsansfont{DejaVu Sans}
% \usepackage{libertineotf}
-% \setmainfont{Linux Libertine O}
+\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
\setmainfont{FreeSerif}%
% \setmainfont{Droid Sans}
% Declare the font encoding and Greek LICR definitions:
-\usepackage{textalpha}
+\usepackage[normalize-symbols]{textalpha}
\begin{document}
@@ -34,8 +35,8 @@ The file \href{greek-euenc.def.html}{greek-euenc.def} provides support for
Greek LICR macros and upcasing of text with XeTeX and LuaTeX. It is
automatically loaded by the \href{textalpha-doc.pdf}{\emph{textalpha}} and
\href{alphabeta-doc.pdf}{\emph{alphabeta}} packages as well as
-\href{http://www.ctan.org/pkg/babel-greek}{\emph{babel-greek}}, if the font
-encoding is set to one of the Unicode font encodings EU1 or EU2 (usually via
+\href{http://www.ctan.org/pkg/babel-greek}{\emph{babel-greek}} if the font
+encoding is set to the Unicode font encoding TU (usually via
the \href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}} package for
font setup with LuaTeX and XeTeX).
@@ -43,11 +44,10 @@ font setup with LuaTeX and XeTeX).
\section{Requirements}
-\subsection{euenc}
- The \href{http://www.ctan.org/pkg/euenc}{\emph{euenc}} package sets up the
- EU1 and EU2 unicode font encodings for XeTeX and LuaTeX respectively.
- However, it does not include support for the Greek script. It is normally
- loaded by \href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}}.
+\subsection{fontspec}
+ The \href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}} package sets
+ up the TU Unicode font encoding for XeTeX and LuaTeX. However, it does not
+ include support for the Greek script.
\subsection{suitable Unicode fonts}
With the XeTeX or LuaTeX engines, the user must ensure that the selected
@@ -56,14 +56,16 @@ Greek letters).
There are no errors for missing glyphs, just warnings in the log file (but
not the console output) and empty spaces in the output document.
-Examples for suitable fonts are the \emph{Deja Vu}, \emph{Free Serif} or
-\emph{Linux Libertine} OpenType fonts.
+Examples for suitable fonts are given in the
+\href{http://mirrors.ctan.org/language/greek/greek-fontenc/README.html#TU}
+{greek-fontenc README}.
+
\section{Usage}
\texttt{greek-euenc.def} is usually not loaded directly, but by one of
\href{textalpha-doc.pdf}{\emph{textalpha}},
-\href{alphabeta-doc.pdf}{\emph{alphabeta}}, or \emph{babel} (with the
+\href{alphabeta-doc.pdf}{\emph{alphabeta}}, or \emph{Babel} (with the
language option \href{http://www.ctan.org/pkg/babel-greek}{greek}). If these
packages are loaded after
\href{http://www.ctan.org/pkg/fontspec}{\emph{fontspec}}, Unicode font setup
@@ -71,7 +73,7 @@ is amended for use of the Greek script.
\section{LICR input}
-The LaTeX internal character representation (LICR) is a verbose but
+The LaTeX internal character representation (LICR) is a verbose,
fail-safe 7-bit ASCII encoding that can be used unaltered under both, 8-bit
TeX and XeTeX/LuaTeX. Use cases are macro definitions and generated text.
@@ -98,10 +100,10 @@ Greek letters via LICR macros:
The small sigma is set with a different
glyph if it ends a word:
\begin{quote}
- \textsigma{} textsigma\\
- \textfinalsigma{} textfinalsigma or textvarsigma
+ \textsigma{} \verb|textsigma|\\
+ \textfinalsigma{} \verb|textfinalsigma| or \verb|textvarsigma|
\end{quote}
-The \verb|\textautosigma| macro/feature, which automatically chooses the
+The \verb|\textautosigma| macro, which automatically chooses the
glyph according to the position, is not implemented for Unicode fonts.
\subsection{Diacritics}
@@ -115,11 +117,12 @@ Greek diacritics can be input by named macro or symbol macro:
\accpsili\textalpha \>\textalpha{} \accpsili x\>x
\accdasia\textalpha \<\textalpha{} \accdasia x\<x
\end{quote}
-Up-to-date XeTeX/LuaTeX (or fontspec?) normalizes base letter and
-combining diacritics to the corresponding pre-composed character if such a
-mapping is defined in the Unicode standard:
+Up-to-date Xe/LuaTeX normalizes base letter and combining diacritics to the
+corresponding pre-composed character if such a mapping is defined in the
+Unicode standard:
\begin{quote}
+ % άάὰὰϊϊᾶᾶἀἀἁἁ
\acctonos α \'α
\accvaria α \`α
\accdialytika ι \"ι
@@ -131,6 +134,8 @@ mapping is defined in the Unicode standard:
\subsubsection{perispomeni vs. tilde}
+The Greek \emph{perispomeni} has the look of a tilde but the semantic
+of a circumflex accent.
The ``named'' \verb|\accperispomeni| macro uses COMBINING GREEK PERISPOMENI,
while the standard tilde-accent macro \verb|\~| uses the COMBINING TILDE
which is not normalized to GREEK LETTER ... WITH PERISPOMENI
@@ -181,15 +186,15 @@ The sub-iota (ypogegrammeni/prosgegrammeni) is input after the base letter.
\begin{quote}
-\verb|\prosgegrammeni| sets a (spacing) GREEK PROSGEGRAMMENI:\\
- \textAlpha\prosgegrammeni{} K\prosgegrammeni{}
-
-\verb|\ypogegrammeni| sets a COMBINING GREEK YPOGEGRAMMENI. A
-Greek capital letter followed by COMBINING GREEK YPOGEGRAMMENI is normalized
-to the corresponding GREEK CAPITAL LETTER ... WITH [.. AND] PROSGEGRAMMENI),
-if a mapping exists in the Unicode standard:
- \textalpha\ypogegrammeni{} k\ypogegrammeni{}
- \textAlpha\ypogegrammeni{} K\ypogegrammeni{}
+\verb|\prosgegrammeni| sets a spacing GREEK PROSGEGRAMMENI:
+ \textAlpha\prosgegrammeni{} K\prosgegrammeni{}.
+
+\verb|\ypogegrammeni| sets a COMBINING GREEK YPOGEGRAMMENI. \\
+A Greek capital letter followed by COMBINING GREEK YPOGEGRAMMENI is
+normalized to the corresponding GREEK CAPITAL LETTER ... WITH [.. AND]
+PROSGEGRAMMENI), if a mapping exists in the Unicode standard:
+\textalpha\ypogegrammeni{} k\ypogegrammeni{} \textAlpha\ypogegrammeni{}
+K\ypogegrammeni{}.
\end{quote}
\subsection{Additional Greek symbols}
@@ -299,7 +304,7 @@ work in text and math mode.
\verb$\textbetasymbol$ & \textbetasymbol & & \\
\hline
\verb$\textkappa$ & \textkappa & \verb$\kappa$ & $\kappa$ \\
- \verb$\textvarkappa$ & \textvarkappa & \emph{missing} & \\
+ \verb$\textvarkappa$ & \textvarkappa & \verb$\varkappa$ & $\varkappa$ \\
\verb$\textkappasymbol$ & \textkappasymbol & & \\
\hline
\verb$\textTheta$ & \textTheta & \verb$\Theta$ & $\Theta$ \\
@@ -346,7 +351,7 @@ or the file usage.pdf from the
description.}
does not work with Unicode fonts.
-Is is possible to set up LGR encoded fonts parallel to Unicode fonts (see
+It is possible to set up LGR encoded fonts parallel to Unicode fonts (see
the preamble of the source file \url{greek-euenc-doc.tex} for an example).
The \verb|\textgreek| macro can then be used for the input of Greek letters
via the \emph{Latin transcription}, e.g. «logos» becomes «\textgreek{logos}»
@@ -419,11 +424,18 @@ The «hiatus» feature works with macro input:
\MakeUppercase{\accpsili\textalpha\textupsilon πνία}.
\end{quote}
-It does not work (yet?) with Unicode literals:
+It does not work with Unicode literals:
\begin{quote}
άι, άυ, έι, ἄι, ἄυ, ἔι $\mapsto$ \MakeUppercase{άι, άυ, έι, ἄι, ἄυ, ἔι}
\end{quote}
+or accent-macro + Unicode literals (yet?):
+\begin{quote}
+ \acctonos αι, \acctonos αυ, \acctonos ει, \'>αι, \'>αυ, \'>ει
+ $\mapsto$
+ \MakeUppercase{\acctonos αι, \acctonos αυ, \acctonos ει, \'>αι, \'>αυ, \'>ει}
+\end{quote}
+
\section{Character Tables}
The following tables list the Greek Unicode characters. In the input, the