From ae861527bbc8380ff1ca36cb76deb6669e0159fa Mon Sep 17 00:00:00 2001 From: Erich Schubert Date: Mon, 23 Apr 2018 23:08:45 +0200 Subject: [PATCH] Fix for croatian rules Trivial syntax error. --- resources/croatian/rules/resources_rules_daterules.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/croatian/rules/resources_rules_daterules.txt b/resources/croatian/rules/resources_rules_daterules.txt index 781aa422..5d195afd 100755 --- a/resources/croatian/rules/resources_rules_daterules.txt +++ b/resources/croatian/rules/resources_rules_daterules.txt @@ -54,10 +54,10 @@ RULENAME="date_r4a1",EXTRACTION="(%reDayNumber\.)(-| - | na | \/ |\/| do | i | i RULENAME="date_r4a2",EXTRACTION="(%reDayNumber\.)(-| - | na | \/ |\/| do | i | ili )(%reDayNumber\.) (%reMonthLong|%reMonthShort)( ?,)? %reYear4Digit\.?",NORM_VALUE="group(10)-%normMonth(group(6))-%normDay(group(4))",OFFSET="group(4)-group(10)" RULENAME="date_r4b1",EXTRACTION="(%reDayNumber\.)(-| - | na | \/ |\/| do | i | ili )(%reDayNumber\.) (%reMonthLong|%reMonthShort)",NORM_VALUE="UNDEF-this-year-%normMonth(group(6))-%normDay(group(1))",OFFSET="group(0)-group(1)" RULENAME="date_r4b2",EXTRACTION="(%reDayNumber\.)(-| - | na | \/ |\/| do | i | ili )(%reDayNumber\.) (%reMonthLong|%reMonthShort)",NORM_VALUE="UNDEF-this-year-%normMonth(group(6))-%normDay(group(4))",OFFSET="group(4)-group(6)" -RULENAME="date_r4c",EXTRACTION="%reDayNumberTh\.? %(reMonthLong|%reMonthShort)[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? %(reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(10)-%normMonth(group(2))-%normDay(group(1))",OFFSET="group(0)-group(4)" -RULENAME="date_r4d",EXTRACTION="%reDayNumberTh\.? %(reMonthLong|%reMonthShort)[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? %(reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(10)-%normMonth(group(7))-%normDay(group(6))",OFFSET="group(6)-group(10)" -RULENAME="date_r4e",EXTRACTION="%reDayNumberTh\.? %(reMonthLong|%reMonthShort) %reYear4Digit\.?[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? %(reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(5)-%normMonth(group(2))-%normDay(group(1))",OFFSET="group(0)-group(5)" -RULENAME="date_r4f",EXTRACTION="%reDayNumberTh\.? %(reMonthLong|%reMonthShort) %reYear4Digit\.?[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? %(reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(11)-%normMonth(group(8))-%normDay(group(7))",OFFSET="group(7)-group(11)" +RULENAME="date_r4c",EXTRACTION="%reDayNumberTh\.? (%reMonthLong|%reMonthShort)[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? (%reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(10)-%normMonth(group(2))-%normDay(group(1))",OFFSET="group(0)-group(4)" +RULENAME="date_r4d",EXTRACTION="%reDayNumberTh\.? (%reMonthLong|%reMonthShort)[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? (%reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(10)-%normMonth(group(7))-%normDay(group(6))",OFFSET="group(6)-group(10)" +RULENAME="date_r4e",EXTRACTION="%reDayNumberTh\.? (%reMonthLong|%reMonthShort) %reYear4Digit\.?[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? (%reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(5)-%normMonth(group(2))-%normDay(group(1))",OFFSET="group(0)-group(5)" +RULENAME="date_r4f",EXTRACTION="%reDayNumberTh\.? (%reMonthLong|%reMonthShort) %reYear4Digit\.?[\s]?(-| - | na | \/ |\/| do | i | ili )[\s]?%reDayNumberTh\.? (%reMonthLong|%reMonthShort)([\s]?,)? %reYear4Digit\.?",NORM_VALUE="group(11)-%normMonth(group(8))-%normDay(group(7))",OFFSET="group(7)-group(11)" // date_r5 // EXAMPLE r5a_1: sutra