home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / lambda / soundpot / a / expand.lbr / EXPAND10.DZC / EXPAND10.DOC
Encoding:
Text File  |  1993-10-26  |  4.6 KB  |  117 lines

  1. .po0
  2. .op
  3.                                  EXPAND.BAS
  4.                                  Version 1.0
  5.                        by Ronald J. Pero and Alan Solof
  6.                                 March 22, 1989
  7.  
  8. WHAT IS EXPAND?
  9.      EXPAND is a word processing utility that expands abbreviations into full
  10. words or phrases, as assigned by you, saving you time while typing a document.
  11.  
  12. HOW DO I USE EXPAND?
  13.      First type your document, but instead of typing long, repeatedly used
  14. words or phrases, type one, two, or three letter abbreviations (keywords) in
  15. their places.  Save your file and close it.
  16.      Then prepare your list of keywords.  Simply list, in a separate word
  17. processing document, your chosen keywords and their corresponding expansions.
  18. The sequence is:
  19.  
  20. keyword1<CR>
  21. expansion1<CR>
  22. keyword2<CR>
  23. expansion2<CR>
  24. keyword3<CR>
  25. expansion3<CR>
  26.  
  27. and so on.  The Carriage Returns are essential.
  28.      A sample keyword file could look like this:
  29.  
  30. k
  31. Mr. Kerwackowitz
  32. d
  33. Dearborn facility
  34. usa
  35. United States of America
  36. sy
  37. Sincerely Yours,
  38. r
  39. Robert J. Ratchetowitz
  40.  
  41.      Save the keyword file and close it.
  42.      You can, of course, create the keyword file before typing the document.
  43. Better yet, maintain a keyword file(s) to use repeatedly.
  44.  
  45.      Now run EXPAND.  (EXPAND is a Basic program, so enter Basic first.)  The
  46. program prompts you:
  47.      [Each file name can be preceded with a drive name, if you wish.]
  48.           Enter original file name: [this refers to the word-processing
  49. document which contains the abbreviations].
  50.           Enter name for new file: [When EXPAND expands the abbreviations, it
  51. creates a new file; enter at this prompt what you want this new file to be
  52. called].
  53.           Enter KEYWORD file name: [this refers to your list of keywords and
  54. their corresponding expansions].
  55.      Now a message appears: Expanding the abbreviations...  Self-explanatory.
  56.      It is relatively slow; it can take a few minutes on a longer document.
  57. Also, be sure you have enough memory in your configuration for Basic, the
  58. EXPAND program, the keyword file, and two copies of your document.
  59.  
  60. AN EXAMPLE
  61.      Using the above sample keyword file, we could write the following sample
  62. letter.
  63.  
  64. Dear k:
  65.  
  66.      Yes, the d is our largest plant in the usa.
  67.  
  68.                                              sy
  69.  
  70.  
  71.  
  72.                                              r
  73.  
  74.      After expanding this document, it will look like this.
  75.  
  76. Dear Mr. Kerwackowitz:
  77.  
  78.      Yes, the Dearborn facility is our largest plant in the United States of
  79. America.
  80.  
  81.                                         Sincerely Yours,
  82.  
  83.  
  84.  
  85.                                         Robert J. Ratchetowitz
  86.  
  87. ADDITIONAL POINTS
  88.      *The following punctuation marks are retained as originally typed:
  89.           . , ; : ? !
  90.      *When a keyword is the first word in a sentence, EXPAND automatically
  91. capitalizes the first letter of the expansion.  For example, if your keyword,
  92. "t", expands into "tomato pickers", then if "t" is the first word in a
  93. sentence, it will expand into "Tomato pickers".
  94.      *No keywords are built into EXPAND.  Only abbreviations that you specify
  95. will be expanded.
  96.      *There is no set limit on the number of keywords you can create.  There
  97. are, however, practical constraints, mainly computer memory and processing
  98. time.  It is better to not include more keywords than you'll use.
  99.      *With the REM statements, EXPAND10.BAS is 3K.  If you want, delete the
  100. REM statements to bring it down to 2K.
  101.      *We run EXPAND with a RAM disk (added memory).  We don't have experience
  102. running EXPAND with a disk drive.  If you run EXPAND with a disk drive, bear
  103. in mind the following points.  It will be fine to load EXPAND and your keyword
  104. file from the disk, since they are accessed only once during program
  105. execution.  However, the original document and its resulting expanded version
  106. are each accessed many times during program execution.  The original file is
  107. read letter by letter; the new file is written word by word.  Try EXPAND.  If
  108. you find that your disk drive is constantly engaged, this is why.
  109.      *We sincerely hope that someone will turn this program into machine
  110. language, to make it faster, smaller, and independent of Basic.  To this end,
  111. we have included extensive REM statements in the program.  It was written in
  112. the EPSON-enhanced Microsoft BASIC for the EPSON PX-8 GENEVA.
  113.      If you do write a machine language version of EXPAND, please send a copy
  114. to us at the address below.  Also, we have a few ideas to enhance its
  115. performance.
  116.       Ronald J. Pero; MCAE, Lake Shandelee; Livingston Manor, NY, 12758
  117.