home *** CD-ROM | disk | FTP | other *** search
-
- /*--------------------------------------------------------------*/
-
- INFPRINT.CMD - A PRINT UTILITY FOR INFCONVERT.
-
- Infprint is a small print utility to enable condensed printing of files
- produced by infconvert - an inf file convertor program. After producing
- plain text files with infconvert, I started printing them with 2up.cmd,
- which gave me 2 pages of print to one side of paper. I realised that a lot
- of what 2up.cmd does had already been done by infconvert - all the lines
- were to a set length, all the double blank lines had been stripped (and most
- of the other blank lines as well!). All that had to be done was to set the
- printer to condensed print, join 2 lines of text one page length apart
- together and print it out one line at a time. I also had a notion to try to
- print on both side of the page on a standard laserjet III compatible printer
- (I have a Ricoh LP1200) and being successful in my attempt at emulating
- 2up.cmd, I modified my program so as to send every second full page to a
- temporary file, which is printed after the user has turned over the pages
- already printed on one side. It works most of the time.
- Paper handling is the key to success in this venture. If your printer can
- cope with curled up edges and stuck together hot paper then you'll have no
- problems! I took the printer control codes from 2up.cmd and modified them
- only slightly. Everything else, even though the output looks like that of
- 2up.cmd, was written from scratch - infprint doesn't have half the
- functionality of 2up - it doesn't need it.
-
-
- /*----------------------------------------------------------------*/
- Usage :- At an os2 prompt type :- infprint filespec [s]
- filespec:- a text file produced by infconvert. (Any text file can be
- printed, but no text manipulation takes place and lines are truncated at 120
- for portrait and 85 for landscape printing.]
- [s] - s on its own or after a filespec brings up a setup menu.
- Setup Menu Options
- O - select orientation. O toggles between portrait and landscape modes.
- Printing is condensed in both modes. Lines are truncated at 85 for
- landscape and 120 for portrait. Ideally use infconvert to produce the file
- to be printed with the margin set to zero and characters per line to
- whichever of these figures corresponds to the orientation required.
- P - toggles printing on both or oneside of the paper. If you try 'both'
- then, after the first side has been printed, you turn the paper over and
- press any key. N.B.- this means the text already printed should be face up
- (it is on my printer anyway!). Try to get the paper as flat as you can
- before putting it through the printer again. During both side printing a
- temporary file 'cwtcwt.cwt' is produced. Infprint will delete any file of
- this name without warning before it starts printing. Beware.
- If you want to flatten your paper under a heavy book in a humid
- room overnight before printing the second side, then wait until the first
- sides are all finished, and stop the program with control C and enter. The
- cwtcwt.cwt file can then be printed later using os/2's print command - the
- control codes are in the top of the file.
- L - sets lines per page for portrait and landscape. The settings you have
- are what works with my printer - you may need to alter these as no form
- feeds are passed to the printer - it just form feeds when it thinks its at
- the bottom of the page. Try it and see. For landscape L needs to be an even
- number.
- S - Save to ini. Changes are not saved to the ini file unless s is pressed
- before quitting the menu.
- Q - Quit- back to a prompt if no filespec was given, back to printing if
- filespec present.
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- If you can include control codes which work with other printers please do so.
- Annotate either the code or this file with your enhancements.
- Infprint.cmd can be freely used, modified, distributed, cursed at and
- criticised as you please. It's yours to do with what you will. I will not be
- coming round to unjam any printers, however - use it at your own risk.
-
- Colin Thomson. 24th September 1993. Fidonet at STRANGE***daze***(2:250/313)
- /*-----------------------------------------------------------------*/
-
-
-
-
-
-