groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/08: tmac/trans.tmac: More commit c64fd60dff follow-up.


From: G. Branden Robinson
Subject: [groff] 03/08: tmac/trans.tmac: More commit c64fd60dff follow-up.
Date: Thu, 27 Jan 2022 11:05:32 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit c859eafcd8cd50af40b9d6aa402ec591c434964b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Jan 25 22:15:07 2022 +1100

    tmac/trans.tmac: More commit c64fd60dff follow-up.
    
    * tmac/trans.tmac: Further follow up commit c64fd60dff.  If the `andoc`
      wrapper is being used, perform man(7) localization (not just when `an`
      is loaded).
---
 ChangeLog       |  6 ++++++
 tmac/trans.tmac | 11 ++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 82566abb..efa2a0fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,12 @@
        * src/devices/gropdf/gropdf.pl: Use either '\\\\\\\\n' or
        '\[u000a]' as line separators in the string.
 
+2022-01-25  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/trans.tmac: Further follow up commit c64fd60dff.  If the
+       `andoc` wrapper is being used, perform man(7) localization (not
+       just when `an` is loaded).
+
 2022-01-25  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [man pages]: Fix options used to generate compilations.
diff --git a/tmac/trans.tmac b/tmac/trans.tmac
index d5257f52..a06426b3 100644
--- a/tmac/trans.tmac
+++ b/tmac/trans.tmac
@@ -31,7 +31,14 @@
 .\" trans.tmac should stay locale-independent.
 .
 .\" man package
-.if d an \{\
+.\"
+.\" Either an.tmac or andoc.tmac may already be loaded.
+.nr trans*is-man 0
+.
+.if d an         .nr trans*is-man 1
+.if d reload-man .nr trans*is-man 1
+.
+.if \n[trans*is-man] \{\
 .      als an*section1 \*[locale]-man-section1
 .      als an*section2 \*[locale]-man-section2
 .      als an*section3 \*[locale]-man-section3
@@ -43,6 +50,8 @@
 .      als an*section9 \*[locale]-man-section9
 .\}
 .
+.rr trans*is-man
+.
 .\" ms package
 .if r GS \{\
 .      als ABSTRACT \*[locale]-abstract



reply via email to

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