Debian Codegraph @

texmf-dist/source/latex/oberdiek/hyphsubst.dtx

raw
1 % \iffalse meta-comment
2 %
3 % File: hyphsubst.dtx
4 % Version: 2016/05/16 v0.3
5 % Info: Substitute hyphenation patterns
6 %
7 % Copyright (C)
8 % 2008 Heiko Oberdiek
9 % 2016-2019 Oberdiek Package Support Group
10 % https://github.com/ho-tex/oberdiek/issues
11 %
12 % This work may be distributed and/or modified under the
13 % conditions of the LaTeX Project Public License, either
14 % version 1.3c of this license or (at your option) any later
15 % version. This version of this license is in
16 % https://www.latex-project.org/lppl/lppl-1-3c.txt
17 % and the latest version of this license is in
18 % https://www.latex-project.org/lppl.txt
19 % and version 1.3 or later is part of all distributions of
20 % LaTeX version 2005/12/01 or later.
21 %
22 % This work has the LPPL maintenance status "maintained".
23 %
24 % The Current Maintainers of this work are
25 % Heiko Oberdiek and the Oberdiek Package Support Group
26 % https://github.com/ho-tex/oberdiek/issues
27 %
28 % The Base Interpreter refers to any `TeX-Format',
29 % because some files are installed in TDS:tex/generic//.
30 %
31 % This work consists of the main source file hyphsubst.dtx
32 % and the derived files
33 % hyphsubst.sty, hyphsubst.pdf, hyphsubst.ins, hyphsubst.drv,
34 % hyphsubst-test1.tex, hyphsubst-test2.tex.
35 %
36 % Distribution:
37 % CTAN:macros/latex/contrib/oberdiek/hyphsubst.dtx
38 % CTAN:macros/latex/contrib/oberdiek/hyphsubst.pdf
39 %
40 % Unpacking:
41 % (a) If hyphsubst.ins is present:
42 % tex hyphsubst.ins
43 % (b) Without hyphsubst.ins:
44 % tex hyphsubst.dtx
45 % (c) If you insist on using LaTeX
46 % latex \let\install=y\input{hyphsubst.dtx}
47 % (quote the arguments according to the demands of your shell)
48 %
49 % Documentation:
50 % (a) If hyphsubst.drv is present:
51 % latex hyphsubst.drv
52 % (b) Without hyphsubst.drv:
53 % latex hyphsubst.dtx; ...
54 % The class ltxdoc loads the configuration file ltxdoc.cfg
55 % if available. Here you can specify further options, e.g.
56 % use A4 as paper format:
57 % \PassOptionsToClass{a4paper}{article}
58 %
59 % Program calls to get the documentation (example):
60 % pdflatex hyphsubst.dtx
61 % makeindex -s gind.ist hyphsubst.idx
62 % pdflatex hyphsubst.dtx
63 % makeindex -s gind.ist hyphsubst.idx
64 % pdflatex hyphsubst.dtx
65 %
66 % Installation:
67 % TDS:tex/generic/oberdiek/hyphsubst.sty
68 % TDS:doc/latex/oberdiek/hyphsubst.pdf
69 % TDS:source/latex/oberdiek/hyphsubst.dtx
70 %
71 %<*ignore>
72 \begingroup
73 \catcode123=1 %
74 \catcode125=2 %
75 \def\x{LaTeX2e}%
76 \expandafter\endgroup
77 \ifcase 0\ifx\install y1\fi\expandafter
78 \ifx\csname processbatchFile\endcsname\relax\else1\fi
79 \ifx\fmtname\x\else 1\fi\relax
80 \else\csname fi\endcsname
81 %</ignore>
82 %<*install>
83 \input docstrip.tex
84 \Msg{************************************************************************}
85 \Msg{* Installation}
86 \Msg{* Package: hyphsubst 2016/05/16 v0.3 Substitute hyphenation patterns (HO)}
87 \Msg{************************************************************************}
88
89 \keepsilent
90 \askforoverwritefalse
91
92 \let\MetaPrefix\relax
93 \preamble
94
95 This is a generated file.
96
97 Project: hyphsubst
98 Version: 2016/05/16 v0.3
99
100 Copyright (C)
101 2008 Heiko Oberdiek
102 2016-2019 Oberdiek Package Support Group
103
104 This work may be distributed and/or modified under the
105 conditions of the LaTeX Project Public License, either
106 version 1.3c of this license or (at your option) any later
107 version. This version of this license is in
108 https://www.latex-project.org/lppl/lppl-1-3c.txt
109 and the latest version of this license is in
110 https://www.latex-project.org/lppl.txt
111 and version 1.3 or later is part of all distributions of
112 LaTeX version 2005/12/01 or later.
113
114 This work has the LPPL maintenance status "maintained".
115
116 The Current Maintainers of this work are
117 Heiko Oberdiek and the Oberdiek Package Support Group
118 https://github.com/ho-tex/oberdiek/issues
119
120
121 The Base Interpreter refers to any `TeX-Format',
122 because some files are installed in TDS:tex/generic//.
123
124 This work consists of the main source file hyphsubst.dtx
125 and the derived files
126 hyphsubst.sty, hyphsubst.pdf, hyphsubst.ins, hyphsubst.drv,
127 hyphsubst-test1.tex, hyphsubst-test2.tex.
128
129 \endpreamble
130 \let\MetaPrefix\DoubleperCent
131
132 \generate{%
133 \file{hyphsubst.ins}{\from{hyphsubst.dtx}{install}}%
134 \file{hyphsubst.drv}{\from{hyphsubst.dtx}{driver}}%
135 \usedir{tex/generic/oberdiek}%
136 \file{hyphsubst.sty}{\from{hyphsubst.dtx}{package}}%
137 % \usedir{doc/latex/oberdiek/test}%
138 % \file{hyphsubst-test1.tex}{\from{hyphsubst.dtx}{test1}}%
139 % \file{hyphsubst-test2.tex}{\from{hyphsubst.dtx}{test2}}%
140 }
141
142 \catcode32=13\relax% active space
143 \let =\space%
144 \Msg{************************************************************************}
145 \Msg{*}
146 \Msg{* To finish the installation you have to move the following}
147 \Msg{* file into a directory searched by TeX:}
148 \Msg{*}
149 \Msg{* hyphsubst.sty}
150 \Msg{*}
151 \Msg{* To produce the documentation run the file `hyphsubst.drv'}
152 \Msg{* through LaTeX.}
153 \Msg{*}
154 \Msg{* Happy TeXing!}
155 \Msg{*}
156 \Msg{************************************************************************}
157
158 \endbatchfile
159 %</install>
160 %<*ignore>
161 \fi
162 %</ignore>
163 %<*driver>
164 \NeedsTeXFormat{LaTeX2e}
165 \ProvidesFile{hyphsubst.drv}%
166 [2016/05/16 v0.3 Substitute hyphenation patterns (HO)]%
167 \documentclass{ltxdoc}
168 \usepackage{holtxdoc}[2011/11/22]
169 \begin{document}
170 \DocInput{hyphsubst.dtx}%
171 \end{document}
172 %</driver>
173 % \fi
174 %
175 %
176 %
177 % \GetFileInfo{hyphsubst.drv}
178 %
179 % \title{The \xpackage{hyphsubst} package}
180 % \date{2016/05/16 v0.3}
181 % \author{Heiko Oberdiek\thanks
182 % {Please report any issues at \url{https://github.com/ho-tex/oberdiek/issues}}}
183 %
184 % \maketitle
185 %
186 % \begin{abstract}
187 % A \TeX\ format file may include alternative hyphenation patterns
188 % for a language with a different name. If the naming convention
189 % follows \xpackage{babel's} rules, then the hyphenation patterns
190 % for a language can be replaced by the alternative hyphenation patterns,
191 % provided in the format file.
192 % \end{abstract}
193 %
194 % \tableofcontents
195 %
196 % \section{Documentation}
197 %
198 % \subsection{In short}
199 %
200 % The package is an experimental package that allows the substitution
201 % of hyphenation patterns, example:
202 %\begin{quote}
203 %\begin{verbatim}
204 %\RequirePackage[ngerman=ngerman-x-20080601]{hyphsubst}
205 %\documentclass{article}
206 %\usepackage[ngerman]{babel}
207 %\end{verbatim}
208 %\end{quote}
209 % The patterns \texttt{ngerman} are replaced
210 % by the patterns \texttt{ngerman-x-20080601}. The format
211 % must contain these patterns and should use the naming scheme
212 % of either \xpackage{babel}'s \xfile{language.dat} or
213 % \xfile{etex.src}'s \xfile{language.def}.
214 %
215 % \subsection{Longer version}
216 %
217 % Assume the format may contain the following hyphenation patterns
218 % (excerpt from \xfile{language.dat}):
219 %\begin{quote}
220 %\begin{verbatim}
221 %...
222 %ngerman dehyphn.tex
223 %ngerman-x-20071231 dehyphn-x-20071231
224 %ngerman-x-20080601 dehyphn-x-20080601
225 %=ngerman-x-latest % alias for ngerman-x-20080601
226 %...
227 %\end{verbatim}
228 %\end{quote}
229 % The patterns that contain \texttt{-x-} are experimental new patterns
230 % for \texttt{ngerman}. However, package \xpackage{babel} does not provide
231 % the use of patterns that do not have the same name as the used language
232 % (dialect). The \xpackage{babel} system remembers patterns in
233 % macros: \verb|\l@|\meta{name}. \eTeX's \xfile{etex.src} uses
234 % \verb|\lang@|\meta{name} instead. In the following we use \xfile{babel}'s
235 % naming scheme, but \xfile{etex.src}'s naming scheme is supported, too.
236 %
237 % This package \xpackage{hyphsubst} solves the problem by redefining
238 % the macro \verb|\l@|\meta{name} to use other patterns.
239 %
240 % \begin{declcs}{HyphSubstLet} \M{nameA} \M{nameB}
241 % \end{declcs}
242 % \verb|\l@|\meta{nameA} now has the same meaning as
243 % \verb|\l@|\meta{nameB}.
244 % The patterns for \texttt{nameB} must exist. If the patterns for \texttt{nameA}
245 % exist, then they will be overwritten to use the patterns for \texttt{nameB}.
246 % Example:
247 %\begin{quote}
248 %\begin{verbatim}
249 %\documentclass{article}
250 %\usepackage{hyphsubst}
251 %\HyphSubstLet{ngerman}{ngerman-x-20080601}
252 %\usepackage[ngerman]{babel}
253 %\end{verbatim}
254 %\end{quote}
255 % Now the patterns \texttt{ngerman-x-20080601} are be used.
256 %
257 % Or if you want to compare hyphenations:
258 %\begin{quote}
259 %\begin{verbatim}
260 %\documentclass{article}
261 %\usepackage{hyphsubst}
262 % % save original patterns for ngerman in ngerman-saved
263 %\HyphSubstLet{ngerman-saved}{ngerman}
264 %\usepackage[ngerman]{babel}
265 %\begin{document}
266 % We start with the original patterns for ngerman.
267 % \HyphSubstLet{ngerman}{ngerman-x-latest}%
268 % Now we are using ngerman-x-latest.
269 % \HyphSubstLet{ngerman}{ngerman-saved}%
270 % Again we are using the original patterns.
271 %\end{document}
272 %\end{verbatim}
273 %\end{quote}
274 %
275 % \begin{declcs}{HyphSubstIfExists} \M{name} \M{then} \M{else}
276 % \end{declcs}
277 % Tests if patterns with name \meta{name} exist and execute
278 % \meta{then} in case of success and \meta{else} otherwise.
279 %
280 % \subsection{\LaTeX}
281 %
282 % The package can also be loaded before \cs{documentclass}:
283 %\begin{quote}
284 %\begin{verbatim}
285 %\RequirePackage[ngerman=ngerman-x-20080601]{hyphsubst}
286 %\documentclass{article}
287 %...
288 %\end{verbatim}
289 %\end{quote}
290 % This allows to put the package in a format file.
291 %
292 % Package options are interpreted as `let' assignments and passed
293 % to macro \cs{HyphSubstLet}:
294 %\begin{quote}
295 %\begin{verbatim}
296 %\usepackage[ngerman=ngerman-x-20080601]{hyphsubst}
297 %\end{verbatim}
298 %\end{quote}
299 % The part before the equal sign is the first argument for
300 % \cs{HyphSubstLet} and the part after the equal sign forms the
301 % second argument:
302 %\begin{quote}
303 %\begin{verbatim}
304 %\HyphSubstLet{ngerman}{ngerman-x-20080601}
305 %\end{verbatim}
306 %\end{quote}
307 % Note, this only works for direct package options. Global options
308 % are ignored.
309 %
310 % \subsection{\plainTeX}
311 %
312 % The package can be loaded and used with \plainTeX, e.g.:
313 %\begin{quote}
314 %\begin{verbatim}
315 %\input hyphsubst.sty
316 %\HyphSubstLet{ngerman}{ngerman-x-latest}
317 %\end{verbatim}
318 %\end{quote}
319 %
320 % \StopEventually{
321 % }
322 %
323 % \section{Implementation}
324 %
325 % \begin{macrocode}
326 %<*package>
327 % \end{macrocode}
328 %
329 % \subsection{Reload check and package identification}
330 % Reload check, especially if the package is not used with \LaTeX.
331 % \begin{macrocode}
332 \begingroup\catcode61\catcode48\catcode32=10\relax%
333 \catcode13=5 % ^^M
334 \endlinechar=13 %
335 \catcode35=6 % #
336 \catcode39=12 % '
337 \catcode44=12 % ,
338 \catcode45=12 % -
339 \catcode46=12 % .
340 \catcode58=12 % :
341 \catcode64=11 % @
342 \catcode123=1 % {
343 \catcode125=2 % }
344 \expandafter\let\expandafter\x\csname [email protected]\endcsname
345 \ifx\x\relax % plain-TeX, first loading
346 \else
347 \def\empty{}%
348 \ifx\x\empty % LaTeX, first loading,
349 % variable is initialized, but \ProvidesPackage not yet seen
350 \else
351 \expandafter\ifx\csname PackageInfo\endcsname\relax
352 \def\x#1#2{%
353 \immediate\write-1{Package #1 Info: #2.}%
354 }%
355 \else
356 \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
357 \fi
358 \x{hyphsubst}{The package is already loaded}%
359 \aftergroup\endinput
360 \fi
361 \fi
362 \endgroup%
363 % \end{macrocode}
364 % Package identification:
365 % \begin{macrocode}
366 \begingroup\catcode61\catcode48\catcode32=10\relax%
367 \catcode13=5 % ^^M
368 \endlinechar=13 %
369 \catcode35=6 % #
370 \catcode39=12 % '
371 \catcode40=12 % (
372 \catcode41=12 % )
373 \catcode44=12 % ,
374 \catcode45=12 % -
375 \catcode46=12 % .
376 \catcode47=12 % /
377 \catcode58=12 % :
378 \catcode64=11 % @
379 \catcode91=12 % [
380 \catcode93=12 % ]
381 \catcode123=1 % {
382 \catcode125=2 % }
383 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
384 \def\x#1#2#3[#4]{\endgroup
385 \immediate\write-1{Package: #3 #4}%
386 \xdef#1{#4}%
387 }%
388 \else
389 \def\x#1#2[#3]{\endgroup
390 #2[{#3}]%
391 \ifx#1\@undefined
392 \xdef#1{#3}%
393 \fi
394 \ifx#1\relax
395 \xdef#1{#3}%
396 \fi
397 }%
398 \fi
399 \expandafter\x\csname [email protected]\endcsname
400 \ProvidesPackage{hyphsubst}%
401 [2016/05/16 v0.3 Substitute hyphenation patterns (HO)]%
402 % \end{macrocode}
403 %
404 % \begin{macrocode}
405 \begingroup\catcode61\catcode48\catcode32=10\relax%
406 \catcode13=5 % ^^M
407 \endlinechar=13 %
408 \catcode123=1 % {
409 \catcode125=2 % }
410 \catcode64=11 % @
411 \def\x{\endgroup
412 \expandafter\edef\csname HyphSubst@AtEnd\endcsname{%
413 \endlinechar=\the\endlinechar\relax
414 \catcode13=\the\catcode13\relax
415 \catcode32=\the\catcode32\relax
416 \catcode35=\the\catcode35\relax
417 \catcode61=\the\catcode61\relax
418 \catcode64=\the\catcode64\relax
419 \catcode123=\the\catcode123\relax
420 \catcode125=\the\catcode125\relax
421 }%
422 }%
423 \x\catcode61\catcode48\catcode32=10\relax%
424 \catcode13=5 % ^^M
425 \endlinechar=13 %
426 \catcode35=6 % #
427 \catcode64=11 % @
428 \catcode123=1 % {
429 \catcode125=2 % }
430 \def\TMP@EnsureCode#1#2{%
431 \edef\HyphSubst@AtEnd{%
432 \HyphSubst@AtEnd
433 \catcode#1=\the\catcode#1\relax
434 }%
435 \catcode#1=#2\relax
436 }
437 \TMP@EnsureCode{39}{12}% '
438 \TMP@EnsureCode{46}{12}% .
439 \TMP@EnsureCode{47}{12}% /
440 \TMP@EnsureCode{58}{12}% :
441 \TMP@EnsureCode{91}{12}% [
442 \TMP@EnsureCode{93}{12}% ]
443 \TMP@EnsureCode{96}{12}% `
444 \edef\HyphSubst@AtEnd{\HyphSubst@AtEnd\noexpand\endinput}
445 % \end{macrocode}
446 %
447 % \subsection{Package}
448 %
449 % \begin{macrocode}
450 \begingroup\expandafter\expandafter\expandafter\endgroup
451 \expandafter\ifx\csname RequirePackage\endcsname\relax
452 \input infwarerr.sty\relax
453 \else
454 \RequirePackage{infwarerr}[2007/09/09]%
455 \fi
456 % \end{macrocode}
457 %
458 % \begin{macro}{\HyphSubst@l}
459 % \begin{macrocode}
460 \begingroup\expandafter\expandafter\expandafter\endgroup
461 \expandafter\ifx\csname et@xlang\endcsname\relax
462 \def\HyphSubst@l{l@}%
463 \else
464 \def\HyphSubst@l{lang@}%
465 \fi
466 % \end{macrocode}
467 % \end{macro}
468 %
469 % \begin{macro}{\HyphSubstLet}
470 % \begin{macrocode}
471 \def\HyphSubstLet#1#2{%
472 \begingroup
473 \def\x{}%
474 \expandafter\ifx\csname\HyphSubst@l#2\endcsname\relax
475 \@PackageError{hyphsubst}{Unknown pattern `#2'}\@ehc
476 \else
477 \def\lmsg{}%
478 \expandafter\ifx\csname\HyphSubst@l#1\endcsname\relax
479 \edef\msg{%
480 New: \expandafter\string\csname\HyphSubst@l#1\endcsname
481 \noexpand\MessageBreak
482 }%
483 \else
484 \edef\msg{%
485 Redefined: \expandafter\string\csname\HyphSubst@l#1\endcsname
486 \noexpand\MessageBreak
487 old value: \number\csname\HyphSubst@l#1\endcsname
488 \noexpand\MessageBreak
489 }%
490 \ifnum\csname\HyphSubst@l#1\endcsname=\language
491 \edef\x{%
492 \noexpand\language=%
493 \number\csname\HyphSubst@l#2\endcsname\relax
494 }%
495 \edef\lmsg{%
496 \noexpand\MessageBreak
497 \string\language\noexpand\space updated%
498 }%
499 \fi
500 \fi
501 \expandafter\global\expandafter\let
502 \csname\HyphSubst@l#1\expandafter\endcsname
503 \csname\HyphSubst@l#2\endcsname
504 \@PackageInfo{hyphsubst}{%
505 \msg
506 new value: \number\csname\HyphSubst@l#1\endcsname
507 \lmsg
508 }%
509 \fi
510 \expandafter\endgroup\x
511 }
512 % \end{macrocode}
513 % \end{macro}
514 %
515 % \begin{macro}{\HyphSubstIfExists}
516 % \begin{macrocode}
517 \def\HyphSubstIfExists#1{%
518 \begingroup\expandafter\expandafter\expandafter\endgroup
519 \expandafter\ifx\csname\HyphSubst@l#1\endcsname\relax
520 \expandafter\@secondoftwo
521 \else
522 \expandafter\@firstoftwo
523 \fi
524 }
525 % \end{macrocode}
526 % \end{macro}
527 % \begin{macro}{\@firstoftwo}
528 % \begin{macrocode}
529 \expandafter\ifx\csname @firstoftwo\endcsname\relax
530 \long\def\@firstoftwo#1#2{#1}%
531 \fi
532 % \end{macrocode}
533 % \end{macro}
534 % \begin{macro}{\@secondoftwo}
535 % \begin{macrocode}
536 \expandafter\ifx\csname @secondoftwo\endcsname\relax
537 \long\def\@secondoftwo#1#2{#2}%
538 \fi
539 % \end{macrocode}
540 % \end{macro}
541 %
542 % \begin{macrocode}
543 \begingroup\expandafter\expandafter\expandafter\endgroup
544 \expandafter\ifx\csname documentclass\endcsname\relax
545 \expandafter\HyphSubst@AtEnd
546 \fi%
547 % \end{macrocode}
548 %
549 % \begin{macrocode}
550 \DeclareOption*{%
551 \expandafter\HyphSubst@Option\CurrentOption==\relax
552 }
553 \def\HyphSubst@Option#1=#2=#3\relax{%
554 \HyphSubstLet{#1}{#2}%
555 }
556 \ProcessOptions*\relax
557 % \end{macrocode}
558 %
559 % \begin{macrocode}
560 \HyphSubst@AtEnd%
561 %</package>
562 % \end{macrocode}
563 %% \section{Installation}
564 %
565 % \subsection{Download}
566 %
567 % \paragraph{Package.} This package is available on
568 % CTAN\footnote{\CTANpkg{hyphsubst}}:
569 % \begin{description}
570 % \item[\CTAN{macros/latex/contrib/oberdiek/hyphsubst.dtx}] The source file.
571 % \item[\CTAN{macros/latex/contrib/oberdiek/hyphsubst.pdf}] Documentation.
572 % \end{description}
573 %
574 %
575 % \paragraph{Bundle.} All the packages of the bundle `oberdiek'
576 % are also available in a TDS compliant ZIP archive. There
577 % the packages are already unpacked and the documentation files
578 % are generated. The files and directories obey the TDS standard.
579 % \begin{description}
580 % \item[\CTANinstall{install/macros/latex/contrib/oberdiek.tds.zip}]
581 % \end{description}
582 % \emph{TDS} refers to the standard ``A Directory Structure
583 % for \TeX\ Files'' (\CTANpkg{tds}). Directories
584 % with \xfile{texmf} in their name are usually organized this way.
585 %
586 % \subsection{Bundle installation}
587 %
588 % \paragraph{Unpacking.} Unpack the \xfile{oberdiek.tds.zip} in the
589 % TDS tree (also known as \xfile{texmf} tree) of your choice.
590 % Example (linux):
591 % \begin{quote}
592 % |unzip oberdiek.tds.zip -d ~/texmf|
593 % \end{quote}
594 %
595 % \subsection{Package installation}
596 %
597 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
598 % \docstrip\ archive. The files are extracted by running the
599 % \xfile{.dtx} through \plainTeX:
600 % \begin{quote}
601 % \verb|tex hyphsubst.dtx|
602 % \end{quote}
603 %
604 % \paragraph{TDS.} Now the different files must be moved into
605 % the different directories in your installation TDS tree
606 % (also known as \xfile{texmf} tree):
607 % \begin{quote}
608 % \def\t{^^A
609 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
610 % hyphsubst.sty & tex/generic/oberdiek/hyphsubst.sty\\
611 % hyphsubst.pdf & doc/latex/oberdiek/hyphsubst.pdf\\
612 % hyphsubst.dtx & source/latex/oberdiek/hyphsubst.dtx\\
613 % \end{tabular}^^A
614 % }^^A
615 % \sbox0{\t}^^A
616 % \ifdim\wd0>\linewidth
617 % \begingroup
618 % \advance\linewidth by\leftmargin
619 % \advance\linewidth by\rightmargin
620 % \edef\x{\endgroup
621 % \def\noexpand\lw{\the\linewidth}^^A
622 % }\x
623 % \def\lwbox{^^A
624 % \leavevmode
625 % \hbox to \linewidth{^^A
626 % \kern-\leftmargin\relax
627 % \hss
628 % \usebox0
629 % \hss
630 % \kern-\rightmargin\relax
631 % }^^A
632 % }^^A
633 % \ifdim\wd0>\lw
634 % \sbox0{\small\t}^^A
635 % \ifdim\wd0>\linewidth
636 % \ifdim\wd0>\lw
637 % \sbox0{\footnotesize\t}^^A
638 % \ifdim\wd0>\linewidth
639 % \ifdim\wd0>\lw
640 % \sbox0{\scriptsize\t}^^A
641 % \ifdim\wd0>\linewidth
642 % \ifdim\wd0>\lw
643 % \sbox0{\tiny\t}^^A
644 % \ifdim\wd0>\linewidth
645 % \lwbox
646 % \else
647 % \usebox0
648 % \fi
649 % \else
650 % \lwbox
651 % \fi
652 % \else
653 % \usebox0
654 % \fi
655 % \else
656 % \lwbox
657 % \fi
658 % \else
659 % \usebox0
660 % \fi
661 % \else
662 % \lwbox
663 % \fi
664 % \else
665 % \usebox0
666 % \fi
667 % \else
668 % \lwbox
669 % \fi
670 % \else
671 % \usebox0
672 % \fi
673 % \end{quote}
674 % If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
675 % TDS installing feature, then some files can already be in the right
676 % place, see the documentation of \docstrip.
677 %
678 % \subsection{Refresh file name databases}
679 %
680 % If your \TeX~distribution
681 % (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh
682 % these. For example, \TeX\,Live\ users run \verb|texhash| or
683 % \verb|mktexlsr|.
684 %
685 % \subsection{Some details for the interested}
686 %
687 % \paragraph{Unpacking with \LaTeX.}
688 % The \xfile{.dtx} chooses its action depending on the format:
689 % \begin{description}
690 % \item[\plainTeX:] Run \docstrip\ and extract the files.
691 % \item[\LaTeX:] Generate the documentation.
692 % \end{description}
693 % If you insist on using \LaTeX\ for \docstrip\ (really,
694 % \docstrip\ does not need \LaTeX), then inform the autodetect routine
695 % about your intention:
696 % \begin{quote}
697 % \verb|latex \let\install=y\input{hyphsubst.dtx}|
698 % \end{quote}
699 % Do not forget to quote the argument according to the demands
700 % of your shell.
701 %
702 % \paragraph{Generating the documentation.}
703 % You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
704 % the documentation. The process can be configured by the
705 % configuration file \xfile{ltxdoc.cfg}. For instance, put this
706 % line into this file, if you want to have A4 as paper format:
707 % \begin{quote}
708 % \verb|\PassOptionsToClass{a4paper}{article}|
709 % \end{quote}
710 % An example follows how to generate the
711 % documentation with pdf\LaTeX:
712 % \begin{quote}
713 %\begin{verbatim}
714 %pdflatex hyphsubst.dtx
715 %makeindex -s gind.ist hyphsubst.idx
716 %pdflatex hyphsubst.dtx
717 %makeindex -s gind.ist hyphsubst.idx
718 %pdflatex hyphsubst.dtx
719 %\end{verbatim}
720 % \end{quote}
721 %
722 % \begin{History}
723 % \begin{Version}{2008/06/07 v0.1}
724 % \item
725 % First public version.
726 % \end{Version}
727 % \begin{Version}{2008/06/09 v0.2}
728 % \item
729 % Support for \eTeX's \xfile{language.def} added.
730 % \item
731 % Fix for undefined \cs{lmsg}.
732 % \end{Version}
733 % \begin{Version}{2016/05/16 v0.3}
734 % \item
735 % Documentation updates.
736 % \end{Version}
737 % \end{History}
738 %
739 % \PrintIndex
740 %
741 % \Finale
742 \endinput