On Mon, Jan 18, 2021 at 01:22:48PM +0100, Agustin Martin wrote: > El dom, 17 ene 2021 a las 16:06, Kurt Roeckx (<k...@roeckx.be>) escribió: > > > > Package: dictionaries-common-dev > > > > Hi, > > > > Vim has support for spellchecking using it's own spell check > > files. It can be generated based on hunspell .aff/.dic files, or > > based on a wordlist. Files currently need to be placed in > > /usr/share/vim/vim82/spell/ > > > > It would be good if we had a policy and helper scripts to install > > the files so vim can use them, and how to name the packages. > > Hi, Kurt, > > This was mentioned a while ago in #490987. It was closed because at > that time building vim spell files creation seemed to be very memory > intensive and using libhunspell via a redhat patch was under > consideration. I have no idea about current status of spellchecking in > vim and if those concerns were addressed.
Converting it from .aff and .dic to .spl and .sug takes 2.3 seconds here and 99 MB of RAM. 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. 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. Kurt