Text 780, 249 rader
Skriven 2005-10-16 19:21:07 av madodel@ptdprolog.net
Ärende: [VOICENWS] SW: DJPrint version 1.00
===========================================
20:26:47
<madodel@ptdprolog.net>, uid 50002) with qmail-scanner-1.23
(authenticated:madodel@[24.152.249.82])
++ From the VOICE OS/2-eComStation News Service http://www.os2voice.org ++
From: "Don Hawkinson" <dwhawkDESPAM@DESPAMintcon.net>
DJPrint version 1.00
DJPrint was intended as a method to list source code on my HP DeskJet
632C. Other OS/2 and eCS users have found it useful for various printing
tasks.
DJPrint should work with any printer that supports the HP PCL 3 commands.
The printers that are known to work with DJPrint are listed below.
HP Deskjet 932C
Xerox Phaser 8550
HP LaserJet II
HP DeskJet 340
Brother HD 5150D
IBM 4019 laser printer
HP Laserjet 4050N
HP DeskJet 632C
HP Deskjet 980 Cxi
HP Deskjet 990 Cxi
HP 450
Lexmark T620
The default printing mode of DJPrint is to assume the paper is US letter
size (8.5 x 11), 6 lpi , and line numbering is turned on. The printer is
also put into compressed (16.5 cpi) print.
DJPrint has options that should allow users outside the U.S.A. to also
find it useful. The file "charset.djp" contains a list of the character
sets that are supported by DJPrint. The default character set is the PC-8
set which is the one used by most OS/2 users in the U.S.A. To select a
different character set, edit the file "charset.djp" and move the forward
slash "/" from the PC-8 line to the desired character set. The program
looks first in the current directory for the file and then in the
directory where the executable was located. You should locate the file
"charset.djp" in the same directory as the executable since you should
not need to change the character set very often. Other than moving the
"/" character, do not alter the text in the file. DJPrint looks for an
exact match for the text in the file.
In addition to being able to select the printer's character set, there is
an option to set the paper size to A4.
Since the program was intended for source code printing, no attempt was
made for intelligent wrapping. The wrap occurs when the line length limit
is reached. Unless the line numbering is turned off, the same line number
is used for wrapped lines. If line number 10 needs to be wrapped to fit
on the page, all of the wrapped portions of line 10 will be numbered 10.
This is done so that the line numbers refelct the actual source line
number. A plus sign is inserted before each wrapped line to make certain
the user knows the line has been wrapped.
Many functions are under the users control. The printer may be put into
portrait or landscape mode, and the supported paper sizes are A4, letter
(US standard size and the default), and legal (8.5 x 14 inches). The user
also has the option of 6 or 8 lines per inch, with 6 lines per inch the
default. The user may set the starting source line number, the ending
source line number, and start the page numbering at number other than
one. Setting the starting page number does not change where the program
starts printing the source lines, it is only a cosmetic change. This
will allow the user to reprint a specific page in a listing.
Since DJPrint has many option switches, the user may create a file called
"options.djp" and DJPrint will read the option switches from the file
before reading the command line switches. The command line options will
override any conflicting options in the options file. The options in the
file must start at column 1 and must start with a forward slash. Lines
that start with any other characters are ignored.
DJPrint will look first in the current directory for the "options.djp"
file and if not found, then in the directory where DJPrint.exe is located.
DJPrint checks for a formfeed character at the start of a line. If one is
found a new page with a header is started. Formfeeds that are not at the
start of a line are not detected and the new page will not have a header
and the lines per page counter will not be reset.
DJPrint displays the source characters per line and the source lines per
page. This information is displayed before the name of the file being
printed is displayed.
DJPrint will do manual duplex printing. The output is first sent to the
file testprn and then that file is split into oddprn and evenprn. The
file oddprn is sent to the printer, the user is prompted to reload the
paper and then the file evenprn is printed. If the /F option is used, the
final output goes to the file testprn2.
DJPrint also has an option to send the command to the printer for internal
duplex printing - if the printer supports duplex printing.
Except for the page break string and the comment string, the options are
not case sensitive.
Entering DJPrint at the command line with no arguments will cause the
program to display a list of the supported options. The order that the
options are entered is not significant. The options may be entered before
or after the files to be printed. DJPrint will do wild card expansion, so
you may enter "*.c" (without the quotes) to print all of the C files in a
directory.
A typical useage command would look like:
DJPrint (options) file1 ... file9
where file1 ... file9 may contain wild cards
The file names and options may be mixed in the command line, but the
options apply to all the files being printed.
Options:
The /R option sends a reset to the printer before printing. If you are not
the only one using the printer, sending a reset may a good idea. A reset
is sent to the printer when DJPrint terminates.
The /F option causes the output to be sent to the file TESTPRN. This
allows the user to see what would be printed before sending the job to
the printer. This is handy when you are exploring the various options.
The /Hxx option starts the printing with source line xx, where xx is a
decimal number between 1 and 9999.
The /Txx option starts the printing with source line xx, where xx is a
decimal number between 1 and 9999.
The /Ixx option sets the initial page number to xx, where xx is a decimal
number between 1 and 9999. This is only a cosmetic setting, it does not
change where in the source file printing is started. This option along
with the /Hxx and /Txx options will let the user replace specific pages
from a printed set. For example, if page 10 was damaged and started with
with line 571 and ended with 628, the options /I10 /H571 /T628 would
print a replacement page 10.
The /N option stops the printing of line numbers. It does not stop the
header line from being printed.
The /CPIxx option selects the number of characters per inch, where xx is
10, 12 , 16 , or 20 characters per inch.
The /CPIP option selects a proportional font which is about 14 cpi with my
printer. The font used may vary with the make and model of the printer.
The /CPIPQ option selects a proportional font with letter quality print
and is about 14 cpi with my printer.
The /CPIPI option selects a proportional font with italic mode print which
is about 14 cpi with my printer.
The options /CPIPQ and /CPIPI turn off the headers, the line numbers and
set the lines per inch to 6 lpi.
The /S option puts the printer in 8 lines per inch mode.
The /L option puts the printer in landscape mode.
The /D option adds an extra linefeed for double space printing. Useful
when the printed text will be marked for editing.
The /DU option is for manual duplex printing. DJPrint prints the odd pages
and then prompts the user to reload the printed pages to print the even
pages.
The /DUI option sets the printers duplex option. The printer must support
duplex printing for this option to work.
The /PA option sets the paper size to A4 (210x297 mm)
The /PL option sets the paper size to legal (8.5x14 in)
The /Wx option sets the destination printer to LPT 1,2, or 3. The default
is the default printer that is set on the printer objects.
The /C option adds a name or comment to the header on page 1. For example:
/C"Don Hawkinson" or /c"windows IS a virus!". The quotes are only needed
if the comment contains spaces.
The /B option issues new page after a user specified string is found. For
example: /b"{page break}" or /b"/* new page */". The quotes are only
needed if the comment contains spaces.
The /F option sends the output to a file called testprn in the current
directory. This allows the user to see what would be sent to the printer
without using ink or paper.
The /W and /B options only require the quotes if the text includes a
space. The text after these two options are the only part of the options
that are case sensitive.
Please let me know if this program works with your printer and the model
number of your printer.
The program may be downloaded at:
http://home.tulsaconnect.com/dwhawk/djprint.zip
I will be uploading the program to hobbes. If you know of other sites
where it should be uploaded, let me know.
Don Hawkinson
dwhawkDESPAM@DESPAMintcon.net
--
Warpstock Europe 2005 - Dresden, Germany, Nov. 18-20
http://www.warpstock.net
Warpstock 2006 - Where?, Consider submitting a bid for your home town -
bids@warpstock.org
[Moderator's note: All posts are sent without guarantee to the
accuracy of the content. We try to verify details and URLs but
this is an entirely volunteer run list, so 100% fact checking and
the quality/useability of products announced here is impossible.
If you respond to this post please remove the DESPAM from the
poster's email addresses. Please do not send requests for information
about a specific post to the moderator unless it is an update or I sent
it.]
--
To unsubscribe yourself from this list, send the following message
to majormajor@os2voice.org
unsubscribe news your.email.address@here
end
Or, visit http://www.os2voice.org/MailingLists.html
If you have an announcement you would like posted to the VOICE
News list, please send it to submit@os2voice.org or go to
http://www.os2voice.org/fSubNews.html . Please include a
valid reply address and a real contact name. If you wish to comment
on this post, please reply to feedback@os2voice.org
---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)
|