bugGNU roff - Bugs: bug #66597, Allow environment-variable-based...

 
 

bug #66597: Allow environment-variable-based overriding of default paper size?

Submitter:  None
Submitted:  Thu 26 Dec 2024 12:02:48 AM UTC
   
 
Category:  Core Severity:  1 - Wish
Item Group:  Feature change Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 01 Jan 2025 11:53:35 PM UTC, comment #2: 

For the record, I submitted this bug report.  Sorry, I didn't notice that I wasn't logged in at the time.

Colin Watson <cjwatson>
Group Member
Thu 26 Dec 2024 04:54:12 PM UTC, comment #1: 

Michal Vyskocil submitted a patch for similar functionality in 2011 (http://lists.gnu.org/r/bug-groff/2011-09/msg00002.html).  Werner raised a couple of points that he felt would need to be addressed to integrate the patch, and as far as I can tell there was no more follow-up about it.

Dave <barx>
Group Member
Thu 26 Dec 2024 12:02:48 AM UTC, original submission:  

As far as I can tell, changing the default paper size currently requires editing either groff font configuration or (if it's set up that way) a system configuration file such as /etc/papersize.  Systems that use libpaper allow some more flexible approaches: you can use the LC_PAPER environment variable to use a default paper size based on the locale, or the PAPERSIZE environment variable to set it directly.  Would it make sense for groff to have optional support for libpaper?  Looking at paper.h, its API doesn't seem outrageously complex.

Of course, one can always use something like `-P-pa4`, so this isn't strictly required, but it would allow somewhat better integration with systems that support libpaper: groff would then use the same approach for selecting the default output paper size as other programs.

(This bug report was inspired by https://bugs.debian.org/1091375 and https://bugs.debian.org/1091376.)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cjwatson (Posted a comment)
  • -email is unavailable- added by barx (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-12-26 barx CategoryDriver - others/general Core
        Severity3 - Normal 1 - Wish
        Item GroupNone Feature change

    Back to the top

    Powered by Savane 3.14-04e1.
    Corresponding source code