[TUHS] Troff to ps

Will Senn will.senn at gmail.com
Mon Jul 27 00:56:22 AEST 2020


All,

So... I've moved on from v7 to 2.11bsd - shucks, vi and tar and co. just 
work there and everything else seems to be similar enough for what I'm 
interested in anyway. So yay, I won't be pestering y'all about vi 
anymore :). One the other hand, now I'm interested in printing the docs.

2.11bsd comes with docs in, of all places, /usr/doc. In there are 
makefiles for making the docs - ok, make nroff will make ascii docs, and 
troff will make troff? docs using Ossana's 'original' troff. So, after 
adding -t to it so it didn't complain about 'typesetter busy', I got no 
errors. I mounted a tape, tar'ed my .out file and untar'ed it on my 
macbook (did it for the nroff and troff output). Then I hit the first 
snag, groff -Tps -ms troff.out > whatever.ps resulted in cannot adjust 
line and cannot break line errors and groff -Tps -ms nroff.out > 
whatever.ps resulted in a bunch of double vision. I seem to recall doing 
this in v6 and it working ok (at least for nroff).

My questions:
1. Is there a troff to postcript conversion utility present in a stock 
2.11 system (or even patch level 4xx system)?
2. Is there a way to build postscript directly on the system?
3. Is there an alternative modern way to get to ps or pdf output from 
the nroff/troff that 2.11 has?

I'm still digging into the nroff stuff as that may be just minor diffs 
between ancient nroff macros and "modern" macros or even just errors 
(.sp -2 rather than .sp or .sp -1, .in -2 instead of .in +2), etc. 
Although, the files display ok in 2.11bsd using nroff -ms nroff.out...

Thanks,

Will

-- 
GPG Fingerprint: 68F4 B3BD 1730 555A 4462  7D45 3EAA 5B6D A982 BAAF

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200726/f44ca354/attachment.htm>


More information about the TUHS mailing list