Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emacs ispell - dictionary not available, although installed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cgroh
n00b
n00b


Joined: 25 Aug 2008
Posts: 24
Location: Leeds - UK

PostPosted: Sat Feb 11, 2012 7:51 pm    Post subject: emacs ispell - dictionary not available, although installed Reply with quote

dear all,

after an emerge world emacs will not let me choose any other dictionaries than british and american. The german dictionary is installed though. I can use it when starting ispell from the command line.

thanks,
cgroh


Last edited by cgroh on Sun Feb 12, 2012 12:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
cgroh
n00b
n00b


Joined: 25 Aug 2008
Posts: 24
Location: Leeds - UK

PostPosted: Sat Feb 11, 2012 8:12 pm    Post subject: Reply with quote

PS

I re-emerge ispell, the ispell-de dictionary as well as emacs itself, with no success.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 98
Location: Mainz, Germany

PostPosted: Sun Feb 12, 2012 6:31 pm    Post subject: Reply with quote

IIRC, ispell cannot be queried for its list of dictionaries. Emacs has a default list in ispell-dictionary-base-alist which is far from complete. So I fear that you must add the additional directory to ispell-local-dictionary-alist yourself.

Or switch to aspell which works out of the box.
Back to top
View user's profile Send private message
cgroh
n00b
n00b


Joined: 25 Aug 2008
Posts: 24
Location: Leeds - UK

PostPosted: Mon Feb 13, 2012 11:50 am    Post subject: Reply with quote

Thanks for your response. The ispell-dictionary-alist variable contains the following entries:

Code:
 ...

("deutsch" "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t
  ("-C")
  "~tex" iso-8859-1)

 ("deutsch8" "[a-zA-Z\304\326\334\344\366\337\374]" "[^a-zA-Z\304\326\334\344\366\337\374]" "[']" t
  ("-C" "-d" "deutsch")
  "~latin1" iso-8859-1)

...

 ("german" "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t
  ("-C")
  "~tex" iso-8859-1)

 ("german8" "[a-zA-Z\304\326\334\344\366\337\374]" "[^a-zA-Z\304\326\334\344\366\337\374]" "[']" t
  ("-C" "-d" "german")
  "~latin1" iso-8859-1)

...


Does this mean the german dictionary should work?

I also added the following to my .emacs:

Code:
(setq ispell-program-name "ispell")
;;
;; set german dictionary
(require 'ispell)
(setq ispell-local-dictionary-alist nil)
(add-to-list 'ispell-local-dictionary-alist
        '("deutsch8"
           "[[:alpha:]]" "[^[:alpha:]]"
          "[']" t
          ("-C" "-d" "deutsch")
            "~latin1" iso-8859-1)
             '("german8" "[a-zA-Z\304\326\334\344\366\337\374]" "[^a-zA-Z\304\326\334\344\366\337\374]" "[']" t
               ("-C" "-d" "german")
               "~latin1" iso-8859-1)
             '("german" "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t
               ("-C")
               "~tex" iso-8859-1)
         )


with no success.

As a side note, the directory /usr/lib64/ispell contains

Code:
american.hash
americanmed+.hash
americanxlg.hash
british.hash
britishmed+.hash
britishxlg.hash
de_AT.aff
de_AT.hash
de_CH.aff
de_CH.hash
de_DE.aff
de_DE.hash
english.aff
english.hash


Thanks for your help,
cgroh
Back to top
View user's profile Send private message
smartass
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 189
Location: right behind you ... (you did turn around, didn't you?)

PostPosted: Mon Feb 13, 2012 4:56 pm    Post subject: Reply with quote

Hi,

I use aspell with emacs. Aspell has an ispell compatibility mode and is supposed to be better.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 98
Location: Mainz, Germany

PostPosted: Mon Feb 13, 2012 7:12 pm    Post subject: Reply with quote

cgroh wrote:
I also added the following to my .emacs:

Code:
(setq ispell-program-name "ispell")
;;
;; set german dictionary
(require 'ispell)
(setq ispell-local-dictionary-alist nil)
(add-to-list 'ispell-local-dictionary-alist
        '("deutsch8"
           "[[:alpha:]]" "[^[:alpha:]]"
          "[']" t
          ("-C" "-d" "deutsch")
            "~latin1" iso-8859-1)
             '("german8" "[a-zA-Z\304\326\334\344\366\337\374]" "[^a-zA-Z\304\326\334\344\366\337\374]" "[']" t
               ("-C" "-d" "german")
               "~latin1" iso-8859-1)
             '("german" "[a-zA-Z\"]" "[^a-zA-Z\"]" "[']" t
               ("-C")
               "~tex" iso-8859-1)
         )


with no success.


ispell-de installs dictionaries named "de_DE" etc., so the above won't work. You must add an entry with options "-d" "de_DE" instead.

Or, as suggested in the previous posting, switch to aspell. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum