home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
printer
/
lj2.lha
/
LJ2.DOC
< prev
next >
Wrap
Text File
|
1988-03-07
|
7KB
|
161 lines
LJ2
---
This program will take a standard text file as an input and print it
out to a Hewlett Packard LaserJet, LaserJet Plus, LaserJet Series II or
compatibles.
The main feature of the program is that it prints the file using a
small landscape font, usually called the lineprinter font, and will fit
two 'logical' pages of text on a standard paper.
The paper will come out in the following format:
____________________ ____________________
| | | Each page will have a title
| | | which includes: The name of the
| | | file being printed, the current
| | | date & time, and the number of
| | | the page that is being printed.
| | |
| | |
| | |
| | |
| | |
| | |
| | |
|____________________|____________________|
The program can only be started from the CLI. The following is the format
for using it. (If you just typed the program's name without anything else,
you will get the following text:)
LJ2 : Print two logical pages of text on the HP LaserJet
or compatible using a small landscape font.
Format: lj2 [<option>] <filename> [<destination>]
Where : <filename> is the name of the file to be printed.
<destination> is where the output should go.
The default for this is the printer selected from
Preferences which is currently <PAR:>
<option> is one or more of the following:
-x Turns on single page extra wide print.
-h Disable headers.
-v Disable vertical line.
-s Disable time and date stamp.
-p Disable display of page number on console.
-f Disable interpretation of FormFeeds in inputfile.
-n Enable line numbering. (resets every page.)
-N Enable line numbering. (for all document.)
-l### Number of lines per page. < 65>
-w### Max # of characters that will fit on full page. <188>
-c### Max number of columns per logical page. < 92>
-t### Number of spaces to represent a TAB. < 5>
Options can be grouped as follows: -hvsfl62w190t3
By: Khalid Aldoseri, CIS 75166,2531.
For example:
lj2 -sl60f ram:test SER:
This will print the file <ram:test> to the serial port without a time
and date stamp, with 60 lines of text per page, and without issuing a
new page every time a FormFeed character is met in the file.
The simplest form is:
lj2 ram:test
which just prints the file with the default settings and with all
options ON to the currently selected port from Preferences.
The program is currently set for a paper size of A4. I only have the A4
paper cartridge and cannot get my hands on any other. I have manually
calculated the settings for Letter size paper. These settings and the
default settings are in the following table:
+-----------------------------+---------+----------+
| Variables | A4 | Letter |
|-----------------------------|---------|----------|
| Lines per page | 66 | 66 |
| Max page width | 188 | 174 |
| Max columns per logical page| 92 | 84 |
+-----------------------------+---------+----------+
Please experiments with these settings if you have different paper
cartridges, and inform me what are the optimal settings that you can get
(the most text on the paper) so that I can include it in my next version
which will include support for directly specifying paper size instead of
having to set several numbers. (e.g. A4, Letter, Legal, etc.)
New Features:
Wide Print Facility:
It is turned on by the -x switch, and forces the program to print one
page per sheet only, but in a very wide style, (188 characters per line on
an A4 paper.) (I know this makes the name LJ2 somewhat redundant, but what
the h*ll!)
Line Numbering:
Turned on by either -n or -N (case sensitive). The -n switch puts line
numbers in front of each line, and the numbers are reset every page, while
the -N switch will give you line numbering for the whole file. You should
not specify both options together, but -N will always override -n.
Configuration file:
This is a new option. Please read the LJ2_Config file for explanation
on use.
----------------------------------------------------------------------------
The idea for the program comes from an very similar program in the
IBM PC world called (naturally) LJ2, although it is now much better than
the IBM version, and will continue to get better. The main reason for this
is that I personally use it very much for all draft printouts. This is placed
in the Public Domain.
If you find any bugs in the program, or would like to see some other
enhancements, or even if you like to see the source code, you can send an
EasyPlex on CIS to 75166,2531 or a message in the Amigaforum, to BDG811
in the Source, or to KHALID in BIX.
-------------------------------------------------------------------------------
UPDATE HISTORY
--------------
Version 1.3: 29 July 1987
Much more optimization for speed. Now works very well with even two or
three other programs running.
Version 1.4: 7 Feb 1988
Conversion to run with Manx Aztec 3.40a, plus a few bug fixes. The
program now behaves very well in a multitasking environment, and will
not hog the system. (I hope!)
Version 1.5: 12 Feb 1988
New features:
- Wide print facility on a single page. Major rewrite.
- Line numbering: both per page, and for the whole file.
Version 1.6:
New LJ2_Config file facility to read in a configuration file that will
override the built-in defaults.
By: Khalid Aldoseri,
CIS: 75166,2531.