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 20:42:29 +0300

> From: Arash Esbati <esbati@gmx.de>
> Date: Fri, 1 May 2015 15:33:07 +0000 (UTC)
> 
> > 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.
> 
> Thanks for your response and clarification.  I read this in hunspell's man 
> page
> 
>     −d en_US,en_geo,en_med,de_DE,de_med
> 
> and just adapted it.  Obviously, I've been abusing that feature for a long
> time now, but it worked quite well ;-)

I used it as well, until I bumped into a weird case where Hunspell
missed a mistake, and then suggested strange replacements in another
case.  Then I read the source code, and figured out how this works.
It cannot work with different languages.

> While we're at it: I never managed to get the `OTHERCHARS' feature work with
> hunspell.  I.e.,
> 
> > (setq
> >    ispell-local-dictionary-alist
> >    '((nil "[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)))
> 
> This is very useful when writing German text with LaTeX.  Any idea?

You shouldn't need this with kind of customization with Emacs 24.4 and
later.  That code which signals an error in your case figures
OTHERCHARS automatically.  (It also figures out all the rest.)




reply via email to

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