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.tex84
1 files changed, 70 insertions, 14 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 e20786b0fdd..76425b1b1f1 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex
@@ -38,14 +38,21 @@
% With XeTeX/LuaTeX, use Unicode for Latin script:
-\ifdefined\luatexversion \usepackage{fontspec}\else
- \ifdefined\XeTeXrevision \usepackage{fontspec}\else
+% This is experimental. The general advise is not to mix fontenc and fontspec.
+% Problems:
+% * Letter µ missing in Latin Modern
+% * xunicode makes \nobreakspace font encoding specific -> provide default:
+\ifdefined\luatexversion
+ \usepackage{fontspec}
+ \DeclareTextCommand{\textmu}{EU2}{µ} % use MICRO SIGN
+\else
+ \ifdefined\XeTeXrevision
+ \usepackage{fontspec}
+ \DeclareTextCommand{\textmu}{EU1}{µ} % use MICRO SIGN
+ \else
\usepackage[utf8]{inputenc}
\fi
\fi
-% This is experimental. The general advise is not to mix fontenc and fontspec.
-% One problem is that xunicode makes \nobreakspace font encoding specific
-% We provide a default:
\DeclareTextCommandDefault{\nobreakspace}{\leavevmode\nobreak\ }
% PDF hyperlinks:
@@ -336,7 +343,7 @@ $\mapsto$ UPPERCASE)
\>\~i \~>i, \~<i \<\~i, \~"i \"\~i \"~i,\\
\>\~u \~>u, \~<u \<\~u, \~"u \"\~u,
\>w, \<w, \>\~w \~>w, \~<w \<\~w,
-a| a\ypogegrammeni{} A\ypogegrammeni{} A\prosgegrammeni{}.
+a| a\ypogegrammeni{}
\MakeUppercase{
\~>a \>\~a \~\>{a}, \~<a \<\~a \<~a \~\<a \~<a,
@@ -344,36 +351,85 @@ a| a\ypogegrammeni{} A\ypogegrammeni{} A\prosgegrammeni{}.
\>\~i \~>i, \~<i \<\~i, \~"i \"\~i \\ % for \"~i, see below
\>\~u \~>u, \~<u \<\~u, \~"u \"\~u,
\>w, \<w, \>\~w \~>w, \~<w \<\~w,
-a| a\ypogegrammeni{} A\ypogegrammeni{} A\prosgegrammeni{}.
+a| a\ypogegrammeni{}
}
\<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{}
\'<{\textomicron} \~<{\textupsilon} \~>{\textomega}
\<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{}
-\'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega}
+\'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega},
+\textalpha| \textalpha\ypogegrammeni{}
\\
\MakeUppercase{%
\<{\textalpha} \>{\textepsilon} \"'{\textiota} \`\>\texteta{}
\'<{\textomicron} \~<{\textupsilon} \~>{\textomega}
\<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{}
- \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega}
+ \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega},
+ \textalpha| \textalpha\ypogegrammeni{}
}
\<'A \<\'A \'<A \'\<A $\mapsto$ \MakeUppercase{\<'A \<\'A \'<A \'\<A}.
\end{quote}
+\Latin Input variants and their conversion with MakeLowercase:%
+
+\begin{quote}
+\LGR
+
+\~>A \>\~A \~\>{A}, \~<A \<\~A \~\<A \~<A,
+\>\~{H} \~>H \>\~H \~>H \~>H|, \~<H \<\~H,
+\>\~I \~>I, \~<I \<\~I
+\\
+\MakeLowercase{%
+ \~>A \>\~A \~\>{A}, \~<A \<\~A \~\<A \~<A,
+ \>\~{H} \~>H \>\~H \~>H \~>H|, \~<H \<\~H,
+ \>\~I \~>I, \~<I \<\~I
+}
+
+\~<U \<\~U,
+\>W, \<W, \>\~W \~>W, \~<W \<\~W,
+A| A\ypogegrammeni{} A\prosgegrammeni{}.
+\\
+\MakeLowercase{%
+ \~<U \<\~U,
+ \>W, \<W, \>\~W \~>W, \~<W \<\~W,
+ A| A\ypogegrammeni{} A\prosgegrammeni{}.
+}
+
+\<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{}
+\'<{\textomicron} \~<{\textupsilon} \~>{\textomega}
+\<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{}
+\'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega}
+\textAlpha| \textAlpha\ypogegrammeni{} \textAlpha\prosgegrammeni{}
+\\
+\MakeLowercase{%
+ \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`\>\texteta{}
+ \'<{\textomicron} \~<{\textupsilon} \~>{\textomega}
+ \<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{}
+ \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega}
+ \textAlpha| \textAlpha\ypogegrammeni{} \textAlpha\prosgegrammeni{}
+}
+
+ \<'A \<\'A \'<A \'\<A $\mapsto$ \MakeLowercase{\<'A \<\'A \'<A \'\<A}
+
+\end{quote}
+
The tilde character can be used in combined accents.
However, in documents not defining the Babel language \emph{greek} or
\emph{polutonikogreek}, better use the tilde-accent macro, as
-the tilde produces a no-break space if converted with \verb|\MakeUppercase|:
+the tilde produces a no-break space if converted with \verb|\MakeUppercase|
+or \verb|\MakeLowercase|:
\begin{quote}
- combined accent with tilde character:
+ combined accent with tilde character:\\
\LGR \"~i \<~i \"~u \<~u \`>u $\mapsto$
- \LGR \MakeUppercase{\"~i \<~i \"~u \<~u \`>u}
+ \LGR \MakeUppercase{\"~i \<~i \"~u \<~u \`>u}\\
+ \LGR \"~I \<~I \"~U \<~U \`>U $\mapsto$
+ \LGR \MakeLowercase{\"~I \<~I \"~U \<~U \`>U}
- \Latin combined accent with tilde-accent macro:
- \LGR \"\~i \~"u $\mapsto$ \MakeUppercase{\"\~i \~"u}
+ \Latin combined accent with tilde-accent macro:\\
+ \LGR \"\~i \~"u $\mapsto$ \MakeUppercase{\"\~i \~"u}\\
+ \LGR \"\~I \~"U $\mapsto$ \MakeLowercase{\"\~I \~"U}
\end{quote}
\Latin