[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: user-defined characters, translation maps, and environment binding
From: |
G. Branden Robinson |
Subject: |
Re: user-defined characters, translation maps, and environment binding |
Date: |
Mon, 24 Apr 2023 08:58:53 -0500 |
[self-follow-up]
It turns out groff has changed the way not merely `char`, but the
vaunted `tr` itself, has worked before.
https://git.savannah.gnu.org/cgit/groff.git/commit/?id=21260e1cd2f6fed6b7798fae6078c4e0270d9641
Once upon a time, you could do this:
.tr éÉ
...and on non-preconv'ed input, no less.
But not since June 2002. Before that, actually, as the commit above is
merely a documentation update.
preconv was introduced into the groff tree in December 2005, so there
was a good 2½ years there where you HAD to rewrite the above input as:
.tr é\['E]
You could (and can) still get away with 8-bit input on the left-hand
sides of translations. Given that support for EBCDIC CCIDS 1047 is no
longer required for groff to operate on z/OS (a.k.a. OS/390 Unix), and
Latin-1 is much less lively now than it was in 2002, it doesn't seem
worth preserving even that if it gets in the way of GNU troff reading
UTF-8 input directly.
> At 2023-04-24T11:31:10+0100, Ralph Corderoy wrote:
> > It's a long-standing idiom. Not abuse.
[...]
> > - It avoids having to re-work existing documents.
So did the change above.
Regards,
Branden
signature.asc
Description: PGP signature
- Proposed: stop subjecting right-hand sides of `char` family requests to character translation, Douglas McIlroy, 2023/04/01
- Re: Proposed: stop subjecting right-hand sides of `char` family requests to character translation, G. Branden Robinson, 2023/04/01
- Re: Proposed: stop subjecting right-hand sides of `char` family requests to character translation, Ralph Corderoy, 2023/04/02
- Re: Proposed: stop subjecting right-hand sides of `char` family requests to character translation, Douglas McIlroy, 2023/04/02
- Re: Proposed: stop subjecting right-hand sides of `char` family requests to character translation, Dave Kemper, 2023/04/10
- user-defined characters, translation maps, and environment binding (was: Proposed: stop subjecting right-hand sides of `char` family requests), G. Branden Robinson, 2023/04/24
- Re: user-defined characters, translation maps, and environment binding, Ralph Corderoy, 2023/04/24
- Re: user-defined characters, translation maps, and environment binding, G. Branden Robinson, 2023/04/24
- Re: user-defined characters, translation maps, and environment binding,
G. Branden Robinson <=