home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / editor / gal210a4.arc / APPH.GAL < prev    next >
Text File  |  1987-08-05  |  8KB  |  282 lines

  1. .a js=y nm=1 pn=1 hy=n lp=12 bo=51 te=12 to=90
  2. .st3,14,1
  3. &dAppendix%H:%%Real-Time%Spelling%Checker  .jc .b3
  4. &d[%Appendix%H%] .hc
  5. .t36 H -  .zl
  6.  
  7.  
  8.  
  9. &DINTRODUCTION .jr .b
  10. .st3,11,1 .x-5 .b2
  11.  
  12.      This Appendix describes how to use SPELLER, a real-time spelling checker.
  13.  
  14.      Speller is an easy-to-use program that runs with Galahad II.  As you type
  15. in your text, Speller beeps whenever a word is misspelled.  You will always
  16. know when you misspell a word and can correct it.
  17.  
  18.      Speller works by checking every word you type against the words in its
  19. dictionary.  If the word you type matches a word in its dictionary exactly then
  20. no beep sounds.  If it does not, Speller beeps.  Speller's dictionary does not
  21. contain every word you type.  If it beeps on words that you use frequently you
  22. can add these words to your dictionary, which has room for an additional ten
  23. thousand words.
  24.  
  25.  
  26.      The following pages will explain the use of Speller including:
  27. .i15
  28. .u3 1. .t15 Setting up speller
  29. .u3 2. .t15 Using Speller with Galahad
  30. .u3 3. .t15 Saving new words in a buffer file
  31. .u3 4. .t15 Adding new words to Speller's dictionary .i
  32.  
  33.  
  34.  
  35. .std3,12,1
  36. Setting Up the Disk
  37. .st3,11,1
  38.      To use Speller you will need the following files:
  39.  
  40. .i15
  41. GAL2.COM
  42. ADD.COM
  43. SPELLER.COM
  44. .i
  45.  
  46. .sto3,11,1
  47. NOTE: Speller only works with Galahad Version 2.07 or greater.
  48.  
  49.  
  50. .n5
  51. .std1,14,1
  52. USING SPELLER .jr
  53. .sto3,12,1
  54.  
  55. Writing New Text
  56. .st3,11,1
  57.  
  58.      Before you write text using Galahad, you must access Speller.  To do this
  59. simply type SPELLER at the &dA> prompt.
  60.  
  61.                &dA>SPELLER
  62.  
  63.  
  64. The Screen should read:
  65.  
  66.                 Speller - Copyright 1987 by Clarkson University
  67.                 May be freely copied for non-commercial use.
  68.                 All others should contact Clarkson University.
  69.                 Programmed by Dean Swan.
  70.  
  71.  
  72.      Now get into GAL2 edit mode and start typing your text.  As you write,
  73. Speller will let you know if you misspell a word.  It will make a short,
  74. high-pitched noise, a &ibeep, right after you spell a word incorrectly.
  75.  
  76.  
  77. &oExercise:
  78.  
  79. Type this sentence exactly as written:
  80. .i10
  81. .sto1,11,1
  82.     I would like to recieve a good grade in this course.
  83.  .st3,11,1
  84. .i
  85.      Did you hear Speller &ibeep right after you typed "recieve"?  It lets you
  86. know that the word receive is not spelled correctly.
  87.  
  88.  
  89. .std3,12,1
  90. Checking Text: <CTRL> <O>
  91.  
  92. .st3,11,1
  93.      Speller can also check existing text.
  94.  
  95.      Just access Speller and load a previously typed text file into GAL2.  Use
  96. the arrow keys to place the cursor on word to be checked.  Then press the
  97. <CTRL> and <O> keys.  The cursor will move to the end of the word.  If Speller
  98. &ibeeps then the word is not in the spelling dictionary.
  99.  
  100.      You can check an entire text by placing the cursor on the first word and
  101. holding down <CTRL> <O>.  Speller will move through your file beeping whenever
  102. it comes across a suspicious word.
  103.  
  104. .n3
  105. &oExample:
  106.  
  107.      Type the following sentence with its mistakes:
  108. .i10
  109. .sto1,11,1
  110.     Occassionally, the luminious moon appeared through the trees.
  111. .st3,12,2 .i5
  112. .i
  113.      Now put the cursor at the beginning of the sentence.  Press <CTRL> <O> to
  114. move through the text.  Speller will beep when it encounters suspicious words.
  115.  
  116.  
  117.  
  118.  
  119. .std1,14,1
  120. ADDING WORDS TO SPELLER .jr
  121. .st3,11,1 .x-5
  122.  
  123.      Occasionally Speller will &ibeep even though the word you type is spelled
  124. correctly.  That means the word is not in Speller's dictionary.  To add the word
  125. you must do the following:
  126. .i15
  127. .u3 1. .t15 Create a buffer file
  128. .u3 2. .t15 Press <Home> <S>
  129. .u3 3. .t15 Save words in buffer file
  130. .u3 4. .t15 At the &dA> enter ADD
  131. .i
  132.  
  133.  
  134. .std3,12,1
  135. Creating a Buffer File
  136. .st3,11,1
  137.      While working on a text file, you can automatically add new words to
  138. Speller's dictionary.  To do this:
  139.  
  140. .i15
  141. .u3 1. .t15 Invoke Gal2 and begin your text file
  142. .u3 2. .t15 Press <CTRL> <C> for command mode
  143. .u3 3. .t15 At the command prompt enter:  NEW
  144. .i
  145.  
  146.      You will see a blank screen.  This is your buffer file.  Type the letter A
  147. so your buffer file will not be empty.  Then return to the text file with the
  148. <CTRL>%<C> and NEXT commands (or use <SHIFT> <BACKSPACE>).  You are now using
  149. two files at once.  One for text and another for storing spelling words.
  150.  
  151.  
  152.  
  153. .std3,12,1
  154. Adding Words to your buffer file: <ESC> <S>
  155. .st3,11,1
  156.      If you type a correctly spelled word and Speller &ibeeps, add the word to
  157. your buffer file.  Just press the <ESC> and <S> keys right after the beep.  The
  158. word will be added to your buffer file.  Be sure that the cursor is still on
  159. the space following the word.
  160.  
  161.  
  162. &oExercise:
  163.  
  164.      Use Speller while you type in the following:
  165. .i10
  166. .sto1,11,1
  167. He wanted verification that he was registered for the courses he needed.
  168. .st3,11,1
  169. .i
  170.      Speller should have &ibeeped when you typed "verification."  By checking
  171. Webster's dictionary you discover that the word is spelled correctly.
  172. Therefore, it must not be in Speller's dictionary.
  173.  
  174.      Use the arrow keys to put the cursor on "verification."  Press <CTRL> <O>
  175. to get Speller to beep.  Press <ESC> <S> to add verification to the buffer
  176. file.
  177.  
  178. .sto3,11,1
  179. NOTE: You can also add a word by just typing it in your buffer file and
  180. pressing return.
  181.  
  182.  
  183. .std3,12,1
  184. Saving Your Buffer File
  185. .st3,11,1
  186.  
  187.      You must save the buffer file on disk in order to add its contents to
  188. Speller's dictionary.  To do this use <CTRL> <C> and NEXT (or <SHIFT>
  189. <BACKSPACE>) to display your buffer file and then save the file assigning it a
  190. file name.
  191.  
  192.  
  193. &oExercise:
  194.  
  195.      In your buffer file of correctly spelled words, hit the save command.
  196.  
  197.                  &dSAVE[A:NONAME.GAL]:%words
  198.  
  199.  
  200. This will save your buffer file under the name WORDS.GAL.
  201.  
  202.  
  203.      To reload this file at another time with the same or different text, use
  204. the Loadbuffer command. (See note below).
  205.  
  206. .g
  207. .std3,14,1
  208. ADDING TO SPELLER'S DICTIONARY .jr
  209.  
  210. .sto1,12,1
  211. .rbb5,73
  212. %%%CAUTION .jc
  213.       Once entered into Speller's dictionary a word cannot be removed.
  214. .reb5,73
  215.  
  216. .st3,11,1
  217.  
  218.      To add a list of new words to Speller's dictionary do the following:
  219. .i15
  220. .u3 1. .t15 Use Galahad to display your file, and a dictionary to check
  221. each word again, making sure that all words are spelled correctly.
  222.  
  223. .u3 2. .t15 Quit Galahad.
  224.  
  225. .u3 3. .t15 At the A> prompt type ADD
  226.  
  227.              &dA>ADD
  228.  
  229. .u3 4. .t15 ADD will ask you for the buffer file containing the words you want
  230. to put in its dictionary.  Type in this buffer file name including the
  231. extension.
  232. .i
  233.  
  234.  
  235. &oExercise:
  236.  
  237. Use ADD to add "verification" to your dictionary.
  238.  
  239.  
  240.  
  241. &oExercise:
  242.  
  243. Use Gal2 to create a new file containing the following words: .i20
  244. .a ll=60
  245. integer boolean Orestes Oresteia Agamemnon concatenate perceptual magnitude
  246. verification inconsistent structural modification idiosyncracies accessibility
  247. cognition skew pervasive semantic latency Machiavelli .i
  248. .a ll=78
  249. Check the spelling of these words before adding them to Speller's dictionary.
  250.  
  251. .g
  252. .std3,14,1
  253. A WORD TO THE WISE .jr
  254. .sto3,11,1 .x-5
  255.  
  256.      Since it is not possible for you to remove misspelled words from Speller
  257. it is advisable to keep a &imaster%word%file (lets call it SPELLWDS.GAL) of the
  258. words which you have added to Speller.  In case you discover that you have a
  259. misspelled word in your Speller you can remove it from your master file and
  260. then recreate a new Speller by simply adding your master word file to a new
  261. (unmodified) copy of Speller.
  262.  
  263.      You can keep a master word file, simply by using the Galahad command
  264. APPEND to append your newly added buffer file of words to the master file, each
  265. time you use ADD.
  266.  
  267.  
  268.      The first time that you create a buffer of words, save it as you master
  269. word file (SPELLWDS.GAL).
  270.  
  271.  
  272.      The next time do the following to add to your master word file:
  273. .i15
  274. .u3 1. .t15 Run Galahad
  275.  
  276. .u3 2. .t15 On the Command line enter: LOAD SPELLWDS
  277.  
  278. .u3 3. .t15 On the Command line enter: APPEND <new word file>
  279.  
  280. .u3 4. .t15 On the Command line enter: SAVE SPELLWDS
  281. .i
  282.