[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 09/09: [tmac]: Drop AT&T troff font aliases/remappings.
From: |
G. Branden Robinson |
Subject: |
[groff] 09/09: [tmac]: Drop AT&T troff font aliases/remappings. |
Date: |
Fri, 1 Sep 2023 11:16:08 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 1d8452fb2ae3afd9bb8cb8a7f7f31741d41e85da
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Sep 1 09:48:40 2023 -0500
[tmac]: Drop AT&T troff font aliases/remappings.
Now that we have working diagnostics for font selection problems, users
will be made aware of portability issues and can address them where they
feel appropriate; in a document, in the "troffrc" file, or by modifying
these files.
* tmac/X.tmac:
* tmac/dvi.tmac:
* tmac/html.tmac:
* tmac/lbp.tmac:
* tmac/lj4.tmac:
* tmac/ps.tmac: Do it.
* NEWS: Add item.
Also drop old style Emacs file-local variable settings.
---
ChangeLog | 17 +++++++++++++++++
NEWS | 14 ++++++++++++++
tmac/X.tmac | 9 +--------
tmac/dvi.tmac | 9 ---------
tmac/html.tmac | 11 -----------
tmac/lbp.tmac | 15 ---------------
tmac/lj4.tmac | 12 +++---------
tmac/ps.tmac | 23 -----------------------
8 files changed, 35 insertions(+), 75 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ce34dd04e..a4cdd5a8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2023-09-01 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [tmac]: Drop AT&T troff font aliases/remappings. Now that we
+ have working diagnostics for font selection problems, users will
+ be made aware of portability issues and can address them where
+ they feel appropriate; in a document, in the "troffrc" file, or
+ by modifying these files.
+
+ * tmac/X.tmac:
+ * tmac/dvi.tmac:
+ * tmac/html.tmac:
+ * tmac/lbp.tmac:
+ * tmac/lj4.tmac:
+ * tmac/ps.tmac: Do it.
+
+ * NEWS: Add item.
+
2023-08-31 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/tests/localization-works.sh: Test hyphenation modes for
diff --git a/NEWS b/NEWS
index 3efdefd0e..a39754856 100644
--- a/NEWS
+++ b/NEWS
@@ -46,6 +46,20 @@ o The new "reset" primitive restores a named parameter to
its default.
Macro packages
--------------
+o The device-specific macro files loaded by "troffrc" automatically on
+ startup, such as "ps.tmac" and "html.tmac", no longer perform font
+ translations for font names used by varieties of AT&T troff ('C',
+ 'Hb', 'HX', and many others). These names are not portable: in AT&T
+ troff, the font repertoire, like the special character repertoire, was
+ device-dependent. Since groff 1.23.0, our diagnostic messages report
+ problems with attempts to use nonexistent font names. We recommend
+ addressing such portability issues wherever suits you; in a document,
+ perhaps by using `ie` and `el` requests and the `.g` register to test
+ for groff extensions; in your "troffrc" file; or by modifying these
+ macro files. Users of the "dvi" and "lbp" output devices should be
+ aware that these devices don't supply full families of monospaced
+ fonts (and never have). See grodvi(1) and grolbp(1).
+
o Hyperlink support is now enabled by default on non-HTML devices that
support it (PDF and terminal devices) for an (man) documents.
Instructions and commented code for disabling it remain in the
diff --git a/tmac/X.tmac b/tmac/X.tmac
index 31fb20c80..c5ef3293a 100644
--- a/tmac/X.tmac
+++ b/tmac/X.tmac
@@ -2,14 +2,7 @@
.\"
.do nr *groff_X_tmac_C \n[.cp]
.cp 0
-.ftr CW CR
-.ftr C CR
-.ftr CO CI
-.ftr CX CBI
-.ftr H HR
-.ftr HO HI
-.ftr HX HBI
-.ftr NX NBI
+.
.char \[ru] \D'l .5m 0'
.char \[ul] \v'.25m'\D'l .5m 0'\v'-.25m'
.char \[br] \v'.25m'\D'l 0 -1m'\v'.75m'
diff --git a/tmac/dvi.tmac b/tmac/dvi.tmac
index 5ce2c4cc2..6fbf305ed 100644
--- a/tmac/dvi.tmac
+++ b/tmac/dvi.tmac
@@ -3,15 +3,6 @@
.do nr *groff_dvi_tmac_C \n[.cp]
.cp 0
.
-.ftr CR CW
-.ftr C CW
-.ftr CO CWI
-.ftr CI CWI
-.ftr CB CW
-.ftr CBI CWI
-.ftr TT CW
-.ftr H HR
-.
.special TR TI MI S SA SB CW
.fspecial TI CWI
.fspecial TBI CWI
diff --git a/tmac/html.tmac b/tmac/html.tmac
index 887b2882c..c67bd8776 100644
--- a/tmac/html.tmac
+++ b/tmac/html.tmac
@@ -1,5 +1,3 @@
-.\" -*- nroff -*-
-.\"
.\" html.tmac
.\"
.do nr *groff_html_tmac_C \n[.cp]
@@ -7,15 +5,6 @@
.
.nroff
.
-.ftr CW CR
-.ftr C CR
-.ftr CO CI
-.ftr CX CBI
-.ftr H HR
-.ftr HO HI
-.ftr HX HBI
-.ftr NX NBI
-.
.fchar \[fi] fi
.fchar \[fl] fl
.fchar \[ff] ff
diff --git a/tmac/lbp.tmac b/tmac/lbp.tmac
index ad913a71e..cd762a2bb 100644
--- a/tmac/lbp.tmac
+++ b/tmac/lbp.tmac
@@ -1,23 +1,8 @@
-.\" -*- nroff -*-
-.\"
.\" lbp.tmac
.\"
.do nr *groff_lbp_tmac_C \n[.cp]
.cp 0
.
-.ftr CW CR
-.ftr C CR
-.ftr CO CI
-.ftr H HR
-.ftr HO HI
-.ftr HX HBI
-.ftr Hr HNR
-.ftr Hi HNI
-.ftr Hb HNB
-.ftr Hx HNBI
-.ftr EBI EI
-.ftr CBI CI
-.
.fchar \[fi] fi
.fchar \[fl] fl
.fchar \[ff] ff
diff --git a/tmac/lj4.tmac b/tmac/lj4.tmac
index 60c8c1a9b..2fb2b51ed 100644
--- a/tmac/lj4.tmac
+++ b/tmac/lj4.tmac
@@ -1,20 +1,14 @@
-.\" -*- nroff -*-
-.\"
.\" lj4.tmac
.\"
.do nr *groff_lj4_tmac_C \n[.cp]
.cp 0
.
-.ftr CW CR
-.ftr C CR
-.ftr CX CBI
-.ftr H UR
+.\" The device doesn't offer Helvetica per se. In groff, "H" means
+.\" "whatever sans serif family is available". Here, that is "U".
.ftr HR UR
+.ftr HI UI
.ftr HB UB
.ftr HBI UBI
-.ftr HI UI
-.ftr HO UI
-.ftr HX UBI
.
.char \[or] \h'.1m'\Z'\D'l 0 -.675m''\h'.1m'
.
diff --git a/tmac/ps.tmac b/tmac/ps.tmac
index 9e59c571b..b67296206 100644
--- a/tmac/ps.tmac
+++ b/tmac/ps.tmac
@@ -1,31 +1,8 @@
-.\" -*- nroff -*-
-.\"
.\" ps.tmac
.\"
.do nr *groff_ps_tmac_C \n[.cp]
.cp 0
.
-.ftr AX ABI
-.ftr KR BMR
-.ftr KI BMI
-.ftr KB BMB
-.ftr KX BMBI
-.ftr CW CR
-.ftr CO CI
-.ftr CX CBI
-.ftr H HR
-.ftr HO HI
-.ftr HX HBI
-.ftr Hr HNR
-.ftr Hi HNI
-.ftr Hb HNB
-.ftr Hx HNBI
-.ftr NX NBI
-.ftr PA PR
-.ftr PX PBI
-.ftr ZI ZCMI
-.ftr C CR
-.
.cflags 8 \[an]
.
.char \[radicalex] \h'-\w'\[sr]'u'\[radicalex]\h'\w'\[sr]'u'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 09/09: [tmac]: Drop AT&T troff font aliases/remappings.,
G. Branden Robinson <=