statistics
People Online: 17
Today's Visitors: 271
Total Visitors: 3,725,811
February 04, 2012, 06:52:05 AM
Shoutbox
   
 
[Guest] [joshmiller83]: Can we get an Astrolabe fix please? Or has WIM stopped being developed?
[DevTeam] [Astaldo]: You can disable wim2wim for now or visit the forum thread where you originally posted the issue
[DevTeam] [Zeke]: Yay for spam!
[DevTeam] [Zeke]: ....
[DevTeam] [Zeke]: I love that I get emailed when someone reports spam on the boards, but I can't do anything about it.
[DevTeam] [Nachonut]: lol i got you
[DevTeam] [Astaldo]: How about "hide email address from public checked" and it's still visible in all my posts...
[DevTeam] [Astaldo]: I'd delete my account on this site, but by the time I realized the problem half the spambots on the planet had it already
[Developer] [Pazza]: Astaldo if you log out and view your profile with a refresh you'll see that your email is hidden.
[Developer] [Pazza]: Your user level on the forums permit you to see emails even though they are marked hidden.
[DevTeam] [Astaldo]: Ah.. thanks for the clarification and apologies for "crying wolf" in that case :
[DevTeam] [Kaidenn]: PAZZA! i miss you.
[DevTeam] [Nachonut]: Lol, it's funny how it takes spam message reports to get me to come back
[DevTeam] [sylvanaar]: Check out the beta tester forum. Need alpha testers and feedback so I can come up with a maintenance plan.
[Developer] [Pazza]: loaded some new spam prevention modules... lets see if this stops the bastards.
[DevTeam] [Maziel]: Thought I'd check in and say Howdy Doody from Australia
[DevTeam] [Maziel]: Yeah the spam from shoes salesmen was becoming insane
[Guest] [Delakando]: What ever happened to the ability to track friend's location by wim? Other then just showing their general zone location.
Zeke pokes his head around the corner.
[DevTeam] [Zeke]: Anybody home?
[Guest] [Theillur]: I would like to know if it is just me.
[Guest] [Theillur]: http://www.wimaddon.com/forums/index.php/topic,1796.0.html
[Guest] [Nev]: I'm here
[Guest] [Nev]: I don't think anyone else is though
[Guest] [tomasio]: great site [url=http://freeonlinemusicvideos.net].[/url] [url=http://freepeopleclothing.org].[/url]
[Guest] [Theillur]: Nev it is not working for Zeke as well.
[DevTeam] [lothaer]: im here
[DevTeam] [lothaer]: ...
lothaer yawns sleepily.
[DevTeam] [lothaer]: sooooooooooooooooo
[Guest] [j3ff]: Hello. It is very quiet. I would love a response to my thread directly below your "Been very quiet" thread!
[DevTeam] [lothaer]: Check out my new post in the Skins forum
[DevTeam] [lothaer]: Posted a new download in the skins forum check it out
[DevTeam] [lothaer]: Zeke, Maziel, Pazza, Nachonut, sylvanaar, Kaidenn, Astaldo where are you?
[DevTeam] [lothaer]: It would be a real shame if WIM was left to die.
[DevTeam] [lothaer]: i think these forums are dead, Sylvanaar dosnt post on them as he only bug fixes when possible. WIMs future isnt very bright
[Guest] [justgiz]: Yea, its rather sad.
[Guest] [silvercola]: I wish it had skype
[DevTeam] [lothaer]: noy possible for a addon to do.
[DevTeam] [lothaer]: ...........
[Guest] [elzershark]: where is the download file?
lothaer beckons everyone over to you.
[DevTeam] [lothaer]: has anyone been able to take WIM to the beta yet?
[DevTeam] [lothaer]: PTR*
[DevTeam] [Maziel]: *sticks head up and looks around*
lothaer cries.
[DevTeam] [lothaer]: who the hell flagged my post as spam?
[Guest] [primalforce]: Hey guys
[DevTeam] [lothaer]: hello Primalforce.
[DevTeam] [lothaer]: PAZZA COME BACK!!!
 
   
   
News: World of Warcraft v4.0.1
 
Pages: [1]
Print
Author Topic: [Rejected] Integrate/Embed Spellchecker  (Read 2014 times)
nrpieper
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« on: May 09, 2009, 01:51:12 PM »

I'm the author of Misspelled, a chat edit interactive spell checker. (http://wow.curse.com/downloads/wow-addons/details/misspelled.aspx) Would be great to get spellchecking functionality in WIM chat windows.  I have no idea how to begin integrating it.

If it's a feature request you want to tackle, you are free to pull apart and use any piece of the code I've got in Misspelled.  A LUA version of a Openoffice/HunSpell language specific dictionary, is fairly easy to create.  Send me a message if you want additional info.

-Nate
Logged
Stewart
Global Moderator
Sr. Member
*****

Karma: +6/-0
Offline Offline

Posts: 294



View Profile
« Reply #1 on: May 10, 2009, 04:23:24 AM »

Ah, its about time someone wrote something like this, I wrote LibSpell almost a year ago just to show that this sort of thing can be done feasibly, even though I lacked the motivation myself to write a proper wrapper addon to use it. (And by the way, you implemented the dictionary so much better than I did, but i gave up on mine pretty much as soon as I got it working)

But yes, great work
Logged
nrpieper
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #2 on: May 10, 2009, 04:44:08 AM »

Interesting to see your implementation.  Glad I didn't find it earlier, or I might not have ever started.  Grin
I'll have to time my implementation in a few places.  I'm sure there are opportunities for some performance improvements.  There's a memory vs CPU trade off I could work with to reduce the cycles it takes to loop over the entire base-word list, looking for any phonetic matches.

Other that that, the built in Lua hash tables, make all the other lookups rather speedy.

I'm ranking suggestions based on the edit distance from the misspelled word.  I'm sure there's some additional work here, that can help push better suggestions nearer to the top of the list.

-Nate
Logged
Jimmerz28
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 5


View Profile
« Reply #3 on: May 25, 2009, 12:44:58 PM »

This would be awesome! I love both of these addons, always wonderful when slick authors work together  Cool
Logged
nrpieper
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #4 on: June 03, 2009, 12:47:31 PM »

I'm currently working to abstract the Misspelled code so it can provide spell-checking functionality for any provided EditBox, not just the ChatEditBox.  Once I have that, it looks relatively simple to hook into WIM, right after CreateMessageWindow fires, to add Misspelled to the corresponding WIM message window's EditBox.

I hope to have a working prototype this weekend.

btw, if you haven't checked out the latest version, there have been many many improvements since the early releases.  UTF8 support was added along with German and Spanish dictionaries, and the suggestion generation routines return fewer better results.

-Nate
Logged
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #5 on: June 03, 2009, 10:02:16 PM »

Hey nate. I want to pass along this particular API. It is available for all of WIM's widgets including it's edit box. see if it helps. No need to hook anything.

Code:
WIM.RegisterWidgetTrigger(widgetName, windowTypes, scriptEvent, function)

Example: (in this case the edit box)

Code:
local function myFun(self, ...)
     message("Enter Pressed!");
end
WIM.RegisterWidgetTrigger("msg_box", "whisper,chat,w2w", "OnEnterPressed", myFun);

I will have to add something for you to add suggestions to the right mouse click context menu. I will also need to add an API to clean a string before it is sent. in your case, color tags for misspelt words or links. However you handle them.

Let me know what you need. I would prefer your addon support WIM instead of having it hacked in there.

Thanks again and great work!

-Pazza
Logged

My hobbies consume way too much time :-).
nrpieper
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #6 on: July 18, 2009, 09:13:57 AM »

Finally got back to working on Misspelled and I've got a working version that integrates spell-checking into WIM chat EditBoxes.

Misspelled download: http://www.wowace.com/addons/misspelled/files/76-r36

I did use RegisterWidgetTrigger to hook into OnTextChanged, OnEntePressed and OnEscapePressed.

I had to directly hook the OnMouseUp right click handler.  If, upon right clicking the EditBox, the cursor is positioned on a misspelled word, I popup the Misspelled suggestions drop down, if not, I call your handler and the appropriate WIM right click drop down menu appears.

I'm hooking the SendChatMessage function and cleaning all chat messages sent, removing any Misspelled highlighting.  In testing, I did crash the client once sending a WIM whisper that was longer than 255 characters and contained a misspelled word somewhere near the split.  I wasn't able to make it happen more than once; but I'm thinking there's something in the way you have WIM splitting up long lines is causing some partial color tags to slip through to SendMessage.
Like you mentioned above, being able to trigger a function to remove any highlighting just before OnEnterPressed fires would be one way to fix this issue.  So for now this bug exists.  I didn't go as far as directly hooking into OnEnterPressed to try and fix it.

I'm open to just about any suggestions you have to improve the integration between our two addons.

Thanks for you help.

-Nate
Logged
nrpieper
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #7 on: July 19, 2009, 05:22:24 AM »

The disconnect issues were due to ChatThrottleLib:SendChatMessage hooking the global SendMessage before I could.  I borrowed some code you suggested for ChatAliasLite (http://www.stewartatkins.org/wim/ChatAliasLite.lua), to hook CTL's SendChatMessage, and cleaned the text of any misspelled word highlighting.  That should fix the disconnect issue.
Logged
Stewart
Global Moderator
Sr. Member
*****

Karma: +6/-0
Offline Offline

Posts: 294



View Profile
« Reply #8 on: July 19, 2009, 08:14:28 AM »

I spoke to Mikk a couple of months ago and pointed out the issue, I guess he still hasn't got around to fixing it
Logged
Pazza
Administrator
Hero Member
*****

Karma: +89/-15
Offline Offline

Posts: 1375


Effin A


View Profile WWW
« Reply #9 on: July 21, 2009, 10:20:08 AM »

If you have the patience to wait, I hope to get back to updating soon. I will add all the API you will need to make this work out for you the best way possible. Hooking works, but can be a pain in the ass. I think I even have API set already so you can use the context menu which already exists on the message box. It's pretty flexible and easy to use.
Logged

My hobbies consume way too much time :-).
nrpieper
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #10 on: July 21, 2009, 11:00:13 AM »

Sure thing.  I'll make the switch whenever your ready.  For now, I'm just glad to have some form of integration working.  Smiley I'm getting rather used to having my Misspelled safety net.

Enjoy the rest of your summer.
Logged
NachoNut
Global Moderator
Sr. Member
*****

Karma: +6/-1
Offline Offline

Posts: 319


View Profile
« Reply #11 on: July 21, 2009, 11:20:23 AM »

If you have the patience to wait, I hope to get back to updating soon. I will add all the API you will need to make this work out for you the best way possible. Hooking works, but can be a pain in the ass. I think I even have API set already so you can use the context menu which already exists on the message box. It's pretty flexible and easy to use.

IMPOSTER!  Pazza doesn't exist anymore!  WHO ARE YOU!!!
Logged
NachoNut
Global Moderator
Sr. Member
*****

Karma: +6/-1
Offline Offline

Posts: 319


View Profile
« Reply #12 on: October 08, 2009, 11:36:10 AM »

If you want to use a spell checker download MisSpelled.  Works great
Logged
Pages: [1]
Print
Jump to:  

You must be logged in to send a message to the shout box.
     
  test stamp