1 From 15b2cde4f01706f0a648518a5cfc57394d015448 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20N=C3=A9meth?= <nemeth@numbertext.org>
3 Date: Thu, 12 Oct 2017 16:47:57 +0200
4 Subject: [PATCH] fix compound handling for new Hungarian orthography
6 Extend partial fix in commit 42807f970ac2d65f0d13a7c57eb454b210e92240.
8 src/hunspell/affixmgr.cxx | 5 ++++-
9 1 file changed, 4 insertions(+), 1 deletion(-)
11 diff --git a/src/hunspell/affixmgr.cxx b/src/hunspell/affixmgr.cxx
12 index ffce7bb..ea0f0fc 100644
13 --- a/src/hunspell/affixmgr.cxx
14 +++ b/src/hunspell/affixmgr.cxx
15 @@ -1990,6 +1990,8 @@ struct hentry* AffixMgr::compound_check(const std::string& word,
16 std::string tmp(sfxappnd);
18 numsyllable -= get_syllable(tmp) + sfxextra;
20 + numsyllable -= sfxextra;
23 // + 1 word, if syllable number of the prefix > 1 (hungarian
24 @@ -2024,7 +2026,6 @@ struct hentry* AffixMgr::compound_check(const std::string& word,
25 (TESTAFF(rv->astr, compoundroot, rv->alen))) {
29 // second word is acceptable, as a word with prefix or/and suffix?
30 // hungarian conventions: compounding is acceptable,
31 // when compound forms consist 2 word, otherwise
32 @@ -2553,6 +2554,8 @@ int AffixMgr::compound_check_morph(const char* word,
33 std::string tmp(sfxappnd);
35 numsyllable -= get_syllable(tmp) + sfxextra;
37 + numsyllable -= sfxextra;
40 // + 1 word, if syllable number of the prefix > 1 (hungarian