Latex PDF Translator
Project description
PDFMathTranslate
基于字体规则的 Latex PDF 翻译及双语对照,保留公式和图表排版
安装
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdf2zh-1.1.5.tar.gz
(129.8 kB
view hashes)
Built Distribution
pdf2zh-1.1.5-py3-none-any.whl
(138.4 kB
view hashes)