2 %% This file will generate fast loadable files and documentation
3 %% driver files from the doc files in this package when run through
6 %% Copyright 2012-2014 Javier Bezos and Johannes L. Braams.
7 %% Copyright 1989-2008 Johannes L. Braams and any individual authors
8 %% listed elsewhere in this file. All rights reserved.
10 %% This file is part of the Babel system.
11 %% --------------------------------------
13 %% It may be distributed and/or modified under the
14 %% conditions of the LaTeX Project Public License, either version 1.3
15 %% of this license or (at your option) any later version.
16 %% The latest version of this license is in
17 %% http://www.latex-project.org/lppl.txt
18 %% and version 1.3 or later is part of all distributions of LaTeX
19 %% version 2003/12/01 or later.
21 %% This work has the LPPL maintenance status "maintained".
23 %% The Current Maintainer of this work is Javier Bezos.
25 %% The list of all files belonging to the LaTeX base distribution is
26 %% given in the file `manifest.bbl. See also `legal.bbl' for additional
29 %% The list of derived (unpacked) files belonging to the distribution
30 %% and covered by LPPL is defined by the unpacking scripts (with
31 %% extension .ins) which are part of the distribution.
33 %% --------------- start of docstrip commands ------------------
35 %% Copyright 2012-2014 Javier Bezos and Johannes L. Braams.
36 %% Copyright 2005-2008 Johannes L. Braams
38 %% This file is part of the `babel' system.
40 %% You are allowed to distribute this file together with all files
41 %% mentioned in manifest.bbl.
43 %% You are not allowed to modify its contents.
45 \def\filedate{2014/03/24}
46 \def\batchfile{babel.ins}
49 {\ifx\generate\undefined
50 \Msg{**********************************************}
52 \Msg{* This installation requires docstrip}
53 \Msg{* version 2.3c or later.}
55 \Msg{* An older version of docstrip has been input}
57 \Msg{**********************************************}
58 \errhelp{Move or rename old docstrip.tex.}
59 \errmessage{Old docstrip in input path}
61 \csname @@end\endcsname
64 % Modify docstrip. A pseudo-guard is defined to set variables:
65 % <<name=value>>. These variables are used with <@name@>
66 % Two further pseudo-guards define "block" variables: <<*name>> and
67 % <</name>> delimite the lines to be retrived with <@name@>. Note
68 % the verbatim guard is overriden, which it's not used here.
69 % It's done in two passes: 1) with saving true, blocks are always
70 % read and saved; 2) with saving false, blocks are always ignored,
71 % but replacing <@name@>.
72 % While <@name@> can be used freely outside <<>>, it is only
73 % allowed inside <<>> if previouly defined. Deeper nesting is
76 \def\replaceVar#1<@#2{%
79 \expandafter\replaceVarX\expandafter#2%
82 \def\replaceVarX#1@>{\csname #1Var\endcsname\replaceVar}
84 \def\normalLine#1\endLine{%
85 \advance\codeLinesPassed\@ne
87 \edef\inLine{\replaceVar#1<@\endLine}%
90 \xdef\varCollect{\varCollect^^J\inLine}%
98 \def\verbOption<#1#2>>#3{%
102 \gdef\varCollect##1{}%
106 \expandafter\ifx\csname #2Var\endcsname\relax
107 \global\expandafter\let\csname #2Var\endcsname\varCollect
109 \toks@\expandafter\expandafter\expandafter{%
110 \csname #2Var\expandafter\endcsname\expandafter^^J%
112 \expandafter\xdef\csname #2Var\endcsname{\the\toks@}%
119 \def\varOptionI#1=#2>{%
120 \maybeMsg{<<#1=#2>>}%
122 \expandafter\gdef\csname #1Var\endcsname{#2}%
127 \declarepreamble\mainpreamble
128 This is a generated file.
130 Copyright 2012-2014 Javier Bezos and Johannes L. Braams.
131 Copyright 1989-2008 Johannes L. Braams and any individual authors
132 listed elsewhere in this file. All rights reserved.
134 This file was generated from file(s) of the Babel system.
135 ---------------------------------------------------------
137 It may be distributed and/or modified under the
138 conditions of the LaTeX Project Public License, either version 1.3
139 of this license or (at your option) any later version.
140 The latest version of this license is in
141 http://www.latex-project.org/lppl.txt
142 and version 1.3 or later is part of all distributions of LaTeX
143 version 2003/12/01 or later.
145 This work has the LPPL maintenance status "maintained".
147 The Current Maintainer of this work is Javier Bezos.
149 This file may only be distributed together with a copy of the Babel
150 system. You may however distribute the Babel system without
151 such generated files.
153 The list of all files belonging to the Babel distribution is
154 given in the file `manifest.bbl'. See also `legal.bbl for additional
157 The list of derived (unpacked) files belonging to the distribution
158 and covered by LPPL is defined by the unpacking scripts (with
159 extension .ins) which are part of the distribution.
162 \declarepreamble\drvpreamble
164 This file was generated from file(s) of the Babel system.
165 ---------------------------------------------------------
167 Copyright 2012-2014 Javier Bezos and Johannes L. Braams.
168 Copyright (C) 2008 Johannes Braams. All rights reserved.
170 To produce the documentation in the way you like you are allowed
171 to change this driver file.
175 \declarepreamble\istpreamble
176 This file was generated from file(s) of the Babel system.
177 ---------------------------------------------------------
179 Copyright 2012-2014 Javier Bezos and Johannes L. Braams.
180 Copyright (C) 2008 Johannes Braams. All rights reserved.
182 This file is a style file for the MakeIndex program
186 \declarepostamble\istpost
192 \usedir{tex/generic/babel}
194 \askforoverwritefalse
196 \usepreamble\mainpreamble
198 % Dummy, it just read "modules" to be used when generating
199 % the actual file. There must be a better way.
201 \generate{\usepreamble\empty
203 \file{babel.aux}{\from{babel.dtx}{dummy}}}
206 \generate{\file{babel.sty}{\from{babel.dtx}{package}}
207 \file{babel.def}{\from{babel.dtx}{core}}
208 \file{switch.def}{\from{babel.dtx}{kernel}}
209 \file{hyphen.cfg}{\from{babel.dtx}{patterns}}
210 \file{nil.ldf}{\from{babel.dtx}{nil}}
213 % Support for plain users
214 \generate{\file{plain.def}{\from{babel.dtx}{plain}}
215 \file{bplain.tex}{\from{babel.dtx}{bplain}}
216 \file{blplain.tex}{\from{babel.dtx}{blplain}}
219 % Support for Unicode-based engines
221 \generate{\usepreamble\empty
223 \file{babel.aux}{\from{bbunicode.dtx}{dummy}}}
226 \generate{\file{xebabel.def}{\from{bbunicode.dtx}{xetex}}
227 \file{luababel.def}{\from{bbunicode.dtx}{luatex}}
230 % compatibility files
232 \def\compatfile#1{\file{#1.sty}{\from{bbcompat.dtx}{#1}}}
235 \compatfile{esperanto}
236 \compatfile{afrikaans}
238 \compatfile{american}
241 \compatfile{UKenglish}
242 \compatfile{USenglish}
244 \compatfile{austrian}
245 \compatfile{ngermanb}
246 \compatfile{naustrian}
248 \compatfile{scottish}
253 \compatfile{francais}
255 \compatfile{portuges}
258 \compatfile{galician}
265 \compatfile{croatian}
271 \compatfile{estonian}
272 \compatfile{romanian}
274 \compatfile{russianb}
275 \compatfile{ukraineb}
277 \compatfile{lsorbian}
278 \compatfile{usorbian}
281 %\compatfile{sanskrit}
284 \compatfile{icelandic}
286 \compatfile{bulgarian}
290 \compatfile{interlingua}
291 \compatfile{albanian}
295 % MakeIndex style files
297 \usepreamble\istpreamble
298 \usepostamble\istpost
299 \usedir{makeindex/babel}
301 \generate{\file{bbind.ist}{\from{bbidxglo.dtx}{idx}}
302 \file{bbglo.ist}{\from{bbidxglo.dtx}{glo}}}
304 \Msg{***********************************************************}
306 \Msg{* To finish the installation you have to move all the files}
307 \Msg{* with names ending in .ldf, .sty, .def or .fd into a}
308 \Msg{* directory searched by TeX}
310 \Msg{* For making a format the following files have to be in a}
311 \Msg{* directory which is searched by IniTeX:}
312 \Msg{* \space\space hyphen.cfg}
313 \Msg{* \space\space language.dat}
314 \Msg{* \space\space and files with hyphenation patterns}
316 \Msg{* To produce source listings you can run files with names}
317 \Msg{* ending in .dtx and/or .drv through LaTeX}
319 \Msg{* To produce the complete source listing MakeIndex needs to be}
320 \Msg{* able to find the following files}
321 \Msg{* \space\space bbind.ist}
322 \Msg{* \space\space bbglo.ist}
326 \Msg{***********************************************************}