Adjust regex for modules
This commit is contained in:
parent
6480d55315
commit
88b13fece1
2 changed files with 2 additions and 2 deletions
|
|
@ -213,7 +213,7 @@ def translateRegex(data, filename, translatedList):
|
|||
|
||||
while i < len(data):
|
||||
voice = False
|
||||
lineRegexText = r'●(?:「| |()(.+?)(?:[」)]|$)'
|
||||
lineRegexText = r'●(?:「| |()+(.+?)(?:[」)]|$)+'
|
||||
lineRegexSpeaker = r"●.+●([^ 「(].+)"
|
||||
choiceRegex = r"\$menu_item.+?,(.*?),"
|
||||
titleRegex = r"title\s'(.*)'$"
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ def translateTxt(data, filename, translatedList):
|
|||
stringList = None
|
||||
|
||||
# Remove speaker
|
||||
translatedText = re.sub(r"^\[?(.+?)\]?\s?[|:]\s?", "", translatedText)
|
||||
translatedText = re.sub(r"(^\[.+?\]\s?[|:]\s?)", "", translatedText)
|
||||
|
||||
# # Textwrap
|
||||
# translatedText = dazedwrap.wrapText(translatedText, width=WIDTH)
|
||||
|
|
|
|||
Loading…
Reference in a new issue