Comment 17 for bug 39847

Revision history for this message
Till Kamppeter (till-kamppeter) wrote : Re: ubuntu-desktop should depend on linuxprinting.org-ppds for PostScript PPDs

Unfortunately, in the PPD concept there must be one PPD for each printer model, even if two different printers work with exactly the same driver and the same options. APPD header cannot contain 2 or more printer model identities.

A possible solution would be again an on-the-fly PPD generator for CUPS 1.2, but this time it would be more complex than the bzip2-tarball one I suggested ealier.

At first one would have to analyze the PPDs by comparing them with each other and find groups of similar/near equal PPDs. In each group one conserves one complete PPD and provides diffs to this one for the other PPDs. In addition, an index file is made as already mentioned above, but also containing infoabout which PPDs are provied as entire PPDs and which as diff. All this is packed into a bzip2ed tarball again.

Now if a PPD is requested, and is only available as diff, the diff is applied to the appropriate master PPD.

The effectiveness of this depends very much on the algorithms used to find and group similar PPDs.