Spell checking in version 3? Options
imayat12
Posted: Tuesday, September 04, 2007 11:29:14 AM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Guys,

Technically a tinymce plug in could be written to translate pages if you could find a webservice that would do it for free?

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
jHodgkinson
Posted: Tuesday, September 04, 2007 2:40:22 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
Ismail - I was just thinking about getting most of the language file options translated into an acceptable translation but that would be a way cool plugin. I believe both babelfish (alta vista) and google offer free translation services. I do believe I have heard that although the content is translated it's not always the best or most accurate translation though. The spellchecker module probably could be used as a starting point since it includes the logic to create the language submenus. I would think a lot of the current logic could be removed and/or modified to work and the ajax file would just interface with the web service translation method and return back the translation similiar to how the spellchecker does.
cpalm
Posted: Tuesday, September 04, 2007 2:46:44 PM

Rank: Aficionado

Joined: 7/19/2006
Posts: 164
#Ismail
Check out http://orangoo.com/labs/GoogieSpell/ it should be easy to create a tinymce plugin which uses GoogieSpell

CPalm, www.cpalm.dk
jHodgkinson
Posted: Tuesday, September 04, 2007 2:47:43 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
this plugin actually uses Google as well...
jHodgkinson
Posted: Tuesday, September 04, 2007 4:59:45 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
I just made a couple new changes to both the editor_plugin.js (port changes I missed) and tinyspell.aspx (error below) files. I noticed there was a random underlying connection error being thrown:



based on some of the suggestions found at: http://blogs.msdn.com/engelsr/articles/497902.aspx I have made the following changes to the tinyspell.aspx file:

Code:


        HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);           
            req.Method = "POST";
        req.ContentType = "application/PTI26";
        req.ContentLength = xml.Length;

            //new changes to try to remedy underlying connection problem
            req.ProtocolVersion = HttpVersion.Version10;
            req.KeepAlive = false;
            req.Timeout = 5000;



I have not been able to reproduce the error since making the updates (but will continue to test)... I've also zipped up the plugin folder if anyone wants a copy:

http://216.27.49.243/images/snapshots/spellchecker.zip

still looking into a good solution for the translation of all the plugin's lang files but since these are plugin related options, if someone ends up wanting to include a specific language as an option, hopefully they will know what the options should say anyways and can translate themselves...
jHodgkinson
Posted: Tuesday, September 04, 2007 7:31:08 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
through various test scenarious, I did run into a timeout error once so I reset to timeout to 60 seconds instead of 5. Hopefully the full 60 seconds will never be needed but will keep the error from being displayed... I updated the previously mentioned downloadable zip as well...
jHodgkinson
Posted: Tuesday, September 04, 2007 8:26:45 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
just tested in a beta of Safari for windows and it works as well:







note: I did update my tinyMCE script files with the latest updates (Version 2.1.2 - 2007-08-21) - not sure if that makes any difference or not... http://tinymce.moxiecode.com/download.php
jHodgkinson
Posted: Tuesday, September 25, 2007 10:05:47 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
I did end up finding a bug in this. The update language file logic needed to be included in the cased set language command logic vs at top of the function...

Code:


execCommand : function(editor_id, element, command, user_interface, value) {
.
.
.
.

case "mceSpellCheckerSetLang":

   //update appropriate language file
   var langPath = tinyMCE.baseURL + '/plugins/spellchecker/langs/' + value + '.js';   
   TinyMCE_SpellCheckerPlugin._dhtmlLoadScript(langPath);



link to unpacked js src at: http://216.27.49.243/images/snapshots/editor_plugin_src.js
link to packed js at: http://216.27.49.243/images/snapshots/editor_plugin.js
pkoutoul
Posted: Monday, June 16, 2008 5:15:06 PM

Rank: Fanatic

Joined: 8/9/2007
Posts: 284
Location: Kentucky, USA
Just a quick post to ask if there is anything new with this. I plan to download and use it. Is this still the consensus "best choice" for an integrated TinyMCE spell checker in umbraco?

Pete Koutoulas • Fayette County Public Schools • Lexington, Kentucky
jHodgkinson
Posted: Monday, June 16, 2008 9:23:25 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
pkoutoul wrote:
Just a quick post to ask if there is anything new with this. I plan to download and use it. Is this still the consensus "best choice" for an integrated TinyMCE spell checker in umbraco?


Pete - not sure if it is a best choice or not but it does work in 3.05 with no problems (at least to the extent that I've used it)...
pkoutoul
Posted: Tuesday, June 17, 2008 1:09:36 PM

Rank: Fanatic

Joined: 8/9/2007
Posts: 284
Location: Kentucky, USA
Thanks John. I'm gonna give it a try...

Pete Koutoulas • Fayette County Public Schools • Lexington, Kentucky
jHodgkinson
Posted: Tuesday, June 17, 2008 4:38:51 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
Pete - sounds good. just give me a yell if you need any help or run into issues...
pkoutoul
Posted: Tuesday, June 17, 2008 6:13:28 PM

Rank: Fanatic

Joined: 8/9/2007
Posts: 284
Location: Kentucky, USA
John, I keep getting timed out trying to download from http://216.27.49.243/images/snapshots/spellchecker.zip. Been trying all morning.

Any chance you could send it to me via email at pete.koutoulas(at)fayette.kyschools.us? If you can, please change the extension to something harmless sounding as zip files and executables get blocked by our mail server.

Pete Koutoulas • Fayette County Public Schools • Lexington, Kentucky
jHodgkinson
Posted: Tuesday, June 17, 2008 7:12:26 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
jHodgkinson
Posted: Tuesday, June 17, 2008 7:13:54 PM
Rank: Fanatic

Joined: 3/15/2007
Posts: 378
Location: Cary, NC USA
also, in any of the above posts, replace 216.27.49.243 with www.ncbar.org and it should work... if not, let me know... I tried editing the posts but I get a server error in the forums...
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.