| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Also remove some checks for mandatory provider methods in test code.
|
| |
|
| |
|
| |
|
|
|
|
| |
For UTF-8, use the same MAXWORDUTF8LEN as hunspell uses internally.
|
| |
|
|
|
|
| |
Sufficiently old now that we can stop supporting it.
|
| |
|
|
|
|
|
| |
Update license exception that allows linking with proprietary spellcheckers
to include all copyright holders, not just Dom Lachowicz.
|
|
|
|
|
|
|
|
| |
Some improvements were made in Nuspell API in newer versions which can be
used here:
1. Its spell() and suggest() accept string_view, there is no need for
temporary std::string any more.
2. Use its new API for finding dictionaries as the old one is deprecated.
|
|
|
|
|
|
| |
Voikko and Zemberek’s APIs assume a NUL-terminated string. Enchant does not
guarantee to provide one, so copy and NUL-terminate the provided string in
the check methods.
|
| |
|
| |
|
|
|
|
|
| |
A malloced char * was being converted to std::string without freeing the
char * in a few places.
|
| |
|
|
|
|
|
| |
Also fix a use of g_free which should be free, and some minor
simplification.
|
| |
|
|
|
|
|
|
|
| |
See https://bugzilla.redhat.com/show_bug.cgi?id=1718084
Thanks to Milan Crha for the patch, which fixes misuse of g_build_filename,
where its result was not being freed.
|
| |
|
|\
| |
| | |
enchant_hspell.c: remove a now-redundant g_free
|
| | |
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
Support parallel installation of different Enchant versions
|
| |
| |
| |
| |
| |
| | |
Fixes #162. Thanks to Sébastien Wilmet.
Followed instructions at https://developer.gnome.org/programming-guidelines/unstable/parallel-installability.html.en
|
|/
|
|
|
|
| |
voikko_provider_list_dicts returned NULL in this case. Fix this and use
voikkoListSupportedSpellingLanguages directly, which always returns a
valid pointer and also avoids copying.
|
|
|
|
|
|
|
|
|
| |
Voikko supports dictionaries with the VFST and HFST formats.
Dictionaries supporting Saami and other circumpolar languages can be
found at divvun.no and divvun.org
Do not set the error message when requesting a nonexistent voikko dictionary. This mimics the behaviour of the other providers.
|
| |
|
|
|
|
|
|
|
| |
Add enchant_dict_get_extra_word_characters, which returns a string of
non-letter characters that may occur in words, and
enchant_dict_is_word_character, which checks whether the given character is
valid as the first, last, or internal character in a word.
|
| |
|
|
|
|
| |
If checker is NULL, set n_dicts to 0.
|
|
|
|
|
|
|
|
| |
Commit 38f7f06e7 introduced this bug: the returned array of suggestions was
not NULL-terminated. This caused a crash in the tests, uncovered by Travis
on macOS, as on Ubuntu we didn’t have a dictionary for Voikko.
Add a Finnish dictionary for Voikko to the Travis setup for Ubuntu.
|
| |
|
|
|
|
| |
This is no longer necessary on supported versions of macOS.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use C99-style declarations.
Remove check of whether text to be checked is in Hebrew, as hspell already
does this (and in fact it’s not what we want: words in non-Hebrew are
treated as “empty” and therefore correct; this will have to be dealt with by
having the Enchant back-end reject words not in Hebrew, but probably it’s
better to have generic code to do this which detects words that contain
non-word characters for the given dictionary; however, that will require the
implementation of issue #17).
|
|
|
|
| |
enchant-provider.h includes it already, and it seems fair to assume this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It transpired that owing to a problem in configure.ac, the backend was
not being built, even on macOS. Fix this.
As a result, some compilation errors recently introduced emerged. Fix
them.
Note that AppleSpell.config wasn't being installed. Fix this. Also fix
its loading: it was being looked for in pkglibdir, but should be
installed in pkgdatadir (and now is).
In order to find the config file, promote enchant_get_conf_dirs to
enchant-provider.h, which now therefore needs to include glib.h again.
|
|
|
|
|
| |
Common up code that generates the .aff filename from the .dic filename, and
split it out from detecting whether the .aff file exists.
|
|
|
|
|
| |
Make an XXX into a FIXME, and note why we don’t use an aspell API we might
be expected to call.
|
|
|
|
| |
Fixes a warning
|
| |
|
|
|
|
|
|
|
|
|
| |
Assume a malloc-allocated char **.
Voikko used an internally-allocated char **, so copy it before passing it
back, as all the other providers have to.
In the process of fixing some tests, reactivate some disabled tests.
|
| |
|
|
|
|
| |
Was previously using now-deprecated API
|
|
|
|
| |
for DLLs
|
|
|
|
| |
Stop using GSList.
|
| |
|
|
|
|
|
|
|
| |
Add mingw64 and mingw32 to msys builds.
Remove unneeded and bit-rotted Win32 code from tests, hence also remove
GetDirectoryOfThisModule.
|
|
|
|
|
|
|
|
| |
DICPATH is a feature of the hunspell program, not the library, so supporting
it in Enchant was inconsistent.
The support was in any case buggy, as it treated DICPATH as a single
directory, not a path.
|