groff-commit
[Top][All Lists]
Advanced

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

[groff] 17/49: [mdoc]: Trivially refactor.


From: G. Branden Robinson
Subject: [groff] 17/49: [mdoc]: Trivially refactor.
Date: Sun, 6 Nov 2022 00:37:19 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 7fddad653aa2f22ffcbe872f445d9a79aaf5be6a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Nov 3 06:18:34 2022 -0500

    [mdoc]: Trivially refactor.
    
    * tmac/mdoc/doc-ditroff:
    * tmac/mdoc/doc-nroff: Rename `doc-Tn-font-shape` to `doc-Tn-font` for
      better parallelism with other font selection strings for mdoc macros,
      since the `Tn` macro no longer manipulates the type size.
    
    * tmac/doc.tmac (Tn): Use new name.
    
    This will also make life easier for people who want to manipulate mdoc
    rendering via the mdoc.local file; every macro that can has a
    configurable font rendering will consistently be of the form
    `doc-XX-font`.  I expect Ingo Schwarze is going to want to strike the
    changes I am making to groff mdoc with several bolts of lightning.
---
 ChangeLog             | 9 +++++++++
 tmac/doc.tmac         | 2 +-
 tmac/mdoc/doc-ditroff | 2 +-
 tmac/mdoc/doc-nroff   | 2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c4e7e5ed9..5d7df0ddf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-11-03  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/mdoc/doc-ditroff:
+       * tmac/mdoc/doc-nroff: Rename `doc-Tn-font-shape` to
+       `doc-Tn-font` for better parallelism with other font selection
+       strings for mdoc macros, since the `Tn` macro no longer
+       manipulates the type size.
+       * tmac/doc.tmac (Tn): Use new name.
+
 2022-11-02  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * doc/groff.texi (Debugging): Fix misleading claim.  The
diff --git a/tmac/doc.tmac b/tmac/doc.tmac
index 860aa2420..7b65bc74c 100644
--- a/tmac/doc.tmac
+++ b/tmac/doc.tmac
@@ -1205,7 +1205,7 @@
 .    nr doc-curr-font \n[.f]
 .    nop \)\c
 .    ie !\n[doc-is-reference] \{\
-.      nop \)\*[doc-Tn-font-shape]\c
+.      nop \)\*[doc-Tn-font]\c
 .      doc-print-recursive
 .    \}
 .    el \
diff --git a/tmac/mdoc/doc-ditroff b/tmac/mdoc/doc-ditroff
index fa93fb4de..dc72da2d9 100644
--- a/tmac/mdoc/doc-ditroff
+++ b/tmac/mdoc/doc-ditroff
@@ -74,7 +74,7 @@
 .ds doc-Sh-font \f[B]
 .ds doc-Sy-font \f[B]
 .ds doc-Sx-font \f[B]
-.ds doc-Tn-font-shape \f[R]
+.ds doc-Tn-font \f[R]
 .ds doc-Va-font \f[I]
 .ds doc-Xr-font \f[CR]
 .
diff --git a/tmac/mdoc/doc-nroff b/tmac/mdoc/doc-nroff
index 9649a194c..c554b2ed3 100644
--- a/tmac/mdoc/doc-nroff
+++ b/tmac/mdoc/doc-nroff
@@ -66,7 +66,7 @@
 .ds doc-Sh-font \f[B]
 .ds doc-Sy-font \f[B]
 .ds doc-Sx-font \f[I]
-.ds doc-Tn-font-shape \f[R]
+.ds doc-Tn-font \f[R]
 .ds doc-Va-font \f[I]
 .ds doc-Xr-font \f[R]
 .



reply via email to

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