Feat/3.0.0 beta1 - #2391
Merged
Merged
Conversation
两个任务模式会话产出的公文 Word 字体全是微软雅黑。根因有二: design-zh.md 明文禁用公文字体(理由「用户机器可能没装」不成立—— 字体名只写进 XML,渲染在用户的 Word 端,服务端装没装不影响产物); docx_helpers 把字体硬编码在 run 级、连参数都不给,样式覆盖不掉。 - 新增 style_profiles.py:gongwen(GB/T 9704-2012,默认)与 modern 两档,resolve_profile 深合并,模块级 active profile 让所有 helper 自动跟随,不必逐处传字体 - docx_helpers 7 处硬编码改读 profile;新增 add_gongwen_title / add_signature_block;apply_chinese_defaults 回头重刷已有 section 的页边距,避免 setup_page 先调用时切档失效 - inspect_docx 按公文意图判档(四体之一出现,或首几段拼出「关于×× 的通知」),公文文档混入通用字体报 WARN。不进 ERROR:单位模板可 合法覆盖国标,不可满足的检查器会让模型的返修循环停不下来 - 新增 references/gongwen-gbt9704.md(版式取值 + 格式要素排列); design-zh.md 定位为非公文档规范并修正那条字体理由 - SKILL.md 加 §2.1:外部公文 skill 定文种文风,版式落地仍在本技能, 取值通过 profile dict 交接;禁止调用外部 skill 的 Word 导出脚本 (gongwen-draft 的 generate_docx.py 在 Linux 实测 rc=2 直接退出) - 测试 +8:默认档、modern 档、深合并、调用顺序、公文混用通用字体的 回归,以及一条 AST 静态护栏(helper 不得再读 CN_FONT* 或内联字体名) 114 端到端三场景已验证:单勾 bisheng-docx 与叠加公文 skill(原故障 场景)均落在仿宋_GB2312 + 黑体 + 楷体_GB2312 + 方正小标宋简体; 「写份周报」正确切到 modern 档。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
简要描述做了什么改动。
Why
为什么需要这个改动?
How
实现方式、设计决策(如有)。
Test
Related