Sam Varshavchik wrote:
I have one package in Fedora. It uses aspell's C++ API.
Hunspell does not have a functionally-equivalent C++ API.
Then use Enchant2, as already suggested. It has a C (enchant.h) and a C++
(enchant++.h) API.
Or if it is a Qt/KDE application, just use Sonnet.
it does not have a C++ API that offers a convenient way for
applications
to run a spell check against the system's default dictionary.
Enchant and Sonnet both handle that for you (they use the Hunspell C++ API
and do their own file lookup in system paths), see:
https://github.com/AbiWord/enchant/blob/e224b4cbc9856d86335afb43dd1a6651f...
https://invent.kde.org/frameworks/sonnet/-/blob/88ba0b8c53d4bc6fbb45ab535...
Kevin Kofler