diff options
author | Karl Berry <karl@freefriends.org> | 2014-03-25 20:46:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-03-25 20:46:25 +0000 |
commit | a63b337dd75bdef29d3e59f209931b46a96a4a4f (patch) | |
tree | 278c437c4afe955fee5d4f1441dcf1aaa8d3b7e3 /Master/texmf-dist/source/latex/babel/babel.ins | |
parent | b1694b996be79022b025714fcb6c142724f222d1 (diff) |
babel (25mar14)
git-svn-id: svn://tug.org/texlive/trunk@33283 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/babel/babel.ins')
-rw-r--r-- | Master/texmf-dist/source/latex/babel/babel.ins | 55 |
1 files changed, 43 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/babel/babel.ins b/Master/texmf-dist/source/latex/babel/babel.ins index 539ffba53e9..7da03fc5783 100644 --- a/Master/texmf-dist/source/latex/babel/babel.ins +++ b/Master/texmf-dist/source/latex/babel/babel.ins @@ -3,7 +3,7 @@ %% driver files from the doc files in this package when run through %% LaTeX or TeX. %% -%% Copyright 2012-2013 Javier Bezos and Johannes L. Braams. +%% Copyright 2012-2014 Javier Bezos and Johannes L. Braams. %% Copyright 1989-2008 Johannes L. Braams and any individual authors %% listed elsewhere in this file. All rights reserved. %% @@ -32,7 +32,7 @@ %% %% --------------- start of docstrip commands ------------------ %% -%% Copyright 2012-2013 Javier Bezos and Johannes L. Braams. +%% Copyright 2012-2014 Javier Bezos and Johannes L. Braams. %% Copyright 2005-2008 Johannes L. Braams %% %% This file is part of the `babel' system. @@ -42,7 +42,7 @@ %% %% You are not allowed to modify its contents. %% -\def\filedate{2013/10/10} +\def\filedate{2014/03/24} \def\batchfile{babel.ins} \input docstrip.tex @@ -66,6 +66,12 @@ % Two further pseudo-guards define "block" variables: <<*name>> and % <</name>> delimite the lines to be retrived with <@name@>. Note % the verbatim guard is overriden, which it's not used here. +% It's done in two passes: 1) with saving true, blocks are always +% read and saved; 2) with saving false, blocks are always ignored, +% but replacing <@name@>. +% While <@name@> can be used freely outside <<>>, it is only +% allowed inside <<>> if previouly defined. Deeper nesting is +% not allowed. \def\replaceVar#1<@#2{% #1% @@ -87,6 +93,7 @@ \fi} \newif\ifcollect +\newif\ifsaving \def\verbOption<#1#2>>#3{% \ifx#1*% @@ -95,21 +102,32 @@ \gdef\varCollect##1{}% \else\ifx#1/% \global\collectfalse - \global\expandafter\let\csname #2Var\endcsname\varCollect + \ifsaving + \expandafter\ifx\csname #2Var\endcsname\relax + \global\expandafter\let\csname #2Var\endcsname\varCollect + \else + \toks@\expandafter\expandafter\expandafter{% + \csname #2Var\expandafter\endcsname\expandafter^^J% + \varCollect}% + \expandafter\xdef\csname #2Var\endcsname{\the\toks@}% + \fi + \fi \else \varOptionI#1#2>% \fi\fi} \def\varOptionI#1=#2>{% \maybeMsg{<<#1=#2>>}% - \expandafter\gdef\csname #1Var\endcsname{#2}} + \ifsaving + \expandafter\gdef\csname #1Var\endcsname{#2}% + \fi} % Preambles \declarepreamble\mainpreamble This is a generated file. -Copyright 2012-2013 Javier Bezos and Johannes L. Braams. +Copyright 2012-2014 Javier Bezos and Johannes L. Braams. Copyright 1989-2008 Johannes L. Braams and any individual authors listed elsewhere in this file. All rights reserved. @@ -146,7 +164,7 @@ extension .ins) which are part of the distribution. This file was generated from file(s) of the Babel system. --------------------------------------------------------- -Copyright 2012-2013 Javier Bezos and Johannes L. Braams. +Copyright 2012-2014 Javier Bezos and Johannes L. Braams. Copyright (C) 2008 Johannes Braams. All rights reserved. To produce the documentation in the way you like you are allowed @@ -158,7 +176,7 @@ to change this driver file. This file was generated from file(s) of the Babel system. --------------------------------------------------------- -Copyright 2012-2013 Javier Bezos and Johannes L. Braams. +Copyright 2012-2014 Javier Bezos and Johannes L. Braams. Copyright (C) 2008 Johannes Braams. All rights reserved. This file is a style file for the MakeIndex program @@ -171,12 +189,19 @@ This file is a style file for the MakeIndex program \keepsilent \askonceonly -\usepreamble\mainpreamble \usedir{tex/generic/babel} \askforoverwritefalse -\tracingmacros2 +\usepreamble\mainpreamble + +% Dummy, it just read "modules" to be used when generating +% the actual file. There must be a better way. +\savingtrue +\generate{\usepreamble\empty + \usepostamble\empty + \file{babel.aux}{\from{babel.dtx}{dummy}}} +\savingfalse \generate{\file{babel.sty}{\from{babel.dtx}{package}} \file{babel.def}{\from{babel.dtx}{core}} @@ -184,20 +209,26 @@ This file is a style file for the MakeIndex program \file{hyphen.cfg}{\from{babel.dtx}{patterns}} \file{nil.ldf}{\from{babel.dtx}{nil}} } + % Support for plain users \generate{\file{plain.def}{\from{babel.dtx}{plain}} \file{bplain.tex}{\from{babel.dtx}{bplain}} \file{blplain.tex}{\from{babel.dtx}{blplain}} } + % Support for Unicode-based engines +\savingtrue +\generate{\usepreamble\empty + \usepostamble\empty + \file{babel.aux}{\from{bbunicode.dtx}{dummy}}} +\savingfalse + \generate{\file{xebabel.def}{\from{bbunicode.dtx}{xetex}} \file{luababel.def}{\from{bbunicode.dtx}{luatex}} } % compatibility files -\usepreamble\mainpreamble - \def\compatfile#1{\file{#1.sty}{\from{bbcompat.dtx}{#1}}} \generate{% |