home *** CD-ROM | disk | FTP | other *** search
- An occasional problem in using Ventura is that when you load a text file
- and then tag certain paragraphs and/or specify certain codes (e. g., change
- typewriter quotation marks to printer quotation marks with ^ Shift [ and
- ^ Shift ]), the original file is rewritten to show these tags and codes.
- Sometimes you want to use that file for another purpose, and therefore
- eliminate or translate the material Ventura has added.
-
- FIXVP is a program which will rewrite files which contain Ventura tags and
- codes to a new file in which is the following:
- (1) All tag statements (@tag = ) at the beginnings of lines are deleted.
- (2) Ventura codes, i. e., material between angle brackets such as <169>, are
- rewritten:
-
- The program reads in the codes and their desired translations from a file
- called CODEVALS, which must be available in the default path. If it finds
- an equivalent code, it substitutes the translation in the output file.
-
- CODEVALS is a simple ASCII file, and consists of pairs of strings for
- the Ventura code and their translations. As you will see by typing out
- the sample file, I have only provided
-
- 169
- "
- 170
- "
- 197
- --
-
- So if you have <169> or <170> (the printer quotation marks) in your
- Ventura-ed file, a typewriter quote mark will be added to the output file,
- and if you have a <197> (an Em dash), two hyphens will be added.
-
- CODEVALS can be edited by any word processor or EDLIN. Be sure to have an
- even number of entries so that there will be complete pairs, and be careful
- not to add a carriage return alone at the end. If the program finds an
- incomplete pair in CODEVALS, the user will be informed, but the last
- unmatched entry will be ignored.
-
- For example, to change line breaks to spaces, add the following to
- CODEVALS:
-
- R
- [space]
-
- where [space] is just a space.
-
- Consult the Ventura documentation, particularly pp. 3-6 and E-5, for
- other possible changes.
-
- There is a maximum of 50 pairs in the CODEVALS file.
-
- If the word processor with which you regularly work has codes corresponding
- to Ventura codes, these, of course, should be inserted as the second of
- the pairs.
-
- Codes in which the first character is a $ (footnotes, hidden text, anchors)
- are written out on a separate line, with a preceding and following blank
- line. The same is the case with codes the first character of which is a
- F (typeface), a P (point size), or a J (base line jump). Of course all of
- these with have to be edited in outfile by your word processor.
-
- The user may also specify on the command line an "omit" string. Ventura
- codes the initial letter of which occurs in this string are omitted entirely
- in the outfile. E. g., calling the program with
-
- fixvp infile outfile D
-
- would cause all codes beginning with D (resume normal) to be omitted.
-
- If a given code actually occurs in your CODEVALS, the substitution will be
- made. Other substitutions (or omissions) are covered in the previous
- paragraphs. If none of these apply, FIXVP will print a tilde (~)
- to the output file, and at the end of the program will tell you
- that this is the case. These, too, will have to be edited in your
- word processor.
-
- Usage: fixvp infile outfile [omits], where "infile" is the Ventura file to be
- rewritten, and "outfile" is the edited version. Optional [omits] consists
- of characters which will cause a Ventura code to be omitted if its initial
- letter matches one of those in [omits].
- Note that infile is not changed.
-
- James F. Ross
- CompuServe 70235,143
-