home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
CONTRIB.ZIP
/
ISPELL.MIN
< prev
next >
Wrap
Text File
|
1990-03-09
|
3KB
|
146 lines
Attempt to guess the correct spelling of a word using speller.com. A little
slow.
Name:F:spell-word
Spell check the word to the left of point.
[*]#(g?,##(sc,,2),0,(
#(ds,temp,##(rm,-))
#(mp,temp,,(,),(;),.,!,##(bc,41,d,a))
#(==,##(temp),,(
#(pm,2)
#(sp,-)
#(ds,temp,##(rm,{))
#(mp,temp,,0,1,2,3,4,5,6,7,8,9)
#(sm,1,{)
#(==,##(temp),,,(
#(Fspell-word,##(temp))
))
#(sp,0)
#(pm)
))
),(
#(Ferror,Speller not installed)
))[*]
Name:Fspell-word
[*]#(==,#(sc,arg1,0),-3,(
#(##(F-spell-action),arg1)
))
[*]
Name:F-spell-action
What should be done when a word is spelled incorrectly. When set to "bl",
the only action is to ring the bell. When set to Uispell-word, the user
will have a chance to correct their spelling.
[*]bl[*]
rash,cash,
#(is,#(ds,word,crash)#(Uispell-word-delete))#(Fcrlf)
cash,dash,hash,lash,mash,rash,sash,wash,
#(is,#(Uispell-word-insert-do,,ash,97))#(Fcrlf)
cash,dash,hash,lash,mash,rash,sash,wash,
#(is,#(ds,word,ash)#(Uispell-word-insert))#(Fcrlf)
gas,has,was,ads,ass,
#(is,#(ds,word,as)#(Uispell-word-insert))#(Fcrlf)
bat,cat,fat,hat,mat,pat,rat,sat,act,aft,apt,art,
#(is,#(ds,word,at)#(Uispell-word-insert))#(Fcrlf)
spat,peat,part,past,
#(is,#(ds,word,pat)#(Uispell-word-insert))#(Fcrlf)
apt,pat,
#(is,#(ds,word,pat)#(Uispell-word-twiddle))#(Fcrlf)
apart,
#(is,#(ds,word,apatr)#(Uispell-word-twiddle))#(Fcrlf)
#(Uispell-word,seporate)
Name:Uispell-word
Tell the user that the word given in arg1 is spelled incorrectly, and try
to deduce the correct spelling.
[*]#(ds,word,arg1)
#(ds,value)
#(Fcompleting-readline,Correct spelling of arg1 is: ,(
#(is,##(value))
),(
#(Uispell-word-delete)
#(Uispell-word-insert)
#(Uispell-word-twiddle)
),-)
[*]
Name:Uispell-word-delete
Check the spelling of #(word) by deleting single characters beginning at the
arg1th character, counting from zero. Return all correctly spelled words.
[*]#(g?,##(nc,##(word)),arg1,(
#(Uispell-word-candidate,
##(gn,word,arg1)
#(..,##(go,word))
##(gn,word,10000)
#(rs,word)
)
#(SELF,##(++,arg1,1))
))[*]
Name:Uispell-word-twiddle
Check the spelling of #(word) by twiddling two characters starting at the
arg1th character, counting from zero. Return all correctly spelled words.
[*]#(g?,##(nc,##(word)),arg1,(
#(Uispell-word-candidate,
##(gn,word,arg1)
#(ds,temp,##(go,word))
##(go,word)
##(temp)
##(gn,word,10000)
#(rs,word)
)
#(SELF,##(++,arg1,1))
))[*]
Name:Uispell-word-insert
Check the spelling of #(word) by inserting and replacing single characters
beginning at the arg1th character, counting from zero. Return all correctly
spelled words.
[*]#(g?,##(nc,##(word)),arg1,(
#(SELF-do,##(gn,word,arg1),##(gn,word,10000),97)
#(rs,word)
#(SELF-do,##(gn,word,arg1),
#(..,##(go,word))##(gn,word,10000),97)
#(rs,word)
#(SELF,##(++,arg1,1))
))[*]
Name:Uispell-word-insert-do
arg1 is the first part of the word.
arg2 is the second part of the word.
arg3 is the letter we're currently trying.
[*]#(g?,arg3,122,,(
#(Uispell-word-candidate,arg1##(bc,arg3,d,a)arg2)
#(SELF,arg1,arg2,##(++,arg3,1))
))[*]
Name:Uispell-word-candidate
[*]#(an,arg1)
#(==,##(sc,arg1),-3,,(
#(ds,temp,arg1)
#(==,##(value),##(gn,temp,##(nc,##(value))),(
arg1(,)
))
))[*]