[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Selecting Papersize
From: |
G. Branden Robinson |
Subject: |
Re: Selecting Papersize |
Date: |
Sun, 9 Jul 2023 12:41:40 -0500 |
Hi Damian,
At 2023-07-09T13:56:13+1000, Damian McGuckin wrote:
> So, when I build groff 1.23.0, I should make sure that PAGE is set to
> A4.
That should certainly work, but it shouldn't be _necessary_ if you do
the build in an environment where an /etc/resolv.conf file reveals the
Internet domain name you're using. Our configuration script attempts to
infer the correct default paper format on the assumption that ISO A4 is
the right choice _almost_ everywhere in the world.
https://git.savannah.gnu.org/cgit/groff.git/tree/m4/groff.m4?h=1.23.0#n1011
> The big question is whether I really need to pass '-P-pa4' to groff so
> that it can hand it off to the postprocessor., say grops/gropdf. Or
> can the postprocessor get the information it needs from its input?
The device descriptions for troff-mode (i.e., typesetting) devices are
generated at build time using the configured `PAGE` default.
$ find -name DESC.in
./src/devices/xditview/DESC.in
./font/devdvi/DESC.in
./font/devlbp/DESC.in
./font/devps/DESC.in
./font/devlj4/DESC.in
./font/devpdf/DESC.in
For example...
https://git.savannah.gnu.org/cgit/groff.git/tree/font/devps/devps.am?h=1.23.0#n142
So, the answer to your big question _should_ be, "no", and if it isn't,
either your /etc/resolv.conf has something funny in it, or our
autodetection logic could use some more work. Let us know!
Regards,
Branden
signature.asc
Description: PGP signature
Re: Selecting Papersize, Deri, 2023/07/09