checkcompoundrep2.aff 658 B

123456789101112131415161718
  1. # check fix of regression of commit ce8071b9d3312b3599714fc36fcc3fac11cdae97:
  2. # Return value of string.find() was ignored in AffixMgr::cpdrep_check(),
  3. # applying REP replacements at all positions before the last matching position.
  4. #
  5. # For example a regression in Hungarian spell checking:
  6. #
  7. # Correct closed compound word "fa+ajtó" was rejected: the ó -> o replacement
  8. # applied on the second character position, replacing "aa" with "o" there
  9. # (2-character length of UTF-8 character "ó"), and the result "fojtó"
  10. # is a correct dictionary word, which was the reason for rejection.
  11. SET UTF-8
  12. COMPOUNDMIN 2
  13. COMPOUNDFLAG x
  14. CHECKCOMPOUNDREP
  15. REP 1
  16. REP ó o