dsh-pdf-translate
Run the following command in DeepSeek Harness:
dsh plugin install MARIOMLY/dsh-pdf-translate
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install MARIOMLY/dsh-pdf-translate in DeepSeek Harness to install this plugin; the source is available at https://github.com/MARIOMLY/dsh-pdf-translate
About this plugin
Dropping an English academic or technical PDF into a generic translator usually yields a Chinese version that looks nothing like the source: formulas reduced to a1, a2, a3 fragments, font hierarchy lost, headers and footers scattered. dsh-pdf-translate closes that gap – drag an English PDF into the DSH sidebar and, within seconds to a few minutes, receive a Chinese PDF and Markdown that faithfully mirror the original typesetting.
Rather than applying a fixed template, it first measures every typographic parameter from the source – margins, font sizes at each level, line and paragraph spacing, accent colours, header and footer positions and text – then slices the content into semantic blocks (titles, body text, theorem statements, standalone equations, headers, footers) and translates them block by block. Formula fragments extracted from the PDF are reconstructed into LaTeX and rendered offline by the bundled KaTeX build, with equation numbers right-aligned via \tag. The re-typesetting stage generates HTML from the measured parameters, compressing each section independently (spacing first, then font size) under the hard rule that one extra page is acceptable but no content is ever clipped. The final PDF is produced through headless Edge via the CDP Page.printToPDF API, matching the source paper size.
It is aimed at readers who need an English academic or technical PDF translated into Chinese with strict layout fidelity: font hierarchy, equation numbering, headers, footers, and overall page count all expected to match the source. Note that it only processes electronic PDFs with a text layer – scanned documents are explicitly rejected (no OCR) – and translations are currently English-to-Chinese only, using the default model displayed on the panel.
Use Cases
- Translate an English academic PDF into Chinese while preserving the original layout
- Quickly obtain a layout-faithful Chinese version of an English technical document
- Translate STEM textbooks or handbooks heavy with mathematical formulas
Best For
- Academic researchers who need to read English-language literature
- Engineers or engineering students working through large volumes of English technical documentation
- Research team members who want a Chinese copy of an English paper for group sharing
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.