Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 1997 20:02:59 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Greg Lehey <grog@FreeBSD.ORG>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Documentation on HP Laserjet 6MP?
Message-ID:  <Pine.BSI.3.94.970621194635.15538A-200000@andrsn.stanford.edu>
In-Reply-To: <199706200522.NAA00979@papillon.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]


On Fri, 20 Jun 1997, Greg Lehey wrote:

> 1.  How to upgrade the configuration on the machine to always
>     interpret \n to return to the beginning of the line (i.e. no 'step
>     effect')?

I don't know if it's possible to reset a Laserjet VI permanently--
I send my Laserjet IV an <esc>E to reset the printer and an
<esc>&k3G to convert unix line endings to carriage return-line feed.
The <esc> here is a real 027, entered with Ctrl-V<esc> in vi.

> 2.  The commands that this particular printer understands.

HP seems to be sending out less and less documentation; they want
you to buy the Technical Reference Manual.  The last tech-ref
manual I have is for a III, but my Laserjet IV user's manual has
a list of PCL codes etc.  While HP adds to these, I don't believe
they change from printer to printer.

And there are a lot of them.  I will attach to this the vi .exrc
file I use (not fully tested, by the way); it includes the codes I
find useful to insert directly into documents done with a text
editor, such as printer reset, line-ending conversion, left margin,
bold, italic, underline, portrait, landscape, and a few others.
The assumption is that software programs take care of sending the
appropriate codes to the printer most of the time.

It also includes the font codes for the 45 or so internal fonts for
the Laserjet IV.  Later Laserjets have more internal fonts.  As you
will see I haven't finished making up some reasonable abbreviations
for these font codes.  

On most Laserjets (at least IIs, IIIs, and IVs) you can get a
printout of the internal fonts along with their codes (and the codes
for different symbol sets) by pressing some buttons on the printer's
panel.

I have a couple of awk scripts that know how to handle PCL code in
a text file--they adjust characters per line as a function of the
size and average width of the font used, paginate, do footnotes, and
a few other things.  If you would like a copy of these let me know.

Annelise
 

[-- Attachment #2 --]
"These are PCL codes; to print this file replace what looks like ^[
"but is really decimal 027 with <esc>.  The six Ctrl-V's preceeding
"the <esc> with which the printer control codes begin are necessary
"for vi to get the codes into the file.
"
"reset printer, convert \n to carriage return-line feed
ab bgn				    E&k3G
"bold
ab bld			(s3B	
"eject page
ab ej				    &l0H
"reset printer (use at end of file)
ab nd				    E
"insert footnote code (superscript 50/720 of an inch)
ab fn				    &a-50VFN#&a+50V
"italic
ab itl				    (s1S
"landscape mode (resets printer)
ab lnd				    &l1O
"set left margin (here, to 8 columns)
ab lft				    &a8L
"set lines per inch--vertical motion index is better
ab lpi			    &l3D
"turn off bold
ab nbld				    (s0B
"turn off italic
ab nitl				    (s0S
"turn off underlining
ab nndr				    &d@
"print portrait mode (the default)
ab prt				    &l0O
"underline
ab ndr				    &d0D
"upright (same as turning off italic)
ab uprt				    (s0S
"set vertical motion index--48 units in an inch
ab vmi				    &l16C
"fonts built in to Laserjet IV
ab albertusextrabold		    (s1p12v0s4b4362T
ab albertusmed			    (s1p12v0s1b4362T
ab antiqueoliveitalic		    (s1p12v1s0b4168T
ab antiqueolive			    (s1p12v0s0b4168T
ab antiqueolivebold		    (s1p12v0s3b4168T
ab arialbold			    (s1p12v0s3b16602T
ab arialboldital			    (s1p12v1s3b16602T
ab arialital			    (s1p12v1s0b16602T
ab cgtimes				    (s1p12v0s0b4101T
ab cgtimesbold			    (s1p12v0s3b4101T
ab cgtimesboldital			    (s1p12v1s3b4101T
ab cgtimesital			    (s1p12v1s0b4101T
ab clarendoncond			    (s1p12v4s3b4140T
ab coronet				    (s1p12v1s0b4116T
"courier regular, bold, italic, bold italic (fully scalable, fixed width)
ab cour				    (s0p10h0s0b4099T
ab courb			    (s0p10h0s1b4099T
ab courbi			    (s0p10h1s3b4099T
ab couri			    (s0p10h1s0b4099T
"  garamond, garamond halbfett, garamond kursiv, g.k.halbfett
ab ga			    (s1p12v0s0b4197T
ab gh		    (s1p12v0s3b4197T
ab gk			    (s1p12v1s0b4197T
ab gkh		    (s1p12v1s3b4197T
ab lettergothic			    (s0p10h0s0b4102T
ab lettergothicbold		    (s0p10h0s1b4102T
ab lettergothicital		    (s0p10h1s0b4102T
ab lineprinter			    (s0p16.67h8.5v0s0b0T
ab marigold			    (s1p12v0s0b4297T
ab omega				    (s1p12v0s0b4113T
ab omegabold			    (s1p12v0s3b4113T
ab omegaboldital			    (s1p12v1s3b4113T
ab omegaital			    (s1p12v1s0b4113T
ab symbol				    (19M(s1p12v0s0b16686T
"in case you need to return to Roman 8 set of symbols
ab symbolset			    (8U
ab timesnew			    (s1p12v0s0b16901T
ab timesnewbold			    (s1p12v0s3b16901T
ab timesnewboldital		    (s1p12v1s1b16901T
ab timesnewital			    (s1p12v1s0b16901T
ab univers				    (s1p12v0s0b4148T
ab universbold			    (s1p12v0s3b4148T
ab universboldcond			    (s1p12v4s3b4148T
ab universboldital			    (s1p12v1s3b4148T
ab universbolditalcond		    (s1p12v5s3b4148T
ab universcond			    (s1p12v4s0b4148T
ab universital			    (s1p12v1s0b4148T
ab universitalcond			    (s1p12v5s0b4148T
ab wingdings			    (579Ls1p12v0s0b31402T
" times roman and helvetica: Laserjet F cartridge
ab tr						(s1p10v0s0b5T
ab trb						(s1p10v0s3b5T
ab tri						(s1p10v1s0b5T
ab helv						(s1p14v0s3b5T

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.970621194635.15538A-200000>