diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 990537d..d4f132d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -5,8 +5,11 @@
+
-
+
+
+
@@ -16,8 +19,8 @@
@@ -52,6 +55,7 @@
"Python.PDFtranslater (2).executor": "Run",
"Python.agent.executor": "Debug",
"Python.agent_utils.executor": "Run",
+ "Python.app (1).executor": "Run",
"Python.app.executor": "Run",
"Python.app2.executor": "Run",
"Python.convert.executor": "Run",
@@ -94,7 +98,7 @@
-
+
@@ -260,32 +264,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -309,6 +287,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -378,29 +379,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -546,11 +524,11 @@
+
-
@@ -615,6 +593,7 @@
+
@@ -636,6 +615,7 @@
+
diff --git a/app.spec b/app.spec
index dcd6ab6..5f534f2 100644
--- a/app.spec
+++ b/app.spec
@@ -30,7 +30,7 @@ exe = EXE(
a.scripts,
[],
exclude_binaries=True,
- name='app',
+ name='DocuTranslate',
debug=False,
bootloader_ignore_signals=False,
strip=False,
diff --git a/docutranslate/agents/markdown_agent.py b/docutranslate/agents/markdown_agent.py
index e5c1562..30523f9 100644
--- a/docutranslate/agents/markdown_agent.py
+++ b/docutranslate/agents/markdown_agent.py
@@ -19,7 +19,7 @@ NO explanations. NO notes.
形如的占位符不要改变
code、latex和HTML保持结构
所有公式(包括短公式)都应该是latex公式
-修复不正确的latex公式,包括要被$正确包裹等
+修复不正确的latex公式,包括要被$正确包裹以构造合法latex表达式
# 输出
修正后的markdown纯文本(不是markdown代码块)
# 示例
@@ -47,8 +47,8 @@ class MDTranslateAgent(Agent):
翻译输入的markdown文本
目标语言{to_lang}
# 要求
-如果翻译不必要(例如专有名词、代码等),则返回原文。
-没有解释,没有注释。
+如果翻译不必要,则返回原文。
+不要解释,不要注释。
不要修改标题的级别(如一级标题不要修改为二级标题)
引用的参考文献和其作者不要翻译
形如的占位符不要改变
@@ -67,11 +67,11 @@ hello, what's your name?
c_0+1=2
输出:
$c_0+1=2$
-## 引用的参考文献要保持原文
-输入:
+## 引用的参考文献要保持原文不要翻译
+输入:【假设目标语言为中文】
[2] M. Castro, B. Liskov, et al. Practical byzantine fault tolerance. In OSDI,
volume 99, pages 173–186, 1999.
-输出:
+输出:【文献引用保持源语言】
[2] M. Castro, B. Liskov, et al. Practical byzantine fault tolerance. In OSDI,
volume 99, pages 173–186, 1999.
\\no_think"""
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 8b68fc2..4322dd4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "docutranslate"
-version = "0.2.4.dev"
+version = "0.2.4"
description = "文件翻译工具"
readme = "README.md"
requires-python = ">=3.10"
@@ -9,7 +9,7 @@ dependencies = [
"httpx",
"markdown2",
"fastapi[standard]>=0.115.12",
- "pyinstaller>=6.13.0",
+# "pyinstaller>=6.13.0",
]
[project.scripts]
diff --git a/uv.lock b/uv.lock
index 06bf507..263c246 100644
--- a/uv.lock
+++ b/uv.lock
@@ -329,7 +329,7 @@ wheels = [
[[package]]
name = "docutranslate"
-version = "0.2.0"
+version = "0.2.4"
source = { virtual = "." }
dependencies = [
{ name = "docling" },