🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #2430

Re: incorrect hyphenation in (old) troff

#2430
From: Jaap Akkerhuis
Date: Mon, 28 Jan 1991 21:36
34 lines
1871 bytes
In article <1991Jan24.223645.16630@cbnewsl.att.com> npn@cbnewsl.att.com (nils-peter.nelson) writes:
 > In article <MJ7^8$@rpi.edu>, fitz@mml0.meche.rpi.edu (Brian Fitzgerald) writes:
 > > Is there any way to predict incorrect hyphenation in troff?
 > > 
 > > How about a shell script (a little like spell) that compares a "stop
 > > list" to the text and perhaps prints warnings or generates ".hw"
 > > requests?
 > > 
 > > I am currently using the troff that came with SunOS 4.0.3.
 > > 
 > > Brian Fitzgerald
 > 
 > 
 > Sorry, but not so easy. The source code has a 19,000 byte table
 > of suffixes, and there is a binary encoded digram table.

Yes, it is not easy to predict the hyphenation of old troff, but if
you have source, it is ot difficult to rip the hyphenation algorithm
out of the program.

Note the the hyphenation exception list (.hw) is about 128 bytes
small, so it overflows quickly. If you don't like the way troff
hyphenates for you and don't want to wait (or don't care) for the support
of Liang's algorithm, you can do it yourself.

I've seen a program which hypnenated dutch text. It was used as a
preprocessor for troff and inserted the hypnenation character in every
legal place it could fine. This way the text wasn't hyphenated with
the build in stuff.

So, using this method, one can always forcing troff to hyphenate
where you want while ignoring the builtin rules.

	jaap
Technical Details
Message-ID: <1991Jan28.213653.19470@mtxinu.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mtxinu!jaap
References: <MJ7^8$@rpi.edu> <1991Jan24.223645.16630@cbnewsl.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mtxinu!jaap
From: jaap@mtxinu.COM (Jaap Akkerhuis)
Newsgroups: comp.text
Subject: Re: incorrect hyphenation in (old) troff
Message-ID: <1991Jan28.213653.19470@mtxinu.COM>
Date: 28 Jan 91 21:36:53 GMT
References: <MJ7^8$@rpi.edu> <1991Jan24.223645.16630@cbnewsl.att.com>
Reply-To: jaap@mtxinu.UUCP (Jaap Akkerhuis)
Organization: mt Xinu, Berkeley
Lines: 34