1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
31 \ProvidesFile{lthyphen.dtx}
33 %<default>\ProvidesFile{hyphen.ltx}
35 % \ProvidesFile{lthyphen.dtx}
36 [1994/12/04 v1.0h LaTeX Kernel (hyphenation interface)]
40 %\iffalse This is a META comment
42 % File `lthyphen.dtx'.
43 % Copyright (C) 1994-94 LaTeX3 project, Frank Mittelbach and
44 % Rainer Sch\"opf, all rights reserved.
47 % \GetFileInfo{lthyphen.dtx}
48 % \title{The \texttt{lthyphen.dtx} file\thanks
49 % {This file has version number \fileversion, dated \filedate.}\\
50 % for use with \LaTeXe}
51 % \author{Frank Mittelbach, Chris Rowley \and Rainer Sch\"opf}
53 % \def\dst{{\normalfont\scshape docstrip}}
54 % \setcounter{StandardModuleDepth}{1}
57 % \MaintainedByLaTeXTeam{latex}
60 % This file contains the code for loading hyphenation patterns into
61 % \LaTeX. Most of this will end up in a file called
62 % \texttt{hyphen.ltx}. If you wish to customize your \LaTeX{} system
63 % in respect of hyphenation patterns, write a file
64 % \texttt{hyphen.cfg}. If this file exists, it will be loaded instead
65 % of \texttt{hyphen.ltx}. See the comments below for additional
70 % To produce the printed version of this file the following code
71 % is used. It can be extracted with the \dst{} program, or one can run
72 % this file directly through \LaTeXe{}.
75 \documentclass{ltxdoc}
77 \DocInput{lthyphen.dtx}
82 % \changes{v0.1c}{1994/03/07}{move the 2ekernel code to ltfinal.dtx}
83 % \changes{v1.0g}{1994/12/01}{Rename lthyphen.ltx/cfg to hyphen.ltx/cfg}
84 % \changes{v1.0h}{1994/12/04}{Documentation edits for /1989}
86 % The default file |hyphen.ltx| loads hyphenation patterns for US
87 % english. If you want to load additional or other hyphenation
88 % patterns, you should create a file |hyphen.cfg|. This is best done
89 % by starting from |hyphen.ltx|.
91 % For backward compatibility, the default file, |hyphen.ltx|,
93 % the file |hyphen.tex|. If this file exists, an information
94 % message is issued and the appropriate defaults for \TeX's internal
95 % parameters are set: |\language| is initialized to $0$, and
96 % |\lefthyphenmin| and |\righthyphenmin| to $2$ and $3$, respectively,
97 % to disallow x- or -xx breaks.
100 \InputIfFileExists{hyphen.tex}%
101 {\message{Loading hyphenation patterns for US english.}%
103 \lefthyphenmin=2 \righthyphenmin=3 }%
105 % Otherwise, since we cannot do anything without any hyphenation
106 % patterns, an error message is printed and the Ini\TeX{} run
107 % is terminated by invoking |\@@end| (which is the \LaTeXe{} name
108 % for \TeX's |\end| primitive).
110 {\errhelp{The configuration for hyphenation is incorrectly
112 If you don't understand this error message you need
113 to seek^^Jexpert advice.}%
114 \errmessage{OOPS! I can't find any hyphenation patterns for
115 US english.^^J \space Think of getting some or the
116 latex2e setup will never succeed}\@@end}
119 % The following example describes the possible contents of a file
120 % |hyphen.cfg| that will load both US English and German hyphenation
121 % patterns, making the former the default.
122 % It sets |\language| to $0$ for the US patterns and to $1$ for the
124 % Then |\language| is set to $0$ to make this the default and the
125 % default values of |\lefthyphenmin| and |\righthyphenmin| are set.
128 %\input hyphen % (or \input ushyphen1 if the file has been renamed)
137 % Another possibility is to use the package |babel|, by Johannes Braams.
138 % That package is distributed with a suitable |hyphen.cfg| file.