6.0.0-alpha10
5/14/25

[#8304] Add hunspell support to Horde_SpellChecker
Summary Add hunspell support to Horde_SpellChecker
Queue Horde Framework Packages
Queue Version Git master
Type Enhancement
State Assigned
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester torlasz (at) net (dot) sote (dot) hu
Created 05/23/2009 (5835 days ago)
Due
Updated 06/04/2009 (5823 days ago)
Assigned 06/04/2009 (5823 days ago)
Resolved
Milestone
Patch No

History
06/04/2009 03:16:21 AM Chuck Hagenbuch Comment #3
Summary ⇒ Add hunspell support to Horde_SpellChecker
Reply to this comment
06/04/2009 03:12:48 AM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
06/04/2009 03:12:36 AM Chuck Hagenbuch Comment #2
Queue ⇒ Horde Framework Packages
Version ⇒ Git master
Reply to this comment
I'll try and take a look at adding this to the SpellChecker library
05/23/2009 01:04:27 PM torlasz (at) net (dot) sote (dot) hu Comment #1
Priority ⇒ 1. Low
New Attachment: hunspell.php Download
Patch ⇒ No
Milestone ⇒
Summary ⇒ Using the hunspell spelling checker
Type ⇒ Enhancement
State ⇒ New
Queue ⇒ IMP
Reply to this comment
I tried to add hunspell support to IMP 4.3.4. The system is CENTOS 5 
linux, using Horde 3.3.4, hunspell-1.2.7-5 rpm (built from Fedora 10 
source rpm). Attached you can find the php program I made based on 
aspell.php. (Note: I am not a php programmer)



I set the IMP config like this:

$conf['spell']['params']['path'] = '/usr/bin/hunspell';

$conf['spell']['driver'] = 'hunspell';



Putting ASCII chars into the message window, using -d en_EN, -i utf-8 
I am getting back from the hunspell reading the pipe only the first 
greeting line of hunspell:

@(#) International Ispell Version 3.2.06 (but really Hunspell 1.2.7)



Nothing more. However, if I run the relevant lines from the code as a 
CLI php program (as user apache), I get back the expected response. 
That's something I don't understand. The hunspell program gets the 
input from Horde (I checked that running through a simple shell script 
with tee-ing input and output of hunspell).

Also the same hunspell binary worked perfectly with Horde/IMP 
3.1.5/4.1.5 on the same machine.



It would be really nice to be able to use hunspell with the current 
IMP (quite a few languages can't use aspell). It used to work until I 
upgraded to Horde/IMP 3.3.4/4.3.4, and my users liked this feature.


Saved Queries