Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Discard too long lines in dictionary file (#14)HEADmaster | Bartek Fabiszewski | 2017-11-27 | 6 | -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 Fabiszewski | 2017-05-02 | 7 | -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/master | Dimitrij Mijoski | 2016-11-19 | 1 | -8/+14 |
|\ | | | | | More portable awk script | ||||
| * | More portable awk script | Philip Chimento | 2016-11-12 | 1 | -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 CI | Pawel Hajdan, Jr | 2016-11-05 | 1 | -0/+18 |
| | |||||
* | Fixes hunspell/hunspell#184oldissues | Dimitrij Mijoski | 2016-09-14 | 1 | -12/+12 |
| | |||||
* | Fixes hunspell/hunspell#17 | Dimitrij Mijoski | 2016-09-14 | 1 | -1/+1 |
| | |||||
* | Merge pull request #8 from snaekobbi/windows-2 | phajdan | 2016-07-23 | 2 | -1/+7 |
|\ | | | | | Build DLL using cross-compilation #2 | ||||
| * | Build DLL using cross-compilation | Bert Frees | 2016-07-23 | 2 | -1/+7 |
|/ | |||||
* | Merge pull request #6 from snaekobbi/substrings | phajdan | 2016-05-29 | 18 | -51176/+126 |
|\ | | | | | substrings.pl: support comments (lines starting with %) | ||||
| * | substrings.pl: support comments (lines starting with %) | Bert Frees | 2016-05-04 | 1 | -37/+51 |
| | | |||||
| * | substrings.pl: untabify | Bert Frees | 2016-05-04 | 1 | -48/+48 |
| | | |||||
| * | Some cleanup | Bert Frees | 2016-04-24 | 17 | -51104/+40 |
|/ | | | | | | - delete files that are generated by autotools - rename configure.in to configure.ac - .gitignore | ||||
* | Add tests to the COMPOUNDHYPHENMIN=1 compound hyphenation fixes | László Németh | 2015-08-28 | 10 | -110/+487 |
| | | | | Test patterns and cases written by Anne-Edgar WILKE | ||||
* | Fix COMPOUNDHYPHENMIN=1 compound hyphenation | Anne-Edgar WILKE | 2015-08-28 | 1 | -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 unsigned | Caolán McNamara | 2014-10-17 | 1 | -1/+1 |
| | |||||
* | bump for hyphen 2.8.8 | Caolán McNamara | 2014-09-18 | 4 | -12/+142 |
| | |||||
* | coverity#58283 patterns vs MAXPATHS | Caolán McNamara | 2014-09-18 | 2 | -1/+4 |
| | |||||
* | add missing #include <stdio.h> to hyphen.h | László Németh | 2014-06-30 | 2 | -0/+6 |
| | |||||
* | bump version | Caolán McNamara | 2014-06-27 | 3 | -12/+15 |
| | |||||
* | Resolves: rhbz#925563 support aarch64 | Caolán McNamara | 2014-06-27 | 2 | -354/+537 |
| | |||||
* | clang scan-build warnings | Caolán McNamara | 2014-06-26 | 3 | -2/+4 |
| | |||||
* | #54 hypen compile as C++, missing casts and variable names | Caolán McNamara | 2013-06-13 | 2 | -153/+158 |
| | |||||
* | hjn_hyphen_load_file patch for sandboxing by Pawel Hajdan | László Németh | 2013-03-18 | 5 | -9/+24 |
| | |||||
* | Set version 2.8.6 | László Németh | 2012-09-13 | 1 | -2/+2 |
| | |||||
* | fdo#43931 (hard hyphen hyphenation) + fdo#54843 (rhmin fix) | László Németh | 2012-09-13 | 6 | -7/+24 |
| | |||||
* | bump to 2.8.5 | Caolán McNamara | 2012-07-12 | 3 | -12/+15 |
| | |||||
* | fix bug found by Miklos | Caolán McNamara | 2012-07-12 | 1 | -1/+1 |
| | |||||
* | fix coverity warnings | Caolán McNamara | 2012-06-29 | 12 | -3375/+6155 |
| | |||||
* | dump logs on failure | Caolán McNamara | 2012-06-29 | 1 | -0/+2 |
| | |||||
* | sync 2.8.3 into CVS | Caolán McNamara | 2012-06-29 | 23 | -6238/+3602 |
| | |||||
* | update autotools foo | Caolán McNamara | 2012-06-28 | 6 | -2779/+5266 |
| | |||||
* | NOHYPHEN fix | László Németh | 2010-12-01 | 4 | -4/+10 |
| | |||||
* | NOHYPHEN feature, see README.compound | László Németh | 2010-11-27 | 21 | -1574/+1278 |
| | |||||
* | bump | Caolán McNamara | 2010-08-10 | 1 | -1/+1 |
| | |||||
* | remove csutil.*, bit over kill for just one make check test | Caolán McNamara | 2010-07-19 | 15 | -5497/+2904 |
| | |||||
* | use libtool dlopen invocation to ensure we test in-tree invocation during tests | Caolán McNamara | 2010-07-17 | 2 | -2/+4 |
| | |||||
* | strip down csutil.* to the bits that are used | Caolán McNamara | 2010-07-17 | 5 | -344/+175 |
| | |||||
* | hun#2005643 tidy string functions, correctly | Caolán McNamara | 2010-04-07 | 1 | -1/+1 |
| | |||||
* | add testSubDir to .cvsignore | Caolán McNamara | 2010-03-19 | 1 | -0/+1 |
| | |||||
* | hun#2005643 tidy string functions | Caolán McNamara | 2010-03-04 | 2 | -3/+4 |
| | |||||
* | fix spelling errors | Caolán McNamara | 2010-03-04 | 2 | -4/+4 |
| | |||||
* | hun#1999737 add some malloc checks | Caolán McNamara | 2010-03-04 | 2 | -12/+15 |
| | |||||
* | hun#1724558 tidy substrings.c a little | Caolán McNamara | 2010-03-04 | 3 | -2/+8 |
| | |||||
* | check return value of fgets | Caolán McNamara | 2010-03-04 | 1 | -4/+7 |
| | |||||
* | add .cvsignores | Caolán McNamara | 2010-03-04 | 4 | -2464/+1622 |
| | |||||
* | Initia import | Caolán McNamara | 2010-03-04 | 134 | -0/+76646 |