[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 25/40: [man]: Trivially refactor.
From: |
G. Branden Robinson |
Subject: |
[groff] 25/40: [man]: Trivially refactor. |
Date: |
Sat, 5 Feb 2022 12:58:06 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 9ed3469742ba379cb3ad2e79b2769f68f31c5a80
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Feb 5 03:09:34 2022 +1100
[man]: Trivially refactor.
* tmac/an.tmac (an*localize): Rename to...
(an*localize-strings): ...this.
(TH): Update call site.
---
ChangeLog | 8 ++++++++
tmac/an.tmac | 8 +++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8e5c1bb9..bb527a4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-02-04 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [man]: Trivially refactor.
+
+ * tmac/an.tmac (an*localize): Rename to...
+ (an*localize-strings): ...this.
+ (TH): Update call site.
+
2022-02-03 G. Branden Robinson <g.branden.robinson@gmail.com>
[docs]: Present several fundamental concepts.
diff --git a/tmac/an.tmac b/tmac/an.tmac
index 7b18a7d6..59a7156b 100644
--- a/tmac/an.tmac
+++ b/tmac/an.tmac
@@ -165,7 +165,7 @@
..
.
.\" Localize manual section titles for English.
-.de an*localize
+.de an*localize-strings
. ds an*section1 General Commands Manual\"
. ds an*section2 System Calls Manual\"
. ds an*section3 Library Functions Manual\"
@@ -232,6 +232,10 @@
. \}
. \}
.
+. \" The previous document rendered in a batch may have been in a
+. \" different language. If this one is in English, (re-)init strings.
+. if '\\*[locale]'english' .an*localize-strings
+.
. ps \\n[PS]u
. vs \\n[VS]u
. ad \\*[AD]
@@ -251,8 +255,6 @@
. nr an-need-break 0
. nr an-is-in-diversion 0
.
-. if '\\*[locale]'english' .an*localize
-.
. ds an-title "\\$1\"
. if \\n[CT] .stringup an-title
. ds an-section "\\$2\"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 25/40: [man]: Trivially refactor.,
G. Branden Robinson <=