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)]
41 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
42 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
43 %% Digits \0\1\2\3\4\5\6\7\8\9
44 %% Exclamation \! Double quote \" Hash (number) \#
45 %% Dollar \$ Percent \% Ampersand \&
46 %% Acute accent \' Left paren \( Right paren \)
47 %% Asterisk \* Plus \+ Comma \,
48 %% Minus \- Point \. Solidus \/
49 %% Colon \: Semicolon \; Less than \<
50 %% Equals \= Greater than \> Question mark \?
51 %% Commercial at \@ Left bracket \[ Backslash \\
52 %% Right bracket \] Circumflex \^ Underscore \_
53 %% Grave accent \` Left brace \{ Vertical bar \|
54 %% Right brace \} Tilde \~}
56 %\iffalse This is a META comment
58 % File `lthyphen.dtx'.
59 % Copyright (C) 1994-94 LaTeX3 project, Frank Mittelbach and
60 % Rainer Sch\"opf, all rights reserved.
63 % \GetFileInfo{lthyphen.dtx}
64 % \title{The \texttt{lthyphen.dtx} file\thanks
65 % {This file has version number \fileversion, dated \filedate.}\\
66 % for use with \LaTeXe}
67 % \author{Frank Mittelbach, Chris Rowley \and Rainer Sch\"opf}
69 % \def\dst{{\normalfont\scshape docstrip}}
70 % \setcounter{StandardModuleDepth}{1}
73 % \MaintainedByLaTeXTeam{latex}
76 % This file contains the code for loading hyphenation patterns into
77 % \LaTeX. Most of this will end up in a file called
78 % \texttt{hyphen.ltx}. If you wish to customize your \LaTeX{} system
79 % in respect of hyphenation patterns, write a file
80 % \texttt{hyphen.cfg}. If this file exists, it will be loaded instead
81 % of \texttt{hyphen.ltx}. See the comments below for additional
86 % To produce the printed version of this file the following code
87 % is used. It can be extracted with the \dst{} program, or one can run
88 % this file directly through \LaTeXe{}.
91 \documentclass{ltxdoc}
93 \DocInput{lthyphen.dtx}
98 % \changes{v0.1c}{1994/03/07}{move the 2ekernel code to ltfinal.dtx}
99 % \changes{v1.0g}{1994/12/01}{Rename lthyphen.ltx/cfg to hyphen.ltx/cfg}
100 % \changes{v1.0h}{1994/12/04}{Documentation edits for /1989}
102 % The default file |hyphen.ltx| loads hyphenation patterns for US
103 % english. If you want to load additional or other hyphenation
104 % patterns, you should create a file |hyphen.cfg|. This is best done
105 % by starting from |hyphen.ltx|.
107 % For backward compatibility, the default file, |hyphen.ltx|,
108 % first tries to load
109 % the file |hyphen.tex|. If this file exists, an information
110 % message is issued and the appropriate defaults for \TeX's internal
111 % parameters are set: |\language| is initialized to $0$, and
112 % |\lefthyphenmin| and |\righthyphenmin| to $2$ and $3$, respectively,
113 % to disallow x- or -xx breaks.
116 \InputIfFileExists{hyphen.tex}%
117 {\message{Loading hyphenation patterns for US english.}%
119 \lefthyphenmin=2 \righthyphenmin=3 }%
121 % Otherwise, since we cannot do anything without any hyphenation
122 % patterns, an error message is printed and the Ini\TeX{} run
123 % is terminated by invoking |\@@end| (which is the \LaTeXe{} name
124 % for \TeX's |\end| primitive).
126 {\errhelp{The configuration for hyphenation is incorrectly
128 If you don't understand this error message you need
129 to seek^^Jexpert advice.}%
130 \errmessage{OOPS! I can't find any hyphenation patterns for
131 US english.^^J \space Think of getting some or the
132 latex2e setup will never succeed}\@@end}
135 % The following example describes the possible contents of a file
136 % |hyphen.cfg| that will load both US English and German hyphenation
137 % patterns, making the former the default.
138 % It sets |\language| to $0$ for the US patterns and to $1$ for the
140 % Then |\language| is set to $0$ to make this the default and the
141 % default values of |\lefthyphenmin| and |\righthyphenmin| are set.
144 %\input hyphen % (or \input ushyphen1 if the file has been renamed)
153 % Another possibility is to use the package |babel|, by Johannes Braams.
154 % That package is distributed with a suitable |hyphen.cfg| file.