Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.9.11 instead.
PDFMathTranslate
基于字体规则和深度学习的 Latex PDF 翻译及双语对照,保留公式和图表排版
安装
pip install pdf2zh
使用
命令行中执行翻译指令,在当前目录下生成中文文档 example-zh.pdf 以及双语文档 example-dual.pdf
翻译完整文档
pdf2zh example.pdf
翻译部分文档
pdf2zh example.pdf -p 1-3,5
使用正则表达式指定需要保留样式的公式字体和字符
注:从 \ufb00 开始是英文风格连字
pdf2zh BDA3.pdf -f "(CM[^RT]|MS|XY|MT|BL|0700|0500|Italic)" -c "(\(|\||\)|\+|=|\d|[\u0080-\ufaff])"
致谢
文档合并:PyMuPDF
文档解析:pdfminer.six
多线程翻译:MathTranslate
排版解析:LayoutParser
Metadata
Release files for pdf2zh 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pdf2zh-1.2.0.tar.gz | 130.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdf2zh-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 270.3 kB
Release files / pdf2zh-1.2.0.tar.gz
| Download URL | pdf2zh-1.2.0.tar.gz |
|---|---|
| Size | 130.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d473aa82ae8e6afa2878634ec750a1fcc0ebe6d7e2bae21fbad0a7e246b845ce
|
|
BLAKE2b-256 checksum How to use checksums |
8ca6f486cbb719f16a3737f18b63f17c7ca5d9bd5a99029481f1a52efd31e03a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / pdf2zh-1.2.0-py3-none-any.whl
| Download URL | pdf2zh-1.2.0-py3-none-any.whl |
|---|---|
| Size | 139.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeda1a30772b88e37ac46d3f59cfec16f1a327bf0cff71433de72e3ad1c46eb8
|
|
BLAKE2b-256 checksum How to use checksums |
1a2b9de681f643af5ba12e1fb8c12c75c0c757f921b459f1c25938902af1b43f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|