home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / lambda / soundpot / p / wscon10.lbr / WSCON.DZC / WSCON.DOC
Encoding:
Text File  |  1993-10-25  |  2.8 KB  |  50 lines

  1.  
  2. WSCON.BAS                   CBASIC (CB-80)            (C) David Chazin 10/85
  3. Last update: 10/11/85 ver 1.0                       Roosevelt, NJ 08555-0364
  4.  
  5.       IF YOU DETECT ANY BUGS IN THIS PROGRAM OR IF YOU WOULD LIKE ME TO
  6.    INCORPORATE ENHANCEMENTS IN IT FOR YOU, PLEASE CORRESPOND WITH ME AT
  7.    THE ABOVE ADDRESS OR CALL ME ON WEEKENDS OR DURING EVENINGS BETWEEN
  8.    7PM AND MIDNIGHT AT 609-448-2702.
  9.  
  10.       The main purpose of this program is to read in a WordStar document
  11.    from a disk file and write straight printable ASCII to another disk
  12.    file or the printer at the user's choice.  The original text file is
  13.    not altered in any way.  If an output file which already exists is
  14.    specified, user is given the option to overwrite or append to the file.
  15.  
  16.       WSCON can be invoked from a command line.  If just WSCON in entered,
  17.    the user is presented with helpful information and is prompted for the
  18.    command line.
  19.  
  20.       There are other fine programs already available which do
  21.    approximately the same job.  I undertook to write this one so I would
  22.    have a program which properly handled the "soft" hyphen and one which
  23.    didn't print a bunch of blank lines at the end of each page when
  24.    printing to a disk file.
  25.  
  26.       When set to give hyphen help, WordStar will insert a "soft" or
  27.    conditional hyphen in the middle of a long word at the end of a line.
  28.    If the paragraph in which that word occurs is subsequently reformatted,
  29.    that word may not remain at the end of the line.  The "soft" hyphen
  30.    will, therefore, wind up in the middle of the line.  Then, when the
  31.    other  de-WordStar-izers  that I've seen handle this situation, we
  32.    either wind up with a hyphen somewhere in the middle of a line where it
  33.    does not belong, or without a hyphen at the end of the line where is does
  34.    belong.  WSCON deletes all "soft" hyphens not occurring at the end of a
  35.    line.
  36.  
  37.       The other special need addressed by WSCON concerns page formatting,
  38.    specifically the numerous blank lines sometimes printed to get from
  39.    one page to the next.  As editor and publisher of the newsletter/journal
  40.    of the Kaypro Users Group of New Jersey, I regularly have need to change
  41.    an article from a WordStar document intended for printing into a
  42.    straight ASCII file appropriate for viewing on a CRT.  Accordingly,
  43.    WSCON will not print more than one blank line in a row to a disk file,
  44.    thereby negating the effects of this page formatting.
  45.  
  46.       WSCON also deletes all control characters (except CR, LF and Tab),
  47.    strips any set high-order bits, truncates spaces and tabs occurring
  48.    at the end of a line, ignores lines beginning with a period, and
  49.    changes ^O's into spaces.
  50.