Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

fix(checker): structure errors say paint may change; a slot overflow no longer advises expanding slot bounds; typed-slot tip names the lost animation anchor

hugohe34a28573c1279
diff --git a/skills/ppt-master/scripts/svg_quality/checker.py b/skills/ppt-master/scripts/svg_quality/checker.py
index 6cde2bd2..f94f5010 100644
--- a/skills/ppt-master/scripts/svg_quality/checker.py
+++ b/skills/ppt-master/scripts/svg_quality/checker.py
@@ -4961,7 +4961,12 @@ class SVGQualityChecker:
),
outer=boundary,
repair=(
- 'expand the root module bounds into available '
+ # A Layout slot's bounds are its contract on every page.
+ 'reflow the text, or map the page to a Layout whose '
+ 'slot is larger; slot bounds stay as the prototype '
+ 'declares them'
+ if module.get('data-pptx-placeholder') is not None
+ else 'expand the root module bounds into available '
'non-overlapping space; otherwise reflow the text'
),
width_diagnostic=self._text_width_diagnostic(
diff --git a/skills/ppt-master/scripts/svg_quality/cli.py b/skills/ppt-master/scripts/svg_quality/cli.py
index 1d165e1a..7e66f840 100644
--- a/skills/ppt-master/scripts/svg_quality/cli.py
+++ b/skills/ppt-master/scripts/svg_quality/cli.py
@@ -312,8 +312,9 @@ def main() -> None:
+ "/".join(checker._structured_native_slots)
+ " placeholder slot(s) are filled by native objects: this deck "
"exports only with --native-charts-and-tables and the standard "
- "export fails; for both forms author that object as a Slide-local "
- "marker group beside the slots instead."
+ "export fails, and the object inside the slot is no top-level animation "
+ "anchor; for both forms author it as a Slide-local marker group "
+ "beside the slots instead."
)
if checker._has_incomplete_page_roster:
print(
diff --git a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py
index f171e62f..400b3208 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py
@@ -3025,7 +3025,9 @@ def _layout_contract_difference(
details.append("generated Layout element order differs")
if not details:
details.append(
- "shared Layout element metadata, geometry, topology, or content differs"
+ "shared Layout element metadata (data-pptx-* attributes), geometry, "
+ "topology, or content differs; fills, strokes, and gradients may be "
+ "repainted"
)
return "; ".join(details)
@@ -3323,8 +3325,13 @@ def template_prototype_errors(
errors.append(
f"{spec.svg_path.name}: template Master structure differs "
f"from prototype {reference.svg_path.name}; strict and adaptive "
- "routes must retain its ids, topology, geometry, and content"
- + (" including mirror visual styling" if literal_visual else "")
+ "routes must retain its ids, topology, geometry, data-pptx-* "
+ "metadata, and content"
+ + (
+ " including mirror visual styling"
+ if literal_visual
+ else "; fills, strokes, and gradients may be repainted"
+ )
+ (
f"; first difference: {master_difference}"
if master_difference else ""