View previous topic :: View next topic |
Author |
Message |
cgroh n00b
Joined: 25 Aug 2008 Posts: 24 Location: Leeds - UK
|
Posted: Sat Feb 11, 2012 7:51 pm Post subject: emacs ispell - dictionary not available, although installed |
|
|
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 |
|
|
cgroh n00b
Joined: 25 Aug 2008 Posts: 24 Location: Leeds - UK
|
Posted: Sat Feb 11, 2012 8:12 pm Post subject: |
|
|
PS
I re-emerge ispell, the ispell-de dictionary as well as emacs itself, with no success. |
|
Back to top |
|
|
ulm Developer
Joined: 04 Oct 2004 Posts: 98 Location: Mainz, Germany
|
Posted: Sun Feb 12, 2012 6:31 pm Post subject: |
|
|
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 |
|
|
cgroh n00b
Joined: 25 Aug 2008 Posts: 24 Location: Leeds - UK
|
Posted: Mon Feb 13, 2012 11:50 am Post subject: |
|
|
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 |
|
|
smartass Apprentice
Joined: 04 Jul 2011 Posts: 189 Location: right behind you ... (you did turn around, didn't you?)
|
Posted: Mon Feb 13, 2012 4:56 pm Post subject: |
|
|
Hi,
I use aspell with emacs. Aspell has an ispell compatibility mode and is supposed to be better. |
|
Back to top |
|
|
ulm Developer
Joined: 04 Oct 2004 Posts: 98 Location: Mainz, Germany
|
Posted: Mon Feb 13, 2012 7:12 pm Post subject: |
|
|
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 |
|
|
|