From 2ad1740a465bdee47e4464289e250caeb7094692 Mon Sep 17 00:00:00 2001 From: wh1te-moon Date: Tue, 7 May 2024 11:11:23 +0800 Subject: [PATCH] update comment and rename file --- src/edge_tts/submaker.py | 2 -- ...ith_cn_subtitles.py => streaming_with_new_subtitles_test.py} | 0 2 files changed, 2 deletions(-) rename src/{streaming_with_cn_subtitles.py => streaming_with_new_subtitles_test.py} (100%) diff --git a/src/edge_tts/submaker.py b/src/edge_tts/submaker.py index 9a4a30b..c469b9c 100644 --- a/src/edge_tts/submaker.py +++ b/src/edge_tts/submaker.py @@ -145,9 +145,7 @@ def generate_subs_based_on_punc(self, text) -> str: # return text_list def clause(self) -> list[str]: - # 构建正则表达式模式,匹配任意一个或多个标点符号 pattern = '(' + '|'.join(punc for punc in PUNCTUATION) + ')' - # 使用正则表达式分割文本 text_list = re.split(pattern, text) index = 0 diff --git a/src/streaming_with_cn_subtitles.py b/src/streaming_with_new_subtitles_test.py similarity index 100% rename from src/streaming_with_cn_subtitles.py rename to src/streaming_with_new_subtitles_test.py