KaguraNanaga/docformat-gui
About
Automatic official document formatting tool (can run locally)
Developer ToolsMeasured star growth
- in 24h
- +1
- in 7 days
- +4
- in 15 days
- +8
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
OriginalDocument Format GUI
One-click fix for Word document formatting issues, making layout adjustments headache-free.
Authorization Website · Skills GitHub · Online Version · Download · Core Capabilities · Usage · FAQ · Agent Skill · 中文
🌐 Document Format GUI Web Version is now available
No installation or sign-in required. Process
.docxfiles directly in your browser. Documents remain in the browser and are never uploaded to a server; after the required components finish loading, the current page can continue working offline.
Product Links
- Authorization Website: gongwengeshizhushou.com — Open-source releases, Skills products, and the latest product information.
- Skills GitHub: KaguraNanaga/document-format-skills — Browse and install the document-formatting Skills for direct use with general-purpose Agents.
- Online Version: web.gongwengeshizhushou.com — Cannot install the desktop app, or want access anytime and anywhere? Use the online tools directly in your browser.
Introduction
This is a minimalist tool designed to solve the chaos often found in Word document formatting. Featuring a modern, paper-like UI design, it intelligently identifies issues with punctuation, layout, and fonts, and automatically repairs them according to the Chinese National Standard (GB/T 9704-2012 for China Communist Party and Government Organs).
Features:
- 🎯 Minimalist Operation — Easy to use, even for computer novices.
- 🔒 Secure & Offline — Runs entirely locally. No internet connection required, ensuring data security.
- 📋 Standard Compliant — Strictly follows the official formatting standards for Chinese government documents.
Core Capabilities
This tool is more than just a simple format painter. It deeply analyzes and fixes common formatting pain points:
- 🔣 Standardize Punctuation: Automatically detects and fixes mixed usage of full-width/half-width symbols (brackets, quotes, commas, periods, etc.), converting them all to standard Chinese punctuation.
- 📏 Calibrate Page Margins: Forcibly unifies page margins to meet the standard requirements for official document layouts.
- 🔤 Intelligent Font Adaptation: Smartly recognizes the hierarchy between headings and body text, automatically applying the correct fonts (e.g., SimHei, FangSong) and font sizes.
- 📝 Auto-complete Indentation: Scans the entire text and adds standard 2-character indentation to paragraphs that lack it.
- 📐 Standardize Line Spacing: Identifies inconsistent line spacing and adjusts it to the standard value (e.g., 28pt) with one click.
- 1️⃣ Fix Numbering Styles: Cleans up chaotic numbering formats, unifying the style (e.g., standardizing mixed usage of "1、" and "1.").
- 🎨 Visual Background Adjustment: Supports adjusting the page background color for a more comfortable editing and reading experience.
- 🧹 Clean Font Styles: Deeply cleans non-standard font colors, weights, underlines, and italics to restore a clean layout.
- 📂 .DOC / .WPS Compatible: Full support for
.docand.wpsfile input and output, no manual conversion needed — compatible with both WPS and Microsoft Office ecosystems. - 📊 Table Auto-optimization: Intelligently detects tables in the document and auto-adjusts column width, row height, and cell formatting for a clean, standardized layout.
- ⚙️ Custom Format Configuration: Allows users to customize page margins, line spacing, fonts, font sizes, and other formatting parameters to suit different layout requirements.
- 📦 Ready Out of the Box: Bundles pywin32 internally — no need to install Python separately. Download and run, truly portable and zero-configuration.
Download
Windows Users
- Click to Download: Document_Format_GUI_v1.0.0.exe
- Double-click to run after downloading. No Python or additional installation required; it's a portable application.
Note:
- Supports
.docx,.doc, and.wpsformat documents.
Linux Users (Kylin / UOS)
- Click to Download: Linux x86_64 AppImage or Linux ARM64 AppImage
- Grant execute permission:
chmod +x docformat_linux_amd64.AppImage - Double-click to run or execute:
./docformat_linux_amd64.AppImage
Note:
- The Linux build supports
.docxonly. Convert.doc/.wpsto.docxon Windows first.
Usage
Step 1: Select File
Click the "Input" (输入) field at the top of the interface to select the Word document you want to process.
Step 2: Select Mode
The interface offers three modes to suit different needs:
| Mode | Description |
|---|---|
| 🪄 Smart One-click | (Recommended) Fully automatic mode. Performs punctuation repair, layout standardization, and style cleaning all at once. |
| 🩺 Diagnosis | Checks for issues only, without modifying the file. Useful for reviewing formatting errors. |
| 🩹 Punctuation Fix | Only fixes mixed Chinese/English punctuation usage, preserving the original fonts and paragraph formatting. |
Step 3: Start Processing
Click the prominent "Start Processing" (开始处理) button in the middle.
- Once completed, a new file will be generated next to the original file (with the suffix
_processed). - Your original file will never be overwritten or modified.
FAQ
Q: Why is the processed document displaying garbled text or incorrect fonts? A: Official Chinese document formatting relies on specific fonts. Please ensure your computer has the following fonts installed (usually standard on Windows):
- FangSong_GB2312 (仿宋_GB2312)
- SimHei (黑体)
- KaiTi_GB2312 (楷体_GB2312)
Q: Why do I get a "File not found" error? A: Please check if the filename or folder path contains obscure special characters. It is recommended to place the file on the Desktop or in a path with English characters to test.
Q: Can I batch process multiple files? A: The current version focuses on precise single-file processing. Batch processing features are planned for future updates.
Feedback
If this tool helps you, or if you find any bugs, please feel free to contact me:
- Submit Issue: GitHub Issues
- Email: [email protected]
License
Starting with v1.8.8.3, this free and open-source edition is licensed under the PolyForm Noncommercial License 1.0.0. It is free for personal and noncommercial purposes. Commercial sale, paid redistribution, and other commercial uses require separate permission.
Versions up to and including v1.8.8.2 remain under the MIT License that accompanied those releases. See License History.
Made with ❤️ by KaguraNanaga
Explore related projects
Loading…