From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeffrey Spencer Newsgroups: gmane.emacs.help Subject: Getting Hunspell working properly in Linux Date: Sun, 04 Sep 2011 03:10:02 +1000 Message-ID: <4E625F6A.3000307@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------050504010603040406090509" X-Trace: dough.gmane.org 1315075311 10879 80.91.229.12 (3 Sep 2011 18:41:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Sep 2011 18:41:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 03 20:41:47 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QzvA1-0007nY-J4 for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2011 20:41:45 +0200 Original-Received: from localhost ([::1]:38465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzvA1-0005xU-1X for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Sep 2011 14:41:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QztjO-0007Ep-O7 for help-gnu-emacs@gnu.org; Sat, 03 Sep 2011 13:10:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QztjN-0003dd-7H for help-gnu-emacs@gnu.org; Sat, 03 Sep 2011 13:10:10 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:57237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QztjM-0003cu-Ur for help-gnu-emacs@gnu.org; Sat, 03 Sep 2011 13:10:09 -0400 Original-Received: by pzk36 with SMTP id 36so6788705pzk.17 for ; Sat, 03 Sep 2011 10:10:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=XTFS0Dq8hLpsMvZWt7jJLUN/VAkYyaFGAvBzWAHnlvM=; b=xc/Rbl12I+91vCiM+Rno7yXiPyGinkvFtZxThfBV5dFvHqSclhufdmSb0L0Tzs2pah S1ynMWtftKGOFwfGDb6SZHhLvX7uGxmSuE46GxquInhN9VzesKzBiHT5lmynG31N81HG KsFpnwC3Sko/18XHv3BMIXBYuabOEEq690aWg= Original-Received: by 10.68.16.106 with SMTP id f10mr3848866pbd.403.1315069806878; Sat, 03 Sep 2011 10:10:06 -0700 (PDT) Original-Received: from [192.168.1.104] (27-32-230-108.tpgi.com.au. [27.32.230.108]) by mx.google.com with ESMTPS id m1sm7391346pbf.3.2011.09.03.10.10.04 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Sep 2011 10:10:05 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110812 Thunderbird/6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.44 X-Mailman-Approved-At: Sat, 03 Sep 2011 14:41:40 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82134 Archived-At: This is a multi-part message in MIME format. --------------050504010603040406090509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 http://www.emacswiki.org/emacs/InteractiveSpell 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 (custom-set-variables '(rw-hunspell-dicpath-list (quote ("/usr/share/hunspell"))) '(rw-hunspell-make-dictionary-menu t) '(rw-hunspell-use-rw-ispell t) ) | or |(eval-after-load "ispell" (progn (setq ispell-dictionary "en_US" ispell-extra-args '("-a" "-i" "utf-8") ispell-silently-savep t ispell-dictionary-alist '((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)| cheers, Jeff -- ________________________ Jeffrey Spencer jeffspencerd@gmail.com --------------050504010603040406090509 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 http://www.emacswiki.org/emacs/InteractiveSpell 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
(custom-set-variables
 '(rw-hunspell-dicpath-list (quote ("/usr/share/hunspell")))
 '(rw-hunspell-make-dictionary-menu t)
 '(rw-hunspell-use-rw-ispell t)
)

or

(eval-after-load "ispell"
   (progn
     (setq ispell-dictionary "en_US"
           ispell-extra-args '("-a" "-i" "utf-8")
           ispell-silently-savep t
           ispell-dictionary-alist
           '((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) 
cheers,
Jeff

-- 
________________________
Jeffrey Spencer
jeffspencerd@gmail.com
--------------050504010603040406090509--