Spell checking in Rev apps?

Jonathan Lynch jonathandlynch at gmail.com
Wed Feb 22 08:44:09 EST 2006


1) I added lots of other bells and whistles, but they are specific to our
situation.

things like this:

if char 1 to 3 to tWord = "<p>" then delete char 1 to 3 of tWord
if char -1 of tWord is in "!.,';:%" then delete char -1 of tWord
if char -1 of tWord = quote then delete char -1 of tWord

Actually it is a big long list of corrections to the word before checking,
to look for html coding or punctuation.


2) I found my word-list online, just copied and pasted it into the custom
property. I don't remember where I found it, but if you search for terms
like "spell checker dictionary" you should be able to find one. My list
contains 174,000 words!


3) Actually, in our situation, we don't use an styled text in the field, so
when a spell check is performed, it cleans up the field first:

put field "myField" into tFieldText
put tFieldText into field "myField"

If you are using styled text, then you could do this before your spellcheck
is performed:

set the bgcolor of char 1 to -1 of field "myField" to empty


and that would eliminate and previous bgcolor formatting.


Good luck,

Jonathan



More information about the use-livecode mailing list