From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8678 invoked from network); 26 Jul 2020 15:36:42 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 26 Jul 2020 15:36:42 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 97F579C9DF; Mon, 27 Jul 2020 01:36:38 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id AF9F99BA4F; Mon, 27 Jul 2020 01:35:18 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (1024-bit key; unprotected) header.d=ccc.com header.i=@ccc.com header.b="a8tDrspf"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 4509E9BA4E; Mon, 27 Jul 2020 01:33:53 +1000 (AEST) Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by minnie.tuhs.org (Postfix) with ESMTPS id DD1AC9C9FA for ; Mon, 27 Jul 2020 01:33:51 +1000 (AEST) Received: by mail-qt1-f172.google.com with SMTP id a32so10427206qtb.5 for ; Sun, 26 Jul 2020 08:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zfHKfEc62jUFQGm/oeNZOPovkgvxGcv84ksGfWTAbQk=; b=a8tDrspfTmB6x10C60+axuGwIC75kljzgs5ZS9ZOgV1hUzCPhhT9DrY/Tv3CybaQO8 ZvcqD3PHPDLdHMYrEFon84To8rZnrgqQCS05pYY004iB01CG5jF5jlIEqFkU2QwaJ9cl WzyUAZLjjHfwoTUyQYW43veuXFI9IyAy2xSs4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zfHKfEc62jUFQGm/oeNZOPovkgvxGcv84ksGfWTAbQk=; b=QkDXDp3yQs+0QARj6yhZYE8Z+2vTIiwPrpfoS63ZsKmST26gUwUirpeALaTLNTirRE 9UG4Cq2gm6JwPgQ9AMVc6amrETDHHRn45jgD84R1kdf32nqWMajiKTd6fnaKY27kDrVI P6VPdxb+gBq6aEQSPf9FtTN5AjCMm13IFXP8YcbpA/IE/bHeTFH7+a3nQVXEqQTxSFKd CGLEk7EPPO3rUG9oekdiQuxb/878YQjpyGYYZ42sbNUzmhn9FOAnO7Q5opkp8+zLPsSC tGw7irlOqV44ASrFnGqKTca4LyU8z5nZfuaI0PIM76NHm3U6urG57rCHzIzpvUU9y1UR /rvg== X-Gm-Message-State: AOAM530mc4B4wXdaIkBG56oh44e0/J0wIbJB1CwhAi5CxM78VecnoqcV Kps4t5I67B9XzQZvIaEerOE8ondg161CyIQ2ZaNCrA== X-Google-Smtp-Source: ABdhPJzuxB4tHMIMj50bAeFGqb9eFbAZu2puS3DVcs+9KAJhUvnEk8ZT5Sa/NkIYeXbLy5goeCngb7ySmw93fgujVMI= X-Received: by 2002:ac8:6f7a:: with SMTP id u26mr18677101qtv.33.1595777630754; Sun, 26 Jul 2020 08:33:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Clem Cole Date: Sun, 26 Jul 2020 11:33:24 -0400 Message-ID: To: Will Senn Content-Type: multipart/alternative; boundary="000000000000d26cd005ab59ee1a" Subject: Re: [TUHS] Troff to ps X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000d26cd005ab59ee1a Content-Type: text/plain; charset="UTF-8" On Sun, Jul 26, 2020 at 10:58 AM Will Senn wrote: > 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. > Wimp .. ;-) seriously at this step, it might be easier for you as a more modern user. > > 2.11bsd comes with docs in, of all places, /usr/doc. > Well that is where is was in V7 ;-) > 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. > yep > So, after adding -t to it so it didn't complain about 'typesetter busy', I > got no errors. > right... > 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). > Well let's just save -ms and troff itself were re-implemented and there are likely to be some small differences. At UCB, the command would have been: tbl < input_troff_text | eqn | troff -t -ms | vcat vcat(1) was the virtual CAT typesetter using a Versatec Plotter. Adobe released a source-level product called transcript, that you recompiled and ran on V7 or later (like the PDP-11s). My memory it was ~ $1K back in the day. Transcript 2.0 contained a number of tools. One was a CAT to PS converter. Another was the tables for the ditroff to spit out PS so: ditroff -Tps worked as expected and a program called 'enscript' that converted from txt to PS. All of these tools have modern FOSS equivalents, but it may take some hunting to find them. I think sources to transcript 2.0 can be found if you google around. I'm not sure Adobe ever officially made is FOSS, but after the modern equivalent showed up, I'm not aware of them minding that people did not have the license since it sold more printers with PostScript. That should just recompile on V7 or later and 'just work.' The modern equivalent might take some backporting. BTW: Thinking about this, I believe I remember that there is a directory on Kirk's CD's that have a copy from UCB. Mount his disks and poke around. I'll try to look myself but I'm supposed to be helping my wife get ready for a socially distanced birthday party for our great-niece [we have the big back yard, tent et al that can handle the 6 foot part requirements]. > > My questions: > 1. Is there a troff to postcript conversion utility present in a stock > 2.11 system (or even patch level 4xx system)? > The word "present"t is the operative term. Probably not. > 2. Is there a way to build postscript directly on the system? > Yes, see above. > 3. Is there an alternative modern way to get to ps or pdf output from the > nroff/troff that 2.11 has? > Yep - Ghostscript based tools which is what the Transcript replacements tend to use. > > 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. > Be careful - that's not quite the same. Basically groff fixed a number of long-standing issues that older troff/ditroff had worked around. Usually, the difference is that the original nroff/troff has some defaults that now need to make explicit. But most older *roff documents can go through modern groff just fine. The more typical error from old documents is a site that did not have a Versatec or later an Apple Laserwriter and only supported nroff. A number of documents when created for nroff will look ugly when you run them through any version of troff (old or new) as the document authors never took the time to deal with the differences in the output device. > Although, the files display ok in 2.11bsd using nroff -ms nroff.out... > I would expect so. I bet they are fine with troff -t or if you can find ditroff (which also maybe on Kirk's CD) and then run the output through vcat or transcript. Note if you used vcat you will get some printing facsimiles that were there back in the day. The reason is when Tom Ferrin wrote vcat, the only fonts he had were the old Hershey fonts (fonts have gotten >>so<< much better since then). So troff is using Wang CAT4 typesetter font rules and Tim is doing the best he can to map that to Hershey. The PS CAT simulator in Transcript has the same issue BTW. It's a little better since the PS fonts are better but they don't map the 100%. However, if you use ditroff, Adobe supplied the rules in Transcript so that ditroff did its calculations using the proper fonts (Adobe's not Wang's). Clem --000000000000d26cd005ab59ee1a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Jul 26, 2020 at 10:5= 8 AM Will Senn <will.senn@gmail.c= om> wrote:
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 pesteri= ng y'all about vi anymore :). One the other hand, now I'm intere= sted in printing the docs.
Wimp ..= ;-)=C2=A0 seriously at this step, it might be easier for you as a more mod= ern user.=C2=A0

2.11bsd comes with docs in, of all places, /usr/doc.
Well that is where is was in V7 ;-)

= =C2=A0
In there are makefiles for making the docs - ok, make nroff will make ascii docs, and troff will make troff? docs using Ossana's 'origina= l' troff.
yep

=C2= =A0
So, after adding -t to it so it didn'= ;t complain about 'typesetter busy', I got no errors.
right...

=C2=A0
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).
=



All of these tools have modern FOSS equivalents, but it may take some hunt= ing to find them.=C2=A0 I think sources to transcript 2.0 can be found if y= ou google around.=C2=A0 I'm not sure Adobe ever officially=C2=A0made is= FOSS, but after the modern equivalent showed up, I'm not aware of them= minding that people did not have the license since it sold more printers w= ith PostScript.=C2=A0 =C2=A0 That should just recompile on V7 or later and = 'just work.'=C2=A0 The modern equivalent might take some backportin= g.


2. Is there a way to build postscript directly on the system?
Yes, see above.
3. Is there an alternative modern way to get to ps or pdf output from the nroff/troff that 2.11 has?
Yep - Ghostscript based tools which is what the Transcript re= placements tend to use.=C2=A0

I'm still digging into the nroff stuff as that may be just mino= r 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.
Be careful - = that's not quite the same.=C2=A0 Basically groff fixed a number of long= -standing issues that older troff/ditroff=C2=A0had worked around.=C2=A0 Usu= ally, the difference is that the original nroff/troff has some defaults tha= t now need to make explicit.=C2=A0 But most older *roff documents can go th= rough modern groff just fine.=C2=A0 The more typical error from old documen= ts is a site that did not have a Versatec or later an Apple Laserwriter and= only supported nroff.=C2=A0 =C2=A0A number of documents when created for n= roff will look ugly when you run them through any version of troff (old or = new) as the document authors never took the time to deal with the differenc= es in the output device.

=C2=A0
Although, the files dis= play ok in 2.11bsd using nroff -ms nroff.out...
I would expect so. I bet they are fine with troff -t or if you can find di= troff (which also maybe on Kirk's CD) and then run the output through v= cat or transcript.=C2=A0 =C2=A0Note if you used vcat you will get some prin= ting facsimiles=C2=A0that =C2=A0were there back in the day.=C2= =A0 The reason is when Tom Ferrin wrote vcat, the only fonts he had were th= e old Hershey fonts (fonts have gotten >>so<< much better since= then).=C2=A0 =C2=A0So troff is using Wang CAT4 typesetter font rules and T= im is doing the best he can to map that to Hershey.=C2=A0 The PS CAT simula= tor in Transcript has the same issue BTW.=C2=A0 It's a little better si= nce the PS fonts are better but they don't map the 100%.=C2=A0 However,= if you use ditroff, Adobe supplied the rules in Transcript so that ditroff= did its calculations using the proper fonts (Adobe's not Wang's).<= /span>

Clem
--000000000000d26cd005ab59ee1a--