Fix for text.py

This commit is contained in:
dazedanon 2025-09-14 12:14:59 -05:00
parent 7ce2b309f5
commit d73668b913
2 changed files with 4 additions and 4 deletions

View file

@ -213,8 +213,8 @@ def translateRegex(data, filename, translatedList):
while i < len(data):
voice = False
lineRegexText = r'"profile": "(.*)"'
lineRegexSpeaker = r"◆A.+?◆(.+)"
lineRegexText = r'●(?:「| |)(.+?)(?:[」)]|$)'
lineRegexSpeaker = r"●.+●([^ 「(].+)"
choiceRegex = r"\$menu_item.+?,(.*?),"
titleRegex = r"title\s'(.*)'$"
speaker = ""
@ -376,7 +376,7 @@ def translateRegex(data, filename, translatedList):
MISMATCH.append(FILENAME)
# Set Strings
translateRegex(data, filename, [stringListTL, choiceListTL])
translateRegex(data, filename, [stringListTL, choiceListTL])
return tokens
# Save some money and enter the character before translation

View file

@ -297,7 +297,7 @@ def translateTxt(data, filename, translatedList):
MISMATCH.append(FILENAME)
# Set Strings
translateTxt(data, filename, [stringListTL, choiceListTL])
translateTxt(data, filename, [stringListTL, choiceListTL])
return tokens
# Save some money and enter the character before translation