summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty10
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
index 08ba373330f..092b76781c1 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
+++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{polyglossia}[2012/08/06 v1.30MM
+\ProvidesPackage{polyglossia}[2013/05/15 v1.32.0
Babel replacement for XeLaTeX and LuaTeX]
\RequirePackage{etoolbox}
\RequirePackage{makecmds}
@@ -215,14 +215,14 @@
\ifcsundef{l@#1}%
{\xpg@nopatterns{\csname xpg@langname@#1\endcsname}%
\expandafter\adddialect\csname l@#1\endcsname\l@nohyphenation\relax}{}%
- \csdef{#1@language}{\language=\csname l@#1\endcsname}%
+ \csdef{#1@language}{\language=\csname l@#1\endcsname\ifluatex\directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\csname l@#1\endcsname')}\fi}%
}%
\define@choicekey+[xpg@setup]{#1}{direction}[\val\nr]{LR,RL}[LR]%
{\ifcase\nr\relax
\togglefalse{#1@RL}%
\or
\toggletrue{#1@RL}%
- \ifcsundef{RTL}{\RequirePackage{bidi}}{}%
+ \ifcsundef{RTL}{\ifluatex\RequirePackage{luabidi}\else\RequirePackage{bidi}\fi}{}%
\fi}%
{\xpg@warning{#1: Invalid value \val\space for key "direction"}}%
\define@key[xpg@setup]{#1}{hyphenmins}[{2,3}]%
@@ -693,7 +693,7 @@
% here we use lu@texhyphen@loaded@\the\language, the same as in babel
\expandafter\ifcsname lu@texhyphen@loaded@\the\csname l@#1\endcsname\endcsname \else %
\global\@namedef{lu@texhyphen@loaded@\the\language}{}%
- \directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\language')}%
+ \directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\csname l@#1\endcsname')}%
\fi %
\fi %
}
@@ -702,7 +702,7 @@
\ifluatex %
\ifcsname lu@texhyphen@loaded@\the\language\endcsname \else %
\global\@namedef{lu@texhyphen@loaded@\the\language}{}%
- \directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\language')}%
+ \directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\csname l@#1\endcsname')}%
\fi %
\fi %
\xpg@initial@setup%