home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
h
/
hpp103.zip
/
HPP.DOC
next >
Wrap
Text File
|
1992-08-04
|
18KB
|
460 lines
H P P
version 1.03 (12 July 1992)
Jurgen A. Doornik
1. Introduction.
___________________________________________________________________
HPP is a print utility for Hewlett Packard (tm) compatible laser
printers. It facilitates printing of more than one column of text,
either in landscape, or in portrait orientation. As a default it
will print two columns in landscape, using the small internal
lineprinter font. HPP can also print PCX files in four different
resolutions. HPP does not support gray levels, but can print many
PCX files on one page.
As a first action, you might wish to print this file using the
following Dos command
HPP hpp.doc
If you have any suggestions for improvement, or find any bugs,
please report them to me, via email:
INTERNET: ECONZ@UK.AC.OX.VAX
or by mail:
Jurgen Doornik
Institute of Economics and Statistics
St Cross Building, Manor Road
Oxford OX1 3UL
United Kingdom
FAX +44 - 865 - 271094
Special thanks are due to Marius Ooms and Arjen Merckens for
comments on earlier releases of HPP.
Arjen is author of the popular program called ACD (ChDir FAST;
more features than LCD/NCD and free).
2. HPP help screen
___________________________________________________________________
If you just type HPP, the following help screen is shown
(the square brackets indicate that the argument is optional, the
braces show the default):
HPP version 1.00 (C) J.A. Doornik, 1991,1992.
Hewlett Packard (tm) printer utility
Usage: HPP filemask [range] [#] [&outfile] [@cmndfile] [/options]
filemask: {} valid file mask
range: {1..-1} #-#, print file from line # to #, -1=EOF
line numbering:{} #, #=number lines
outfile: {&LPT1} redirect to file or device
cmndfile: file with options
/options
printer setup: {hpp.ini} NOINIT NORESET NOEXIT
printer code: ESC.....
paper type: {A4} EXECUTIVE LEGAL LETTER
paper source: {} DECK LOWERTRAY MANUAL TRAY
paper side: {} DUPLEX, SHORT LONG, both invoke double sided printing
paper layout: {L2} P# L#, P=portait L=landscape #=no of columns
font select: {FI10U FH16.67} F# FI# FH# FV# FS# FB# FT#
print side: {} ODD EVEN
print size: {CPI16.67}, CPI# LPP#, of characters per inch in font
and no of printed lines per page
print margin: {ML4 MR3 MT2 MB1}, in rows/columns
box layout: {FILE7 PAGE9} NOBOX FILE# PAGE# PRESCAN USA,
#=7891230,-7913
various: {} NOFF, ignore form feeds
pcx print: {MONO4} MONO#, #=1..4 1=smallest,4=largest; REVERSE
3. Some general notes
___________________________________________________________________
- It is advised, when using command line arguments, to keep them
in the same order as on the help screen.
- Older printers like the Laserjet, Laserjet+ and Laserjet 500
do not have the upper ascii characters in their font.
- Older printers like the Laserjet, Laserjet+ and Laserjet 500
do not support PCX printing in landscape orientation.
- Only recent printers like the IIId support duplex printing.
For other printers each side of the page has to be printed
separately.
4. HPP command line arguments
___________________________________________________________________
HPP supports the following command line arguments:
filemask [range] [#] [&outfile] [@cmndfile] [/options]
The square brackets indicate that the argument is optional.
- filemask
The file(s) to be printed. Wildcards are allowed. So
HPP *.doc
will print all files with the doc extension; and
HPP pic??.pcx
will print all the PCX files matching the mask (each
on a separate page).
It is possible to print more than one image on a page, e.g.
HPP pic1.pcx+pic2.pcx /mono2 /p1
Now you will get two graphs on the page. This feature is
discussed under the /MONO# option. No spaces are allowed
in the filemask.
- range
Only print the selected lines. To just print lines 100 to 200
of hpp.doc:
HPP hpp.doc 100..200
- #
Number the lines, e.g.
HPP hpp.doc #
- &outfile
Sets the destination to outfile, where outfile is either a
file or a device.
Devices are LPT1, LPT2, LPT3, COM1, COM2, COM3, PRN.
HPP writes to LPT1..LPT3 through bios function, enabling it
to detect whether the printer is ready. To the other four
devices it writes in the normal way. This will lead to a
message saying that the files already exist, if the device
is indeed a printer, just press Y to overwrite.
Finally you can print to a file, and send the file to a
printer later.
To print hpp.doc on LPT2, type:
HPP hpp.doc &lpt2
to print hpp.doc to a file, e.g. hpp.prn, type:
HPP hpp.doc &hpp.prn
Then you can send it to the printer as follows:
COPY hpp.prn /B PRN:
Of course you cannot use HPP to send hpp.prn to the printer.
- @cmndfile
Instead of passing arguments to HPP on the command line, you
can type them in a file, and then pass the file on to HPP.
This is useful if you use a certain format often.
- /options
These are discussed below.
5. HPP options
___________________________________________________________________
This section explains the options. They must always be preceeded
by a forward slash (/) or a minus sign (-).
- printer setup: {hpp.ini} NOINIT NORESET NOEXIT
HPP operates as follows:
1. printer reset command, unless /noreset issued
2. do commands in hpp.ini, unless /noinit issued.
HPP wil first look for hpp.ini in the current directory,
if it cannot find it, HPP will look in the directory
where HPP.EXE resides.
3. print the files
4. printer reset command, unless /noexit issued
So to skip 1,2, and 4:
HPP hpp.doc /noreset /noinit /noexit
- printer code: ESC.....
Send an escape code to the printer, use e.g.
HPP hpp.doc /ESC&l2X
to print two copies of hpp.doc.
- paper type: {A4} EXECUTIVE LEGAL LETTER
Tells HPP what format paper is being used.
- paper source: {} DECK LOWERTRAY MANUAL TRAY
Used if the paper has to come from another source than the
default.
- paper side: {} DUPLEX SHORT LONG
Both short and long invoke double sided printing. If you also
issue the duplex command (before either short or long), HPP
will assume that the printer supports double sided printing
(eg. the Hewlett Packard IIId).
Otherwise the paper has to be fed in twice, odd sides first.
After this, HPP will ask you to put the odd pages back into
the printer tray, advising you on the positioning (hpp at top,
or hpp at bottom; hpp is the print logo in the bottom right
of the printed page). This advice works for printers which
print on the downward facing side.
Short and long relate to the type of binding:
┌──────╥──────┐ ┌──────────────┐
│long ║ │ │long landscape│
│por- ║ │ │ -2- │
│trait ║ │ ╞══════════════╡
│ ║ │ │ │
│ -2- ║ -3- │ │ -3- │
└──────╨──────┘ └──────────────┘
┌──────┐ ┌──────────────╥──────────────┐
│short │ │ short ║ landscape │
│por- │ │ -2- ║ -3- │
│trait │ └──────────────╨──────────────┘
│ │
│ -2- │
╞══════╡
│ │
│ │
│ │
│ │
│ -3- │
└──────┘
- paper layout: {L2} P# L#, P=portait L=landscape #=no of columns
This is one of the core commands, indicating to HPP the number of
columns to use, and whether to print in portrait or landscape
orientation.
┌───────┐ ┌───────┐ ┌──────────────┐ ┌──────────────┐
│ xxxxx │ │ xx xx │ │ xxxxxxxxxxxx │ │ xxxxx xxxxx │
│ xxxxx │ │ xx xx │ │ xxxxxxxxxxxx │ │ xxxxx xxxxx │
│ xxxxx │ │ xx xx │ │ xxxxxxxxxxxx │ │ xxxxx xxxxx │
│ xxxxx │ │ xx xx │ └──────────────┘ └──────────────┘
│ xxxxx │ │ xx xx │ landscape landscape
└───────┘ └───────┘ one column two columns
portrait portrait
one column two columns
The default is two columns, landscape (/l2), to change this to
one column portrait:
HPP hpp.doc /p1
Using all default settings, you will get two columns of 66 lines
by 86 characters; using /P1 you get 98 lines by 118 characters.
- font select: {FI10U FH16.67} FI# FH# FV# FS# FB# FT# F#
These commands tell the PRINTER which font to use, you need
to tell HPP the size of the font, using the print size commands.
They translate into primary font select escape codes:
FI# - symbol set
10U = PC8
FH# - pitch (horixontal size)
Characters per inch of the fixed spaced font
FV# - height (point size, vertical size)
The height of the font. A point is 1/72 inch.
FS# - style
0 = upright, 1 = italic.
FB# - stroke weight
-3 = light, 0 = medium, 3 = bold
FT# - typeface selection
0 = line printer, 3 = Courier, etc.
F# - font selection by ID.
# is the ID
The printer will select a font according to the specified
characteristics, here listed in decreasing priority.
If only one font matches the first characteristic, that will
selected, otherwise the second characteristic will be used
to decide, etc. Consult your printer reference manual for
further details.
- print side: {} ODD EVEN
Instruct HPP to only print odd or even sides.
- print size: {CPI16.67}, CPI# LPP#, of characters per inch in font
and no of printed lines per page
In order to decide on a proper page layout, hpp needs to now
how many characters to print in an inch, and how many lines
to put on a page. If LPP is not specified, lines per inch is
set to LPI = 0.57 * CPI. From this LPP is then derived, using
the physical page size and the print margins. The printer is
instructed to set a vertical motion index corresponding to LPP.
This implies that LPP does not need to match the height of the font.
On the other hand, CPI must match the font pitch exactly. No
horizontal motion index instruction is sent to the printer.
- print margin: {ML4 MR3 MT2 MB1}
These are soft margins: they are maintained internally by HPP.
(Hard margins would be maintained by the printer.)
The units are characters for left and right (ML#, MR#), and
lines for top and bottom (MT#, MB#). The minimum for each margin
is 1.
- box layout: {FILE7 PAGE9} NOBOX FILE# PAGE# PRESCAN USA,
#=7891230,-7913
NOBOX instructs HPP not to draw a box around every page.
FILE# and PAGE# position the file name/date/time and page number
on the page:
-7 7 8 9 -9
┌─────────────────┐ These numbers are easy to remember:
│ │ they correspond to the positioning
│ │ on your numeric keypad.
└─────────────────┘ A 0 indicates not to write.
-1 1 2 3 -3
So to add as little as possible use: /file0 /page0 /nobox .
PRESCAN tells HPP to scan the file before printing it. Then HPP
will know the number of pages, and the page count will read
Page ## of ##.
USA tells HPP to write the date and time in American format
(mm-dd-yy hh:mm am/pm), instead of European format
(dd-mm-yy hh:mm 24 hour clock).
- various: {} NOFF
Can be used to ignore form feeds (character 12) embedded in the
file.
- pcx print: {MONO4} MONO#, #=1..4 1=smallest,4=largest; REVERSE
If the file to be printed has the PCX extension, HPP assumes
it is a raster image, saved in the PCX format. HPP prints these
files efficiently, but with loss of colour information. Every
colour apart from the background is translated to black.
/Reverse will reverse the colours.
The actual size of the image depends on the graphics mode in which
it is was saved. Some common sizes are:
Graphics mode Graphics card
720 x 348 Hercules
320 x 200 CGA/EGA/VGA/SVGA
640 x 200 CGA/EGA/VGA/SVGA
640 x 350 EGA/VGA/SVGA
640 x 480 VGA/SVGA
800 x 600 SVGA
Four sizes are supported:
MONO1 - 300 dots/inch, corresponds to 1 dot for each pixel.
This gives the smallest graphs. A 640 x 480 image
will be tiny.
MONO2 - 150 dots/inch, corresponds to 2 x 2 dots for each pixel.
MONO3 - 100 dots/inch, corresponds to 3 x 3 dots for each pixel.
MONO4 - 75 dots/inch, corresponds to 4 x 4 dots for each pixel.
This gives the largest graphs. A 640 x 480 image
will only just fit on an A4 page in portrait mode.
On printers which don't support raster graphics printing along
the logical side of the page, you will have to issue the /p1
command. Landscape printing won't work, and without it your
graph will be squashed up in a tiny area of the page.
Another paper saving feature is the option to print more than
one graph on a page. Two 800 x 600 super VGA pictures will
fit nicely in portrait mode:
HPP svga1.pcx+svga2.pcx /mono2 /p1
If your printer supports landscape graphics printing, you
can fit four 640 x 480 images on a page, e.g.
HPP pic1.pcx+pic2.pcx+pic3.pcx+pic4.pcx /mono2
assuming the number of columns is two (which is the default).
It is your responsibility to select appropriate scaling
(hence the /mono2).
If you wish to push it further, you can e.g. fit 15 images
of resolution 640 x 480 on a page using /p3 /mono1 /file0.
Now the command line argument might get too long, so that
you will have to rename the pcx files to 1.pcx, 2.pcx etc.
6. License, warranty and disclaimer.
___________________________________________________________________
HPP is written by Jurgen A. Doornik for the IBM PC using
DOS 3.0 or later. The following restrictions apply to the
use of HPP:
o Private Use
The use of HPP on privately owned machinery is classified
as private use. Private use of HPP is free of charge.
HPP may be distributed for private use given these two
restrictions:
o the program shall be supplied in its original, unmodified
form, which includes this documentation;
o no fee is charged;
o Non-private Use
Using HPP on a computer which is not privately owned,
or to print on a printer which is not privately owned is
classified as non-private use. This includes usage of
HPP in government or educational institutions.
o no fee is required if HPP has been received as part
of another program (provided this is done with my
permisison). HPP may then be used on the same
computers as those for which use of the program with
which HPP is supplied is legal.
o non-private users may use HPP free of charge for
a trial period of two weeks. After this period
a fee is required.
o in all other cases a fee is required, which depends
on the number of computers on which HPP is installed.
Pricing at the date of this document is:
1 - 5 $20 per computer
6 - 20 $10 per computer
21 and more $ 5 per computer
So 30 computers work out as:
5 * $20 + 15 * $10 + 10 * $5 = $300
There is a 50% educational discount. These prices
relate to electronically distributed copies of HPP,
and do not include package, posting, VAT or local
taxes. For network pricing, count the number of
computers attached to the network.
For any other use contact me.
Jurgen Doornik INTERNET: ECONZ@UK.AC.OX.VAX
Institute of Economics and Statistics
St Cross Building, Manor Road
Oxford OX1 3UL
United Kingdom
FAX +44 - 865 - 271094
DISCLAIMER:
I shall not be responsible for any damages or inconveniences
incurred due to the usage of HPP. More formally:
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL JURGEN DOORNIK BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY LOST PROFITS, LOST MONIES, OR
OTHER SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY THIRD PARTIES)
THESE PROGRAMS, EVEN IF YOU HAVE BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES, OR FOR ANY CLAIM BY ANY OTHER PARTY.
7. Revision history.
___________________________________________________________________
2- 7-92: released version 1.03