summaryrefslogtreecommitdiff
path: root/doc/developer/reference-html/c464.html
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2008-10-26 16:11:56 +0000
committerRoger Leigh <rleigh@debian.org>2008-10-26 16:11:56 +0000
commit7e12d32a372b5661f80b68009730cf47a6bfd062 (patch)
tree821ddd7a41794bb6fec964ce81ba89a13cebb20a /doc/developer/reference-html/c464.html
parentdfae5860833782af557deb35e286d7e186fe3cf5 (diff)
Imported Upstream version 4.3.99+cvs20050715
Diffstat (limited to 'doc/developer/reference-html/c464.html')
-rw-r--r--doc/developer/reference-html/c464.html791
1 files changed, 433 insertions, 358 deletions
diff --git a/doc/developer/reference-html/c464.html b/doc/developer/reference-html/c464.html
index cb3bede..5d5fc45 100644
--- a/doc/developer/reference-html/c464.html
+++ b/doc/developer/reference-html/c464.html
@@ -1,27 +1,24 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>ESC/P2</TITLE
><META
NAME="GENERATOR"
-CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
+CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="The Developer's Guide to Gutenprint"
-HREF="index.html"><LINK
+HREF="book1.html"><LINK
REL="PREVIOUS"
TITLE="The driver file"
HREF="x271.html"><LINK
REL="NEXT"
TITLE="Remote Mode Commands"
-HREF="x955.html"></HEAD
+HREF="x955.html"><META
+http-equiv="Content-Type"
+content="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="chapter"
-BGCOLOR="#FFFFFF"
-TEXT="#000000"
-LINK="#0000FF"
-VLINK="#840084"
-ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
@@ -72,6 +69,30 @@ CLASS="chapter"
NAME="AEN464"
></A
>Chapter 5. ESC/P2</H1
+><DIV
+CLASS="TOC"
+><DL
+><DT
+><B
+>Table of Contents</B
+></DT
+><DT
+><A
+HREF="c464.html#AEN477"
+>Standard commands</A
+></DT
+><DT
+><A
+HREF="x955.html"
+>Remote Mode Commands</A
+></DT
+><DT
+><A
+HREF="x1669.html"
+>Appropriate Remote Commands</A
+></DT
+></DL
+></DIV
><P
>&#13; This is a description of the ESC/P2 raster commands used by the
Gutenprint printer driver, which is a subset of the complete
@@ -93,29 +114,29 @@ CLASS="emphasis"
are certainly not complete.
</P
><P
->&#13; All ESCP/2 raster commands begin with the <TT
+>&#13; All ESCP/2 raster commands begin with the <VAR
CLASS="literal"
->ESC</TT
+>ESC</VAR
>
character (0x1b), followed by either one or two command characters
and arguments where applicable. Older commands generally have one
command character. Newer commands usually have a
- &#8216;<TT
+ ‘<VAR
CLASS="literal"
->(</TT
->&#8217; (left parenthesis) followed by
+>(</VAR
+>’ (left parenthesis) followed by
a command character and a byte count for the arguments that
follow. The byte count is a 16-bit (2 byte) binary integer, in
little endian order.
</P
><P
>&#13; All arguments listed here are of the form
- <TT
+ <VAR
CLASS="literal"
->name[bytes]</TT
-> where <TT
+>name[bytes]</VAR
+> where <VAR
CLASS="literal"
->[bytes]</TT
+>[bytes]</VAR
> is
the number of bytes that comprise the argument. The arguments
themselves are usually one, two, or four byte integers, always
@@ -133,7 +154,7 @@ CLASS="sect1"
CLASS="sect1"
><A
NAME="AEN477"
->5.1. Standard commands</A
+>Standard commands</A
></H1
><P
></P
@@ -145,9 +166,9 @@ CLASS="variablelist"
></P
><DL
><DT
-><TT
+><VAR
CLASS="literal"
->ESC @</TT
+>ESC @</VAR
></DT
><DD
><P
@@ -157,22 +178,22 @@ CLASS="literal"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (G <CODE
+>ESC (G <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=1
- <CODE
+ <VAR
CLASS="varname"
->ON1</CODE
-></TT
+>ON1</VAR
+></VAR
></DT
><DD
><P
->&#13; Turn on graphics mode. <CODE
+>&#13; Turn on graphics mode. <VAR
CLASS="varname"
->ON</CODE
+>ON</VAR
> should be
<CODE
CLASS="constant"
@@ -181,31 +202,31 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (U <CODE
+>ESC (U <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=1
- <CODE
+ <VAR
CLASS="varname"
->UNIT1</CODE
-></TT
+>UNIT1</VAR
+></VAR
></DT
><DD
><P
>&#13; Set basic unit of measurement used by printer. This is
expressed in multiples of 1/3600". At 720 DPI,
- <CODE
+ <VAR
CLASS="varname"
->UNIT</CODE
+>UNIT</VAR
> is <CODE
CLASS="constant"
>5</CODE
>; at
- 360 DPI, <CODE
+ 360 DPI, <VAR
CLASS="varname"
->UNIT</CODE
+>UNIT</VAR
> is
<CODE
CLASS="constant"
@@ -214,88 +235,88 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (U <CODE
+>ESC (U <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=5
- <CODE
+ <VAR
CLASS="varname"
->PAGEUNITS1</CODE
-> <CODE
+>PAGEUNITS1</VAR
+> <VAR
CLASS="varname"
->VUNIT1</CODE
+>VUNIT1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->HUNIT1</CODE
+>HUNIT1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->BASEUNIT2</CODE
-></TT
+>BASEUNIT2</VAR
+></VAR
></DT
><DD
><P
>&#13; Set basic units of measurement used by the printer.
- <CODE
+ <VAR
CLASS="varname"
->PAGEUNIT</CODE
+>PAGEUNIT</VAR
> is the unit of page
measurement (for commands that set page dimensions and
- the like). <CODE
+ the like). <VAR
CLASS="varname"
->VUNIT</CODE
+>VUNIT</VAR
> is the unit of
vertical measurement (for vertical movement commands).
- <CODE
+ <VAR
CLASS="varname"
->HUNIT</CODE
+>HUNIT</VAR
> is the unit of horizontal
movement (for horizontal positioning commands). All of
these units are expressed in
- <CODE
+ <VAR
CLASS="varname"
->BASEUNIT</CODE
+>BASEUNIT</VAR
>, which is in reciprocal
- inches. Typically, <CODE
+ inches. Typically, <VAR
CLASS="varname"
->BASEUNIT</CODE
+>BASEUNIT</VAR
> is
<CODE
CLASS="constant"
>1440</CODE
>. In 720 DPI mode,
- <CODE
+ <VAR
CLASS="varname"
->PAGEUNIT</CODE
->, <CODE
+>PAGEUNIT</VAR
+>, <VAR
CLASS="varname"
->VUNIT</CODE
+>VUNIT</VAR
>,
- and <CODE
+ and <VAR
CLASS="varname"
->HUNIT</CODE
+>HUNIT</VAR
> are all
<CODE
CLASS="constant"
>2</CODE
->; in 1440720 DPI mode,
- <CODE
+>; in 1440×720 DPI mode,
+ <VAR
CLASS="varname"
->PAGEUNIT</CODE
-> and <CODE
+>PAGEUNIT</VAR
+> and <VAR
CLASS="varname"
->VUNIT</CODE
+>VUNIT</VAR
>
are normally set to <CODE
CLASS="constant"
>2</CODE
>;
- <CODE
+ <VAR
CLASS="varname"
->HUNIT</CODE
+>HUNIT</VAR
> is set to
<CODE
CLASS="constant"
@@ -304,20 +325,20 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (K <CODE
+>ESC (K <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=2
- <CODE
+ <VAR
CLASS="varname"
->ZERO1</CODE
+>ZERO1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->GRAYMODE1</CODE
-></TT
+>GRAYMODE1</VAR
+></VAR
></DT
><DD
><P
@@ -326,9 +347,9 @@ CLASS="varname"
identified because they are advertised as having more
black nozzles than nozzles of individual colors.
Setting grayscale mode allows use of these extra nozzles
- for faster printing. <CODE
+ for faster printing. <VAR
CLASS="varname"
->GRAYMODE</CODE
+>GRAYMODE</VAR
> should
be <CODE
CLASS="constant"
@@ -341,9 +362,9 @@ CLASS="constant"
CLASS="constant"
>1</CODE
> for grayscale.
- <CODE
+ <VAR
CLASS="varname"
->ZERO</CODE
+>ZERO</VAR
> should always be
<CODE
CLASS="constant"
@@ -352,22 +373,22 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (i <CODE
+>ESC (i <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=1
- <CODE
+ <VAR
CLASS="varname"
->MICROWEAVE1</CODE
-></TT
+>MICROWEAVE1</VAR
+></VAR
></DT
><DD
><P
->&#13; If <CODE
+>&#13; If <VAR
CLASS="varname"
->MICROWEAVE</CODE
+>MICROWEAVE</VAR
> is
<CODE
CLASS="constant"
@@ -376,7 +397,7 @@ CLASS="constant"
printers, this is used to turn on microweave; on newer
printers, it prints one row at a time. All printers
support this mode. It should only be used at 720 (or
- 1440720) DPI. The Epson Stylus Pro series
+ 1440×720) DPI. The Epson Stylus Pro series
indicates additional modes:
</P
><P
@@ -391,7 +412,7 @@ CLASS="constant"
></DT
><DD
><P
->&#13; &#8220;Full-overlap&#8221;
+>&#13; “Full-overlap”
</P
></DD
><DT
@@ -401,7 +422,7 @@ CLASS="constant"
></DT
><DD
><P
->&#13; &#8220;Four-pass&#8221;
+>&#13; “Four-pass”
</P
></DD
><DT
@@ -411,7 +432,7 @@ CLASS="constant"
></DT
><DD
><P
->&#13; &#8220;Full-overlap 2&#8221;
+>&#13; “Full-overlap 2”
</P
></DD
></DL
@@ -429,19 +450,19 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
>ESC U
- <CODE
+ <VAR
CLASS="varname"
->DIRECTION1</CODE
-></TT
+>DIRECTION1</VAR
+></VAR
></DT
><DD
><P
->&#13; If <CODE
+>&#13; If <VAR
CLASS="varname"
->DIRECTION</CODE
+>DIRECTION</VAR
> is
<CODE
CLASS="constant"
@@ -454,31 +475,31 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (s <CODE
+>ESC (s <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=1
- <CODE
+ <VAR
CLASS="varname"
->SPEED1</CODE
-></TT
+>SPEED1</VAR
+></VAR
></DT
><DD
><P
>&#13; On some older printers, this controls the print head
- speed. <CODE
+ speed. <VAR
CLASS="varname"
->SPEED</CODE
+>SPEED</VAR
> of
<CODE
CLASS="constant"
>2</CODE
> is 10 inches/sec;
- <CODE
+ <VAR
CLASS="varname"
->SPEED</CODE
+>SPEED</VAR
> of <CODE
CLASS="constant"
>0</CODE
@@ -487,26 +508,26 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (e <CODE
+>ESC (e <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=2
- <CODE
+ <VAR
CLASS="varname"
->ZERO1</CODE
+>ZERO1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->DOTSIZE1</CODE
-></TT
+>DOTSIZE1</VAR
+></VAR
></DT
><DD
><P
->&#13; Choose print dotsize. <CODE
+>&#13; Choose print dotsize. <VAR
CLASS="varname"
->DOTSIZE</CODE
+>DOTSIZE</VAR
> can
take on various values, depending upon the printer.
Almost all printers support <CODE
@@ -517,45 +538,45 @@ CLASS="constant"
CLASS="constant"
>2</CODE
>. Variable dot size printers
- allow a value of <CODE
+ allow a value of <VAR
CLASS="varname"
->16</CODE
+>16</VAR
>. Other than the
- value of <CODE
+ value of <VAR
CLASS="varname"
->16</CODE
+>16</VAR
>, this appears to be
ignored at resolutions of 720 DPI and above.
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (C <CODE
+>ESC (C <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=2
- <CODE
+ <VAR
CLASS="varname"
->PAGELENGTH2</CODE
-></TT
->, <TT
+>PAGELENGTH2</VAR
+></VAR
+>, <VAR
CLASS="literal"
->ESC (C <CODE
+>ESC (C <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->PAGELENGTH4</CODE
-></TT
+>PAGELENGTH4</VAR
+></VAR
></DT
><DD
><P
->&#13; Set the length of the page in &#8220;pageunits&#8221;
- (see <TT
+>&#13; Set the length of the page in “pageunits”
+ (see <VAR
CLASS="literal"
->ESC (U</TT
+>ESC (U</VAR
> above). The second form
of the command allows setting of longer page lengths on
new printers (these happen to be the printers that
@@ -563,41 +584,41 @@ CLASS="literal"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (c <CODE
+>ESC (c <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->TOP2</CODE
+>TOP2</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->LENGTH2</CODE
-></TT
->, <TT
+>LENGTH2</VAR
+></VAR
+>, <VAR
CLASS="literal"
->ESC (c <CODE
+>ESC (c <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=8
- <CODE
+ <VAR
CLASS="varname"
->TOP4</CODE
+>TOP4</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->LENGTH4</CODE
-></TT
+>LENGTH4</VAR
+></VAR
></DT
><DD
><P
>&#13; Set the vertical page margins of the page in
- &#8220;pageunits&#8221; (see <TT
+ “pageunits” (see <VAR
CLASS="literal"
->ESC (U</TT
+>ESC (U</VAR
>
above). The margins are specified as the top of the
page and the length of the page. The second form of the
@@ -607,119 +628,119 @@ CLASS="literal"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (S <CODE
+>ESC (S <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=8
- <CODE
+ <VAR
CLASS="varname"
->WIDTH4</CODE
+>WIDTH4</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->LENGTH4</CODE
-></TT
+>LENGTH4</VAR
+></VAR
></DT
><DD
><P
>&#13; Set the width and length of the printed page region in
- &#8220;pageunits&#8221; (see <TT
+ “pageunits” (see <VAR
CLASS="literal"
->ESC (U</TT
+>ESC (U</VAR
>
above).
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (v <CODE
+>ESC (v <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=2
- <CODE
+ <VAR
CLASS="varname"
->ADVANCE2</CODE
-></TT
->, <TT
+>ADVANCE2</VAR
+></VAR
+>, <VAR
CLASS="literal"
->ESC (v <CODE
+>ESC (v <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->ADVANCE4</CODE
-></TT
+>ADVANCE4</VAR
+></VAR
></DT
><DD
><P
->&#13; Feed vertically <CODE
+>&#13; Feed vertically <VAR
CLASS="varname"
->ADVANCE</CODE
+>ADVANCE</VAR
>
- &#8220;vertical units&#8221; (see <TT
+ “vertical units” (see <VAR
CLASS="literal"
>ESC
- (U</TT
+ (U</VAR
> above) from the current print head
position.
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (V <CODE
+>ESC (V <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=2
- <CODE
+ <VAR
CLASS="varname"
->ADVANCE2</CODE
-></TT
->, <TT
+>ADVANCE2</VAR
+></VAR
+>, <VAR
CLASS="literal"
->ESC (V <CODE
+>ESC (V <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->ADVANCE4</CODE
-></TT
+>ADVANCE4</VAR
+></VAR
></DT
><DD
><P
->&#13; Feed vertically <CODE
+>&#13; Feed vertically <VAR
CLASS="varname"
->ADVANCE</CODE
+>ADVANCE</VAR
>
- &#8220;vertical units&#8221; (see <TT
+ “vertical units” (see <VAR
CLASS="literal"
>ESC
- (U</TT
+ (U</VAR
> above) from the top margin.
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC ($ <CODE
+>ESC ($ <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->OFFSET4</CODE
-></TT
+>OFFSET4</VAR
+></VAR
></DT
><DD
><P
->&#13; Set horizontal position to <CODE
+>&#13; Set horizontal position to <VAR
CLASS="varname"
->OFFSET</CODE
+>OFFSET</VAR
>
from the left margin. This command operates on printers
of the 740 class and newer (all printers with variable
@@ -727,19 +748,19 @@ CLASS="varname"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
>ESC $
- <CODE
+ <VAR
CLASS="varname"
->OFFSET2</CODE
-></TT
+>OFFSET2</VAR
+></VAR
></DT
><DD
><P
->&#13; Set horizontal position to <CODE
+>&#13; Set horizontal position to <VAR
CLASS="varname"
->OFFSET</CODE
+>OFFSET</VAR
>
from the left margin. This command operates on printers
of the 740 class and newer (all printers with variable
@@ -747,34 +768,34 @@ CLASS="varname"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (\ <CODE
+>ESC (\ <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->UNITS2</CODE
+>UNITS2</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->OFFSET2</CODE
-></TT
+>OFFSET2</VAR
+></VAR
></DT
><DD
><P
->&#13; Set horizontal position to <CODE
+>&#13; Set horizontal position to <VAR
CLASS="varname"
->OFFSET</CODE
+>OFFSET</VAR
>
from the previous print head position, measured in
- <CODE
+ <VAR
CLASS="varname"
->UNITS</CODE
->. <CODE
+>UNITS</VAR
+>. <VAR
CLASS="varname"
->UNITS</CODE
+>UNITS</VAR
> is
measured in inverse inches, and should be set to 1440 in
all cases. This operates on all 1440 dpi printers that
@@ -782,58 +803,58 @@ CLASS="varname"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (/ <CODE
+>ESC (/ <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->OFFSET4</CODE
-></TT
+>OFFSET4</VAR
+></VAR
></DT
><DD
><P
->&#13; Set horizontal position to <CODE
+>&#13; Set horizontal position to <VAR
CLASS="varname"
->OFFSET</CODE
+>OFFSET</VAR
>
from the previous print head position, measured in
- &#8220;horizontal units&#8221; (see <TT
+ “horizontal units” (see <VAR
CLASS="literal"
>ESC
- (U</TT
+ (U</VAR
> above). This operates on all variable dot
size printers.
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
>ESC \
- <CODE
+ <VAR
CLASS="varname"
->OFFSET2</CODE
-></TT
+>OFFSET2</VAR
+></VAR
></DT
><DD
><P
->&#13; Set horizontal position to <CODE
+>&#13; Set horizontal position to <VAR
CLASS="varname"
->OFFSET</CODE
+>OFFSET</VAR
>
from the previous print head position, measured in basic
- unit of measurement (see <TT
+ unit of measurement (see <VAR
CLASS="literal"
->ESC (U</TT
+>ESC (U</VAR
>
above). This is used on all 720 dpi printers, and can
also be used on 1440 dpi printers in lower resolutions
to save a few bytes. Note that
- <CODE
+ <VAR
CLASS="varname"
->OFFSET</CODE
+>OFFSET</VAR
> may be negative. The range of
values for this command is between
<CODE
@@ -847,35 +868,35 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
>ESC r
- <CODE
+ <VAR
CLASS="varname"
->COLOR1</CODE
-></TT
->, <TT
+>COLOR1</VAR
+></VAR
+>, <VAR
CLASS="literal"
->ESC (r <CODE
+>ESC (r <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=2
- <CODE
+ <VAR
CLASS="varname"
->DENSITY1</CODE
+>DENSITY1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->COLOR1</CODE
-></TT
+>COLOR1</VAR
+></VAR
></DT
><DD
><P
>&#13; Set the ink color. The first form is used on four-color
printers; the second on six-color printers.
- <CODE
+ <VAR
CLASS="varname"
->DENSITY</CODE
+>DENSITY</VAR
> is <CODE
CLASS="constant"
>0</CODE
@@ -884,9 +905,9 @@ CLASS="constant"
CLASS="constant"
>1</CODE
> for light.
- <CODE
+ <VAR
CLASS="varname"
->COLOR</CODE
+>COLOR</VAR
> is
</P
><DIV
@@ -908,9 +929,9 @@ WIDTH="1*"
TITLE="color"><THEAD
><TR
><TH
-><CODE
+><VAR
CLASS="varname"
->COLOR</CODE
+>COLOR</VAR
></TH
><TH
>Color name</TH
@@ -962,33 +983,33 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC . <CODE
+>ESC . <VAR
CLASS="varname"
->COMPRESS1</CODE
+>COMPRESS1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->VSEP1</CODE
-> <CODE
+>VSEP1</VAR
+> <VAR
CLASS="varname"
->HSEP1</CODE
+>HSEP1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->LINES1</CODE
-> <CODE
+>LINES1</VAR
+> <VAR
CLASS="varname"
->WIDTH2</CODE
+>WIDTH2</VAR
>
- data...</TT
+ data...</VAR
></DT
><DD
><P
->&#13; Print data. <CODE
+>&#13; Print data. <VAR
CLASS="varname"
->COMPRESS</CODE
+>COMPRESS</VAR
> signifies the
compression mode.
</P
@@ -1011,9 +1032,9 @@ WIDTH="1*"
TITLE="compression"><THEAD
><TR
><TH
-><CODE
+><VAR
CLASS="varname"
->COMPRESS</CODE
+>COMPRESS</VAR
></TH
><TH
>Compression mode</TH
@@ -1037,7 +1058,7 @@ CLASS="constant"
></TD
><TD
>&#13; TIFF compression (incorrectly documented as
- &#8220;run length encoded&#8221;)
+ “run length encoded”)
</TD
></TR
><TR
@@ -1054,9 +1075,9 @@ CLASS="constant"
></TABLE
></DIV
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->VSEP</CODE
+>VSEP</VAR
> depends upon resolution and
printer type. At 360 DPI, it is always
<CODE
@@ -1070,13 +1091,13 @@ CLASS="constant"
<CODE
CLASS="constant"
>40</CODE
-> (8 5}). On some other
+> (8 × 5}). On some other
printers, it varies.
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->HSEP1</CODE
+>HSEP1</VAR
> is <CODE
CLASS="constant"
>10</CODE
@@ -1090,9 +1111,9 @@ CLASS="constant"
1/720").
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->LINES</CODE
+>LINES</VAR
> is the number of lines to be
printed. It should be <CODE
CLASS="constant"
@@ -1102,18 +1123,18 @@ CLASS="constant"
be the number of lines to be actually printed.
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->WIDTH</CODE
+>WIDTH</VAR
> is the number of pixels to be
printed in each row. Following this command, a carriage
return (<CODE
CLASS="constant"
>13</CODE
> decimal,
- <TT
+ <VAR
CLASS="literal"
->0A</TT
+>0A</VAR
> hex) should be output to return
the print head position to the left margin.
</P
@@ -1163,35 +1184,35 @@ CLASS="constant"
></OL
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC i <CODE
+>ESC i <VAR
CLASS="varname"
->COLOR1</CODE
+>COLOR1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->COMPRESS1</CODE
-> <CODE
+>COMPRESS1</VAR
+> <VAR
CLASS="varname"
->BITS1</CODE
+>BITS1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->BYTES2</CODE
-> <CODE
+>BYTES2</VAR
+> <VAR
CLASS="varname"
->LINES2</CODE
+>LINES2</VAR
>
- data...</TT
+ data...</VAR
></DT
><DD
><P
>&#13; Print data in the newer printers (that support variable
dot size), and Stylus Pro models.
- <CODE
+ <VAR
CLASS="varname"
->COLOR</CODE
+>COLOR</VAR
> is the color.
</P
><DIV
@@ -1213,9 +1234,9 @@ WIDTH="1*"
TITLE="color"><THEAD
><TR
><TH
-><CODE
+><VAR
CLASS="varname"
->COLOR</CODE
+>COLOR</VAR
></TH
><TH
>Color name</TH
@@ -1283,7 +1304,7 @@ CLASS="constant"
>16</CODE
></TD
><TD
->Gray (&#8220;light black&#8221;)</TD
+>Gray (“light black”)</TD
></TR
><TR
><TD
@@ -1307,9 +1328,9 @@ CLASS="constant"
></TABLE
></DIV
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->COMPRESS</CODE
+>COMPRESS</VAR
> signifies the compression
mode:
</P
@@ -1332,9 +1353,9 @@ WIDTH="1*"
TITLE="compression"><THEAD
><TR
><TH
-><CODE
+><VAR
CLASS="varname"
->COMPRESS</CODE
+>COMPRESS</VAR
></TH
><TH
>Compression mode</TH
@@ -1358,7 +1379,7 @@ CLASS="constant"
></TD
><TD
>&#13; TIFF compression (incorrectly documented as
- &#8220;run length encoded&#8221;)
+ “run length encoded”)
</TD
></TR
><TR
@@ -1369,7 +1390,7 @@ CLASS="constant"
></TD
><TD
>&#13; TIFF compression with a special command set, or
- &#8220;run length encoding 2&#8221; on some
+ “run length encoding 2” on some
printers.
</TD
></TR
@@ -1377,27 +1398,27 @@ CLASS="constant"
></TABLE
></DIV
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->BITS</CODE
+>BITS</VAR
> is the number of bits per pixel.
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->BYTES</CODE
+>BYTES</VAR
> is the number of bytes wide for
- each row (ceiling(BITS width_of_row, 8)}). Note
- that this is different from the <TT
+ each row (ceiling(BITS × width_of_row, 8)}). Note
+ that this is different from the <VAR
CLASS="literal"
->ESC .</TT
+>ESC .</VAR
>
command above.
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->LINES</CODE
+>LINES</VAR
> is the number of lines to be
printed. This command is the only way to get variable
dot size printing. In variable dot mode, the size of
@@ -1416,23 +1437,23 @@ CLASS="constant"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (D <CODE
+>ESC (D <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=4
- <CODE
+ <VAR
CLASS="varname"
->BASE2</CODE
-> <CODE
+>BASE2</VAR
+> <VAR
CLASS="varname"
->VERTICAL1</CODE
+>VERTICAL1</VAR
>
- <CODE
+ <VAR
CLASS="varname"
->HORIZONTAL1</CODE
-></TT
+>HORIZONTAL1</VAR
+></VAR
></DT
><DD
><P
@@ -1441,9 +1462,9 @@ CLASS="varname"
(and possibly other high end printers).
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->BASE</CODE
+>BASE</VAR
> is the base unit for this
command; it must be <CODE
CLASS="constant"
@@ -1451,42 +1472,42 @@ CLASS="constant"
>.
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->VERTICAL</CODE
+>VERTICAL</VAR
> is the distance in these
units between printed rows; it should be
- ((separation_in_nozzles <CODE
+ ((separation_in_nozzles × <VAR
CLASS="varname"
->BASE</CODE
+>BASE</VAR
>
- 720).
+ ÷ 720).
</P
><P
->&#13; <CODE
+>&#13; <VAR
CLASS="varname"
->HORIZONTAL</CODE
+>HORIZONTAL</VAR
> is the horizontal
separation between dots in a row. Depending upon the
- printer, this should be either (14400 720) or
- (14400 360). The Stylus Pro 9000 manual
+ printer, this should be either (14400 ÷ 720) or
+ (14400 ÷ 360). The Stylus Pro 9000 manual
suggests that the settings should match the chosen
resolution, but that is apparently not the case (or not
always the case) on other printers.
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC (R <CODE
+>ESC (R <VAR
CLASS="varname"
->BC</CODE
+>BC</VAR
>=8 00 R E M O T E
- 1</TT
+ 1</VAR
></DT
><DD
><P
->&#13; Enters &#8220;remote mode&#8221;. This is a special,
+>&#13; Enters “remote mode”. This is a special,
undocumented command set that is used to set up various
printer options, such as paper feed tray, and perform
utility functions such as head cleaning and alignment.
@@ -1497,9 +1518,9 @@ CLASS="varname"
</P
></DD
><DT
-><TT
+><VAR
CLASS="literal"
->ESC 01 @EJL [sp] ID\r\n</TT
+>ESC 01 @EJL [sp] ID\r\n</VAR
></DT
><DD
><P
@@ -1514,6 +1535,12 @@ CLASS="informalexample"
><A
NAME="AEN937"
></A
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
><PRE
CLASS="screen"
>@EJL ID\r
@@ -1523,6 +1550,9 @@ MDL:[printer model];
CLS:PRINTER;
DES:EPSON [printer model];
\f</PRE
+></TD
+></TR
+></TABLE
><P
></P
></DIV
@@ -1548,10 +1578,19 @@ CLASS="informalexample"
><A
NAME="AEN941"
></A
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
><PRE
CLASS="screen"
>ESC 01@EJL[space]1284.4[newline]@EJL[space][space][space][space]
[space][newline]ESC@</PRE
+></TD
+></TR
+></TABLE
><P
></P
></DIV
@@ -1565,6 +1604,12 @@ CLASS="informalexample"
><A
NAME="AEN944"
></A
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
><PRE
CLASS="screen"
>magic command
@@ -1582,6 +1627,9 @@ ESC (c
ESC (S
ESC (D (if needed)
ESC (V (optional -- this can be accomplished with ESC (v)</PRE
+></TD
+></TR
+></TABLE
><P
></P
></DIV
@@ -1595,9 +1643,18 @@ CLASS="informalexample"
><A
NAME="AEN947"
></A
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
><PRE
CLASS="screen"
>ESC (v</PRE
+></TD
+></TR
+></TABLE
><P
></P
></DIV
@@ -1611,12 +1668,21 @@ CLASS="informalexample"
><A
NAME="AEN950"
></A
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
><PRE
CLASS="screen"
>ESC ($ or ESC (\ or ESC \
ESC (r or ESC r (if needed---not used with "ESC i" and not needed if the color
has not changed from the previous printed line)
ESC . or ESC i ...data... [return] (0A hex)</PRE
+></TD
+></TR
+></TABLE
><P
></P
></DIV
@@ -1630,10 +1696,19 @@ CLASS="informalexample"
><A
NAME="AEN953"
></A
+><TABLE
+BORDER="0"
+BGCOLOR="#E0E0E0"
+WIDTH="100%"
+><TR
+><TD
><PRE
CLASS="screen"
>[formfeed] (0C hex)
ESC @</PRE
+></TD
+></TR
+></TABLE
><P
></P
></DIV
@@ -1664,7 +1739,7 @@ WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
-HREF="index.html"
+HREF="book1.html"
ACCESSKEY="H"
>Home</A
></TD