jay3ld Posted April 24, 2009 Share Posted April 24, 2009 http://php.net/Enchant This seems interesting to me. But for the life of me, I can't figure out what I am doing wrong. I have ispell installed and I can run it via command line to have it suggest words. But I can't get it to work through PHP. I have compiled 5.3 from source with enchant enabled. I can use the enchant functions. But the issue is that enchant doesn't seem to be able to find the dictionaries. I tried a test script I found on php.net, modified it to output more details. This is what it gave me: Current broker provides the following backend(s): Array ( [0] => Array ( [name] => ispell [desc] => Ispell Provider [file] => /usr/local/lib/enchant/libenchant_ispell.so ) [1] => Array ( [name] => myspell [desc] => Myspell Provider [file] => /usr/local/lib/enchant/libenchant_myspell.so ) ) No Dictionary found. Could the myspell provider be screwing things up? I have tried to compile enchant without myspell and then recompiled php. But no luck still. Any one else play with Enchant yet? Any ideas here? I know I could easily build pspell into PHP, but I wanted to play with this. As it seems this is being removed in 5.3. So I want to get a handle on how this works for my few applications that are using spell checking. Link to comment https://forums.phpfreaks.com/topic/155454-enchant/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.