[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 15/49: tmac/e.tmac-u: Rename devtag-related registers.
From: |
G. Branden Robinson |
Subject: |
[groff] 15/49: tmac/e.tmac-u: Rename devtag-related registers. |
Date: |
Wed, 16 Jun 2021 19:53:18 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 0c6a585758b923616ee83b1e0c7e185408c6dea8
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Jun 17 02:54:22 2021 +1000
tmac/e.tmac-u: Rename devtag-related registers.
* tmac/e.tmac-u: Rename registers for clarity. Unlike other macro
packages supplied by groff, "me" mostly remains within the AT&T
2-character name space, accessing extended names selectively through
`do` and `de1` requests. The package therefore has no characteristic
name prefix.
need_eo_h -> devtag-needs-end-of-heading
need_eo_tl -> devtag-needs-end-of-title
need_tl -> devtag-needs-title
(@html_check_need_title, sh, EQ): The foregoing registers are
effectively Booleans, so perform Boolean-style tests on their
interpolations.
Fixes a second third of <https://savannah.gnu.org/bugs/?42515>.
---
ChangeLog | 16 ++++++++++++++++
tmac/e.tmac-u | 26 +++++++++++++-------------
2 files changed, 29 insertions(+), 13 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cf8080d..c71ecca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2021-06-17 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * tmac/e.tmac-u: Rename registers for clarity. Unlike other
+ macro packages supplied by groff, "me" mostly remains within the
+ AT&T 2-character name space, accessing extended names
+ selectively through `do` and `de1` requests. The package
+ therefore has no characteristic name prefix.
+ need_eo_h -> devtag-needs-end-of-heading
+ need_eo_tl -> devtag-needs-end-of-title
+ need_tl -> devtag-needs-title
+ (@html_check_need_title, sh, EQ): The foregoing registers are
+ effectively Booleans, so perform Boolean-style tests on their
+ interpolations.
+
+ Fixes a second third of <https://savannah.gnu.org/bugs/?42515>.
+
2021-06-16 G. Branden Robinson <g.branden.robinson@gmail.com>
* tmac/e.tmac-u: Work in compatibility mode. It seems this was
diff --git a/tmac/e.tmac-u b/tmac/e.tmac-u
index dcd3c19..ecbfc48 100644
--- a/tmac/e.tmac-u
+++ b/tmac/e.tmac-u
@@ -37,9 +37,9 @@
.\" --- an internal macro.
.\"
.
-.do nr need_eo_h 0
-.do nr need_eo_tl 0
-.do nr need_tl 1
+.do nr devtag-needs-end-of-heading 0
+.do nr devtag-needs-end-of-title 0
+.do nr devtag-needs-title 1
.
.do mso devtag.tmac
.
@@ -50,19 +50,19 @@
.
.\" --- check whether grohtml needs end of title/heading
.do de1 @html_check_need_title
-.if (\\n[need_eo_tl] == 1) \
+.if \\n[devtag-needs-end-of-title] \
\{\
-. nr need_eo_tl 0
+. nr devtag-needs-end-of-title 0
. DEVTAG-EO-TL
.\}
-.if (\\n[need_tl] == 1) \
+.if \\n[devtag-needs-title] \
\{\
. DEVTAG-TL
-. nr need_tl 0
-. nr need_eo_tl 1
+. nr devtag-needs-title 0
+. nr devtag-needs-end-of-title 1
.\}
-.if \\n[need_eo_h]>0 .do DEVTAG-EO-H
-.nr need_eo_h 0
+.if \\n[devtag-needs-end-of-heading] .DEVTAG-EO-H
+.nr devtag-needs-end-of-heading 0
..
.
.\" If this macro were non-empty, we'd want to define it with .de1.
@@ -765,7 +765,7 @@
.if '\*(.T'html' \
\{\
. do DEVTAG-SH \\$1
-. do nr need_eo_h 1
+. do nr devtag-needs-end-of-heading 1
.\}
.@d "\\$1" +1 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
.if !"\\$2"_" \
@@ -1147,8 +1147,8 @@
.\" EQN
.\"
.de EQ \" *** equation start
-.do if \\n[need_eo_h]>0 .do DEVTAG-EO-H
-.do nr need_eo_h 0
+.do if \\n[devtag-needs-end-of-heading] .do DEVTAG-EO-H
+.do nr devtag-needs-end-of-heading 0
.ec
.if "\*(.T"html" \
\{\
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 15/49: tmac/e.tmac-u: Rename devtag-related registers.,
G. Branden Robinson <=