summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx')
-rw-r--r--Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx15
1 files changed, 12 insertions, 3 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 8352d9ecbe1..2380ceee43c 100644
--- a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
+++ b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
@@ -37,7 +37,7 @@
%<code>\ProvidesLanguage{greek}
%\fi
%\ProvidesFile{babel-greek.dtx}
- [2015/09/04 v1.9e Greek support for the babel system]
+ [2016/02/04 v1.9f Greek support for the babel system]
%\iffalse
%% File `babel-greek.dtx'
%% Greek language Definition File
@@ -119,6 +119,8 @@
% in greek-euenc.def (the polyglossia version has bugs).}
% \changes{babel-greek-1.9e}{2015/11/27}{Fix bug in lccode-setting loop
% (patch by Enrico Gregorio).}
+% \changes{babel-greek-1.9f}{2016/02/04}{Support for standard
+% Unicode text encoding ``TU'' (new in fontspec v2.5a).}
%
% \title{Babel support for the Greek language}
% \author{Apostolos Syropoulos, Günter Milde}
@@ -455,12 +457,18 @@
% (too complicated to get it right).}
% \changes{greek-1.8}{2013/11/30}{Check for EU1/EU2 font encoding
% instead of engine}
+% \changes{babel-greek-1.9f}{2016/02/04}{Check also for TU font encoding.}
%
% \DescribeMacro\greekfontencoding
% We test for available font encodings and set |\greekfontencoding|
% and the internal macro |\bbl@greek@fontencdef| with the name of the
% font definition file with Greek LICR macros. The fallback is LGR.
% \begin{macrocode}
+\@ifl@aded{def}{tuenc}{
+ \providecommand*{\greekfontencoding}{TU}
+ \providecommand*{\bbl@greek@fontencdef}{greek-euenc}
+ \renewcommand*{\LastDeclaredEncoding}{TU}
+}{}
\@ifl@aded{def}{eu1enc}{
\providecommand*{\greekfontencoding}{EU1}
\providecommand*{\bbl@greek@fontencdef}{greek-euenc}
@@ -513,12 +521,13 @@
% \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
-% EU1 and EU2 so that |\latintext| under XeTeX/LuaTeX does not prevent the
-% use of Unicode fonts.
+% 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}