Adding other punctuations

This commit is contained in:
The Gears of Progress 2026-01-29 22:20:56 -05:00
parent 5ce9a0c470
commit 894105fde9

View File

@ -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 + "_")