Quoth John Gardner:
Thanks for reminding me, Branden. :) I've yet to get V7 Unix working with
the latest release of SimH, so that's kind of stalled my ability to develop
something in K&R-friendly  C.

I went ahead and write a little C/A/T-to-later-troff-output converter in v7-friendly and C89-conforming C:

https://git.sr.ht/~humm/catdit

I’m not confident in having got the details of spacing right (Is that 55-unit offset when switching font sizes correct?) and the character codes emitted are still those of the C/A/T, resulting in the wrong glyphs being used.

I created the attached document like this:

        v7$ troff -t /usr/man/man0/title >title.cat
        host$ catdit <title.cat | dpost -F. -Tcat >title.ps

(Where do the two blank pages at the end come from?)

PS: Branden, for rougher results, if you happen to have a Tektronix 4014 at hand (like the one emulated by XTerm), you can use that to look at v7 troff’s output. Tell your SIMH to pass control bytes through and run troff -t | tc.

Attachment: title.ps
Description: PostScript document

Reply via email to