home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / WP / WP060.ZIP / README.WPS next >
Text File  |  1991-05-03  |  12KB  |  274 lines

  1.  
  2.                 WPSTYLE  -  WordPerfect Style Converter
  3.                                 v. 1.02
  4.  
  5.                   Copyright (C) 1991, Michael J. Huft
  6.  
  7.  
  8.  
  9. GENERAL NOTES ON THE PROGRAM
  10. ============================
  11.  
  12.      WPSTYLE is a program that converts all instances of a type style,
  13. such as BOLD, UNDERLINE, or ITALIC, in a WordPerfect 5.0 or 5.1
  14. document file to another style, or to normal text.
  15.  
  16.      This is a task that is not easily accomplished within WordPerfect
  17. itself.  Either you must laboriously go through the text and convert
  18. each instance of the desired change individually, or write a macro that
  19. will work only in simplified cases (for example, if all phrases that are
  20. underlined consist of only a single word, or are not followed
  21. immediately by a punctuation mark, unless consistently so).  And, of
  22. course, a different macro would have to be written for each of the 81
  23. different conversions that WPSTYLE is capable of.
  24.  
  25.      WPSTYLE, on the other hand, can effortlessly make the conversion
  26. quickly (within several seconds for even a fairly large file).  WPSTYLE
  27. is run as a stand-alone program from the DOS command-line and does not
  28. operate inside of WordPerfect.  In this way, it is much like the CONVERT
  29. utility that comes with WordPerfect to convert a file from one Word
  30. Processing format to another.
  31.  
  32.      Even in a situation where you want to convert most, but not all,
  33. instances of one style to another, making the conversion with WPSTYLE
  34. and reconverting by hand those few instances that were not to have been
  35. converted, can be far less work than making all the changes directly
  36. within WordPerfect.
  37.  
  38.      WPSTYLE will not overwrite the original file, but instead will
  39. create a new file with a new name of your choice.  This insures a
  40. measure of safety, as well as allowing you to make alternate copies of a
  41. document, for example, one version destined for a laser printer that can
  42. handle italics, strikeout, and other styles, and another version
  43. destined for a daisy-wheel or dot-matrix printer that requires
  44. underlining for "italicized" phrases.
  45.  
  46.  
  47. INSTALLATION
  48. ============
  49.  
  50.      Unless you are going to use WPSTYLE directly from the floppy
  51. distribution disk, first copy it to your hard disk.  It is most useful
  52. if you place it in a directory that is in the path statement in your
  53. AUTOEXEC.BAT file, so that you can use the program from whatever
  54. directory you happen to be in.
  55.  
  56.  
  57.                             -  Page 2  -
  58.  
  59.      Once you are in the directory where you want the program to reside,
  60. just type
  61.  
  62.            COPY A:WPSTYLE.EXE C:
  63.  
  64. at the DOS prompt, then press the <ENTER> or <RETURN> key; otherwise,
  65. type
  66.  
  67.            COPY A:WPSTYLE.EXE C:\DOS
  68.  
  69. if you want the WPSTYLE to reside in the \DOS subdirectory, for
  70. example, or use whatever subdirectory name is appropriate in your case.
  71. Copy the sample file, SAMPLE.WPS, and the documentation file, README.WPS
  72. in the same way, if you want them on your hard disk.  You may also use
  73. the DOS wildcard '*' to copy all three with a single command:
  74.  
  75.            COPY A:*.*  C:
  76.  
  77.      Note:  Substitute B: for A: in the above if you are copying from
  78. the distribution disk in the B drive.  Substitute D: (or higher letter)
  79. for C: if you intend to place WPSTYLE.EXE on the D (or higher) drive.
  80.  
  81.  
  82. OPERATION OF WPSTYLE
  83. ====================
  84.  
  85.      Start WPSTYLE by typing WPSTYLE on the DOS command line and
  86. pressing the Enter key.  Once the program starts, you will be asked to
  87. provide the name of the original document file to be converted; you may
  88. include a path specification (such as \WP5\MYFILE.TXT) if the file is
  89. not in the current directory.  If the file does not exist on the path
  90. specified, you will receive the message "Cannot Open <Filename>", where
  91. <Filename> is the name you have entered, and you will be prompted to
  92. re-enter a filename.  If the file you have specified is not in
  93. WordPerfect 5.0 or 5.1 format, an appropriate message will be displayed
  94. and you will be returned to the filename entry prompt.
  95.  
  96.      Once a WordPerfect file has been selected, you will be asked to
  97. provide a name for the new, converted file.  You will be warned if it
  98. will overwrite an existing file, so that you can back out, if necessary,
  99. and give another name.  You will also be prompted, with the message
  100. "Cannot Open <Filename>", to re-enter the filename if the name you have
  101. chosen is not a proper DOS filename.
  102.  
  103.      You will then be asked to indicate one of the nine styles to be
  104. converted from.  These are:
  105.  
  106.  
  107.  
  108.                             -  Page 3  -
  109.  
  110.  
  111.             1. Bold
  112.             2. Underline
  113.             3. Double Underline
  114.             4. Italic
  115.             5. Outline
  116.             6. Shadow
  117.             7. Small Caps
  118.             8. Redline
  119.             9. Strikeout
  120.  
  121. and are selected by entering the number of the chosen style.  Then you
  122. will be asked to select, in the same way, the style to be converted to.
  123. Note that one additional choice exists for this step:
  124.  
  125.             0. Normal Text.
  126.  
  127. By selecting this choice, any text that is in the style to be converted
  128. from will simply appear in whatever style the surrounding text has.
  129.  
  130.      After this step, conversion will begin automatically, and the
  131. progress can be seen on the progress line near the bottom of the screen.
  132.  
  133.      At any point during operation of the program prior to the time
  134. conversion begins, you can obtain on-line help by pressing the F1
  135. key.  There are two successive screens of succinct directions for use of
  136. WPSTYLE.  Return to the program at the end of the second screen by
  137. pressing any key.
  138.  
  139.      You can also quit WPSTYLE at any time prior to the conversion by
  140. pressing the ESCape key.
  141.  
  142.      It is important to note that only those styles that have been
  143. entered into the original WordPerfect document file by selecting the
  144. FONT/APPEARANCE function (Ctrl-F8, followed by 2), or by the UNDERLINE
  145. (F8) or BOLD (F6) keys, can be converted.  Attributes chosen with the
  146. BASE FONT function (Ctrl-F8, followed by 4) will not be converted, since
  147. in that case a rather complicated code for a specific font will have
  148. been entered into the text which cannot be recognized by WPSTYLE.
  149.  
  150.      For example, suppose the prevailing text in a particular passage is
  151. in Times Roman 10-point typeface, but a few words within that text are
  152. in italics.  You want to convert all words or phrases that are in
  153. italics in the file to underline.  If the font itself has been changed
  154. for each instance of italicization to Times Roman 10-point Italic, then
  155. those instances will not be affected by WPSTYLE.  However, if the style
  156. has been chosen by pressing Ctrl-F8, followed by 2 (Attribute), then
  157. selecting 4 (Italic) before typing in the italicized text, then entering
  158. Ctrl-F, followed by 3 (Normal), to end the italicization (or
  159. alternately, by marking a block, then changing the block to italics with
  160. Ctrl-F8, 2, 4), WPSTYLE will work as intended.
  161.  
  162.                             -  Page 4  -
  163.  
  164.      If WPSTYLE is run with the command-line parameter, or switch, "/W"
  165. (that is, by entering WPSTYLE /W on the DOS command line), then the
  166. program will bypass the check of the original file to see if it is a
  167. WordPerfect 5.0 or 5.1 file.  This is to insure that WPSTYLE will still
  168. operate, even if some future release of WordPerfect changes the
  169. characteristics by which WPSTYLE recognizes a WordPerfect file.  No
  170. guarantee is made, however, that the results will be satisfactory,
  171. because the embedded code for the various styles may also change, as
  172. they did between releases 4.2 and 5.0.  This is why WPSTYLE will not
  173. work on WordPerfect files prior to release 5.0, even with the "/W"
  174. command-line switch.  Be aware that if run with "/W", WPSTYLE will
  175. accept any file for conversion, even if it has not the remotest relation
  176. to a WordPerfect file, and the resulting file may be corrupted in
  177. unpredictable ways (if it contains byte sequences that are the same as
  178. the embedded WordPerfect codes for the various styles).
  179.  
  180.  
  181. SAMPLE FILE
  182. ===========
  183.  
  184.      A sample file in WordPerfect 5.0 format has been provided on the
  185. distribution diskette.  This file, SAMPLE.WPS contains a list of plant
  186. names (for those who are interested, the plants are mostly tropical
  187. members of the flowering plant family Euphorbiaceae, a research
  188. interest of the author of this program).  Each plant name is underlined
  189. and is followed by the author of the species, not underlined.  It is
  190. provided so that you may practice using WPSTYLE during the
  191. evaluation period without having to make your own file.
  192.  
  193. -------------------
  194.  
  195. WordPerfect is a registered trademark of WordPerfect Corporation.
  196.  
  197.  
  198.                             -  Page 5  -
  199.  
  200. REGISTRATION AND SUPPORT
  201. ========================
  202.  
  203.      WPSTYLE is distributed as shareware; it is neither free nor in the
  204. public domain.  You are free to copy and distribute it as often as you
  205. like.  If, however, you continue to use the program after an initial
  206. evaluation, you must register it by sending $10 to
  207.  
  208.                             Michael J. Huft
  209.                             20 Park Drive
  210.                             Glenview, IL 60025
  211.  
  212. Any comments, suggestions, or questions are welcome.
  213.  
  214.      I would also greatly appreciate your telling me the source from
  215. which you received this program when you register.
  216.  
  217.      Registration will entitle the user to receive the current version
  218. at no additional cost (if the version registered is not the current
  219. version), notice of upgrades and other products as they become
  220. available, and to receive mail or telephone support for the product
  221. registered.  I am available for telephone support at (708) 724-6036
  222. evenings and weekends, or leave a message.
  223.  
  224.      If more than one copy of WPSTYLE is installed for use on different
  225. computers, each copy must be registered, unless there is no possibility
  226. of their being used simultaneously, for example, copies installed on the
  227. home and office computers of an individual who is the only user of both
  228. machines.
  229.  
  230.      The form on the following page may be printed and filled in for
  231. easy registration.
  232.  
  233.  
  234.                       WPSTYLE REGISTRATION FORM
  235.  
  236.  
  237. Name _____________________________________________________________________
  238.  
  239. Company __________________________________________________________________
  240.  
  241. Position _________________________________________________________________
  242.  
  243. Address __________________________________________________________________
  244.  
  245. City ______________________________________ State _______ ZIP ____________
  246.  
  247. Telephone(s) _____________________________________________________________
  248.  
  249. Version (run   WPSTYLE VER   to find out) ____________
  250.  
  251. Number of copies of WPSTYLE registered                             _______
  252.                                                                  X  $10.00
  253.  
  254. Total enclosed                                                     _______
  255.  
  256.  
  257. Please indicate the source of your copy of WPSTYLE:
  258.  
  259. _____ Distributor: __________________________________________________
  260.  
  261. _____ Bulletin Board (BBS): _________________________________________
  262.  
  263. _____ Club or users' organization: __________________________________
  264.  
  265. _____ Friend or acquaintance.  [name not requested]
  266.  
  267.  
  268. Please mail this form to:  Michael J. Huft
  269.                            20 Park Dr.
  270.                            Glenview, IL 60025
  271.  
  272.  
  273. Comments and suggestions are always welcome.
  274.