Format-Preserving Document Translation
Paste the following prompt into your AI chat to install this skill:
Follow https://skillhub.cn/install/skillhub.md to install @user_8cb2379e/document-translate-cxq.
About this skill
Problem
Translating office documents is not just swapping language. The result still needs to be editable and structurally aligned: Word paragraphs, Excel cells, PPT text boxes, and PDF layout should map back to the source positions, while terms, field keys, function names, and code snippets must not be mistranslated.
How It Works
The skill follows an “extract text—translate—replace text” workflow for docx, xlsx, pptx, and pdf:
- Format detection: selects the matching script by file extension and emits JSON extraction results.
- Text extraction: supports paragraphs, table cells, slide text boxes, and Word sdt structured document tags.
- Controlled translation: reads references/terminology.md, keeps listed terms unchanged, and leaves identifiers such as user_id, api_key, and getUserInfo() intact.
- Replacement: writes translated text back by element_index, preserving paragraph, cell, or text-box placement.
Boundaries And Notes
- Office documents: length changes may cause automatic line reflow.
- PDF: higher risk of layout loss; review the output before delivery.
- Special content: text inside images is not processed by default; math formulas are not translated, while explanatory annotations under formulas can be.
- Fields: update table of contents and page numbers manually after translation.
Use Cases
- Translate a Chinese technical manual .docx into English while keeping headings, fonts, and cover references in place.
- Translate a .xlsx quote sheet into Japanese with each cell retained in its original row and column.
- Translate a .pptx pitch deck into Chinese while preserving text-box positions on each slide.
- Translate a PDF operations manual into English, then manually review layout after translation.
Best For
- Technical documentation engineers translating product manuals to English without breaking Word styles.
- International sales operations translating Chinese Excel quote sheets to Japanese while keeping cell positions.
- Solutions consultants translating Chinese PPT decks to English and checking per-slide text-box layout.
- Localization leads enforcing consistent terms, field keys, and code snippets.
Related Skills
Turns files, references, or chat context into styled single-page HTML reports with built-in templates and preset themes.
An engineering-oriented email automation solution for batch sending, Jinja2 templates, attachments, scheduled sending, inbox monitoring, and rule-based auto-reply.
An engineering workflow for creating, editing, reviewing, analyzing, and image-converting .docx files using pandoc, docx-js, OOXML, and LibreOffice.
Pre-submission scanner for Word/PDF blind-bid files that checks margins, fonts, page numbers, and metadata against tender requirements and flags residual bidder identities.