summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Additional tests for pwl edit distanceEric Albright2007-12-101-1/+139
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22367 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Fix pwl suggest. When a word is a prefix of another word and the edits the ↵Eric Albright2007-12-072-9/+110
| | | | | | word being searched is shorter, the prefixed word was not found. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22362 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Handle case where all suggestions are excludedEric Albright2007-11-292-0/+15
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22360 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Refresh pwl when external changes are madeEric Albright2007-11-294-52/+154
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22359 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* include gstdio in order to silence some build warningsDom Lachowicz2007-11-282-5/+7
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22350 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* ignore lines that are longer than the read buffer for pwlEric Albright2007-11-282-2/+44
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22346 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* treat lines that begin with # as comments in pwlEric Albright2007-11-282-100/+130
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22345 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Refactor: move code to add word to pwl file from enchant_pwl_add_to_trie ↵Eric Albright2007-11-281-21/+19
| | | | | | when flagged to enchant_pwl_add git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22344 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Add enchant_get_user_config_dir and change default location of providers, ↵Eric Albright2007-11-2812-337/+458
| | | | | | dictionaries, etc. on Windows ($APPDATA/enchant instead of $HOME/.enchant) git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22343 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* check for invalid dictionary tags (must only contain alphanumeric ASCII or ↵Eric Albright2007-11-274-53/+134
| | | | | | '_' after normalization) git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22336 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* use c commentEric Albright2007-11-201-1/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22322 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* add exclude functionality (enchant_dict_remove, ↵Eric Albright2007-11-2020-232/+1709
| | | | | | enchant_dict_remove_from_session, enchant_dict_is_removed) and mirrored api for pwl (enchant_dict_add for enchant_dict_add_to_pwl and enchant_dict_is_added for enchant_dict_is_in_session) git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22321 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* fix other case of memory leak introduced in r22318Eric Albright2007-11-201-0/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22320 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* fix memory leak introduced in r22318Eric Albright2007-11-201-0/+2
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22319 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Unicode normalization for comparing suggestion listsEric Albright2007-11-202-1/+10
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22318 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Unicode normalizationEric Albright2007-11-203-22/+158
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22317 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Take capitalization into account when suggesting a word in the pwl.Eric Albright2007-11-202-121/+504
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22316 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Take capitalization into account when checking a word in the pwl.Eric Albright2007-11-202-12/+232
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22315 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Edit distance function compare unichar char instead of utf8 charsEric Albright2007-11-183-5/+54
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22314 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Utf-8 validationEric Albright2007-11-1711-37/+254
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22313 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* ignore lines with invalid utf8 in pwlEric Albright2007-11-173-1/+48
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22312 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Use forced include to include config.h.win32 to define ssize_t in public API ↵Eric Albright2007-11-1714-2441/+2469
| | | | | | for Windows build git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22311 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Ignore UTF-8 BOM at beginning of pwlEric Albright2007-11-174-5/+81
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22310 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* since we now use g_fopen, bump glib version requirement to >= 2.6Dom Lachowicz2007-11-161-1/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22309 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Eric: config.h should not be included in public header files, only in ↵Dom Lachowicz2007-11-161-4/+0
| | | | | | internal headers or any source files git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22308 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* use g_fopen instead of fopen (make sure using single c runtime glib and ↵Eric Albright2007-11-1516-53/+153
| | | | | | libenchant for windows build) git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22307 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* unit tests over enchant.cEric Albright2007-11-1037-0/+5959
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22303 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Move comment to correct methodEric Albright2007-11-101-3/+3
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22302 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Free suggestions when provider allocates list but adds no contentEric Albright2007-11-101-131/+132
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22301 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* refactor enchant_dictionary_free_string_list to correctly clear session ↵Eric Albright2007-11-101-17/+9
| | | | | | error and handle null input git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22300 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* handle empty string inputsEric Albright2007-11-101-0/+12
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22299 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* Add config.h for windows buildEric Albright2007-11-1015-418/+437
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22298 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* only register valid providers (require identify and describe methods)Eric Albright2007-11-101-5/+50
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22297 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* win32 build fix: remove duplicate file content and and include added filesEric Albright2007-11-0913-2815/+5
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22296 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* The attached patch handles the case where a registry entry exists but itDom Lachowicz2007-11-061-39/+48
| | | | | | | is the empty string. From Eric Albright. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22290 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* don't need to add to session in add_to_personal()Dom Lachowicz2007-10-291-3/+0
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22226 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* avoid redundant calls to the provider DLLs. from eric albrightDom Lachowicz2007-10-291-1/+10
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22225 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* remove spurious enchant_pwl_check call, since enchant_session_contains ↵Dom Lachowicz2007-10-291-5/+0
| | | | | | already calls that. from eric albright git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22224 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* some documentation fixes and improvements. from eric albrightDom Lachowicz2007-10-291-6/+8
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22223 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* ensure that enchant_pwl_init_with_file() can actually create the requested ↵Dom Lachowicz2007-10-291-3/+26
| | | | | | file. otherwise, the pwl additions just get dropped on the floor. from eric albright. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22222 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* fixes # of suggestions returned when the personal word list returns a ↵Dom Lachowicz2007-10-291-0/+1
| | | | | | duplicate suggestion as the regular dictionary. from eric albright git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22221 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* remove some unnecessary codeDom Lachowicz2007-10-291-3/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22220 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* windows modules do not normally have versions in their filenames. from eric ↵Dom Lachowicz2007-10-291-1/+1
| | | | | | albright git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22219 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* normalize the language and country strings. patch from eric albrightDom Lachowicz2007-10-291-0/+45
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22218 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* list all known backends. from eric albrightDom Lachowicz2007-10-291-1/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22217 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* document the types of strings free_string_list() is supposed to handleDom Lachowicz2007-10-291-0/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22216 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* s/struct enchant_dict/EnchantDict. for consistency's sakeDom Lachowicz2007-10-291-1/+1
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22215 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* win32 socket library improvements. from eric albright.Dom Lachowicz2007-10-281-29/+54
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22213 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* remove dead variable. move variable declaration to the beginning of the ↵Dom Lachowicz2007-10-281-3/+3
| | | | | | block. from eric albright. git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22212 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
* more win32 build fixes from Eric AlbrightDom Lachowicz2007-10-275-18/+39
| | | | git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@22209 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6