1
0

feat: 实现幻灯片备注功能,将description写入PPT备注页

- 添加 PptxGenerator._set_notes() 方法设置备注
- 在 add_slide() 中调用 _set_notes() 处理 description
- 仅幻灯片级别的 description 写入备注,不继承模板
- 添加备注功能测试用例(8个测试)
- 更新 README.md 和 README_DEV.md 文档
- 新建 pptx-slide-notes spec
- 更新 page-description spec 允许写入备注
- 归档 add-slide-notes 变更
This commit is contained in:
2026-03-04 14:47:03 +08:00
parent f34405be36
commit 7ef29ea039
12 changed files with 454 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
## 1. 核心实现
- [x] 1.1 在 PptxGenerator 类中添加 _set_notes 私有方法
- [x] 1.2 在 add_slide 方法中调用 _set_notes 设置备注
## 2. 测试
- [x] 2.1 添加幻灯片包含 description 的测试用例
- [x] 2.2 添加幻灯片不包含 description 的测试用例
- [x] 2.3 添加 description 包含多行文本的测试用例
- [x] 2.4 添加 description 包含中文字符的测试用例
- [x] 2.5 添加模板有 description 但幻灯片没有的测试用例
## 3. 文档更新
- [x] 3.1 更新 README.md 添加备注功能说明
- [x] 3.2 更新 README_DEV.md 添加备注功能开发文档