phil wrote:
> The Google spell check guy has released his non-Google spell check option, 
> Nox Spell Server.  It's a server that runs Python and talks, via a local 
> port, to Aspell - his comments:
> 
> Nox Spell Server is a little Python Aspell server that is fully compatible 
> with GoogieSpell. If you are concerned over privacy or reliability of 
> Google's spell service, then look no more, because you found your solution 
> Aspell also supports far more languages than Google spell service.
> 
> http://orangoo.com/labs/?page_id=72
> 
> So this is very cool, and exactly what I was looking for, however it does 
> mean that people that want to use it with Roundcube need to run this as a 
> server/service for Roundcube to connect to.  Can we include this in 
> Roundcube, but have it in the config where it uses Google by default, and Nox 
> if you call it out within the config?  This way RC will work 'out of the box' 
> but also allow you to use your local spell server, once it's config'd.  I'm 
> on vacation, but I'll start looking at this later in the week - would like to 
> start testing this right away, if it weren't for this nice beach outside!

I managed to get this up and running and working with Roundcube rather
easily. I did have to make a couple slight changes in the code to make it
configurable (and default to using Google).

Apply the attached patch to program/steps/mail/spell.inc and then add these
config variables in config/main.inc.php:

$rcmail_config['googiespell_server'] = "127.0.0.1";
$rcmail_config['googiespell_port'] = "14003";
$rcmail_config['googiespell_path'] = "/?lang=";

Start your nox server, and away it goes...

Note: I had to edit nox's run_server.py and tell it not to use Google there,
too.

Jim



Index: program/steps/mail/spell.inc
===================================================================
--- program/steps/mail/spell.inc        (revision 283)
+++ program/steps/mail/spell.inc        (working copy)
@@ -24,10 +24,11 @@
 
 $REMOTE_REQUEST = TRUE;
 
-$google = "ssl://www.google.com";
-$port = 443;
+$google = $CONFIG['googiespell_server'] ? $CONFIG['googiespell_server'] : 
"ssl://www.google.com";
+$port = $CONFIG['googiespell_port'] ? $CONFIG['googiespell_port'] : "443";
 $lang = $_GET['lang'];
-$path = "/tbproxy/spell?lang=$lang";
+$path = $CONFIG['googiespell_path'] ? $CONFIG['googiespell_path'] . $lang : 
"/tbproxy/spell?lang=$lang";
+
 $data = file_get_contents('php://input');
 $store = "";

Reply via email to