{"id":19218979,"url":"https://github.com/openprinting/foomatic-db","last_synced_at":"2025-11-13T21:05:10.834Z","repository":{"id":36263504,"uuid":"175981895","full_name":"OpenPrinting/foomatic-db","owner":"OpenPrinting","description":"OpenPrinting printer support database","archived":false,"fork":false,"pushed_at":"2024-12-05T19:46:56.000Z","size":188398,"stargazers_count":10,"open_issues_count":9,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-04T19:25:22.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenPrinting.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-16T14:24:52.000Z","updated_at":"2024-12-05T19:47:51.000Z","dependencies_parsed_at":"2024-08-13T19:39:24.196Z","dependency_job_id":null,"html_url":"https://github.com/OpenPrinting/foomatic-db","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPrinting%2Ffoomatic-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPrinting%2Ffoomatic-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPrinting%2Ffoomatic-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPrinting%2Ffoomatic-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenPrinting","download_url":"https://codeload.github.com/OpenPrinting/foomatic-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292391,"owners_count":19778311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T14:29:03.437Z","updated_at":"2025-11-13T21:05:10.748Z","avatar_url":"https://github.com/OpenPrinting.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFoomatic Database\n=================\n\n\nfoomatic-db\n-----------\n\nThe collected knowledge about printers, drivers, and driver options in\nXML files, used by foomatic-db-engine to generate PPD files.\n\nTill Kamppeter \u003ctill.kamppeter@gmail.com\u003e\n\nhttp://www.openprinting.org/\n\nThis README contains mainly info for developers. See the file USAGE if\nyou want to know how to use Foomatic.\n\n\nCopying\n-------\n\nTo most of this package the GPL applies (see http://www.gnu.org/),\nexception are the PPD files in db/source/PPD, they can have different\nlicenses (mostly MIT), see the comments in the beginning of the PPD\nfiles and the license texts in the corresponding driver XML files.\n\n\nBugs\n----\n\nIf you spot a data error or any other bug, please report it on the\nOpenPrinting bug tracking system:\n\nhttp://bugs.linux-foundation.org/\n\nChoose \"OpenPrinting\" as the product and \"foomatic-db-engine\" as the\ncomponent.\n\n\nIntro\n-----\n\nThis is the stable version of Foomatic. This version is also the base\nof our database web interface on\n\nhttp://www.openprinting.org/\n\n\nPrograms and important files from this package\n----------------------------------------------\n\nconfigure.ac\n\n  The source from which GNU autoconf generates the \"configure\" script\n\nacinclude.m4\n\n  Additional macros for the \"configure\" script\n\nmake_configure\n\n  Calls aclocal and autoconf to generate \"configure\" from \"configure.ac\" \n  and \"acinclude.m4\"\n\nMakefile.in\n\n  The template from which \"configure\" generates the Makefile\n\ninstall-sh\n\n  Helper script for \"configure\"\n\nsanitize-ppd-names\n\n  This script sanitizes the file names of the files in db/source/PPD/,\n  the ready-made PPD files, usually contributed by printer\n  manufacturers for their PostScript printers. Sometimes these files\n  have spaces or other special characters in their names, which makes\n  handling them with shell scripts difficult. This script sanitixes\n  the names removing these characters.\n\n  It should be run after accepting each manufacturer PPD file\n  contribution into the GIT repository. When running in a cloned GIT\n  repository (with \".git/\" directory) it renames the files with \"git\n  mv\" so that the correction can easily get committed.\n\ndb/\n\n  The XML database. See below.\n\nxmlschema/*.xsd\n\n  XML Schema files to verify the XML database entries. There is one for\n  each XML file type (printer, driver, option) and an additional one (types.xsd)\n  which is used by the first three.\n\n  To verify XML files run\n\n    xmllint --noout --schema xmlschema/\u003ctype\u003e.xsd db/source/\u003ctype\u003e/\u003cfile\u003e.xml\n\n  For example for a driver:\n\n    xmllint --noout --schema xmlschema/driver.xsd db/source/driver/ljet4.xml\n\n  For all printers use:\n\n    xmllint --noout --schema xmlschema/printer.xsd db/source/printer/*.xml\\\n\n  Do this check whenever you create or edit XML files to assure that your\n  XML file is correct.\n\n\nDependencies\n------------\n\nThis package does not require anything else. It is needed by\nfoomatic-db-engine, the database engine of Foomatic. It is required to\nuse foomatic-db-engine 4.0.0 or newer, as it contains important bug\nfixes and also support for nested composite options. Do not use this\ndatabase with older versions of Foomatic.\n\nSee the USAGE file for installation details.\n\n\nAbout the database\n------------------\n\nThe database is provided by this package, additional database entries\nare in \"foomatic-db-hpijs\", other Foomatic XML files and PPDs are\nsupplied with the drivers. \"foomatic-db-engine\" is needed to make use\nof the Foomatic XML data.\n\nThe database is located in one system directory, usually\n/usr/share/foomatic, but it can be also at other places (Install this\npackage at first and after that foomatic-db-engine so that\nfoomatic-db-engine gets configured correctly automatically). In this\ndirectory there is the following structure:\n\n db/                             - the database\n db/oldprinterids                - translation table for old numerical\n\t\t\t\t   printer IDs\n db/kitload.log                  - list of third-party \"kit\" files, logged\n                                   by foomatic-kitload\n db/source/                      - \"source\" data, provided by humans, etc\n db/source/printer/\u003cpoid\u003e.xml    - printer-specific data, one per printer id\n db/source/driver/\u003cdriver\u003e.xml   - driver-specific data, one per driver name\n db/source/opt/\u003cidx\u003e.xml         - option data, one file per option\n db/source/PPD/                  - Ready-made PPD files, usually supplied by\n                                   printer manufacturers for their PostScript\n\t\t\t\t   printers.\n\nYou can edit the files whenever you want and regenerate the affected\nprinter queues with foomatic-configure, there is no on-disk cache, the\ndata is always directly derived from the source files. So your changes\nwill be taken into account without any special steps.\n\n\nData\n----\n\nThere are three main source datafiles (printers, drivers, and options;\nannotated examples:\n\n\nprinter/HP-LaserJet_4000.xml\n============================\n\n# The printer file contains information specific to a particular\n# printer.\n\n\u003cprinter id=\"printer/HP-LaserJet_4000\"\u003e\n\n# Make and model are not internationalized.  There will eventually be\n# an \"alias\" mechanism, but the need is different.\n\n  \u003cmake\u003eHP\u003c/make\u003e\n  \u003cmodel\u003eLaserJet 4000\u003c/model\u003e\n\n# According to the Adobe specifications for PPD files every PPD file\n# must contain a unique DOS-compatible file name (the \"*PCFileName\"),\n# a file name with an up to 8 characters log base name and an up to 3\n# characters long extension, and upper and lower case letters being\n# considered as equal. As every PPD file is for a printer/driver\n# combo, we let the first 6 characters being provided by the printer\n# entry:\n\n  \u003cpcmodel\u003eHPLJ4K\u003c/pcmodel\u003e\n\n# The first two characters should be the manufacturer prefix as listed\n# in Appendix D of Adobe's \"PostScript Printer Description (PPD) File\n# Format Specification Version 4.3\", available on\n\n# http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf\n\n# Various stuff about the machine\n\n  \u003cmechanism\u003e\n\n# Printer types can be \u003claser /\u003e, \u003cled /\u003e, \u003cinkjet /\u003e, \u003cdotmatrix /\u003e,\n# \u003cimpact /\u003e, \u003csublimation /\u003e, \u003ctransfer /\u003e, \u003cthermal /\u003e. Other types\n# we have to add to the CGI script on OpenPrinting to make the web\n# interface displaying them properly.\n\n    \u003claser/\u003e\n\n# At some point we can make color be less of a boolean flag and more\n# of a section full of goodies.\n\n    \u003c!--not \"color\"--\u003e\n    \u003cresolution\u003e\n\n# In theory this is a list.  In practice We've only got one per\n# printer which is the maximum resolution the manufacturer claims for\n# this printer. Do not put empty tags (like \"\u003cx\u003e\u003c/x\u003e\" or \"\u003cx /\u003e\" here\n# if the resolution is not known. Leave out the tags (or the whole\n# \u003cresolution\u003e section).\n\n      \u003cdpi\u003e\n        \u003cx\u003e1200\u003c/x\u003e\n        \u003cy\u003e1200\u003c/y\u003e\n      \u003c/dpi\u003e\n    \u003c/resolution\u003e\n\n    \u003cconsumables\u003e\n\n# Information about ink, drums, etc.\n# The comments are supposed to be qualitative (\"Separate drum and\n# toner cartridges\")\n\n      \u003ccomments\u003e\n        \u003cen\u003etoner\u003c/en\u003e\n      \u003c/comments\u003e\n\n# There can be \u003cpartno\u003e12A1975\u003c/partno\u003e elements with manufacturer\n# part numbers for the various carts, etc it takes. Unfortunately,\n# this is not made use of, one could make a consumable database with\n# this for example.\n\n      \u003c!--one or more \"partno\" elements.--\u003e\n    \u003c/consumables\u003e\n  \u003c/mechanism\u003e\n\n  \u003curl\u003ehttp://www.pandi.hp.com/pandi-db/prod_info.show?model=C4118A\u0026amp;name=LaserJet4000\u003c/url\u003e\n\n# The lang section.  In practice this will be only minimally useful;\n# \n#  - Backends can pstops the ps down a level if needed\n#  - Backends know if pjl options apply\n#  - Backends can know if direct text printing will work\n#\n# Commonly used language tags: \u003cpcl level=\"x\" /\u003e, \u003cescp2 /\u003e, \u003cproprietary /\u003e\n\n  \u003clang\u003e\n    \u003cpostscript level=\"2\" /\u003e\n    \u003cpjl/\u003e\n    \u003ctext\u003e\n      \u003ccharset\u003eus-ascii\u003c/charset\u003e\n    \u003c/text\u003e\n  \u003c/lang\u003e\n\n# The autodetection stuff\n\n  \u003cautodetect\u003e\n\n# There are three ways to auto-detect a printer, via the parallel port\n# (\u003cparallel\u003e...\u003c/parallel\u003e), the USB (\u003cusb\u003e...\u003c/usb\u003e), or SNMP\n# (TCP/Socket-connected printer, \u003csnmp\u003e...\u003c/snmp\u003e). Through these\n# interfaces the printers report back an IEEE-1284-complient ID string\n# from which the fields \"MFG\" (\u003cmanufacturer\u003e...\u003c/manufacturer\u003e),\n# \"MDL\" (\u003cmodel\u003e...\u003c/model\u003e), \"DES\" (\u003cdescription\u003e...\u003c/description\u003e),\n# and \"CMD\" (\u003ccommandset\u003e...\u003c/commandset\u003e) are used. The string itself\n# can be put between \u003cieee1284\u003e...\u003c/ieee1284\u003e tags, but all items\n# which are not constant for all printers of this model, as the serial\n# number (\"SERN:...;\") and the device status (\"VSTATUS:...;\") have to\n# be removed here. As the ID string is usually the same for all\n# detection methods, one can put the entries between\n# \u003cgeneral\u003e...\u003c/general\u003e tags, then the \u003cparallel\u003e...\u003c/parallel\u003e,\n# \u003cusb\u003e...\u003c/usb\u003e, and \u003csnmp\u003e...\u003c/snmp\u003e are only used for\n# differences to the data between the \u003cgeneral\u003e...\u003c/general\u003e tags. A\n# complete entry could look like:\n#\n#  \u003cautodetect\u003e\n#    \u003cgeneral\u003e\n#      \u003cieee1284\u003eMFG:HEWLETT-PACKARD;MDL:DESKJET 600;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 600;\u003c/ieee1284\u003e\n#      \u003ccommandset\u003eMLC,PCL,PML\u003c/commandset\u003e\n#      \u003cdescription\u003eHewlett-Packard DeskJet 600\u003c/description\u003e\n#      \u003cmanufacturer\u003eHEWLETT-PACKARD\u003c/manufacturer\u003e\n#      \u003cmodel\u003eDESKJET 600\u003c/model\u003e\n#    \u003c/general\u003e\n#  \u003c/autodetect\u003e\n#\n\n# If you use CUPS, you get the device IDs of all locally connected\n# (USB, parallel) printers and of printers in the local network by\n# running:\n\nlpinfo -l -m\n\n# On Linux you find this info for the parallel ports (/dev/lp\u003cN\u003e, \u003cN\u003e\n# = 0, 1, 2, ...) in the files\n#\n#   /proc/sys/dev/parport/parport\u003cN\u003e/autoprobe*\n#\n# for the USB under Linux it is more complicated, easiest is to use a little\n# Perl script, called \"getusbprinterid.pl\":\n# You need to find the IOCTL call value to pass to the perl ioctl function.\n# Here is a little C program that does this. This is easier than trying to\n# use p2h and convert the *.h files to perl.\n\n# --------------------------------------------------------------------------\n#  /*\n#       print the IOCTL call value for printer information\n#  */\n#  #include \u003cstdio.h\u003e\n#  #include \u003csys/ioctl.h\u003e\n#  /* From the /usr/src/linux\u003cversion\u003e/drivers/usb/printer.c */\n#  #define DRIVER_VERSION \"v0.11\"\n#  #define DRIVER_AUTHOR \"Michael Gee, Pavel Machek, Vojtech Pavlik, Randy Dunlap, Pete Zaitcev, David Paschal\"\n#  #define DRIVER_DESC \"USB Printer Device Class driver\"\n#  \n#  #define USBLP_BUF_SIZE      8192\n#  #define DEVICE_ID_SIZE      1024\n#  \n#  /* ioctls: */\n#  #define LPGETSTATUS     0x060b      /* same as in drivers/char/lp.c */\n#  #define IOCNR_GET_DEVICE_ID     1\n#  #define IOCNR_GET_PROTOCOLS     2\n#  #define IOCNR_SET_PROTOCOL      3\n#  #define IOCNR_HP_SET_CHANNEL        4\n#  #define IOCNR_GET_BUS_ADDRESS       5\n#  #define IOCNR_GET_VID_PID       6\n#  /* Get device_id string: */\n#  #define LPIOC_GET_DEVICE_ID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len)\n#  /* The following ioctls were added for http://hpoj.sourceforge.net */\n#  /* (HPOJ is replaced by HPLIP, http://hplipopensource.com/): */\n#  /* Get two-int array:\n#  * [0]=current protocol (1=7/1/1, 2=7/1/2, 3=7/1/3),\n#  * [1]=supported protocol mask (mask\u0026(1\u003c\u003cn)!=0 means 7/1/n supported): */\n#  #define LPIOC_GET_PROTOCOLS(len) _IOC(_IOC_READ, 'P', IOCNR_GET_PROTOCOLS, len)\n#  /* Set protocol (arg: 1=7/1/1, 2=7/1/2, 3=7/1/3): */\n#  #define LPIOC_SET_PROTOCOL _IOC(_IOC_WRITE, 'P', IOCNR_SET_PROTOCOL, 0)\n#  /* Set channel number (HP Vendor-specific command): */\n#  #define LPIOC_HP_SET_CHANNEL _IOC(_IOC_WRITE, 'P', IOCNR_HP_SET_CHANNEL, 0)\n#  /* Get two-int array: [0]=bus number, [1]=device address: */\n#  #define LPIOC_GET_BUS_ADDRESS(len) _IOC(_IOC_READ, 'P', IOCNR_GET_BUS_ADDRESS, len)\n#  /* Get two-int array: [0]=vendor ID, [1]=product ID: */\n#  #define LPIOC_GET_VID_PID(len) _IOC(_IOC_READ, 'P', IOCNR_GET_VID_PID, len)\n#  \n#  \n#  int main( int argc, char *argv, char *envp[] )\n#  {\n#   int len = 1024;\n#   int v;\n#   /* _IOC(), _IOC_READ as defined in /usr/include/asm/ioctl.h\n# LPIOC_GET_DEVICE_ID(len) = _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len)\n#   */\n#   v = LPIOC_GET_DEVICE_ID(len);          printf(\"$LPIOC_GET_DEVICE_ID = 0x%08x;\\n\", v );\n#   v = LPIOC_GET_BUS_ADDRESS(len);        printf(\"$LPIOC_GET_BUS_ADDRESS = 0x%08x;\\n\", v );\n#   v = LPIOC_GET_VID_PID(len);            printf(\"$LPIOC_GET_VID_PID = 0x%08x;\\n\", v );\n#   return(0);\n#  }\n#  \n#     \n# save this to a file, say getv.c, compile and run it, and you get an output\n$ like this:\n#  $LPIOC_GET_DEVICE_ID = 0x84005001;\n#  $LPIOC_GET_BUS_ADDRESS = 0x84005005;\n#  $LPIOC_GET_VID_PID = 0x84005006;\n\n\n\n# Here is the getusbprinterid.pl PERL program to get the usb information\n#    \n#\t!/usr/bin/perl\n#\topen FILE, \"$ARGV[0]\" or die \"cannot open $ARGV[0]\";\n#\tmy $result;\n#\t# len = 1024\n#\t# LPIOC_GET_DEVICE_ID(len) = _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len)\n#\t# _IOC(), _IOC_READ as defined in /usr/include/asm/ioctl.h\n#\t$LPIOC_GET_DEVICE_ID = 0x84005001;\n#\t$LPIOC_GET_BUS_ADDRESS = 0x84005005;\n#\t$LPIOC_GET_VID_PID = 0x84005006;\n#\t\n#\tioctl(FILE, $LPIOC_GET_DEVICE_ID , $result) or die;\n#\t# Cut resulting string to its real length\n#\tmy $length = ord(substr($result, 1, 1)) + (ord(substr($result, 0, 1)) \u003c\u003c 8);\n#\t$result = substr($result, 2, $length-2);\n#\t# Remove non-printable characters\n#\t$result =~ tr/[\\x0-\\x1f]/\\./;\n#\tprint \"DeviceID $result\\n\";\n#\t\n#\t$result = pack(\"LL\",0);\n#\tioctl(FILE, $LPIOC_GET_BUS_ADDRESS , $result) or die;\n#\tmy( $v1, $v2 ) = unpack(\"LL\", $result );\n#\tprint \"Bus '$v1', Device '$v2'\\n\";\n#\t\n#\t$result = pack(\"LL\",0);\n#\tioctl(FILE, $LPIOC_GET_VID_PID, $result) or die;\n#\tmy( $v1, $v2 ) = unpack(\"LL\", $result );\n#\tprint \"Vendor '$v1', Product '$v2'\\n\";\n#\t\n#\tclose FILE;\n#\t\n#    \n# --------------------------------------------------------------------------\n\n# Running the program with \"perl getusbprinterid.pl /dev/usb/lp0\" returns the\n# ID string of the device on /dev/usb/lp0.\n# For example: perl getusbprinter.pl /dev/usb/lp0  \n#  DeviceID MFG:Hewlett-Packard;CMD:PJL,MLC,PCL,PCLXL,POSTSCRIPT;MDL:\\\n#    HP LaserJet 2200;CLS:PRINTER;DES:Hewlett-Packard LaserJet 2200;\\\n#    MEM:8MB;OPTRAY:250Sheets\n#  Bus '2', Device '2'\n#  Vendor '1008', Product '535'\n#\n# (lines broken for clarity)\n\n\n    \u003c!--no known parport probe information--\u003e\n  \u003c/autodetect\u003e\n\n# Our grading system.  It's US-style letter grades A, B, D, and F,\n# which the website shows as \"Perfectly\", \"Mostly\", \"Partially\" and\n# \"Paperweight\" .\n# THERE IS NO `C'!!!\n\n  \u003cfunctionality\u003eA\u003c/functionality\u003e\n\n# Arguably, the scores should live with the printer/driver association\n# and not on the printer, but then it's a big hassle to figure out if\n# a printer works... So the score is the one reached with the driver\n# working best, the \"recommended\" driver.\n\n# There's a spot for this \"recommended\" driver, usually the driver\n# which gives the maximum output quality. It is for user information\n# on the web site, but newbie-friendly printer setup GUIs should use\n# it, too. system-config-printer, printer setup tool of Fedora/Red\n# Hat, Ubuntu, and Mandriva Linux makes use of it, also the former\n# printerdrake of Mandriva Linux.\n\n  \u003cdriver\u003ePostscript-HP\u003c/driver\u003e\n\n# The following optional section describes with which drivers this\n# printer works. A valid printer/driver pair can be defined by either\n# adding the printer to the driver's printer list (the way how it\n# worked all the time) but also by adding the driver to the printer's\n# driver list. This way a printer can get associated with a driver for\n# which there is no driver XML file and a driver can list a supported\n# printer which is not in the printer XML database. For providing a\n# PPD file both printer and driver XML files must exist, but it is not\n# important in which of the two the printer/driver relationship is\n# defined.\n\n# The driver list in the printer XML files was introduced for once\n# defining links to ready-made PPD files (relative paths without \"/\",\n# \"http:\", \"https:\", or \"ftp:\" in the beginning are relative to\n# $libdir/db/source/, absolute links can point to external sites, as\n# for example the site of a printer manufacturer, but they must always\n# provide the non-interactive download of the PPD file, for example\n# via \"wget\") and second, listing the supported drivers for\n# visitor-contributed printer entries (from web input form). The\n# comments section is for adding comments specific to the\n# printer/driver combo. As it is human-readable it is\n# internationalized. Each driver entry here must have a driver ID. PPD\n# file link and comment are optional.\n\n  \u003cdrivers\u003e\n    \u003cdriver\u003e\n      \u003cid\u003ePostscript-HP\u003c/id\u003e\n      \u003cppd\u003ePPD/HP/HP_LaserJet_4000_Series.ppd\u003c/ppd\u003e\n      \u003ccomments\u003e\u003cen\u003e...\u003c/en\u003e\u003c/comments\u003e\n    \u003c/driver\u003e\n  \u003c/drivers\u003e\n\n\n# The \u003cunverified /\u003e tag marks entries which are entered by visitors\n# via the printer input form on the OpenPrinting web site. It does not\n# appear in approved entries (= all entries in the BZR repository of\n# the foomatic-db package).\n\n  \u003c!--not \"unverified\"--\u003e\n\n# If there is a web site with additional interesting info about this\n# printer, it can be mentioned in the entry by putting it between\n# \u003ccontrib_url\u003e...\u003c/contrib_url\u003e tags,\n\n  \u003c!--no \"contrib_url\"--\u003e\n\n# The regular notes section.  The allowed tags are: \u003cp\u003e, \u003ca\n# href=\"foobar\"\u003e \u003c/a\u003e and many other simple tags (\u003cb\u003e, \u003ci\u003e, \u003ctt\u003e,\n# ...). Note that to distinguish what is XML and what is the embedded\n# HTML, the following replacements have to be made:\n#\n#   \u003c --\u003e \u0026lt;\n#   \u003e --\u003e \u0026gt;\n#   \" --\u003e \u0026quot;\n#   ' --\u003e \u0026apos;\n#   \u0026 --\u003e \u0026amp;\n#\n\n  \u003ccomments\u003e\n    \u003cen\u003e\n    I don\u0026apos;t believe this:\u0026lt;p\u0026gt;\n\n    \u0026lt;i\u0026gt;1200x1200 dpi only possible with Windows drivers,\n    600x600 can be reached w/o particular software.\n    The difference is visible, but only slightly, so\n    the Functionality got \u0026quot;Mostly\u0026quot;\u0026lt;p\u0026gt;\u0026lt;/i\u0026gt;\u0026lt;p\u0026gt;\n\n    Do the following:\u0026lt;p\u0026gt;\n\n    Set the resolution on the front panel to \u0026quot;Prores 1200\u0026quot;, not\n    to \u0026quot;Fastres 1200\u0026quot;. When you use CUPS with HPs PPD file, turn\n    off \u0026quot;Fastres 1200\u0026quot; in the printer configuration\n    options.\u0026lt;p\u0026gt;\n\n    Try the generic PostScript PPD file which comes with KUPS 1.0 or newer.\n    \u003c/en\u003e\n  \u003c/comments\u003e\n\u003c/printer\u003e\n\n\ndriver/md2k.xml\n===============\n\nThe driver files contain information about drivers.  There are a few\nthings, but the two biggies are the prototype and the printers list\n\n\u003cdriver id=\"driver/md2k\"\u003e\n \u003cname\u003emd2k\u003c/name\u003e\n\n# According to the Adobe specifications for PPD files every PPD file\n# must contain a unique DOS-compatible file name (the \"*PCFileName\"),\n# a file name with an up to 8 characters log base name and an up to 3\n# characters long extension, and upper and lower case letters being\n# considered as equal. As every PPD file is for a printer/driver combo,\n# we let the last 2 characters being provided by the driver entry:\n\n \u003cpcdriver\u003eM2\u003c/pcdriver\u003e\n\n# The drivers listed by the OpenPrinting database are usually not\n# developed by OpenPrinting.  Most free software printer drivers come\n# from independent projects, initiated by peopke who want to get their\n# printers to work under Linux, some other drivers come from the\n# printer manufacturers. So even if OpenPrinting hosts a downloadable\n# package of the driver the development of the driver is not part of\n# OpenPrinting. Therefore every driver entry has to contain a\n# reference to the developers of the driver, where the driver can be\n# actually downloaded. The appropriate link goes into the \u003curl\u003e tag:\n\n \u003curl\u003ehttp://plaza26.mbn.or.jp/~higamasa/gdevmd2k/\u003c/url\u003e\n\n# The driver XML files can contain the following tags to describe the\n# driver's properties, so that a user can easily find the driver which\n# is most suitable for him. The properties are shown in the gray\n# driver info boxes on the OpenPrinting web site and they are also\n# supposed to be shown by printer setup tools when they offer to\n# download a driver from OpenPrinting. It is especially important to\n# supply them if a downloadable driver package or PPD files are\n# supplied.\n\n# Supplier's name, internationalization (with \u003cen\u003e...\u003c/en\u003e\u003cde\u003e...\u003c/de\u003e...)\n# optional\n\n#   \u003csupplier\u003eSpliX project\u003c/supplier\u003e\n\n# Does the driver come from the printer's manufacturer or from a third\n# party. The third form tells also the manufacturer names of the\n# printers which are from the manufacturer which developed the\n# driver. If there are also printers from other manufacturers\n# supported (like for the PCL driver HPIJS) then the OpenPrinting web\n# site does not show this driver as manufacturer-supplied on the pages\n# of the printers of other manufacturers.\n\n#   \u003cthirdpartysupplied /\u003e   OR   \u003cmanufacturersupplied /\u003e   OR\n#   \u003cmanufacturersupplied\u003eHP|Apollo\u003c/manufacturersupplied\u003e\n\n# License name. Here should be put the common short name or\n# abbreviation if the license is one of the common free software\n# licenses. Otherwise it should contain something short and\n# descriptive, for non-free drivers simply \"Commercial\". The license\n# name can be internationalized with language tags\n# (\u003cen\u003e...\u003c/en\u003e\u003cde\u003e...\u003c/de\u003e...).\n\n#   \u003clicense\u003eGPL\u003c/license\u003e\n\n# The license text does not need to be supplied for common free\n# software licenses. It should be supplied if:\n#\n#  - The license is not free (\u003cnonfreesoftware /\u003e tag set)\n#  - The driver has patent issues (\u003cpatents /\u003e tag set, describe the\n#    patent issues here in that case)\n#  - The license of the driver is free but none of the common licenses\n#    (\u003cnonfreesoftware /\u003e tag not set)\n\n#   \u003clicensetext\u003e\n#    \u003cen\u003e\n#      ...\n#    \u003c/en\u003e\n#   \u003c/licensetext\u003e\n\n# License texts can also be linked from external sites:\n\n#   \u003clicensetext\u003e\n#    \u003cen url=\"http://www.laserstar.com/licenses/en/gl-series-eula.txt\" /\u003e\n#    \u003cde url=\"http://www.laserstar.com/licenses/de/gl-series-eula.txt\" /\u003e\n#    ...\n#   \u003c/licensetext\u003e\n\n# License texts have to be given always as plain text, UTF-8-encoded.\n\n# Mark with this tag whether the driver is non-free software\n\n#   \u003cnonfreesoftware /\u003e\n\n# All driver entries without this tag are considered to be free\n# software.\n\n# This tag tells whether there are any patent issues with the driver\n\n#   \u003cpatents /\u003e\n\n# The absence of the tag tells that the driver is free of patent\n# issues.\n\n# If a driver entry provides a \u003clicensetext\u003e and is \u003cnonfreesoftware\n# /\u003e or with \u003cpatents /\u003e printer setup tools which download this\n# driver are supposed to present the license text and ask the user\n# whether he agrees with it.\n\n# Printer manufacturers could want to package their drivers for\n# different market regions (Europe, Asia/Pacific, Americas, ...) as\n# the markets demand different capabilities of printer drivers and\n# different user-settable options (CJK-language-related stufff for\n# example). So there could even be two different driver flavors for\n# the same printer but adapted to different regions. To express these\n# driver properties there are special tags.\n\n# For each flavor of the driver a separate driver entry (driver XML\n# file) has to be supplied. There is no requirement of certain\n# properties of the driver flavors to be equal or not. Especially the\n# printer lists can contain printers which are not in all flavors, for\n# example if printers are only sold in certain regions. To mark which\n# entries are belonging together one adds a group tag to each XML\n# file, with the same group name, but the name must be different to\n# the names of all already existing groups. A locales tag contains all\n# language/country codes for which the driver flavor is intended:\n\n#   \u003cgroup\u003eepson-inkjet\u003c/group\u003e\n#   \u003clocales\u003ede en_UK en_IE fr_FR es_ES\u003c/locales\u003e\n\n# The codes in the locales tags should be different for the group\n# members, to allow to automatically select the most suitable flavor\n# if the detected printer is supported by more than one flavor.\n\n# For downloadable drivers support contacts should be given, so that\n# users get informed before they do the download and do not complain\n# at their OS distribution vendor if the driver downloaded from\n# OpenPrinting does not work. The human-readable string for the\n# support contact can be internationalized with language tags\n# (\u003cen\u003e...\u003c/en\u003e\u003cde\u003e...\u003c/de\u003e...).\n\n#   \u003csupportcontacts\u003e\n#    \u003csupportcontact level=\"voluntary\" url=\"http://sourceforge.net/forum/?group_id=175815\"\u003eSpliX forum at SourceForge\u003c/supportcontact\u003e\n#    \u003csupportcontact level=\"commercial\" url=\"http://www.laserstar.com/support/\"\u003eLaserStar Support\u003c/supportcontact\u003e\n#   \u003c/supportcontacts\u003e\n\n# This is an internationalized short description of the driver,\n# typically one line, to be used in the gray driver info boxes, in the\n# driver overview list, and also by printer setup tools. If a driver\n# entry is for a development version of a driver, tell it here, as the\n# long description is not shown everywhere.\n\n#   \u003cshortdescription\u003e\n#    \u003cen\u003e\n#     Driver for Samsung SPL2 (ML-1710, ...) and SPLc (CLP-500, ...) laser\n#     printers\n#    \u003c/en\u003e\n#   \u003c/shortdescription\u003e\n\n# If there are downloadable packages for this driver entry on the\n# OpenPrinting web site, a \u003cpackages\u003e section has to be supplied. This\n# tag tells which package files on the OpenPrinting web server belong\n# to this driver or on which external server to find packages for this\n# driver. It also allows assigning files or locations to different\n# components of this driver and to assign scopes to them. Scopes can\n# be: \"general\", \"gui\", \"printer\", \"scanner\", \"fax\", ... Uses the\n# \"general\" scope if packages are not split. Wild cards are the same\n# as used for file masks in the shell (NOT regular expressions). They\n# must match both Debian and RPM package file names. Note that between\n# file name and version number is a \"-\" for RPMs and a \"_\" for Debian\n# packages.\n\n#   \u003cpackages\u003e\n#    \u003cpackage scope=\"general\"\u003e*splix[_-]1.[0-9].[0-9]*\u003c/package\u003e\n#   \u003c/packages\u003e\n\n# It is possible to give absolute paths which can point to external\n# sites, as for example the site of a printer manufacturer, so that\n# the package can be hosted there but auto-downloaded via\n# OpenPrinting. Important is that these packages are auto-downloadable\n# LSB packages and that a non-interactive download is provided (should\n# also work with utilities like \"wget\"). Licenses which the users have\n# to agree on have to get supplied in the driver XML file. Printer\n# setup tools are supposed to ask the user for agreeing if the driver\n# is marked as non-free or with patent issues.\n\n# Example for packages provided by an external site:\n\n#   \u003cpackages\u003e\n#    \u003cpackage scope=\"general\" fingerprint=\"http://download.example.com/printerdrivers/gpg/key-fingerprint.txt\"\u003ehttp://download.example.com/printerdrivers/RPMS/i486/*laserstar*;http://download.example.com/printerdrivers/RPMS/x86_64/*laserstar*;http://download.example.com/printerdrivers/debian/dists/lsb3.2/main/binary-i386/*laserstar*;http://download.example.com/printerdrivers/debian/dists/lsb3.2/main/binary-amd64/*laserstar*\u003c/package\u003e\n#   \u003c/packages\u003e\n\n# Note that more than one mask can be supplied separating them with\n# semicolons (\";\").\n\n# The masks with absolute paths must match all package files, of all\n# architectures (usually i386/i486 and amd64/x86_64) and all package\n# systems (RPM and Debian). Use more than one mask if needed. On your\n# server each directory with package files inside must be browsable,\n# so that a client can expand the wildcards. In addition the packages\n# itself need to be readable for everyone so that they can get\n# downloaded.\n\n# Note also that the packages on the external server must be in\n# regular package repositories, so that automatic updates with the\n# package manager tools provided by the user's Linux distribution\n# (currently apt, yum, and zypper) can be performed. The configuration\n# data for the local tools is derived from the actual file locations,\n# which get determined by the masks.\n\n# Important is also that with paths (absolute starting with \"http://\",\n# \"https://\", or \"ftp://\" and relative simply having at least a slash\n# somewhere) wildcards can only be used after the last slash (\"/\"). So\n# wildcards are only allowed for the file name and not for the\n# directory names.\n\n# If the packages are signed, all packages of the same \u003cpackage\u003e entry\n# should be signed with the same key and the key should be registered\n# on the key server network. The key fingerprint should be made\n# available as a text file on the web site of the driver issuer and\n# the site should be with an SSL certificate which has been signed by\n# an official registrar. The \"fingerprint=...\" parameter should then\n# provide the link to the file with the key fingerprint. The link must\n# be an \"https://...\" URL and point to a file on a server of the\n# driver issuer. Packages must be signed for fully automatic upload by\n# default on Linux distributions. See also\n\n# https://www.linuxfoundation.org/collaborate/workgroups/openprinting/writingandpackagingprinterdrivers\n\n# The \u003cfunctionality\u003e section should make it easier for a user to\n# compare different drivers by giving some technical properties and\n# ratings (0...100) for common document types, system load, and\n# execution speed. The higher the number, the better the driver\n# performs here. It is not required to supply all items. Items can be\n# left out or can stay empty. \u003cfunctionality\u003e sections of the same\n# format can also be used in the \u003cprinter\u003e entries in the \u003cprinters\u003e\n# list, to describe exceptions for particular printers. If an item is\n# left out or empty there, the appropriate item in the general\n# \u003cfunctionality\u003e section is used, so only the items which are\n# different for the given printer need to be listed.\n\n#   \u003cfunctionality\u003e\n#    \u003cmaxresx\u003e1200\u003c/maxresx\u003e\n#    \u003cmaxresy\u003e1200\u003c/maxresy\u003e\n#    \u003ccolor /\u003e   OR   \u003cmonochrome /\u003e\n#    \u003ctext\u003e100\u003c/text\u003e\n#    \u003clineart\u003e100\u003c/lineart\u003e\n#    \u003cgraphics\u003e100\u003c/graphics\u003e\n#    \u003cphoto\u003e80\u003c/photo\u003e\n#    \u003cload\u003e50\u003c/load\u003e\n#    \u003cspeed\u003e90\u003c/speed\u003e\n#   \u003c/functionality\u003e\n\n# Not all tags are required here, if the valur for a tag is not known,\n# the tag has to be left out. Do not put empty tags (like\n# \"\u003ctext\u003e\u003c/text\u003e\" or \"\u003ctext /\u003e\" here.\n\n# The \u003cexecution\u003e section describes everything needed to execute the\n# driver.\n\n \u003cexecution\u003e\n\n# Sometimes it is possible that a driver depends on another driver,\n# for example a manufacturer publishes a core driver which is\n# completely free software and supports most of their printer. In\n# addition, he publishes closed-source plugins for the core driver to\n# support additional printers where they cannot open the driver code\n# for IP reasons. He wants to link in all his driver packages for\n# automatic download with the \u003cpackages\u003e tags. To make everything work\n# correctly he creates one driver entry for the core driver and one\n# for each plugin. The printers which do not need the plugin get\n# listed as supported by the core driver, the printers needing a\n# plugin are listed as supported by the plugin. To avoid that then\n# only a plugin gets automatically downloaded one adds a \u003crequires\u003e\n# tag to each entry of a plugin, to the beginning of the \u003cexecution\u003e\n# section:\n\n#    \u003crequires version=\"\u0026gt;= 5.0.1\"\u003egutenprint\u003c/requires\u003e\n#    \u003crequires version=\"\u0026gt;= 2.7.10\"\u003ehpijs\u003c/requires\u003e\n \n# The version attribute is optional, without, every version is\n# accepted. Optional relationships (\u003e=, \u003c=, =, \u003c, \u003e) allow to not only\n# accept the given version. The '\u003e´ and '\u003c' have to be replaced by the\n# appropriate XML entities, as described earlier here for other text\n# in the XML files. More than one \u003crequires\u003e tag is allowed.\n\n# Driver types are \n#\n#  \u003cghostscript /\u003e : The driver code is compiled into Ghostscript\n#\n#  \u003cijs /\u003e :         IJS plug-in. These are raster drivers which connect\n#                    to the IJS interface of the renderer, usually of \n#                    Ghostscript but also of pdftoijs or others. The\n#                    interface is based on pipes and is bi-directional.\n#                    It makes the driver independent of the renderer.\n#\n#  \u003ccups /\u003e :\t     CUPS Raster driver. The raster driver standard\n#                    introduced by CUPS. The renderer generates the CUPS\n#\t\t     Raster format, a bitmap format optimized for printing,\n#\t\t     and it gets piped into the driver.\n#\n#  \u003copvp /\u003e :        OpenPrinting Vector driver. DLL and IPC interface for\n#                    plugging printer drivers into the renderer. This is\n#                    the only solution of mudular printer drivers for high-\n#                    level graphics (vector) PDLs.\n#\n#  \u003cuniprint /\u003e :    A uniprint driver, consisting of one or more .upp\n#                    files for Ghostscript.\n#\n#  \u003cfilter /\u003e :      The driver code is a separate executable and the \n#                    driver does not fit into the groups listed above, \n#                    usually either a filter which converts generic \n#                    bitmap output of Ghostscript to the printer's \n#                    language, or a wrapper around Ghostscript.\n#\n#  \u003cpostscript /\u003e :  A driver which has PostScript as output (for \n#                    PostScript printers). It usually does not call\n#                    Ghostscript but only applies the user's option\n#                    settings to the data stream. But Ghostscript can\n#                    be called here, too, as for downgrading to a lower\n#                    PostScript level or for handling PDF input.\n#\n# The driver type only provides information for the web pages (or\n# driver auto-download facilities of printer setup tools), it is not\n# used when generating PPD files.\n\n   \u003cghostscript /\u003e\n\n# The driver's \u003cexecution\u003e section can also contain a\n#\n# \u003cnopjl /\u003e\n#\n# which suppresses the usage of PJL options (options which send PJL\n# commands to the printer). This is done with drivers where the driver\n# itself already produces a PJL header and where the PJL options\n# defined for the supported printers would badly interfere. In most\n# cases this is not needed, as foomatic-rip merges the PJL headers of\n# the driver and of the PJL options.\n\n# And the driver's \u003cexecution\u003e section can also contain a\n#\n# \u003cnopageaccounting /\u003e\n#\n# This suppresses the inserting of page accounting code (for CUPS)\n# into the PostScript data stream. Some drivers lead to unexpected\n# behavior with that. Especially for the generic PostScript drivers\n# (which do not use Ghostscript in most cases) the accounting code\n# should not be inserted.\n\n# The prototype defines what command the backends run to drive this\n# printer. It must take at least PostScript, preferably both PDF and\n# PostScript on stdin and generate the printer's native language on\n# stdout. Various %A, %B, etc substitution \"spots\" are specified; this\n# is where substition options will be placed.\n\n  \u003cprototype\u003egs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=md2k%A%Z -sOutputFile=- -\u003c/prototype\u003e\n \u003c/execution\u003e\n \u003ccomments\u003e\n  \u003cen\u003e\n    Part of the gdevmd2k-0.2a package by Shinya Umino.  The web page and\n    documentation are in Japanese.\n    \u0026lt;a href=\"/clippings/MD5000-translation.txt\"\u0026gt;Here\u0026lt;/a\u0026gt;\n    is an English translation of the driver's web page, and \u0026lt;a\n    href=\"/clippings/alpsmd.txt\"\u0026gt;here\u0026lt;/a\u0026gt; is the README from the\n    driver package.\n  \u003c/en\u003e\n \u003c/comments\u003e\n\n# if there is only a \u003cprototype\u003e and not a \u003cprototype_pdf\u003e entry,\n# foomatic-rip will feed both PostScript and PDF into the command line\n# defined with \u003cprototype\u003e, otherwise for PostScript input the\n# \u003cprototype\u003e command line is used and for PDF input the\n# \u003cprototype_pdf\u003e command line. Both are defined the same way and the\n# same command line snippets are inserted from the option settings.\n\n# If there is only a \u003cprototype\u003e defined, PDF will only be fed in if\n# the command line begins with \"gs \" (this means Ghostscript is called\n# and Ghostscript understands both PostScript and PDF) and there are\n# no options based on inserting active PostScript code into the input\n# data stream. Otherwise foomatic-rip converts PDF input to PostScript\n# at first and feeds the PostScript through the command line.\n\n# The printer list is a simple list of printers that this driver works\n# with. Alternatively, one can tell that a given printer works with a\n# given driver also by a \u003cdrivers\u003e list in the printer's XML file (see\n# above).\n\n \u003cprinters\u003e\n  \u003cprinter\u003e\n   \u003cid\u003eprinter/Alps-MD-1000\u003c/id\u003e\u003c!-- Alps MD-1000 --\u003e\n  \u003c/printer\u003e\n  \u003cprinter\u003e\n   \u003cid\u003eprinter/Alps-MD-1300\u003c/id\u003e\u003c!-- Alps MD-1300 --\u003e\n  \u003c/printer\u003e\n  \u003cprinter\u003e\n   \u003cid\u003eprinter/Alps-MD-2000\u003c/id\u003e\u003c!-- Alps MD-2000 --\u003e\n  \u003c/printer\u003e\n  \u003cprinter\u003e\n   \u003cid\u003eprinter/Alps-MD-4000\u003c/id\u003e\u003c!-- Alps MD-4000 --\u003e\n  \u003c/printer\u003e\n \u003c/printers\u003e\n\u003c/driver\u003e\n\n# In the printer list it is also possible to place comments or\n# exceptions in the driver's functionality (see above) specific to a\n# certain printer/driver pair:\n\n#  \u003cprinter\u003e\n#   \u003cid\u003eprinter/HP-LaserJet_4050\u003c/id\u003e\u003c!-- HP LaserJet 4050 --\u003e\n#   \u003ccomments\u003e\n#    \u003cen\u003eto 1200dpi\u003c/en\u003e\n#   \u003c/comments\u003e\n#   \u003cfunctionality\u003e\n#    \u003cmonochrome /\u003e\n#   \u003c/functionality\u003e\n#  \u003c/printer\u003e\n\n# Note that printer/driver relationships can also be expressed by\n# adding the driver to the \u003cdrivers\u003e lists of the appropriate printer\n# XML files.\n\n\nsource/opt/2.xml\n================\n\n# Every option exists independently from printers or drivers, because\n# they might apply to arbitrary combinations of printers and/or\n# drivers.  In practice, some drivers have wholly unique options\n# (gutenprint for example), while others (lots of generic basic\n# Ghostscript drivers, for example) share some options.\n\n\u003coption type=\"enum\" id=\"opt/2\"\u003e\n\n# Options are of a type \"enum\", \"bool\", \"int\", \"float\", \"string\", or\n# \"password\", options have an ID.  The id is also the filename.\n\n# The shortname is a spaceless short name for the thing.  It must not\n# contain / or : (otherwise it will not be handled correctly in PPD\n# files). It should be one of the standard Adobe PPD option names if\n# apropriate\n\n  \u003carg_shortname\u003e\n\n# Various things here, and all \u003ccomments\u003e, are internationalized.\n# They take the usual posix locale codes in the form xx[_YY], where xx\n# is a two-letter iso language code, and YY is two-letter country code\n# to distinguish differing national dialects.\n#\n# Generally the national dialects won't be very common or necessary\n# here.  The backends currently require that \u003cen\u003e content be provided.\n\n   \u003cen\u003ePageSize\u003c/en\u003e\u003c!-- backends only know \u003cen\u003e shortnames! --\u003e\n  \u003c/arg_shortname\u003e\n\n# The longname is a short phrase describing the thing in more detail\n# GUI tools usually show longnames\n\n  \u003carg_longname\u003e\n   \u003cen\u003ePage Size\u003c/en\u003e\n  \u003c/arg_longname\u003e\n\n# The \u003ccomments\u003e are used to form documentation.  In theory these can\n# become man pages or the like. Example:\n\n#   \u003ccomments\u003e\n#    \u003cen\u003e\n#     This option allows the user to get a lighter or darker printout, but\n#     keeping totally black areas black and not making white areas gray.\n#    \u003c/en\u003e\n#   \u003c/comments\u003e\n\n  \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n       it should be treated as documentation for the user. --\u003e\n\n# The execution section describe how the backend should execute this\n# option. The order and spot apply to the *driver*'s prototype for\n# \u003carg_substitution /\u003e (once called commandline) style options, or\n# just the order applies for \u003carg_postscript /\u003e and \u003carg_pjl /\u003e\n# options. The order and the \u003carg_section\u003e go into the \"*OrderDependency\"\n# line of the appropriate option entry in the PPD file, for this example\n# one would get\n\n#    *OrderDependency: 100 DocumentSetup *PageSize\n\n# When no \u003carg_section\u003e is given, \"AnySetup\" is used as a default.\n\n# For \u003carg_substitution /\u003e options the \u003carg_proto\u003e is inserted into\n# the driver's command line, at the spot (e. g. \"%A\") whose letter is\n# given between the \u003carg_spot\u003e...\u003c/arg_spot\u003e tags, the \u003carg_proto\u003e of\n# an \u003carg_postscript /\u003e option is a snippet of PostScript code which\n# is inserted into the PostScript data stream of the job, for\n# DSC-conforming PostScript into the section specified with\n# \u003carg_section\u003e, otherwise in the beginning. The \u003carg_proto\u003e lines of\n# \u003carg_pjl /\u003e options are PJL commands which are sent to the printer\n# before the output of the driver's command line is sent. Because this\n# only works reliably when the driver output does not have its own PJL\n# command header, these options are ignored when the driver's XML file\n# is marked with a \u003cnopjl /\u003e tag in its \u003cexecution\u003e section. Drivers\n# which produce their own PJL and therefore are marked with \u003cnopjl /\u003e\n# are for example \"hpijs\" and \"hl1250\". There is also the\n# \u003carg_composite /\u003e execution style for composite options, see the\n# \"Composite Options\" section below. The user's value gets put into\n# the \u003carg_proto\u003e's %s location. \n\n# The \u003carg_group\u003e...\u003c/arg_group\u003e tags put the option into the PPD\n# option group named here. In many PPD-based GUIs (\"kprinter\", \"xpp\",\n# OpenOffice.org, ...) every group is shown as a tab or a tree branch\n# containing the member options of this group. You can also specify\n# subgroups. Then you have to use a \"group path\" similar to directory\n# paths, with the group and subgroup names separated by slashes\n# (\u003carg_group\u003eGeneral/Paper\u003c/arg_group\u003e is the \"Paper\" subgroup in the\n# \"General\" group). Subgroups are not recommended as there is no GUI\n# supporting them. If an option is member of a composite option (See\n# \"Composite Options\" section below), the \u003carg_group\u003e...\u003c/arg_group\u003e\n# tags will be ignored.\n\n  \u003carg_execution\u003e\n   \u003carg_group\u003eGeneral\u003c/arg_group\u003e\n   \u003carg_order\u003e100\u003c/arg_order\u003e\n   \u003carg_section\u003eDocumentSetup\u003c/arg_section\u003e\n   \u003carg_spot\u003eZ\u003c/arg_spot\u003e\n   \u003carg_postscript /\u003e\n   \u003carg_proto\u003e\u0026lt;\u0026lt;/PageSize[%s]/ImagingBBox null\u0026gt;\u0026gt;setpagedevice\u003c/arg_proto\u003e\n  \u003c/arg_execution\u003e\n\n# The constraints define what printer/driver combinations this option\n# applies to.  The *most specific* constraint rules the day; it's\n# \"sense\" says whether or not the option is \"in\".  The winning\n# constraint also provides the default value used when this option\n# applies to that printer and driver.\n\n# Constraint elements are: driver, make, model.  The driver is the\n# driver name, or not present to apply to any driver.  The make is the\n# printer make, or not present to apply to any printer make.  The\n# model is the driver model, or not present to apply to any printer.\n# Instead of make/model, you can also specify \u003cprinter\u003eid\u003c/printer\u003e.\n\n# IMPORTANT: The make and model must match the one in the printer xml\n# definition, and everywhere else in the other options. One needs to\n# write a utility to change printer names sensibly.\n\n# It is illegal to have a model with no make.\n\n# It is illegal to have none of make/model/driver.\n\n# It is illegal to have *no* constraints, or at least such options are\n# never used.\n\n# For enum options, the defval is the id of the enum_val that is the\n# default.  For other option types, it is the actual default value\n# (ie, a number, or 1 or 0 for boolean, etc).\n\n  \u003cconstraints\u003e\n     \u003cconstraint sense=\"true\"\u003e\n      \u003cdriver\u003esj48\u003c/driver\u003e\n      \u003carg_defval\u003eev/1\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n     \u003cconstraint sense=\"true\"\u003e\n      \u003cdriver\u003er4081\u003c/driver\u003e\n      \u003carg_defval\u003eev/1\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n# A gajillion constraints deleted\n  \u003c/constraints\u003e\n  \u003cenum_vals\u003e\n   \u003cenum_val id=\"ev/1\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eUS Letter\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eLetter\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in \n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n\n# If present, the driverval is what gets substituted in for the %s in\n# the option's prototype.  This way the user-visible stuff can be\n# anything.\n\n    \u003cev_driverval\u003e612 792\u003c/ev_driverval\u003e\n\n# This enum_val has no constraints.  It *is* OK for enum_vals to\n# have no constraints; they are assumed to apply unless\n# constrained otherwise.\n\n   \u003c/enum_val\u003e\n   \u003cenum_val id=\"ev/115\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eA3\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eA3\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in \n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003e842 1191\u003c/ev_driverval\u003e\n\n# Here are some example constraints for an enum_val.  The A3 size\n# paper doesn't fit on lots of printers, so there are various\n# constraints to make the right thing happen.\n\n    \u003cconstraints\u003e\n     \u003cconstraint sense=\"true\"\u003e\n      \u003cdriver\u003eml85p\u003c/driver\u003e\n      \u003carg_defval\u003ena\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n     \u003cconstraint sense=\"true\"\u003e\n      \u003cmake\u003eHP\u003c/make\u003e\n      \u003cmodel\u003eDeskJet 1000C\u003c/model\u003e\n      \u003cdriver\u003epnm2ppa\u003c/driver\u003e\n      \u003carg_defval\u003ena\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n     \u003cconstraint sense=\"false\"\u003e\n      \u003cmake\u003eHP\u003c/make\u003e\n      \u003cmodel\u003eDeskJet 820C\u003c/model\u003e\n      \u003cdriver\u003epnm2ppa\u003c/driver\u003e\n      \u003carg_defval\u003ena\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n\n     # lots more...\n\n    \u003c/constraints\u003e\n   \u003c/enum_val\u003e\n  \u003c/enum_vals\u003e\n\u003c/option\u003e\n\n# To allow custom page sizes to be used one has add a choice with the\n# \"\u003cev_shortname\u003e\" being \"Custom\" to the \"PageSize\" option (example\n# below). This choice will be treated as the custom page size. When\n# the user selects this choice, he has to provide the width and the\n# height of the page in addition. These values are converted into\n# PostScript points (1/72 inches) and inserted into placeholders in\n# the \"\u003cev_driverval\u003e\" of this choice. The \"\u003cev_driverval\u003e\" should\n# contain a placeholder \"%0\" for the page width and \"%1\" for the page\n# height. Alternatively the \"\u003cev_driverval\u003e\" can contain two zeros\n# (\"0\") from which the first will be replaced by the page width and\n# the second by the page height. Then one gets Adobe-compliant entries\n# for the custom page size in the PPD files and one can set a custom\n# page size with the following commands:\n\n# CUPS: lpr -P huge -o PageSize=Custom.500x750cm bigposter.ps\n# LPRng: lpr -P huge -Z PageSize=Custom.500x750cm bigposter.ps\n# GNUlpr: lpr -P huge -o PageSize=Custom.500x750cm bigposter.ps\n# LPD: lpr -P huge -JPageSize=Custom.500x750cm bigposter.ps\n# PPR (RIP): ppr -P huge -F \"*PageSize Custom\" --ripopts 500x750cm\n#          bigposter.ps\n# PPR (Int.): ppr -P huge -F \"*PageSize Custom\" -i 500x750cm bigposter.ps\n# PDQ: pdq -P huge -oPageSize_Custom -aPageWidth=500\n#          -aPageHeight=750 -oPageSizeUnit_cm bigposter.ps\n# No spooler: foomatic-rip -P huge -o PageSize=Custom.500x750cm\n#\t   bigposter.ps\n\n# Here is an example for a custom page size setting:\n\n#   \u003cenum_val id=\"ev/PageSize-Custom\"\u003e\n#    \u003cev_longname\u003e\n#     \u003cen\u003eCustom size\u003c/en\u003e\n#    \u003c/ev_longname\u003e\n#    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n#         it should be treated as documentation for the user. --\u003e\n#    \u003cev_shortname\u003e\n#     \u003cen\u003eCustom\u003c/en\u003e\n#     \u003c!-- Until someone tells me how to learn the user locale in \n#          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n#    \u003c/ev_shortname\u003e\n#    \u003cev_driverval\u003e%0 %1\u003c/ev_driverval\u003e\n#   \u003c/enum_val\u003e\n\n# The entry\n\n#    \u003cev_driverval\u003e0 0\u003c/ev_driverval\u003e\n\n# would have the same effect as the \u003cev_driverval\u003e of the example.\n\n# For numerical (int, float) and bool options there is no \u003cenum_vals\u003e\n# section. Instead of this section numerical options have tags to\n# specify minimum and maximum value:\n\n#  \u003carg_max\u003e10.0\u003c/arg_max\u003e\n#  \u003carg_min\u003e0.0\u003c/arg_min\u003e\n\n# For the %s in the \u003carg_proto\u003e a number, either the user's choice\n# when he has specified this option or the default value is\n# inserted. Only numbers between the minimum and the maximum and in\n# case of int options only integer numbers are allowed.\n\n# Bool options can be set or not be set. There \u003carg_proto\u003e will be\n# inserted if they are set, nothing if they are not set. A %s in the\n# \u003carg_proto\u003e is not allowed, there is nothing to insert for it. As\n# \u003carg_defval\u003e in the option's constraints one can use 0 for not\n# setting the option by default or 1 for setting it by default.\n\n# Bool options need the specification of a name for the case when they\n# are not set. This will be used by GUIs and in PPD files:\n\n#  \u003carg_shortname_false\u003e\n#    \u003cen\u003eCorrectBlack\u003c/en\u003e\u003c!-- Backends only know \u003cen\u003e shortnames! --\u003e\n#  \u003c/arg_shortname_false\u003e\n\n# This name should not contain spaces, \":\", or \"/\".\n\n# See below for string, password, and composite options.\n\n\nComposite Options\n-----------------\n\nThis is an option type to make it easier for users to choose the best\nsettings for a certain printing task, even if the driver has very many\noptions. The idea is to have an enumerated choice option which does\nnot directly modify something in the driver's command line but sets\nseveral of the other options.\n\nOne example is the \"PrintoutMode\" option which will be made available\nfor all printer/driver combos which have at least one option regarding\nthe printout quality or document type. \n\nThe possible choices should be the same for every printer and driver,\nso that users (especially newbies) can bring their printers in the\nright mode by choosing one easy to understand item from a menu instead\nof having to switch several cryptic driver options. For now the\nchoices are the following:\n\n   Command line  GUI                Intention\n   -----------------------------------------------------------------------\n   Draft         Draft              Very fast, ink/toner-saving printout\n   Normal        Normal             Quick standard quality printout\n   High          High Quality       High quality for plain paper\n   VeryHigh      Very High Quality  Highest quality for plain/inkjet paper\n   Photo         Photo              Highest quality for photo paper\n\nThese choices can also have one of the following modifiers:\n\n   Modifier      Intention\n   -----------------------------------------------------------------------\n   .Gray         Grayscale printing on a color printer\n   .Mono         Monochrome printing (no grayscales, black or white)\n\nExamples:\n\n   Command line   GUI                      Comment\n   ---------------------------------------------------------------------\n   High.Gray      High Quality Grayscale\n   Photo          Photo                    Color photos on color printer\n   VeryHigh.Mono  Very High Quality Monochrome  Really black text in\n                                           highest quality on inkjet\n                                           printer, not suitable for\n                                           halftone images.\n   Normal         Normal                   Standard color in 300/360 dpi\n                                           on normal paper, grayscale\n                                           on black-and-white printers\n\nNot all choices/combinations of basic choices and modifiers must be\npresent. Often modes are simply not available on certain\nprinter/driver combos, as \"Photo\" on most lasers. It is highly\nrecommended to have \"Normal\" available, though (and having this the\ndefault).\n\nThe GUI names can have additional remarks in parantheses, for example\nwhen manual intervention (other cartridge, photo paper) is needed.\n\nTo add such an option to the database, one only needs to add an option\nXML file like the one below into the db/source/opt directory of the\ndatabase. The file db/source/opt/pcl3-PrintoutMode.xml could look\nlike this:\n\n--------------------------------------------------------------------------\n\u003coption type=\"enum\" id=\"opt/pcl3-PrintoutMode\"\u003e\n  \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n       it should be treated as documentation for the user. --\u003e\n  \u003carg_longname\u003e\n   \u003cen\u003ePrintout Mode\u003c/en\u003e\n  \u003c/arg_longname\u003e\n  \u003carg_shortname\u003e\n   \u003cen\u003ePrintoutMode\u003c/en\u003e\u003c!-- backends only know \u003cen\u003e shortnames! --\u003e\n  \u003c/arg_shortname\u003e\n  \u003carg_execution\u003e\n   \u003carg_order\u003e10\u003c/arg_order\u003e\n   \u003carg_section\u003eAnySetup\u003c/arg_section\u003e\n   \u003carg_spot\u003eA\u003c/arg_spot\u003e\n   \u003carg_composite /\u003e\n   \u003c!-- \u003carg_proto\u003e\u003c/arg_proto\u003e --\u003e\n  \u003c/arg_execution\u003e\n  \u003cconstraints\u003e\n     \u003cconstraint sense=\"true\"\u003e\n      \u003cdriver\u003epcl3\u003c/driver\u003e\n      \u003carg_defval\u003eev/pcl3-PrintoutMode-Normal\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n  \u003c/constraints\u003e\n  \u003cenum_vals\u003e\n   \u003cenum_val id=\"ev/pcl3-PrintoutMode-Draft\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eDraft\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eDraft\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eMediaType=Plain Resolution=150 Quality=Draft IntensityRendering=Halftones Passes=1\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n   \u003cenum_val id=\"ev/pcl3-PrintoutMode-Normal\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eNormal\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eNormal\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eMediaType=Plain Resolution=300 Quality=Normal IntensityRendering=Halftones Passes=1\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n   \u003cenum_val id=\"ev/pcl3-PrintoutMode-High\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eHigh\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eHigh\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eMediaType=Plain Resolution=600 Quality=Presentation IntensityRendering=FloydSteinberg Passes=4\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n   \u003cenum_val id=\"ev/pcl3-PrintoutMode-Photo\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003ePhoto (on photo paper)\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003ePhoto\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eMediaType=Premium Resolution=600 Quality=Presentation IntensityRendering=FloydSteinberg Passes=4\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n  \u003c/enum_vals\u003e\n\u003c/option\u003e\n--------------------------------------------------------------------------\n\nThe shown option is only an example, it is neither in the BZR\nrepository nore will it work with all printers which use the \"pcl3\"\ndriver. You can paste it into a file (make the \u003cev_driverval\u003es being\none line, the items separated by spaces) and copy it to db/source/opt/\nto try it out.\n\nThe \"\u003carg_composite /\u003e\" tag for the execution style specifies it as a\ncomposite option. The \u003carg_spot\u003e and \u003carg_proto\u003e are meaningless in a\ncomposite option and the \"\u003cev_driverval\u003e\"s contain a space-separated\nlist of all settings of which the pre-made configuration represented\nby this choice consists. Every choice of the composite option must set\nEXACTLY THE SAME individual options. In no choice it is allowed to\nleave out one of them. These individual options are the member options\nof the composite option. Not all options of a driver/printer combo\nneed to be member options of the composite option. It is not allowed\nto have one option being member of more than one composite option. The\ncomposite option must be an enumerated choice option, the member\noptions must be enumerated choice or boolean options. Member options\ncan even be composite options, so composite options can be nested.\n\nIt is enough to add a composite option as shown. The PPD generator\n(getppd() in lib/Foomatic/DB.pm, package \"foomatic-db-engine\") will\ntake care of the rest. It will\n\n   - Order all member options into a group (PPD group, see \"Option\n     Grouping\" below) named after the composite option.\n\n   - Add to every member option the choice \"Controlled by '\u003cname of\n     the composite option\u003e'\" and make this choice the default. If this\n     is chosen, the composite option will set the value for this\n     member, depending on what value is chosen for the composite\n     option. If the user chooses something else than \"Controlled by\n     '\u003cname of the composite option\u003e'\" the member option does not obey\n     the setting given by the composite option. So the advanced user\n     can also set the member options individually.\n\n   - If necessary the \u003carg_order\u003e and \u003carg_section\u003e of the composite\n     option is replaced by other values in the PPD file, so that the\n     composite option will be stuffed into the PostScript data stream\n     always before all its member options. Do not give \"0\" as the\n     order number to any of the member options.\n\nA composite option can also span only one (but not zero) member\noption. This is for example done with the \"PrintoutMode\" option of the\nHPIJS driver (\"foomatic-db-hpijs\" package). This driver has only one\noption for setting resolution and quality, but this option has\nsometimes many choices with rather cryptic names. The \"PrintoutMode\"\nmaps to the most important choices with the above-mentioned names, and\nin addition, these names are the same as of the \"PrintoutMode\" options\nof other drivers, so the user finds the important printing modes more\neasily.\n\nThe facility of composite options can also be used for other things\nthan for a \"PrintoutMode\" option, for example a finisher could be\ncontrolled by a composite option (to have the most common finishing\ntasks as \"Bound booklet\", \"Stapled booklet\", \"Letter in envelope\",\n...).\n\n\nForced Composite Options\n------------------------\n\nForced composite options are very similar to composite options, but the\nuser cannot set the individual member options, but only the composite\noption (the user is forced to use the composite option). This allows\noptions acting at two or more places.\n\nExample: A printer driver is a filter which converts a generic bitmap\nproduced by Ghostscript to the printer's native format. The command\nline for converting PostScript to the printer's language could look like this\n\ngs -q -dBATCH -dSAFER -dNOPAUSE -sDEVICE=bitcmyk -r600 -sOutputFile=-\n- | filter -size=\u003cwidth\u003ex\u003cheight\u003e\n\nwhere \u003cwidth\u003e and \u003cheight\u003e is the page size in points (1/72\ninches). In addition, Ghostscript needs to know the page size. For\nthis one usually puts the following PostScript code into the\nPostScript input file:\n\n\u003c\u003c/PageSize[\u003cwidth\u003e \u003cheight\u003e]/ImagingBBox null\u003e\u003esetpagedevice\n\nwhere \u003cwidth\u003e and \u003cheight\u003e is again the page size in points. So we\nneed two options for setting the page size, one PostScript option to\nset the page size for Ghostscript and one command line option to set\nthe page size for the filter. The user would have to change both when\nhe wants to print on another paper size, and it does not make sense to\nhave different settings for the two. So one could make the \"PageSize\"\noption a composite option of the two, but then the GUI exposes an ugly\n\"PageSize\" group with the two individual options. To avoid this, one\nuses a forced composite option (\"Forced\" because the user is forced to\nuse the composite option, the individual member options are not\naccessible).\n\nAssuming that the name of the PostScript option for the page size is\n\"GSPageSize\", the name of the page size option for the filter is\n\"filterPageSize\" and both have the choices \"A4\", \"Letter\", and\n\"Legal\", the forced composite option named \"PageSize\" would look as\nfollows:\n\n--------------------------------------------------------------------------\n\u003coption type=\"enum\" id=\"opt/filter-PageSize\"\u003e\n  \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n       it should be treated as documentation for the user. --\u003e\n  \u003carg_longname\u003e\n   \u003cen\u003ePage Size\u003c/en\u003e\n  \u003c/arg_longname\u003e\n  \u003carg_shortname\u003e\n   \u003cen\u003ePageSize\u003c/en\u003e\u003c!-- backends only know \u003cen\u003e shortnames! --\u003e\n  \u003c/arg_shortname\u003e\n  \u003carg_execution\u003e\n   \u003carg_order\u003e10\u003c/arg_order\u003e\n   \u003carg_section\u003eAnySetup\u003c/arg_section\u003e\n   \u003carg_spot\u003eA\u003c/arg_spot\u003e\n   \u003carg_forced_composite /\u003e\n  \u003c/arg_execution\u003e\n  \u003cconstraints\u003e\n     \u003cconstraint sense=\"true\"\u003e\n      \u003cdriver\u003efilter\u003c/driver\u003e\n      \u003carg_defval\u003eev/filter-PageSize-Letter\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n  \u003c/constraints\u003e\n  \u003cenum_vals\u003e\n   \u003cenum_val id=\"ev/filter-PageSize-Letter\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eLetter\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eLetter\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eGSPageSize=Letter filterPageSize=Letter\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n   \u003cenum_val id=\"ev/filter-PageSize-Legal\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eLegal\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eLegal\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eGSPageSize=Legal filterPageSize=Legal\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n   \u003cenum_val id=\"ev/filter-PageSize-A4\"\u003e\n    \u003cev_longname\u003e\n     \u003cen\u003eA4\u003c/en\u003e\n    \u003c/ev_longname\u003e\n    \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n         it should be treated as documentation for the user. --\u003e\n    \u003cev_shortname\u003e\n     \u003cen\u003eA4\u003c/en\u003e\n     \u003c!-- Until someone tells me how to learn the user locale in\n          backends, the shortname must be monolingual in \u003cen\u003e! --\u003e\n    \u003c/ev_shortname\u003e\n    \u003cev_driverval\u003eGSPageSize=A4 filterPageSize=A4\u003c/ev_driverval\u003e\n   \u003c/enum_val\u003e\n  \u003c/enum_vals\u003e\n\u003c/option\u003e\n--------------------------------------------------------------------------\n\nThis looks exactly like a usual composite option and works also the\nsame way. The only difference is that instead of an \"\u003carg_composite\n/\u003e\" tag \"\u003carg_forced_composite /\u003e\" is used. If the PPD generator finds\nsuch an option, it hides the member options by only using\n\"*Foomatic...\" keywords to describe them, not any standard PPD\nkeywords as \"*OpenUI...\", \"*OrderDependency...\", ... This way\nPPD-aware graphical frontends do not see the member options but\nfoomatic-rip has all information from them to run the driver\ncorrectly.\n\n\nString and Password Options\n---------------------------\n\nThese options allow the user to supply nearly arbitrary strings\n(within limits of length, characters and structure) to the printer\ndriver, for example names of color calibration files, fax numbers,\npasswords for confidential jobs, ... Frequently needed strings can be\nadded as enumerated choices, so a frontend can show the option as a\ncombo-box. The enumerated choices are also used for frontends which\nonly support options as defined by the PPD spec. So having enumerated\nchoices is highly recommended for most of these options.\n\nIn the XML database string and password options look similar to\nenumerated choice options. The differences are the option types\n\"string\" or \"password\" and the additional tags to restrict the\npossible strings.\n\nThe \"\u003carg_maxlength\u003e\" tags give a length limit, it should once not\nallow strings longer than around 100 characters, as otherwise\nfoomatic-configure could generate a line longer than the allowed 255\ncharacters in the PPD file when setting the default value, and second,\nwhich is very important, it should not allow strings which are too\nlong for the printer filter or driver so that buffer overflows cannot\noccur. Not using the \"\u003carg_maxlength\u003e\" tags makes arbitrary long\nstrings to be accepted, this is not recommended.\n\nWith \"\u003carg_allowedchars\u003e\" the accepted strings can be restricted to\ncontain only the characters given in the list. This restrictions does\nnot only avoid that the filter chokes on a wrong option, it serves\nmainly for security reasons, for example to avoid a string like \"|| rm\n-rf * ||\" for a command line option. So if the option prototype does\nnot quote the string, command delimiter characters, I/O re-directors,\nand shell special characters (\";\", \"|\", \"\u0026\", \"\u003c\", \"\u003e\", \"*\", \"?\", \"[\",\n\"]\", \"{\", \"}\", \"(\", \")\", \"$\", \"\\\", \"'\", \"\"\") should not be allowed. If\nthe string is quoted by the option prototype, the closing quote\ncharacter and the backslash should not be allowed, so that one cannot\nescape from the quoting. The allowed characters are checked by a\n\"/^[...]*$/\" expression in the Perl scripts, so ranges with \"-\", a\nlist of forbidden characters with a leading \"^\", or special characters\nas \"\\w\", \"\\d\", \"\\x07\", ...  are allowed. To allow a backslash, one has\nto escape it by using two backslashes (\"\\\\\"). To allow a \"-\" it must\nbe in the end of the list to not make it defining a range and for a\n\"^\" must be placed at any other place than the beginning of the string\nif it should be explicitly allowed.\n\n\"\u003carg_allowedregexp\u003e\" allows also to restrict the structure of the\nstring, as it defines an arbitrary Perl regular expression (see \"man\nperlre\") which has to be matched by the string. This serves also for\nhaving only strings which are usable by the filter and which do not\ndestroy the command line structure. With this one can for example\nforbid a backslash as the last character to avoid escaping the closing\nquote of the option prototype. Regular expressions are applied via a\n'/.../' expression in the Perl scripts. To apply the pattern matching\nmodifiers \"i\", \"m\", \"s\", or \"x\" (as \"/.../i\" for case-insensitive\nmatching) begin the regular expression with \"(?\u003cmodifiers\u003e)\" (as\n\"(?i)...\" for case-insensitive matching).\n\nIt is highly recommended to use at least one of \"\u003carg_allowedchars\u003e\"\nand \"\u003carg_allowedregexp\u003e\", as otherwise all characters are allowed in\nthe user-supplied string and so a malicious user can execute arbitrary\nshell or PostScript commands. If both tags are used, both conditions\nhave to be fulfilled.\n\nNote that for the character lists and regular expressions in the XML\nfiles the following character substitutions have to be done:\n\n   \u003c --\u003e \u0026lt;\n   \u003e --\u003e \u0026gt;\n   \" --\u003e \u0026quot;\n   ' --\u003e \u0026apos;\n   \u0026 --\u003e \u0026amp;\n\nHere is an example for an option to supply the file name for an ICC\nprofile for the \"foo2zjs\" driver (this option is neither in the CVS\nfor the Foomatic database nor tested with this driver):\n\n--------------------------------------------------------------------------\n\u003coption type=\"string\" id=\"opt/foo2zjs-ICM\"\u003e\n    \u003ccomments\u003e\n\t\u003cen\u003e\n\tThis option controls which .ICM file to use for color correction.\n\tICM files are stored in the directory /usr/share/foo2zjs/icm/.\n\t\u003c/en\u003e\n    \u003c/comments\u003e\n    \u003carg_longname\u003e \u003cen\u003eICM Color Profile\u003c/en\u003e \u003c/arg_longname\u003e\n    \u003carg_shortname\u003e \u003cen\u003eICM\u003c/en\u003e \u003c/arg_shortname\u003e\n    \u003carg_execution\u003e\n\t\u003carg_group\u003eAdjustment\u003c/arg_group\u003e\n\t\u003carg_order\u003e300\u003c/arg_order\u003e\n\t\u003carg_spot\u003eA\u003c/arg_spot\u003e\n\t\u003carg_required /\u003e\n\t\u003carg_substitution /\u003e\n\t\u003carg_proto\u003e-G%s \u003c/arg_proto\u003e\n    \u003c/arg_execution\u003e\n    \u003carg_maxlength\u003e127\u003c/arg_maxlength\u003e\n    \u003carg_allowedchars\u003eA-Za-z0-9\\._/-\u003c/arg_allowedchars\u003e\n    \u003carg_allowedregexp\u003e(?\u0026lt;!\\/)$\u003c/arg_allowedregexp\u003e\n    \u003cconstraints\u003e\n\t\u003cconstraint sense=\"true\"\u003e\n\t    \u003cdriver\u003efoo2zjs\u003c/driver\u003e\n\t    \u003carg_defval\u003eev/foo2zjs-ICM-none\u003c/arg_defval\u003e\n\t\u003c/constraint\u003e\n\t\u003cconstraint sense=\"true\"\u003e\n\t    \u003cmake\u003eMinolta\u003c/make\u003e\n\t    \u003cmodel\u003emagicolor 2300 DL\u003c/model\u003e\n\t    \u003cdriver\u003efoo2zjs\u003c/driver\u003e\n\t    \u003carg_defval\u003eev/foo2zjs-ICM-DL2312\u003c/arg_defval\u003e\n\t\u003c/constraint\u003e\n\t\u003cconstraint sense=\"true\"\u003e\n\t    \u003cmake\u003eMinolta\u003c/make\u003e\n\t    \u003cmodel\u003emagicolor 2200 DL\u003c/model\u003e\n\t    \u003cdriver\u003efoo2zjs\u003c/driver\u003e\n\t    \u003carg_defval\u003eev/foo2zjs-ICM-DL2200RGB\u003c/arg_defval\u003e\n\t\u003c/constraint\u003e\n    \u003c/constraints\u003e\n    \u003cenum_vals\u003e\n\t\u003cenum_val id=\"ev/foo2zjs-ICM-none\"\u003e\n\t    \u003cev_longname\u003e \u003cen\u003eNo ICM color correction\u003c/en\u003e \u003c/ev_longname\u003e\n\t    \u003cev_shortname\u003e \u003cen\u003eNone\u003c/en\u003e \u003c/ev_shortname\u003e\n\t    \u003cev_driverval\u003e\u003c/ev_driverval\u003e\n\t\u003c/enum_val\u003e\n\t\u003cenum_val id=\"ev/foo2zjs-ICM-DL2312\"\u003e\n\t    \u003cev_longname\u003e \u003cen\u003eFile DL2312.icm\u003c/en\u003e \u003c/ev_longname\u003e\n\t    \u003cev_shortname\u003e \u003cen\u003eDL2312\u003c/en\u003e \u003c/ev_shortname\u003e\n\t    \u003cev_driverval\u003eDL2312.icm\u003c/ev_driverval\u003e\n\t    \u003cconstraints\u003e\n\t        \u003cconstraint sense=\"false\"\u003e\n\t    \t    \u003cmake\u003eHP\u003c/make\u003e \u003cmodel\u003eLaserJet 1000\u003c/model\u003e\n\t        \u003c/constraint\u003e\n\t    \u003c/constraints\u003e\n\t\u003c/enum_val\u003e\n\t\u003cenum_val id=\"ev/foo2zjs-ICM-DL2324\"\u003e\n\t    \u003cev_longname\u003e \u003cen\u003eFile DL2324.icm\u003c/en\u003e \u003c/ev_longname\u003e\n\t    \u003cev_shortname\u003e \u003cen\u003eDL2324\u003c/en\u003e \u003c/ev_shortname\u003e\n\t    \u003cev_driverval\u003eDL2324.icm\u003c/ev_driverval\u003e\n\t    \u003cconstraints\u003e\n\t        \u003cconstraint sense=\"false\"\u003e\n\t    \t    \u003cmake\u003eHP\u003c/make\u003e \u003cmodel\u003eLaserJet 1000\u003c/model\u003e\n\t        \u003c/constraint\u003e\n\t    \u003c/constraints\u003e\n\t\u003c/enum_val\u003e\n\n\t...\n\n    \u003c/enum_vals\u003e\n\u003c/option\u003e\n--------------------------------------------------------------------------\n\nThis option allows to choose either one of the given file names,\neither by using the \"\u003cev_shortname\u003e\"s or the \"\u003cev_driverval\u003e\"s, or one\ncan give every arbitrary other file name with a maximum length of 127\ncharacters, only containing letters, digits, periods, underscores,\ndashes, and slashes, and not having a slash in the end (no\ndirectories). Note that in Perl the period must be escaped by a\nbackslash to be taken literally, otherwise it stands for an arbitrary\ncharacter. The regular expression for blocking out strings ending with\na slash is \"(?\u003c!\\/)$\" (see \"man perlre\", search for \"(?\"). Here the\nslash is quoted by a backslash. In the XML file the \"\u003c\" is replaced by\n\"\u0026lt;\" so that the XML structure does not get broken. foomatic-rip\ntranslates this back before applying the regular expression.\n\nTo be able to offer strings as an enumerated choice which are not\nallowed as an option name in a PPD file, the \"\u003cev_shortname\u003e\" may\ndiffer from the \"\u003cev_driverval\u003e\", the string inserted at the \"%s\"\nplace holder in the \"\u003carg_proto\u003e\" is always the \"\u003cev_driverval\u003e\",\nindependent whether the user supplies the \"\u003cev_driverval\u003e\" directly or\nthe \"\u003cev_shortname\u003e\". In this example both\n\n   lpr -o ICM= file.ps\n\nand\n\n   lpr -o ICM=None file.ps\n\nsupply an empty string as the value of the ICM option.\n\nFor the default value there must be an enumerated choice, if there is\nnone, the PPD generator will create one. So this entry is allowed\n(this option is only an example, it is not in the CVS of the Foomatic\ndatabase):\n\n--------------------------------------------------------------------------\n\u003coption type=\"password\" id=\"opt/Password\"\u003e\n  \u003c!-- A multilingual \u003ccomments\u003e block can appear here, too;\n       it should be treated as documentation for the user. --\u003e\n  \u003carg_longname\u003e\n   \u003cen\u003ePassword (for confidential jobs)\u003c/en\u003e\n  \u003c/arg_longname\u003e\n  \u003carg_shortname\u003e\n   \u003cen\u003ePassword\u003c/en\u003e\u003c!-- backends only know \u003cen\u003e shortnames! --\u003e\n  \u003c/arg_shortname\u003e\n  \u003carg_execution\u003e\n   \u003carg_group\u003eGeneral\u003c/arg_group\u003e\n   \u003carg_order\u003e100\u003c/arg_order\u003e\n   \u003carg_spot\u003eB\u003c/arg_spot\u003e\n   \u003carg_substitution /\u003e\n   \u003carg_proto\u003e --pass=%s\u003c/arg_proto\u003e\n  \u003c/arg_execution\u003e\n  \u003carg_maxlength\u003e30\u003c/arg_maxlength\u003e\n  \u003carg_allowedchars\u003eA-Za-z0-9\\.,_\\+\\=\\:-/\u003c/arg_allowedchars\u003e\n  \u003cconstraints\u003e\n     \u003cconstraint sense='true'\u003e\n      \u003cdriver\u003emydriver\u003c/driver\u003e\n      \u003carg_defval\u003e\u003c/arg_defval\u003e\n     \u003c/constraint\u003e\n  \u003c/constraints\u003e\n\u003c/option\u003e\n--------------------------------------------------------------------------\n\nThe default value is an empty string here. So the PPD generator will\nadd a choice for the empty string.\n\nNormally, automatically added choices get the same \"\u003cev_shortname\u003e\" as\nthe string itself, but if the string is not allowed as an option name\nin a PPD file, the \"\u003cev_shortname\u003e\" will be modified. For an empty\nstring (as in the example above) \"None\" will be used and all\ncharacters except numbers, letters, and underscores (\"_\") will be\nreplaced by underscores.\n\nThe option types \"string\" and \"password\" are treated exactly the same\nway by the PPD generator and by foomatic-rip, the different names\nare only for frontends to know whether the input field should display\nthe typed characters or asterisks on the screen.\n\n\nCUPS Custom Options\n-------------------\n\nCUPS defines several extensions to the PPD specifications to support\nthe functionality of modern printers:\n\nhttp://www.cups.org/documentation.php/doc-1.4/spec-ppd.html\n\nThere are extensions for so-called \"Custom Options\" where instead of\ngiven enumerated choices freely choosable custom values can be\nsupplied. As Foomatic's numerical, string, and password options can be\nimplemented as CUPS custom options in the PPDs as well, the PPD\ngenerator does both implementations in the PPDs. There are the\n\"*Foomatic...\" keywords generated, as before, but also the CUPS PPD\nextension, consisting of the keywords \"*Custom\u003coption\u003e\" and\n\"*ParamCustom\u003coption\u003e\" keywords. This way GUIs which are aware of\nCUPS' custom options give full access to Foomatic's numerical, string,\nand password options.\n\nfoomatic-rip understands also PPD files now which describe custom\noptions only by the CUPS extension and not with \"*Foomatic...\"\nkeywords.\n\nAllowed characters and regular expressions for string and password\noptions cannot be described by CUPS PPD extensions. So CUPS-aware GUIs\nwill allow input of strings which do not match these restrictions, but\nfoomatic-rip will let the option fall back to the default value in\nsuch a case. This way the security is assured.\n\n\nOption Grouping\n---------------\n\nAll options should be put in groups (with the tags\n\"\u003carg_group\u003e...\u003c/arg_group\u003e\" in the \"\u003carg_execution\u003e\" section of the\noption XML files, see above). This way many GUIs sort the options into\ntabs or tree branches according to the groups. This way one gets only\nthe most important options on the first tab and not so often needed\nones on additional tabs. This also overrides the automatic option\ngrouping of CUPS (Groups \"General\" and \"Extra\").\n\nIt is recommended to have the options in groups as follows (plus\nperhaps special groups, but not one group for every option):\n\nGeneral\n\n  Here go options which are most used on a job-by-job basis, as the\n  options for paper type, size, and tray, ink type, duplex, ... and\n  all options affecting the printout quality, as resolution,\n  dithering, ... and especially \"PrintoutMode\". If a \"PrintoutMode\"\n  option is present, all quality-related options covered by the\n  \"PrintoutMode\" option go into the automatically created\n  \"PrintoutMode\" group (see above). And this is intended, these\n  options are now usually controlled by \"PrintoutMode\" and so they are\n  not the most important options for the first tab any more.\n\n  Do not put color/brightness/gamma, ... options here, they go to\n  \"Adjustment\".\n\n  Options typically to go here are:\n\n    o PageSize\n    o InputSlot\n    o MediaType\n    o InkType\n    o Duplex\n    o PrintoutMode\n    o Resolution\n    o REt\n    o Dither\n    o FastRes\n    o Economode\n    o ...\n\n  All options mentioned after \"PrintoutMode\" will usually be used as\n  member options for \"PrintoutMode\", they are only in this group when\n  there is no \"PrintoutMode\" option.\n\nPrintoutMode\n\n  This group only exists if there is a \"PrintoutMode\" option, because\n  it is generated by this option. It contains the member options of\n  \"PrintoutMode\". Typical candidates are\n\n    o Resolution\n    o REt\n    o Dither\n    o FastRes\n    o Economode\n    o ...\n\n  They do not need an \"\u003carg_group\u003ePrintoutMode\u003c/arg_group\u003e\" line, they\n  are put into this group automatically. You should better put an\n  \"\u003carg_group\u003eGeneral\u003c/arg_group\u003e\" line into these options, so that\n  they go into the \"General\" group when there is a printer/driver\n  combo for which no \"PrintoutMode\" option applies.\n\nAdjustment\n\n  Options for correcting the appearance of colors, contrast, ..., for\n  head alignment, ... etc. Here most numerical options will go, but\n  also things like \"Density\", also if it is an enumerated choice\n  option. Typical candidates are:\n\n    o Gamma\n    o Brightness\n    o Contrast\n    o Density\n    o Saturation\n    o Cyan\n    o Magenta\n    o Yellow\n    o ...\n\nFinishing\n\n  If a printer has a stapler, folder, cutter, envelope packer, or\n  similar devices to do additional processing on the ready printout,\n  the options to control this stuff go into this group. Examples:\n\n    o Stapling\n    o Binding\n    o Cutting\n    o Booklet\n    o ...\n\nMiscellaneous\n\n  Options which do not fit into the mentioned groups and for which it\n  is not worth to make a special group.\n\n\nUnprintable margins\n-------------------\n\nOn most printers you cannot print arbitrarily close to the borders of\nthe paper. You usually will have margins of certain width on which you\ncannot print. For filters and application programs to know about these\nmargins PPD files have \"*ImageableArea\" lines which define the\npositions of the lower, the upper, the left, and the right borders of\nthe area on which the printer can print. There is one line for each\npaper size listed in the \"*PageSize\" option.\n\nTo conveniently generate these lines one can use the following XML\nstructure in the Foomatic database entries:\n\n--------------------------------------------------------------------------\n\u003cmargins\u003e\n     \u003cgeneral\u003e\n       \u003c!-- The margins here are valid for every paper size for --\u003e\n       \u003c!-- which there is no \"exception\" section --\u003e\n       \u003c!-- ---------- --\u003e\n       \u003c!-- possible units: --\u003e\n       \u003c!-- pt, in, mm, cm,\n       \u003c!-- dotsNNNdpi (NNN: resolution in which dots are counted) --\u003e\n       \u003c!-- if \"unit\" not present, default unit is pt --\u003e\n       \u003c!-- ---------- --\u003e\n       \u003c!-- if a margin is not present, default width is used --\u003e\n       \u003c!-- ---------- --\u003e\n       \u003c!-- a missing \"general\" section assumes the default borders as the --\u003e\n       \u003c!-- general borders and \"pt\" as the default unit for --\u003e\n       \u003c!-- \"exceptions\". --\u003e\n       \u003c!-- ---------- --\u003e\n       \u003c!-- Default margin widths: 1/4 inch left/right, 1/2 inch top/bottom --\u003e\n       \u003cunit\u003ept\u003c/unit\u003e\n       \u003ctop\u003e9\u003c/top\u003e\n       \u003cbottom\u003e36\u003c/bottom\u003e\n       \u003cleft\u003e18\u003c/left\u003e\n       \u003cright\u003e18\u003c/right\u003e\n     \u003c/general\u003e\n     \u003cexception PageSize=\"Photo4x6TearoffTab\"\u003e\n       \u003c!-- if one or more of \"unit\", \"top\", \"bottom\", \"left\", --\u003e\n       \u003c!-- \"right\" is missing, the appropriate item of the \"general\" --\u003e\n       \u003c!-- section is used --\u003e\n       \u003ctop\u003e0\u003c/top\u003e\n       \u003cleft\u003e0\u003c/left\u003e\n       \u003cright\u003e0\u003c/right\u003e\n     \u003c/exception\u003e\n     \u003cexception PageSize=\"A4\"\u003e\n       \u003c!-- It is also possible to give absolute values in PostScript --\u003e\n       \u003c!-- coordinates where the origin is the lower left corner. To --\u003e\n       \u003c!-- do so, the \u003cabsolute /\u003e tag has to be added, otherwise --\u003e\n       \u003c!-- the values are the widths of the unprintable margins --\u003e\n       \u003cabsolute /\u003e\n       \u003cleft\u003e10\u003c/left\u003e\n       \u003cright\u003e585\u003c/right\u003e\n     \u003c/exception\u003e\n     \u003cexception PageSize=\"...\"\u003e\n       ...\n     \u003c/exception\u003e\n     ...\n\u003cmargins\u003e\n--------------------------------------------------------------------------\n\nThis structure is allowed in printer entries in the \"\u003cmechanism\u003e\" \nsection and in driver entries in the \"\u003cexecution\u003e\" section or inside a \n\"\u003cprinter\u003e\" entry of the driver's printer list. In the \"\u003cexecution\u003e\" \nsection of a driver entry the margins are valid for all printers used \nwith this driver, in a \"\u003cprinter\u003e\" entry they apply only to the given \nprinter/driver combo.\n\nThe shown example could be for the HP PhotoSmart 7150/7350, which does \nfull-bleed only on HP's special photo paper with an 0.5 inch wide \ntear-off tab on the lower border (and some other paper sizes used in the \nphoto tray). On all other paper sizes the printer leaves white borders \nof half an inch at the top and at the bottom and a quarter of an inch on \nthe left and right hand side (1 inch are 72 pt). In addition, the page \nsize \"A4\" allows to print up to 10 points to the left and the right borders.\n\nAt first we give the general borders (\"\u003cgeneral\u003e\" section) where we \nchoose the unit \"pt\" (PostScript points) for the numbers. These borders \nare valid for all paper sizes which are not explicitly mentioned with an \n\"\u003cexception ...\u003e\" section. For our printers one of the exceptions is the \n4x6 photo paper with the tear-off tab (including the tab the paper is \n4x6.5 inches large). here the printer prints up to the left, right, and \ntop borders. Therefore we have margins of zero here. At the lower border \nthe printer still leaves half an inch white (therefore probably HP \nintroduced the tear-off tab), so we keep the 36 pt of the \"\u003cgeneral\u003e\" \nsection by not mentioning a new lower border. For A4 we redefine the \nleft and the right border. This is also possible in absolute PostScript \ncoordinates measured from the lower left corner, as we do here. We \nindicate this with the \"\u003cabsolute /\u003e\" tag. The left border is at 10 pt \nfrom the left, and as A4 paper is 595 pt wide, the right border is at \n585 points from the left.\n\nOne hint for the choice of the units: Float numbers as border widths are \nallowed, but it is recommended for having exact info to choose a unit \nwhich gives integer numbers for the widths (which is always possible \nwith the \"dotsNNNdpi\" unit with NNN being the maximum resolution of the \nprinter).\n\nA \"\u003cmargins\u003e\" section in a printer entry should represent the printer's \nhardware capabilities. Such a section in a driver entry should represent \nhow the driver's limitations are. If there are margins defined in both \nthe printer and the driver entry of the desired printer/driver combo, \nthe more restrictive (wider) borders count. If there are no border \ndefinitions in both the printer and the driver entry, the borders are \nassumed to be of the default widths.\n\n\nAdding arbitrary extra entries to the PPD file\n----------------------------------------------\n\nThe \"\u003cppdentry\u003e\" tags allow to add extra lines to the PPD file. The \ntags can be put into the top level (\"\u003cprinter\u003e\") of a printer XML entry, \ninto the \"\u003cexecution\u003e\" section of a driver XML entry, or into the \n\"\u003cprinter\u003e\" entries of the printer list in a driver XML file. They serve \nmainly to put a default resolution into PPD files for drivers without \n\"Resolution\" option. Examples:\n\n\"hpijs\"  driver, default resolution for HP DeskJet 350. For this driver \nthe default resolution depends on the printer class. Therefore the \nappropriate \"\u003cppdentry\u003e\"s have to be in the printer entries of the \nprinter list:\n\n--------------------------------------------------------------------------\n\u003cdriver id=\"driver/hpijs\"\u003e\n  \u003cname\u003ehpijs\u003c/name\u003e\n  ...\n  \u003cprinters\u003e\n   \u003cprinter\u003e\n    \u003cid\u003eprinter/HP-DeskJet_350C\u003c/id\u003e\u003c!-- HP DeskJet 350C --\u003e\n    \u003cppdentry\u003e\n      *DefaultResolution: 600dpi\n    \u003c/ppdentry\u003e\n    \u003cmargins\u003e\n     \u003cgeneral\u003e\n      \u003cunit\u003ein\u003c/unit\u003e\n      \u003crelative /\u003e\n      \u003cleft\u003e0.25\u003c/left\u003e\n      \u003cright\u003e0.25\u003c/right\u003e\n      \u003ctop\u003e0.125\u003c/top\u003e\n      \u003cbottom\u003e0.67\u003c/bottom\u003e\n     \u003c/general\u003e\n     \u003cexception PageSize=\"A4\"\u003e\n      \u003cleft\u003e0.135\u003c/left\u003e\n      \u003cright\u003e0.135\u003c/right\u003e\n     \u003c/exception\u003e\n    \u003c/margins\u003e\n   \u003c/printer\u003e\n   ...\n  \u003c/printers\u003e\n\u003c/driver\u003e\n--------------------------------------------------------------------------\n\n\"pnm2ppa\" driver: This driver has no \"Resolution\" option, and all \nprinters print in 600 dpi with it. So we put the \"\u003cppdentry\u003e\" into the \n\"\u003cexecution\u003e\" section:\n\n--------------------------------------------------------------------------\n\u003cdriver id=\"driver/pnm2ppa\"\u003e\n  \u003cname\u003epnm2ppa\u003c/name\u003e\n  \u003curl\u003ehttp://sourceforge.net/projects/pnm2ppa/\u003c/url\u003e\n  \u003cexecution\u003e\n   \u003cfilter /\u003e\n   \u003cprototype\u003egs -q -dNOPAUSE -dPARANOIDSAFER -dBATCH -r600%A%Z \n-sOutputFile=- - | pnm2ppa%C%B -i - -o -\u003c/prototype\u003e\n   \u003cppdentry\u003e\n    *DefaultResolution: 600dpi\n   \u003c/ppdentry\u003e\n  \u003c/execution\u003e\n  ...\n\u003c/driver\u003e\n--------------------------------------------------------------------------\n\nNote that leading spaces are removed from the lines between the\n\"\u003cppdentry\u003e\" tags before they get inserted into the PPD file.\n\nThe lines are added at the end of the PPD file header, right after the\nlines for the basic hardware capabilities of the printer.\n\n\nExample for a Foomatic-generated PPD file\n-----------------------------------------\n\nBelow is an example PPD file, the PPD file for the HP Color LaserJet 4550\nused with the \"pxlcolor\" driver. It was generated with the command line\n\n   ./foomatic-ppdfile -p HP-Color_LaserJet_4550 -d pxlcolor\n\nThe structure is completely Adobe-compliant and no relevant\ninformation is in comments. Besides the usual keywords which one finds\nin PPDs there are some special ones beginning with\n\"*Foomatic...\". These keywords are read by foomatic-rip and contain\nall information to build the renderer's command line. See explanations\nfor these keywords below the example file.\n\nIf a printer has auto-detection information in the Foomatic database,\nthe manufacturer and model names from there are inserted in the\n\"*Manufacturer:\" and \"*Product:\" fields and the IEEE-1284 ID string is\nput into the \"*1284DeviceID:\" field.\n\nIndependent whether there is auto-detection information, there is an\nadditional \"DRV:\" field in the \"*1284DeviceID:\" which contains driver\nproperties. These properties are put here, so that they appear in\nCUPS' PPD/driver overview listings (\"lpinfo -l -m\"). This way a\nprinter setup tool can show the driver properties in a driver overview\nwithout needing to generate and read the PPD files. The following\nproperties are available (comma-separated):\n\n   D: Driver name\n   R: Driver Recommended for this printer (0, 1)?\n   M: Driver supplied by the Manufacturer (0, 1)?\n   O: Driver marked Obsolete in the OpenPrinting database (0, 1)?\n   F: Driver is Free software (0, 1)?\n   P: Driver has Patent issues (0, 1)?\n   S: Support contacts (c: commercial, v: voluntary, u: unknown, more than \n      one possible)\n   T: Driver Type: G: Ghostscript built-in, C: CUPS-Raster, I: IJS,\n      O: OpenPrinting Vector, F: Filter, U: Ghostscript Uniprint,\n      P: PostScript\n   X: Maximum X resolution of the driver in dpi\n   Y: Maximum Y resolution of the driver in dpi\n   C: Does the driver support Color printing (0, 1)?\n   t: Rating for Text document printing with this driver (0 ... 100)\n   l: Rating for Line art document printing with this driver (0 ... 100)\n   g: Rating for Graphics document printing with this driver (0 ... 100)\n   p: Rating for Photo document printing with this driver (0 ... 100)\n   d: Rating for system loaD caused when printing with this driver (0 ... 100)\n   s: Rating for processing Speed of this driver (0 ... 100)\n\nThe \"DRV:\" field in a device ID looks like this:\n\n*1284DeviceID: \"MFG:Hewlett-Packard;MDL:HP LaserJet 4050 Series;CMD:PJL,MLC,PCL,\nPCLXL,POSTSCRIPT;DES:Hewlett-Packard LaserJet 4050 Series;DRV:Dljet4,R0,M0,F1,Sv,TG,X600,Y600,C0,t90,l90,g60,p30,s90;\"\n\nIf there is no device ID for a printer, the \"*1284DeviceID\" will\ncontain only the \"DRV:\" field.\n\nThe PPDs contain the driver properties also in clear text, like this:\n\n*driverName ljet4/ljet4 - Built-in Ghostscript driver for PCL 5e laser printers: \"\"\n*driverType G/Ghostscript built-in: \"\"\n*driverUrl: \"http://www.ghostscript.com/\"\n*driverObsolete: False\n*driverRecommendedReplacement: hpijs      (only if driver is obsolete)\n*driverSupplier: \"GPL Ghostscript\"\n*driverManufacturerSupplied: False\n*driverLicense: \"GPL\"\n*driverFreeSoftware: True\n*driverSupportContactVoluntary: \"http://forums.openprinting.org/ OpenPrinting forums\"\n*driverSupportContactCommercial: \"http://... ...\"\n*driverSupportContactUnknown: \"http://... ...\"\n*driverMaxResolution: 600 600\n*driverColor: False\n*driverTextSupport: 90\n*driverLineartSupport: 90\n*driverGraphicsSupport: 60\n*driverPhotoSupport: 30\n*driverSystemmLoad: 90\n*driverRenderingSpeed: 90\n\n----------------------------------------------------------------------------\n*PPD-Adobe: \"4.3\"\n*%\n*% For information on using this, and to obtain the required backend\n*% script, consult http://www.openprinting.org/\n*%\n*% This file is published under the GNU General Public License\n*%\n*% PPD-O-MATIC (4.0.0 or newer) generated this PPD file. It is for use with \n*% all programs and environments which use PPD files for dealing with\n*% printer capability information. The printer must be configured with the\n*% \"foomatic-rip\" backend filter script of Foomatic 4.0.0 or newer. This \n*% file and \"foomatic-rip\" work together to support PPD-controlled printer\n*% driver option access with all supported printer drivers and printing\n*% spoolers.\n*%\n*% To save this file on your disk, wait until the download has completed\n*% (the animation of the browser logo must stop) and then use the\n*% \"Save as...\" command in the \"File\" menu of your browser or in the \n*% pop-up manu when you click on this document with the right mouse button.\n*% DO NOT cut and paste this file into an editor with your mouse. This can\n*% introduce additional line breaks which lead to unexpected results.\n*%\n*% You may save this file as 'HP-Color_LaserJet_4550-pxlcolor.ppd'\n*%\n*%\n*FormatVersion:\t\"4.3\"\n*FileVersion:\t\"1.1\"\n*LanguageVersion: English \n*LanguageEncoding: ISOLatin1\n*PCFileName:\t\"PXLCOLOR.PPD\"\n*Manufacturer:\t\"HP\"\n*Product:\t\"(HP Color LaserJet 4550)\"\n*cupsVersion:\t1.0\n*cupsManualCopies: True\n*cupsModelNumber:  2\n*cupsFilter:\t\"application/vnd.cups-postscript 100 foomatic-rip\"\n*cupsFilter:\t\"application/vnd.cups-pdf 0 foomatic-rip\"\n*%pprRIP:        foomatic-rip other\n*ModelName:     \"HP Color LaserJet 4550\"\n*ShortNickName: \"HP Color LaserJet 4550 pxlcolor\"\n*NickName:      \"HP Color LaserJet 4550 Foomatic/pxlcolor\"\n*PSVersion:\t\"(3010.000) 550\"\n*PSVersion:\t\"(3010.000) 651\"\n*PSVersion:\t\"(3010.000) 652\"\n*PSVersion:\t\"(3010.000) 653\"\n*PSVersion:\t\"(3010.000) 704\"\n*PSVersion:\t\"(3010.000) 705\"\n*PSVersion:\t\"(3010.000) 800\"\n*PSVersion:\t\"(3010.000) 815\"\n*PSVersion:\t\"(3010.000) 850\"\n*PSVersion:\t\"(3010.000) 860\"\n*PSVersion:\t\"(3010.000) 861\"\n*PSVersion:\t\"(3010.000) 862\"\n*PSVersion:\t\"(3010.000) 863\"\n*LanguageLevel:\t\"3\"\n*ColorDevice:\tTrue\n*DefaultColorSpace: RGB\n*FileSystem:\tFalse\n*Throughput:\t\"1\"\n*LandscapeOrientation: Plus90\n*TTRasterizer:\tType42\n*1284DeviceID: \"MFG:Hewlett-Packard;MDL:HP Color LaserJet 4550;CMD:PJL,MLC,PCL,POSTSCRIPT,PCLXL,PJL;DES:Hewlett-Packard Color LaserJet 4550;DRV:Dpxlcolor,R0,M0,TG;\"\n\n*driverName pxlcolor/pxlcolor: \"\"\n*driverType G/Ghostscript built-in: \"\"\n*driverUrl: \"http://www.ghostscript.com/\"\n*driverObsolete: False\n\n*DefaultResolution: 1200dpi\n\n\n\n*VariablePaperSize: False\n\n*FoomaticIDs: HP-Color_LaserJet_4550 pxlcolor\n*FoomaticRIPCommandLine: \"gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE%B%A%\u0026\u0026\nZ -sOutputFile=- - | perl -p -e \u0026apos;if (! $did) { s/\\xc0.\\xf8\\x26/\\x\u0026\u0026\nc0%E\\xf8\\x26/ \u0026amp;\u0026amp; $did++; }\u0026apos;\"\n*End\n\n*OpenGroup: General/General\n\n*OpenUI *PrintoutMode/Printout Mode: PickOne\n*FoomaticRIPOption PrintoutMode: enum Composite A\n*OrderDependency: 10 AnySetup *PrintoutMode\n*DefaultPrintoutMode: Normal\n*PrintoutMode Draft/Draft: \"%% FoomaticRIPOptionSetting: PrintoutMode=Draft\"\n*FoomaticRIPOptionSetting PrintoutMode=Draft: \"PrinterResolution=300x3\u0026\u0026\n00dpi ColorModel=Color Economode=On FastRes=Off\"\n*End\n*PrintoutMode Draft.Gray/Draft Grayscale: \"%% FoomaticRIPOptionSetting: PrintoutMode=Draft.Gray\"\n*FoomaticRIPOptionSetting PrintoutMode=Draft.Gray: \"PrinterResolution=\u0026\u0026\n300x300dpi ColorModel=Grayscale Economode=On FastRes=Off\"\n*End\n*PrintoutMode Normal/Normal: \"%% FoomaticRIPOptionSetting: PrintoutMode=Normal\"\n*FoomaticRIPOptionSetting PrintoutMode=Normal: \"PrinterResolution=600x\u0026\u0026\n600dpi ColorModel=Color Economode=Off FastRes=On\"\n*End\n*PrintoutMode Normal.Gray/Normal Grayscale: \"%% FoomaticRIPOptionSetting: PrintoutMode=Normal.Gray\"\n*FoomaticRIPOptionSetting PrintoutMode=Normal.Gray: \"PrinterResolution\u0026\u0026\n=600x600dpi ColorModel=Grayscale Economode=Off FastRes=On\"\n*End\n*PrintoutMode High/High Quality: \"%% FoomaticRIPOptionSetting: PrintoutMode=High\"\n*FoomaticRIPOptionSetting PrintoutMode=High: \"PrinterResolution=1200x1\u0026\u0026\n200dpi ColorModel=Color Economode=Off FastRes=Off\"\n*End\n*PrintoutMode High.Gray/High Quality Grayscale: \"%% FoomaticRIPOptionSetting: PrintoutMode=High.Gray\"\n*FoomaticRIPOptionSetting PrintoutMode=High.Gray: \"PrinterResolution=1\u0026\u0026\n200x1200dpi ColorModel=Grayscale Economode=Off FastRes=Off\"\n*End\n*CloseUI: *PrintoutMode\n\n*OpenUI *PageSize/Page Size: PickOne\n*FoomaticRIPOption PageSize: enum CmdLine A\n*OrderDependency: 100 AnySetup *PageSize\n*DefaultPageSize: Letter\n*PageSize Letter/US Letter: \"%% FoomaticRIPOptionSetting: PageSize=Letter\"\n*FoomaticRIPOptionSetting PageSize=Letter: \" -dDEVICEWIDTHPOINTS=612 -\u0026\u0026\ndDEVICEHEIGHTPOINTS=792\"\n*End\n*PageSize A4/A4: \"%% FoomaticRIPOptionSetting: PageSize=A4\"\n*FoomaticRIPOptionSetting PageSize=A4: \" -dDEVICEWIDTHPOINTS=595 -dDEV\u0026\u0026\nICEHEIGHTPOINTS=842\"\n*End\n*PageSize 11x17/11x17: \"%% FoomaticRIPOptionSetting: PageSize=11x17\"\n*FoomaticRIPOptionSetting PageSize=11x17: \" -dDEVICEWIDTHPOINTS=792 -d\u0026\u0026\nDEVICEHEIGHTPOINTS=1224\"\n*End\n*PageSize A3/A3: \"%% FoomaticRIPOptionSetting: PageSize=A3\"\n*FoomaticRIPOptionSetting PageSize=A3: \" -dDEVICEWIDTHPOINTS=842 -dDEV\u0026\u0026\nICEHEIGHTPOINTS=1191\"\n*End\n*PageSize A5/A5: \"%% FoomaticRIPOptionSetting: PageSize=A5\"\n*FoomaticRIPOptionSetting PageSize=A5: \" -dDEVICEWIDTHPOINTS=421 -dDEV\u0026\u0026\nICEHEIGHTPOINTS=595\"\n*End\n*PageSize B5/B5 (JIS): \"%% FoomaticRIPOptionSetting: PageSize=B5\"\n*FoomaticRIPOptionSetting PageSize=B5: \" -dDEVICEWIDTHPOINTS=516 -dDEV\u0026\u0026\nICEHEIGHTPOINTS=729\"\n*End\n*PageSize Env10/Envelope #10: \"%% FoomaticRIPOptionSetting: PageSize=Env10\"\n*FoomaticRIPOptionSetting PageSize=Env10: \" -dDEVICEWIDTHPOINTS=297 -d\u0026\u0026\nDEVICEHEIGHTPOINTS=684\"\n*End\n*PageSize EnvC5/Envelope C5: \"%% FoomaticRIPOptionSetting: PageSize=EnvC5\"\n*FoomaticRIPOptionSetting PageSize=EnvC5: \" -dDEVICEWIDTHPOINTS=459 -d\u0026\u0026\nDEVICEHEIGHTPOINTS=649\"\n*End\n*PageSize EnvDL/Envelope DL: \"%% FoomaticRIPOptionSetting: PageSize=EnvDL\"\n*FoomaticRIPOptionSetting PageSize=EnvDL: \" -dDEVICEWIDTHPOINTS=312 -d\u0026\u0026\nDEVICEHEIGHTPOINTS=624\"\n*End\n*PageSize EnvISOB5/Envelope B5: \"%% FoomaticRIPOptionSetting: PageSize=EnvISOB5\"\n*FoomaticRIPOptionSetting PageSize=EnvISOB5: \" -dDEVICEWIDTHPOINTS=499\u0026\u0026\n -dDEVICEHEIGHTPOINTS=709\"\n*End\n*PageSize EnvMonarch/Envelope Monarch: \"%% FoomaticRIPOptionSetting: PageSize=EnvMonarch\"\n*FoomaticRIPOptionSetting PageSize=EnvMonarch: \" -dDEVICEWIDTHPOINTS=2\u0026\u0026\n79 -dDEVICEHEIGHTPOINTS=540\"\n*End\n*PageSize Executive/Executive: \"%% FoomaticRIPOptionSetting: PageSize=Executive\"\n*FoomaticRIPOptionSetting PageSize=Executive: \" -dDEVICEWIDTHPOINTS=52\u0026\u0026\n2 -dDEVICEHEIGHTPOINTS=756\"\n*End\n*PageSize Legal/US Legal: \"%% FoomaticRIPOptionSetting: PageSize=Legal\"\n*FoomaticRIPOptionSetting PageSize=Legal: \" -dDEVICEWIDTHPOINTS=612 -d\u0026\u0026\nDEVICEHEIGHTPOINTS=1008\"\n*End\n*CloseUI: *PageSize\n\n*OpenUI *PageRegion: PickOne\n*OrderDependency: 100 AnySetup *PageRegion\n*DefaultPageRegion: Letter\n*PageRegion Letter/US Letter: \"%% FoomaticRIPOptionSetting: PageSize=Letter\"\n*PageRegion A4/A4: \"%% FoomaticRIPOptionSetting: PageSize=A4\"\n*PageRegion 11x17/11x17: \"%% FoomaticRIPOptionSetting: PageSize=11x17\"\n*PageRegion A3/A3: \"%% FoomaticRIPOptionSetting: PageSize=A3\"\n*PageRegion A5/A5: \"%% FoomaticRIPOptionSetting: PageSize=A5\"\n*PageRegion B5/B5 (JIS): \"%% FoomaticRIPOptionSetting: PageSize=B5\"\n*PageRegion Env10/Envelope #10: \"%% FoomaticRIPOptionSetting: PageSize=Env10\"\n*PageRegion EnvC5/Envelope C5: \"%% FoomaticRIPOptionSetting: PageSize=EnvC5\"\n*PageRegion EnvDL/Envelope DL: \"%% FoomaticRIPOptionSetting: PageSize=EnvDL\"\n*PageRegion EnvISOB5/Envelope B5: \"%% FoomaticRIPOptionSetting: PageSize=EnvISOB5\"\n*PageRegion EnvMonarch/Envelope Monarch: \"%% FoomaticRIPOptionSetting: PageSize=EnvMonarch\"\n*PageRegion Executive/Executive: \"%% FoomaticRIPOptionSetting: PageSize=Executive\"\n*PageRegion Legal/US Legal: \"%% FoomaticRIPOptionSetting: PageSize=Legal\"\n*CloseUI: *PageRegion\n\n*DefaultImageableArea: Letter\n*ImageableArea Letter/US Letter: \"18 36 594 756\"\n*ImageableArea A4/A4: \"18 36 577 806\"\n*ImageableArea 11x17/11x17: \"18 36 774 1188\"\n*ImageableArea A3/A3: \"18 36 824 1155\"\n*ImageableArea A5/A5: \"18 36 403 559\"\n*ImageableArea B5/B5 (JIS): \"18 36 498 693\"\n*ImageableArea Env10/Envelope #10: \"18 36 279 648\"\n*ImageableArea EnvC5/Envelope C5: \"18 36 441 613\"\n*ImageableArea EnvDL/Envelope DL: \"18 36 294 588\"\n*ImageableArea EnvISOB5/Envelope B5: \"18 36 481 673\"\n*ImageableArea EnvMonarch/Envelope Monarch: \"18 36 261 504\"\n*ImageableArea Executive/Executive: \"18 36 504 720\"\n*ImageableArea Legal/US Legal: \"18 36 594 972\"\n\n*DefaultPaperDimension: Letter\n*PaperDimension Letter/US Letter: \"612 792\"\n*PaperDimension A4/A4: \"595 842\"\n*PaperDimension 11x17/11x17: \"792 1224\"\n*PaperDimension A3/A3: \"842 1191\"\n*PaperDimension A5/A5: \"421 595\"\n*PaperDimension B5/B5 (JIS): \"516 729\"\n*PaperDimension Env10/Envelope #10: \"297 684\"\n*PaperDimension EnvC5/Envelope C5: \"459 649\"\n*PaperDimension EnvDL/Envelope DL: \"312 624\"\n*PaperDimension EnvISOB5/Envelope B5: \"499 709\"\n*PaperDimension EnvMonarch/Envelope Monarch: \"279 540\"\n*PaperDimension Executive/Executive: \"522 756\"\n*PaperDimension Legal/US Legal: \"612 1008\"\n\n*OpenUI *InputSlot/Media Source: PickOne\n*FoomaticRIPOption InputSlot: enum CmdLine E\n*OrderDependency: 100 AnySetup *InputSlot\n*DefaultInputSlot: Default\n*InputSlot Default/Printer default: \"%% FoomaticRIPOptionSetting: InputSlot=Default\"\n*FoomaticRIPOptionSetting InputSlot=Default: \"\\x01\"\n*InputSlot Tray1/Tray 1: \"%% FoomaticRIPOptionSetting: InputSlot=Tray1\"\n*FoomaticRIPOptionSetting InputSlot=Tray1: \"\\x03\"\n*InputSlot Tray2/Tray 2: \"%% FoomaticRIPOptionSetting: InputSlot=Tray2\"\n*FoomaticRIPOptionSetting InputSlot=Tray2: \"\\x04\"\n*InputSlot Tray3/Tray 3: \"%% FoomaticRIPOptionSetting: InputSlot=Tray3\"\n*FoomaticRIPOptionSetting InputSlot=Tray3: \"\\x05\"\n*InputSlot Tray4/Tray 4: \"%% FoomaticRIPOptionSetting: InputSlot=Tray4\"\n*FoomaticRIPOptionSetting InputSlot=Tray4: \"\\x06\"\n*InputSlot Tray5/Tray 5: \"%% FoomaticRIPOptionSetting: InputSlot=Tray5\"\n*FoomaticRIPOptionSetting InputSlot=Tray5: \"\\x07\"\n*InputSlot Tray6/Tray 6: \"%% FoomaticRIPOptionSetting: InputSlot=Tray6\"\n*FoomaticRIPOptionSetting InputSlot=Tray6: \"\\x08\"\n*InputSlot Tray7/Tray 7: \"%% FoomaticRIPOptionSetting: InputSlot=Tray7\"\n*FoomaticRIPOptionSetting InputSlot=Tray7: \"\\x09\"\n*InputSlot Manual/Manual Feeder: \"%% FoomaticRIPOptionSetting: InputSlot=Manual\"\n*FoomaticRIPOptionSetting InputSlot=Manual: \"\\x02\"\n*CloseUI: *InputSlot\n\n*JCLOpenUI *Manualfeed/Manual Feed of Paper: PickOne\n*OrderDependency: 100 JCLSetup *Manualfeed\n*DefaultManualfeed: Off\n*Manualfeed Off/Off: \"@PJL SET MANUALFEED=OFF\u003c0A\u003e\"\n*Manualfeed On/On: \"@PJL SET MANUALFEED=ON\u003c0A\u003e\"\n*JCLCloseUI: *Manualfeed\n\n*OpenUI *Duplex/Double-Sided printing: PickOne\n*FoomaticRIPOption Duplex: enum CmdLine A\n*OrderDependency: 100 AnySetup *Duplex\n*DefaultDuplex: None\n*Duplex DuplexNoTumble/On (Flip on Long Edge): \"%% FoomaticRIPOptionSetting: Duplex=DuplexNoTumble\"\n*FoomaticRIPOptionSetting Duplex=DuplexNoTumble: \" -dDuplex\"\n*Duplex DuplexTumble/On (Flip on Short Edge): \"%% FoomaticRIPOptionSetting: Duplex=DuplexTumble\"\n*FoomaticRIPOptionSetting Duplex=DuplexTumble: \" -dDuplex -dTumble\"\n*Duplex None/Off: \"%% FoomaticRIPOptionSetting: Duplex=None\"\n*FoomaticRIPOptionSetting Duplex=None: \"\"\n*CloseUI: *Duplex\n\n*JCLOpenUI *Copies/Number of Copies: PickOne\n*FoomaticRIPOption Copies: int JCL A\n*FoomaticRIPOptionPrototype Copies: \"SET COPIES=%s\"\n*FoomaticRIPOptionRange Copies: 1 100\n*OrderDependency: 100 JCLSetup *Copies\n*DefaultCopies: 1\n*FoomaticRIPDefaultCopies: 1\n*Copies 1/1: \"@PJL SET COPIES=1\u003c0A\u003e\"\n*Copies 2/2: \"@PJL SET COPIES=2\u003c0A\u003e\"\n*Copies 3/3: \"@PJL SET COPIES=3\u003c0A\u003e\"\n*Copies 4/4: \"@PJL SET COPIES=4\u003c0A\u003e\"\n*Copies 5/5: \"@PJL SET COPIES=5\u003c0A\u003e\"\n*Copies 6/6: \"@PJL SET COPIES=6\u003c0A\u003e\"\n*Copies 7/7: \"@PJL SET COPIES=7\u003c0A\u003e\"\n*Copies 8/8: \"@PJL SET COPIES=8\u003c0A\u003e\"\n*Copies 9/9: \"@PJL SET COPIES=9\u003c0A\u003e\"\n*Copies 10/10: \"@PJL SET COPIES=10\u003c0A\u003e\"\n*Copies 11/11: \"@PJL SET COPIES=11\u003c0A\u003e\"\n*Copies 12/12: \"@PJL SET COPIES=12\u003c0A\u003e\"\n*Copies 13/13: \"@PJL SET COPIES=13\u003c0A\u003e\"\n*Copies 14/14: \"@PJL SET COPIES=14\u003c0A\u003e\"\n*Copies 15/15: \"@PJL SET COPIES=15\u003c0A\u003e\"\n*Copies 16/16: \"@PJL SET COPIES=16\u003c0A\u003e\"\n*Copies 17/17: \"@PJL SET COPIES=17\u003c0A\u003e\"\n*Copies 18/18: \"@PJL SET COPIES=18\u003c0A\u003e\"\n*Copies 19/19: \"@PJL SET COPIES=19\u003c0A\u003e\"\n*Copies 20/20: \"@PJL SET COPIES=20\u003c0A\u003e\"\n*Copies 21/21: \"@PJL SET COPIES=21\u003c0A\u003e\"\n*Copies 22/22: \"@PJL SET COPIES=22\u003c0A\u003e\"\n*Copies 23/23: \"@PJL SET COPIES=23\u003c0A\u003e\"\n*Copies 24/24: \"@PJL SET COPIES=24\u003c0A\u003e\"\n*Copies 25/25: \"@PJL SET COPIES=25\u003c0A\u003e\"\n*Copies 26/26: \"@PJL SET COPIES=26\u003c0A\u003e\"\n*Copies 27/27: \"@PJL SET COPIES=27\u003c0A\u003e\"\n*Copies 28/28: \"@PJL SET COPIES=28\u003c0A\u003e\"\n*Copies 29/29: \"@PJL SET COPIES=29\u003c0A\u003e\"\n*Copies 30/30: \"@PJL SET COPIES=30\u003c0A\u003e\"\n*C","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenprinting%2Ffoomatic-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenprinting%2Ffoomatic-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenprinting%2Ffoomatic-db/lists"}