Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119182 - New package: libpaper
Summary: New package: libpaper
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-16 04:01 UTC by Stefan Illner
Modified: 2006-09-01 10:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Illner 2006-01-16 04:01:23 UTC
Hello,

after having installed fop for creating some pdf documents from xml documentation, the generated document was letter size. To change it to A4, I had to make the following change:

/usr/share/sgml/docbook/xsl-stylesheets-1.68.1/fo/param.xsl

line 450: USletter -> A4

As I believe there might be some more programs (e.g. ghostscript etc.) which might have a default papersize set, which is not the users preferred size. So I thought whether it is possible to add the global use flags letter and a4, and adjust the configuration of affected programs accordingly.

A problem could be that some people might also prefer some more uncommon papersizes, so maybe this could be also set as an option somewhere?

What do you think about it?

Cheers,

  Stefan
Comment 1 Stefan Illner 2006-01-17 00:13:39 UTC
To have a starting point, I suggest collecting some applications that could make use of these flags. Even if this thread will not result in new use flags, the collected information could be used to create a wiki entry / howto somewhere for those interested in setting up their system accordingly.

So, for a first start, the ppd files from cups have "DefaultPageSize" entries, which could be adjusted accordingly.
Comment 2 Martin Ehmsen (RETIRED) gentoo-dev 2006-01-25 05:42:48 UTC
Debian apparently uses something called libpaper and libpaper-utils which they developed themself:
http://packages.debian.org/unstable/libs/libpaper1
Besides being a lib which is controlled by the file /etc/papersize it provides paperconf and paperconfig used to read and configure the systems default paper size.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-03 08:50:13 UTC
libpapersize makes sense

is there still any interest in this one here?
Comment 4 Martin Ehmsen (RETIRED) gentoo-dev 2006-05-04 05:40:33 UTC
(In reply to comment #3)
> libpapersize makes sense
> 
> is there still any interest in this one here?

Sure... It is just not on the top of my priority list.
Maybe I should just do the two ebuilds (libpaper and paper-utils), put them in the tree and then afterwards figure out how to incorporate it with the other packages.

How about creating a papersize.eclass, that would probably be useful?
That way ebuilds can set the correct paper size when they are emerged.

The real problem is how to alter for instance cups config file when the paper size is changed later (or notify the user that there is a config file which needs altering).

Comments?
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-04 05:50:03 UTC
The debian packages include patches to use libpapersize instead of pkg-specific configs. I suggest we just grab those and add them to our packages
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-08 11:54:51 UTC
I added libpaper to the tree, together with a depend in cups-1.2_pre + --enable-libpaper 

libpaper already includes the utils. Have fun playing with it :)
Comment 7 Martin Ehmsen (RETIRED) gentoo-dev 2006-05-09 09:14:42 UTC
(In reply to comment #6)
> I added libpaper to the tree, together with a depend in cups-1.2_pre +
> --enable-libpaper

Nice!
Do you mind if I add text-markup as second (first?) herd? It seems very much related, since not only printing needs to set paper sizes (everything that generates pdf/ps/... i.e., text related needs to do that as well).

Btw. are there any reason you choose the ubuntu package instead of the debian one? The ubuntu one lacks ability (or at least it is not mentioned in the man page) to notify other apps by running scripts located in /etc/libpaper.d.

> libpaper already includes the utils. Have fun playing with it :)

I noticed that :)

Now we only need to make apps use this package (open bugs that block this one) :)
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-18 16:08:47 UTC
(In reply to comment #7)
> Nice!
> Do you mind if I add text-markup as second (first?) herd? It seems very much
> related, since not only printing needs to set paper sizes (everything that
> generates pdf/ps/... i.e., text related needs to do that as well).

sure, no problem with me.

> 
> Btw. are there any reason you choose the ubuntu package instead of the debian
> one? The ubuntu one lacks ability (or at least it is not mentioned in the man
> page) to notify other apps by running scripts located in /etc/libpaper.d.

I updated it from debian now, thanks.


> Now we only need to make apps use this package (open bugs that block this one)
> :)
> 
yeah. We might want to look up the rdeps from debian.
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2006-09-01 10:56:49 UTC
libpaper is i the tree. If you want to do more open new bugs or just do it :)