[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66597] Allow environment-variable-based overriding of default pape
From: |
anonymous |
Subject: |
[bug #66597] Allow environment-variable-based overriding of default paper size? |
Date: |
Wed, 25 Dec 2024 19:02:52 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?66597>
Summary: Allow environment-variable-based overriding of
default paper size?
Group: GNU roff
Submitter: None
Submitted: Thu 26 Dec 2024 12:02:48 AM UTC
Category: Driver - others/general
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 26 Dec 2024 12:02:48 AM UTC By: Anonymous
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.)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66597>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66597] Allow environment-variable-based overriding of default paper size?,
anonymous <=