groff
[Top][All Lists]
Advanced

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

Re: [Groff] Modifying hyphenation rules?


From: Werner LEMBERG
Subject: Re: [Groff] Modifying hyphenation rules?
Date: Fri, 15 Dec 2006 16:18:22 +0100 (CET)

> The documentation I maintain references literally hundreds of MIB
> variables, with names like "pktcMtaDevRealmTable" (and that's one of
> the shorter ones).  Groff tried to make educated guesses at
> hyphenating these things when they hit the end of the line (as they
> do far too often), but often breaks in the wrong place (like
> "pktcMtaD-evRealmTable").
>
> Using .hw works OK, but like I said, there are hundreds of these
> suckers. Is there any way to tell Groff that hyphenating at any
> '[a-z][A-Z]' junction is OK?

No.  The easiest thing is probably to use sed or awk in a
preprocessing step to insert `\%' at the appropriate places
automatically.  Since uppercase almost always indicate a possible
breakpoint (you aren't writing Gaelic, aren't you? :-) this should be
rather straightforward.


    Werner




reply via email to

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