|
Document 722
Hyphenation patterns for different languages
Version: 4.x & 5.x - Scientific WorkPlace & Scientific
Word
The hyphenation of words differs for different languages. The LaTeX
format file latex_ml.fmt, created with standard SWP or
SW installations, stores information about the hyphenation patterns for these
languages:
-
English
-
American English
-
French
-
German
-
German new orthography
Additionally, the Extras/TrueTeXFormatFiles directory on the program CD
includes format files for
-
Spanish
-
Italian
-
Portuguese
If you use more than one language in your document, you can switch the
hyphenation patterns when you switch the base language if both these
conditions are met:
You can add hyphenation patterns for different languages
or remove patterns you don't need by tailoring the
TCITeX\TeX\LaTeX\required\babel\language.dat file. If you add a hyphenation
pattern not included in the format files provided with the program, you must
also create a format file that includes the pattern.
Adding a hyphenation pattern
-
Save a copy of the file TCITeX\TeX\LaTeX\required\babel\language.dat under a
new name.
-
Using an ASCII editor, open the file
TCITeX\TeX\LaTeX\required\babel\language.dat.
-
Add a line for the new hyphenation pattern.
For example, if you have access to a Swedish hyphenation pattern, you might
add a line that reads swedish swhyph.tex.
-
Save and close the file.
-
Generate a new format file:
-
Start the TrueTeX Formatter from the SWP or SW program submenu.
-
Choose CANCEL in the open dialog box.
-
Choose the Preload= menu item.
-
Choose Default.
-
From the File menu, choose
Open TeX source file and navigate to the
TCITeX\TeX\LaTeX\base directory.
-
Type latex.ltx and choose
Open.
The Formatter generates the new format file and closes when the process is
complete. The Formatter places two files, latex.fmt and latex.log, in your
TCITeX\TeX\LaTeX\base directory.
-
Rename and move the files.
-
Rename the new files to distinguish them from earlier format files.
These instructions assume that you rename latex.fmt as
latex_newml.fmt and rename latex.log as
latex_newml.log.
-
Move latex_newml.fmt and latex_newml.log to the TCITeX\truetex directory.
Although TeX doesn't use latex_newml.log, the file serves as a history of how
the format file was created. We recommend that you preserve it.
-
Create a formatter entry for the new format file:
-
From the Typeset menu, choose
Expert Settings, and then choose the
Format Settings tab.
-
Choose Add/Modify.
-
In the Choose TeX format file area at the bottom
of the TeX Formatter dialog box, enter the name of the new format file. Don't
include the .fmt file extension.
-
In the Name for TeX formatter area at the top of
the dialog box, enter a name for the new format as you want it to appear in
the list of available format files.
Choosing a name for the new format preserves the name for your original
format.
-
If you want to change the name of the formatter as it appears in compilation
messages, enter the new name in the Display
appearance box.
-
If the formatter requires the TrueTeX command handler, check
Use TrueTeX command handler.
Note that preinstalled formatters already have correct settings. See the
TrueTeX documentation for more information.
-
If you make an error, choose Revert to original
and enter the settings again.
-
Choose OK.
-
Preview a document and check the .log file to verify that no TeX errors
occurred and the new format is working correctly.
Removing a hyphenation pattern
-
Using an ASCII editor, open the file
TCITeX\TeX\LaTeX\required\babel\language.dat.
-
Type a % at the start of each line that contains a
hyphenation pattern for a language you don't want.
-
Save and close the file.
-
Complete steps 59 above to generate a new format
file.
Note that if only one hyphenation pattern remains, the system will use it
regardless of the language in which you write. If two or more hyphenation
patterns remain, open your document in SWP or SW, add the
Babel package, and select the language you want to use.
Last revised 06/29/06
|