diff options
author | Karl Berry <karl@freefriends.org> | 2013-09-10 22:48:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-09-10 22:48:58 +0000 |
commit | c5cc479c15bf8e651cda51eaa35db7446accd8d4 (patch) | |
tree | d1c7021e6250d864af8987f6194c6bcf4d131728 /Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex | |
parent | 820f2c8bfabd53d7bcb8b19398389a50141956cc (diff) |
babel-greek
git-svn-id: svn://tug.org/texlive/trunk@31625 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex | 83 |
1 files changed, 38 insertions, 45 deletions
diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex b/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex index c3a590c5dd9..9d830b937e4 100644 --- a/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex +++ b/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex @@ -4,24 +4,13 @@ \usepackage{parskip} \usepackage{fontspec} -\usepackage{libertineotf} - - -% The definitions in ``greek-euenc.def`` are done for the -% ``\LastDeclaredEncoding`` -% -% Currently, fontspec (actually xunicode called by fontspec) -% leaves ``\LastDeclaredEncoding`` at ``T3`` (tipa), because it inputs -% ``t3enc.def``. Therefore, you need to re-declare the -% "Experimental Unicode" encoding: - -\ifdefined\XeTeXrevision - \usepackage[EU1]{fontenc} -\fi -\ifdefined\luatexversion - \usepackage[EU2]{fontenc} -\fi +% \usepackage{libertineotf} +\setmainfont{Linux Libertine O} +\setsansfont{Linux Biolinum O} +% \setmainfont{DejaVu Serif} +% Declare the font encoding and Greek LICR definitions: +\usepackage{greek-fontenc} \usepackage[greek,english]{babel} \languageattribute{greek}{polutoniko} @@ -39,18 +28,20 @@ defined in the file ``greek.ldf'' (source ``greek.dtx''). Typesetting Greek texts requires a font containing Greek letters. With the XeTeX or LuaTeX engines, the user should ensure that the choosen font contains the required glyphs (the default Latin Modern fonts miss them). -Examples for suitable fonts are the ``Deja Vu'' or the ``Linux Libertine'' -OpenType fonts. +Examples for suitable fonts are the ``Deja Vu'', ``Linux Libertine'', or +``Free Serif'' OpenType fonts. \section{Language Switch} The declaration \verb|\selectlanguage| switches between languages. -\selectlanguage{greek} -Ὁ Σύλλογος Ἑλλήνων Φίλων τοῦ TeX, γνωστὸς καὶ ὡς -«Ἕλληνες Φίλοι τοῦ \TeX» (ΕΦΤ γιὰ συντομία) ἀποτελεῖ τὴν ἐπίσημη Τοπικὴ Ὁμάδα -τοῦ \TeX{} ἢ τὸ ἑλληνικὸ \TeX{} LUG (Local Users Group). -\selectlanguage{english} + +\begin{quote} + \selectlanguage{greek} + Τί φήις; ̔Ιδὼν ἐνθέδε παῖδ’ ἐλευθέραν + τὰς πλησίον Νύμφας στεφανοῦσαν, Σώστρατε, + ἐρῶν άπῆλθες εὐθύς; +\end{quote} The macro \verb|\foreignlanguage| sets its second argument in the specified language. This is intended for short text parts like @@ -61,16 +52,18 @@ language. This is intended for short text parts like In Greek text parts, the font encoding is automatically set to LGR if an 8-bit TeX engine is used. With XeTeX or LuaTeX, the macros \verb|\greektext| and \verb|\textgreek| don't change the font encoding. -Latin characters can be used also in Greek text parts. -Input via the Latin transcription defined in LGR is not possible.% +Latin characters can be used in Greek text parts, +input via the Latin transcription defined in LGR is not possible.% \footnote{% The \emph{xunicode} package provides with the \texttt{tipa} emulation an example how this could be achieved if really required. } -\greektext Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) -- -\latintext Friends (\textgreek{F\'ilwn}) of TeX. - +\begin{quote} + \greektext Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) -- + \latintext Friends (\textgreek{F\'ilwn}) of TeX.% + \footnote{Compare the printout to the similar example in test-greek.pdf.} +\end{quote} \section{MakeUppercase, MakeLowercase} @@ -80,10 +73,9 @@ the left (instead of above) and drop them in uppercase, e.g. Tonos and dasia mark a \emph{hiatus} (break-up of a diphthong) if placed on the first vowel of a diphtong ((άι, άυ, έι, ἄι, ἄυ, ἔι). A dialytika must be -placed on the second vowel if they are dropped: -(\foreignlanguage{greek}{\MakeUppercase{άι, άυ, έι, ἄι, ἄυ, ἔι}}). This does -not work (yet?) with Unicode literals. (See section «hiatus» below for a -test with LICR macros.) +placed on the second vowel if they are dropped. This does not work (yet?) +with Unicode literals (\foreignlanguage{greek}{\MakeUppercase{άι, άυ, έι, +ἄι, ἄυ, ἔι}}). (See section «hiatus» below for a test with LICR macros.) The following subsections test MakeUppercase and MakeLowercase with all characters defined in lgrenc.dfu: @@ -112,8 +104,9 @@ MakeUppercase: Letters upcased, diacritics except dialytika dropped. OK. Ϡ (Sampi) $\mapsto$ \MakeUppercase{Ϡ} (Kappa) and -ϡ (sampi) $\mapsto$ \MakeUppercase{ϡ} (Rho) seems a bug -(in Xe/LuaTeX or xgreek?). +ϡ (sampi) $\mapsto$ \MakeUppercase{ϡ} (Rho) is a bug +in xgreek-fixes.def from the polyglossia package. +% This is fixed in xgreek.sty and reported to the polyglossia author. MakeLowercase: @@ -148,7 +141,7 @@ Characters of the Greek extended Unicode block: ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ \\ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ \\ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` \\ - ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ + ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ \selectlanguage{english} MakeUppercase: @@ -213,14 +206,14 @@ The «hiatus» feature works with macro input: % from teubner: άυλος/ΑΫΛΟΣ \acctonos\textalpha\textupsilon λος $\mapsto$ \MakeUppercase{\acctonos\textalpha\textupsilon λος}, -\>'\textalpha\textupsilon λος $\mapsto$ +\>'\textalpha\textupsilon λος $\mapsto$ \MakeUppercase{\>'\textalpha\textupsilon λος}, % from http://diacritics.typo.cz/index.php?id=69 μάινα -> ΜΑΪΝΑ -m\acctonos\textalpha\textiota να $\mapsto$ +m\acctonos\textalpha\textiota να $\mapsto$ \MakeUppercase{m\acctonos\textalpha\textiota να}, % from http://de.wikipedia.org/wiki/Neugriechische_Orthographie#Das_Trema % κέικ, ἀυπνία/αϋπνία -\textkappa\acctonos\textepsilon\textiota\textkappa $\mapsto$ +\textkappa\acctonos\textepsilon\textiota\textkappa $\mapsto$ \MakeUppercase{\textkappa\acctonos\textepsilon\textiota\textkappa}, \>\textalpha\textupsilon πνία $\mapsto$ \MakeUppercase{\>\textalpha\textupsilon πνία}. @@ -320,16 +313,16 @@ Enumerated lists use Greek characters/numerals in the second and fourth level. \selectlanguage{greek} \begin{enumerate} - \item $\leftarrow$ 1 + \item item 1 \begin{enumerate} - \item $\leftarrow$ 1.1 + \item item 1.1 \begin{enumerate} - \item $\leftarrow$ 1.1.1 + \item item 1.1.1 \begin{enumerate} - \item $\leftarrow$ 1.1.1.1 - \item $\leftarrow$ 1.1.1.2 + \item item 1.1.1.1 + \item item 1.1.1.2 \end{enumerate} - \item $\leftarrow$ 1.1.2 + \item item 1.1.2 \end{enumerate} \end{enumerate} \end{enumerate} |