gbranden pushed a commit to branch master
in repository groff.

commit c1128a51b0f702453ff2ab0d02bc2085de1b1963
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Sep 14 12:47:29 2024 -0500

    [doc,man]: Intro register format concept sooner.
---
 doc/groff.texi.in | 9 +++++++--
 man/roff.7.man    | 9 ++++++++-
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 59ab49d3f..dd45cfa2f 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -7877,8 +7877,13 @@ desirable to test the page number independently of its 
format.
 
 Predefined registers whose identifiers start with a dot are read-only.
 Many are Boolean-valued, interpolating a true or false value testable
-with the @code{if}, @code{ie}, or @code{while} requests.  Some read-only
-registers are string-valued, meaning that they interpolate text.
+with the @code{if}, @code{ie}, or @code{while} requests.
+@cindex format, register
+@cindex register format
+Each register can be assigned a @dfn{format}, causing its value to
+interpolate with leading zeroes, in Roman numerals, or alphabetically.
+Some read-only registers are string-valued, meaning that they
+interpolate text and lack a format.
 
 @cindex removing a built-in register
 @cindex register, built-in, removing
diff --git a/man/roff.7.man b/man/roff.7.man
index ad1507a59..a388bbd04 100644
--- a/man/roff.7.man
+++ b/man/roff.7.man
@@ -675,7 +675,14 @@ The latter are generally in basic units;
 can be appended to numeric expressions to clarify their meaning when
 stored or interpolated.
 .
-Some read-only predefined registers interpolate text.
+Each register can be assigned a
+.I format,
+causing its value to interpolate with leading zeroes,
+in Roman numerals,
+or alphabetically.
+.
+Some read-only registers are string-valued,
+meaning that they interpolate text and lack a format.
 .
 .
 .P

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to