groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] .hw request and composite words in germanic languages


From: Sigfrid Lundberg, NetLab
Subject: Re: [Groff] .hw request and composite words in germanic languages
Date: Mon, 11 Mar 2002 12:18:15 +0100 (CET)

On Sun, 10 Mar 2002, Werner LEMBERG wrote:

>
> An additional comment:
>
> > Anyway, some times such words need to be hyphenated. E.g., the word
> > 'tillåta' should be hyphenated 'till-låta'. The maintainer of the
> > TeX Swedish hyphenation file claims that his patterns covers this.
>
> I doubt this.  It is possible that the TeX patterns disable
> hyphenation there, i.e., the pattern is only tillå-ta, but it is not
> possible to insert a \descretionary command into hyphenation patterns.
> Maybe you have to say ti"llåta, similar to German's active `"'
> character to get the proper behaviour.

To be honest, I might have misunderstood him. I haven't looked more into
this after my mail. Before posing my question, I created a document with
this word, Then added things words before "tillåta" until it reached the
margin. Groff refused to hyphenate it, so (since this is a fairly common
word -- meaning "to allow") it is most likely that he have added patterns
disallowing erroneous hyphenation. He says in the changelog:

% 1991-11-01: Added another some 6200 compound words, all of which were
%             incorrectly hyphenated by the old patterns.

Before the actual patterns, there is an interesting paragraph (see below).
I removed that before copying the thing to ../groff/1.18/tmac/hyphen.se,
supposing that this wasn't really Swedish but Klingon (possibly
uuencoded).

Sigge

% Set \catcode, \uccode, and \lccode for the Swedish letters.
% This should be done for all letters, really.
\catcode`^^c5=11 \catcode`^^c4=11
\catcode`^^d6=11 \catcode`^^c9=11 \catcode`^^e5=11 \catcode`^^e4=11
\catcode`^^f6=11 \catcode`^^e9=11 \uccode`^^c5=`^^c5 \uccode`^^c4=`^^c4
\uccode`^^d6=`^^d6 \uccode`^^c9=`^^c9 \uccode`^^e5=`^^c5
\uccode`^^e4=`^^c4 \uccode`^^f6=`^^d6 \uccode`^^e9=`^^c9
\lccode`^^c5=`^^e5 \lccode`^^c4=`^^e4 \lccode`^^d6=`^^f6
\lccode`^^c9=`^^e9> Werner
\lccode`^^e5=`^^e5 \lccode`^^e4=`^^e4 \lccode`^^f6=`^^f6
\lccode`^^e9=`^^e9



reply via email to

[Prev in Thread] Current Thread [Next in Thread]