bug-groff
[Top][All Lists]
Advanced

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

[bug #62238] skip papersize.tmac on nroff devices


From: G. Branden Robinson
Subject: [bug #62238] skip papersize.tmac on nroff devices
Date: Tue, 31 May 2022 21:15:04 -0400 (EDT)

Update of bug #62238 (project groff):

                  Status:               Need Info => In Progress            
             Assigned to:                    None => gbranden               
                 Summary: Add a PAPER_FLAG for groff when creating PostScript
or PDF files => skip papersize.tmac on nroff devices

    _______________________________________________________

Follow-up Comment #4:

First of all, comment #3 doesn't seem to have much to do with the original
report (comment #0).

[comment #3 comment #3:]
>   The "paper" register should only be defined for troff, insert for
> example the line
> 
> .if t \
> 
>   before the line:
> 
> .do if !d paper .ds paper @PAGE@

I see no such line in my groff Git HEAD checkout, nor in my copy of the same
file on my groff 1.22.4 installation.

If you're quoting papersize.tmac, it would seem your copy has significantly
diverged.

https://git.savannah.gnu.org/cgit/groff.git/tree/tmac/papersize.tmac

Nevertheless, I have the following patch in preparation.


$ git diff
diff --git a/tmac/troffrc b/tmac/troffrc
index 59ee9c076..a2784d78d 100644
--- a/tmac/troffrc
+++ b/tmac/troffrc
@@ -57,10 +57,10 @@ troffrc!html
 .\" Set the input localization to English.
 .do mso en.tmac
 .
-.\" Handle paper formats.
-.do mso papersize.tmac
+.\" Handle paper formats on typesetting devices.
+.if t .do mso papersize.tmac
 .
-.\" Handle PS images.
+.\" Handle Encapsulated PostScript images.
 .do mso pspic.tmac
 .do mso pdfpic.tmac
 .



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62238>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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