Page 1 of 2

[GO 3.2.48] Spell Check Aspell/PSpell

Posted: Sat Jan 02, 2010 8:21 pm
by mrforsythexeter
Hi Guys,
I finally completed a spell checker for group office email composer. It uses Aspell and pspell , plugs in as an extension for ExtJs . I'm sorry if I didn't completely follow the development guide in the wiki .

I cannot guarantee this will work 100% correctly as its only just been deployed to our client. Also its has been written for English but uses the Lang options, and passes the current Lang to the php script (so it should work for other Languages NOT TESTED).

This has been tested in FireFox 3.5.6, IE 7/8, Google Chrome 3.0.195.38

I would be grateful of constructive feed back, and please I'm prove and re-post if you can.

Use at your own risk, i will not be held repsonsible for breaking your install of Group office (back up first :wink: )

There are 8 files and here is where they go...

Code: Select all

/javascript/plugins/HtmlEditorSpellCheck.js
/javascript/plugins/HtmlEditorSpellCheck.php
/javascript/plugins/red.gif
/javascript/scripts.txt
/modules/email/EmailComposer.js
/modules/email/themes/ExtJS/style.css
/language/common/en.js
/themes/ExtJS/images/16x16/spellcheck.png
[***UPDATE***]
***Now this is in the SVN trunk I wont be submitting more files, just patches in this update stream, I don't really want to start messing with the SVN
07/01/2011 11:24 IE7 Bunched words fix in spell check window
original line 133 HtmlEditorSpellCheck.php

Code: Select all

return '<span class="spelling" ieAfterObject="'.htmlentities($endDelem).'" ieBeforeObject="'.htmlentities($startDelem).'">'.$word.'<ul>'.wraparray('<li>','</li>',$sugestions).'</ul></span>';
With

Code: Select all

return '<span class="spelling" style="display:inline-block; margin-right: 4px;" ieAfterObject="'.htmlentities($endDelem).'" ieBeforeObject="'.htmlentities($startDelem).'">'.$word.'<ul>'.wraparray('<li>','</li>',$sugestions).'</ul></span>';
06/01/2011 18:30 Bunched Word Fix
IE white space problem bunching words when not corrected using the spell checker
Oringinal Lines 129 & 130 in HtmlEditorSpellCheck.js

Code: Select all

html = html.replace(Pattern,'$3');
subject = subject.replace(Pattern,'$3');
New Lines 129 & 130 in HtmlEditorSpellCheck.js

Code: Select all

html = html.replace(Pattern,' $3 ').replace('/\s+/mig','\s');
subject = subject.replace(Pattern,' $3 ').replace('/\s+/mig','\s');
07/01/2010 18:05 New File 0.4 uploaded
Fixed bug with IE's dom not creating whitespace elements
Noticed that 2 mispelt words the same next to each other where not being picked up, fixed.
06/01/2010 16:18 New File 0.3 uploaded
Removed TinyMCEs decode function, it wasn't needed
Improved word replacement regular expression
Improved Special Chars Splitters
04/1/2010 18:47
Bug Detected in TinyMCE's Decode function, takes way to long.. working on fix.
Update to regular expression for html Special Chars fixed, not uploaded yet. Please bare with me.
02/1/2010 22:36 New File 0.2 uploaded, improved the regular expressions for web addresses a little.
02/1/2010 22:00 New File 0.1 uploaded, fixed drafts save asking to do a spell check and added missing scripts.txt

Enjoy.. and don't forget to minify the code.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Tue Jan 05, 2010 1:00 pm
by mschering
Thanks, I'll test it asap!

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Tue Jan 05, 2010 10:08 pm
by awalsh
It would be really sweet if this could make it into the main package. My users have been complaining to me endlessly about not having a spellcheck facility even though I made them use the firefox plugin.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Wed Jan 06, 2010 9:08 am
by mrforsythexeter
Hi Guys.. I have found a bug.. which im still working on.. so please bare with me.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Wed Jan 06, 2010 4:20 pm
by mrforsythexeter
Should all be good again, please download the new version and play :D

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Thu Jan 07, 2010 6:08 pm
by mrforsythexeter
Sorry to keep adding quick fixes and uploading.. If you already have it installed.. all you should need to do.. is replace the 2 files in javascript/plugins.. then minify.. clear the cache and enjoy.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Fri Jan 08, 2010 7:58 am
by ael
Hello,

I ran into a problem while trying to integrate your addon with GO 3.3.9. The "Compose" button trigger the javascript error :
GO.plugins.HtmlEditorSpellCheck is not a constructor
Any ideas what I might have done wrong ?

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Fri Jan 22, 2010 2:04 pm
by mschering
I've added the code to the trunk in SVN. I modified it slightly. I made the button a menu with all the languages GO supports. Because I work in a dutch GO but I send a lot of English e-mails.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Fri Jan 22, 2010 4:35 pm
by awalsh
Does this mean that it is enabled in Group Office in a future release?

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Mon Jan 25, 2010 1:03 pm
by mschering
yes

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Fri Jan 29, 2010 5:27 pm
by awalsh
Can you tell me when you expect this feature to be released? I see that it is in SVN but not in 3.3.15. This is a much anticipated feature for my users and I would be grateful if you could provide me with an estimate of when we can see this feature in a release.

Thanks

Andrew Walsh

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Sat Jan 30, 2010 9:59 am
by mschering
No new features go into 3.3. Only bugs are fixed for the 3.3.x versions.

Version 3.4 will have this new version among with a lot of other new features. I think it will take about a month to release 3.4.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Thu Jan 06, 2011 6:35 pm
by mrforsythexeter
Not sure if subscribed members get updates to edits, so just letting you I have submitted an update.

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Mon Jan 10, 2011 11:09 am
by mschering
Sorry, where did you submit an update for what?

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Posted: Mon Jan 10, 2011 11:25 am
by mrforsythexeter
They are in my update Stream at the bottom of the first post on this topic. Dated 07/01/2010 and above.