{"id":44002907,"url":"https://github.com/kagurananaga/docformat-gui","last_synced_at":"2026-02-23T01:30:24.172Z","repository":{"id":336461287,"uuid":"1149739473","full_name":"KaguraNanaga/docformat-gui","owner":"KaguraNanaga","description":"公文格式自动处理工具（可本地运行）","archived":false,"fork":false,"pushed_at":"2026-02-08T04:03:49.000Z","size":313,"stargazers_count":31,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-09T18:25:26.485Z","etag":null,"topics":["chinese-document","chinese-documentation","claude-code","claudecode","docformatter","documentation-tool","documentformat"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KaguraNanaga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-04T13:18:30.000Z","updated_at":"2026-02-09T15:46:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/KaguraNanaga/docformat-gui","commit_stats":null,"previous_names":["kagurananaga/docformat-gui"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/KaguraNanaga/docformat-gui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaguraNanaga%2Fdocformat-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaguraNanaga%2Fdocformat-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaguraNanaga%2Fdocformat-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaguraNanaga%2Fdocformat-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KaguraNanaga","download_url":"https://codeload.github.com/KaguraNanaga/docformat-gui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KaguraNanaga%2Fdocformat-gui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29306448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T15:37:45.286Z","status":"ssl_error","status_checked_at":"2026-02-10T15:37:41.567Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chinese-document","chinese-documentation","claude-code","claudecode","docformatter","documentation-tool","documentformat"],"created_at":"2026-02-07T13:04:36.619Z","updated_at":"2026-02-23T01:30:24.151Z","avatar_url":"https://github.com/KaguraNanaga.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Document Format GUI (公文格式处理工具)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/screenshot.png\" alt=\"软件截图\" width=\"600\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e一键修复 Word 文档格式，让排版不再头疼。\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#下载安装\"\u003e立即下载\u003c/a\u003e ·\n  \u003ca href=\"#核心能力\"\u003e核心能力\u003c/a\u003e ·\n  \u003ca href=\"#使用方法\"\u003e使用方法\u003c/a\u003e ·\n  \u003ca href=\"#常见问题\"\u003e常见问题\u003c/a\u003e ·\n  \u003ca href=\"README_EN.md\"\u003eEnglish\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Platform-Windows%20%7C%20Linux-blue\" alt=\"Platform\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-green\" alt=\"License\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Language-Python-yellow\" alt=\"Language\"\u003e\n\u003c/p\u003e\n\n---\n\n## 项目简介\n\n这是一个专为解决 Word 文档格式混乱问题而设计的极简工具。它采用了现代化的纸质感 UI 设计，能够智能识别文档中的标点、排版和字体问题，并可以根据国家标准（GB/T 9704-2012）进行一键自动化修复。\n\n**特点：**\n- **🎯 极简操作** — 即使是电脑小白也能上手即用\n- **🔒 安全离线** — 纯本地运行，数据不联网，保障公文安全\n- **📋 标准规范** — 严格遵循党政机关公文格式标准\n  \n**02.07更新：**\n- **📂  `.doc` / `.wps` 兼容** — 完整支持 `.doc` 和 `.wps` 格式的输入与输出，无需手动转换，兼容 WPS 及 Microsoft Office 生态\n- **📊 表格自动调整** — 智能识别文档中的表格，自动调整列宽、行高及单元格格式，使表格排版整齐规范。\n- **⚙️ 自定义格式配置** — 支持用户自定义页边距、行距、字体字号等格式参数，满足不同排版需求。\n- **📦 开箱即用** — 内置 pywin32 组件，无需额外安装 Python 环境，下载即用，真正的绿色免配置。\n\n---\n\n## 核心能力\n\n本工具不仅仅是简单的格式刷，它能深度识别并修复以下常见痛点：\n\n1. **🔣 符号标准化**：自动检测并修复括号、引号、逗号、句号、分号等全角半角混用问题，一律调整为中文规范符号。\n2. **📏 页边距校准**：强制统一页边距设置，符合公文版心要求。\n3. **🔤 字体智能适配**：智能识别小标题与正文层级，自动匹配对应的字体（如黑体、仿宋）和字号。\n4. **📝 缩进自动补全**：扫描全文，为缺失首行缩进的段落自动添加标准的 2 字符缩进。\n5. **📐 行距统一规范**：识别文档中不统一的行距设置，一键调整为标准行距（如 28 磅）。\n6. **1️⃣ 序号风格修正**：自动清洗混乱的序号格式，统一风格（例如将混用的\"1、\"和\"1.\"统一规范化）。\n7. **🎨 视觉背景调整**：支持调整页面背景颜色，提供更舒适的编辑阅读体验。\n8. **🧹 字体样式清洗**：深度清理文档中不规范的字体颜色、粗细、下划线及斜体，还原清爽版面。\n9. **📂 .DOC / .WPS 兼容**：完整支持 `.doc` 和 `.wps` 格式的输入与输出，无需手动转换，兼容 WPS 及 Microsoft Office 生态。\n10. **📊 表格自动调整**：智能识别文档中的表格，自动调整列宽、行高及单元格格式，使表格排版整齐规范。\n11. **⚙️ 自定义格式配置**：支持用户自定义页边距、行距、字体字号等格式参数，满足不同排版需求。\n12. **📦 开箱即用**：内置 pywin32 组件，无需额外安装 Python 环境，下载即用，真正的绿色免配置。\n\n---\n\n## 下载安装\n\n### Windows 用户\n\n1. **点击下载**：[**Document_Format_GUI.exe**](https://github.com/KaguraNanaga/docformat-gui/releases/latest/download/docformat_windows.exe)\n2. 下载后双击即可运行，无需安装 Python，绿色纯净。\n\n\u003e **注意**：\n\u003e * 支持 `.docx`、`.doc` 及 `.wps` 格式文档。\n\n### 国产系统用户（麒麟 / 统信 UOS）【注意：目前是测试版本，欢迎反馈bugs】\n1. **点击下载**：[**Document_Format_GUI_Linux**](https://github.com/KaguraNanaga/docformat-gui/releases/latest/download/docformat_linux)\n2. 下载后先赋予执行权限：`chmod +x docformat_linux`\n3. 双击运行或在终端执行：`./docformat_linux`\n\n\u003e **注意**：\n\u003e * Linux 版本仅支持 `.docx` 文件；`.doc/.wps` 需要在 Windows 上先转换为 `.docx`。\n\n---\n\n## 使用方法\n\n### 第一步：选择文件\n点击界面上方的「输入」栏，选择你需要处理的 Word 文档。\n\n### 第二步：选择模式\n界面提供了三种处理模式，满足不同需求：\n\n| 模式 | 适用场景 |\n|------|----------|\n| **🪄 智能一键处理** | **(推荐)** 全自动模式。同时进行标点修复、排版规范和样式清洗，一步到位。 |\n| **🩺 格式诊断** | 只想看看文档有哪些问题，但暂时不想修改文件。 |\n| **🩹 标点修复** | 仅修复中英文标点混用的情况，保留原文档的字体和段落格式。 |\n\n### 第三步：开始处理\n点击中间醒目的 **「开始处理」** 按钮。\n* 处理完成后，工具会自动在原文件旁边生成一个新的文件（文件名后缀为 `_processed`）。\n* **你的原文件永远不会被覆盖或修改，请放心使用。**\n\n---\n\n## 常见问题\n\n**Q：处理后的文档打开是乱码或字体不对？**\nA：公文格式依赖特定的字体。请确保你的电脑安装了以下字体（Windows 通常自带）：\n- 仿宋_GB2312\n- 黑体\n- 楷体_GB2312\n\n**Q：为什么提示「文件不存在」？**\nA：请检查文件名或文件夹路径中是否包含极其生僻的特殊字符。建议将文件放在桌面或纯英文路径下尝试。\n\n**Q：可以批量处理多个文件吗？**\nA：当前版本主要针对单文件精细处理。批量处理功能已列入后续开发计划。\n\n---\n\n## 反馈与建议\n\n如果这个工具帮到了你，或者你发现了 Bug，欢迎联系我：\n\n- **提交 Issue**: [GitHub Issues](https://github.com/KaguraNanaga/docformat-gui/issues)\n- **邮件联系**: legacyofhourai@163.com\n\n---\n\n## 数据安全\n\n🔒 **本工具所有操作均在本地完成**，不会上传任何文档内容到服务器或云端。无网络通信、无数据收集、无遥测追踪。源代码完全开放，欢迎审查。\n\n详见 [数据安全与免责声明](DISCLAIMER.md)。\n\n---\n\n## 开源许可\n\n本项目基于 [MIT 许可证](LICENSE) 开源，欢迎开发者共同完善。\n\n第三方依赖许可证信息详见 [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md)。\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eMade with ❤️ by \u003ca href=\"https://github.com/KaguraNanaga\"\u003eKaguraNanaga\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkagurananaga%2Fdocformat-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkagurananaga%2Fdocformat-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkagurananaga%2Fdocformat-gui/lists"}