On Mon, Jan 18, 2021 at 07:34:55PM +0100, Agustin Martin wrote: > > Note that I need to patch the .aff files to actually make it work > > properly because vim doesn't implement all the same things > > hunspell does. > > Knowing that vim does not use standard hunspell files makes things > more clear. I thought you meant something like what is done for aspell > or ispell dicts, allowing hashes to be built at postinst stage. > However, seems that what you would like is to recover something like > vim-spellfiles, but adapted to current vim.
Vim has it's own file format and implementation that works totally different than hunspell, and so needs to convert it to it's own format. I have no idea what vim-spellfiles was, it only seems to have been in experimental. Vim has various files on it's ftp site at: https://ftp.nluug.nl/vim/runtime/spell/ I assume someone packaged up all the files from the ftp site. As you can see at https://github.com/vim/vim/tree/master/runtime/spell most haven't been updated in the past 10 years, nor is the source of them actually available, just a patch against something, and it's unclear to me to which version the patch is. I haven't tried to run the aap script to see if it can actually still fetch the source. If you have the input files, it's easy to generate the files from it. > > I was looking at the libhunspell patch upstream, which seems to be > > going nowhere, the pull requests was closed because it wasn't > > complete and nobody seems to want to fix it. > > > > > On the other hand most hunspell dicts come from libreoffice-dicts and > > > do not provide a dict-common info file. In my TODO list there is a > > > point to play with libreoffice-dicts build process to automatically > > > create a minimal info file, but it has been there for years due to > > > lack of both time and python skills at that time. > > > > I have no idea what those files are used for, so I can't even test > > that they are correct or not. I assume that it might have something > > to do with emacs, but I'm a vim user, not an emacs user. > > Note that I was thinking about autobuild, and for ispell and aspell > some info may be there for hash autobuild, together with for other > things like Emacs or jed. > > I do not object adding a vim section to policy if there is need to > coordinate with packages outside the vim environment. However, from > what I seem to understand, everything is inside vim ecosystem. > spellchecker is part of vim, hunspell dicts need to be adapted for vim > and this spellchecking facility seems not to be used outside vim. > > So we would need to have a better understanding of what is expected. > Will vim files be built from a central package (like libreoffice-dicts > does for most hunspell dicts) or there will be separate source > packages for each dict, probably with different maintainers? If the > second, a vim spellckeck policy and helper scripts are useful. Note, > however, that I do not use vim, so some help will be needed, where is > this feature documented? There is documentation about it in: /usr/share/vim/vim82/doc/spell.txt Or online at: https://vimhelp.org/spell.txt.html I think we should at least ship the files in Debian somehow, the user shouldn't need to download it. Kurt

