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/e224b4cbc9856d86335afb43dd1a6651f99fc58e/providers/enchant_hunspell.cpp#L196
https://invent.kde.org/frameworks/sonnet/-/blob/88ba0b8c53d4bc6fbb45ab5350bdf5aa4fde23d7/src/plugins/hunspell/hunspellclient.cpp#L23

        Kevin Kofler
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to