diff --git a/.idea/workspace.xml b/.idea/workspace.xml index eef37cb..e84f807 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,17 +5,9 @@ - - - - - - - - @@ -41,54 +33,54 @@ - { + "keyToString": { + "DefaultHtmlFileTemplate": "HTML File", + "JavaScript 调试.output.html (1).executor": "Run", + "JavaScript 调试.output.html.executor": "Run", + "JavaScript 调试.regex.md_中文.html.executor": "Run", + "JavaScript 调试.regex_中文.html.executor": "Run", + "JavaScript 调试.test2.html.executor": "Run", + "JavaScript 调试.test2_英文.html.executor": "Run", + "JavaScript 调试.test4-1_中文.html.executor": "Run", + "JavaScript 调试.互联网认证授权机制.html.executor": "Run", + "JavaScript 调试.互联网认证授权机制_英文.html.executor": "Run", + "JavaScript 调试.毕业论文_英文.html.executor": "Run", + "ModuleVcsDetector.initialDetectionPerformed": "true", + "Python 测试.Python 测试 (markdown_mask.py 内).executor": "Run", + "Python 测试.markdown_mask.Test.test_basic_link_masking 的 Python 测试.executor": "Run", + "Python.PDFtranslater (1).executor": "Run", + "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.app_test (1).executor": "Run", + "Python.convert.executor": "Run", + "Python.markdown_splitter.executor": "Debug", + "Python.markdown_utils.executor": "Run", + "Python.test.executor": "Run", + "Python.test1.executor": "Run", + "Python.test2.executor": "Run", + "Python.test3.executor": "Run", + "Python.test4.executor": "Run", + "Python.translater.executor": "Run", + "Python.切分测试.executor": "Run", + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true", + "RunOnceActivity.git.unshallow": "true", + "git-widget-placeholder": "main", + "last_opened_file_path": "C:/Users/jxgm/Desktop/FileTranslate/docutranslate/agents", + "node.js.detected.package.eslint": "true", + "node.js.detected.package.tslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "node.js.selected.package.tslint": "(autodetect)", + "nodejs_package_manager_path": "npm", + "settings.editor.selected.configurable": "preferences.pluginManager", + "vue.rearranger.settings.migration": "true" } -}]]> +} @@ -634,7 +626,7 @@ - + diff --git a/docutranslate/agents/markdown_agent.py b/docutranslate/agents/markdown_agent.py index 54f12ad..227bc18 100644 --- a/docutranslate/agents/markdown_agent.py +++ b/docutranslate/agents/markdown_agent.py @@ -67,10 +67,10 @@ hello, what's your name? ## 公式要为合法latex(行内公式使用$包裹) 输入: The equation is E=mc 2. This is famous. -{{c_0,c_1,c^2}}is a set. +({{c_0,c_1,c^2}})is a set. 输出: 这个方程是 $E=mc^2$。这很有名。 -{{$c_0$,$c_1$,$c^2$}}是一个集合。 +${{c_0,c_1,c^2}}$是一个集合。 ## 引用的参考文献要保持原文不要翻译 输入:【假设目标语言为中文】 [2] M. Castro, B. Liskov, et al. Practical byzantine fault tolerance. In OSDI, diff --git a/docutranslate/app.py b/docutranslate/app.py index 1945701..87d07c6 100644 --- a/docutranslate/app.py +++ b/docutranslate/app.py @@ -25,31 +25,14 @@ HTML_TEMPLATE = """ DocuTranslate - + DocuTranslate @@ -295,7 +180,7 @@ HTML_TEMPLATE = """ 文档选择 - + 目标语言 @@ -316,14 +201,10 @@ HTML_TEMPLATE = """ 高级选项 - 公式识别 - 代码识别 - 修正文本(耗时,有概率修复文本流和公式识别错误) + 公式识别 + 代码识别 + 修正文本 @@ -332,22 +213,22 @@ HTML_TEMPLATE = """ - 翻译结果 + 翻译结果 下载 Markdown 下载 HTML 下载 PDF 预览 - 运行日志 + 运行日志 - × + × HTML 预览 - + 打印/保存为PDF 关闭