_______________________________________________On 28 May 2023, at 15:44, Sam Varshavchik <mrsam@courier-mta.com> wrote:Hunspell does not have a functionally-equivalent C++ API. It has a C++ API of its own, but it's targeted at applications that come with their own language dictionaries. Its C++ API is, basically, a lookup function against a dictionary file that the application also supplies, 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. The way for an application to do it is to have it run hunspell itself separately, and talk to it via pipes. Hopefully, it's easy for the application to do that without leaking other file descriptors.I found the hunspell C++ API usable. See https://github.com/barry-scott/BarrysEmacs/blob/master/Editor/Source/Common/spell_checker.cpp for an example.Barry
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-leave@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
Lukáš Javorský
Software Engineer, Core service - Databases
Purkyňova 115 (TPB-C)
612 00 Brno - Královo Pole