[...]
> 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 ;-)
> In any case, the correct the syntax for using several dictionaries is
> dict1,dict2,dict3,..., i.e. use commas.
Yes, I have that in
> ("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")
^^^^^^^^^^^^^^^^^^
> > 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".
Will do so.
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?
Thanks! Best, Arash
> 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.)
Tried it with `ispell.el' shipped with 24.5. like this:
1. emacs --eval '(setq debug-on-error t)' -Q &
2. Open a simple LaTeX file:
\documentclass{article}
\usepackage[ngerman]{babel}
Schönheit, Schön"=heit.
\end{document}
3. `M-x ispell-change-dictionary RET german8 RET', marking `Schön"=heit'
and `M-x ispell-region' gives me the following:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "Ispell misalignment: word `heit' point
74; probably incompatible versions")
signal(error ("Ispell misalignment: word `heit' point 74; probably
incompatible versions"))
error("Ispell misalignment: word `%s' point %d; probably incompatible
versions" "heit" 74)
ispell-process-line("^Schön\"=heit\n" nil)
ispell-region(66 77)
call-interactively(ispell-region record nil)
command-execute(ispell-region record)
execute-extended-command(nil "ispell-region")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
--8<---------------cut here---------------end--------------->8---
I'm not sure if I've got bitten by the bug discussed and fixed here:
http://sourceforge.net/p/hunspell/bugs/185/
I have Hunspell 1.3.3. installed.
Best, Arash