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-2016 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-2016 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{2016/02/01}
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@> Two further
66 % pseudo-guards define "block" variables: <<*name>> and <</name>>
67 % delimite the lines to be retrived with <@name@>. Note the verbatim
68 % guard is overriden, but it's not used here. This is done in two
69 % passes: 1) with saving true, there is a dummy pass, generating
70 % nothing, but blocks are read and saved; 2) with saving false, blocks
71 % are always ignored, but replacing <@name@>. While <@name@> can be
72 % used freely outside <<>>, it's only allowed inside <<>> if
73 % previouly defined. Deeper nesting is not allowed.
75 \def\replaceVar#1<@#2{%
78 \expandafter\replaceVarX\expandafter#2%
81 \def\replaceVarX#1@>{\csname #1Var\endcsname\replaceVar}
83 \def\normalLine#1\endLine{%
84 \advance\codeLinesPassed\@ne
86 \edef\inLine{\replaceVar#1<@\endLine}%
89 \xdef\varCollect{\varCollect^^J\inLine}%
97 \def\verbOption<#1#2>>#3{%
101 \gdef\varCollect##1{}%
105 \expandafter\ifx\csname #2Var\endcsname\relax
106 \global\expandafter\let\csname #2Var\endcsname\varCollect
108 \toks@\expandafter\expandafter\expandafter{%
109 \csname #2Var\expandafter\endcsname\expandafter^^J%
111 \expandafter\xdef\csname #2Var\endcsname{\the\toks@}%
118 \def\varOptionI#1=#2>{%
119 \maybeMsg{<<#1=#2>>}%
121 \expandafter\gdef\csname #1Var\endcsname{#2}%
126 \declarepreamble\mainpreamble
127 This is a generated file.
129 Copyright 2012-2016 Javier Bezos and Johannes L. Braams.
130 Copyright 1989-2008 Johannes L. Braams and any individual authors
131 listed elsewhere in this file. All rights reserved.
133 This file was generated from file(s) of the Babel system.
134 ---------------------------------------------------------
136 It may be distributed and/or modified under the
137 conditions of the LaTeX Project Public License, either version 1.3
138 of this license or (at your option) any later version.
139 The latest version of this license is in
140 http://www.latex-project.org/lppl.txt
141 and version 1.3 or later is part of all distributions of LaTeX
142 version 2003/12/01 or later.
144 This work has the LPPL maintenance status "maintained".
146 The Current Maintainer of this work is Javier Bezos.
148 This file may only be distributed together with a copy of the Babel
149 system. You may however distribute the Babel system without
150 such generated files.
152 The list of all files belonging to the Babel distribution is
153 given in the file `manifest.bbl'. See also `legal.bbl for additional
156 The list of derived (unpacked) files belonging to the distribution
157 and covered by LPPL is defined by the unpacking scripts (with
158 extension .ins) which are part of the distribution.
161 \declarepreamble\drvpreamble
163 This file was generated from file(s) of the Babel system.
164 ---------------------------------------------------------
166 Copyright 2012-2016 Javier Bezos and Johannes L. Braams.
167 Copyright (C) 2008 Johannes Braams. All rights reserved.
169 To produce the documentation in the way you like you are allowed
170 to change this driver file.
174 \declarepreamble\istpreamble
175 This file was generated from file(s) of the Babel system.
176 ---------------------------------------------------------
178 Copyright 2012-2016 Javier Bezos and Johannes L. Braams.
179 Copyright (C) 2008 Johannes Braams. All rights reserved.
181 This file is a style file for the MakeIndex program
185 \declarepostamble\istpost
191 \usedir{tex/generic/babel}
193 \usepreamble\mainpreamble
195 % Dummy, it just read "modules" to be used when generating
196 % the actual file. There must be a better way.
198 \generate{\usepreamble\empty
200 \file{babel.aux}{\from{babel.dtx}{dummy}}}
203 \generate{\file{babel.sty}{\from{babel.dtx}{package}}
204 \file{babel.def}{\from{babel.dtx}{core}}
205 \file{switch.def}{\from{babel.dtx}{kernel}}
206 \file{hyphen.cfg}{\from{babel.dtx}{patterns}}
207 \file{nil.ldf}{\from{babel.dtx}{nil}}
210 % Support for plain users
211 \generate{\file{plain.def}{\from{babel.dtx}{plain}}
212 \file{bplain.tex}{\from{babel.dtx}{bplain}}
213 \file{blplain.tex}{\from{babel.dtx}{blplain}}
216 % Support for Unicode-based engines
218 \generate{\usepreamble\empty
220 \file{babel.aux}{\from{bbunicode.dtx}{dummy}}}
223 \generate{\file{xebabel.def}{\from{bbunicode.dtx}{xetex}}
224 \file{luababel.def}{\from{bbunicode.dtx}{luatex}}
227 % compatibility files
228 \def\compatfile#1{\file{#1.sty}{\from{bbcompat.dtx}{#1}}}
231 \compatfile{esperanto}
232 \compatfile{afrikaans}
234 \compatfile{american}
237 \compatfile{UKenglish}
238 \compatfile{USenglish}
240 \compatfile{austrian}
241 \compatfile{ngermanb}
242 \compatfile{naustrian}
244 \compatfile{scottish}
249 \compatfile{francais}
251 \compatfile{portuges}
254 \compatfile{galician}
261 \compatfile{croatian}
267 \compatfile{estonian}
268 \compatfile{romanian}
270 \compatfile{russianb}
271 \compatfile{ukraineb}
273 \compatfile{lsorbian}
274 \compatfile{usorbian}
277 %\compatfile{sanskrit}
280 \compatfile{icelandic}
282 \compatfile{bulgarian}
286 \compatfile{interlingua}
287 \compatfile{albanian}
291 % MakeIndex style files
293 \usepreamble\istpreamble
294 \usepostamble\istpost
295 \usedir{makeindex/babel}
297 \generate{\file{bbind.ist}{\from{bbidxglo.dtx}{idx}}
298 \file{bbglo.ist}{\from{bbidxglo.dtx}{glo}}}
300 \Msg{***********************************************************}
302 \Msg{* To finish the installation you have to move all the files}
303 \Msg{* with names ending in .ldf, .sty, .def or .fd into a}
304 \Msg{* directory searched by TeX}
306 \Msg{* For making a format the following files have to be in a}
307 \Msg{* directory which is searched by IniTeX:}
308 \Msg{* \space\space hyphen.cfg}
309 \Msg{* \space\space language.dat}
310 \Msg{* \space\space and files with hyphenation patterns}
312 \Msg{* To produce source listings you can run files with names}
313 \Msg{* ending in .dtx and/or .drv through LaTeX}
315 \Msg{* To produce the complete source listing MakeIndex needs to be}
316 \Msg{* able to find the following files}
317 \Msg{* \space\space bbind.ist}
318 \Msg{* \space\space bbglo.ist}
322 \Msg{***********************************************************}