Download ASK THE GURU - Apple2.Org.Za
Transcript
January, 1986
printing everything bold. Just
print to disk and then get the
disk image back. Now search
and replace every carriage return with a new carriage
return followed by a "print
everything bold" command.
(2) Some of the dot matrix
printers will continue their
underlining of the right margin or the next left margin
every now and then. To cure
this, print to disk, reload the
new image, put a "no underline" command at the end of
the problem line, and then
print to paper.
(3) To change your daisywheel in mid-line for italics
or whatever, print to disk.
Then read the disk image
with Applesloth, looking for
some keying markers. If no
marker is found, one line at a
time is printed. If a marker is
found, the appropriate wheel
swap prompt is output.
(4) Sometimes you might
want to print on two wildly
different brands of printer or
even on both a printer and a
typesetter. To do this, do a
print to disk using generic
commands. Then read your
disk image and search/replace
the generic commands with
the specific ones.
(5) To switch between two
word processors that have
wildly differing commands,
print to disk first. This strips
off all imbedded commands
of the first word processor,
leaving you with a pure text
image. Then read that image
with the second program.
(6) Headers and footers can
be customized beyond the
limits of the word processor
by repeated trips to disk. To
do a triple header, print to
disk two lines shy, including
the bottom header line. Then
reprint to disk one line shy,
adding the middle header line.
Finally, print to paper while
adding the top header line.
(7) Even and odd pagination can be picked up by
printing first to disk and then
doing a search/replace on
every second header.
(8) HIRES dumps or other
graphics images are handled
by putting markers into your
text and then printing to disk.
You then read the disk a line
at a time by using Applesloth.
When the marker comes up,
you stop the printing and start
doing a graphics dump. When
the picture or graph is finished, you pick up the proper
printing in the proper position
and continue with your text.
(9) A "real" proportionally
spaced wall to wall microjustification can be added to most
modern printers by initially
printing to disk. Then the disk
is read by a suitable routine
that counts all the individual
widths of each character in
the line. After that, each and
every space on that line is
widened just enough to force
the text between left and right
margins. When you do this,
be sure to not justify leading
spaces or else all your paragraphs will end up ratty.
(10) For printers that already have microjustification
ready to go, a trip to disk lets
you insert those special commands only at print time, so
they stay out of your files.
(11) Lists can be sorted and
numbers can be totaled by
grabbing them just before
their final printing and rearranging their order.
(12) Daisywheels having
"funny" spokes might be recoded so they will print properly, again by printing to disk
and then doing a replace.
You might find Applesloth
post processing a tad on the
slow side. Even so, this may
be the quickest and simpliest
way to get the effect you are
after. Once you have what
you want, things can almost
always be made to run faster.
Let us briefly review those
various ways we can speed up
post processing, once you
have exactly what you want.
The entire Applesloth routine,
or else just the time-critical
parts of it, can be rewritten in
machine language.
A less drastic solution is to
eliminate the very slow, lineby-line disk access. One way
to do this is to use the files as
they sit in the word processor’s workspace. Since Applewriter text files reside over in
auxiliary memory and are
unaffected by a switch over to
Applesloth, this dual access
can be easily done.
Several other methods to
eliminate those line-by-line
disk reads exist and may be
suitable for other brands of
word processors as well. For
instance, you can load your
entire file at once into your
machine and then do an internal search. Or, you can use
a memory expansion card or a
RAM disk to load the postprocessed image. From RAM,
the files can be rapidly read.
Here’s an Applewriter postprocessing tip: Do your final
printing of the disk image by
using "wide open" print constants. These do include lm0,
DENSEST GRAYS:
133 28 {dup mul exch dup mul
add 1.0 exch sub} setscreen
BEST OVERALL GRAY:
100 45 {dup mul exch dup mul
add 1.0 exch sub} setscreen
DEFAULT:
60 45 {dup mul exch dup mul
add 1.0 exch sub} setscreen
Figure Four - Postscript halftone screen commands.
11.4