最后更新:11/12/2026最后核验:2026-11-09
BabelDOC 是什么
BabelDOC 是一个采用 AGPL-3.0 许可证的开源库,专门用于将科研论文 PDF 翻译为保留原始版式的双语文档。它支持公式与正文混排的 PDF,提供命令行界面(CLI)和 Python API,并可通过 Immersive Translate 使用在线 Beta 版本。
核心功能
- 生成双语 PDF,并以保留源文档版式为设计目标
- 支持包含公式与正文混排内容的 PDF
- 提供适合脚本化和重复执行工作流的命令行界面(CLI)
- Python 软件包兼容 Python 3.10 至低于 3.14 的版本
- 文档介绍了在 Python 3.12 环境中使用 uv 安装的方法
- 支持 OpenAI 兼容模型
- 支持 CSV 术语表,用于控制专业术语翻译
- 支持自动术语提取
- 可通过 Immersive Translate 使用在线 Beta
- 采用 AGPL-3.0 开源许可证
- 提供用于程序化集成的 Python API
最适合
希望保留原始页面结构的科研论文翻译者需要在同一份 PDF 中同时查看原文和译文的读者使用 Python 构建 PDF 翻译工作流的开发者需要通过术语表统一专业术语的团队处理数学公式与正文混合科研文档的用户偏好命令行工具或自行管理工作流的技术用户
定价
BabelDOC 库本身是 AGPL-3.0 开源软件,免费使用,需要自备 OpenAI 兼容模型和 API Key。面向普通用户,README 推荐使用沉浸式翻译(Immersive Translate)中的在线 Beta,并写明每月有 1,000 页免费额度,详情见该页面 FAQ。沉浸式翻译应用内显示的额度可能与 README 不一致,使用前请以 BabelDOC 页面上的最新说明为准。
优缺点
优点
- 专注于科研论文 PDF 翻译,而不仅是一般文本翻译
- 双语输出可保留源文档版式
- 能够处理同时包含公式和正文的文档
- 同时提供 CLI、Python API 和库级访问方式
- 支持 OpenAI 兼容模型
- 提供 CSV 术语表和自动术语提取功能
- 采用开源 AGPL-3.0 许可证
缺点
- README 写明 CLI 主要用于调试,终端用户使用 CLI 不提供技术支持。
- README 写明项目目前主要面向英译中,其他场景尚未测试。
- README 列出的已知问题:作者与参考文献部分可能被合并为一段,不支持线条和首字下沉,过大的页面会被跳过。
- 在线版本目前为 Beta,可用性和功能表现可能发生变化。
- 配置模型、术语表或程序化工作流需要一定技术基础。
替代工具
PDFMathTranslate-next
这是一个关系密切的技术 PDF 翻译方案,BabelDOC 的相关信息也将其作为自托管选项进行推荐。
DeepL
DeepL 为受支持的文档提供 AI 翻译,适合优先考虑托管式翻译流程的用户,属于更通用的替代方案。
Google Translate
Google Translate 支持部分文件类型的文档翻译,适合希望使用普及度高、在线即可访问的翻译服务的用户。
Immersive Translate
Immersive Translate 托管 BabelDOC 的在线 Beta,同时还提供适用于网页翻译和文档阅读工作流的更多翻译功能。
常见问题
详情
平台
网页版macOSWindowsLinux
功能特性
- Bilingual PDF output that keeps the source layout, including mixed formulas and text
- CLI and Python package (Python >=3.10 and <3.14; the docs install it with uv on Python 3.12)
- OpenAI-compatible models, CSV glossaries, and automatic term extraction
- Online beta inside Immersive Translate, with self-hosting pointed at PDFMathTranslate-next
支持语言
enzhja
已知限制
- The README says the CLI is mainly for debugging and that end users get no technical support for it. It also says BabelDOC Python APIs are internal and unsupported; the recommended call is pdf2zh_next high_level.do_translate_async_stream. The library documents only OpenAI-compatible models
- README known issues: author and reference sections merge into one paragraph, lines are not supported, drop caps are not supported, and large pages are skipped. The online beta says it cannot handle scanned or image-only PDFs; the OCR workaround is only for black text on a white background
- The in-app FAQ bills the beta in tokens: every user gets 500,000 tokens a month on GLM 4 Flash 250414, subject to upstream supply and server load. Named stronger models are Pro/Max only and draw on the member quota, up to 20 million tokens a month on Pro and 50 million on Max. A task pre-deducts 3,000 tokens per page, or 6,000 when automatic term extraction is on. Free uploads are capped at 166 pages per translation and Pro at 5,000 pages per file; the same UI says Pro unlocks 10,000 pages a month. The README still says the beta includes 1,000 free pages a month, so those published allowances do not match
- The README says the project mainly targets English-to-Chinese and that other scenarios have not been tested. The supported-languages page lists many more languages, says non-ligature languages have good support, and says languages that fully depend on ligatures are not supported. Online translation records are kept for 14 days






