[GO 3.2.48] Spell Check Aspell/PSpell

Post modules, themes or any other code you want to share with the community.

Moderator: Developers

mrforsythexeter
Posts: 13
Joined: Tue Dec 08, 2009 10:55 am

[GO 3.2.48] Spell Check Aspell/PSpell

Postby mrforsythexeter » Sat Jan 02, 2010 8:21 pm

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.
Attachments
SpellCheck_0.4.rar
(18.27 KiB) Downloaded 554 times
Last edited by mrforsythexeter on Fri Jan 07, 2011 11:27 am, edited 6 times in total.
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mschering » Tue Jan 05, 2010 1:00 pm

Thanks, I'll test it asap!
Best regards,

Merijn Schering
Intermesh
awalsh
Posts: 32
Joined: Sun Sep 06, 2009 11:58 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby awalsh » Tue Jan 05, 2010 10:08 pm

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.
mrforsythexeter
Posts: 13
Joined: Tue Dec 08, 2009 10:55 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mrforsythexeter » Wed Jan 06, 2010 9:08 am

Hi Guys.. I have found a bug.. which im still working on.. so please bare with me.
mrforsythexeter
Posts: 13
Joined: Tue Dec 08, 2009 10:55 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mrforsythexeter » Wed Jan 06, 2010 4:20 pm

Should all be good again, please download the new version and play :D
mrforsythexeter
Posts: 13
Joined: Tue Dec 08, 2009 10:55 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mrforsythexeter » Thu Jan 07, 2010 6:08 pm

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.
ael
Posts: 50
Joined: Mon Sep 14, 2009 11:38 am
Location: France
Contact:

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby ael » Fri Jan 08, 2010 7:58 am

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 ?
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mschering » Fri Jan 22, 2010 2:04 pm

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.
Best regards,



Merijn Schering

Intermesh
awalsh
Posts: 32
Joined: Sun Sep 06, 2009 11:58 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby awalsh » Fri Jan 22, 2010 4:35 pm

Does this mean that it is enabled in Group Office in a future release?
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mschering » Mon Jan 25, 2010 1:03 pm

yes
Best regards,



Merijn Schering

Intermesh
awalsh
Posts: 32
Joined: Sun Sep 06, 2009 11:58 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby awalsh » Fri Jan 29, 2010 5:27 pm

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
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mschering » Sat Jan 30, 2010 9:59 am

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.
Best regards,



Merijn Schering

Intermesh
mrforsythexeter
Posts: 13
Joined: Tue Dec 08, 2009 10:55 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mrforsythexeter » Thu Jan 06, 2011 6:35 pm

Not sure if subscribed members get updates to edits, so just letting you I have submitted an update.
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mschering » Mon Jan 10, 2011 11:09 am

Sorry, where did you submit an update for what?
Best regards,



Merijn Schering

Intermesh
mrforsythexeter
Posts: 13
Joined: Tue Dec 08, 2009 10:55 am

Re: [GO 3.2.48] Spell Check Aspell/PSpell

Postby mrforsythexeter » Mon Jan 10, 2011 11:25 am

They are in my update Stream at the bottom of the first post on this topic. Dated 07/01/2010 and above.

Return to “Contributed development”

Who is online

Users browsing this forum: No registered users and 1 guest

cron