summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex')
-rw-r--r--Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex273
1 files changed, 172 insertions, 101 deletions
diff --git a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex
index b0a144c0be4..011fd13e052 100644
--- a/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex
+++ b/Master/texmf-dist/doc/latex/lgrx/greek-unicode.tex
@@ -1,52 +1,64 @@
-\documentclass[a4]{article}
+\documentclass[a4paper]{article}
\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader
\usepackage[LGRx,T2A, T1]{fontenc}
\usepackage[utf8]{inputenc}
+% \usepackage{textcomp}
+\usepackage{hyperref,bookmark}
\usepackage{parskip}
\usepackage{booktabs}
-% \usepackage{textcomp}
\usepackage{lmodern}
% \usepackage{kerkis}
% \usepackage{gfsdidot}
-
\newcommand{\LGR}{\fontencoding{LGR}\selectfont}
\newcommand{\Latin}{\fontencoding{T1}\selectfont}
+\providecommand*{\textgreek}[1]{{\fontencoding{LGR}\selectfont #1}}
-\pagestyle{empty}
-% \enlargethispage{1em}
\begin{document}
-\subsection*{Greek Unicode with \texttt{lgrenc.dfu}}
+\section*{Greek Unicode with \texttt{lgrenc.dfu}}
The definitions in \texttt{lgrenc.dfu} provide standards-compatible UTF-8
support for Greek based on the extended font encoding definitions in
\texttt{lgrxenc.def}.
Like other \emph{inputenc} Unicode definitions, they only work for text
-in the correct font encoding (in this case LGR).
-% e.g. Π produces:
+in the correct font encoding (in this case LGR).
+% e.g. Π produces:
% ! LaTeX Error: Command \textPi unavailable in encoding T1.
% just like Ж produces:
% ! LaTeX Error: Command \CYRZH unavailable in encoding T1.
%
-The font encoding is automatically set to LGR by the babel-languages
+The font encoding is automatically set to LGR by babel for the languages
\emph{greek} and \emph{polutonikogreek}.
-Combined with the accompanying package \texttt{textalpha.sty}, Greek Unicode
-characters can be used without explicite language or font-encoding change --
-with some limitations (kerning, MakeUppercase/MakeLowercase, multiple
-accents) described in \texttt{textalpha-test}.
+With the combination
+%
+\begin{verbatim}
+ \usepackage[utf8]{inputenc}
+ \usepackage{textalpha}
+\end{verbatim}
+%
+Greek Unicode literals can be used in text with any font encoding (with some
+limitations to kerning, MakeUppercase/MakeLowercase and multiple accents,
+described in \texttt{textalpha-test}).
-\Latin
-\subsubsection*{Greek and Coptic}
+
+\section{Supported Characters}
+
+Unicode definitions exist for all non-ASCII characters that can be rendered
+with an LGR-encoded font.
+
+\subsection{Greek and Coptic}
+
+\Latin legend: * glyph missing in LGR, · Unicode point not defined
\LGR
\begin{tabular}{rrrrrrrrrrrrrrrrr}
\toprule
-& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 &
+& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 &
\Latin A & \Latin B & \Latin C & \Latin D & \Latin E & \Latin F\\
\midrule
\Latin 370 & * & * & * & * & ʹ & ͵ & * & * & · & · & ͺ & * & * & * & ; & \\
@@ -61,9 +73,7 @@ accents) described in \texttt{textalpha-test}.
\bottomrule
\end{tabular}
-\Latin * glyph missing in LGR, · Unicode point not defined
-
-\subsubsection*{Greek Extended}
+\subsection{Greek Extended}
\LGR
\begin{tabular}{rrrrrrrrrrrrrrrrr}
@@ -72,13 +82,13 @@ accents) described in \texttt{textalpha-test}.
\Latin A & \Latin B & \Latin C & \Latin D & \Latin E & \Latin F\\
\midrule
\Latin 1F00 & ἀ & ἁ & ἂ & ἃ & ἄ & ἅ & ἆ & ἇ & Ἀ & Ἁ & Ἂ & Ἃ & Ἄ & Ἅ & Ἆ & Ἇ\\
- \Latin 1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & · & · & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & · & \\
+ \Latin 1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & · & · & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & · & ·\\
\Latin 1F20 & ἠ & ἡ & ἢ & ἣ & ἤ & ἥ & ἦ & ἧ & Ἠ & Ἡ & Ἢ & Ἣ & Ἤ & Ἥ & Ἦ & Ἧ\\
\Latin 1F30 & ἰ & ἱ & ἲ & ἳ & ἴ & ἵ & ἶ & ἷ & Ἰ & Ἱ & Ἲ & Ἳ & Ἴ & Ἵ & Ἶ & Ἷ\\
- \Latin 1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & · & · & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & · & \\
+ \Latin 1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & · & · & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & · & ·\\
\Latin 1F50 & ὐ & ὑ & ὒ & ὓ & ὔ & ὕ & ὖ & ὗ & · & Ὑ & · & Ὓ & · & Ὕ & · & Ὗ\\
\Latin 1F60 & ὠ & ὡ & ὢ & ὣ & ὤ & ὥ & ὦ & ὧ & Ὠ & Ὡ & Ὢ & Ὣ & Ὤ & Ὥ & Ὦ & Ὧ\\
- \Latin 1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & · & \\
+ \Latin 1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & · & ·\\
\Latin 1F80 & ᾀ & ᾁ & ᾂ & ᾃ & ᾄ & ᾅ & ᾆ & ᾇ & ᾈ & ᾉ & ᾊ & ᾋ & ᾌ & ᾍ & ᾎ & ᾏ\\
\Latin 1F90 & ᾐ & ᾑ & ᾒ & ᾓ & ᾔ & ᾕ & ᾖ & ᾗ & ᾘ & ᾙ & ᾚ & ᾛ & ᾜ & ᾝ & ᾞ & ᾟ\\
\Latin 1FA0 & ᾠ & ᾡ & ᾢ & ᾣ & ᾤ & ᾥ & ᾦ & ᾧ & ᾨ & ᾩ & ᾪ & ᾫ & ᾬ & ᾭ & ᾮ & ᾯ\\
@@ -86,101 +96,126 @@ accents) described in \texttt{textalpha-test}.
\Latin 1Fc0 & ῀ & ῁ & ῂ & ῃ & ῄ & · & ῆ & ῇ & Ὲ & Έ & Ὴ & Ή & ῌ & ῍ & ῎ & ῏\\
\Latin 1FD0 & ῐ & ῑ & ῒ & ΐ & · & · & ῖ & ῗ & Ῐ & Ῑ & Ὶ & Ί & · & ῝ & ῞ & ῟\\
\Latin 1FE0 & ῠ & ῡ & ῢ & ΰ & ῤ & ῥ & ῦ & ῧ & Ῠ & Ῡ & Ὺ & Ύ & Ῥ & ῭ & ΅ & `\\
- \Latin 1FF0 & · & · & ῲ & ῳ & ῴ & · & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & \\
+ \Latin 1FF0 & · & · & ῲ & ῳ & ῴ & · & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & ·\\
\bottomrule
\end{tabular}
+\Latin
-\subsubsection*{Other Unicode Blocks}
+\subsection{Other Unicode Blocks}
-\Latin Latin-1 Supplement: \LGR ¨ « ¯ ´ · »
+Latin-1 Supplement: \textgreek{¨ « ¯ ´ · »}
-\Latin IPA Extensions: \LGR ə
+IPA Extensions: \textgreek{ə}
-\Latin Spacing Modifier Letters: \LGR ˘a % breve
+Spacing Modifier Letters: \textgreek{˘a} (here followed by letter alpha)
-\Latin General Punctuation: ZWNJ\footnote{zero width no joiner}:
- \LGR A‌‌U ({\Latin comp.} AU) – — ‘ ’ ‰
+General Punctuation: \textgreek{– — ‘ ’ ‰} ZWNJ (zero width no joiner,
+prevents kerning and ligatures, e.g. \textgreek{A‌‌U} vs. \textgreek{AU} and
+\textgreek{'‌a} vs. \textgreek{'a})
-\Latin Currency Symbols: \LGR €
+Currency Symbols: \textgreek{€}
-% TODO: define this (as it looks like) or not (as it is not the same)?
-% \Latin Letterlike Symbols: \LGR Ω
+Letterlike Symbols: \textgreek{Ω} % OHM SIGN, preferred representation is 03A9
-\Latin Ancient Greek Numbers:
-\LGR
-𐅄 % \textPiDelta{} % GREEK ACROPHONIC ATTIC FIFTY
-𐅅 % \textPiEta{} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-𐅆 % \textPiChi{} % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+\Latin Ancient Greek Numbers:
+\LGR
+𐅄 % \textPiDelta{} % GREEK ACROPHONIC ATTIC FIFTY
+𐅅 % \textPiEta{} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+𐅆 % \textPiChi{} % GREEK ACROPHONIC ATTIC FIVE THOUSAND
𐅇 % \textPiMu{} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
\Latin
-\subsubsection*{MakeUppercase, MakeLowercase}
-
-Other Unicode Blocks
-
-\LGR
-\MakeUppercase{¨ « ¯ ´ · »} \MakeLowercase{¨ « ¯ ´ · »}
-
-\MakeUppercase{ə} \MakeLowercase{ə}
-
-\MakeUppercase{˘a } \MakeLowercase{˘a }
-
-\MakeUppercase{AU ($\ne$ A‌‌U) – — ‘ ’ ‰}
-\MakeLowercase{AU ($\ne$ A‌‌U) – — ‘ ’ ‰}
-
-\MakeUppercase{€} \MakeLowercase{€}
-
-% \MakeUppercase{Ω} \MakeLowercase{Ω}
-
-\MakeUppercase{
-𐅄 % GREEK ACROPHONIC ATTIC FIFTY
-𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-} \MakeLowercase{
-𐅄 % GREEK ACROPHONIC ATTIC FIFTY
-𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-}
-
-
-\Latin Greek and Coptic
-
-\LGR
-\MakeUppercase{ ʹ ͵ ͺ ; }\\
-\MakeUppercase{ ΄ ΅ Ά · Έ Ή Ί Ό Ύ Ώ }\\
-\MakeUppercase{ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο }\\
-\MakeUppercase{ Π Ρ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί }\\
-\MakeUppercase{ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο }\\
-\MakeUppercase{ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ }\\
-\MakeUppercase{ Ϙ ϙ Ϛ ϛ Ϝ ϝ ϟ }\\
-\MakeUppercase{ Ϡ ϡ }\\
-\MakeUppercase{ }
-
-
-\MakeLowercase{ ʹ ͵ ͺ ; }\\
-\MakeLowercase{ ΄ ΅ Ά · Έ Ή Ί Ό Ύ Ώ }\\
-\MakeLowercase{ ΐ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο }\\
-\MakeLowercase{ Π Ρ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ ά έ ή ί }\\
-\MakeLowercase{ ΰ α β γ δ ε ζ η θ ι κ λ μ ν ξ ο }\\
-\MakeLowercase{ π ρ ς σ τ υ φ χ ψ ω ϊ ϋ ό ύ ώ }\\
-\MakeLowercase{ Ϙ ϙ Ϛ ϛ Ϝ ϝ ϟ }\\
-\MakeLowercase{ Ϡ ϡ }\\
-\MakeLowercase{ }
-
-\Latin The lowercase of {\LGR Σ} is the «auto-sigma»:
-\LGR Σ $\mapsto$ \MakeLowercase{Σ}, ΣΤ $\mapsto$ \MakeLowercase{ΣΤ}.
-\Latin Add a ZWNJ or use the \verb+\noboundary+ macro to prevent
- conversion to final sigma:
-\LGR \MakeLowercase{Σ‌ \textSigma\noboundary}.
-\Latin The lowercase of {\LGR Ϛ} is {\LGR\MakeLowercase{Ϛ}}.
+\section{MakeUppercase, MakeLowercase}
+
+Capital Greek letters have diacritics (except the dialytika) to the left
+(instead of above) and drop them in uppercase, e.g.
+\textgreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}.
+
+Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if placed on
+the first vowel of the diphthong (\textgreek{άι, άυ, έι}). A dialytika must
+be placed on the second vowel if they are dropped
+(\textgreek{\MakeUppercase{\'ai, \'au, \'ei}}).
+% this does not work, see below: (\textgreek{\MakeUppercase{άι, άυ, έι}})
+
+The auto-hiatus feature in lgrxend.def works nice with the Latin
+transcription and with character-macros (%
+\textgreek{\MakeUppercase{%
+ \'ai,
+ \'\textalpha \textupsilon,
+ \'\textepsilon \textiota
+}})
+and also if the first character is wrapped in \verb+\TextGreek+ (as done by
+the lgrenc.dfu definition for accented characters) or a literal Unicode
+character
+(\textgreek{\MakeUppercase{%
+ \TextGreek{\'\textalpha}\textiota,
+ ά\textiota
+}})
+but not if the second character of the diphthong is a Unicode literal
+(\textgreek{\MakeUppercase{%
+ \'\textalpha ι,
+ άυ,
+ \'\textepsilon ι
+}}).
+
+% Therefore, the diaresis is missing in the following examples:
+% \textgreek{άυλος $\mapsto$ \MakeUppercase{άυλος},
+% ἄυλος $\mapsto$ \MakeUppercase{ἄυλος},
+% μάινα $\mapsto$ \MakeUppercase{μάινα},
+% κέικ, $\mapsto$ \MakeUppercase{κέικ},
+% ἀυπνία $\mapsto$ \MakeUppercase{ἀυπνία}}.
+
+Fixing this shortcoming requires knowledge of what the
+\verb+\LGR@ifnextchar+ ``sees'' when the next character is an upcased
+Unicode literal.
+
+As an ugly workaround, use \verb+\textiota+ rsp. \verb+\textupsilon+
+for the character that should get the diaresis:
+\textgreek{ἀ\textupsilon{}πνία $\mapsto$ \MakeUppercase{ἀ\textupsilon{}πνία}}.
+
+
+The following subsections test MakeUppercase and MakeLowercase with all
+characters defined in lgrenc.dfu:
+
+\subsection{Greek and Coptic}
+
+\newcommand{\GreekAndCoptic}{ʹ͵ͺ; ΄ ΅ Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϘϚϜϠ}
+\newcommand{\greekandcoptic}{άέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϙϛϝϟϡ}
+
+Characters of the Greek and Coptic Unicode Block:
+
+\begin{quote}
+ \textgreek{\GreekAndCoptic}\\
+ \textgreek{\greekandcoptic}
+\end{quote}
+
+Tonos dropped with MakeUppercase:
+
+\begin{quote}
+ \textgreek{\MakeUppercase{\GreekAndCoptic}}\\
+ \textgreek{\MakeUppercase{\greekandcoptic}}
+\end{quote}
+
+MakeLowercase:
+
+\begin{quote}
+ \textgreek{\MakeLowercase{\GreekAndCoptic}}\\
+ \textgreek{\MakeLowercase{\greekandcoptic}}
+\end{quote}
+
+The lowercase of {\LGR Σ} is the «auto-sigma»: \textgreek{ΤΣ $\mapsto$
+\MakeLowercase{ΤΣ}, ΣΤ $\mapsto$ \MakeLowercase{ΣΤ}}. Add a ZWNJ or use the
+\verb+\noboundary+ macro to prevent conversion to final sigma:
+\textgreek{\MakeLowercase{ΤΣ‌}}. The lowercase of
+\textgreek{Ϛ} is \textgreek{\MakeLowercase{Ϛ}}.
\newpage
-\Latin Greek extended
+\subsection{Greek extended}
+
+MakeUppercase:
\LGR
\MakeUppercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\
@@ -200,6 +235,7 @@ Other Unicode Blocks
\MakeUppercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\
\MakeUppercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ }
+MakeLowercase:
\MakeLowercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\
\MakeLowercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\
@@ -217,11 +253,47 @@ Other Unicode Blocks
\MakeLowercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\
\MakeLowercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\
\MakeLowercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ }
+\Latin
+
+\subsection{Other Unicode Blocks}
+
+MakeUppercase works without effect on non-letter symbols and the letter shwa:
+
+\LGR
+\MakeUppercase{¨ « ¯ ´ · »}
+\MakeUppercase{ə}
+\MakeUppercase{˘a}
+\MakeUppercase{– — ‘ ’ ‰ a‌u}
+\MakeUppercase{€}
+% \MakeUppercase{Ω}
+\MakeUppercase{
+𐅄 % GREEK ACROPHONIC ATTIC FIFTY
+𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+}
+
+\Latin
+MakeLowercase works without effect on non-letter symbols, too:
+
+\LGR
+\MakeLowercase{¨ « ¯ ´ · »}
+\MakeLowercase{ə}
+\MakeLowercase{˘A}
+\MakeLowercase{– — ‘ ’ ‰ A‌‌U}
+\MakeLowercase{€}
+% \MakeLowercase{Ω}
+\MakeLowercase{
+𐅄 % GREEK ACROPHONIC ATTIC FIFTY
+𐅅 % GREEK ACROPHONIC ATTIC FIVE HUNDRED
+𐅆 % GREEK ACROPHONIC ATTIC FIVE THOUSAND
+𐅇 % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+}
\end{document}
-Problems with text-extraction from PDF with Kerkis:
+Problems with text-extraction from PDF with Kerkis:
0 1 2 3 4 5 6 7 8 9 A B C D E F
370 * * * * ΄ ͵ * * ι * * * ;
@@ -259,4 +331,3 @@ and GFS Didot:
3∆0 * * * * * * * * Ϛ Ϝ Ϝ * Ϟ
3Ε0 * * * * * * * * * * * * * *
3Φ0 * * * * * * * * * * * * * * * *
-