Jump to content

Enchant


Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.