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: template preview and registration order pages by the slide roster; Quick deck-language advisory tolerates an empty roster

hugohe3adb9faf0c687
diff --git a/skills/ppt-master/scripts/register_template.py b/skills/ppt-master/scripts/register_template.py
index 8aef1ec0..f5b67dff 100644
--- a/skills/ppt-master/scripts/register_template.py
+++ b/skills/ppt-master/scripts/register_template.py
@@ -56,6 +56,7 @@ from xml.etree import ElementTree as ET
from attribution_guard import require_skill_integrity
from console_encoding import configure_utf8_stdio
from config import CANVAS_FORMATS
+from slide_roster import discover_slide_svgs
try:
import yaml # type: ignore
@@ -444,7 +445,8 @@ def _template_content_dir(template_root: Path) -> Path:
def _list_pages(template_dir: Path) -> list[str]:
- return sorted(p.stem for p in template_dir.glob("*.svg"))
+ """Page stems in roster order, the order the preview and export use."""
+ return [p.stem for p in discover_slide_svgs(template_dir)]
def _derive_page_types(pages: list[str]) -> list[str]:
diff --git a/skills/ppt-master/scripts/svg_quality/checker.py b/skills/ppt-master/scripts/svg_quality/checker.py
index 34bd7d62..480a76d8 100644
--- a/skills/ppt-master/scripts/svg_quality/checker.py
+++ b/skills/ppt-master/scripts/svg_quality/checker.py
@@ -1320,9 +1320,10 @@ class SVGQualityChecker:
if hydrated_payloads:
result['info']['native_payload_refs'] = hydrated_payloads
+ roster = discover_slide_svgs(svg_path.parent) if self.quick_generate else []
if (
- self.quick_generate
- and svg_path.name == discover_slide_svgs(svg_path.parent)[0].name
+ roster
+ and svg_path.name == roster[0].name
and not (
root.get('lang')
or root.get('{http://www.w3.org/XML/1998/namespace}lang')
diff --git a/skills/ppt-master/scripts/template_preview_pptx.py b/skills/ppt-master/scripts/template_preview_pptx.py
index 0b3450c4..a07de298 100644
--- a/skills/ppt-master/scripts/template_preview_pptx.py
+++ b/skills/ppt-master/scripts/template_preview_pptx.py
@@ -29,6 +29,7 @@ from xml.etree import ElementTree as ET
from attribution_guard import require_skill_integrity
from console_encoding import configure_utf8_stdio
+from slide_roster import discover_slide_svgs
configure_utf8_stdio()
@@ -337,7 +338,7 @@ def main(argv: list[str] | None = None) -> int:
try:
workspace, template_dir = _resolve_workspace(Path(args.template_workspace))
- all_svg_files = sorted(template_dir.glob("*.svg"))
+ all_svg_files = discover_slide_svgs(template_dir)
if not all_svg_files:
raise ValueError(f"template directory has no SVG prototypes: {template_dir}")
definition_only_files = [