Commit cd735858 authored by Volker Krause's avatar Volker Krause Committed by David Faure
Browse files

Parse Russian long-form time ranges

parent e50c9edd
......@@ -315,6 +315,7 @@ private Q_SLOTS:
T2("Понедельник - Суббота 09:00 - 21:00", "Mo-Sa 09:00-21:00");
T2("Пон-Пт 08:00-20:00, Суб 08:00-19:00", "Mo-Fr 08:00-20:00, Sa 08:00-19:00");
T2("Ноябрь-Март", "Nov-Mar");
T2("с 08:30 до 23:00", "08:30-23:00");
// recovery from wrong rule separators
T2("Fr,Sa 10:00-02:00,Su 10:00-20:00", "Fr,Sa 10:00-02:00, Su 10:00-20:00");
......
......@@ -296,7 +296,8 @@ Minggu { yylval->num = 7; return T_WEEKDAY; }
、|and|et|e|y|und|& { return T_ADDITIONAL_RULE_SEPARATOR; }
/* skip filler words */
from|von|du|de|le|das|分|uhr|"en continu" {}
/* Note: the 'с' is not an ASCII 'c'! */
from|von|du|de|le|das|分|uhr|"en continu"|с {}
. {
//printf("unexpected character: %s at %d:%d\n", yytext, yylloc->first_line, yylloc->first_column);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment