Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618 2024-02-02 22:41:25 +08:00
parent 0342c0bd5e
commit 79866d9548
2 changed files with 3 additions and 2 deletions

View File

@ -12,9 +12,10 @@ class EPUBBookLoaderHelper:
self.context_flag = context_flag
def insert_trans(self, p, text, translation_style="", single_translate=False):
if text is None:
text = ""
if (
p.string is not None
and text is not None
and p.string.replace(" ", "").strip() == text.replace(" ", "").strip()
):
return

View File

@ -19,7 +19,7 @@ packages = [
setup(
name="bbook_maker",
description="The bilingual_book_maker is an AI translation tool that uses ChatGPT to assist users in creating multi-language versions of epub/txt files and books.",
version="0.7.7",
version="0.7.8",
license="MIT",
author="yihong0618",
author_email="zouzou0208@gmail.com",