groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 40/51: [mdoc]: Remap monospaced fonts in nroff mode.


From: G. Branden Robinson
Subject: [groff] 40/51: [mdoc]: Remap monospaced fonts in nroff mode.
Date: Sun, 11 Sep 2022 08:15:55 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 0c5dec0515b1c78e035fe2ba3116b21ca3779951
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Sep 8 04:23:28 2022 -0500

    [mdoc]: Remap monospaced fonts in nroff mode.
    
    * tmac/mdoc/doc-nroff: Map monospaced fonts (CR, CB, CI, CBI) to
      standard styles as man(7) has done for 15 years.  This silences
      warnings from the formatter when a man page attempts to use fonts from
      the Courier family in tbl(1) tables, which is about the only place a
      reasonable man page attempts such a thing.
---
 ChangeLog           | 8 ++++++++
 tmac/mdoc/doc-nroff | 6 ++++++
 2 files changed, 14 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 43a0ac144..9b3aa6b8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-09-08  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/mdoc/doc-nroff: Map monospaced fonts (CR, CB, CI, CBI) to
+       standard styles as man(7) has done for 15 years.  This silences
+       warnings from the formatter when a man page attempts to use
+       fonts from the Courier family in tbl(1) tables, which is about
+       the only place a reasonable man page attempts such a thing.
+
 2022-09-07  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [mdoc]: Stop prefixing center header with name of operating
diff --git a/tmac/mdoc/doc-nroff b/tmac/mdoc/doc-nroff
index b5f8533cc..901100a06 100644
--- a/tmac/mdoc/doc-nroff
+++ b/tmac/mdoc/doc-nroff
@@ -81,6 +81,12 @@
 .\" the following switch is ignored in nroff mode
 .nr S 10
 .
+.\" Map monospaced fonts to standard styles.
+.ftr CR R
+.ftr CI I
+.ftr CB B
+.ftr CBI BI
+.
 .\" the 'doc-xx-font' strings must not be empty!
 .
 .ds doc-caption-font \f[R]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]