Repository navigation
feat(crates/panache-mcp): 并排检查插图线条和附近笔迹 - #65
Conversation
背景:整页缩略图上容易忽略位图插图和附近笔迹的粗细差异。 解决手段:在整页检查中用当前页几何推荐同时覆盖插图与附近笔迹的原尺寸检查区域。 收益:客户端能在同一倍率下看清线宽差异,按图局部处理。
Reviewer's GuideData structuresAdd an internal text marker to glyph tiles and bounds so later review logic can distinguish handwritten characters from illustration elements.
ImplementationPropagate the text marker through rendered line units and captured tiles, classifying illustration tiles as non-text.
Use adjusted page geometry to find the first embedded illustration and nearest visible text, then provide a native-scale review region when the combined crop fits on the page.
UIAdd guidance to ordinary image previews so users compare an embedded drawing with nearby writing at the same zoom and use only the current revision.
TestsAdd an end-to-end MCP regression covering image and text combinations, suggested review crops, layout contents, and review-record behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
背景:仅凭排版单元没有位图编号来找正文,会把原生箭头当成字,即使整页只有两幅图也返回图文对照裁图。 解决手段:在排版时标明字符单元,把标记传给整页检查,只从正文中选参照,并排除手调为全透明的字形。 收益:Windows 真实 MCP 回归中,只有方框和箭头时不再推荐裁图。在箭头后加一个「字」,推荐的 264 × 263 裁图同时框到方框和该字。原图文用例仍返回 179 × 178 裁图,纯字和单图页均不触发。
|
Sorry @SXP-Simon, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 2 days and 20 hours by commenting |
为什么改
一份手写作业里,模型改用 PNG 画方框和箭头。缩小看整页时,模型把成品交了出来,使用者后来指出图线比文字粗很多。原有照片外观提示主要看文字和底纸,推荐区域可能没有框到图。
这个草稿做什么
Windows 实际验证
中间版本还暴露了两个问题:只有整页检查带提示时,Luna 有一次只看普通成图,判断「可以交」。加入普通预览提示后,它又曾把同页对照误填为比较两个相同版本。因此最终两个入口都说明了同页如何检查。两模型每个版本各一次,最终对这张明显粗线图的识别均为 2/2。有证据的收益是 Terra 主动取到同倍率裁图,尚不能据此判断模型识别率提高。
MCP 的 16 项单元测试和 Clippy 通过。新增的真实 stdio 回归可用
python crates/panache-mcp/tests/illustration_ink_check.py <panache-mcp>复跑。该自动建议聚焦每页第一张位图,原生流程图的生成问题由 #63 独立处理。Summary by Sourcery
Enable MCP reviews to identify and compare embedded illustration lines with nearby handwriting without changing the surrounding text ink.
New Features:
Enhancements:
Documentation:
Tests: