home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / ventura / clean4vp.arc / CLEAN4VP.DOC < prev   
Text File  |  1988-08-21  |  3KB  |  71 lines

  1. CLEAN4VP.COM
  2. by Dan Zoll, June 1988
  3.  
  4. CLEAN4VP was designed to clean up text files for import into
  5. Ventura Publisher as WordPerfect files. You do not need
  6. WordPerfect to use the program.
  7.  
  8. CLEAN4VP does the following things:
  9.  
  10.     Turns hard carriage returns (CRLF) to soft carriage returns
  11.      (CR) and double hard returns (CRLF/CRLF) to a single hard
  12.      return (LF). This is great for text files, which generally
  13.      have hard carriage returns at the end of each line. This
  14.      also removes a blank line between paragraphs if present. If
  15.      you have tables in the file, be sure there is a blank line
  16.      between each line of text or multiple items will end up on
  17.      the same line.
  18.  
  19.     Changes all occurrences of two or more spaces to one space;
  20.      all spaces at the start of lines are striped out, however,
  21.      in case the file was saved with a margin indentation of
  22.      spaces.
  23.  
  24.     Turns computer-style upright quotation marks (") to the
  25.      Ventura codes for opening and closing quotes (<169>, <170>)
  26.      as appropriate. In the process, it looks for an even number
  27.      of quotes and outputs a message if the number is uneven,
  28.      which probably indicates that someone forgot to close
  29.      quotes.
  30.  
  31.     Turns double hyphens to the Ventura code for an em dash
  32.      (<197>).
  33.  
  34.     Doubles all occurrences of < and > symbols, which Ventura
  35.      will otherwise eat, thinking they indicate a character code.
  36.      If they DO indicate a character code, you'll have to remove
  37.      the extra code CLEAN4VP inserts. That is to say, I assume no
  38.      Ventura coding has been done.
  39.  
  40.     Doubles all occurrences of the @ sign if it falls in column
  41.      one, where Ventura would assume it indicated a tag name.
  42.  
  43.     Puts a space between empty parentheses (sometimes used in
  44.      program listings) so they will not print out as ovals.
  45.  
  46.     Strips out all control codes (characters with a value lower
  47.      than a space) except carriage returns, line feeds, and tabs.
  48.  
  49.     If run with the /w switch, resets the high-order bit on all 
  50.      characters. This cleans up WordStar files. It also means that any 
  51.      extended ASCII characters (those with values higher than 127) will be
  52.      changed. If the /w switch is omitted, the high-order bit is not reset.
  53.  
  54. CLEAN4VP's syntax:
  55.  
  56.     CLEAN4VP [/w] filename
  57.  
  58. The processed file is saved under the same name as the source
  59. file but with the extension .C4V, so the source file is not
  60. changed (unless it happens to have a .C4V extension to begin
  61. with). The source file can be of any size.
  62.  
  63. I'm including CLEAN4VP's Macro Assembler source file for those
  64. who might want to modify it. It's not the cleanest program I've
  65. done (it has more flags than the United Nations), but it's well
  66. documented.
  67.  
  68. Dan Zoll
  69. 9923 Ridgeline Dr.
  70. Gaithersburg, MD 20879
  71. (301) 963-2632