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