HWP/HWPX (한글) document plugin — read, write, convert Korean documents with equation scripts, tables, and multi-column layouts
npx claudepluginhub hohyon-ryu/claude-hwpx-pluginRead, write, and convert HWP/HWPX (한글) documents — Markdown conversion, HWP equation scripts, XML structure, MathON rules, tables, images, and multi-column layouts for Korean government/education documents.
A Claude Code plugin for reading, writing, and converting HWP/HWPX documents — the dominant document format in South Korea used by government, education, and enterprise.
한국에서 가장 많이 쓰이는 문서 포맷 HWP/HWPX를 Claude Code에서 읽고, 쓰고, 변환할 수 있게 해주는 플러그인입니다.
Virtually all official documents in South Korea are stored in HWP format (Hancom Office Hangul). Government agencies, schools, law firms, and corporations all produce and consume HWP files daily. Converting these documents to usable data has been painful due to the proprietary format and poor tooling around math formula extraction.
This plugin teaches Claude Code the HWP/HWPX file structure, equation script syntax, and XML schema so it can work with Korean documents natively.
# Add marketplace
/plugin marketplace add hohyon-ryu/claude-hwpx-plugin
# Install plugin
/plugin install hwpx
Add to ~/.claude/settings.json:
{
"extraKnownMarketplaces": {
"hwpx": {
"source": { "source": "github", "repo": "hohyon-ryu/claude-hwpx-plugin" }
}
},
"enabledPlugins": {
"hwpx@hwpx": true
}
}
git clone https://github.com/hohyon-ryu/claude-hwpx-plugin.git
claude --plugin-dir ./claude-hwpx-plugin
| Task | Command |
|---|---|
| Read HWPX → Markdown | python scripts/reader.py doc.hwpx output.md |
| Create HWPX | python scripts/generator.py out.hwpx "Title" "Body" |
| Validate HWPX | python scripts/validate.py doc.hwpx |
| Read legacy HWP | pip install pyhwp && hwp5txt doc.hwp |
| Use skill | Mention HWP/HWPX/한글 in conversation — skill auto-activates |
/hwpx:hwpxA single unified skill that handles all HWP/HWPX operations:
The skill auto-activates when you mention HWP, HWPX, 한글, or Hancom documents.
| File | Purpose |
|---|---|
scripts/reader.py | HWPX/HWP5 → Markdown converter |
scripts/generator.py | Markdown/text → HWPX generator |
scripts/validate.py | HWPX structure validator |
| File | Purpose |
|---|---|
templates/base-header.xml | Font definitions, styles, character properties |
templates/base-section.xml | Section template with page/column settings |
templates/base-content.hpf | OPF package manifest |
templates/base-container.xml | OPF container |
templates/sample-a4.hwpx | A4 single-column sample |
templates/sample-b4-2col.hwpx | B4 2-column exam paper sample |
HWP uses its own equation syntax, not LaTeX:
LaTeX HWP Equation Script
───────────────────── ─────────────────────
\frac{a}{b} → {a} over {b}
\sqrt{x} → sqrt {x}
\text{cm} → "cm"
\overline{AB} → rm bar{AB}
\triangle ABC → rm triangle ABC
\cdot → cdot (NOT bullet)
\to → `->` (backtick spacing)
See the full conversion table in SKILL.md.
| Method | Text | Equations | Tables | Images |
|---|---|---|---|---|
| hwp5txt (pyhwp) | ✅ | ❌ | △ | ❌ |
| hwp5html → pandoc | ✅ | △ | ✅ | ✅ |
| HWPX → reader.py | ✅ | ✅ LaTeX | ✅ | ✅ |
Best quality: HWP → Save as HWPX in 한글 → reader.py
pyhwp (optional, for HWP5 binary): pip install pyhwppandoc (optional, for HTML→Markdown)MIT
유호현 (Hohyon Ryu) — @hohyon-ryu