summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Discard too long lines in dictionary file (#14)HEADmasterBartek Fabiszewski2017-11-276-4/+39
| | | | | | * Discard too long lines in dictionary file * Discard too long lines in dictionary file: add warning and test
* hnj_hyphen_hyphword: fix buffer overflow (#13)Bartek Fabiszewski2017-05-027-14/+58
| | | | | | | | * Fix buffer overflow * hnj_hyphen_hyphword: rewrite, improve overflow checking * hnj_hyphen_hyphword: add test to detect overflows
* Merge pull request #12 from ptomato/masterDimitrij Mijoski2016-11-191-8/+14
|\ | | | | More portable awk script
| * More portable awk scriptPhilip Chimento2016-11-121-8/+14
|/ | | | | gensub() is specific to gawk, this uses gsub() instead in order to build on platforms that don't have gawk such as macOS.
* Configure Travis CIPawel Hajdan, Jr2016-11-051-0/+18
|
* Fixes hunspell/hunspell#184oldissuesDimitrij Mijoski2016-09-141-12/+12
|
* Fixes hunspell/hunspell#17Dimitrij Mijoski2016-09-141-1/+1
|
* Merge pull request #8 from snaekobbi/windows-2phajdan2016-07-232-1/+7
|\ | | | | Build DLL using cross-compilation #2
| * Build DLL using cross-compilationBert Frees2016-07-232-1/+7
|/
* Merge pull request #6 from snaekobbi/substringsphajdan2016-05-2918-51176/+126
|\ | | | | substrings.pl: support comments (lines starting with %)
| * substrings.pl: support comments (lines starting with %)Bert Frees2016-05-041-37/+51
| |
| * substrings.pl: untabifyBert Frees2016-05-041-48/+48
| |
| * Some cleanupBert Frees2016-04-2417-51104/+40
|/ | | | | | - delete files that are generated by autotools - rename configure.in to configure.ac - .gitignore
* Add tests to the COMPOUNDHYPHENMIN=1 compound hyphenation fixesLászló Németh2015-08-2810-110/+487
| | | | Test patterns and cases written by Anne-Edgar WILKE
* Fix COMPOUNDHYPHENMIN=1 compound hyphenationAnne-Edgar WILKE2015-08-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FIRST BUG --------- Problem In a compound word, the word parts of two characters are never hyphenated. Example To reproduce the bug, just go to the directory hyphen-2.8.8 and do the following : echo "\ UTF-8 LEFTHYPHENMIN 1 RIGHTHYPHENMIN 1 COMPOUNDLEFTHYPHENMIN 1 COMPOUNDRIGHTHYPHENMIN 1 .post1 NEXTLEVEL e1 a1 " > hyphen.pat ./example hyphen.pat <(echo postea) The output is post=ea ; but it should be post=e=a. If you replace postea with posteaque in the command above, you get post=e=a=que, which is correct. Indeed, the component "eaque" is now five characters long, so it is hyphenated. If you replace postea with ea, you get e=a, which is also correct ; this is because ea is not a compound word. Solution In the file hyphen.c, line 966, "if (i - begin > 1)" must be replaced with "if (i - begin > 0)". Indeed, the word part is comprised between begin and i inclusively ; its length is i - begin + 1. So, if you want to hyphenate the words parts of length 2 and above, you have to check that i - begin + 1 >= 2, ie i - begin > 0. SECOND BUG ---------- Problem In a compound word, the word parts are never hyphenated between their second to last and their last character. Example To reproduce the bug, do the following : echo "\ UTF-8 LEFTHYPHENMIN 1 RIGHTHYPHENMIN 1 COMPOUNDLEFTHYPHENMIN 1 COMPOUNDRIGHTHYPHENMIN 1 1que. NEXTLEVEL e1 " > hyphen.pat ./example hyphen.pat <(echo meaque) The output is mea=que ; but it should be me=a=que. Again, if you replace meaque with mea, you get me=a, which is correct, because mea is not a compound word. If you replace meaque with eamque, you get e=am=que, as expected ; it shows that there is no similar bug with the first and the second character of word parts. Solution In the file hyphen.c, line 983, "for (j = 0; j < i - begin - 1; j++)" must be replaced with "for (j = 0; j < i - begin; j++)". Indeed, the word part has length i - begin + 1. So there are i - begin possible places for a hyphen. Thus j must take i - begin different values, ie go from 0 to i - begin - 1.
* sf#247 comparison between signed and unsignedCaolán McNamara2014-10-171-1/+1
|
* bump for hyphen 2.8.8Caolán McNamara2014-09-184-12/+142
|
* coverity#58283 patterns vs MAXPATHSCaolán McNamara2014-09-182-1/+4
|
* add missing #include <stdio.h> to hyphen.hLászló Németh2014-06-302-0/+6
|
* bump versionCaolán McNamara2014-06-273-12/+15
|
* Resolves: rhbz#925563 support aarch64Caolán McNamara2014-06-272-354/+537
|
* clang scan-build warningsCaolán McNamara2014-06-263-2/+4
|
* #54 hypen compile as C++, missing casts and variable namesCaolán McNamara2013-06-132-153/+158
|
* hjn_hyphen_load_file patch for sandboxing by Pawel HajdanLászló Németh2013-03-185-9/+24
|
* Set version 2.8.6László Németh2012-09-131-2/+2
|
* fdo#43931 (hard hyphen hyphenation) + fdo#54843 (rhmin fix)László Németh2012-09-136-7/+24
|
* bump to 2.8.5Caolán McNamara2012-07-123-12/+15
|
* fix bug found by MiklosCaolán McNamara2012-07-121-1/+1
|
* fix coverity warningsCaolán McNamara2012-06-2912-3375/+6155
|
* dump logs on failureCaolán McNamara2012-06-291-0/+2
|
* sync 2.8.3 into CVSCaolán McNamara2012-06-2923-6238/+3602
|
* update autotools fooCaolán McNamara2012-06-286-2779/+5266
|
* NOHYPHEN fixLászló Németh2010-12-014-4/+10
|
* NOHYPHEN feature, see README.compoundLászló Németh2010-11-2721-1574/+1278
|
* bumpCaolán McNamara2010-08-101-1/+1
|
* remove csutil.*, bit over kill for just one make check testCaolán McNamara2010-07-1915-5497/+2904
|
* use libtool dlopen invocation to ensure we test in-tree invocation during testsCaolán McNamara2010-07-172-2/+4
|
* strip down csutil.* to the bits that are usedCaolán McNamara2010-07-175-344/+175
|
* hun#2005643 tidy string functions, correctlyCaolán McNamara2010-04-071-1/+1
|
* add testSubDir to .cvsignoreCaolán McNamara2010-03-191-0/+1
|
* hun#2005643 tidy string functionsCaolán McNamara2010-03-042-3/+4
|
* fix spelling errorsCaolán McNamara2010-03-042-4/+4
|
* hun#1999737 add some malloc checksCaolán McNamara2010-03-042-12/+15
|
* hun#1724558 tidy substrings.c a littleCaolán McNamara2010-03-043-2/+8
|
* check return value of fgetsCaolán McNamara2010-03-041-4/+7
|
* add .cvsignoresCaolán McNamara2010-03-044-2464/+1622
|
* Initia importCaolán McNamara2010-03-04134-0/+76646