1 % --------------------------------------------------------------------------
2 % Swedish hyphenation patterns.
4 % Copyright 1994 by Jan Michael Rynning. All rights reserved.
5 % This program may be distributed and/or modified under the conditions of
6 % the LaTeX Project Public License, either version 1.2 of this license or
7 % (at your option) any later version. The latest version of this license
8 % is in http://www.latex-project.org/lppl.txt and version 1.2 or later is
9 % part of all distributions of LaTeX version 1999/12/01 or later.
11 % Last update: 1994-03-03 (March 3, 1994).
13 % 1991-01-08: First version available for anonymous FTP.
14 % 1991-08-08: Changed \aa to \aa0 at end of line, to stop TeX from
15 % concatenating the patterns.
16 % 1991-09-03: Cleaned up lots of inconsistencies in the dictionary.
17 % As a consequence, the patterns shrunk a lot. Also
18 % added some 4000 one-syllable words, some of which were
19 % hyphenated by the old patterns, and some 1500 compound
20 % words, about half of which were incorrectly hyphenated
21 % by the old patterns.
22 % 1991-11-01: Added another some 6200 compound words, all of which were
23 % incorrectly hyphenated by the old patterns.
24 % 1991-11-13: Added another some 6500 compound words, all of which were
25 % incorrectly hyphenated by the old patterns.
26 % 1992-01-30: Changed macros to ^^, for use with LaTeX and dc fonts.
27 % 1994-03-03: The hyphenated dictionary now contains about 118,000 words.
28 % The hyphenation now works much better for compound words.
29 % Patgen parameters: 1 2 20, 2 1 8, 1 4 7, 3 2 1, 1 10000 4.
31 % This file contains Swedish hyphenation patterns for TeX. It assumes
32 % that you have fonts with the Swedish letters in the positions where
33 % they occur in ISO Latin 1 (ISO 8859/1):
34 % Letter: \AA \"A \"O \'E \aa \"a \"o \'e
35 % Position: "C5 "C4 "D6 "C9 "E5 "E4 "F6 "E9
37 % Load this file into initex after plain.tex (or lplain.tex, splain.tex,
40 % The patterns were generated in such a way that they will hyphenate
41 % correctly if \lefthyphenmin>=1 and \righthyphenmin>=2.
43 % These hyphenation patterns work quite well for simple words, but not
44 % quite as well for compound words. I'm working on improving the quality,
45 % by adding more words. If you know any Swedish words which are not
46 % correctly hypheneted using these patterns, or if you have questions or
47 % comments, please contact me:
49 % Jan Michael Rynning <jmr@incolumitas.se>
50 % --------------------------------------------------------------------------
51 \message{Swedish hyphenation patterns, Jan Michael Rynning, 1994-03-03.}
53 % Set \catcode, \uccode, and \lccode for the Swedish letters.
54 % This should be done for all letters, really.
55 \catcode`^^c5=11 \catcode`^^c4=11 \catcode`^^d6=11 \catcode`^^c9=11
56 \catcode`^^e5=11 \catcode`^^e4=11 \catcode`^^f6=11 \catcode`^^e9=11
57 \uccode`^^c5=`^^c5 \uccode`^^c4=`^^c4 \uccode`^^d6=`^^d6 \uccode`^^c9=`^^c9
58 \uccode`^^e5=`^^c5 \uccode`^^e4=`^^c4 \uccode`^^f6=`^^d6 \uccode`^^e9=`^^c9
59 \lccode`^^c5=`^^e5 \lccode`^^c4=`^^e4 \lccode`^^d6=`^^f6 \lccode`^^c9=`^^e9
60 \lccode`^^e5=`^^e5 \lccode`^^e4=`^^e4 \lccode`^^f6=`^^f6 \lccode`^^e9=`^^e9
61 \patterns{ % just type <return> if you're not using INITEX