summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/babel-greek
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-02 22:49:59 +0000
committerKarl Berry <karl@freefriends.org>2013-07-02 22:49:59 +0000
commit667cbedb1aa2a1d10b705b300571225628baebd6 (patch)
tree45550abc430eaa48af95e079bd61ad48d73d8760 /Master/texmf-dist/source/generic/babel-greek
parent74eab85d64cec0e1252bb24e518e38287955a722 (diff)
c2l babel-greek (2jul13)
git-svn-id: svn://tug.org/texlive/trunk@31073 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/babel-greek')
-rw-r--r--Master/texmf-dist/source/generic/babel-greek/greek.dtx73
1 files changed, 53 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/generic/babel-greek/greek.dtx b/Master/texmf-dist/source/generic/babel-greek/greek.dtx
index 95910561258..b357379888d 100644
--- a/Master/texmf-dist/source/generic/babel-greek/greek.dtx
+++ b/Master/texmf-dist/source/generic/babel-greek/greek.dtx
@@ -25,7 +25,7 @@
% and covered by LPPL is defined by the unpacking script (greek.ins)
% which is part of the package.
% \fi
-% \CheckSum{1218}
+% \CheckSum{1221}
%
% \iffalse
% Tell the \LaTeX\ system who we are and write an entry on the
@@ -36,7 +36,7 @@
%<code>\ProvidesLanguage{greek}
%\fi
%\ProvidesFile{greek.dtx}
- [2013/06/21 v1.5 Greek support for the babel system]
+ [2013/07/02 v1.5a Greek support for the babel system]
%\iffalse
%% File `greek.dtx'
%% Babel package for LaTeX version 2e
@@ -93,6 +93,9 @@
% extrasgreek/noextrasgreek definitions,
% LICR macros in string definitions,
% LGR font encoding not used with XeTeX/LuaTeX.}
+% \changes{greek-1.5a}{2013/06/27}{``extraspolutonikogreek'' definition
+% was missing with Xe/LuaTeX.
+% Replaced non-printable literal character with ^^-notation.}
%
% \section{Babel support for the Greek language}
%
@@ -105,21 +108,20 @@
% enhance the support for typesetting greek texts.} defines all the
% language definition macros for the Greek language, i.e.,
% as it used today with only one accent, and the attribute
-% $\pi o\lambda\upsilon\tau o\nu\kappa\acute{o}$ (``Polutoniko'')
-% for typesetting greek text with all accents. This separation
-% arose out of the need to simplify things, for only very few
-% people will be really interested to typeset polytonic Greek
-% text.
+% \Lopt{polutoniko} for typesetting greek text with all accents
+% (classical and polytonic Greek).
%
% \DescribeMacro\greektext
% \DescribeMacro\latintext
% The commands |\greektext| and |\latintext| can be used to switch
-% to greek or latin fonts. These are declarations.
+% to Greek or Latin font encodings but do not change the active language.
+% These are declarations.
%
% \DescribeMacro\textgreek
% \DescribeMacro\textlatin
% The commands |\textgreek| and |\textlatin| both take one argument
% which is then typeset using the requested font encoding.
+%
% \DescribeMacro\textol
% The command |\greekol| switches to the greek outline font family,
% while the command |\textol| typests a short text in outline font.
@@ -127,10 +129,38 @@
% added text commands |\stigma|, |\qoppa|, |\sampi|, |\ddigamma|,
% |\Digamma|, |\euro|, |\permill|, and |\vardigamma|.
%
-% \subsection{Typing conventions}
-%
-% The file \file{usage.pdf} explains the several input conventions
-% for Greek.
+% \subsection{Usage}
+%
+% To activate Greek support with babel, specify the option
+% \Lopt{greek}, either as global option or as option to the
+% \pkg{babel} package. Remember, that the \emph{last} language
+% option determines the document language, e.g.
+% \begin{verbatim}
+% \usepackage[greek,english]{babel}\end{verbatim}
+% activates support for Greek in an English document while
+% \begin{verbatim}
+% \usepackage[english,greek]{babel}
+% \languageattribute{greek}{polutoniko}\end{verbatim}
+% sets the document language to Greek with ``polytonic''
+% spelling of auto-generated strings.
+%
+% For backwards compatibility, ``polytonic'' spelling can also be
+% selected via the dummy language \Lopt{polutonikogreek}. In this
+% case, the language name \Lopt{polutonikogreek} must also be
+% used for language switches with |\selectlanguage| or
+% |\foreignlanguage|. However, it is not possible to use
+% both options, \Lopt{greek} and \Lopt{polutonikogreek} in one document.
+%
+% \subsubsection{Input of Greek text}
+%
+% There are several alternatives for input of Greek text.
+% The required package \pkg{greek-fontenc} defines
+% \emph{LaTeX internal character representation} (LICR) macros
+% for Greek letters and text symbols.
+% With the packages \pkg{inputenc} and \pkg{greek-inputenc},
+% Greek characters can be input using the utf-8, iso-8859-7,
+% or macgreek encoding. The file \file{usage.pdf} explains a Latin
+% transliteration defined by the LGR font encoding.
%
% \subsection{Greek numbering}
%
@@ -361,12 +391,14 @@
% \changes{greek-1.4}{2013/05/17}{Add TextCompositeCommands for
% ``uppercase diacritics''.}
% \changes{greek-1.5}{2013/05/27}{Bugfix: @hiatus->LGR@hiatus}
+% \changes{greek-1.5a}{2013/07/02}{Replaced non-printable literal character
+% with ^^-notation (thanks to Heiko Oberdiek for the hint).}
% \begin{macrocode}
- \DeclareTextCompositeCommand{\"}{LGR}{Ÿ}{\accdialytika}
- \DeclareTextCompositeCommand{\'}{LGR}{Ÿ}{\LGR@hiatus}
- \DeclareTextCompositeCommand{\`}{LGR}{Ÿ}{\LGR@hiatus}
- \DeclareTextCompositeCommand{\<}{LGR}{Ÿ}{\LGR@hiatus}
- \DeclareTextCompositeCommand{\>}{LGR}{Ÿ}{\LGR@hiatus}
+ \DeclareTextCompositeCommand{\"}{LGR}{^^9F}{\accdialytika}
+ \DeclareTextCompositeCommand{\'}{LGR}{^^9F}{\LGR@hiatus}
+ \DeclareTextCompositeCommand{\`}{LGR}{^^9F}{\LGR@hiatus}
+ \DeclareTextCompositeCommand{\<}{LGR}{^^9F}{\LGR@hiatus}
+ \DeclareTextCompositeCommand{\>}{LGR}{^^9F}{\LGR@hiatus}
% \end{macrocode}
%
% Now we define two commands that offer the possibility to switch
@@ -945,17 +977,18 @@
% We can also make the tilde character itself expand to a tilde with
% category code 12 to make the typing of texts easier.
% \changes{greek-1.1b}{1997/03/06}{Made tilde expand to a tilde with
-% \cs{catcode 12}}
+% \cs{catcode 12}.}
+% \changes{greek-1.5a}{2013/06/27}{provide ``extraspolutonikogreek'' also
+% for Xe/LuaTeX.}
% \begin{macrocode}
\addto\extraspolutonikogreek{\languageshorthands{greek}}%
\declare@shorthand{greek}{~}{\greek@tilde}
\fi % End of LGR-specific code not required with XeTeX/LuaTeX.
+\addto\extraspolutonikogreek{} % set up \extraspolutonikogreek for Xe/LuaTeX
% \end{macrocode}
% \end{macro}
% \end{macro}
%
-%
-%
% \changes{greek-1.1c}{1997/03/10}{Added a couple of symbols, needed
% for \cs{greeknumeral}}
% \changes{greek-1.1e}{1997/10/12}{Most symbols are removed and are