summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-15 21:51:46 +0000
committerKarl Berry <karl@freefriends.org>2013-05-15 21:51:46 +0000
commitb1c0322f63142a632f15e21009547e439784bfc9 (patch)
treeabb645abbe29c675cd5615465cb76f0a9c81bfd9 /Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
parentc293cc5e64a5575b0b22a373061569bacf92ee76 (diff)
polyglossia (15may13)
git-svn-id: svn://tug.org/texlive/trunk@30486 c570f23f-e606-0410-a88d-b1316a301751
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%