install enchant dictionaries

I had a bit of a hard time getting enchant installed with dictionaries on Mac OS X. Here’s how to do it:

sudo port install enchant # you'll need MacPorts 1.8.* for this

Then download the dictionaries from the OpenOffice wiki.

Next, place the files in ~/.enchant like so:

$ tree .enchant/
`-- myspell
    |-- en_US.aff
    `-- en_US.dic

You can also set the path to where you want to keep the dictionaries when you compile enchant by passing the --with-myspell-dir option to configure (or aspell, hspell etc).

  • Reddit
  • Technorati
  • Twitter
  • Facebook
  • Google Bookmarks
  • HackerNews
  • PDF
  • RSS
This entry was posted in shell, sysadmin. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.