On Thu, Oct 31, 2024 at 11:06:34AM +0000, Reuben Thomas wrote: > On Tue, 29 Oct 2024 at 18:15, Agustin Martin <agmar...@debian.org> wrote: > > > On Tue, Oct 29, 2024 at 11:06:39AM +0000, Reuben Thomas wrote: > > > > > > I'm a bit confused now. Does aspell understand the name "castellano8"? If > > > so, how does it know about it? If not, presumably Emacs translates the > > name > > > into one that aspell understands? > > > > They are originally emacs-only stuff, mapped to a hash for the different > > spellcheckers. Original castellano8 entry in ispell.el > > `ispell-dictionary-base-alist' does this by passing ("-B" "-d" > > "castellano"). > > > > For aspell, besides "aspell dump dicts" output, there are other possible > > aliases, in Debian aspell-es those include "castellano" and "castellano8". > > castellano was added to match original ispell name used for people having > > that in their ~/.emacs file. I do not think there is an aspell option > > listing all those aliases. > > > > So, just to be clear, Aspell has Emacs-specific support for Emacs-specific > names, and it's hidden from regular the aspell command-line? If that's the > case, then indeed, I wouldn't propose to add that sort of functionality to > Enchant.
Sorry, seems I did not explain myself correctly (and I am slowly remembering about all this, so something of what I wrote may have been inaccurate). AFAIR some of those aliases were set to match how the equivalent ispell dictionary was selected, $ ispell -d castellano mytext.txt $ aspell check -d castellano mytext.txt I vaguely remember that this was useful for the old run-with-aspell script (not tested, and old script probably not working at present), and is useful for original (many years ago) Emacs ispell.el, to help reusing original entries without changing too many things. `aspell -l' uses locale based selection and I think it supports options shown by `aspell dump dicts'. For aspell-es I added emacsen-like castellano8 alias, but it should not be needed and I doubt anyone is using it (Emacs ispell.el does not use it). So, that is not really Aspell having Emacs-specific support for Emacs-specific names, hidden from regular the aspell command-line, but trying to keep some ispell compatibility regarding -d arguments. If enchant people wants to add some of those aliases I would not go beyond the equivalent ispell `-d' argument, so `enchant-2 -d ...' works similarly as for ispell. IIRC old enchant had some ispell code and a table of equivalences in src/ispell/ispell_checker.cpp, not sure how that was used so I might have a wrong view. Not all equivalences match what Emacs ispell.el uses. E.g., uses espanol instead of castellano as -d argument, I should check if that name has been changed at some time in Emacs ispell.el, but this needs a check across many many years. Regards, -- Agustin