From: "G. Branden Robinson" <g.branden.robinson@gmail.com>
To: Clem Cole <clemc@ccc.com>
Cc: "Jacobson, Doug W [E CPE]" <dougj@iastate.edu>,
"tuhs@tuhs.org" <tuhs@tuhs.org>,
groff@gnu.org
Subject: [TUHS] Re: Old troff files (1988-2007)
Date: Sat, 5 Oct 2024 17:22:07 -0500 [thread overview]
Message-ID: <20241005222207.eerdrgtsttmx42kb@illithid> (raw)
In-Reply-To: <CAC20D2N1DzbayREBTMtuJ0_ynGgZWp01NiuBBzsEmQLx-w5Sbw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4108 bytes --]
Hi Clem,
At 2024-10-05T09:14:27-0400, Clem Cole wrote:
> Branden. Thank you. FWIW I have generally found heirloom to be
> good enough for rendering most old troff on modern systems such that I
> can reasonably read the text.
I generally get good results with it as well. I frequently compare the
behaviors of DWB 3.3 troff and Heirloom troff with 2-3 versions of GNU
troff (1.22.4 [2018], 1.23.0 [2023], and bleeding-edge development).
Setting aside the issue of extensions (whether to the *roff language, to
preprocessors, or to macro packages), I find that Heirloom fixes many
DWB bugs. I think GNU troff can boast of slightly better terminal
support, although nroff veterans are sometimes scandalized by GNU
troff's terminal output driver (grotty(1)) assuming that it's _not_
talking to a Teletype Model 37, but rather a more-or-less ECMA-48 video
terminal.
To brutally abbreviate the history, for $reasons Unix nroff got frozen
in amber in 1978 with respect to terminal support, and continues to live
in a world where the termcap and terminfo libraries were never written.
Unfortunately, the maintainer of the less(1) pager still presumes
(prefers?) that world.
A previous groff maintainer observed that few of our users operate paper
terminals. (Nevertheless grotty retains support for them with its `-c`
option.)
Anton Shepelev wrote a summary I find admirably concise and blunt:
"`grotty' is not an appendix to a pager, but a program for printing
direct to the terminal. Most terminals support those basic ANSI
control sequences, and many console programs freely use them. If a
pager cannot transparently forward them to the terminal, it is a
problem of the pager, not of `grotty', and having a broken -man
configuration by default to just to appease `less' is stupid."
> That said I often use the groff tools kits since it’s what comes with
> things like brew on my Mac but it burps on certain macros,
> particularly when I want to render old man pages or doc files from old
> Unix versions with things like .UX macro (which is a PITA).
Yes. Our ms(7) manual ("ms.ms"), originally by Larry Kollar, concedes
its limitations.
--- snip ---
7.1. Unix Version 7 ms macros not implemented by groff ms
Several macros described in the Unix Version 7 ms documentation are
unimplemented by groff ms because they are specific to the requirements
of documents produced internally by Bell Laboratories, some of which
also require a glyph for the Bell System logo that groff does not sup‐
port. These macros implemented several document type formats (EG, IM,
MF, MR, TM, TR), were meaningful only in conjunction with the use of
certain document types (AT, CS, CT, OK, SG), stored the postal addresses
of Bell Labs sites (HO, IH, MH, PY, WH), or lacked a stable definition
over time (UX). To compatibly render historical ms documents using
these macros, we advise your documents to invoke the rm request to re‐
move any such macros it uses and then define replacements with an au‐
thentically typeset original at hand.[10] For informal purposes, a sim‐
ple definition of UX should maintain the readability of the document’s
substance.
┌───────────────┐
│ .rm UX │
│ .ds UX Unix\" │
└───────────────┘
───────────
[10] The removal beforehand is necessary because groff ms aliases
these macros to a diagnostic macro, and you want to redefine the aliased
name, not its target.
--- end snip ---
The point of the `UX` macro was to abstract away the problem of sticking
a footnote at the bottom of the page to acknowledge (or in the Labs'
case, announce) the holder of the Unix trade mark on its first
occurrence.
I suspect the CSRC did not anticipate that the trade mark would ever
change hands, let alone how many times...
Regards,
Branden
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-10-05 22:22 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 21:42 [TUHS] " Jacobson, Doug W [E CPE] via TUHS
2024-10-04 21:50 ` [TUHS] " Lyndon Nerenberg (VE7TFX/VE6BBM)
2024-10-04 21:52 ` Jacobson, Doug W [E CPE] via TUHS
2024-10-04 22:10 ` Bakul Shah via TUHS
2024-10-04 23:01 ` Clem Cole
2024-10-04 23:16 ` Clem Cole
2024-10-05 0:14 ` G. Branden Robinson
2024-10-05 4:09 ` Peter Yardley
2024-10-05 13:14 ` Clem Cole
2024-10-05 22:22 ` G. Branden Robinson [this message]
[not found] ` <CAC20D2NgmzDxhQu5P5hjrZ3ciSv=KayiUg8GwsFRpu0wPasprw@mail.gmail.com>
2024-10-06 5:53 ` [TUHS] Why groff ms doesn't completely support historical documents G. Branden Robinson
2024-10-06 12:54 ` [TUHS] Re: Old troff files (1988-2007) Jaap Akkerhuis
2024-10-06 15:11 ` G. Branden Robinson
2024-10-06 16:21 ` Ron Natalie
2024-10-09 21:02 ` Ron Natalie
2024-10-07 14:50 ` Leah Neukirchen
2024-10-08 6:45 ` G. Branden Robinson
2024-10-08 10:33 ` Jacobson, Doug W [E CPE] via TUHS
2024-10-08 10:49 ` G. Branden Robinson
2024-10-08 11:24 ` Jacobson, Doug W [E CPE] via TUHS
2024-10-16 21:40 ` Anton Shepelev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241005222207.eerdrgtsttmx42kb@illithid \
--to=g.branden.robinson@gmail.com \
--cc=clemc@ccc.com \
--cc=dougj@iastate.edu \
--cc=groff@gnu.org \
--cc=tuhs@tuhs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).