From e2c504bd01cef4905338d2490bf211243a9672f8 Mon Sep 17 00:00:00 2001 From: Dazed Date: Wed, 6 Dec 2023 11:12:46 -0600 Subject: [PATCH] Fix Estimator in anim --- modules/anim.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/anim.py b/modules/anim.py index 6419ce1..ef8480e 100644 --- a/modules/anim.py +++ b/modules/anim.py @@ -30,7 +30,7 @@ NAMESLIST = [] NAMES = False # Output a list of all the character names found BRFLAG = False # If the game uses
instead FIXTEXTWRAP = True # Overwrites textwrap -IGNORETLTEXT = False # Ignores all translated text. +IGNORETLTEXT = True # Ignores all translated text. MISMATCH = [] # Lists files that throw a mismatch error (Length of GPT list response is wrong) #tqdm Globals @@ -152,7 +152,12 @@ def translateJSON(keys, data, pbar): # If there isn't any Japanese in the text just skip if IGNORETLTEXT is True: - if not re.search(r'[一-龠]+|[ぁ-ゔ]+|[ァ-ヴー]+', str(batch)): + needTL = False + for i in range(len(batch)): + t = data[batch[i]] + if t == "": + needTL = True + if needTL is False: pbar.update(1) continue