summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex289
1 files changed, 171 insertions, 118 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex
index 724bbef72db..6e19e30039c 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex
@@ -17,8 +17,26 @@
\usepackage{parskip}
\usepackage{textcomp}
+
\usepackage[LGR,T1]{fontenc}
+% Shortcut accent macros \< and \>:
+%
+% The Symbol macros for the breathings were
+% moved to ``textalpha.sty`` to avoid clashes with possible local
+% definitions of these macros.
+%
+% Local definition and setup:
+\DeclareTextCommand{\<}{LGR}{\accdasia}
+\DeclareTextCommand{\>}{LGR}{\accpsili}
+\DeclareTextCompositeCommand{\>}{LGR}{'}{\accpsilioxia}
+\DeclareTextCompositeCommand{\>}{LGR}{`}{\accpsilivaria}
+\DeclareTextCompositeCommand{\>}{LGR}{~}{\accpsiliperispomeni}
+\DeclareTextCompositeCommand{\<}{LGR}{'}{\accdasiaoxia}
+\DeclareTextCompositeCommand{\<}{LGR}{`}{\accdasiavaria}
+\DeclareTextCompositeCommand{\<}{LGR}{~}{\accdasiaperispomeni}
+
+
% With XeTeX/LuaTeX, use Unicode for Latin script:
\ifdefined\luatexversion \usepackage{fontspec}\else
\ifdefined\XeTeXrevision \usepackage{fontspec}\else
@@ -39,7 +57,6 @@
\newcommand{\LGR}{\fontencoding{LGR}\selectfont}
\newcommand{\Latin}{\fontencoding{\encodingdefault}\selectfont}
-
\begin{document}
\title{Test LGR font encoding definitions}
@@ -55,7 +72,7 @@ The example from \texttt{usage.tex} in \emph{babel-greek} input
using the LICR macros:
\begin{quote}
- \LGR
+ \LGR
\textTau\'\textiota{}
\textphi\'\texteta\textiota\textfinalsigma\texterotimatiko{}
\<\textIota\textdelta\`\textomega\textnu{}
@@ -100,7 +117,12 @@ LGR:
\textvisiblespace{}
\Latin (Per-mille symbol is missing in LGR.)
-Quotes:
+Quotes:\footnote{%
+ Single quotes need special attention to prevent conversion to accents.
+ Test the input conventions:
+ \LGR \textquoteleft{}a\textquoteright{} ``a'' \``a\'' \`\`a\'\'
+ \Latin but not \LGR `a' 'e' "i"\Latin
+}
%
\Latin \guillemotleft{}a\guillemotright{}
\LGR \guillemotleft{}a\guillemotright{},
@@ -110,24 +132,17 @@ Quotes:
%
\Latin \textquotedblleft{}a\textquotedblright{}
\LGR \textquotedblleft{}a\textquotedblright{}
-\Latin (double quotes wrong with Kerkis fonts),
-
-\begin{quote}
- Single quotes need special attention to prevent conversion to accents.
- Test the input conventions:
- \LGR \textquoteleft{}a\textquoteright{} ``a'' \``a\'' \`\`a\'\'
- \Latin but not \LGR `a' 'e' "i"\Latin
+\Latin (double quotes wrong with Kerkis fonts)
- Single guillemots and base-quotes
+Single guillemots and base-quotes
(\guilsinglleft{}a\guilsinglright{}
\quotedblbase{}a\textquotedblright{}
\quotesinglbase{}a\textquoteright{})
are missing in LGR.
-\end{quote}
Ligature break up: AY fi \LGR AU "i $\mapsto$
-\Latin A\textcompwordmark{}Y f\textcompwordmark i
-\LGR A\textcompwordmark{}U "\textcompwordmark i
+\Latin A\textcompwordmark Y f\textcompwordmark i
+\LGR A\textcompwordmark U "\textcompwordmark i
\Latin Spacing accent chars:
@@ -155,7 +170,8 @@ Ligature break up: AY fi \LGR AU "i $\mapsto$
\Latin Symbols for SI-units:
\Latin 5\,\textmu{}m, 5\,k\textohm{};
-\LGR 5\,\textmu{}{\Latin m}, 5\,{\Latin k}\textohm{}
+\LGR 5\,\textmu{}{\Latin m}, 5\,{\Latin k}\textohm
+\Latin ; but never italic: 5\,$\mu$m
\Latin Letter schwa and Euro symbol: % \textschwa (needs e.g. T3)
\LGR \textschwa{}, \texteuro{}
@@ -186,113 +202,122 @@ LGR (with textcomp):
Greek letters via Latin transcription and LICR macros:
-\LGR
-\MakeUppercase{a b g d e z h j i k l m n x o p r s t u f q y w}
-
-a b g d e z h j i k l m n x o p r sv t u f q y w
-
-\textAlpha{} \textBeta{} \textGamma{} \textDelta{} \textEpsilon{}
-\textZeta{} \textEta{} \textTheta{} \textIota{} \textKappa{}
-\textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \textPi{}
-\textRho{} \textSigma{} \textTau{} \textUpsilon{} \textPhi{}
-\textChi{} \textPsi{} \textOmega{}
-
-\textalpha{} \textbeta{} \textgamma{} \textdelta{} \textepsilon{}
-\textzeta{} \texteta{} \texttheta{} \textiota{} \textkappa{}
-\textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \textpi{}
-\textrho{} \textsigma{} \texttau{} \textupsilon{}
-\textphi{} \textchi{} \textpsi{} \textomega{}
+\begin{quote}
+ \LGR
+ \MakeUppercase{a b g d e z h j i k l m n x o p r s t u f q y w}
+
+ a b g d e z h j i k l m n x o p r sv t u f q y w
+
+ \textAlpha{} \textBeta{} \textGamma{} \textDelta{} \textEpsilon{}
+ \textZeta{} \textEta{} \textTheta{} \textIota{} \textKappa{}
+ \textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \textPi{}
+ \textRho{} \textSigma{} \textTau{} \textUpsilon{} \textPhi{}
+ \textChi{} \textPsi{} \textOmega{}
+
+ \textalpha{} \textbeta{} \textgamma{} \textdelta{} \textepsilon{}
+ \textzeta{} \texteta{} \texttheta{} \textiota{} \textkappa{}
+ \textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \textpi{}
+ \textrho{} \textsigma{} \texttau{} \textupsilon{}
+ \textphi{} \textchi{} \textpsi{} \textomega{}
+\end{quote}
-\Latin The small sigma is set with a different
-glyph if it ends a word:
+The small sigma is set with a different glyph if it ends a word:
-\LGR \textsigma{} \Latin textsigma \\
-\LGR \textfinalsigma{} \Latin textfinalsigma or textvarsigma
+\begin{quote}
+ \LGR \textsigma{} \Latin textsigma \\
+ \LGR \textfinalsigma{} \Latin textfinalsigma or textvarsigma
+\end{quote}
In the Latin transcription, the letter `s' stands for \verb|\textautosigma|
which automatically chooses the glyph according to the position.
\subsection{Additional Greek symbols}
-\LGR \textkoppa{} \Latin textkoppa \\ % ϟ
-\LGR \textqoppa{} \Latin textqoppa (archaic koppa) \\ % ϙ
-\LGR \textQoppa{} \Latin textQoppa (archaic Koppa) \\ % Ϙ
-\LGR \textstigma{} \Latin textstigma \\ % ϛ
-\LGR \textvarstigma{} \Latin textvarstigma \\ % no separate Unicode character
-\LGR \textStigma{} \Latin textStigma (Sigma-Tau-Ligature in CB-fonts)%
-\footnote{the name ``stigma'' originally applied to a medieval sigma-tau
- ligature, whose shape was confusably similar to the cursive
- digamma} \\ % Ϛ
-\LGR \textsampi{} \Latin textsampi \\ % ϡ
-\LGR \textSampi{} \Latin textSampi \\ % Ϡ
-\LGR \textdigamma{} \Latin textdigamma \\ % ϝ (\digamma used by amsmath!)
-\LGR \textDigamma{} \Latin textDigamma \\ % Ϝ
-% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals
-\LGR \textnumeralsigngreek{} \Latin textnumeralsigngreek (Dexia keraia) \\ % ʹ
-\LGR \textnumeralsignlowergreek{} \Latin textnumeralsignlowergreek
- (Aristeri keraia)\\ % ͵
-
-\Latin Mathematical notation sometimes uses variant shapes for pi ($\varpi$),
+\begin{quote}
+ \LGR \textkoppa{} \Latin textkoppa \\ % ϟ
+ \LGR \textqoppa{} \Latin textqoppa (archaic koppa) \\ % ϙ
+ \LGR \textQoppa{} \Latin textQoppa (archaic Koppa) \\ % Ϙ
+ \LGR \textstigma{} \Latin textstigma \\ % ϛ
+ \LGR \textvarstigma{} \Latin textvarstigma \\ % no separate Unicode character
+ \LGR \textStigma{} \Latin textStigma (Sigma-Tau-Ligature in CB-fonts)%
+ \footnote{the name ``stigma'' originally applied to a medieval sigma-tau
+ ligature, whose shape was confusingly similar to the cursive
+ digamma} \\ % Ϛ
+ \LGR \textsampi{} \Latin textsampi \\ % ϡ
+ \LGR \textSampi{} \Latin textSampi \\ % Ϡ
+ \LGR \textdigamma{} \Latin textdigamma \\ % ϝ (\digamma used by amsmath!)
+ \LGR \textDigamma{} \Latin textDigamma \\ % Ϝ
+ % numeral signs: http://en.wikipedia.org/wiki/Greek_numerals
+ \LGR \textnumeralsigngreek{} \Latin textnumeralsigngreek (Dexia keraia) \\ % ʹ
+ \LGR \textnumeralsignlowergreek{} \Latin textnumeralsignlowergreek
+ (Aristeri keraia)\\ % ͵
+\end{quote}
+
+Mathematical notation sometimes uses variant shapes for pi ($\varpi$),
kappa (\emph{no TeX symbol available}), rho ($\varrho$), and theta
($\vartheta$). These variations have no syntactic meaning in Greek text and
are not given code-points in the LGR encoding. Some Greek text fonts use
-variant shapes in place of the ``regular'' ones.
+the variant shapes in place of the ``regular'' ones.
\section{Diacritics}
Capital Greek letters have Greek diacritics (except the dialytika) to the
left (instead of above) and drop them in UPPERCASE. This is implemented for
all combinations for which a pre-composed Unicode character exists (but not,
-e.g., \LGR \~A\Latin).
+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''.
-
-LaTeX standard accents (Latin, Greek, Greek Capitals)
-$\mapsto$ UPPERCASE
+letters. The CB-Fonts use a capital Iota ``index'' (\LGR A|, H|, W|\Latin).
-\`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
-\b{a} \c{a} \d{a} \k{a}
-$\mapsto$ \MakeUppercase{%
-\`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
-\b{a} \c{a} \d{a} \k{a}
-}
+LaTeX standard accents
+(Latin, Greek, Greek Capitals $\mapsto$ UPPERCASE)
-\LGR
-\`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
-\b{a} \c{a} \d{a}
-$\mapsto$ \MakeUppercase{%
-\`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
-\b{a} \c{a} \d{a}
-}
-
-\`{A} \'{A} \~{A} \"{A} \^{A} \={A} \H{A} \.{A} \r{A} \u{A} \v{A}
-\b{A} \c{A} \d{A}
-$\mapsto$ \MakeUppercase{%
-\`{A} \'{A} \~{A} \"{A} \^{A} \={A} \H{A} \.{A} \r{A} \u{A} \v{A}
-\b{A} \c{A} \d{A}
-}
+\begin{quote}
+ \`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
+ \b{a} \c{a} \d{a} \k{a}
+ $\mapsto$ \MakeUppercase{%
+ \`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
+ \b{a} \c{a} \d{a} \k{a}
+ }
+
+ \LGR
+ \`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
+ \b{a} \c{a} \d{a}
+ $\mapsto$ \MakeUppercase{%
+ \`{a} \'{a} \~{a} \"{a} \^{a} \={a} \H{a} \.{a} \r{a} \u{a} \v{a}
+ \b{a} \c{a} \d{a}
+ }
+
+ \`{A}\'{A}\~{A}\"{A} \^{A}\={A}\H{A}\.{A}\r{A}\u{A}\v{A}
+ \b{A} \c{A} \d{A}
+ $\mapsto$ \MakeUppercase{%
+ \`{A}\'{A}\~{A}\"{A} \^{A}\={A}\H{A}\.{A}\r{A}\u{A}\v{A}
+ \b{A} \c{A} \d{A}
+ }
+\end{quote}
\Latin
The comma-below (\verb|\k|) is not defined in LGR.
Additional Greek diacritics
-\LGR
-\<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w}
-$\mapsto$ \MakeUppercase{%
-\<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w}
-}
-
-% The dialytika is not used on Initial letters ("'I \"`I \~"I)
-\<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W}
-$\mapsto$ \MakeUppercase{%
-\<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W}
-}
+\begin{quote}
+ \LGR
+ \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w}
+ $\mapsto$ \MakeUppercase{%
+ \<{a} \>{e} \<\`{i} \'"i \`"i \~"i \`\>{h} \'<{o} \'>{o} \~\<{u} \~\>{w}
+ }
+
+ % The dialytika is not used on Initial letters ("'I \"`I \~"I)
+ \<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W}
+ $\mapsto$ \MakeUppercase{%
+ \<{A} \>{E} \<\`{I} \'"I \"`I \~"I \`\>{H} \'<{O} \'>{O} \~\<{U} \~\>{W}
+ }
+\end{quote}
\Latin Input variants and their conversion with MakeUppercase:%
@@ -308,7 +333,7 @@ $\mapsto$ \MakeUppercase{%
\MakeUppercase{
\~>a \>\~a \~\>{a}, \~<a \<\~a \<~a \~\<a \~<a,
\>\~{h} \~>h \>~h \>\~h \~>h \~>h|, \~<h \<\~h,
-\>\~i \~>i, \~<i \<\~i, \~"i \"\~i \"~i,\\
+\>\~i \~>i, \~<i \<\~i, \~"i \"\~i \\ % for \"~i, see below
\>\~u \~>u, \~<u \<\~u, \~"u \"\~u,
\>w, \<w, \>\~w \~>w, \~<w \<\~w.
}
@@ -329,57 +354,85 @@ $\mapsto$ \MakeUppercase{%
\end{quote}
-\Latin The tilde character can be used in combined accents.
+The tilde character can be used in combined accents.
However, in documents not defining the Babel language \emph{greek} or
\emph{polutonikogreek}, it will produce a
no-break space if converted with \verb|\MakeUppercase|:
+\begin{quote}
+ \LGR \"~i \<~i \"~u \<~u \`>u $\mapsto$
+ \LGR \MakeUppercase{\"~i \<~i \"~u \<~u \`>u}
+\end{quote}
+Use the tilde-accent macro:
+\LGR \"\~i \~"u $\mapsto$ \MakeUppercase{\"\~i \~"u}.
+
+\Latin
+Accents input via the Latin transliteration are not dropped with
+MakeUppercase, unless Babel is loaded and the current language is Greek
+(because the required local re-definitions of the \texttt{uccode} are done in
+\texttt{greek.ldf} from the \emph{babel-greek} package).
+
+\begin{quote} \LGR
+ ', ", `, >, <, | $\mapsto$ \MakeUppercase{', ", `, >, <, |}
+\end{quote}
-\LGR \"~i \<~i \"~u \<~u \`>u $\mapsto$
-\LGR \MakeUppercase{\"~i \<~i \"~u \<~u \`>u}
-\\
-\Latin Use the tilde-accent macro:
-\LGR "\~i \~"u $\mapsto$ \MakeUppercase{\"\~i \~"u}.
\Latin Accent macros can start with \verb|\a| instead of \verb|\| when the
short form is redefined, e.\,g. inside a \emph{tabbing} environment.
-This also works for the new-defined Dasia and Psili shortcuts:
-\LGR \a<\textalpha{} \a>\textomega.
+This also works for the locally defined Dasia and Psili shortcuts \verb|\<|
+and \verb|\>|:
+\begin{quote}
+ \begin{tabbing}
+ COL1\quad \= COL2\quad \= COL3\quad \= COL4\quad \\
+ COL1 \> \> COL3 \\
+ Viele \> Gr\a"u\ss e \> \LGR \a<\textalpha{} \> \LGR \a>\textomega
+ \end{tabbing}
+\end{quote}
+
\Latin Combinations with named accents:
\LGR \accdasia'a \accdasia`a \accdasia\~a.
\Latin The dialytika must be kept in UPPERCASE, e.\,g.
-% from http://diacritics.typo.cz/index.php?id=70 μαΐστρος -> ΜΑΪΣΤΡΟΣ.
-\LGR ma\"'istros $\mapsto$ \MakeUppercase{ma\"'istros}
-\Latin or % from teubner εὐζωΐα -> ΕΥΖΩΪΑ.
-\LGR e\>uzw\'"ia $\mapsto$ \MakeUppercase{e\>uzw\'"ia}.
-\Latin This is implemented for all input variants of diacritics with
+\begin{quote}
+ % from http://diacritics.typo.cz/index.php?id=70 μαΐστρος -> ΜΑΪΣΤΡΟΣ.
+ \LGR ma\"'istros $\mapsto$ \MakeUppercase{ma\"'istros}
+ \Latin or % from teubner εὐζωΐα -> ΕΥΖΩΪΑ.
+ \LGR e\>uzw\'"ia $\mapsto$ \MakeUppercase{e\>uzw\'"ia}.
+\end{quote}
+
+This is implemented for all input variants of diacritics with
dialytika:
-\LGR \"i \"'i \"`i \"\~i \"u \"'u \"`u \"\~u $\mapsto$
-\MakeUppercase{\"i \"'i \"`i \"\~i \"u \"'u \"`u \"\~u},
+\begin{quote}
+ \LGR \"i \"'i \"`i \"\~i \"u \"'u \"`u \"\~u $\mapsto$
+ \MakeUppercase{\"i \"'i \"`i \"\~i \"u \"'u \"`u \"\~u},
+\end{quote}
-\Latin
Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if
placed on the first vowel of a diphthong ({\LGR \'ai, \'au, \'ei}). A
dialytika must be placed on the second vowel if they are dropped: \LGR
(\MakeUppercase{\'ai, \'au, \'ei}).
-% from teubner: άυλος/ΑΫΛΟΣ
-\'aulos $\mapsto$ \MakeUppercase{\'aulos},
-\>'aulos $\mapsto$ \MakeUppercase{\>'aulos},
-% from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ
-m\'aina $\mapsto$ \MakeUppercase{m\'aina},
-% from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema
-% κέικ, ἀυπνία/αϋπνία
-k\'eik, $\mapsto$ \MakeUppercase{k\'eik}
-\>aupn\'ia $\mapsto$ \MakeUppercase{\>aupn\'ia}
+\begin{quote}
+ % from teubner: άυλος/ΑΫΛΟΣ
+ \'aulos $\mapsto$ \MakeUppercase{\'aulos},
+ \>'aulos $\mapsto$ \MakeUppercase{\>'aulos},
+ % from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ
+ m\'aina $\mapsto$ \MakeUppercase{m\'aina},
+ % from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema
+ % κέικ, ἀυπνία/αϋπνία
+ k\'eik, $\mapsto$ \MakeUppercase{k\'eik}
+ \>aupn\'ia $\mapsto$ \MakeUppercase{\>aupn\'ia}
+\end{quote}
+
+\newpage
\Latin Test the auto-hiatus feature for side-effects:
-\LGR \MakeUppercase{\'a b}: \Latin keep space after A.
+\LGR \MakeUppercase{\'a b} (\Latin must keep space after A).
+Kerning (see the input):
\LGR
\newcommand\md{\textcompwordmark}
\newcommand\MU{\MakeUppercase}