name: Word中文格式标准化 name: Word中文格式标准化 description: 提供Word文档按中文格式标准化的功能,包括标题、正文、图片、图表等格式的统一处理。使用微软雅黑字体,设置标准化的字体大小、段前段后位置、行缩进等。适用于需要统一文档格式的场景,如企业文档、学术论文、报告等。
本skill提供Word文档的中文格式标准化功能,确保文档符合中文排版规范,包括:
sample_1/
├── SKILL.md # 技能说明文件
├── scripts/
│ ├── format_word.py # 核心格式化脚本
│ └── requirements.txt # 依赖项
├── references/
│ ├── format_standard.md # 格式标准说明
│ └── usage_guide.md # 使用指南
└── assets/
└── template.docx # 模板文件
安装依赖:
bash
pip install -r scripts/requirements.txt
运行格式化脚本:
bash
python scripts/format_word.py <input_file> [output_file]
其中:
- <input_file>:要格式化的Word文档路径
- [output_file]:可选,格式化后的文档保存路径,默认在原文件基础上加"_formatted"后缀
# 格式化文档并保存为新文件
python scripts/format_word.py document.docx formatted_document.docx
# 直接在原文件基础上格式化
python scripts/format_word.py report.docx
执行脚本后,文档将按照上述格式标准进行统一处理,确保整体风格一致,符合中文排版规范。
这个 Word 格式标准化工具整体质量中等偏上,文档说明详细清晰,普通用户容易理解。但存在一个明显问题:文档描述的功能结构与实际包含的文件不一致,可能会造成使用困扰。另外核心脚本代码不完整,表格格式化等部分功能的实际表现无法验证。建议在下载使用前确认文件是否完整。