On Fri, Jun 17, 2005 at 03:53:27PM +0200, Pascal A. Dupuis wrote: > Package: emacs21 > Version: 21.4a-1 > Severity: normal
> under Tools->Spell Check, there are only a few dictionnaries > available. I tried switching to dutch, to no avail, although aspell-nl > is installed. Then I noticed there are three ispell.el: > /usr/share/emacs21/site-lisp/dictionaries-common/ispell.elc > /usr/share/emacs21/site-lisp/dictionaries-common/debian-ispell.elc > /usr/share/emacs/21.4/lisp/textmodes/ispell.elc (from emacs21-common) > /usr/share/emacs/21.4/lisp/textmodes/ispell.el (from emacs21-el) > /usr/share/emacs/site-lisp/dictionaries-common/ispell.el > /usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el (from > dictionnaries.common) > > so ... which is the "right" one ? /usr/share/emacs/site-lisp/dictionaries-common/ispell.el /usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el (from dictionaries.common) The alist is voided by debian-ispell.el and refilled by information provided by ispell and aspell dict packages. Unlike in original ispell.el aspell dicts are also shown if they register for use under the different emacsen > > The dictionary-alist is > (("american" "[a-zA-Z]" "[^a-zA-Z]" "[']" nil > ("-d" "en_US") > nil iso-8859-1) > ("british" "[a-zA-Z]" "[^a-zA-Z]" "[']" nil > ("-d" "en_GB") > nil iso-8859-1) > ("canadian" "[a-zA-Z]" "[^a-zA-Z]" "[']" nil > ("-d" "en_CA") > nil iso-8859-1) > ("english" "[a-zA-Z]" "[^a-zA-Z]" "[']" nil > ("-d" "en") > nil iso-8859-1) > ("francais" > "[A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > > "[^A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > "[-']" t > ("-d" "francais") > "~list" iso-8859-1) > ("francais-ch" > "[A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > > "[^A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > "[-']" t > ("-d" "fr_CH-60") > "~list" iso-8859-1) > ("francais-lrg" > "[A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > > "[^A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > "[-']" t > ("-d" "fr_FR-lrg") > "~list" iso-8859-1) > ("francais-sml" > "[A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > > "[^A-Za-z\xf40\xf42\xf47\xf48\xf49\xf4a\xf4b\xf4e\xf4f\xf54\xf59\xf5b\xf5c\xf60\xf62\xf67\xf68\xf69\xf6a\xf6b\xf6e\xf6f\xf74\xf79\xf7b\xf7c]" > "[-']" t > ("-d" "fr_FR-sml") > "~list" iso-8859-1) > (nil "[A-Za-z]" "[^A-Za-z]" "[']" nil > ("-B") > nil iso-8859-1)) > > Is this a bug ? Yes, but neither in emacs21, whose ispell.el is no longer used, nor in dictionaries-common, that provides the tools for this registration http://dict-common.alioth.debian.org/dsdt-policy.html#aspell-registration If myspell-nl gets registered everything will work again. > Shouldn't this list be longer ? The original list is different, for instance the french variants are not present there, since aspell entries having no equivalent ispell dict installed are not shown there. The same for canadian, not originally in ispell.el. If aspell-nl is not registered it will not be displayed, unless the equivalent dutch ispell dict is present. In Debian ispell-dictionary-alist is now built after the really installed ispell or aspell dictionaries (all of them should register). This saves us from some noise (like the old naming for german dicts) and allows aspell dicts to appear under Tools->Spell Check, because the check for that was done only for ispell dicts, making everything not having a corresponding ispell dict disappear from the [Tools->Spell Check] menu as soon as ispell.el was loaded. > Is there a specific mechanism/conf to add more dictionnaries support ? For package maintainers, http://dict-common.alioth.debian.org/ For users extra settings /usr/share/doc/dictionaries-common/README.emacs Cheers, -- Agustin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]