home *** CD-ROM | disk | FTP | other *** search
- > <CaPSL$Dir>.!Help
-
- This application was written as a stop-gap measure whilst waiting for
- Computer Concepts to send me a LaserDirect HiRes expansion card to drive
- my Canon LBP-4 laser printer.
-
- The LBP-4 is not Hewlett Packard LaserJet compatible. Instead it has its
- own command language, known as CaPSL (Canon Printing System Language)
- which is actually much more powerful and versatile than Hewlett Packard's
- PCL. The vector graphics and text scaling and rotation capabilities of
- CaPSL are every bit as powerful as PostScript, though sadly, nothing like
- as well supported when it comes to printer driver software.
-
- This program is not a RISC OS printer driver for the LBP-4 (that would have
- taken me far too long to write) but it will print files containing text if
- you drag their icons onto the iconbar icon. Rather, it is a translator
- which will convert the output of the LaserJet printer driver, PrinterLJ,
- into CaPSL which is suitable for driving the LBP-4 (or the LBP-8).
-
- Launch the !CaPSL application in the usual way by double clicking on its
- icon in the desktop filer window. This installs the icon on the iconbar.
- Clicking MENU on the iconbar icon pops up a menu with the following entries.
-
- Info - This leads to the usual 'About this program' dialogue box.
-
- To printer - This item is ticked by default and indicates that the output
- will be sent to the printer. This is achieved by the
- program opening a pseudo-file with the filename Printer:
- this enables the user to decide whether the printer is
- connected to the serial port, the parallel port, or the
- network.
-
- To file - Output can be sent to the printer, to a file or to both
- but not to neither. If you click on 'To printer' to cancel
- the tick, then 'To file' will be ticked automatically. You
- will be given the opportunity to specify a filename later.
-
- Stop printing - This option is greyed out until printing is actually in
- progress. When chosen, the input file is closed and no more
- data is sent to the printer. Printing will not stop
- immediately because of buffering inside the printer, but
- when this buffer is empty the page will be ejected and the
- printer reset.
-
- Fast print - As a considerate multi-tasking application this program
- prints in background, taking only short bursts of CPU time
- by responding to null reason codes in its wimp polling loop.
- This means that the file being printed is processed only a
- few bytes at a time, therefore taking several minutes to
- print. The fast print option selects the CPU hogging mode
- and the file is processed in chunks of 10k bytes with the
- wimp only being polled between these chunks and the hour-
- glass being displayed most of the time. The advantage is
- that the file is printed much more quickly.
-
- Small text - This mode only operates in the text printing mode, ie. when
- a file containing text (a Text file, an Obey file or a
- Command file) has been dragged on to the iconbar icon. It
- is useful for printing program source listings as it gets
- much more on a page.
-
- Quit - If printing is not in progress the application exits cleanly
- and removes its icon for the iconbar. If printing is in
- progress a dialogue box is displayed asking if you really
- want to quit. If you answer YES the 'Stop Printing' routine
- is called and the current page ejected (when the printer
- buffer is empty). The application then exits.
-
- Clicking SELECT or ADJUST on the iconbar icon has no effect at present.
-
- To print a text file drag its icon from the filer window to the iconbar
- icon. The filetype of the file is checked and valid types are Text, Obey
- and Command. Suitable error messages are produced if you drag a directory
- or an application directory, or a file of any other type. Unstamped files
- give you the option to print them assuming that they contain text. It is
- up to you to ensure that they do contain text if you answer YES. When you
- drag a file icon it must originate inside a filer window as direct memory
- transfer is not supported and produces an error message if attempted.
-
- Only two other types of file can be printed. These are type &FF4 PrintOut
- as produced when PrinterLJ is used with the 'To File' menu option ticked
- (type &FF3 is also accepted as it is the type that ought to be used for
- LaserJet dumps) and type &483 CaPSLDat which is the filetype generated
- by this application when the 'To File' menu option is ticked.
-
- So, to print, say a Draw file, you must first print it to a file using
- PrinterLJ, then (having re-selected 'To printer' in PrinterLJ's menu)
- drag the PrintOut file to the CaPSL iconbar icon.
-
- When a suitable file icon has been dragged to the iconbar icon if the
- 'To file' menu item is currently ticked a 'Save as' dialogue box is opened
- allowing the user to type in a filename and drag the icon to a filer window.
- Processing of the input file now takes place with output data being send
- to the printer and/or the output file.
-
- If another file icon is dragged to the iconbar icon while printing is in
- progress an error box is displayed as only one file can be processed at a
- time.
-
- As I mentioned earlier, I wrote this application as a temporary measure to
- enable me to use my printer until the expansion card arrives from Computer
- Concepts. If it proves to be useful to others then so much the better.
-
- The program does not translate the full set of PCL (LaserJet) control
- codes - just those produced by the PrinterLJ driver. I might well add
- others in the future.
-
- -----------------------------------------------------------------------------
-
- Additional notes.
-
- The Canon LBP-4 is supplied with only 512k of memory. This is sufficient
- for printing text files, but the LaserJet translation mode puts the printer
- in 'Full Paint Mode' for which approximately 1M of memory is needed inside
- the printer. The only way to achieve this is to fit a Canon Memory
- Expansion Board B 1MB (part number S63-2230-000) inside the printer as
- detailed in the Operator's Manual.
-
- The program was written using Acorn ANSI C (release 3) and it needs access
- to the Shared C Library version 3.50 or higher which it expects to find in
- the System:Modules directory. A copy is provided on this disc in case yours
- is an earlier version. Please note that Acorn's copyright exists on the
- Shared C Library and that users are bound by Acorn's End User Licence.
-
- The rest of the program was written by me for my own use but if anyone else
- wants a copy they may copy it freely and give it away, provided they make no
- commercial gain and that the copy is complete and unaltered and contains
- this message.
-
- If you have any comments I would welcome them. You can contact me in the
- following ways:
-
- Mail: 8 Grafton House
- The Farmlands
- Northolt
- Middlesex
- UB5 5ER
-
- Electronic: Archive BBS (0603) 745932, account no. 247
- Arcade BBS 081-654 2212, account no. 247
-