Nick,
It isn't working as the previous spellchecker was, at least for my scripts which I may be doing something wrong.
Here's my SpellCheck.xml plugin. When enabled (type spellcheck), it checks any line that begins with high or low white for spelling errors. If it finds an error, it'll put in the line below that there is an error with the following output:
SPELLCHECK: Silax [add this word] [suggestions]
Clicking add this word should add it to the dictionary, and clicking suggestions opens up the GUI for suggestions - which also has a button to add the word.
When I hit suggestions, then add, then close the window and look at the room again - it still shows the line under the word (Silax, for example). However, when I hit suggestions, it immediately thinks I have a valid word and kicks me out of the GUI for that and just sends me back to the world.
I have to use the script based "add this word" to get the spellchecker to ignore that word.
The commands I'm using inside the script are:
SpellCheck(b)
(checks the line for spelling errors)
world.AddSpellCheckWord (wild(1), "i", "")
To open the GUI, I use this trick
sub suggest_word(a,b,c)
world.PushCommand
world.setcommand c(1)
result = spellcheckcommand(0,0)
if result = 1 then
result = world.GetCommand
result = "/r" & c(1) & "/" & result
world.PushCommand
world.SetCommand result
else
world.PushCommand
end if
end sub
where I pass the word i want as c(1).
Hope that was clear enough...
Matt |