coderlim/translate-pdf-skill — explained in plain English
Analysis updated 2026-05-18
Translate an English PDF report or guide into a readable Chinese PDF for internal review.
Protect product names and acronyms from being mistranslated using a glossary file.
Cache translated text blocks to avoid re-translating unchanged content.
Supply a custom font or title when rebuilding the translated PDF.
| coderlim/translate-pdf-skill | 0xhassaan/nn-from-scratch | 3ks/embedoc | |
|---|---|---|---|
| Stars | 0 | 0 | — |
| Language | Python | Python | Python |
| Last pushed | — | — | 2023-06-08 |
| Maintenance | — | — | Dormant |
| Setup difficulty | easy | moderate | hard |
| Complexity | 2/5 | 4/5 | 1/5 |
| Audience | writer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Only works on PDFs with a selectable text layer, scanned PDFs need OCR first. Auto-installs deep-translator if missing.
translate-pdf-skill is a Python script and accompanying Codex skill definition for translating text-based PDF files into Chinese and producing a new readable Chinese PDF. It is designed for PDFs that already contain a selectable text layer, not scanned images, and prioritises readability of the output over pixel-perfect reproduction of the original layout. The workflow has five steps: extract text from the source PDF using pypdf, clean up line-break artifacts and layout noise, protect product names and acronyms so they are not accidentally translated, translate the text blocks using a translation library with caching to avoid re-translating the same content, and finally rebuild the output as a new PDF using reportlab. Optional flags let you supply a custom cache file, a glossary file for terminology control, a custom title, and a custom font file. The repository also includes minimal unit tests for block parsing and heading detection, a terminology guidance file for protected terms, and example artifacts showing an English founders playbook alongside its generated Chinese equivalent. You would use this tool when you have an English PDF, such as a document, guide, or report, and need a Chinese version quickly for internal review. It is not suited for scanned PDFs without an OCR step, and complex tables or heavily designed pages may need manual cleanup after translation. The script auto-installs the deep-translator package locally if it is not already present.
A Python script and Codex skill that translates text-based PDFs into readable Chinese PDFs while preserving product names and acronyms.
Mainly Python. The stack also includes Python, pypdf, reportlab.
No license file was found in the README.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly writer.
This repo across BitVibe Labs
Verify against the repo before relying on details.