Bläddra i källkod

release 1.8.9

Byaidu 1 år sedan
förälder
incheckning
e44fc833d0
4 ändrade filer med 4 tillägg och 4 borttagningar
  1. 1 1
      pdf2zh/__init__.py
  2. 1 1
      pdf2zh/converter.py
  3. 1 1
      pdf2zh/gui.py
  4. 1 1
      pyproject.toml

+ 1 - 1
pdf2zh/__init__.py

@@ -3,6 +3,6 @@ from pdf2zh.high_level import translate, translate_stream
 
 log = logging.getLogger(__name__)
 
-__version__ = "1.8.8"
+__version__ = "1.8.9"
 __author__ = "Byaidu"
 __all__ = ["translate", "translate_stream"]

+ 1 - 1
pdf2zh/converter.py

@@ -377,7 +377,7 @@ class TranslateConverter(PDFConverterEx):
         # 根据目标语言获取默认行距
         LANG_LINEHEIGHT_MAP = {
             "zh-cn": 1.4, "zh-tw": 1.4, "zh-hans": 1.4, "zh-hant": 1.4, "zh": 1.4,
-            "ja": 1.4, "ko": 1.2, "en": 1.2, "ar": 1.0, "ru": 0.8, "uk": 0.8, "ta": 0.8
+            "ja": 1.1, "ko": 1.2, "en": 1.2, "ar": 1.0, "ru": 0.8, "uk": 0.8, "ta": 0.8
         }
         default_line_height = LANG_LINEHEIGHT_MAP.get(self.translator.lang_out.lower(), 1.1) # 小语种默认1.1
         _x, _y = 0, 0

+ 1 - 1
pdf2zh/gui.py

@@ -435,7 +435,7 @@ with gr.Blocks(
             with gr.Accordion("Open for More Experimental Options!", open=False):
                 gr.Markdown("#### Experimental")
                 threads = gr.Textbox(
-                    label="number of threads", interactive=True, value="1"
+                    label="number of threads", interactive=True, value="4"
                 )
                 prompt = gr.Textbox(
                     label="Custom Prompt for llm", interactive=True, visible=False

+ 1 - 1
pyproject.toml

@@ -1,6 +1,6 @@
 [project]
 name = "pdf2zh"
-version = "1.8.8"
+version = "1.8.9"
 description = "Latex PDF Translator"
 authors = [{ name = "Byaidu", email = "byaidux@gmail.com" }]
 license = "AGPL-3.0"