URL:
<https://savannah.gnu.org/bugs/?64489>
Summary: [PATCH] tmac/tmac.an: Make sentence space adjustable
Group: GNU roff
Submitter: bjarniig
Submitted: Sat 29 Jul 2023 12:56:07 AM UTC
Category: Macro man
Severity: 3 - Normal
Item Group: Feature change
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 29 Jul 2023 12:56:07 AM UTC By: Bjarni Ingi Gislason <bjarniig>
Subject: [PATCH] tmac/tmac.an: Make sentence space adjustable
Provide a register ".SSS" for users so they can choose the distance
between sentences as they want to have it in man pages.
This depends on the source having either two spaces between sentences
or each sentence beginning on a new line.
For "man" (man-db) the environmental variable "MANROFFOPT" can be
defined or extended with '-r.SSS=0' or left unchanged.
--- groff/tmac/an.tmac 2023-07-28 23:55:47.000000000 +0000
+++ new-groff/tmac/an.tmac 2023-07-28 23:58:40.000000000 +0000
@@ -1573,6 +1573,19 @@ contains unsupported escape sequence
.cp \n[*groff_an_tmac_C]
.do rr *groff_an_tmac_C
.
+.\" Make sentence space adjustable by providing a register ".SSS" to
+.\" have value '0' (french spacing) or '1' (default in groff)
+ .
+.if r.SSS \{\
+. ie (\n[.SSS]=0):(\n[.SSS]=1) \{\
+. ss 12 \n[.SSS]*12
+. \}
+. el \{\
+. tm \n[.F]:\n[.c]: register .SSS may only have value 0 or 1, is \n[.SSS]
+. ab
+. \}
+.\}
+.
.\" Local Variables:
.\" mode: nroff
.\" fill-column: 72
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 29 Jul 2023 12:56:07 AM UTC Name: sentence.space Size: 1KiB By:
bjarniig
<http://savannah.gnu.org/bugs/download.php?file_id=54992>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64489>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/