[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Hunspell working properly in Linux

From: Jeffrey Spencer
Subject: Getting Hunspell working properly in Linux
Date: Sun, 04 Sep 2011 03:10:02 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0

I have been trying to get hunspell working for nearly two days and can't seem to figure it out. I have followed and tried everything I could find. Everything on and elsewhere. I think it is an issue with not recognizing the dictionaries properly. They might be in the wrong encoding format or it isn't checking in the right folder. Any help on this would be appreciated or directions to take. I've tried the below and many variations of them and can't seem to get anything to work. I think it has to do with the dictionary list possibly.

;; Use hunspell instead of ispell
(setq ispell-program-name "hunspell") 
(require 'rw-language-and-country-codes)
(require 'rw-ispell)
(require 'rw-hunspell)
(setq ispell-dictionary "en_US")
;; The following is set via custom
 '(rw-hunspell-dicpath-list (quote ("/usr/share/hunspell")))
 '(rw-hunspell-make-dictionary-menu t)
 '(rw-hunspell-use-rw-ispell t)


(eval-after-load "ispell"
     (setq ispell-dictionary "en_US"
           ispell-extra-args '("-a" "-i" "utf-8")
           ispell-silently-savep t
           '((nil ; default
              "[A-Za-z]" "[^A-Za-z]" "[']" t ("-d" "en_US" "-i"  
"utf-8") nil utf-8)
             ("american" ; Yankee English
              "[A-Za-z]" "[^A-Za-z]" "[']" t ("-d" "en_US" "-i"  
"utf-8") nil utf-8)
             ("british" ; British English
              "[A-Za-z]" "[^A-Za-z]" "[']" t ("-d" "en_GB" "-i"  
"utf-8") nil utf-8)
(setq-default ispell-program-name "hunspell")

so now I just have:

(setq ispell-program-name "hunspell")                                                                                                                                                                                                    
    (setq ispell-silently-savep t) 

Jeffrey Spencer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]