Spell checking in Rev apps?

Scott Morrow scott at elementarysoftware.com
Wed Feb 22 00:44:33 EST 2006


Tom:
I'm pleased that you found it useful!

Sivakatirswami:
One way to make sure all the text is set back to the default color  
might be to:

      lock screen -- hide the following selection process
      select text of tSpellField -- your field name here	
      set the foregroundColor of the selectedChunk to empty -- return  
all text to its native color

Of course this assumes that your field doesn't contain any odd pieces  
of text that are *supposed* to be colored differently.

-Scott

On Feb 21, 2006, at 6:35 AM, Thomas McGrath III wrote:

> Scott,
>
> I found it. It was creating the folder and file but not writing to  
> the file. And it was saving the learned words in the global  
> gCustomDictionary in the substack across saves.
>
> I added the writecustomdictionary on the close stack of the  
> spellchecker and then it saved it to the file customDict.txt
>
>
> Very cool. I am learning a lot from this.
>
> Thank you for posting.
>
> Tom
>
>
> On Feb 21, 2006, at 9:25 AM, Thomas McGrath III wrote:
>
>> Scott,
>>
>> Gratuities:
>> Thanks for this, I really learned a lot from it. I am curious  
>> about the "Learn" -- CustomDict.txt -- feature. I found the file  
>> CustomDict.txt created in the DemoSpellChecker Folder and created  
>> a few "fake" words to have the system learn them. Well it seems to  
>> work across openings of the stack.
>>
>> SpellChecker question:
>> My question is 'where' is it saving these custom dictionary words?  
>> I checked the CustomDict.txt file and it appears empty. I checked  
>> for custom properties etc. but to no avail. I did find the  
>> WriteCustomDictionary function but can not find where it might be  
>> called from?
>>
>> Revolution question:
>> Is there a way in rev to find out based on the name of a function  
>> where it is called from in a stack across objects/scripts etc.? I  
>> tried the find and replace method and I only get the function and  
>> not any place it might be called from.
>>
>>
>> Thanks
>>
>> Tom
>>
>>
>> On Feb 20, 2006, at 9:50 PM, Scott Morrow wrote:
>>
>>> Garrett,
>>> This topic has kept my interest for some time.
>>> Jean-Baptiste LE STANG has written an AppleScript extension  <   
>>> http://www.lestang.org/ >  that allows a link to Apple's OSX  
>>> spell checking engine.  It can be used with Revolution to create  
>>> a spell checker.  Obviously it requires OSX (version 10.3 or  
>>> better, actually) and so will not provide the general solution  
>>> that the others (and myself) are looking for.
>>>  I have placed an example solution in the RevOnline User Space  
>>> under username "Scott"  - or from the message box:
>>>
>>>  go URL "http://elementarysoftware.com/rev_demos/ 
>>> spellcheck_demo.rev"
>>>
>>> I continue working towards a more generalized solution... an  
>>> attempt at which I have just recently included in a Beta  
>>> application.  My biggest difficulties have been with speed  
>>> (checking more than 2 pages of text becomes poky) and with  
>>> returning good phonetic suggestions.
>>>
>>> For word banks I am using:
>>> Spell Checking Oriented Word Lists (SCOWL)
>>> by Kevin Atkinson
>>> http://wordlist.sourceforge.net/
>>>
>>> For returning phonetic suggestions I am using a variation of  
>>> Double Metaphone, based on Lawrence Phillips algorithm.
>>>
>>> If I ever come up with something solid I'll be sure and notify  
>>> the list.   :  )
>>> -Scott Morrow
>>>
>>> -----------------------------------------------------------------
>>>
>>> On Feb 20, 2006, at 1:55 PM, Garrett Hylltun wrote:
>>>> Greetings,
>>>>
>>>> Has anyone ever found a way to add spell checking ability into  
>>>> resulting rev apps?
>>>>
>>>> Thanks,
>>>> -Garrett



More information about the use-livecode mailing list