(Please please please do not let this feature be in MUSHclient already... I swear I triplechecked the help again!)
We can interact with the spellcheck engine in a number of ways. However, it is thus far impossible to programmatically request the list of possible corrections that you can see when you press Ctrl+J when there's some misspellings in the title bar.
Basically, I am looking for a:
that acts like:
Basically I need it for a right-click popup I am making in my mini-window, which will offer to add words to the dictionary and to immediately fix a spelling error. (That said... suppose one does add stuff to the user dict, where can one find what is currently in it? Or get it out again, for that matter? My users are bound to ask...)
Edit:
After a bit of struggling I figured out user stuff is in the spell.sqlite database as well. Aren't SQLite databases supposed to be openable from SQLite explorer and such tools at the same time as MUSHclient has them opened? I couldn't properly open them until I shut MUSHclient down.. which is annoying since it seems the only way to remove stuff from there at present. (Haven't tried internal MUSH SQLite bindings, but I honestly don't want to mess with SQL just to view what stuff I've put into the userdict... :/
We can interact with the spellcheck engine in a number of ways. However, it is thus far impossible to programmatically request the list of possible corrections that you can see when you press Ctrl+J when there's some misspellings in the title bar.
Basically, I am looking for a:
GetSpellCheckCorrections(word)that acts like:
tprint(GetSpellCheckCorrections("indstry"))
{ 1="industry", 2="industry's", 3="windsurf" } -- Note: most likely corrections at beginning!Basically I need it for a right-click popup I am making in my mini-window, which will offer to add words to the dictionary and to immediately fix a spelling error. (That said... suppose one does add stuff to the user dict, where can one find what is currently in it? Or get it out again, for that matter? My users are bound to ask...)
Edit:
After a bit of struggling I figured out user stuff is in the spell.sqlite database as well. Aren't SQLite databases supposed to be openable from SQLite explorer and such tools at the same time as MUSHclient has them opened? I couldn't properly open them until I shut MUSHclient down.. which is annoying since it seems the only way to remove stuff from there at present. (Haven't tried internal MUSH SQLite bindings, but I honestly don't want to mess with SQL just to view what stuff I've put into the userdict... :/