From a4f156b174f58781c1ffd6dc7e7aa9b2ceee6739 Mon Sep 17 00:00:00 2001 From: Willem Delbare Date: Sat, 13 Sep 2014 15:33:08 +0200 Subject: [PATCH] added extra splitter expressions for Dutch, French, German --- talon/quotations.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/talon/quotations.py b/talon/quotations.py index 52086dc..7278513 100644 --- a/talon/quotations.py +++ b/talon/quotations.py @@ -73,6 +73,9 @@ SPLITTER_PATTERNS = [ re.compile("(\d+/\d+/\d+|\d+\.\d+\.\d+).*@", re.VERBOSE), RE_ON_DATE_SMB_WROTE, re.compile('(_+\r?\n)?[\s]*(:?[*]?From|Date):[*]? .*'), + re.compile('(_+\r?\n)?[\s]*(:?[*]?Van|Datum):[*]? .*'), + re.compile('(_+\r?\n)?[\s]*(:?[*]?De|Date):[*]? .*'), + re.compile('(_+\r?\n)?[\s]*(:?[*]?Von|Datum):[*]? .*'), re.compile('\S{3,10}, \d\d? \S{3,10} 20\d\d,? \d\d?:\d\d(:\d\d)?' '( \S+){3,6}@\S+:') ]