Contents of the PREVIEW.DOC file
PREVIEW Version 1.0
Copyright (c) 1987 Kurt Szakacs
PREVIEW is a little utility designed to examine page layout of text
and ascii files, before printing.
If your word processor can add headers, footers, page numbers, print
enhancements, or whatever to your text, and you want to see how it
will look, before you waste paper, try this program.
To preview a document, "print" your text to a disk file
and type: PREVIEW filename. Each alpha/numeric character is shown
as a pixle on a graphics screen; nine pages of text per screen.
Press any key to continue between screens. Hit escape to return to DOS
and skip the rest.
Try PREVIEW on the included .DOC, .PRN, and .COM files to see how it
Only alpha/numeric characters are shown because punctuation marks tend
to obfuscate the output and make the text appear to have too many words.
Pages are 66 lines of 80 characters, usually. If a line has more than
80 characters, it runs off the page.
PREVIEW handles carriage returns, line feeds, tabs (six spaces), back
spaces, form feeds, and some printer control characters. WS files are
ok, but dot commands are meaningless. You can try other types of files,
but results may not be pretty.
Turbo Pascal (version 3.01A) source code is included for modification
and examination. Included in the code are a few questions regarding style,
the KEYPRESSED function and how it works (or not), and flag flips. Any
comments regarding these issues or the program itself would be appreciated.
Insofar as future versions are concerned, I may include such command
suffixes as: -a (to show all ascii chars), -s (sideways), -p xx xx (range
of pages), -t xx -b xx -l xx -r xx (to add margins to raw text), -x x to
add a character to the translate table, -c (to count characters, words,
and pages), -d to change defaults, and any others that I or anybody else
may care to add.
I don't use Word Star so I don't have any incentive to add dot command
processing. I do, however, use wwb (I hope someone else knows what that
means), and it uses nothing but dot commands. I'm thinking about previewing
those files, but I'm lazy.
1716 East 115
Cleveland, OH 44106