gbranden pushed a commit to branch master
in repository groff.
commit febcfb7e32980412169c6db3b527fa2524f67ce3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Jun 12 11:37:26 2024 -0500
[mm]: Finish support for DWB mm `E` register.
* contrib/mm/m.tmac: Complete (mostly already existing) support for DWB
mm `E` register.
* NEWS:
* contrib/mm/groff_mm.7.man (Description, Registers): Document it.
---
NEWS | 2 ++
contrib/mm/ChangeLog | 6 ++++++
contrib/mm/groff_mm.7.man | 24 +++++++++++++++++++++---
contrib/mm/m.tmac | 14 +++++---------
4 files changed, 34 insertions(+), 12 deletions(-)
diff --git a/NEWS b/NEWS
index cdcdc3ce8..292d9b76e 100644
--- a/NEWS
+++ b/NEWS
@@ -333,6 +333,8 @@ o The m (mm) macro package's `IND` macro (a GNU extension),
now calls
`SK` only if no `TXIND` macro is defined, instead of performing this
action as part of the fallback when no `TYIND` macro is defined.
+o The m (mm) macro package now supports the `E` register as DWB mm did.
+
o The s (ms) macro package now sets the vertical spacing register
defaults for normal (`VS`) and footnote (`FVS`) text to 120% of the
type size configured in the `PS` and `FPS` registers, respectively,
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 31b534daf..202ac5188 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-12 G. Branden Robinson <[email protected]>
+
+ * m.tmac: Complete (mostly already existing) support for DWB mm
+ `E` register.
+ * groff_mm.7.man (Description, Registers): Document it.
+
2024-06-12 G. Branden Robinson <[email protected]>
* mm/0.MT:
diff --git a/contrib/mm/groff_mm.7.man b/contrib/mm/groff_mm.7.man
index 29e707fd8..10d16dd19 100644
--- a/contrib/mm/groff_mm.7.man
+++ b/contrib/mm/groff_mm.7.man
@@ -195,7 +195,6 @@ are defined.
The registers
.BR A ,
.BR C ,
-.BR E ,
.BR T ,
and
.BR U ,
@@ -673,8 +672,8 @@ See
.
.
.\" In DWB mm, the mnemonic for `AF` was "alternate first-page format",
-.\" and was described in the context of the `A` and `E` registers and
-.\" `}Z` and `]S` strings, none of which we support.
+.\" and was described in the context of the `A` register and `}Z` and
+.\" `]S` strings, none of which we support.
.\"
.\" The "mm Reference" in _XENIX 286 Text Formatting Guide_ (1984) used
.\" "affiliation", which makes sense to GBR.
@@ -4632,6 +4631,25 @@ see
.
.
.TP
+.B E
+determines the font style used by
+.B MT
+memoranda,
+.B LT
+letters,
+and the
+.I ms.cov
+cover page style to set the date and certain other document data;
+.B 0
+selects roman,
+and
+.B 1
+bold
+(Boolean-valued;
+.BR 1 ).
+.
+.
+.TP
.B Ej
sets the threshold for page breaks (ejection) prior to the format of
headings.
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 4e8eea197..fed827b1f 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -174,21 +174,17 @@ Index array!index
.\"
.nr @copy_type 0
.if r C .nr @copy_type \n[C]
-.\" >0 if Subject/Date/From should be bold, roman otherwise
-.ie n .ds @sdf_font R
-.el .ds @sdf_font B
+.\"
+.if !r E .nr E 1
+.ie \n[E] .ds @sdf_font B\"
+.el .ds @sdf_font R\"
+.\"
.if \n[@copy_type]=4 \{\
. ls 2
. nr Pi 10
. nr Pt 1
.\}
.\"
-.\"
-.if r E \{\
-. ie \n[E] .ds @sdf_font B
-. el .ds @sdf_font R
-.\}
-.\"
.\" Set the type size and vertical spacing. If given on the command
.\" line, these have already been converted to basic units.
.if !r S .nr S 10
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit