groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/03: groff(7): Fix rendering nits.


From: G. Branden Robinson
Subject: [groff] 02/03: groff(7): Fix rendering nits.
Date: Sat, 14 Nov 2020 03:37:55 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 096c1d573ff80ace6a263c2cfe3b021839a5bde5
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Nov 14 18:20:36 2020 +1100

    groff(7): Fix rendering nits.
    
    The previous commit to this file caused spurious styling to be applied
    to punctuation characters in a few cases.  Rather than further
    engineering the page-local macros to the level of robustness required to
    handle those instances, simply convert them to use standard man(7)
    macros.  As a side effect, this eliminates several uses of the \c
    escape, which frightens people.
    
    Also fix an outright rendering error of much older vintage (2009) caused
    by the pounding of square \O0 and \O1 pegs into the round hole of the
    "clever" .escarg page-local macro, which assumed that its second
    argument would be a non-literal parameter and set it in italics.  This
    is of course incorrect for literal uses of "0" and "1".  In these cases,
    laissez .escarg go.
---
 man/groff.7.man | 37 +++++++++++++++----------------------
 1 file changed, 15 insertions(+), 22 deletions(-)

diff --git a/man/groff.7.man b/man/groff.7.man
index 700c286..95cf029 100644
--- a/man/groff.7.man
+++ b/man/groff.7.man
@@ -2293,9 +2293,8 @@ Pipe output to
 .REQ .pl
 Set page length to default
 .scalednumber 11 i .
-The current page length is stored in
-.register .p\c
-\&.
+The current page length is stored in register
+.BR .p .
 .
 .TPx
 .REQ .pl "\[+-]N"
@@ -2329,9 +2328,8 @@ on stderr.
 .REQ .po
 Change to previous page offset.
 .
-The current page offset is available in
-.register .o\c
-\&.
+The current page offset is available in register
+.BR .o .
 .
 .TPx
 .REQ .po "\[+-]N"
@@ -3981,8 +3979,7 @@ Likewise,
 the
 .request .as1
 request is similar to
-.request .as\c
-,
+.BR .as ,
 but compatibility mode is switched off when the appended portion of the
 string is later interpolated.
 .
@@ -4186,9 +4183,8 @@ the center of an accent over that glyph should be placed.
 .
 .TPx
 .REG .d
-Current vertical place in current diversion; equal to
-.register nl\c
-\&.
+Current vertical place in current diversion; equal to register
+.BR nl .
 .
 .TPx
 .REG .ev
@@ -4335,9 +4331,8 @@ The amount of space that was needed in the last
 .request .ne
 request that caused a trap to be sprung.
 .
-Useful in conjunction with
-.register .trunc\c
-\&.
+Useful in conjunction with register
+.BR .trunc .
 .
 .TPx
 .REG .ns
@@ -4607,22 +4602,20 @@ Vertical position of last printed text base-line.
 These four registers mark the top left and bottom right hand corners of
 a box which encompasses all written glyphs.
 They are reset to \-1 by
-.escarg O 0
+.B \[rs]O0
 or
-.escarg O 1 .
+.BR \[rs]O1 .
 .
 .TPx
 .REG rsb
-Like
-.register sb\c
-,
+Like register
+.BR sb ,
 but takes account of the heights and depths of glyphs.
 .
 .TPx
 .REG rst
-Like
-.register st\c
-,
+Like register
+.BR st ,
 but takes account of the heights and depths of glyphs.
 .
 .TPx



reply via email to

[Prev in Thread] Current Thread [Next in Thread]