|UTILITY Spellchecker for LiveCode|
- A self-contained, "single-pass" spellcheck utility including a 130,000 word Main dictionary, customisable User dictionary, import/export list, multiple suffix options, "No error" reponse preferences.
- spellCheck.mc is based on straight Xtalk functionality. Speed will depend on your processor.
- The "custom word list" folder is purely optional and included only so you can use the import /export popup more easily.
- spellCheck.mc is designed for use as a shared utility in order to make spell checking available in all your stacks.
|To implement the spellCheck stack|
First of all, your own stack needs to be able to find the spellCheck stack. Put spellCheck.rev in the same directory as your LiveCode application program. Then...
send "spellCheck <TextToCheck>" to stack "spellCheck"Example 1:
on closeFieldExample 2:
on checkSpellingMethod 2
Put this in your openStack handler:
"start using stack spellCheck"Example:
on closeFieldThe rest is automatic. Misspellings are reported in a dialog list with "Cancel", "Learn" and "Edit" options. You can choose which words you want it to "learn" by using non-contiguous line selection.
Note: There is a brief delay the first time it is called while the dictionaries are initialised.
To open the Custom Dictionary
If you do modify the program for your own use, please advise me so I can maintain and support the utility appropriately.