/* $Revision Header built automatically *************** (do not edit) ************ ** ** © Copyright by Thule Software ** ** File : HardCore:Text/Programs/CED/CEDRexx/Spell.ced ** Created on : Torsdag, 03.08.95 14:01:26 ** Created by : Nils Peter Sudmann ** Current revision : V1.3 ** ** ** Purpose ** ------- ** ARexx program to spellcheck current CED file. ** Needs ispell and rexxreqtools.library. ** ** Revision V1.3 ** -------------- ** created on Fredag, 25.08.95 00:33:53 by Nils Peter Sudmann. LogMessage : ** - Revision 1.1 fixed an non-existing bug ;) This is getting ** confusing. Removed the useless fix. ** ** Revision V1.2 ** -------------- ** created on Fredag, 25.08.95 00:23:42 by Nils Peter Sudmann. LogMessage : ** - Added a check to see if the current view really was ** saved to a file. ** ** Revision V1.1 ** -------------- ** created on Torsdag, 17.08.95 22:21:47 by Nils Peter Sudmann. LogMessage : ** - Fixed bug when file was stored in a root device. Ie. the ** path ended with a ':' instead of a '/'. ** ** Revision V1.0 ** -------------- ** created on Torsdag, 03.08.95 14:01:26 by Nils Peter Sudmann. LogMessage : ** --- Initial release --- ** *********************************************************************************/ ispellcmd = 'run nil: ispell -r -pHardCore:users/nilss/.ispell >nil: cc) then dcc = 1 else dcc = dcc+5 end end if (res ~= 1) then break end cc = res+dcc-2 select when (res < 2) then nop when (res < i+2-dcc) then do /* 'delete word' Text c.cc*/ LEFT replace word '"'c.cc'"' end otherwise nop end end exit 0 end Options: res2 = rtezrequest('Misspelled word: "'||word||'".'||cr||'What should I do?',"Accept|_Add|_Quit|_Cancel",'Options...') select when (res2 = 1) then address 'IRexxSpell' ACCEPT word when (res2 = 2) then address 'IRexxSpell' ADD word when (res2 = 3) then call Quit when (res2 = 0) then res = 1 end return Quit: call rtezrequest('No more misspellings were found!','OK','Spell...') address command 'delete >nil: '||errfname setclip(pos_clip) setclip(posx_clip) setclip(posy_clip) setclip(fname_clip) return