Tags: winlibs/enchant
Tags
Patch as required * We add a VS solution based on what we had for enchant 1.6.1, but we drop unsupported projects, and further adapt to enchant 2. * We bundle libhunspell 1.7.0 like we did for enchant 1.6.1. * We add manually crafted config.h and configmake.h. We stick with the default paths like they would be on Linux, yielding drive relative paths. * We mark all exports/imports; the original package relies on autotools support for that, what is not an option for us. * We fix the direct function return value dereferencing, which is not supported by MSVC, by introducing a temporary variable. This still doesn't yield working binaries, so we just stop calling `strchrnul()` at all, in favor of the likely even better optimized `strchr()`. Relevant changes for userland: * Only the hunspell provider is supported, which is basically identical to what has been called myspell provider in enchant 1. We do not build the ispell provider anymore, since upstream has dropped support for it. Other providers may be added in the future. * The location of the spellcheck providers (aka. back-ends) is no longer configurable via the registry; this functionality has been removed upstream. The spellcheck provider DLLs are now expected in /usr/local/lib/enchant-2/. * Dictionaries are no longer expected in %USERPROFILE%\enchant\myspell, but rather in %LOCALAPPDATA%\enchant\hunspell, according to upstream.