                            SPACEFIX
                           Version 1.0

                           Written by:
                         John G. Bennett
                    CompuServe ID 72431,1407
                          January 1991

DESCRIPTION:  SPACEFIX is a small utility which reads a WS 5.0 or 
later document file and creates a new file containing spaces 
before any soft return which is not preceded by white space.  It 
is intended for use on files produced by PCO in WordStar 5.0 
format.  These files contain no space before the soft returns; 
the result is that when one reformats the files in WordStar, a 
word at the end of a line ending in a soft return is joined with 
the first word of the next line.  SPACEFIX corrects this problem 
by inserting appropriate spaces.

    SPACEFIX will probably work to correct similar problems in 
files produced by other programs, but its used with other
programs cannot be guaranteed.  You will need to experiment to
find out whether SPACEFIX can help fix files produced by other
programs without creating problems.  SPACEFIX (with the /S switch
invoked) has been sucessfully used on files created by Calera's
WordScan+ OCR software.  SPACEFIX knows something about
WordStar file formats, and should produce an exact copy of the
input file if run on a file formatted correctly for WS 5.0 or
later.

USAGE: To use SPACEFIX, you simply enter

     SPACEFIX  inputfilename outputfilename

from the DOS command line.  You may optionally inster a /S
anywhere after SPACEFIX, so long as it is separated from the
other items on the command line by one or more spaces.  If
SPACEFIX.EXE is not in the current directory, you must insert the
appropriate path designation before "SPACEFIX".   Input and
output file names can be any legal DOS filename, including path
and drive specifications.  The input file should be a file to be
fixed, e.g., one created by PCO in WS 5.0 format. Use SPACEFIX
before running any other program on the file to be fixed.
SPACEFIX doesn't know anything about English, and can't fix the
file once the words have been run together.

The optional /S command line switch, when present, tells SPACEFIX
to strip all soft spaces out of the file.  This has proved useful
with some programs which insert soft spaces where WordStar 5.0
(and later) expects symseq tabs.  Due to a bug in WordStar, such
soft spaces can show up as regular spaces in hyphenated words
(where a soft hyphen was) under certain circumstances.  If you
find this problem, using the /S switch may be helpful.

If SPACEFIX discovers an error during processing, it issues an
appropriate error message and aborts, setting the DOS errorlevel
to a value other than 0.

CAUTION: If a file with the same name as the output file already 
exists, SPACEFIX overwrites it without any warning.

LIMITATIONS:  SPACEFIX only works on files formatted for WS 5.0 
or later (i.e., WS format files having the 128 byte header).  
SPACEFIX does not insert missing spaces in notes, annotations, or
non-printing comments; if there is demand, probably this capabil-
ity could be added.

Please report any problems you have with this program to John G.
Bennett, Compuserve ID 72431,1407.
