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: library table and chart prototypes pass native parity; a stroked outer rect counts as the table frame; a moved duplicate source leaves projects/; typed-slot tip names the failing standard export

hugohe37599c78e34cc
diff --git a/skills/ppt-master/scripts/project_management/cli.py b/skills/ppt-master/scripts/project_management/cli.py
index 53272397..53e555e0 100644
--- a/skills/ppt-master/scripts/project_management/cli.py
+++ b/skills/ppt-master/scripts/project_management/cli.py
@@ -949,11 +949,18 @@ class ProjectManager:
if suffix in {".md", ".markdown"}:
duplicate_markdown = self._find_equivalent_markdown(source_path, sources_dir)
if duplicate_markdown is not None:
- summary["markdown"].append(str(duplicate_markdown))
+ if str(duplicate_markdown) not in summary["markdown"]:
+ summary["markdown"].append(str(duplicate_markdown))
if propagate_images:
self._propagate_companion_image_assets(duplicate_markdown, project_dir)
+ # A moved source must leave projects/ even when its content
+ # already sits in the project under another name.
+ removed = ""
+ if effective_move and source_path.resolve() != duplicate_markdown.resolve():
+ source_path.unlink()
+ removed = "; the moved duplicate was removed"
summary["notes"].append(
- f"{item}: skipped duplicate markdown import because equivalent content already exists as {duplicate_markdown.name}"
+ f"{item}: skipped duplicate markdown import because equivalent content already exists as {duplicate_markdown.name}{removed}"
)
continue
diff --git a/skills/ppt-master/scripts/svg_quality/cli.py b/skills/ppt-master/scripts/svg_quality/cli.py
index fc661777..1d165e1a 100644
--- a/skills/ppt-master/scripts/svg_quality/cli.py
+++ b/skills/ppt-master/scripts/svg_quality/cli.py
@@ -310,8 +310,10 @@ def main() -> None:
print(
"[TIP] Structured "
+ "/".join(checker._structured_native_slots)
- + " placeholder slot(s) are filled by native objects: export "
- "with --native-charts-and-tables (the standard export refuses them)."
+ + " 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."
)
if checker._has_incomplete_page_roster:
print(
diff --git a/skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py b/skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py
index b0956147..5b9e8d49 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py
@@ -1260,9 +1260,22 @@ def _native_table_border_topology_warnings(
row_count = len(row_edges) - 1
col_count = len(column_edges) - 1
for record in shape_records:
- if record.tag != "line" or record.stroke is None:
+ if record.stroke is None:
continue
x1, y1, x2, y2 = record.bounds
+ if record.tag == "rect":
+ # A stroked rect on the table's outer bounds draws the outer frame.
+ if (
+ abs(x1 - column_edges[0]) <= 2 and abs(x2 - column_edges[-1]) <= 2
+ and abs(y1 - row_edges[0]) <= 2 and abs(y2 - row_edges[-1]) <= 2
+ ):
+ for col_idx in range(col_count):
+ covered.update({("h", 0, col_idx), ("h", row_count, col_idx)})
+ for row_idx in range(row_count):
+ covered.update({("v", 0, row_idx), ("v", col_count, row_idx)})
+ continue
+ if record.tag != "line":
+ continue
if abs(y2 - y1) <= 1:
boundary = next(
(idx for idx, edge in enumerate(row_edges) if abs(edge - y1) <= 2),
diff --git a/skills/ppt-master/templates/layouts/presentation_core/templates/19_chart_insight.svg b/skills/ppt-master/templates/layouts/presentation_core/templates/19_chart_insight.svg
index 144421f5..fb49bc06 100644
--- a/skills/ppt-master/templates/layouts/presentation_core/templates/19_chart_insight.svg
+++ b/skills/ppt-master/templates/layouts/presentation_core/templates/19_chart_insight.svg
@@ -20,7 +20,7 @@
data-pptx-bounds="88 176 712 408">
<g id="chart-insight-chart-carrier" data-pptx-carrier="true"
data-pptx-replace-with="chart" data-pptx-fallback-sha256="e39e729fbcd88647bc948bf86f6974592347d171897ee0568376b13330fdb95b">
- <metadata type="application/json">{"name":"chart_insight","x":88,"y":176,"width":712,"height":408,"type":"column","categories":["Q1","Q2","Q3","Q4"],"series":[{"name":"Actual","values":[42,55,63,78]},{"name":"Plan","values":[48,58,68,74]}],"show_legend":true,"legend_position":"bottom","style":{"colors":["#64748B","#CBD5E1"],"chart_area_fill":"#F4F6F8","plot_area_fill":"#FFFFFF","text_color":"#475569","axis_color":"#CBD5E1","grid_color":"#E2E8F0","font_family":"Arial"}}</metadata>
+ <metadata type="application/json">{"name":"chart_insight","x":88,"y":176,"width":712,"height":408,"type":"column","categories":["Q1","Q2","Q3","Q4"],"series":[{"name":"Actual","values":[42,55,63,78]},{"name":"Plan","values":[48,58,68,74]}],"show_legend":true,"legend_position":"bottom","style":{"colors":["#64748B","#CBD5E1"],"chart_area_fill":"#F4F6F8","plot_area_fill":"#FFFFFF","text_color":"#64748B","axis_color":"#E2E8F0","grid_color":"#E2E8F0","font_family":"Arial"}}</metadata>
<rect x="88" y="176" width="712" height="408" rx="8" fill="#FFFFFF"/>
<rect x="586" y="202" width="12" height="12" rx="2" fill="#64748B"/>
<text x="606" y="213" fill="#64748B" font-family="Arial, sans-serif" font-size="14">Actual</text>
diff --git a/skills/ppt-master/templates/layouts/presentation_core/templates/20_table_summary.svg b/skills/ppt-master/templates/layouts/presentation_core/templates/20_table_summary.svg
index 056153e6..0cfb804a 100644
--- a/skills/ppt-master/templates/layouts/presentation_core/templates/20_table_summary.svg
+++ b/skills/ppt-master/templates/layouts/presentation_core/templates/20_table_summary.svg
@@ -20,7 +20,7 @@
data-pptx-bounds="88 176 776 408">
<g id="table-summary-table-carrier" data-pptx-carrier="true"
data-pptx-replace-with="table" data-pptx-fallback-sha256="6537e9228a8e8691fd1870f794329de56b7c51a8c6c40fe4e37d2d8963659f61">
- <metadata type="application/json">{"schema":"ppt-master.semantic-table.v2","name":"table_summary","x":88,"y":176,"width":776,"height":408,"strict_grid":true,"column_widths":[3,2,2],"row_heights":[1,1,1,1,1],"style":{"font_family":"Arial","font_size":17,"header_font_size":16,"header_fill":"#E2E8F0","header_text":"#334155","body_fill":"#FFFFFF","body_text":"#475569","band_fill":"#F8FAFC","border_color":"#D6DCE3","border_width":1,"padding":{"left":12,"right":12,"top":6,"bottom":6},"valign":"middle"},"columns":[{"text":"Metric","bold":true},{"text":"Current","align":"r","bold":true},{"text":"Target","align":"r","bold":true}],"rows":[[{"text":"Adoption"},{"text":"68%","align":"r","bold":true},{"text":"80%","align":"r"}],[{"text":"Cycle time"},{"text":"12 d","align":"r","bold":true},{"text":"8 d","align":"r"}],[{"text":"Quality"},{"text":"94%","align":"r","bold":true},{"text":"97%","align":"r"}],[{"text":"Cost index"},{"text":"1.08","align":"r","bold":true},{"text":"1.00","align":"r"}]]}</metadata>
+ <metadata type="application/json">{"schema":"ppt-master.semantic-table.v2","name":"table_summary","x":88,"y":176,"width":776,"height":408,"strict_grid":true,"column_widths":[3,2,2],"row_heights":[72,84,84,84,84],"style":{"font_family":"Arial","font_size":17,"header_font_size":16,"header_fill":"#E2E8F0","header_text":"#334155","body_fill":"#FFFFFF","body_text":"#475569","band_fill":"#F8FAFC","border_color":"#D6DCE3","border_width":1,"padding":{"left":12,"right":12,"top":6,"bottom":6},"valign":"middle"},"columns":[{"text":"Metric","bold":true,"align":"l"},{"text":"Current","align":"r","bold":true},{"text":"Target","align":"r","bold":true}],"rows":[[{"text":"Adoption"},{"text":"68%","align":"r","bold":true,"color":"#334155"},{"text":"80%","align":"r"}],[{"text":"Cycle time","fill":"#F8FAFC"},{"text":"12 d","align":"r","bold":true,"fill":"#F8FAFC","color":"#334155"},{"text":"8 d","align":"r","fill":"#F8FAFC"}],[{"text":"Quality"},{"text":"94%","align":"r","bold":true,"color":"#334155"},{"text":"97%","align":"r"}],[{"text":"Cost index","fill":"#F8FAFC"},{"text":"1.08","align":"r","bold":true,"fill":"#F8FAFC","color":"#334155"},{"text":"1.00","align":"r","fill":"#F8FAFC"}]]}</metadata>
<rect x="88" y="176" width="776" height="408" rx="8" fill="#FFFFFF" stroke="#D6DCE3" stroke-width="1"/>
<rect x="88" y="176" width="776" height="72" rx="8" fill="#E2E8F0"/>
<rect x="88" y="248" width="776" height="84" fill="#FFFFFF"/>
diff --git a/skills/ppt-master/templates/layouts/presentation_core_43/templates/15_chart_insight.svg b/skills/ppt-master/templates/layouts/presentation_core_43/templates/15_chart_insight.svg
index 87cdff44..017cc73c 100644
--- a/skills/ppt-master/templates/layouts/presentation_core_43/templates/15_chart_insight.svg
+++ b/skills/ppt-master/templates/layouts/presentation_core_43/templates/15_chart_insight.svg
@@ -20,7 +20,7 @@
data-pptx-bounds="76 156 576 536">
<g id="chart-insight-chart-carrier" data-pptx-carrier="true"
data-pptx-replace-with="chart" data-pptx-fallback-sha256="0d80a55b47e50bcd9ffe0f604bb9a8e033d015e503c6f836a1701e2d67b8016d">
- <metadata type="application/json">{"name":"chart_insight","x":76,"y":156,"width":576,"height":536,"type":"column","categories":["Q1","Q2","Q3","Q4"],"series":[{"name":"Actual","values":[42,55,63,78]},{"name":"Plan","values":[48,58,68,74]}],"show_legend":true,"legend_position":"bottom","style":{"colors":["#64748B","#CBD5E1"],"chart_area_fill":"#F4F6F8","plot_area_fill":"#FFFFFF","text_color":"#475569","axis_color":"#CBD5E1","grid_color":"#E2E8F0","font_family":"Arial"}}</metadata>
+ <metadata type="application/json">{"name":"chart_insight","x":76,"y":156,"width":576,"height":536,"type":"column","categories":["Q1","Q2","Q3","Q4"],"series":[{"name":"Actual","values":[42,55,63,78]},{"name":"Plan","values":[48,58,68,74]}],"show_legend":true,"legend_position":"bottom","style":{"colors":["#64748B","#CBD5E1"],"chart_area_fill":"#F4F6F8","plot_area_fill":"#FFFFFF","text_color":"#64748B","axis_color":"#E2E8F0","grid_color":"#E2E8F0","font_family":"Arial"}}</metadata>
<rect x="76" y="156" width="576" height="536" rx="8" fill="#FFFFFF"/>
<rect x="440" y="192" width="12" height="12" rx="2" fill="#64748B"/>
<text x="460" y="203" fill="#64748B" font-family="Arial, sans-serif" font-size="14">Actual</text>
diff --git a/skills/ppt-master/templates/layouts/presentation_core_43/templates/16_table_summary.svg b/skills/ppt-master/templates/layouts/presentation_core_43/templates/16_table_summary.svg
index ae32e401..7a3b3f82 100644
--- a/skills/ppt-master/templates/layouts/presentation_core_43/templates/16_table_summary.svg
+++ b/skills/ppt-master/templates/layouts/presentation_core_43/templates/16_table_summary.svg
@@ -20,7 +20,7 @@
data-pptx-bounds="76 156 616 536">
<g id="table-summary-table-carrier" data-pptx-carrier="true"
data-pptx-replace-with="table" data-pptx-fallback-sha256="df057a9b89e36115d79de59428589712fe4178be319de783016927bf26a420ad">
- <metadata type="application/json">{"schema":"ppt-master.semantic-table.v2","name":"table_summary","x":76,"y":156,"width":616,"height":536,"strict_grid":true,"column_widths":[3,2,2],"row_heights":[1,1,1,1,1],"style":{"font_family":"Arial","font_size":17,"header_font_size":16,"header_fill":"#E2E8F0","header_text":"#334155","body_fill":"#FFFFFF","body_text":"#475569","band_fill":"#F8FAFC","border_color":"#D6DCE3","border_width":1,"padding":{"left":12,"right":12,"top":6,"bottom":6},"valign":"middle"},"columns":[{"text":"Metric","bold":true},{"text":"Current","align":"r","bold":true},{"text":"Target","align":"r","bold":true}],"rows":[[{"text":"Adoption"},{"text":"68%","align":"r","bold":true},{"text":"80%","align":"r"}],[{"text":"Cycle time"},{"text":"12 d","align":"r","bold":true},{"text":"8 d","align":"r"}],[{"text":"Quality"},{"text":"94%","align":"r","bold":true},{"text":"97%","align":"r"}],[{"text":"Cost index"},{"text":"1.08","align":"r","bold":true},{"text":"1.00","align":"r"}]]}</metadata>
+ <metadata type="application/json">{"schema":"ppt-master.semantic-table.v2","name":"table_summary","x":76,"y":156,"width":616,"height":536,"strict_grid":true,"column_widths":[3,2,2],"row_heights":[72,116,116,116,116],"style":{"font_family":"Arial","font_size":17,"header_font_size":16,"header_fill":"#E2E8F0","header_text":"#334155","body_fill":"#FFFFFF","body_text":"#475569","band_fill":"#F8FAFC","border_color":"#D6DCE3","border_width":1,"padding":{"left":12,"right":12,"top":6,"bottom":6},"valign":"middle"},"columns":[{"text":"Metric","bold":true,"align":"l"},{"text":"Current","align":"r","bold":true},{"text":"Target","align":"r","bold":true}],"rows":[[{"text":"Adoption"},{"text":"68%","align":"r","bold":true,"color":"#334155"},{"text":"80%","align":"r"}],[{"text":"Cycle time","fill":"#F8FAFC"},{"text":"12 d","align":"r","bold":true,"fill":"#F8FAFC","color":"#334155"},{"text":"8 d","align":"r","fill":"#F8FAFC"}],[{"text":"Quality"},{"text":"94%","align":"r","bold":true,"color":"#334155"},{"text":"97%","align":"r"}],[{"text":"Cost index","fill":"#F8FAFC"},{"text":"1.08","align":"r","bold":true,"fill":"#F8FAFC","color":"#334155"},{"text":"1.00","align":"r","fill":"#F8FAFC"}]]}</metadata>
<rect x="76" y="156" width="616" height="536" rx="8" fill="#FFFFFF" stroke="#D6DCE3" stroke-width="1"/>
<rect x="76" y="156" width="616" height="72" rx="8" fill="#E2E8F0"/>
<rect x="76" y="228" width="616" height="116" fill="#FFFFFF"/>
diff --git a/skills/ppt-master/templates/layouts/report_core/templates/08_chart_insight.svg b/skills/ppt-master/templates/layouts/report_core/templates/08_chart_insight.svg
index 94f6bec6..efc05768 100644
--- a/skills/ppt-master/templates/layouts/report_core/templates/08_chart_insight.svg
+++ b/skills/ppt-master/templates/layouts/report_core/templates/08_chart_insight.svg
@@ -22,7 +22,7 @@
data-pptx-bounds="68 196 760 424">
<g id="chart-insight-chart-carrier" data-pptx-carrier="true"
data-pptx-replace-with="chart" data-pptx-fallback-sha256="0883c0890ad63b3ec8b2a31e5a5f4177d14bdb6e496ec226460a88433b20c938">
- <metadata type="application/json">{"name":"chart_insight","x":68,"y":196,"width":760,"height":424,"type":"column","categories":["Q1","Q2","Q3","Q4"],"series":[{"name":"Actual","values":[42,55,63,78]},{"name":"Plan","values":[48,58,68,74]}],"show_legend":true,"legend_position":"top","style":{"colors":["#64748B","#CBD5E1"],"chart_area_fill":"#F8FAFC","plot_area_fill":"#FFFFFF","text_color":"#475569","axis_color":"#CBD5E1","grid_color":"#E2E8F0","font_family":"Arial"}}</metadata>
+ <metadata type="application/json">{"name":"chart_insight","x":68,"y":196,"width":760,"height":424,"type":"column","categories":["Q1","Q2","Q3","Q4"],"series":[{"name":"Actual","values":[42,55,63,78]},{"name":"Plan","values":[48,58,68,74]}],"show_legend":true,"legend_position":"top","style":{"colors":["#64748B","#CBD5E1"],"chart_area_fill":"#F8FAFC","plot_area_fill":"#FFFFFF","text_color":"#64748B","axis_color":"#E2E8F0","grid_color":"#E2E8F0","font_family":"Arial"}}</metadata>
<rect x="68" y="196" width="760" height="424" rx="6" fill="#FFFFFF"/>
<rect x="600" y="224" width="10" height="10" rx="2" fill="#64748B"/>
<text x="616" y="233" fill="#64748B" font-family="Arial, sans-serif" font-size="12">Actual</text>
diff --git a/skills/ppt-master/templates/layouts/report_core/templates/09_table_summary.svg b/skills/ppt-master/templates/layouts/report_core/templates/09_table_summary.svg
index 4acaf5f2..6774fc26 100644
--- a/skills/ppt-master/templates/layouts/report_core/templates/09_table_summary.svg
+++ b/skills/ppt-master/templates/layouts/report_core/templates/09_table_summary.svg
@@ -22,7 +22,7 @@
data-pptx-bounds="68 196 816 424">
<g id="table-summary-table-carrier" data-pptx-carrier="true"
data-pptx-replace-with="table" data-pptx-fallback-sha256="8855518e6bc3c692919ed68d368f493fa05fdecd16eabc5beece070b24353f30">
- <metadata type="application/json">{"schema":"ppt-master.semantic-table.v2","name":"table_summary","x":68,"y":196,"width":816,"height":424,"strict_grid":true,"column_widths":[3,2,2],"row_heights":[1,1,1,1,1],"style":{"font_family":"Arial","font_size":15,"header_font_size":14,"header_fill":"#F1F5F9","header_text":"#334155","body_fill":"#FFFFFF","body_text":"#475569","band_fill":"#F8FAFC","border_color":"#E2E8F0","border_width":1,"padding":{"left":10,"right":10,"top":5,"bottom":5},"valign":"middle"},"columns":[{"text":"Metric","bold":true},{"text":"Current","align":"r","bold":true},{"text":"Target","align":"r","bold":true}],"rows":[[{"text":"Adoption"},{"text":"68%","align":"r","bold":true},{"text":"80%","align":"r"}],[{"text":"Cycle time"},{"text":"12 d","align":"r","bold":true},{"text":"8 d","align":"r"}],[{"text":"Quality"},{"text":"94%","align":"r","bold":true},{"text":"97%","align":"r"}],[{"text":"Cost index"},{"text":"1.08","align":"r","bold":true},{"text":"1.00","align":"r"}]]}</metadata>
+ <metadata type="application/json">{"schema":"ppt-master.semantic-table.v2","name":"table_summary","x":68,"y":196,"width":816,"height":424,"strict_grid":true,"column_widths":[3,2,2],"row_heights":[64,90,90,90,90],"style":{"font_family":"Arial","font_size":15,"header_font_size":14,"header_fill":"#F1F5F9","header_text":"#334155","body_fill":"#FFFFFF","body_text":"#475569","band_fill":"#F8FAFC","border_color":"#E2E8F0","border_width":1,"padding":{"left":10,"right":10,"top":5,"bottom":5},"valign":"middle"},"columns":[{"text":"Metric","bold":true,"align":"l"},{"text":"Current","align":"r","bold":true},{"text":"Target","align":"r","bold":true}],"rows":[[{"text":"Adoption"},{"text":"68%","align":"r","bold":true,"color":"#334155"},{"text":"80%","align":"r"}],[{"text":"Cycle time","fill":"#F8FAFC"},{"text":"12 d","align":"r","bold":true,"fill":"#F8FAFC","color":"#334155"},{"text":"8 d","align":"r","fill":"#F8FAFC"}],[{"text":"Quality"},{"text":"94%","align":"r","bold":true,"color":"#334155"},{"text":"97%","align":"r"}],[{"text":"Cost index","fill":"#F8FAFC"},{"text":"1.08","align":"r","bold":true,"fill":"#F8FAFC","color":"#334155"},{"text":"1.00","align":"r","fill":"#F8FAFC"}]]}</metadata>
<rect x="68" y="196" width="816" height="424" rx="6" fill="#FFFFFF" stroke="#E2E8F0" stroke-width="1"/>
<rect x="68" y="196" width="816" height="64" rx="6" fill="#F1F5F9"/>
<rect x="68" y="260" width="816" height="90" fill="#FFFFFF"/>