[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 34/51: [mdoc]: Render `Ux` macro as "Unix", in mixed case.
From: |
G. Branden Robinson |
Subject: |
[groff] 34/51: [mdoc]: Render `Ux` macro as "Unix", in mixed case. |
Date: |
Sun, 11 Sep 2022 08:15:54 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 8dcc3aad38edd8b04a6418b4599479e8f98dc8eb
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Sep 7 22:34:08 2022 -0500
[mdoc]: Render `Ux` macro as "Unix", in mixed case.
* tmac/mdoc/doc-syms (Ux): Do it. Also remove local string after we're
done with it. Also fix style nit: an unrecognized parameter in macro
argument processing is exactly that, not "unknown".
* tmac/groff_mdoc.7.man: Update documentation.
See commit 2d7749c311, 11 November 2018.
---
ChangeLog | 9 +++++++++
tmac/groff_mdoc.7.man | 8 ++++----
tmac/mdoc/doc-syms | 5 +++--
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 87b996a06..b3e713a75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-09-07 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [mdoc]: Render `Ux` macro as "Unix", in mixed case.
+
+ * tmac/mdoc/doc-syms (Ux): Do it. Also remove local string
+ after we're done with it.
+
+ Continues work begun prior to groff 1.22.4 release.
+
2022-09-07 G. Branden Robinson <g.branden.robinson@gmail.com>
[mdoc]: Align spacing around headers with man(7).
diff --git a/tmac/groff_mdoc.7.man b/tmac/groff_mdoc.7.man
index 2b1ca8217..400fb0f76 100644
--- a/tmac/groff_mdoc.7.man
+++ b/tmac/groff_mdoc.7.man
@@ -203,7 +203,7 @@ as follows:
. It "DragonFly Macro"
. It "OpenBSD Macro"
. It "BSD/OS Macro"
-. It "UNIX Macro"
+. It "Unix Macro"
. It "Emphasis Macro"
. It "Font Mode"
. It "Enclosure and Quoting Macros"
@@ -1057,8 +1057,8 @@ the release ID.
.Pp
For
.Tn ATT ,
-an unknown second parameter will be replaced with the string
-.Tn UNIX ;
+an unrecognized second parameter will be replaced with the string
+.Dq Ux ;
for the other predefined acronyms it will be ignored and a warning
message emitted.
.
@@ -2656,7 +2656,7 @@ command above in section
.El
.
.
-.Ss "UNIX Macro"
+.Ss "Unix Macro"
.
.Pp
.Dl Usage: .Ux ...
diff --git a/tmac/mdoc/doc-syms b/tmac/mdoc/doc-syms
index f68673569..6993ad425 100644
--- a/tmac/mdoc/doc-syms
+++ b/tmac/mdoc/doc-syms
@@ -33,7 +33,7 @@
.
.
.\" NS Ux user macro
-.\" NS print UNIX
+.\" NS format Unix
.\" NS
.\" NS modifies:
.\" NS doc-arg-ptr
@@ -57,7 +57,8 @@
. \}
.
. \" replace current argument with result
-. ds doc-arg\n[doc-arg-ptr] UNIX\*[doc-str-Ux]
+. ds doc-arg\n[doc-arg-ptr] Unix\*[doc-str-Ux]
+. rm doc-str-Ux
. nr doc-type\n[doc-arg-ptr] 2
. ds doc-space\n[doc-arg-ptr] "\*[doc-space]
.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 34/51: [mdoc]: Render `Ux` macro as "Unix", in mixed case.,
G. Branden Robinson <=