diff --git a/.idea/filetranslate.iml b/.idea/docutranslate.iml similarity index 88% rename from .idea/filetranslate.iml rename to .idea/docutranslate.iml index 3af20f7..eda2b02 100644 --- a/.idea/filetranslate.iml +++ b/.idea/docutranslate.iml @@ -2,7 +2,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index b511d50..0ce5b7a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 00ba9b7..2a1c7ea 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9f63bce..06c9c81 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,8 +5,14 @@ + + + + - + + + - { - "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 调试.test.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 测试.pytest (test_html.py 内).executor": "Run", - "Python.1test.executor": "Run", - "Python.2test2 (1).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.converter_docling.executor": "Run", - "Python.converter_mineru.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.testhtml.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/dist/DocuTranslate", - "list.type.of.created.stylesheet": "CSS", - "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" + +}]]> + + - - @@ -272,7 +278,7 @@ - + - + - + - + - + diff --git a/DocuTranslate.ico b/DocuTranslate.ico new file mode 100644 index 0000000..dd03ca4 Binary files /dev/null and b/DocuTranslate.ico differ diff --git a/app.spec b/app.spec index 12a8b91..24ed5f2 100644 --- a/app.spec +++ b/app.spec @@ -1,8 +1,8 @@ # -*- mode: python ; coding: utf-8 -*- from PyInstaller.utils.hooks import collect_all -datas = [('C:/Users/jxgm/Desktop/FileTranslate/.venv/Lib/site-packages/docling_parse/pdf_resources_v2', 'docling_parse/pdf_resources_v2'), -('C:/Users/jxgm/desktop/FileTranslate/docutranslate/static', 'docutranslate/static')] +datas = [('./.venv/Lib/site-packages/docling_parse/pdf_resources_v2', 'docling_parse/pdf_resources_v2'), +('./docutranslate/static', 'docutranslate/static')] binaries = [] hiddenimports = [] tmp_ret = collect_all('easyocr') @@ -12,7 +12,7 @@ datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2] a = Analysis( - ['C:\\Users\\jxgm\\Desktop\\FileTranslate\\docutranslate\\app.py'], + ['./docutranslate/app.py'], pathex=[], binaries=binaries, datas=datas, @@ -42,7 +42,7 @@ exe = EXE( target_arch=None, codesign_identity=None, entitlements_file=None, - icon=['DocuTranslate.png'], + icon=['DocuTranslate.ico'], ) coll = COLLECT( exe, diff --git a/pyproject.toml b/pyproject.toml index 4ca5049..48babd3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ dependencies = [ "docling>=2.31.0", "httpx", "markdown2", - "fastapi[standard]>=0.115.12", + "fastapi[standard]>=0.115.12" ] [project.scripts] docutranslate = "docutranslate.cli:main" @@ -18,4 +18,4 @@ requires = ["setuptools>=61.0"] # 或者你需要的 setuptools 版本 build-backend = "setuptools.build_meta" backend-path = ["."] [tool.setuptools.package-data] -docutranslate = ["static/**"] \ No newline at end of file +docutranslate = ["static/**"] diff --git a/uv.lock b/uv.lock index e48be11..528d768 100644 --- a/uv.lock +++ b/uv.lock @@ -329,8 +329,8 @@ wheels = [ [[package]] name = "docutranslate" -version = "0.2.11.dev0" -source = { virtual = "." } +version = "0.2.20" +source = { editable = "." } dependencies = [ { name = "docling" }, { name = "fastapi", extra = ["standard"] },