Extend rplanguage sentence detection. Resolve #2075

This commit is contained in:
Griatch 2020-03-21 19:01:02 +01:00
parent 4c648d80f8
commit f5917378d2

View file

@ -331,7 +331,7 @@ class LanguageHandler(DefaultScript):
# find out what preceeded this word
wpos = match.start()
preceeding = match.string[:wpos].strip()
start_sentence = preceeding.endswith(".") or not preceeding
start_sentence = preceeding.endswith((".", "!", "?")) or not preceeding
# make up translation on the fly. Length can
# vary from un-translated word.