1

I try to add a new language to pyenchant in the anaconda package on Mac OS. I downloaded the files for myspell (ru_RU.aff and ru_RU.dic). As I understand, I have to add these files to the /user/anaconda/lib/python2.7/site-packages/enchant/share/myspell/

Well, there is no directory share in the /user/anaconda/lib/python2.7/site-packages/enchant/, so I created the folder /user/anaconda/lib/python2.7/site-packages/enchant/share/myspell/ and added the files... So, it doesn't work.

How can I really add the new language to enchant?

Shelari
  • 109
  • 1
  • 6
  • what happens if you run (as three lines) from a python prompt: b = enchant.Broker() b.describe() b.list_dicts() – Dan-Dev Nov 25 '16 at 12:54
  • >>> b.describe() [] >>> b.list_dicts() [('en', ), ('en_CA', ), ('en_GB', ), ('en_US', )] – Shelari Nov 25 '16 at 15:55
  • Try (as four lines): enchant.set_param("enchant.myspell.dictionary.path","/user/anaconda/lib/python2.7/site-packages/enchant/share/myspell/") b = enchant.Broker() b.describe() b.list_dicts() – Dan-Dev Nov 25 '16 at 16:13
  • The result is the same – Shelari Nov 25 '16 at 16:29

0 Answers0