bug-groff
[Top][All Lists]
Advanced

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

[bug #63764] tmac/an.tmac: translate font CW to R in nroff mode


From: G. Branden Robinson
Subject: [bug #63764] tmac/an.tmac: translate font CW to R in nroff mode
Date: Mon, 6 Feb 2023 13:14:30 -0500 (EST)

Follow-up Comment #2, bug #63764 (project groff):

I am however doing the following.


commit 35c2fea2dca9ae71fb59ad045f32cf279881b0f8 (HEAD -> master)
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Feb 6 12:11:43 2023 -0600

    tmac/{man,mdoc}.local: Add "CW" font advice.
    
    Add commented-out technique for coping with this unportable font name.
    
    Prompted by Bjarni Ingi Gislason in
    <https://savannah.gnu.org/bugs/?63768>.

diff --git a/tmac/man.local b/tmac/man.local
index da7cd6c9c..ed5706b41 100644
--- a/tmac/man.local
+++ b/tmac/man.local
@@ -8,6 +8,12 @@
 .  if !r U \
 .    nr U 0
 .\"
+.\" "CW" is not a portable font name, but some man pages use it anyway.
+.\" Uncomment this to suppress warnings produced by such pages.  This
+.\" test remaps the font to roman ("R") on nroff (terminal) devices. You
+.\" might prefer to remap it to bold ("B") instead.
+.\" .if n .ftr CW R
+.\"
 .\" Local Variables:
 .\" mode: nroff
 .\" fill-column: 72
diff --git a/tmac/mdoc.local b/tmac/mdoc.local
index b219285d1..94688aba0 100644
--- a/tmac/mdoc.local
+++ b/tmac/mdoc.local
@@ -2,6 +2,12 @@
 .\"
 .\" Put local modifications to groff_mdoc(7)'s behavior here.
 .\"
+.\" "CW" is not a portable font name, but some man pages use it anyway.
+.\" Uncomment this to suppress warnings produced by such pages.  This
+.\" test remaps the font to roman ("R") on nroff (terminal) devices. You
+.\" might prefer to remap it to bold ("B") instead.
+.\" .if n .ftr CW R
+.\"
 .\" Local Variables:
 .\" mode: nroff
 .\" fill-column: 72



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63764>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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