| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Providers are private to enchant, so shouldn’t need rc files.
|
|
|
|
|
| |
It builds with GNUstep, though it does not currently run (at least in
enchant-lsmod, as GNUstep complains that it needs a window).
|
|
|
|
| |
An earlier change removed the required -lz
|
|
|
|
| |
Make an unnecessarily-exposed function static.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Have only one user_config_dir, so change API to enchant_get_user_config_dir,
returning a char *. Make ENCHANT_CONFIG_DIR override it, not supplement it:
this is intended for use by applications embedding Enchant which want to cut
off its external configuration, and for testing.
Look for modules only in one place, under the given prefix (which can be
overridden by ENCHANT_PREFIX_DIR).
The system enchant.ordering is moved to sysconfdir from pkglibdir. Little
point having two separate files, but make it configurable by the sysadmin.
Fix default path relative to g_get_system_data_dirs for finding hunspell
dictionaries (was still using one more suited to myspell).
Make a couple of C++ fixes to the uspell provider. Not currently being built.
Don’t look for Enchant config directly in home directory any more.
Rename some internal functions without leadiing underscore. No point doing
this for merely static functions, as we don’t with most names. Only leave
underscores where there is already a function with the name without the
underscore.
Reverse the order of directories in enchant_get_conf_dirs, so it doesn’t
have to be reversed by its only caller.
Update relevant tests.
|
|
|
|
|
|
|
| |
Name each one enchant_foospell.c[pp], and put Zemberek sources in a single
file.
Tidy up the Makefile.am, reducing duplication.
|
|
Move READMEs from individual providers into comments at the top of the
relevant source file.
|