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
feat: exported objects are named after their SVG id; clarify preset wrapping for motion units
hugohe3a849c4981e7e
diff --git a/skills/ppt-master/scripts/docs/svg-pipeline.md b/skills/ppt-master/scripts/docs/svg-pipeline.mdindex e6eb75c0..ef5b56a5 100644--- a/skills/ppt-master/scripts/docs/svg-pipeline.md+++ b/skills/ppt-master/scripts/docs/svg-pipeline.md@@ -754,6 +754,8 @@ EMF/WMF images referenced by a page are preserved as external references, neverConvert project SVGs into PPTX. EMF/WMF images referenced from `svg_output/` are embedded as native `image/x-emf` / `image/x-wmf` media at full vector fidelity.+Each exported object is named after `data-pptx-shape-name`, else its SVG `id` (or `data-name`), else a positional `Group N` / `TextBox N`; forced-Morph `!!` names still win. The PowerPoint Selection and Animation panes therefore read like the source SVG.+Native formulas use the two markers owned by[`native-formula.md`](../../references/native-formula.md). A standalone blockstores delimiter-free LaTeX in the JSON metadata ofdiff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.pyindex c0c68f01..83c2663f 100644--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py@@ -94,6 +94,7 @@ from .styles import ()from .elements import (complete_preset_adjustments,+ shape_display_name,empty_clip_path_reason,convert_rect, convert_circle, convert_ellipse,convert_line, convert_path,@@ -831,6 +832,9 @@ def _convert_semantic_shape():if carrier.get(name) is None and shape.get(name) is not None:carrier.set(name, str(shape.get(name)))+ if carrier.get('data-name') is None and shape.get('id'):+ # The carrier path becomes the native object; keep the group's name.+ carrier.set('data-name', str(shape.get('id')))if shape.get('data-pptx-geometry-kind') == 'custom':for name in (@@ -1444,7 +1448,7 @@ def convert_g(elem: ET.Element, ctx: ConvertContext) -> ShapeResult | None:return ShapeResult(xml=f'''<p:grpSp><p:nvGrpSpPr>-<p:cNvPr id="{group_id}" name="Group {group_id}"/>+<p:cNvPr id="{group_id}" name="{_xml_escape(shape_display_name(elem, f'Group {group_id}'))}"/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>diff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.pyindex d4644252..c8a1c386 100644--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py@@ -468,6 +468,20 @@ def project_image_errors(return sorted(errors)+def shape_display_name(elem: ET.Element, fallback: str) -> str:+ """Name a PowerPoint object after its SVG identity when it has one.++ ``data-pptx-shape-name`` wins, then the SVG ``id`` (or ``data-name``), so+ the Selection and Animation panes show ``p08-rail-edge`` rather than+ ``Freeform 9``; unnamed objects keep the positional fallback.+ """+ for attribute in ('data-pptx-shape-name', 'id', 'data-name'):+ value = (elem.get(attribute) or '').strip()+ if value:+ return value+ return fallback++def _wrap_shape(shape_id: int, name: str,off_x: int, off_y: int,@@ -550,7 +564,7 @@ def _wrap_geometry_object("""Wrap a semantic leaf as a shape or connector without guessing."""if not effect_xml:effect_xml = _element_effect_xml(elem, ctx)- name = elem.get('data-pptx-shape-name') or name+ name = shape_display_name(elem, name)shape_style_xml = _decode_shape_style(elem)object_kind = elem.get('data-pptx-object')if object_kind != 'connector':@@ -3638,7 +3652,7 @@ def convert_text(elem: ET.Element, ctx: ConvertContext) -> ShapeResult | None:shape_xml = f'''<p:sp><p:nvSpPr>-<p:cNvPr id="{shape_id}" name="TextBox {shape_id}"/>+<p:cNvPr id="{shape_id}" name="{_xml_escape(shape_display_name(elem, f'TextBox {shape_id}'))}"/><p:cNvSpPr txBox="1"/><p:nvPr/></p:nvSpPr><p:spPr>@@ -4989,7 +5003,7 @@ def convert_image(elem: ET.Element, ctx: ConvertContext) -> ShapeResult | None:return ShapeResult(xml=f'''<p:pic><p:nvPicPr>-<p:cNvPr id="{shape_id}" name="Image {shape_id}"/>+<p:cNvPr id="{shape_id}" name="{_xml_escape(shape_display_name(elem, f'Image {shape_id}'))}"/><p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr><p:nvPr/></p:nvPicPr>@@ -5572,7 +5586,7 @@ def convert_nested_svg(elem: ET.Element, ctx: ConvertContext) -> ShapeResult | Nreturn ShapeResult(xml=f'''<p:pic><p:nvPicPr>-<p:cNvPr id="{shape_id}" name="Image {shape_id}"/>+<p:cNvPr id="{shape_id}" name="{_xml_escape(shape_display_name(elem, f'Image {shape_id}'))}"/><p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr><p:nvPr/></p:nvPicPr>diff --git a/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py b/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.pyindex 5b6561b6..daded3e1 100644--- a/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py+++ b/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py@@ -204,7 +204,7 @@ class PolygonFilterTests(unittest.TestCase):svg_path.write_text(self.SVG, encoding="utf-8")xml, *_rest = convert_svg_to_slide_shapes(svg_path, resource_root=root)self.assertIn("<a:outerShdw", xml)- self.assertIn("Polygon", xml)+ self.assertIn('name="sheet"', xml) # named after its SVG idclass PresetPaintCompactionTests(unittest.TestCase):diff --git a/skills/ppt-master/workflows/stages/customize-animations.md b/skills/ppt-master/workflows/stages/customize-animations.mdindex 52fb067a..3c3e3ee6 100644--- a/skills/ppt-master/workflows/stages/customize-animations.md+++ b/skills/ppt-master/workflows/stages/customize-animations.md@@ -65,7 +65,7 @@ Unless an all-motion disable bypasses it, validate an existing sidecar first: `p| Several atoms express one inseparable idea | Keep them together || Page chrome, structural layers, static framing | Preserve; use [`animations.md`](../../references/animations.md) §5 for target eligibility |-**Hard rule — visual equivalence**: regrouping changes object boundaries only — preserve every visible pixel, paint order, coordinate, transform, inherited paint, opacity, clip, filter, reference, and native metadata; keep rendering-bearing wrappers nested when flattening could change appearance. **Hard rule — structural boundary**: never split or merge across `data-pptx-layer`, `data-pptx-placeholder`, native chart/table carrier, native preset, or imported logical-object boundaries; ordinary direct-root groups follow [`shared-standards-core.md`](../../references/shared-standards-core.md) §4.3 (descriptive unique `id`, positive root-coordinate `data-pptx-bounds`, no bounds on nested groups).+**Hard rule — visual equivalence**: regrouping changes object boundaries only — preserve every visible pixel, paint order, coordinate, transform, inherited paint, opacity, clip, filter, reference, and native metadata; keep rendering-bearing wrappers nested when flattening could change appearance. **Hard rule — structural boundary**: never split or merge across `data-pptx-layer`, `data-pptx-placeholder`, native chart/table carrier, native preset, or imported logical-object boundaries; wrapping a whole preset with its label in one bounded parent group is not a merge across it; ordinary direct-root groups follow [`shared-standards-core.md`](../../references/shared-standards-core.md) §4.3 (descriptive unique `id`, positive root-coordinate `data-pptx-bounds`, no bounds on nested groups).**Forbidden — group-list-first choreography**: choosing effects or order from `list-groups` before the audit; keeping a coarse wrapper because it has an `id`; splitting one idea into shapes or lines to raise the count; merging unrelated ideas to lower it; adding animation `data-*` attributes to SVG. There is no target group count.