Tech Insider					     Technology and Trends


			      USENET Archives

Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!wpg!russ
From: r...@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

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

Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: he...@utzoo.UUCP (Henry Spencer)
Newsgroups: comp.text,comp.unix.questions
Subject: Re: [nt]roff proportional spacing and hyphenation
Message-ID: <8683@utzoo.UUCP>
Date: Thu, 1-Oct-87 11:53:53 EDT
Article-I.D.: utzoo.8683
Posted: Thu Oct  1 11:53:53 1987
Date-Received: Thu, 1-Oct-87 11:53:53 EDT
References: <167@wpg.UUCP>
Organization: U of Toronto Zoology
Lines: 12
Keywords: proportional spacing, formatters, hyphenation, questions

> ... 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...  it was, of course, still 
> assuming constant-width characters...

Um, has it escaped your attention that an nroff driver table includes a
width table, and nroff is fairly willing to deal with characters that are
not all the same width?  (I do recall some bugs down in the fine points,
but the basic logic works.)
-- 
"There's a lot more to do in space   |  Henry Spencer @ U of Toronto Zoology
than sending people to Mars." --Bova | {allegra,ihnp4,decvax,utai}!utzoo!henry

			        About USENET

USENET (Users’ Network) was a bulletin board shared among many computer
systems around the world. USENET was a logical network, sitting on top
of several physical networks, among them UUCP, BLICN, BERKNET, X.25, and
the ARPANET. Sites on USENET included many universities, private companies
and research organizations. See USENET Archives.

		       SCO Files Lawsuit Against IBM

March 7, 2003 - The SCO Group filed legal action against IBM in the State 
Court of Utah for trade secrets misappropriation, tortious interference, 
unfair competition and breach of contract. The complaint alleges that IBM 
made concentrated efforts to improperly destroy the economic value of 
UNIX, particularly UNIX on Intel, to benefit IBM's Linux services 
business. See SCO v IBM.

The materials and information included in this website may only be used
for purposes such as criticism, review, private study, scholarship, or
research.

Electronic mail:			       WorldWideWeb:
   tech-insider@outlook.com			  http://tech-insider.org/