dsh-hwp-translate

Translates .hwp/.hwpx (Hangul) and .docx documents into the language the session model writes - Chinese is the common case, but Korean to English or English to Korean works the same way - keeping tables, bullets, indentation and font size, and writes the result beside the original as *_zh. hwp_extract returns the document segments as JSON (50 per page by default, 200 max, next_offset for pagination); hwp_apply takes {segment id: translation} and returns the output path with applied and missing counts. The plugin never calls an API and accepts no API key; its bundled 10 MB translator only reads and writes the file locally. Windows only: .hwpx and .docx are parsed in pure Python, while legacy .hwp drives the installed Hangul over COM and requires allow_hangul.

Overview

Translates .hwp/.hwpx (Hangul) and .docx documents into the language the session model writes - Chinese is the common case, but Korean to English or English to Korean works the same way - keeping tables, bullets, indentation and font size, and writes the result beside the original as *_zh. hwp_extract returns the document segments as JSON (50 per page by default, 200 max, next_offset for pagination); hwp_apply takes {segment id: translation} and returns the output path with applied and missing counts. The plugin never calls an API and accepts no API key; its bundled 10 MB translator only reads and writes the file locally. Windows only: .hwpx and .docx are parsed in pure Python, while legacy .hwp drives the installed Hangul over COM and requires allow_hangul.

Installation

Install from GitHub

dsh plugin --profile web add github:Sanshui258/dsh-hwp-translate

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.