home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
editor
/
gal210a4.arc
/
APPH.GAL
< prev
next >
Wrap
Text File
|
1987-08-05
|
8KB
|
282 lines
.a js=y nm=1 pn=1 hy=n lp=12 bo=51 te=12 to=90
.st3,14,1
&dAppendix%H:%%Real-Time%Spelling%Checker .jc .b3
&d[%Appendix%H%] .hc
.t36 H - .zl
&DINTRODUCTION .jr .b
.st3,11,1 .x-5 .b2
This Appendix describes how to use SPELLER, a real-time spelling checker.
Speller is an easy-to-use program that runs with Galahad II. As you type
in your text, Speller beeps whenever a word is misspelled. You will always
know when you misspell a word and can correct it.
Speller works by checking every word you type against the words in its
dictionary. If the word you type matches a word in its dictionary exactly then
no beep sounds. If it does not, Speller beeps. Speller's dictionary does not
contain every word you type. If it beeps on words that you use frequently you
can add these words to your dictionary, which has room for an additional ten
thousand words.
The following pages will explain the use of Speller including:
.i15
.u3 1. .t15 Setting up speller
.u3 2. .t15 Using Speller with Galahad
.u3 3. .t15 Saving new words in a buffer file
.u3 4. .t15 Adding new words to Speller's dictionary .i
.std3,12,1
Setting Up the Disk
.st3,11,1
To use Speller you will need the following files:
.i15
GAL2.COM
ADD.COM
SPELLER.COM
.i
.sto3,11,1
NOTE: Speller only works with Galahad Version 2.07 or greater.
.n5
.std1,14,1
USING SPELLER .jr
.sto3,12,1
Writing New Text
.st3,11,1
Before you write text using Galahad, you must access Speller. To do this
simply type SPELLER at the &dA> prompt.
&dA>SPELLER
The Screen should read:
Speller - Copyright 1987 by Clarkson University
May be freely copied for non-commercial use.
All others should contact Clarkson University.
Programmed by Dean Swan.
Now get into GAL2 edit mode and start typing your text. As you write,
Speller will let you know if you misspell a word. It will make a short,
high-pitched noise, a &ibeep, right after you spell a word incorrectly.
&oExercise:
Type this sentence exactly as written:
.i10
.sto1,11,1
I would like to recieve a good grade in this course.
.st3,11,1
.i
Did you hear Speller &ibeep right after you typed "recieve"? It lets you
know that the word receive is not spelled correctly.
.std3,12,1
Checking Text: <CTRL> <O>
.st3,11,1
Speller can also check existing text.
Just access Speller and load a previously typed text file into GAL2. Use
the arrow keys to place the cursor on word to be checked. Then press the
<CTRL> and <O> keys. The cursor will move to the end of the word. If Speller
&ibeeps then the word is not in the spelling dictionary.
You can check an entire text by placing the cursor on the first word and
holding down <CTRL> <O>. Speller will move through your file beeping whenever
it comes across a suspicious word.
.n3
&oExample:
Type the following sentence with its mistakes:
.i10
.sto1,11,1
Occassionally, the luminious moon appeared through the trees.
.st3,12,2 .i5
.i
Now put the cursor at the beginning of the sentence. Press <CTRL> <O> to
move through the text. Speller will beep when it encounters suspicious words.
.std1,14,1
ADDING WORDS TO SPELLER .jr
.st3,11,1 .x-5
Occasionally Speller will &ibeep even though the word you type is spelled
correctly. That means the word is not in Speller's dictionary. To add the word
you must do the following:
.i15
.u3 1. .t15 Create a buffer file
.u3 2. .t15 Press <Home> <S>
.u3 3. .t15 Save words in buffer file
.u3 4. .t15 At the &dA> enter ADD
.i
.std3,12,1
Creating a Buffer File
.st3,11,1
While working on a text file, you can automatically add new words to
Speller's dictionary. To do this:
.i15
.u3 1. .t15 Invoke Gal2 and begin your text file
.u3 2. .t15 Press <CTRL> <C> for command mode
.u3 3. .t15 At the command prompt enter: NEW
.i
You will see a blank screen. This is your buffer file. Type the letter A
so your buffer file will not be empty. Then return to the text file with the
<CTRL>%<C> and NEXT commands (or use <SHIFT> <BACKSPACE>). You are now using
two files at once. One for text and another for storing spelling words.
.std3,12,1
Adding Words to your buffer file: <ESC> <S>
.st3,11,1
If you type a correctly spelled word and Speller &ibeeps, add the word to
your buffer file. Just press the <ESC> and <S> keys right after the beep. The
word will be added to your buffer file. Be sure that the cursor is still on
the space following the word.
&oExercise:
Use Speller while you type in the following:
.i10
.sto1,11,1
He wanted verification that he was registered for the courses he needed.
.st3,11,1
.i
Speller should have &ibeeped when you typed "verification." By checking
Webster's dictionary you discover that the word is spelled correctly.
Therefore, it must not be in Speller's dictionary.
Use the arrow keys to put the cursor on "verification." Press <CTRL> <O>
to get Speller to beep. Press <ESC> <S> to add verification to the buffer
file.
.sto3,11,1
NOTE: You can also add a word by just typing it in your buffer file and
pressing return.
.std3,12,1
Saving Your Buffer File
.st3,11,1
You must save the buffer file on disk in order to add its contents to
Speller's dictionary. To do this use <CTRL> <C> and NEXT (or <SHIFT>
<BACKSPACE>) to display your buffer file and then save the file assigning it a
file name.
&oExercise:
In your buffer file of correctly spelled words, hit the save command.
&dSAVE[A:NONAME.GAL]:%words
This will save your buffer file under the name WORDS.GAL.
To reload this file at another time with the same or different text, use
the Loadbuffer command. (See note below).
.g
.std3,14,1
ADDING TO SPELLER'S DICTIONARY .jr
.sto1,12,1
.rbb5,73
%%%CAUTION .jc
Once entered into Speller's dictionary a word cannot be removed.
.reb5,73
.st3,11,1
To add a list of new words to Speller's dictionary do the following:
.i15
.u3 1. .t15 Use Galahad to display your file, and a dictionary to check
each word again, making sure that all words are spelled correctly.
.u3 2. .t15 Quit Galahad.
.u3 3. .t15 At the A> prompt type ADD
&dA>ADD
.u3 4. .t15 ADD will ask you for the buffer file containing the words you want
to put in its dictionary. Type in this buffer file name including the
extension.
.i
&oExercise:
Use ADD to add "verification" to your dictionary.
&oExercise:
Use Gal2 to create a new file containing the following words: .i20
.a ll=60
integer boolean Orestes Oresteia Agamemnon concatenate perceptual magnitude
verification inconsistent structural modification idiosyncracies accessibility
cognition skew pervasive semantic latency Machiavelli .i
.a ll=78
Check the spelling of these words before adding them to Speller's dictionary.
.g
.std3,14,1
A WORD TO THE WISE .jr
.sto3,11,1 .x-5
Since it is not possible for you to remove misspelled words from Speller
it is advisable to keep a &imaster%word%file (lets call it SPELLWDS.GAL) of the
words which you have added to Speller. In case you discover that you have a
misspelled word in your Speller you can remove it from your master file and
then recreate a new Speller by simply adding your master word file to a new
(unmodified) copy of Speller.
You can keep a master word file, simply by using the Galahad command
APPEND to append your newly added buffer file of words to the master file, each
time you use ADD.
The first time that you create a buffer of words, save it as you master
word file (SPELLWDS.GAL).
The next time do the following to add to your master word file:
.i15
.u3 1. .t15 Run Galahad
.u3 2. .t15 On the Command line enter: LOAD SPELLWDS
.u3 3. .t15 On the Command line enter: APPEND <new word file>
.u3 4. .t15 On the Command line enter: SAVE SPELLWDS
.i