DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: R T

⟦3df415d68⟧ TextFile

    Length: 2381 (0x94d)
    Types: TextFile
    Names: »README.multihyph«

Derivation

└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
    └─⟦this⟧ »./tex82/TeXpatches/README.multihyph« 

TextFile

Received: by santra.hut.fi (5.57/ida/6.6/TeKoLa)
        id AA20742; Wed, 13 Jul 88 17:46:09 +0300
Date: Wed, 13 Jul 88 17:46:09 +0300
From: Antti Louko <alo%fingate.bitnet@Forsythe.Stanford.EDU>
To: texhax@score.stanford.edu
Subject: Alternate hyphenation patterns for ctex

I have modified TeX to handle multiple hyphenation languages. This is
done with integer parameter \patternsnum, which selects the pattern
set currently used. The TeX version I modified is the web-to-c
version. It should work with most UNIX-machines.

For example:

% tex
This is TeX, C Version 2.9 (preloaded format=plain 88.7.5)
**\relax

*\patternsnum=0    % Well, this is default (English)

*\showhyphens{hyphenation}

Underfull \hbox (badness 10000) detected at line 0
[] \tenrm hy-phen-ation

*\showhyphens{tavutus}    % tavutus = hyphenation in Finnish

Underfull \hbox (badness 10000) detected at line 0
[] \tenrm tavu-tus

*\patternsnum=1    % Finnish

*\showhyphens{hyphenation}

Underfull \hbox (badness 10000) detected at line 0
[] \tenrm hyp-he-na-tion

*\showhyphens{tavutus}

Underfull \hbox (badness 10000) detected at line 0
[] \tenrm ta-vu-tus

*\bye
(see the transcript file for additional information)
No pages of output.
Transcript written on texput.log.
%

You can see how the hyphenation changes. \patternsnum is used also
with the \patterns primitive, when TeX reads all the patterns. This is
our /usr/lib/tex/macros/hyphen.tex file:

\patternsnum=0
\input enghyphen  % English hyphenation patterns (the original hyphen.tex)
\patternsnum=1
\input fh         % Finnish hyphenation patterns
\patternsnum=0    % Reset to the default

If \patternsnum <> 0 accents, hyphenation algorithm sees accented
characters as pairs: \"a shows as ~~?a etc. This is useful with
many languages.

\patternsnum can be used in an environment where many languages are needed in
the same document. \patternsnum affects when the whole paragraph is
being hyphenated; that means that you should change change
\patternsnum immediately after a \par.

 alo@santra.UUCP (mcvax!santra!alo)       Antti Louko
 alo@santra.hut.fi                        Helsinki University of Technology
 alo@fingate.bitnet                       Computing Centre
 alo%fingate.bitnet@cunyvm.cuny.edu       SF-02150, Espoo
                                          FINLAND
                                          tel. +358 0 4512624