https://bugs.documentfoundation.org/show_bug.cgi?id=136306
László Németh <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #8 from László Németh <[email protected]> --- (In reply to Telesto from comment #6) > (In reply to Commit Notification from comment #5) > > László Németh committed a patch related to this issue. > > It has been pushed to "master": > > > > https://git.libreoffice.org/core/commit/ > > 57d79744c77eef96b4c2bd3b16e0a04317ffcf9e > > > > tdf#136306 offapi linguistic: add options to disable rule-based compounding > > I'm not noticing any differences. It the commit actually related to this bug? Previously the suggested words were accepted, as correct words. Now it's possible to reject them, including the English hyphenated compound words with the new spell-checking options. The next step will be to remove them from the suggestions, too. Hunspell 1.7.2 update improved the strange suggestions a little bit: if there is a dictionary or 2-word rule-based dictionary words, rule-based closed compound words with 3 or more words won't be suggested. Note: There is no ideal solution for the problem, especially because limiting the suggestions can be very slow. I've added a limitation for it, but I had to remove it, see the code part - rv = pAMgr->compound_check(word, 0, 0, 100, 0, NULL, (hentry**)&rwords, 0, 1, 0); // EXT + int info = (cpdsuggest == 1) ? SPELL_COMPOUND_2 : 0; + rv = pAMgr->compound_check(word, 0, 0, 100, 0, NULL, (hentry**)&rwords, 0, 1, &info); // EXT + // TODO filter 3-word or more compound words, as in spell() + // (it's too slow to call suggest() here for all possible compound words) in https://github.com/hunspell/hunspell/commit/ff3591b0f76950f13d73123d03a03edd9a892945 -- You are receiving this mail because: You are the assignee for the bug.
