dsh-cn-doc-formatter: Generating Official Documents and Performing Output Self-Checks per GB/T 9704-2012
dsh-cn-doc-formatter (@deepwhale-cn/dsh-cn-doc-formatter) is a DSH client plugin maintained by feely0208 that generates docx, pdf, and txt files in compliance with the GB/T 9704-2012 standard. It includes verify_output.py to validate layout and font embedding item by item. The plugin does not bundle fonts; users must provide FangSong fonts via environment variables or system directories. It depends on python-docx, reportlab, fontTools, and pypdf. To install, run `dsh plugin --profile add @deepwhale-cn/dsh-cn-doc-formatter`; after restarting dsh, the skill is invoked by the agent. This plugin is suitable for official document layout scenarios requiring reproducibility and exit code-based validation.
Read More