diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-07 21:47:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-07 21:47:53 +0000 |
commit | bf0cf916a814908e7078cf01b3b96dd11a1ce418 (patch) | |
tree | 4ac8071f956a5dd341d486e481b0e9ad2c6bb0dd /Master/texmf-dist/source/generic/babel-greek | |
parent | 7072d6453d79c6f97fb1d64d706cce408656b919 (diff) |
babel-greek (7sep16)
git-svn-id: svn://tug.org/texlive/trunk@42010 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/babel-greek.dtx | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx index 2380ceee43c..07907f3b464 100644 --- a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx +++ b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx @@ -26,7 +26,7 @@ % and covered by LPPL is defined by the unpacking script (babel-greek.ins) % which is part of the package. % \fi -% \CheckSum{1557} +% \CheckSum{1558} % % \iffalse % Tell the \LaTeX\ system who we are and write an entry on the @@ -37,7 +37,7 @@ %<code>\ProvidesLanguage{greek} %\fi %\ProvidesFile{babel-greek.dtx} - [2016/02/04 v1.9f Greek support for the babel system] + [2016/09/07 v1.9g Greek support for the babel system] %\iffalse %% File `babel-greek.dtx' %% Greek language Definition File @@ -121,6 +121,8 @@ % (patch by Enrico Gregorio).} % \changes{babel-greek-1.9f}{2016/02/04}{Support for standard % Unicode text encoding ``TU'' (new in fontspec v2.5a).} +% \changes{babel-greek-1.9g}{2016/09/07}{Babel 3.9i deprecated textlatin +% and fixed latinencoding.} % % \title{Babel support for the Greek language} % \author{Apostolos Syropoulos, Günter Milde} @@ -271,7 +273,7 @@ % \DescribeMacro\latintext % |\latintext| (defined by the Babel % core) can be used to switch back to an encoding supporting the Latin -% script. +% script (deprecated since Babel 3.9i from March 2014). % % \DescribeMacro\ensuregreek % \DescribeMacro\textgreek @@ -281,7 +283,8 @@ % font encoding if required, |\textgreek| always uses the LGR font % encoding. % \DescribeMacro\textlatin -% The Babel core defines a corresponding |\textlatin| macro. +% The Babel core defines a corresponding |\textlatin| macro +% (deprecated in favour of |\ensureascii| in Babel 3.9i from March 2014). % % \section{Greek numbering} % @@ -518,19 +521,6 @@ \leavevmode{\greekscript #1}} % \end{macrocode} % \end{macro} -% \begin{macro}{\latinencoding} -% The babel core defines the macro |\latinencoding| and sets it to either -% OT1 or (if available) T1. We extend the choice with the Unicode encodings -% TU, EU1 and EU2 so that |\latintext| under XeTeX/LuaTeX does not prevent -% the use of Unicode fonts. -% \begin{macrocode} -\AtBeginDocument{% - \@ifl@aded{def}{eu1enc}{\xdef\latinencoding{EU1}}{}% XeTeX - \@ifl@aded{def}{eu2enc}{\xdef\latinencoding{EU2}}{}% LuaTeX - \@ifl@aded{def}{tuenc}{\xdef\latinencoding{TU}}{}% fontspec >= 2.5a -} -% \end{macrocode} -% \end{macro} % % \subsection{Fixes for the LGR font encoding} % @@ -552,13 +542,13 @@ % \changes{greek-1.5}{2013/06/15}{\textbackslash & made TextCommand} % % \begin{macrocode} - \ProvideTextCommand{\textcopyright}{LGR}{\textlatin{\textcopyright}} - \ProvideTextCommand{\textregistered}{LGR}{\textlatin{\textregistered}} - \ProvideTextCommand{\texttrademark}{LGR}{\textlatin{\texttrademark}} + \ProvideTextCommand{\textcopyright}{LGR}{\ensureascii{\textcopyright}} + \ProvideTextCommand{\textregistered}{LGR}{\ensureascii{\textregistered}} + \ProvideTextCommand{\texttrademark}{LGR}{\ensureascii{\texttrademark}} \let\ltx@amp\& \DeclareTextCommandDefault{\&}{\ltx@amp} - \DeclareTextCommand{\&}{LGR}{\textlatin{\ltx@amp}} - \ProvideTextCommand{\SS}{LGR}{\textlatin{\SS}} + \DeclareTextCommand{\&}{LGR}{\ensureascii{\ltx@amp}} + \ProvideTextCommand{\SS}{LGR}{\ensureascii{\SS}} % \end{macrocode} % % \begin{macro}{\greek@roman} @@ -581,8 +571,8 @@ % |\@roman| ends up in a situation where the argument needs to be expanded % (e.g. Roman page numbers in the ToC).} % \begin{macrocode} - \def\@roman#1{\expandafter\textlatin\expandafter{\romannumeral#1}} - \def\@Roman#1{\expandafter\textlatin\expandafter{% + \def\@roman#1{\expandafter\ensureascii\expandafter{\romannumeral#1}} + \def\@Roman#1{\expandafter\ensureascii\expandafter{% \expandafter\@slowromancap\romannumeral#1@}} % \end{macrocode} % \end{macro} @@ -894,7 +884,7 @@ % \begin{macrocode} \addto\extrasgreek{\greekscript} \addto\noextrasgreek{\latintext} -% \addto\noextrasgreek{\RestoreFontEncoding} +% \addto\noextrasgreek{\RestoreFontEncoding} % TODO define \RestoreFontEncoding % \end{macrocode} % % \begin{macro}{\gr@ill@value} |