Skip to main content
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 翻译及双语对照,保留公式和图表排版

image

image

安装

pip install pdf2zh

使用

命令行中执行翻译指令,在当前目录下生成中文文档 example-zh.pdf 以及双语文档 example-dual.pdf

翻译完整文档

pdf2zh example.pdf

翻译部分文档

pdf2zh example.pdf -p 1 2 3

使用正则表达式指定需要保留样式的公式字体和字符

pdf2zh BDA3.pdf -f ".*\+(CM[^R].*|MS.*|XY.*|.*0700|.*0500)" -c "(\(|\||\)|\+|=|\d|[\u0080-\uffff])"

致谢

文档合并:PyMuPDF

文档解析:pdfminer.six

多线程翻译:MathTranslate

Metadata

Release files for pdf2zh 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf2zh 1.1.5
File Size Uploaded Provenance Actions
pdf2zh-1.1.5.tar.gz 129.8 kB Without provenance Details for pdf2zh-1.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdf2zh 1.1.5
File Interpreter ABI Platform Actions
pdf2zh-1.1.5-py3-none-any.whl Python 3 none any Details for pdf2zh-1.1.5-py3-none-any.whl

Total release size: 268.3 kB

Release files / pdf2zh-1.1.5.tar.gz

Download URL pdf2zh-1.1.5.tar.gz
Size 129.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b2c8005576b884738464f6132230519e784024aa46a71bfd5cd5ded57a3ae694
BLAKE2b-256 checksum
How to use checksums
5dd51b7ef008bce60a8bb4f0127adb17adb6d0530e60c634c1c71422eeee7111
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.1.5-py3-none-any.whl

Download URL pdf2zh-1.1.5-py3-none-any.whl
Size 138.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22ff0710dbc57d9aff193798fbd38c9c7d11be56ece8c0f99479c4b92c4b06bc
BLAKE2b-256 checksum
How to use checksums
4b7526bb5f77dba738464fe133b2d59368b2e16a156e7c9a90b5cb87b9dde772
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for pdf2zh 1.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page