mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-22 23:26:31 +00:00
Improve Japanese punctuation
This commit is contained in:
parent
29ddc2784d
commit
e20c1b1135
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ def improve_translation_formatting(source, translation, improve_punctuation=True
|
|||
source_last_char = source[len(source) - 1]
|
||||
translation_last_char = translation[len(translation) - 1]
|
||||
|
||||
punctuation_chars = ['!', '?', '.', ',', ';']
|
||||
punctuation_chars = ['!', '?', '.', ',', ';', '。']
|
||||
if source_last_char in punctuation_chars:
|
||||
if translation_last_char != source_last_char:
|
||||
if translation_last_char in punctuation_chars:
|
||||
|
|
Loading…
Reference in a new issue