🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #4069

[nt]roff proportional spacing and hyphenation

#4069
From: Russell Lawrence
Date: Wed, 30 Sep 1987 03:21
30 lines
2174 bytes
I have been trying to implement proportional space printing using nroff 
and a fully equipped Diablo 630.  I reworked the nroff driver tables so 
that nroff would send a string to turn on the Diablo's built-in circuits 
for performing PS printing and justified right margins.  The output, 
however, was not satisfactory.  After turning off the right margin 
justification, I realized that nroff was wrapping some lines as much as an 
inch and a half away from the margin because it was, of course, still 
assuming constant-width characters.  This forced the Diablo to insert so
much blank padding that some    l i n e s   looked   truly    ridiculous!

At that point, I decided to write my own crude formatter with builtin 
character width tables, but quickly gave up when I decided that 
hyphenation would require programming time/talent/brains far exceeding 
what I could bring to bear on the task.  After looking for another 
formatter, I came across a public domain version of nroff, but it turned 
out to be MS-DOS specific.  

I realized that this question has probably been posed several hundred times,
but my company has only been on the net for about a month.
Any email suggestions, comments, or pointers about implementing PS 
(proportional space) printing with [nt]roff, or similar packages would be
greatly appreciated.   Barring that, how about some tips (or PD sources) for
handling hyphenation?

--
Russell Lawrence                          (Too poor to buy a laser) 
WP Group POB 306, Metairie, LA 70004   
AT&T: +1 504 456 0001                            
UUCP: !uunet!wpg!russ
COMPUSERVE: 72337,3261
Technical Details
Message-ID: <167@wpg.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!wpg!russ

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!wpg!russ
From: russ@wpg.UUCP (Russell Lawrence)
Newsgroups: comp.text,comp.unix.questions
Subject: [nt]roff proportional spacing and hyphenation
Message-ID: <167@wpg.UUCP>
Date: Tue, 29-Sep-87 23:21:49 EDT
Article-I.D.: wpg.167
Posted: Tue Sep 29 23:21:49 1987
Date-Received: Thu, 1-Oct-87 05:42:48 EDT
Organization: WP Group, POB 306, Metairie, LA 70004
Lines: 24
Keywords: proportional spacing, formatters, hyphenation, questions