Files
docxmaker/wenzijiaoben/.workbuddy/memory/MEMORY.md
T
2026-08-21 10:39:51 +08:00

16 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 项目长期记忆
## 项目概述
游戏文字脚本文档生成工具:扫描项目目录,从配置表(xlsx/csv)和 GameTextConst.cs 提取文本,生成 Word 文档。
入口:`py/universal_tool.py`(通用版);`py/generate_doc.py` 为早期硬编码版(路径写死,仅参考)。
## 关键约定
- **数据读取**:直接读取 xlsx(优先),无需先转 csv。表头结构固定为第3行英文字段名、第4行起数据。
- **文档编号**:正文条目用 Word 自动编号(numPr + decimal),每章节独立 numId 从 1 开始;段落文本不硬编码 "1.",便于增删后自动重排。章节标题仍用硬编码中文数字。
- **字体**:标题宋体二号加粗居中;章节标题/正文仿宋四号。
- **图标**:表格图标列高 3cm 锁定纵横比,按 atlas_* 目录匹配,支持末尾数字补零。
## 环境
- 推荐用 managed python 3.13.12 + venvC:\Users\Administrator\.workbuddy\binaries\python\envs\default),依赖:python-docx、openpyxl。
- 项目配置记忆在 `memories/*.json`(数据源映射、格式规范、图标映射、项目配置)。