diff options
author | Karl Berry <karl@freefriends.org> | 2018-04-07 20:58:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-04-07 20:58:18 +0000 |
commit | 9e5940c56dfe63fab26f34250ac55e37ece2c560 (patch) | |
tree | 7d958a87f96e76f7e99de545fa4c13828224127b /Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty | |
parent | 861b4de389db24dd94535880edb8de1ea4386cf6 (diff) |
polyglossia (7apr18)
git-svn-id: svn://tug.org/texlive/trunk@47358 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.sty | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty index ceece27c094..4fd15fd17ae 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}[2015/03/25 v1.42.4 +\ProvidesPackage{polyglossia}[2018/04/07 v1.43 Alternative to Babel for XeLaTeX and LuaLaTeX] \RequirePackage{etoolbox} \RequirePackage{makecmds} @@ -26,6 +26,11 @@ \RequireLuaModule{polyglossia} \fi +% Which version of XeTeX do we use? What is the boudary class? 4095 or 255 +\@ifundefined{e@alloc@intercharclass@top} + {\chardef\xpg@boundaryclass=\@cclv} + {\let\xpg@boundaryclass=\e@alloc@intercharclass@top} + % Useful for getting list of loaded languages and variants. Like babel's bbl@loaded \let\xpg@loaded\@empty \let\xpg@vloaded\@empty @@ -70,14 +75,15 @@ %% Used by the language definitions files for right-to-left languages \def\RequireBidi{% - \ifxetex - \RequirePackage{bidi} - \else\ifluatex - \RequirePackage{luabidi} - \else - \xpg@warning{You’re running a TeX engine that is not LuaTeX or XeTeX.\MessageBreak -That is almost guaranteed to cause problems.} - \fi\fi} + \AtBeginDocument{% + \ifxetex + \RequirePackage{bidi} + \else\ifluatex + \RequirePackage{luabidi} + \else + \xpg@warning{You’re running a TeX engine that is not LuaTeX or XeTeX.\MessageBreak + That is almost guaranteed to cause problems.} + \fi\fi}} %% compatibility with babel \let\addto\gappto% gappto is defined in etoolbox |