help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: 24.5.; invoking hunspell with multiple dicts


From: Eli Zaretskii
Subject: Re: 24.5.; invoking hunspell with multiple dicts
Date: Fri, 01 May 2015 18:03:49 +0300

> From: Arash Esbati <esbati@gmx.de>
> Date: Fri, 01 May 2015 11:58:43 +0200
> 
> I use hunspell with multiple dicts through ispell.el.  Beginning with
> 24.4., it stopped working and the issue persists in 24.5.  The recipe to
> produce the error:
> 
> 1.  Start emacs with
> emacs --eval '(setq debug-on-error t)' -Q &
> 
> 2.  Eval the following:
> 
> (setq ispell-program-name "hunspell")
> 
> (setq
>    ispell-local-dictionary-alist
>    '((nil "[A-Za-z]" "[^A-Za-z]" "[']" nil
>       ("-d" "en_US")
>       nil iso-8859-1)
>      ("american" "[A-Za-z]" "[^A-Za-z]" "[']" nil
>       ("-d" "en_US")
>       nil 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
>       ("-d" "de_DE")
>       nil iso-8859-1)
>      ("deutsch8+american" 
>       "[a-zA-Z\304\326\334\344\366\337\374]" 
>       "[^a-zA-Z\304\326\334\344\366\337\374]" "[']" t
>       ("-d" "de_DE,en_US")
>       nil iso-8859-1)))
> 
> (global-set-key "\C-cia"
>   '(lambda ()
>      (interactive)
>      (ispell-change-dictionary "deutsch8+american")))

You cannot use Hunspell with multiple dictionaries, unless they all
use the same *.aff file.  Otherwise, you will get a speller that will
mist mis-spelled words, because these mis-spelled words will look as
correct spellings according to the other language.

IOW, this feature of Hunspell is for using several dictionaries for
the same language, like if you want to use a dictionary of medicinal
terms in addition to the general vocabulary.

In any case, the correct the syntax for using several dictionaries is
dict1,dict2,dict3,..., i.e. use commas.

> Debugger entered--Lisp error: (error "ispell-phaf: No matching entry for 
> deutsch8+american.
> ")

All of the above notwithstanding, this error message does indicate a
bug, so please submit a bug report by "M-x report-emacs-bug RET".



reply via email to

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