Commit 4a07848d authored by Michal Čihař's avatar Michal Čihař

Ignore semicolon in Japanese for colon/stop checks (issue #44)

parent 4caa5dab
......@@ -303,7 +303,7 @@ class EndStopCheck(Check):
def check_single(self, source, target, flags, language, unit):
if len(source) == 1 and len(target) == 1:
return False
if self.is_language(language, ['ja']) and source[-1] == ':':
if self.is_language(language, ['ja']) and source[-1] in [':', ';']:
# Japanese sentence might need to end with full stop
# in case it's used before list.
return self.check_chars(source, target, -1, [u':', u':', u'.', u'。'])
......@@ -329,7 +329,7 @@ class EndColonCheck(Check):
if self.is_language(language, ['ja']):
# Japanese sentence might need to end with full stop
# in case it's used before list.
if source[-1] == ':':
if source[-1] in [':', ';']:
return self.check_chars(source, target, -1, [u':', u':', u'.', u'。'])
return False
return self.check_chars(source, target, -1, [u':', u':'])
......
Markdown is supported
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