Quality is slippin. Time to fix
This commit is contained in:
parent
8701bcfd8c
commit
74ec6089f3
2 changed files with 9 additions and 17 deletions
|
|
@ -68,7 +68,7 @@ LEAVE = False
|
|||
|
||||
# Dialogue / Scroll / Choices (Main Codes)
|
||||
CODE401 = True
|
||||
CODE405 = True
|
||||
CODE405 = False
|
||||
CODE102 = True
|
||||
|
||||
# Optional
|
||||
|
|
@ -1155,19 +1155,6 @@ def searchCodes(page, pbar, jobList, filename):
|
|||
finalJAString = finalJAString.replace("\\ac", "")
|
||||
CLFlag = True
|
||||
|
||||
# If there isn't any Japanese in the text just skip
|
||||
if IGNORETLTEXT is True:
|
||||
if not re.search(
|
||||
r"[一-龠ぁ-ゔァ-ヴーa-zA-Z0-9\uFF61-\uFF9F]+", finalJAString
|
||||
):
|
||||
# Keep textHistory list at length maxHistory
|
||||
textHistory.append('"' + finalJAString + '"')
|
||||
if len(textHistory) > maxHistory:
|
||||
textHistory.pop(0)
|
||||
currentGroup = []
|
||||
i += 1
|
||||
continue
|
||||
|
||||
# 1st Passthrough (Grabbing Data)
|
||||
if setData == False:
|
||||
if finalJAString != "":
|
||||
|
|
@ -1183,6 +1170,11 @@ def searchCodes(page, pbar, jobList, filename):
|
|||
currentGroup = []
|
||||
syncIndex = i + 1
|
||||
|
||||
# Keep textHistory list at length maxHistory
|
||||
textHistory.append('"' + finalJAString + '"')
|
||||
if len(textHistory) > maxHistory:
|
||||
textHistory.pop(0)
|
||||
|
||||
# 2nd Passthrough (Setting Data)
|
||||
else:
|
||||
# Grab Translated String
|
||||
|
|
@ -2015,9 +2007,8 @@ def searchCodes(page, pbar, jobList, filename):
|
|||
if len(textHistory) > 0:
|
||||
response = translateGPT(
|
||||
choiceList,
|
||||
"This will be a dialogue option. Previous text for context: "
|
||||
+ textHistory[len(textHistory) - 1]
|
||||
+ "\n\nThis will be a dialogue option",
|
||||
"This will be a dialogue option.\nPrevious text for context: "
|
||||
+ str(textHistory),
|
||||
True,
|
||||
)
|
||||
translatedTextList = response[0]
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ ME 音量 (ME Volume)
|
|||
# RPG
|
||||
エクスポーション (EX Potion)
|
||||
アスカロン (Ascalon)
|
||||
刀 (Sword)
|
||||
|
||||
# Terms
|
||||
悪魔 (Devil)
|
||||
|
|
|
|||
Loading…
Reference in a new issue