mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-03-21 17:34:42 -05:00
Fixing full width spaces
This commit is contained in:
parent
5447b39569
commit
5536c5690b
|
|
@ -225,9 +225,11 @@ 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)
|
||||
spaces = [' ', ' ']
|
||||
puncts = ['.', '?', '!', '。', '!', '?']
|
||||
for punct in puncts:
|
||||
line = line.replace(punct + " ", punct + "_")
|
||||
for space in spaces:
|
||||
for punct in puncts:
|
||||
line = line.replace(punct + space, punct + "_")
|
||||
|
||||
split_sents = split_into_sentences(line)
|
||||
index = 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user