summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2018-01-17 20:10:41 +0100
committerLászló Németh <nemeth@numbertext.org>2018-01-17 20:12:42 +0100
commit91068a71b584c7a096eb99e5e2cf440a00d0e5e3 (patch)
tree0c7cdc9f4605d74ee459ff76c55e65f71d0847f8
parenta7860138831a9bbd1f91ab8cb2083a9431f0e3c7 (diff)
- fix suggestions for bad Hungarian dates
(3-éhez -> 3-ához, 4-ához -> 4-éhez)
-rw-r--r--src/hu_HU/hu_HU.cfg2
-rw-r--r--src/hu_HU/hu_HU.dat4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/hu_HU/hu_HU.cfg b/src/hu_HU/hu_HU.cfg
index ec715ee..6803d4d 100644
--- a/src/hu_HU/hu_HU.cfg
+++ b/src/hu_HU/hu_HU.cfg
@@ -2,7 +2,7 @@
lang = hu_HU
locales = hu_HU
name = Lightproof grammar checker (magyar)
-version = 1.6.1
+version = 1.6.2
author = Laszlo Nemeth
provider = FSF.hu
implname = lightproof_hu
diff --git a/src/hu_HU/hu_HU.dat b/src/hu_HU/hu_HU.dat
index e49b3cd..2eb6ccf 100644
--- a/src/hu_HU/hu_HU.dat
+++ b/src/hu_HU/hu_HU.dat
@@ -293,8 +293,8 @@ nu óta|előtti?|utáni?|közötti?
# 2009.05.12. -> 2009. 05. 12.
# Hibás dátum: 1-a, 1-án, 2-e, 2-én, 2-je, 2-jén -> 1-e, 1-én, 2-a, 2-án, 2-a, 2-án, de! but-2-én
-(?<=\s)\b([14579]|10|[12][124579]|31)(-a|-á\w+) <- stem("2" + \2) == ["2"] -> = \1 + \2.replace("a", "e").replace(u"á", u"é").replace(u"ó", u"ő") # Hibás dátum?
-(?<=\s)\b([2368]|[23]0|[12][368])(-j?e|-j?é\w+) <- stem("1" + \2) == ["1"] -> = \1 + \2.replace("j", "").replace("e", "a").replace(u"é", u"á").replace(u"ő", u"ó") # Hibás dátum?
+(?<=\s)\b([14579]|10|[12][124579]|31)(-a|-á\w+) <- stem("2" + \2) == ["2"] -> = \1 + \2.replace("a", "e").replace(u"á", u"é").replace("o", "e").replace(u"ó", u"ő") # Hibás dátum?
+(?<=\s)\b([2368]|[23]0|[12][368])(-j?e|-j?é\w+) <- stem("1" + \2) == ["1"] -> = \1 + \2.replace("j", "").replace("e", "a").replace("haz", "hoz").replace(u"é", u"á").replace(u"ő", u"ó") # Hibás dátum?
########################## stb. ######################