diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-26 21:24:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-26 21:24:22 +0000 |
commit | 439864b38b6777a8f40523a964c0fb7e3c352bff (patch) | |
tree | 173cbf91e3ef1fedbcd130504bb73b46edffa16e /Master/texmf-dist/tex/generic/babel/xebabel.def | |
parent | b41810159701157d4c4082233224c298a27f4574 (diff) |
babel (26jun17)
git-svn-id: svn://tug.org/texlive/trunk@44705 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel/xebabel.def')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel/xebabel.def | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/generic/babel/xebabel.def b/Master/texmf-dist/tex/generic/babel/xebabel.def index b6025d3727b..26b8e5a5e06 100644 --- a/Master/texmf-dist/tex/generic/babel/xebabel.def +++ b/Master/texmf-dist/tex/generic/babel/xebabel.def @@ -4,7 +4,7 @@ %% %% The original source files were: %% -%% bbunicode.dtx (with options: `xetex') +%% babel.dtx (with options: `xetex') %% This is a generated file. %% %% Copyright 2012-2016 Javier Bezos and Johannes L. Braams. @@ -37,10 +37,16 @@ %% The list of derived (unpacked) files belonging to the distribution %% and covered by LPPL is defined by the unpacking scripts (with %% extension .ins) which are part of the distribution. -%% File `bbunicode.dtx' -%% Babel package for LaTeX version 2e -%% Copyright (C) 2103-2017 -%% by Javier Bezos +%% File 'babel.dtx' +%%\ProvidesFile{babel.dtx}[2017/06/26 v3.11 The Babel package] +%% Babel package for LaTeX2e. +%% Copyright (C) 1989-2008 by Johannes Braams, +%% TeXniek +%% all rights reserved. +%% Copyright (C) 2013-2017 by Johannes Braams +%% TeXniek +%% by Javier Bezos +%% all rights reserved. \def\BabelStringsDefault{unicode} \let\xebbl@stop\relax \AddBabelHook{xetex}{encodedcommands}{% @@ -83,12 +89,21 @@ \L 00FF 0178 00FF \endgroup \input #1\relax} -\def\babelFSstore#1{% - \bbl@for\bbl@tempa{#1}{% - \edef\bbl@tempb{\noexpand\bbl@FSstore{\bbl@tempa}} - \bbl@tempb{rm}\rmdefault\bbl@save@rmdefault - \bbl@tempb{sf}\sfdefault\bbl@save@sfdefault - \bbl@tempb{tt}\ttdefault\bbl@save@ttdefault}} +\newcommand\babelFSstore[2][]{% + \bbl@ifblank{#1}% + {\bbl@csarg\def{script@#2}{Latin}}% + {\bbl@csarg\def{script@#2}{#1}}% + \@expandtwoargs % TODO should go to the ini loaders + \in@{\csname bbl@script@#2\endcsname}{\bbl@trtscripts}% + \ifin@ + \let\bbl@beforeforeign\leavevmode + \EnableBabelHook{babel-bidi}% + \@nameuse{bbl@xebidipar}% + \fi + \bbl@foreach{#2}{% + \bbl@FSstore{##1}{rm}\rmdefault\bbl@save@rmdefault + \bbl@FSstore{##1}{sf}\sfdefault\bbl@save@sfdefault + \bbl@FSstore{##1}{tt}\ttdefault\bbl@save@ttdefault}} \def\bbl@FSstore#1#2#3#4{% \bbl@csarg\edef{#2default#1}{#3}% \expandafter\addto\csname extras#1\endcsname{% @@ -105,7 +120,7 @@ \fi \let#3#4}} \let\bbl@langfeatures\@empty -\def\babelFSfeatures{% +\def\babelFSfeatures{% make sure \fontspec is redefined once \let\bbl@ori@fontspec\fontspec \renewcommand\fontspec[1][]{% \bbl@ori@fontspec[\bbl@langfeatures##1]} |