groff-commit
[Top][All Lists]
Advanced

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

[groff] 18/33: doc/meref.me.in: Fix momentary lapse of reason.


From: G. Branden Robinson
Subject: [groff] 18/33: doc/meref.me.in: Fix momentary lapse of reason.
Date: Sun, 16 Oct 2022 15:52:18 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit e3d2070cf9b116abd6a435675b81ca2d0e29c502
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Oct 12 12:21:23 2022 -0500

    doc/meref.me.in: Fix momentary lapse of reason.
    
    Partially revert commit 1728f9229a, 5 October.  I must have eaten the
    wrong mushrooms; the correct argument order was "h w" all along.  That
    is what pic(1) produces and what me(7) must accept.
    
    DWB 3.3 pic:
    pltroff.c: printf(".PS %.3fi %.3fi %s", yconv(ymin), xconv(xmax), s);
    
    GNU pic:
    src/preproc/pic/troff.cpp: printf(".PS %.3fi %.3fi", height, width);
    
    4.4BSD e.tmac:
    .de PS \" *** start picture: $1=height, $2=width in units or inches
    [...]
    .nr g7 \\$2
    .in (\\n(.lu-\\n(g7u)/2u
    .ne \\$1u
    
    GNU e.tmac:
    .de PS  \" *** start picture: $1=height, $2=width in units or inches
    [...]
    .nr g7 \\$2
    .in (u;\\n(.l-\\n(g7>?0/2)
    .ne \\$1u
---
 ChangeLog       | 5 +----
 doc/meref.me.in | 6 +++---
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 456ee0df5..b0b9ef0b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -185,10 +185,7 @@
 
 2022-10-05  G. Branden Robinson <g.branden.robinson@gmail.com>
 
-       * doc/meref.me.in: Fix documentation errors.
-       (Preprocessor Support) <PS>: Swap argument order (width comes
-       first), note empty defaults, and (vaguely) describe their
-       purpose.  DWB and GNU pic semantics evidently diverge here.
+       * doc/meref.me.in: Fix documentation error.
        (Summary) <\_>: Describe as "underrule", not "underscore".
        These are distinct: the latter is a glyph; the former is drawn
        by typesetters and rendered with SGR attributes on terminals.
diff --git a/doc/meref.me.in b/doc/meref.me.in
index 464a66ace..fff4ea3f6 100644
--- a/doc/meref.me.in
+++ b/doc/meref.me.in
@@ -1330,16 +1330,16 @@ End
 table.
 .TL
 .b .PS
-.i w
 .i h
+.i w
 .DE
 Begin
 .i \%@g@pic (1)
 picture.
-.i w
+.i h
 [empty]
 and
-.i h
+.i w
 [empty],
 if present,
 scale the image.



reply via email to

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