summaryrefslogtreecommitdiff
path: root/providers
Commit message (Collapse)AuthorAgeFilesLines
* Aspell provider: set provider error when request_dict failsReuben Thomas2021-11-161-0/+1
| | | | Also remove some checks for mandatory provider methods in test code.
* Clean up whitespace in provider sourcesReuben Thomas2021-11-085-81/+81
|
* voikko: Fix undefined strndup in Win32/MinGWBiswapriyo Nath2021-09-201-2/+2
|
* enchant_hunspell.cpp: factor out calls to g_iconv into a convenience functionReuben Thomas2021-08-071-47/+30
|
* enchant_hunspell.cpp: fix maximum word lengthReuben Thomas2021-08-061-8/+10
| | | | For UTF-8, use the same MAXWORDUTF8LEN as hunspell uses internally.
* Hunspell: ensure extra word characters are returned as UTF-8 (fix #278)Reuben Thomas2021-08-061-15/+38
|
* enchant_hunspell.cpp: drop hunspell 1.4 supportReuben Thomas2021-08-061-6/+0
| | | | Sufficiently old now that we can stop supporting it.
* enchant_hunspell.cpp: update URL of Hunspell home page to httpsReuben Thomas2021-08-061-1/+1
|
* Fix license exceptionReuben Thomas2021-08-063-6/+6
| | | | | Update license exception that allows linking with proprietary spellcheckers to include all copyright holders, not just Dom Lachowicz.
* providers/enchant_nuspell.cpp: Improve code for provider Nuspell.Dimitrij Mijoski2020-11-201-16/+10
| | | | | | | | 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.
* Fix back-ends that want a NUL-terminated string (fix #259)Reuben Thomas2020-10-152-8/+18
| | | | | | 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.
* Hunspell: fix use of deprecated APIsReuben Thomas2020-09-011-12/+6
|
* Hunspell: implement Hunspell’s rule for treating quotes as word charReuben Thomas2020-09-011-2/+11
|
* providers/enchant_nuspell.cpp: fix a few leaksReuben Thomas2020-07-291-3/+7
| | | | | A malloced char * was being converted to std::string without freeing the char * in a few places.
* Nuspell provider implementationPanderMusubi2020-02-272-0/+445
|
* Hunspell provider: fix a space leakReuben Thomas2019-09-111-3/+4
| | | | | Also fix a use of g_free which should be free, and some minor simplification.
* Aspell provider: fix a couple of space leaks (thanks, ASAN!)Reuben Thomas2019-09-111-0/+2
|
* providers/enchant_hunspell.cpp: fix memory leaksReuben Thomas2019-06-301-4/+14
| | | | | | | 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.
* hspell: reject input that cannot be encoded as ISO-8859-8 (fixes issue #180)Reuben Thomas2018-01-021-12/+15
|
* Merge pull request #175 from rrthomas/masterReuben Thomas2017-12-171-4/+1
|\ | | | | enchant_hspell.c: remove a now-redundant g_free
| * enchant_hspell.c: remove a now-redundant g_freeReuben Thomas2017-12-121-4/+1
| |
* | Fix FSF addressRobert-André Mauchin2017-12-146-6/+6
|/
* hunspell: use enchant_relocate to relocate ENCHANT_HUNSPELL_DICT_DIRReuben Thomas2017-12-111-1/+1
|
* Fix #170: potential null pointer dereferenceReuben Thomas2017-12-081-0/+7
|
* Merge pull request #163 from rrthomas/masterReuben Thomas2017-11-261-2/+2
|\ | | | | Support parallel installation of different Enchant versions
| * Support parallel installation of different Enchant versionsReuben Thomas2017-11-251-2/+2
| | | | | | | | | | | | Fixes #162. Thanks to Sébastien Wilmet. Followed instructions at https://developer.gnome.org/programming-guidelines/unstable/parallel-installability.html.en
* | voikko: Avoid crashing when there are no languagesJan Alexander Steffens (heftig)2017-11-241-6/+9
|/ | | | | | 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 more than fi nowBørre Gaup2017-09-221-47/+51
| | | | | | | | | 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.
* Fix hunspell 1.5 supportPacho Ramos2017-09-031-1/+1
|
* Fix issue #17: add new APIs for per-dictionary character classesReuben Thomas2017-07-251-0/+24
| | | | | | | 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.
* AppleSpell checker: fix uninitialised nresult in NSArrayToCArrayReuben Thomas2017-07-241-0/+1
|
* AppleSpell checker: ensure list_dicts always sets n_dicts out parameterReuben Thomas2017-07-241-0/+2
| | | | If checker is NULL, set n_dicts to 0.
* Fix incorrect return value in Voikko’s suggest routine; actually test Voikko!Reuben Thomas2017-07-241-1/+1
| | | | | | | | 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.
* Use C99-style declarations in remaining providersReuben Thomas2017-05-044-121/+56
|
* Remove module-unloading hackReuben Thomas2017-05-041-17/+1
| | | | This is no longer necessary on supported versions of macOS.
* Overhaul hspell back-endReuben Thomas2017-05-041-100/+22
| | | | | | | | | | | | 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).
* Remove include of enchant.h from providersReuben Thomas2017-04-305-5/+0
| | | | enchant-provider.h includes it already, and it seems fair to assume this.
* Get AppleSpell back-end working again, and add list_dicts methodReuben Thomas2017-04-302-33/+92
| | | | | | | | | | | | | | | 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.
* enchant_hunspell: minor refactoringReuben Thomas2017-04-261-31/+27
| | | | | Common up code that generates the .aff filename from the .dic filename, and split it out from detecting whether the .aff file exists.
* enchant_aspell.c: update some commentsReuben Thomas2017-04-261-2/+2
| | | | | Make an XXX into a FIXME, and note why we don’t use an aspell API we might be expected to call.
* enchant_hunspell.cpp: declare init function before definitionReuben Thomas2017-04-261-0/+2
| | | | Fixes a warning
* Fix FIXME: use @autoreleasepool instead of manual NSAutoReleasePoolReuben Thomas2017-04-211-181/+142
|
* Remove enchant provider free_string_list methodReuben Thomas2017-04-215-39/+9
| | | | | | | | | 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.
* Make voikko provider use libc functions, so no longer needs glibReuben Thomas2017-04-161-7/+6
|
* Update voikko provider to use current APIReuben Thomas2017-04-161-24/+16
| | | | Was previously using now-deprecated API
* Remove dllexport/import declspecs, use autotools' automatic import/export ↵Reuben Thomas2017-04-166-18/+6
| | | | for DLLs
* hunspell provider: simplify code to build list of dictionary directoriesReuben Thomas2017-04-151-27/+8
| | | | Stop using GSList.
* Remove uspell provider (move to uspell repo)Reuben Thomas2017-04-152-452/+0
|
* Issue #76: Build on more Windows targetsReuben Thomas2017-04-141-1/+1
| | | | | | | Add mingw64 and mingw32 to msys builds. Remove unneeded and bit-rotted Win32 code from tests, hence also remove GetDirectoryOfThisModule.
* hunspell: remove faulty DICPATH supportReuben Thomas2017-04-061-8/+0
| | | | | | | | 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.