summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* src/lib.c: sort tags in enchant_broker_list_dictsReuben Thomas2020-09-071-27/+26
| | | | | This makes enchant-lsmod produce more readable output. The order of output may as well be useful.
* enchant: ignore -B for ispell compatibility (Emacs passes -B to ispell)Reuben Thomas2020-09-071-2/+3
|
* libenchant: fix use of deprecated GLib macroReuben Thomas2020-09-012-2/+2
| | | | | G_UNICODE_COMBINING_MARK (deprecated since GLib 2.30) becomes G_UNICODE_SPACING_MARK.
* enchant.c: some slight tidy-upReuben Thomas2020-09-011-13/+6
|
* Nuspell provider implementationPanderMusubi2020-02-273-12/+12
|
* src/enchant.c: overhaul command-line parsing and documentationReuben Thomas2020-01-182-110/+108
| | | | | | | | | | | | Use getopt for simpler parsing of command-line arguments and better error handling and reporting. Remove some stream variables, as in many cases we always use stdout. Overhaul the documentation of command-line options and make it consistent between the output of ‘enchant -h’ and enchant(1). Allow -L to be combined with another mode; it is useless otherwise!
* src/pwl.c: fix buffer overflow in trie matchingReuben Thomas2020-01-181-1/+1
| | | | | | Add an extra byte to the ‘word’ buffer, as the check for transposed characters can look two characters (here, NULs, so one character per byte) past the end of the buffer.
* src/enchant.c: remove FILE * arg from print_help(): only stdout is usedReuben Thomas2020-01-181-3/+3
|
* src/pwl.c: treat PWL as text, not binaryReuben Thomas2019-09-011-3/+3
|
* src/pwl.c: cope with different line endings when reading PWLReuben Thomas2019-09-011-5/+3
| | | | | (Fixes a problem with the tests on Windows, which for some reason only manifested recently.)
* src/lib.c: use correct g_free for result of g_build_filename (not free)Reuben Thomas2019-06-301-1/+1
|
* tokenize_line: fix skipping back over non-word characters (fix #212)Reuben Thomas2019-06-171-11/+9
| | | | | | | We were truncating the string a byte at a time rather than a character at a time. Thanks to Juha Jeronen for the bug report.
* Add missing enchant-lsmod.1.in to EXTRA_DIST in srcReuben Thomas2018-01-031-1/+1
|
* Fix FSF addressRobert-André Mauchin2017-12-148-8/+8
|
* Make enchant_relocate public in the provider APIReuben Thomas2017-12-112-1/+11
| | | | As a result, bump version to 2.2.0.
* Fix use of relocatable so that relocatable.c is correctly builtReuben Thomas2017-12-111-1/+0
| | | | See http://lists.gnu.org/archive/html/bug-gnulib/2017-12/msg00012.html
* Make man pages parallel installable (fix #168)Reuben Thomas2017-12-074-13/+22
|
* enchant-lsmod.1 should not be in DISTCLEANFILESReuben Thomas2017-11-261-1/+1
|
* Support parallel installation of different Enchant versionsReuben Thomas2017-11-253-16/+18
| | | | | | Fixes #162. Thanks to Sébastien Wilmet. Followed instructions at https://developer.gnome.org/programming-guidelines/unstable/parallel-installability.html.en
* Overhaul enchant(1)Reuben Thomas2017-08-093-12/+33
| | | | | Generate the system paths in the man page at build time, and rewrite the section FILES AND DIRECTORIES.
* Fixes #146: add a man page for enchant-lsmodReuben Thomas2017-08-073-2/+37
|
* enchant-lsmod: simplify argument parsing, and add -word-charsReuben Thomas2017-08-071-64/+57
| | | | | -word-chars prints the value of enchant_dict_get_extra_word_characters for the given language’s dictionary.
* Deal with strdup failure in enchant_relocateReuben Thomas2017-07-311-6/+26
|
* Allow Enchant to be built without --enable-relocatableReuben Thomas2017-07-311-0/+4
| | | | | | | Thanks to Bruno Haible for pointing out the disadvantages (primarily for GNU system packagers) of forcing --enable-relocatable. Warn that the tests will fail for a non-relocatable build.
* Fixes #26: add support to enchant program for removing wordsReuben Thomas2017-07-251-0/+10
|
* lib.c: add myself to copyright list, make function declarations consistentReuben Thomas2017-07-251-34/+16
| | | | | Put all function parameter lists on one line except for the really long ones.
* enchant.c: improve commentReuben Thomas2017-07-251-1/+1
|
* Fix issue #17: add new APIs for per-dictionary character classesReuben Thomas2017-07-254-74/+131
| | | | | | | 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.
* enchant: remove the (unadvertised) support for ispell language namesReuben Thomas2017-07-251-78/+3
|
* Tidy up main library codeReuben Thomas2017-05-042-679/+307
| | | | | | | Mostly to use C99-style declarations, moving declarations just before first use. Also make some code simplifications.
* pwl.c: fix typo in commentReuben Thomas2017-04-301-1/+1
|
* Make provider list_dicts method mandatoryReuben Thomas2017-04-301-2/+2
| | | | | Now that all back-ends have one. This seems a sensible method to require, as the ability to list available languages is key for user interfaces.
* Get AppleSpell back-end working again, and add list_dicts methodReuben Thomas2017-04-303-4/+5
| | | | | | | | | | | | | | | 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.
* lib.c: merge some declarations with initializationsReuben Thomas2017-04-261-8/+4
|
* Require providers to define dispose methods, and one of dictionary_exists or ↵Reuben Thomas2017-04-251-28/+23
| | | | | | | | | | | list_dicts Both dispose and dispose_dicts are required. This makes it harder to have inadvertent leaks, and simplifies lib.c a little. Require one of dictionary_exists or list_dicts. This means that request_dict is no longer called by enchant_provider_dictonary_exists, so remove the tests for this case.
* Merge pull request #128 from rrthomas/masterReuben Thomas2017-04-215-28/+10
|\ | | | | Remove provider free_string_list method
| * Make some APIs return const char *, not char *Reuben Thomas2017-04-212-6/+4
| | | | | | | | Specifically enchant_{broker,dict}_get_error.
| * Remove enchant provider free_string_list methodReuben Thomas2017-04-214-18/+6
| | | | | | | | | | | | | | | | | | 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.
| * Remove _reserved fields for ABI compatibility attempt from enchant-provider.hReuben Thomas2017-04-181-4/+0
| | | | | | | | This is too fragile, and anyway it’s an internal API
* | Reserve in out_suggs to prevent reallocsViktor Oreshkin2017-04-191-0/+2
|/ | | | Signed-off-by: Viktor Oreshkin <stek29@users.noreply.github.com>
* enchant-provider.h: remove unneeded glib.h includeReuben Thomas2017-04-161-2/+1
| | | | Replace stdio.h with more accurate stddef.h for size_t
* Remove dllexport/import declspecs, use autotools' automatic import/export ↵Reuben Thomas2017-04-163-106/+62
| | | | for DLLs
* enchant-provider.h: remove obsolete inclusion of windows.hReuben Thomas2017-04-152-4/+4
| | | | …and put it in lib.c where it is needed
* enchant.c: update my copyright dates, and update descriptive commentReuben Thomas2017-04-151-10/+2
|
* Fix some memory leaks (thanks, Valgrind!)Reuben Thomas2017-04-152-38/+27
|
* Remove trivial but potentially wrong Objective C headerReuben Thomas2017-04-153-12/+4
| | | | | | | | size_t may not be unsigned long. Also get ssize_t reliably with help from gnulib. Finally, use dist_man_MANS to install man page, not EXTRA_DIST.
* Remove uspell provider (move to uspell repo)Reuben Thomas2017-04-152-2/+1
|
* 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.
* Fix buffer overrun in PWL trie-matchingReuben Thomas2017-04-141-7/+9
| | | | Thanks, Valgrind!
* pwl.c: fixes for portabilityReuben Thomas2017-04-111-5/+7
| | | | | | Testing on MinGW showed that a couple of file modes needed the “b” flag adding, and that a file positioning operation needed inserting between a read and a write.