From 05b4f5799816fa45e21e79c57e6088d365a9cbc1 Mon Sep 17 00:00:00 2001 From: DazedAnon Date: Sat, 14 Sep 2024 02:19:22 -0700 Subject: [PATCH] Update requirements.txt --- modules/kansen.py | 8 ++++---- requirements.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/kansen.py b/modules/kansen.py index 84bd7e5..32a778c 100644 --- a/modules/kansen.py +++ b/modules/kansen.py @@ -213,7 +213,7 @@ def translateTyrano(data, pbar, totalLines): if len(data) > i+1: while '[r]' in data[i+1]: if insertBool is True: - data[i] = '\d\n' + data[i] = r'\d\n' pbar.update(1) i += 1 matchList = re.findall(r'(.+?)\[r\]', data[i]) @@ -221,7 +221,7 @@ def translateTyrano(data, pbar, totalLines): currentGroup.append(matchList[0]) while '[pcms]' in data[i+1]: if insertBool is True: - data[i] = '\d\n' + data[i] = r'\d\n' pbar.update(1) i += 1 matchList = re.findall(r'(.+?)\[pcms\]', data[i]) @@ -229,7 +229,7 @@ def translateTyrano(data, pbar, totalLines): currentGroup.append(matchList[0]) while '[pcms_sel]' in data[i+1]: if insertBool is True: - data[i] = '\d\n' + data[i] = r'\d\n' pbar.update(1) i += 1 matchList = re.findall(r'(.+?)\[pcms_sel\]', data[i]) @@ -311,7 +311,7 @@ def translateTyrano(data, pbar, totalLines): textList = translatedText.split('\n') # Set Text - data[i] = '\d\n' + data[i] = r'\d\n' for line in textList: # Wordwrap Text if '[r]' not in line: diff --git a/requirements.txt b/requirements.txt index 5caa674..593dcca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,3 +5,4 @@ retry==0.9.2 ruamel.yaml==0.17.32 tiktoken==0.5.2 tqdm==4.65.0 +pillow==10.4.0