From 894105fde9bbda3172756e59a19e7e539eeebeb6 Mon Sep 17 00:00:00 2001 From: The Gears of Progress Date: Thu, 29 Jan 2026 22:20:56 -0500 Subject: [PATCH] Adding other punctuations --- text_helper/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/text_helper/main.py b/text_helper/main.py index 796e1bf..52cab84 100755 --- a/text_helper/main.py +++ b/text_helper/main.py @@ -167,7 +167,6 @@ def split_sentence_into_lines(sentence, offset, pixelsPerChar, pixelsInLine, lan lineLength = 0 offset = 0 - currLine = currLine.replace("。 ", "。") # Get rid of the space after the Japanese peroid outStr += currLine return lineLength + offset, lineCount, outStr @@ -226,7 +225,7 @@ def convert_item(ogDict, lang): # Change all the punctuation marks followed by spaces into being followed by _ . # These will end up being replaced by spaces anyway in the end (but ignore the error) - puncts = ['.'] + puncts = ['.', '?', '!', '。', '!', '?'] for punct in puncts: line = line.replace(punct + " ", punct + "_")