From d6f69adcdd2a4f41183336025041848a5dee6398 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 Jun 2013 23:45:45 +0000 Subject: babel-greek (24jun13) git-svn-id: svn://tug.org/texlive/trunk@30912 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/babel-greek/README | 56 +++- .../texmf-dist/doc/generic/babel-greek/README.html | 77 +++-- .../texmf-dist/doc/generic/babel-greek/greek.pdf | Bin 206574 -> 208265 bytes .../doc/generic/babel-greek/test-greek.pdf | Bin 0 -> 187861 bytes .../doc/generic/babel-greek/test-greek.tex | 332 +++++++++++++++++++++ .../doc/generic/babel-greek/test-unicode-greek.pdf | Bin 0 -> 47917 bytes .../doc/generic/babel-greek/test-unicode-greek.tex | 306 +++++++++++++++++++ .../texmf-dist/doc/generic/babel-greek/usage.pdf | Bin 172121 -> 172121 bytes .../texmf-dist/doc/generic/babel-greek/usage.tex | 2 +- 9 files changed, 742 insertions(+), 31 deletions(-) create mode 100644 Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf create mode 100644 Master/texmf-dist/doc/generic/babel-greek/test-greek.tex create mode 100644 Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.pdf create mode 100644 Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex (limited to 'Master/texmf-dist/doc/generic') diff --git a/Master/texmf-dist/doc/generic/babel-greek/README b/Master/texmf-dist/doc/generic/babel-greek/README index 6cead21490d..ee2b1a991f7 100644 --- a/Master/texmf-dist/doc/generic/babel-greek/README +++ b/Master/texmf-dist/doc/generic/babel-greek/README @@ -17,23 +17,42 @@ In 1997, Apostolos Syropoulos added support for the Greek language to the "babel" package. The file ``greek.ldf`` provides options for monotonic (single-diacritic) and polytonic (multiple-diacritic) modes of writing. -Currently, it only works with LaTeX and 8-bit TeX engines. Users of the -XeTeX and LuaTeX engines are advised to use the polyglossia_ package -instead. +There is now partial support for Unicode-aware TeX engines (XeTeX/LuaTeX). +However, users of the XeTeX and LuaTeX engines are advised to use the +polyglossia_ package. News ---- -:2013-05-17: * New maintainer. - * The encoding definition file ``lgrenc.def`` moved to the - greek-fontenc_ package. +.. class:: borderless + +===== ========== =========================================================== +1.4 2013-05-17 New maintainer. +.. The encoding definition file ``lgrenc.def`` moved to the + greek-fontenc_ package. + +1.5 2013-06-21 bugfixes and cleanup, +.. LICR macros in string definitions, +.. LGR font encoding not used with XeTeX/LuaTeX, +.. input "xgreek-fixes.def" from polyglossia_ with Xe/LuaTeX. +===== ========== =========================================================== + Requirements ------------ -The "babel-greek" package requires the babel_ base package, `Greek text -fonts`_ in the LGR encoding, and the encoding definition file ``lgrenc.def`` -from the greek-fontenc_ package. +Typesetting Greek texts requires a `font containing Greek glyphs`__. + +The "babel-greek" package requires the babel_ base package. `Greek text +fonts`_ in the LGR encoding and the encoding definition file ``lgrenc.def`` +from the greek-fontenc_ package are required with 8-bit TeX engines. + +For correct up/downcasing with XeTeX/LuaTeX, the file ``xgreek-fixes.def`` +from polyglossia_ is required. + +"plain" TeX is currently not supported. Patches are welcome. + +__ http://www.ctan.org/topic/font-greek Installation @@ -58,20 +77,30 @@ Otherwise, make sure LaTeX can find the required files: Usage ----- -Pass the "greek" or "polutonikogreek" options to babel:: +Pass the "greek" option to babel:: \usepackage[greek]{babel} +For polytonic greek, set the language attribute "polutoniko":: + + \languageattribute{greek}{polutoniko} + For details see ``_, ``_ and the babel_ documentation. Literal input of Greek characters is possible with the greek-inputenc_ -package. +package and XeTeX/LuaTeX. Greek text fonts ---------------- +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 CM-unicode_ or the `Linux +Libertine`_ OpenType fonts as well as any system-wide installed OTF fonts +that support Greek (e.g. `Deja Vu`_). + The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. Fonts in this encoding include the `CB fonts`_ (matching CM), +8-bit LaTeX. Fonts in this encoding include the `CB fonts`_ (matching CM), grtimes_ (Greek Times), Kerkis_ (matching URW Bookman), and the `GFS font collection`_. Setup of these fonts as Greek variant to matching Latin fonts is facilitated by the substitutefont_ package. @@ -97,11 +126,14 @@ font-encoding comprising Latin and Greek like the hypothetic T7 or Unicode .. _babel: http://www.ctan.org/pkg/babel .. _fontspec: http://www.ctan.org/pkg/fontspec .. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete +.. _CM-unicode: http://www.ctan.org/pkg/cm-unicode +.. _Deja Vu: http://dejavu-fonts.org .. _grtimes: http://www.ctan.org/pkg/grtimes .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc .. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc .. _GFS font collection: http://www.ctan.org/pkg/gfs .. _Kerkis: http://www.ctan.org/pkg/kerkis .. _lgrx: http://www.ctan.org/pkg/lgrx +.. _Linux Libertine: http://www.ctan.org/pkg/libertine .. _polyglossia: http://www.ctan.org/pkg/polyglossia .. _substitutefont: http://www.ctan.org/pkg/substitutefont diff --git a/Master/texmf-dist/doc/generic/babel-greek/README.html b/Master/texmf-dist/doc/generic/babel-greek/README.html index a278d42b4e8..680be11a675 100644 --- a/Master/texmf-dist/doc/generic/babel-greek/README.html +++ b/Master/texmf-dist/doc/generic/babel-greek/README.html @@ -32,26 +32,59 @@ Greek language and script via the greek.ldf provides options for monotonic (single-diacritic) and polytonic (multiple-diacritic) modes of writing.

-

Currently, it only works with LaTeX and 8-bit TeX engines. Users of the -XeTeX and LuaTeX engines are advised to use the polyglossia package -instead.

+

There is now partial support for Unicode-aware TeX engines (XeTeX/LuaTeX). +However, users of the XeTeX and LuaTeX engines are advised to use the +polyglossia package.

News

-
-
2013-05-17
-
    -
  • New maintainer.

  • -
  • The encoding definition file lgrenc.def moved to the -greek-fontenc package.

  • -
-
-
+ +++++ + + + + + + + + + + + + + + + + + + + + + + + + + + +

1.4

2013-05-17

New maintainer.

+ 

The encoding definition file lgrenc.def moved to the +greek-fontenc package.

1.5

2013-06-21

bugfixes and cleanup,

+ 

LICR macros in string definitions,

+ 

LGR font encoding not used with XeTeX/LuaTeX,

+ 

input “xgreek-fixes.def” from polyglossia with Xe/LuaTeX.

Requirements

-

The “babel-greek” package requires the babel base package, Greek text -fonts in the LGR encoding, and the encoding definition file lgrenc.def -from the greek-fontenc package.

+

Typesetting Greek texts requires a font containing Greek glyphs.

+

The “babel-greek” package requires the babel base package. Greek text +fonts in the LGR encoding and the encoding definition file lgrenc.def +from the greek-fontenc package are required with 8-bit TeX engines.

+

For correct up/downcasing with XeTeX/LuaTeX, the file xgreek-fixes.def +from polyglossia is required.

+

“plain” TeX is currently not supported. Patches are welcome.

Installation

@@ -69,17 +102,25 @@ ending in .dtx through LaTeX.

Usage

-

Pass the “greek” or “polutonikogreek” options to babel:

+

Pass the “greek” option to babel:

\usepackage[greek]{babel}
 
+

For polytonic greek, set the language attribute “polutoniko”:

+
\languageattribute{greek}{polutoniko}
+

For details see usage.pdf, greek.pdf and the babel documentation. Literal input of Greek characters is possible with the greek-inputenc -package.

+package and XeTeX/LuaTeX.

Greek text fonts

+

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 CM-unicode or the Linux +Libertine OpenType fonts as well as any system-wide installed OTF fonts +that support Greek (e.g. Deja Vu).

The LGR font encoding is the de-facto standard for typesetting Greek with -(8-bit) LaTeX. Fonts in this encoding include the CB fonts (matching CM), +8-bit LaTeX. Fonts in this encoding include the CB fonts (matching CM), grtimes (Greek Times), Kerkis (matching URW Bookman), and the GFS font collection. Setup of these fonts as Greek variant to matching Latin fonts is facilitated by the substitutefont package.

diff --git a/Master/texmf-dist/doc/generic/babel-greek/greek.pdf b/Master/texmf-dist/doc/generic/babel-greek/greek.pdf index ad572570849..5ea9214b5fb 100644 Binary files a/Master/texmf-dist/doc/generic/babel-greek/greek.pdf and b/Master/texmf-dist/doc/generic/babel-greek/greek.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf new file mode 100644 index 00000000000..1acf4b34c40 Binary files /dev/null and b/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex b/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex new file mode 100644 index 00000000000..fff605eb988 --- /dev/null +++ b/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex @@ -0,0 +1,332 @@ +\documentclass[a4paper]{article} +\usepackage{cmap} % fix search and cut-and-paste in Acrobat Reader +\usepackage[LGR,T1]{fontenc} +\usepackage[utf8]{inputenc} +% \usepackage{textalpha} +\usepackage{textcomp} +\usepackage{hyperref,bookmark} +\usepackage{parskip} +\usepackage{booktabs} + +\usepackage{lmodern} +% \usepackage{kerkis} +% \usepackage{gfsdidot} + +\usepackage[greek,english]{babel} +% \languageattribute{greek}{polutoniko} + +\DeclareTextCommandDefault{\ensuregreek}{\textgreek} + +\begin{document} + +% \message{Latin encoding is \latinencoding} + +\section*{Test the Greek support for Babel} + +The babel option ``greek'' activates the support for the Greek language +defined in the file ``greek.ldf'' (source ``greek.dtx''). + +\section{Language Switch} + +The declaration \verb|\selectlanguage| switches between languages. + +\selectlanguage{greek} +Ὁ Σύλλογος Ἑλλήνων Φίλων τοῦ TeX, γνωστὸς καὶ ὡς +«Ἕλληνες Φίλοι τοῦ \TeX» (ΕΦΤ γιὰ συντομία) ἀποτελεῖ τὴν ἐπίσημη Τοπικὴ Ὁμάδα +τοῦ \TeX{} ἢ τὸ ἑλληνικὸ \textlatin{\TeX{} LUG (Local Users Group)}. +\selectlanguage{english} + +The macro \verb|\foreignlanguage| sets its second argument in the specified +language. This is intended for short text parts like +\foreignlanguage{greek}{Βιβλιοθήκη}. + +\section{Font Encoding} + +In Greek text parts, the font encoding is automatically set to LGR if an +8-bit TeX engine is used. (See test-unicode-greek.tex for usage of +babel-greek with XeTeX or LuaTeX.) + +LGR has Greek characters in the slots reserved in a TeX \emph{standard text +font encoding}. This means you need an explicit font encoding change for +every Latin letter and some other symbols if the current font encoding is +LGR. + +Switching between Latin and Greek script/font encoding is possible without +switching the Babel language using the declarations \verb|\latintext|, +\verb|\greektext| and the macros \verb|\textlatin|, \verb|\textgreek|. These +commands do not start a new paragraph: + +\greektext Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) -- +\latintext Friends (\textgreek{F\'ilwn}) of TeX. + +``greek.ldf'' has some workarounds, so that macros relying on Latin +characters in the ``right'' positions keep working. We test, that these +definitions do not overwrite the selection of pre-composed characters for +``copyright'' and ``registered trade mark'' by ``textcomp'' (try copy and +paste from the PDF output): + +Greek (LGR): \ensuregreek{Α \& Ω, \textcopyright{} \textregistered{} +\texttrademark{}, © ® ™ } \\ +Latin: A \& O. + +To prevent Roman numerals being typeset in Greek letters we need to adopt +the internal LaTeX commands. Note that this may cause errors when roman +numerals are used in a situation where the macros need to be expanded: + +\makeatletter +Greek: \ensuregreek{ +\@roman{1}, \@roman{2}, \@roman{3}, \@roman{4}, \ldots, \@roman{1975} +\@Roman{1}, \@Roman{2}, \@Roman{3}, \@Roman{4}, \ldots, \@Roman{1975} +} + +Latin: +\@roman{1}, \@roman{2}, \@roman{3}, \@roman{4}, \ldots, \@roman{1975} +\@Roman{1}, \@Roman{2}, \@Roman{3}, \@Roman{4}, \ldots, \@Roman{1975} +\makeatother + +Enumerated lists: + +\selectlanguage{greek} +\begin{enumerate} + \item $\leftarrow$ 1 + \begin{enumerate} + \item $\leftarrow$ 1.1 + \begin{enumerate} + \item $\leftarrow$ 1.1.1 + \begin{enumerate} + \item $\leftarrow$ 1.1.1.1 + \item $\leftarrow$ 1.1.1.2 + \end{enumerate} + \item $\leftarrow$ 1.1.2 + \end{enumerate} + \end{enumerate} +\end{enumerate} +\selectlanguage{english} + + +\section{MakeUppercase, MakeLowercase} + +Capital Greek letters have diacritics (except the dialytika and sub-iota) to +the left (instead of above) and drop them in uppercase, e.g. +\ensuregreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}. + +Upcased letters with diacritics keep the dialytika. This is implemented for +all input variants of diacritics with dialytika. (Babel has ``composite +command'' definitions to ensure this also works for accent characters +"upcased" to the charcter No 159.) + +\foreignlanguage{greek}{\"i \"'i \"`i \"~i \'"i \`"i \~"i + \"u \"\'u \"\`u \"\~u +$\mapsto$ \MakeUppercase{\"i \"'i \"`i \"~i \'"i \`"i \~"i + \"u \"\'u \"\`u \"\~u }} + +Tonos and dasia mark a \emph{hiatus} (break-up of a diphtong) if +placed on the first vowel of a diphtong +(\ensuregreek{\'ai, \'au, \'ei, \'>ai, \>'au, \>'ei}). +A dialytika must be placed on the second vowel if they are dropped: +(\ensuregreek{\MakeUppercase{\'ai, \'au, \'ei, \'>ai, \>'au, \>'ei}}). + +\selectlanguage{greek} +% 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} +\selectlanguage{english} + +There are several alternative styles for the capitalized sub-iota. + +The following subsections test MakeUppercase and MakeLowercase with all +characters defined in lgrenc.dfu: + +\subsection{Greek and Coptic} + +\newcommand{\GreekAndCoptic}{\ensuregreek{ +ʹ͵ͺ; ΄ ΅Ά·ΈΉΊΌΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫϘϚϜϠ}} +\newcommand{\greekandcoptic}{\ensuregreek{ +άέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϙϛϝϟϡ}} + +Characters of the Greek and Coptic Unicode Block: + +\begin{quote} + \GreekAndCoptic\\ + \greekandcoptic +\end{quote} + +MakeUppercase: + +\begin{quote} + \MakeUppercase{\GreekAndCoptic}\\ + \MakeUppercase{\greekandcoptic} +\end{quote} + +Letters and sub-iota upcased, other diacritics except dialytika dropped. + +There is no capital Koppa in LGR, therefore \ensuregreek{ϟ} is left +unchanged with MakeUppercase. + + +MakeLowercase: + +\begin{quote} + \MakeLowercase{\GreekAndCoptic}\\ + \MakeLowercase{\greekandcoptic} +\end{quote} + +The lowercase of \ensuregreek{Σ} is the «auto-sigma» (\verb+\textautosigma+): +\ensuregreek{ΣΣ $\mapsto$ \MakeLowercase{ΣΣ}}. Add a ZWNJ or use the +\verb+\noboundary+ macro to prevent conversion to final sigma: +\ensuregreek{\MakeLowercase{ΣΣ‌}}. The lowercase of GREEK LETTER STIGMA +\ensuregreek{Ϛ} is \ensuregreek{\MakeLowercase{Ϛ}} not \verb|\textvarstigma| +(\ensuregreek\textvarstigma). + +% \newpage + +\subsection{Greek extended} + +MakeUppercase: + +\selectlanguage{greek} + +\MakeUppercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ +\MakeUppercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ +\MakeUppercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ +\MakeUppercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ +\MakeUppercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ +\MakeUppercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ +\MakeUppercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ +\MakeUppercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ +\MakeUppercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ +\MakeUppercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ +\MakeUppercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ +\MakeUppercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ +\MakeUppercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ +\MakeUppercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ +\MakeUppercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ +\MakeUppercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } +\selectlanguage{english} + +MakeLowercase: + +\selectlanguage{greek} +\MakeLowercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ +\MakeLowercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ +\MakeLowercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ +\MakeLowercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ +\MakeLowercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ +\MakeLowercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ +\MakeLowercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ +\MakeLowercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ +\MakeLowercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ +\MakeLowercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ +\MakeLowercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ +\MakeLowercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ +\MakeLowercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ +\MakeLowercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ +\MakeLowercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ +\MakeLowercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } +\selectlanguage{english} + +\section{Babel Strings} + +Babel defines macros for several autogenerated strings so that they may +appear in the choosen language. babel-greek uses LICRs in order to let the +string macros work independent of the font encoding, in both 8-bit and +Unicode-aware TeX. + +\subsection{Captions} + +\selectlanguage{greek} +\prefacename, +\refname, +\abstractname, +\bibname, +\chaptername, +\appendixname, +\contentsname, +\listfigurename , +\listtablename, +\indexname, +\figurename, +\tablename, +\partname, +\enclname, +\ccname, +\headtoname, +\pagename, +\seename, +\alsoname, +\proofname, +\glossaryname, +\selectlanguage{english} + + +\subsection{Months} + +\selectlanguage{greek} +\newcounter{foo} +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\selectlanguage{english} + +\section{Greek Numerals} + +See greek.pdf for the formation rules of Greek numerals. +Some examples: + +\selectlanguage{greek} + +\greeknumeral{1}, +\greeknumeral{2}, +\greeknumeral{3}, +\greeknumeral{4}, +\greeknumeral{5}, +\greeknumeral{6}, +\greeknumeral{7}, +\greeknumeral{8}, +\greeknumeral{9}, +\greeknumeral{10}, +\greeknumeral{11}, +\greeknumeral{12}, +\greeknumeral{20}, +\greeknumeral{345}, +\greeknumeral{500}, +\greeknumeral{1997}, +\greeknumeral{2013}, + +\Greeknumeral{1}, +\Greeknumeral{2}, +\Greeknumeral{3}, +\Greeknumeral{4}, +\Greeknumeral{5}, +\Greeknumeral{6}, +\Greeknumeral{7}, +\Greeknumeral{8}, +\Greeknumeral{9}, +\Greeknumeral{10}, +\Greeknumeral{11}, +\Greeknumeral{12}, +\Greeknumeral{20}, +\Greeknumeral{345}, +\Greeknumeral{500}, +\Greeknumeral{1997}, +\Greeknumeral{2013}, + + +\selectlanguage{english} + +\end{document} diff --git a/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.pdf b/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.pdf new file mode 100644 index 00000000000..5975a681d1b Binary files /dev/null and b/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.pdf differ 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 new file mode 100644 index 00000000000..d667027a112 --- /dev/null +++ b/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.tex @@ -0,0 +1,306 @@ +\documentclass[a4paper]{article} +% \usepackage{textcomp} +\usepackage{hyperref,bookmark} +\usepackage{parskip} +\usepackage{booktabs} + +\usepackage{fontspec} +\usepackage{libertineotf} + +\usepackage[greek,english]{babel} +% \languageattribute{greek}{polutoniko} + +\DeclareTextCommandDefault{\ensuregreek}{\textgreek} + +\begin{document} + +\section*{Greek support for Babel with XeTeX/LuaTeX} + +The babel option ``greek'' activates the support for the Greek language +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. + + +\section{Language Switch} + +The declaration \verb|\selectlanguage| switches between languages. + +\selectlanguage{greek} +Ὁ Σύλλογος Ἑλλήνων Φίλων τοῦ TeX, γνωστὸς καὶ ὡς +«Ἕλληνες Φίλοι τοῦ \TeX» (ΕΦΤ γιὰ συντομία) ἀποτελεῖ τὴν ἐπίσημη Τοπικὴ Ὁμάδα +τοῦ \TeX{} ἢ τὸ ἑλληνικὸ \TeX{} LUG (Local Users Group). +\selectlanguage{english} + +The macro \verb|\foreignlanguage| sets its second argument in the specified +language. This is intended for short text parts like +\foreignlanguage{greek}{Βιβλιοθήκη}. + +\section{Font Encoding} + +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. + +\greektext Φίλων τοῦ \textlatin{TeX} (ΕΦΤ) -- +\latintext Friends (\textgreek{F\'ilwn}) of TeX. + + +Enumerated lists use Greek characters/numerals in the second and fourth level. +This requires support for Greek LICR macros in XeTeX/LuaTeX (currently +missing). + +\selectlanguage{greek} +\begin{enumerate} + \item $\leftarrow$ 1 +% \begin{enumerate} +% \item $\leftarrow$ 1.1 +% \begin{enumerate} +% \item $\leftarrow$ 1.1.1 +% \begin{enumerate} +% \item $\leftarrow$ 1.1.1.1 +% \item $\leftarrow$ 1.1.1.2 +% \end{enumerate} +% \item $\leftarrow$ 1.1.2 +% \end{enumerate} +% \end{enumerate} +\end{enumerate} +\selectlanguage{english} + + + +\section{MakeUppercase, MakeLowercase} + +Capital Greek letters have diacritics (except the dialytika and sub-iota) to +the left (instead of above) and drop them in uppercase, e.g. +\ensuregreek{μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}}. + +% Upcased letters with diacritics keep the dialytika. This is implemented for +% all input variants of diacritics with dialytika. (Babel has ``composite +% command'' definitions to ensure this also works for accent characters +% "upcased" to the charcter No 159.) + +% \foreignlanguage{greek}{\"i \"'i \"`i \"~i \'"i \`"i \~"i +% \"u \"\'u \"\`u \"\~u +% $\mapsto$ \MakeUppercase{\"i \"'i \"`i \"~i \'"i \`"i \~"i +% \"u \"\'u \"\`u \"\~u }} + +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 XeTeX/LuaTeX. + +% \selectlanguage{greek} +% % 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} +% \selectlanguage{english} + +There are several alternative styles for the capitalized sub-iota. + +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} + \GreekAndCoptic\\ + \greekandcoptic +\end{quote} + +MakeUppercase: + +\begin{quote} + \MakeUppercase{\GreekAndCoptic}\\ + \MakeUppercase{\greekandcoptic} +\end{quote} + +Letters upcased, diacritics except dialytika dropped. OK. + +Ϡ (Sampi) $\mapsto$ \MakeUppercase{Ϡ} (Kappa) and +ϡ (sampi) $\mapsto$ \MakeUppercase{ϡ} (Rho) seems a bug +(in Xe/LuaTeX or xgreek?). + +MakeLowercase: + +\begin{quote} + \MakeLowercase{\GreekAndCoptic}\\ + \MakeLowercase{\greekandcoptic} +\end{quote} + +The lowercase of Σ is σ (GREEK SMALL LETTER SIGMA, with LGR, it is +\verb|\textautosigma|). The lowercase of GREEK LETTER STIGMA Ϛ is +\MakeLowercase{Ϛ}. + +% \newpage + +\subsection{Greek extended} + +MakeUppercase: + +\selectlanguage{greek} + +\MakeUppercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ +\MakeUppercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ +\MakeUppercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ +\MakeUppercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ +\MakeUppercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ +\MakeUppercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ +\MakeUppercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ +\MakeUppercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ +\MakeUppercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ +\MakeUppercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ +\MakeUppercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ +\MakeUppercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ +\MakeUppercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ +\MakeUppercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ +\MakeUppercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ +\MakeUppercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } +\selectlanguage{english} + +MakeLowercase: + +\selectlanguage{greek} +\MakeLowercase{ ἀ ἁ ἂ ἃ ἄ ἅ ἆ ἇ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ }\\ +\MakeLowercase{ ἐ ἑ ἒ ἓ ἔ ἕ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ }\\ +\MakeLowercase{ ἠ ἡ ἢ ἣ ἤ ἥ ἦ ἧ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ }\\ +\MakeLowercase{ ἰ ἱ ἲ ἳ ἴ ἵ ἶ ἷ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ }\\ +\MakeLowercase{ ὀ ὁ ὂ ὃ ὄ ὅ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ }\\ +\MakeLowercase{ ὐ ὑ ὒ ὓ ὔ ὕ ὖ ὗ Ὑ Ὓ Ὕ Ὗ }\\ +\MakeLowercase{ ὠ ὡ ὢ ὣ ὤ ὥ ὦ ὧ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ }\\ +\MakeLowercase{ ὰ ά ὲ έ ὴ ή ὶ ί ὸ ό ὺ ύ ὼ ώ }\\ +\MakeLowercase{ ᾀ ᾁ ᾂ ᾃ ᾄ ᾅ ᾆ ᾇ ᾈ ᾉ ᾊ ᾋ ᾌ ᾍ ᾎ ᾏ }\\ +\MakeLowercase{ ᾐ ᾑ ᾒ ᾓ ᾔ ᾕ ᾖ ᾗ ᾘ ᾙ ᾚ ᾛ ᾜ ᾝ ᾞ ᾟ }\\ +\MakeLowercase{ ᾠ ᾡ ᾢ ᾣ ᾤ ᾥ ᾦ ᾧ ᾨ ᾩ ᾪ ᾫ ᾬ ᾭ ᾮ ᾯ }\\ +\MakeLowercase{ ᾰ ᾱ ᾲ ᾳ ᾴ ᾶ ᾷ Ᾰ Ᾱ Ὰ Ά ᾼ ᾽ ι ᾿ }\\ +\MakeLowercase{ ῀ ῁ ῂ ῃ ῄ ῆ ῇ Ὲ Έ Ὴ Ή ῌ ῍ ῎ ῏ }\\ +\MakeLowercase{ ῐ ῑ ῒ ΐ ῖ ῗ Ῐ Ῑ Ὶ Ί ῝ ῞ ῟ }\\ +\MakeLowercase{ ῠ ῡ ῢ ΰ ῤ ῥ ῦ ῧ Ῠ Ῡ Ὺ Ύ Ῥ ῭ ΅ ` }\\ +\MakeLowercase{ ῲ ῳ ῴ ῶ ῷ Ὸ Ό Ὼ Ώ ῼ ´ ῾ } +\selectlanguage{english} + +\section{Babel Strings} + +Babel defines macros for several autogenerated strings so that they may +appear in the choosen language. babel-greek uses LICR macross in order to +let the string macros work independent of the font encoding. + +This requires support for Greek LICR macros in XeTeX/LuaTeX (currently +missing). + +\end{document} + + +\subsection{Captions} + +\selectlanguage{greek} +\prefacename, +\refname, +\abstractname, +\bibname, +\chaptername, +\appendixname, +\contentsname, +\listfigurename , +\listtablename, +\indexname, +\figurename, +\tablename, +\partname, +\enclname, +\ccname, +\headtoname, +\pagename, +\seename, +\alsoname, +\proofname, +\glossaryname, +\selectlanguage{english} + + +\subsection{Months} + +\selectlanguage{greek} +\newcounter{foo} +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\stepcounter{foo} \month=\value{foo} \today \\ +\selectlanguage{english} + +\section{Greek Numerals} + +See greek.pdf for the formation rules of Greek numerals. +Some examples: + +\selectlanguage{greek} + +\greeknumeral{1}, +\greeknumeral{2}, +\greeknumeral{3}, +\greeknumeral{4}, +\greeknumeral{5}, +\greeknumeral{6}, +\greeknumeral{7}, +\greeknumeral{8}, +\greeknumeral{9}, +\greeknumeral{10}, +\greeknumeral{11}, +\greeknumeral{12}, +\greeknumeral{20}, +\greeknumeral{345}, +\greeknumeral{500}, +\greeknumeral{1997}, +\greeknumeral{2013}, + +\Greeknumeral{1}, +\Greeknumeral{2}, +\Greeknumeral{3}, +\Greeknumeral{4}, +\Greeknumeral{5}, +\Greeknumeral{6}, +\Greeknumeral{7}, +\Greeknumeral{8}, +\Greeknumeral{9}, +\Greeknumeral{10}, +\Greeknumeral{11}, +\Greeknumeral{12}, +\Greeknumeral{20}, +\Greeknumeral{345}, +\Greeknumeral{500}, +\Greeknumeral{1997}, +\Greeknumeral{2013}, + + +\selectlanguage{english} + +\end{document} diff --git a/Master/texmf-dist/doc/generic/babel-greek/usage.pdf b/Master/texmf-dist/doc/generic/babel-greek/usage.pdf index 4a290ee2b22..2695cdfc7b5 100644 Binary files a/Master/texmf-dist/doc/generic/babel-greek/usage.pdf and b/Master/texmf-dist/doc/generic/babel-greek/usage.pdf differ diff --git a/Master/texmf-dist/doc/generic/babel-greek/usage.tex b/Master/texmf-dist/doc/generic/babel-greek/usage.tex index 87f119de614..c3c4bde820d 100644 --- a/Master/texmf-dist/doc/generic/babel-greek/usage.tex +++ b/Master/texmf-dist/doc/generic/babel-greek/usage.tex @@ -33,7 +33,7 @@ \newcommand{\sg}{\selectlanguage{greek}} \newcommand{\sa}{\selectlanguage{american}} \begin{document} -\show\extrasgreek +%\show\extrasgreek %\show\extraspolutonikogreek \selectlanguage{american} -- cgit v1.2.3