PRINTRAN\DEMO.BAT ·
BAT ·
3.4 KB ·
1990-05-02 ·
from PCPlus_Personal-Productivity-Pack_Disk-1_Jun-1990
echo off
cls
echo PRINTRAN J. C. Mansfield
echo -----------------------------------------
echo -----------------------------------------
echo D E M O N S T R A T I O N
echo.
echo This batch file demonstrates use of PRINTRAN (PRINter TRANslator) which
echo can be used to translate any output sent to the LPT1 device. Any
echo sequences of characters which are recognised can be substituted with
echo another sequence; any sequences that are not recognised are passed on
echo unaltered.
echo.
echo PRINTRAN is a "Terminate, Stay Resident" program, which means that it
echo stays resident in memory after it has been run, translating any further
echo output to LPT1, whether it be from PRINT, a wordprocessor, notepad,
echo spreadsheet, database, etc...
echo.
echo Although PRINTRAN is primarily intended to translate non-printing
echo escape code sequences, it can be used to good effect with printing
echo characters. A simple example might be to change # into £. This can be
echo specified by adding " #/£ " into the translation file.
echo.
pause
cls
echo PRINTRAN J. C. Mansfield
echo -----------------------------------------
echo -----------------------------------------
echo D E M O N S T R A T I O N
echo.
echo This file shows an application involving the translation of visible
echo characters. A problem with some programs is that they cannot easily
echo handle block graphics (Eg. ├ ═╬ ╣) and it is therefore impossible to
echo print neat boxes. The BOXES.TRA translation file translates boxes
echo represented entirely using keyboard characters into boxes printed
echo with block graphics.
echo.
echo A file, BOXES.DOC will be printed twice: First with the translation
echo specified by BOXES.TRA and then without any translation.
echo.
pause
cls
echo PRINTRAN J. C. Mansfield
echo -----------------------------------------
echo -----------------------------------------
echo D E M O N S T R A T I O N
echo.
echo Please check that the printer attached to LPT1 is ready and on-line
echo The printer must be set up in a mode which prints IBM block graphics
echo characters. If rows of italic characters appear in the print out, then
echo the printer mode is incorrectly set.
echo.
echo If you don't want to proceed with the demonstration printout at this
echo time, press [Ctrl][C] now, answer [Y] to the following question and run
echo P5 again from the A: prompt.
echo.
pause
cls
echo PRINTRAN J. C. Mansfield
echo -----------------------------------------
echo -----------------------------------------
echo D E M O N S T R A T I O N
echo.
echo Printing BOXES.DOC using translation:
printran boxes.tra
type boxes.doc >lpt1
echo.
echo Waiting to print BOXES.TRA without translation ...
pause
cls
echo PRINTRAN J. C. Mansfield
echo -----------------------------------------
echo -----------------------------------------
echo D E M O N S T R A T I O N
echo.
echo Printing BOXES.DOC without translation:
printran /off
type boxes.doc >lpt1
cls
cd ..\
P5 QUICK