Spell Checker

Lynch, Jonathan bnz2 at cdc.gov
Mon Aug 22 09:30:05 EDT 2005


Hi Derek, 

Just a suggestion for your spellchecker - because I have one I created
for work and I made this change and now it moves much much faster.

In one of the recent informal coding challenges, one of the rev users
(I'm sorry, I cannot remember who it was) came up with a cool way of
doing mass comparisons.

Basically, you can load the entire word list into an array, in which
each element of the array is named for the word, and the content of each
element is the word "true"

Something like this:

Repeat for each word tWord in tWordList
  Put true into tWordArray[tWord]
End repeat

Then when you go to do the comparison for a given word, you do this

If not tWordArray[tWordToCheck] then
  -- hilite the word, or whatever
End if


This was much faster than checking to see if the word was contained in a
list, and is nice because it is not particularly slowed down by having a
very large word list. You might already be using this method, so my
apologies if I am pointing out the obvious to you.

Cheers,

J


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Derek Bump
Sent: Thursday, August 18, 2005 8:46 PM
To: Sivakatirswami; How to use Revolution
Subject: Re: Spell Checker

Sivakatirswami wrote:
> Derek... Please ignore my post to the list... I just now see you
bailed 
> on that project (or were forced to...)
> 
> But I never did get from you what you had done so far, per your memo:
> 
> Sivakatirswami

Sivaktirswami,

Let me first apologize for the time it has taken me to get back to you. 
  My main computer's hard drive is corrupted and I spend the better part

of 2 days attempting to get as many files off of it as possible (Mostly 
my iTunes Library).

I do have a back up that is recent enough to include the Spell Checker, 
but I cannot give it out at this point.  I have not forgotten about you,

as well as the other Revolution Developers, and I am working to get the 
Spell Checker finished.  It would be a valuable tool for Revolution that

really should have been included a long time ago in the development
package.


Derek Bump
Dreamscape Software
_______________________________________________
Compress Images Easily with JPEGCompress
http://www.dreamscapesoftware.com/

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list