dictionary search path, python3, Mac OS X

86 views
Skip to first unread message

Toma Tasovac

unread,
Aug 2, 2013, 9:48:06 AM8/2/13
to pyencha...@googlegroups.com
Hi.

I've installed pyenchant on Mac OS X with pip3. It works with the default dictionaries that came along with it. 

I have placed new hunspell dictionaries, per instructions, in my site-packages:

/Backend/local/lib/python3.3/site-packages/enchant/share/enchant/myspell/ 

These dictionaries, however, are not recognized.

enchant.list_dicts()

still gives me only:

[('en', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>)]

I have tried to use: 

enchant.set_param("enchant.myspell.dictionary.path","/Backend/local/lib/python3.3/site-packages/enchant/share/enchant/myspell/") but to no avail.

I have also tried to do:

b = enchant.Broker()
b.set_ordering("*","myspell,aspell")

to make sure that myspell (i.e. my hunspell dicts) are loaded before aspell but that didn't do the trick.

I am probably missing something totally obvious -- so any tips would be greatly appreciated.

All best,
Toma


Toma Tasovac

unread,
Aug 4, 2013, 2:25:24 AM8/4/13
to pyencha...@googlegroups.com
I have solved this in the meantime. 

Homebrew installs enchant with myspell disabled. Very silly. So I just had to change the configuration and reinstall.

All best,
Toma 

02.08.2013., в 15.48, Toma Tasovac <ttas...@transpoetika.org> написал(а):

--
You received this message because you are subscribed to the Google Groups "pyenchant users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyenchant-use...@googlegroups.com.
To post to this group, send email to pyencha...@googlegroups.com.
Visit this group at http://groups.google.com/group/pyenchant-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages