diff options
Diffstat (limited to 'doc/developer/reference-html/c200.html')
-rw-r--r-- | doc/developer/reference-html/c200.html | 156 |
1 files changed, 64 insertions, 92 deletions
diff --git a/doc/developer/reference-html/c200.html b/doc/developer/reference-html/c200.html index ea024f7..cd26eae 100644 --- a/doc/developer/reference-html/c200.html +++ b/doc/developer/reference-html/c200.html @@ -1,24 +1,27 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >Adding a new printer</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK +CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="The Developer's Guide to Gutenprint" -HREF="book1.html"><LINK +HREF="index.html"><LINK REL="PREVIOUS" TITLE="Reporting Bugs" HREF="c194.html"><LINK REL="NEXT" TITLE="The driver file" -HREF="x271.html"><META -http-equiv="Content-Type" -content="text/html; charset=UTF-8"></HEAD +HREF="x271.html"></HEAD ><BODY CLASS="chapter" +BGCOLOR="#FFFFFF" +TEXT="#000000" +LINK="#0000FF" +VLINK="#840084" +ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE @@ -69,28 +72,6 @@ CLASS="chapter" NAME="AEN200" ></A >Chapter 4. Adding a new printer</H1 -><DIV -CLASS="TOC" -><DL -><DT -><B ->Table of Contents</B -></DT -><DT -><A -HREF="c200.html#AEN217" -><TT -CLASS="filename" ->printers.xml</TT -></A -></DT -><DT -><A -HREF="x271.html" ->The driver file</A -></DT -></DL -></DIV ><P > This chapter covers adding a new ESCP/2, PCL, or Canon printer. Writing a new driver module is not covered. @@ -150,7 +131,7 @@ CLASS="sect1" CLASS="sect1" ><A NAME="AEN217" -><TT +>4.1. <TT CLASS="filename" >printers.xml</TT ></A @@ -174,12 +155,6 @@ CLASS="informalexample" ><A NAME="AEN223" ></A -><TABLE -BORDER="0" -BGCOLOR="#E0E0E0" -WIDTH="100%" -><TR -><TD ><PRE CLASS="programlisting" ><printer name="EPSON Stylus Color 1500" driver="escp2-1500"> @@ -188,33 +163,30 @@ CLASS="programlisting" <gamma value="0.597"/> <density value="1.0"/> </printer></PRE -></TD -></TR -></TABLE ><P ></P ></DIV ><P > There are other tags that may be present. The only ones that - are mandatory are <VAR + are mandatory are <TT CLASS="literal" -><printer></VAR +><printer></TT >, - <VAR + <TT CLASS="literal" -><color></VAR +><color></TT > and - <VAR + <TT CLASS="literal" -><model></VAR +><model></TT >. The other optional parameters - (<VAR + (<TT CLASS="literal" -><gamma></VAR +><gamma></TT > and - <VAR + <TT CLASS="literal" -><density></VAR +><density></TT > in this case) can be used to adjust control settings. This is probably not the right place for them; the printer drivers themselves should contain this @@ -241,75 +213,75 @@ CLASS="variablelist" ></P ><DL ><DT -><VAR +><TT CLASS="literal" -><family></VAR +><family></TT ></DT ><DD ><P > This defines what driver module this printer uses. The - attribute <VAR + attribute <TT CLASS="literal" ->name</VAR +>name</TT > is the name of the family driver to associate the printers with, for example - <VAR + <TT CLASS="literal" ->escp2</VAR ->, <VAR +>escp2</TT +>, <TT CLASS="literal" ->pcl</VAR +>pcl</TT >, - <VAR + <TT CLASS="literal" ->canon</VAR ->, <VAR +>canon</TT +>, <TT CLASS="literal" ->ps</VAR +>ps</TT > or - <VAR + <TT CLASS="literal" ->raw</VAR +>raw</TT >. This tag may only contain - <VAR + <TT CLASS="literal" -><printer></VAR +><printer></TT > elements. </P ></DD ><DT -><VAR +><TT CLASS="literal" -><printer></VAR +><printer></TT ></DT ><DD ><P > This starts the definition of a printer. It must contain - the attributes <VAR + the attributes <TT CLASS="literal" ->name</VAR +>name</TT > and - <VAR + <TT CLASS="literal" ->driver</VAR ->. <VAR +>driver</TT +>. <TT CLASS="literal" ->name</VAR +>name</TT > should be is the full name of the printer, and must be human - readable. <VAR + readable. <TT CLASS="literal" ->driver</VAR +>driver</TT > should consist of alphanumerics and hyphens, and be fairly short. - <VAR + <TT CLASS="literal" ->name</VAR +>name</TT > is what will appear in the user-visible listing of printers, and may be translated - into the user's language, while <VAR + into the user's language, while <TT CLASS="literal" ->driver</VAR +>driver</TT > is what is actually used to key into the list of printers. It is legal to have multiple printers with the same driver @@ -317,43 +289,43 @@ CLASS="literal" </P ></DD ><DT -><VAR +><TT CLASS="literal" -><color></VAR +><color></TT ></DT ><DD ><P > This tag may not contain any content, but the - <VAR + <TT CLASS="literal" ->value</VAR +>value</TT > attribute may be set to - <VAR + <TT CLASS="literal" ->true</VAR -> or <VAR +>true</TT +> or <TT CLASS="literal" ->false</VAR +>false</TT >. This indicates that this printer is capable of color, or is not capable of color respectively. </P ></DD ><DT -><VAR +><TT CLASS="literal" -><model></VAR +><model></TT ></DT ><DD ><P > This defines a model number. This tag may not contain any - content, but the <VAR + content, but the <TT CLASS="literal" ->value</VAR +>value</TT > attribute may be set to a positive integer. This is passed into the driver, which may do whatever it cares to with - it—index into a table, compute on, or whatever. + it—index into a table, compute on, or whatever. This need not be unique. </P ></DD @@ -386,7 +358,7 @@ WIDTH="34%" ALIGN="center" VALIGN="top" ><A -HREF="book1.html" +HREF="index.html" ACCESSKEY="H" >Home</A ></TD |