Generating a printer/driver list from foomatic data

[email protected] (Kristian Van Der Vliet) Wed, 17 May 2006 18:31:21 +0000 (UTC)
Newsgroups gmane.linux.printing.general
Organization http://www.linuxprinting.org/
Message-ID <[email protected]>
I'm currently in the process of integrating CUPS, Gutenprint etc. into Syllable
(http://www.syllable.org)  For various reasons I shall not be using Foomatic.

At the moment adding a print queue to CUPS requires the user to specify which
printer they have, and my add-printer script will try to match the model to its
Gutenprint PPD using the printers.xml file that Gutenprint itself uses.  This
is fine for printers which have a 1:1 match between the model name and the PPD
filename.  It doesn't work so well for printers that should are "compatible"
with another model and thus have no directly matching PPD file.

What I would like to do is generate a list of printer models to Gutenprint
PPDs, including aliases for printers that do not have their own PPD file.  Much
like the list at the bottom of the "Supported Printers" page for Gutenprint
(http://gutenprint.sourceforge.net/p_Supported_Printers.php3)  Using that data
it's then quite easy to match any supported printer model to the relevent PPD
E.g. "HP LaserJet 4100" -> "pcl-6"

On the Gutenprint page it mentions that their list was generated from data from
Foomatic.  What I'd like to know is where can I obtain this data to re-generate
a more upto-date list for Gutenprint 5.0?  Preferably I'd like to be able to
regenerate this data periodically.  However I can't seem to find the relevent
raw data.  Is it available?  Can I get Foomatic to generate this data for me
(So I don't need to write the tools to do it)?