AI Agent Hub
Back to skills
Gxpcode Terminology-Aware Translator icon

Gxpcode Terminology-Aware Translator

Office Efficiency Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_321f4e87/zhonghe1991.

About this skill

Problem It Solves

Technical document translation often fails on terminology consistency, PDF layout information, and natural Chinese phrasing. Asking an LLM to translate a long PDF directly can cause term drift, lost page context, and literal patterns such as “be done → processed.” Gxpcode-translator splits translation into executable steps: it constrains the LLM with a terminology dictionary, parses PDFs into page-level assets, translates pages, and merges results with validation.

How It Works

  • Configuration and routing: first run guides setup into config.json; text and PDF use different step sequences.
  • PDF parsing: paddleocr/ produces page Markdown and element JSON, followed by truncation repair.
  • Terminology scanning: term_matcher.py matches CSV dictionary terms using an AC automaton and word boundaries.
  • Translation and export: the LLM translates with term mappings; PDF output is merged and validated, then exported as bilingual HTML and Markdown with logs.

Boundaries

It is best for office, product, or technical documents with a clear term list. Text mode returns translated text directly, while PDF mode emphasizes file outputs; missing dictionaries or complex PDF structures still require checking intermediate artifacts and validation results.

Use Cases

  • Translate a bilingual PDF product manual into Chinese while keeping API terms aligned with an internal CSV dictionary.
  • Translate a technical paragraph about state-machine logic by scanning terminology first and then producing natural Chinese output.
  • Generate bilingual HTML and Markdown from an English PDF report for review in web pages or repositories.
  • Repair truncated OCR text from PDF pages, translate page by page, and validate the merged result.

Best For

  • Technical documentation editors maintaining product term lists: translate English release materials into Chinese with consistent field names.
  • Backend engineers reviewing English API specs: convert PDF specifications into bilingual HTML and Markdown for review.
  • Business operations staff handling client contract annexes: extract key PDF clauses and produce a Chinese bilingual version.
  • Localization QA engineers: validate translated PDF output against an internal terminology CSV.