groff
[Top][All Lists]
Advanced

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

Re: [Groff] groff 1.15, unknown paper size in file `/etc/papersize'


From: Fabrizio Polacco
Subject: Re: [Groff] groff 1.15, unknown paper size in file `/etc/papersize'
Date: Thu, 13 Jan 2000 12:26:38 +0200
User-agent: Mutt/1.0i

On Wed, Jan 12, 2000 at 11:18:51AM -0500, Peter Dominguez wrote:
> groff file | lp produces
> 
> grops:/usr/share/groff/font/devps/DESC:13: unknown paper size in file 
> `/etc/papersize'
> 
> I noticed that the DESC file is different in this version. my
> /etc/papersize has 'legal' in it. In /etc/paper.config I see US-Legal.
> When I tried that in /etc/papersize I still a problem.
> 

Well, first I suppose you're using a Debian potato system or did you
upgraded a slink system?

In any case, it's probably a bug related to debian version only, so I'll
take on it.

A quick fix for your problem:
edit /usr/share/groff/font/devps/DESC (as user root) and change line
        paperfile /etc/papersize
back to 
        paperlength 792000
(this fix won't survive a re-installation or upgrade of the package
groff, but I will hope that next time you upgrade I will have fixed this
bug :-)

Now let's dive in a long term fix:
"legal" is a correct papersize, and in fact grolj4 handles it correctly.
grolj4 has a table of papers:
        { "letter",       2, 75, 60     },
        { "legal",        3, 75, 60     },
        { "executive",    1, 75, 60     },
        { "a4",          26, 71, 59     },
        { "com10",       81, 75, 60     },
        { "monarch",     80, 75, 60     },
        { "c5",          91, 71, 59     },
        { "b5",         100, 71, 59     },
        { "dl",          90, 71, 59     },

grops, instead, had only two possibilities: a4 and letter (841890 and
792000), but _defaulting_ to letter for any other size, which I don't
know if is a good idea or not.

I think I will add a small table in grops, just to enable the use of the
same papers valid in grolj4:
        { "letter",      792000 },
        { "legal",      1008000 },
        { "executive",   758000 },
        { "a4",          841890 },
        { "com10",       ???    },
        { "monarch",     542000 },
        { "c5",          650000 },
        { "b5",          710000 },
        { "dl",          625000 },

does anybody (on the groff list) know if these values (used in
paperlength parameter) will produce a correct output?
Or should I do as it was before, putting 792000 fixed for _all_ sizes
but "a4" ?


cheers,
fab
-- 
| address@hidden     address@hidden    address@hidden
| 6F7267F5 fingerprint 57 16 C4 ED C9 86 40 7B 1A 69 A1 66 EC FB D2 5E
| address@hidden                  gsm: +358 (0)40 707 2468


reply via email to

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