diff options
author | Karl Berry <karl@freefriends.org> | 2020-02-28 22:22:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-02-28 22:22:26 +0000 |
commit | 423f813bfe7f7b6f234d4484c70207c5c3c82822 (patch) | |
tree | ad4a500970fc439b9568ae04b137f38aa2ccbec9 /Master/texmf-dist/doc/latex/greek-fontenc/lgrenc-test.tex | |
parent | 4462e0ad2dc4b5e5ca7a4b5816157942b8148734 (diff) |
greek-fontenc (28feb20)
git-svn-id: svn://tug.org/texlive/trunk@53955 c570f23f-e606-0410-a88d-b1316a301751
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.tex | 84 |
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 |