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