{"id":14437974,"url":"https://github.com/infrost/DeeplxFile","last_synced_at":"2025-08-26T22:32:14.905Z","repository":{"id":253264086,"uuid":"842979822","full_name":"infrost/DeeplxFile","owner":"infrost","description":"基于Deeplx和Playwright提供的简单易用，快速，免费，不限制文件大小，支持超长文本翻译，跨平台的文件翻译工具 / Easy-to-use, fast, free, unlimited file size and cross platform file translation tool based on Deeplx \u0026 Playwright that supports long text translations.","archived":false,"fork":false,"pushed_at":"2024-11-19T09:11:00.000Z","size":67800,"stargazers_count":588,"open_issues_count":4,"forks_count":47,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-19T09:48:10.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infrost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T14:18:46.000Z","updated_at":"2024-11-19T08:49:24.000Z","dependencies_parsed_at":"2024-08-15T16:19:27.754Z","dependency_job_id":"6d9cffda-cbcb-4178-a907-8a9af2d7b123","html_url":"https://github.com/infrost/DeeplxFile","commit_stats":null,"previous_names":["infrost/deeplxfile"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrost%2FDeeplxFile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrost%2FDeeplxFile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrost%2FDeeplxFile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infrost%2FDeeplxFile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infrost","download_url":"https://codeload.github.com/infrost/DeeplxFile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231088619,"owners_count":18326249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-31T10:00:43.196Z","updated_at":"2025-08-26T22:32:14.893Z","avatar_url":"https://github.com/infrost.png","language":"Python","funding_links":[],"categories":["Python","A01_文本生成_文本对话"],"sub_categories":["其他_文本生成_文本对话"],"readme":"# DeeplxFile\n基于Deeplx/playwright提供的简单易用，快速，免费，不限制文件大小，支持超长文本翻译的文件翻译工具\n\n[简体中文](https://github.com/infrost/DeeplxFile)\n|\n[English](/README_translated.md)\n\n[![Downloads](https://img.shields.io/github/downloads/infrost/deeplxfile/total.svg)](https://github.com/infrost/DeeplxFile/releases)\n------------------\n点击[这里下载](https://github.com/infrost/DeeplxFile/releases)\n\n**重要！** 如果使用中遇到疑问或错误，请先查看[置顶的issue](https://github.com/infrost/DeeplxFile/issues)\n\n## 功能介绍\n### 这个软件有什么优点？\n目前复杂文档，尤其是大文档的excel翻译，要么是要钱，要么是效果不好，要么是干脆直接不支持，该软件完美解决以上问题。\n\n#### 现已支持LLM大模型沉浸式翻译！\n和常规文档翻译方法不同的是，基于大模型的翻译可以指定翻译风格或者给定特定语境或者背景知识，使得翻译效果更贴切\n\n如使用自定义翻译要求：这是一封商务信函，使用庄严体翻译。\n\n#### 翻译质量\n谷歌翻译,复杂公式引用无法正确显示，而DeeplxFile能正确显示引用公式。\n且使用DeepL作为翻译源，大部分情况下中英互译效果优于谷歌。\n![HighQuality](/images/deeplxfile_quality.png)\n\n#### 翻译文件支持\n以Excel为例，DeepL免费版不支持Excel翻译，谷歌不支持超过10MB的大文件翻译，DeeplxFile文档翻译无大小限制\n![FileSupport](/images/deeplx_file_support.png)\n\n#### 简单易用的跨平台\n提供好了编译好的Windows / Mac OS，直接下载就能用。\n你也可以用python的源代码编译其他平台如Linux使用，或者直接在源代码上运行。\n\n### 翻译PDF并转换为可编辑的.docx文档 （Windows）\n现已支持该功能，但由于PDF转换功能体积较为庞大，请前往独立下载：\n[pdf2docxserver](https://github.com/infrost/pdf2docxserver/releases/)\n\n**下载后双击运行这个转换服务软件，并保持打开状态。**\n\n**使用`DeeplxFile`翻译的时候会自动调用转换服务。**\n翻译效果如图：\n![pdf_translation](/images/pdf_translate.png)\n\n### Playwright模式（Windows/Mac OS）\n![playwright.gif](/images/playwright.gif)\n\u003e 从`v0.5.0`版本开始支持，可在设置选项卡中可开启`Playwright`模式。\n\u003e 该模式是不依赖项目`deeplx`的，基于微软爬虫项目`Playwright`的实现。\n\u003e releases中的`_Lite`版本不包含该模式所需要的运行文件（webkit浏览器内核）。\n\n该模式下，程序会模拟人类打开浏览器，复制粘贴翻译内容，并回传到程序里，优点是兼容性强，可以翻译大量文本（目前没有测试出文本长度限制）并规避`deeplx`项目内核带来的`请求频繁`的错误。\n缺点是会稍微占用一些系统资源，且速度较慢，可以开启`隐藏操作过程`以节约系统资源。\n\n### 直连模式\n该模式同样不依赖`deeplx`，但是可用性较低，容易遇到Deepl服务器`请求频繁`的拒绝，轻量的文档翻译可能可用，是最节约资源也是最原生的翻译实现。\n\n## 我该如何使用？\n### Windows\n提供了编译好的exe版本, 运行安装程序即可\n\n**推荐** 下载`DeeplxFile_setup_windows_Full.exe` 解压安装，该版本带有完整webkit内核，playwright模式稳定性更好。\n`Lite`版本不带有webkit内核，会调用系统自带的Edge浏览器，因此体积更小，但目前对edge的支持还在测试阶段，如果你不太需要playwright模式，可以用这个版本。\n（你也可以设置里自己指定webkit内核）\n\n### MacOS\n\n**已支持playwright模式，如果需使用请确保系统安装了edge浏览器**\n\n![MacOS](/images/MacOS.png)\n\n右键解压出来的文件，选择打开新终端，\n终端中输入\n```bash\n./deelxfile\n```\n\n### 从源代码运行\n你也可以下载源代码，\n然后运行\n```bash\npython deeplxfile_gui.py\n```\n\u003e 如果你需要使用Playwright模式的翻译功能，为了保持仓库的精简性，请手动下载`playwright-webkit`放在`./Lib/webkit`目录下然后运行，或者在`Lib/playwright_process.py`中指定Playwright的运行目录。\n\u003e 如果你不是Windows系统，你需要在`deeplxfile_gui.py`中指定其他版本的deeplx，或者去deeplx官方项目下方，下载一个deeplx运行。\n\n\n## 版本说明\n\n```bash\n--------- V0.5.5/V0.5.6--------------\n支持macOS下的playwright（需要安装edge，要求版本：MacOS 12+）\n程序GUI优化，bug修复\n\n--------- V0.5.3--------------\n提供登录选项,在设置中开启后，可以先登录deepl账号再进行翻译，有更大的单词字符翻译上限。\n支持了Playwright下强制指定目标语言，适用于多语言混合文档。\n支持PDF翻译（插件形式，见使用说明），\n支持了txt,md文档翻译\n为软件增加一个图标，感谢[openvc](https://github.com/infrost/DeeplxFile/issues/3)\n\n--------- V0.5.2--------------\n提供了调用系统edge浏览器的playwright方法，更加轻量（完整版的更加稳定）\n\n---------- V0.5.0 ------------\n该版本提供了完整GUI界面，和设置选项，更加简单易用\n增加了Playwright模式（测试中）。\n\n---------- V0.2.3 ------------\n现已完全支持Word，Excel\n\npowerpoint 支持翻译大部分内容\n\n运行项目后会在目录下生成config.json\n设置`save_original`为`true`即可保留原文\n```\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=infrost/deeplxfile\u0026type=Date)](https://star-history.com/#infrost/deeplxfile\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfrost%2FDeeplxFile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfrost%2FDeeplxFile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfrost%2FDeeplxFile/lists"}