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(native-objects): scope fallback baselines to imported markers

hugohe38e839eedf21d
diff --git a/docs/technical-design.md b/docs/technical-design.md
index 8b52b329..42c8a914 100644
--- a/docs/technical-design.md
+++ b/docs/technical-design.md
@@ -530,7 +530,7 @@ These direct routes share some analysis primitives with the main pipeline, espec
For supported parsed column/bar/line/area, pie/doughnut, scatter, and bubble charts, a missing baked preview is replaced by a deterministic readable SVG fallback marked `data-pptx-fallback-kind="normalized"`. The importer also covers the verified column/line/area combo subset, canonical four-series OHLC stock, area charts with numeric date axes, verified scatter/bubble charts with the closed `axes.x` / `axes.y` contract, radar, safe `of_pie` `serLines`, axis/title/legend normalization, and bounded bar/column gap/overlap cases. `gapWidth` is accepted only as one integer in `0..500`, and `overlap` only as one integer in `-100..100`; these presentation values intentionally normalize in native output, while malformed, duplicate, or out-of-range input fails closed. Combo plots may retain independent primary/secondary category caches and workbook ranges. XY import derives `scatter_style` from uniform effective series line/marker/smooth state. The closed category/value and XY axis contracts retain kind, position, visibility, label position, number format, min/max/major unit, reversal, and major gridlines for native read-back; the normalized XY fallback consumes only the two `major_gridlines` flags.
-ChartEx import is deliberately closed to seven validated data models: `treemap`, `sunburst`, `histogram`, `pareto`, `box_whisker`, `waterfall`, and `funnel`. Their supported hierarchy/category/value/series/subtotal data topology round-trips through native output and reimport. Numeric caches must be non-empty and finite, with canonical non-negative counts/indexes and exact contiguous point topology. Source ChartEx style, axes, labels, and binning may normalize; this is not arbitrary ChartEx import or presentation fidelity. C4/C5 do not expand the normalized renderer, so valid active types outside it still use `data-pptx-fallback-kind="placeholder"` without a source preview. Full `AxisSpec`, arbitrary ChartEx families, arbitrary rich OOXML, rotated/flipped/3D charts, unverified combo/stock/date-axis variants, and other unmodeled semantics remain outside the active import subset. Native replacement may normalize payload-external presentation details and retains the data-model-first warning. Default export keeps fallback children as editable DrawingML shapes; only `--native-charts-and-tables` activates PowerPoint-native Chart/Table objects with a data source and object-specific editing model. Every active imported marker carries `data-pptx-import-source="pptx"` and `data-pptx-fallback-sha256`: stale visible edits, reachable SVG definition/reference changes, or marker transforms make native replacement fail rather than discard the SVG edit, while hashless legacy markers remain compatible with a warning. This importer/exporter pairing is a reconstruction aid, not a preservation-route substitute for `template-fill-pptx` or `native-enhance-pptx`.
+ChartEx import is deliberately closed to seven validated data models: `treemap`, `sunburst`, `histogram`, `pareto`, `box_whisker`, `waterfall`, and `funnel`. Their supported hierarchy/category/value/series/subtotal data topology round-trips through native output and reimport. Numeric caches must be non-empty and finite, with canonical non-negative counts/indexes and exact contiguous point topology. Source ChartEx style, axes, labels, and binning may normalize; this is not arbitrary ChartEx import or presentation fidelity. C4/C5 do not expand the normalized renderer, so valid active types outside it still use `data-pptx-fallback-kind="placeholder"` without a source preview. Full `AxisSpec`, arbitrary ChartEx families, arbitrary rich OOXML, rotated/flipped/3D charts, unverified combo/stock/date-axis variants, and other unmodeled semantics remain outside the active import subset. Native replacement may normalize payload-external presentation details and retains the data-model-first warning. Default export keeps fallback children as editable DrawingML shapes; only `--native-charts-and-tables` activates PowerPoint-native Chart/Table objects with a data source and object-specific editing model. Every active imported marker carries `data-pptx-import-source="pptx"` and `data-pptx-fallback-sha256`: stale visible edits, reachable SVG definition/reference changes, or marker transforms make native replacement fail rather than discard the SVG edit, while a hashless legacy imported marker that retains import provenance remains compatible with a warning. Generated authoring omits both importer provenance and a static baseline without warning. This importer/exporter pairing is a reconstruction aid, not a preservation-route substitute for `template-fill-pptx` or `native-enhance-pptx`.
---
diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.md
index 87ede261..68da809f 100644
--- a/docs/zh/technical-design.md
+++ b/docs/zh/technical-design.md
@@ -532,7 +532,7 @@ PowerPoint 的 DrawingML 是 SVG 表达力的严格子集,因此主编译路
受支持的柱 / 条 / 折线 / 面积、饼 / 圆环、散点 / 气泡图在没有 baked preview 时会生成确定性、可读的 SVG fallback,并标记 `data-pptx-fallback-kind="normalized"`。导入器还覆盖已验证的柱 / 折线 / 面积组合图、规范四系列 OHLC stock、数值日期轴面积图、采用封闭 `axes.x` / `axes.y` 合同的散点 / 气泡图、radar、安全的 `of_pie` `serLines`、坐标轴 / 标题 / 图例归一化,以及有界的柱 / 条图 gap/overlap 场景。`gapWidth` 只接受 `0..500` 内的单个整数,`overlap` 只接受 `-100..100` 内的单个整数;这两个表现字段在 native 输出中有意归一化,非法、重复或越界输入 fail closed。组合图可保留主 / 次 plot 各自的 category cache 与 workbook range。XY 导入根据各系列一致的有效 line/marker/smooth 状态推导 `scatter_style`。封闭的 category/value 与 XY 轴合同为 native read-back 保留 kind、position、visibility、label position、number format、min/max/major unit、reverse 和 major gridlines;规范化 XY fallback 只消费两个 `major_gridlines` 开关。
-ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunburst`、`histogram`、`pareto`、`box_whisker`、`waterfall` 与 `funnel`。其受支持的层级 / 分类 / 数值 / 系列 / 小计数据 topology 可经 native 输出再导入回读。数值 cache 必须非空且有限,count/index 必须是规范非负整数,并满足精确连续的 point topology。来源 ChartEx 的样式、坐标轴、标签与 binning 可能归一化;这不代表任意 ChartEx 导入或表现层保真。C4/C5 不扩展 normalized renderer,因此 renderer 外的有效 active 类型在没有源 preview 时仍使用 `data-pptx-fallback-kind="placeholder"`。完整 `AxisSpec`、任意 ChartEx 家族、任意富文本 OOXML、旋转 / 翻转 / 3D 图表、未验证的 combo/stock/date-axis 变体及其他未建模语义仍不在 active 导入子集内。native replacement 仍可能归一化 payload 外的表现细节,并保留数据模型优先 warning。默认导出把 fallback 子元素作为可编辑 DrawingML shape;只有 `--native-charts-and-tables` 才启用带数据源和对象专属编辑模型的 PowerPoint 原生 Chart/Table。每个 active 导入 marker 都带有 `data-pptx-import-source="pptx"` 与 `data-pptx-fallback-sha256`:可见 fallback、可达 SVG definition/reference 或 marker transform 变更后,native replacement 会 fail,而不是丢弃 SVG 编辑;无 hash 的旧 marker 仍兼容并给出 warning。该 importer/exporter 组合只用于重建,不替代 `template-fill-pptx` 或 `native-enhance-pptx` 的保留型路线。
+ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunburst`、`histogram`、`pareto`、`box_whisker`、`waterfall` 与 `funnel`。其受支持的层级 / 分类 / 数值 / 系列 / 小计数据 topology 可经 native 输出再导入回读。数值 cache 必须非空且有限,count/index 必须是规范非负整数,并满足精确连续的 point topology。来源 ChartEx 的样式、坐标轴、标签与 binning 可能归一化;这不代表任意 ChartEx 导入或表现层保真。C4/C5 不扩展 normalized renderer,因此 renderer 外的有效 active 类型在没有源 preview 时仍使用 `data-pptx-fallback-kind="placeholder"`。完整 `AxisSpec`、任意 ChartEx 家族、任意富文本 OOXML、旋转 / 翻转 / 3D 图表、未验证的 combo/stock/date-axis 变体及其他未建模语义仍不在 active 导入子集内。native replacement 仍可能归一化 payload 外的表现细节,并保留数据模型优先 warning。默认导出把 fallback 子元素作为可编辑 DrawingML shape;只有 `--native-charts-and-tables` 才启用带数据源和对象专属编辑模型的 PowerPoint 原生 Chart/Table。每个 active 导入 marker 都带有 `data-pptx-import-source="pptx"` 与 `data-pptx-fallback-sha256`:可见 fallback、可达 SVG definition/reference 或 marker transform 变更后,native replacement 会 fail,而不是丢弃 SVG 编辑;仍保留导入来源标记但没有 hash 的旧导入 marker 兼容并给出 warning。生成型创作会同时省略导入来源和静态 baseline,且不产生 warning。该 importer/exporter 组合只用于重建,不替代 `template-fill-pptx` 或 `native-enhance-pptx` 的保留型路线。
---
diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.md
index a6a3ca3c..60fe053d 100644
--- a/skills/ppt-master/SKILL.md
+++ b/skills/ppt-master/SKILL.md
@@ -833,9 +833,12 @@ python3 ${SKILL_DIR}/scripts/svg_to_pptx.py <project_path>
> `data-pptx-fallback-sha256`. If their fallback, reachable SVG fragment
> definition, local reference target, or marker transform changes later, default
> export keeps that SVG, the mandatory quality checker warns, and
-> `--native-charts-and-tables` fails rather than discard the edit. Legacy markers
-> without a baseline remain native-compatible and only warn that stale detection
-> is unavailable. Legacy `data-pptx-native*`, `data-pptx-visual-status`, and
+> `--native-charts-and-tables` fails rather than discard the edit. Generated
+> authoring and reusable templates omit import provenance and a static baseline;
+> that hashless authored state is normal and does not warn. Hashless legacy
+> imported markers that still carry PPTX import provenance remain
+> native-compatible and only warn that stale detection is unavailable. Legacy
+> `data-pptx-native*`, `data-pptx-visual-status`, and
> `data-pptx-route-status` spellings remain read-compatible; generated SVG uses
> only the canonical replacement/fallback attributes. `--native-objects`
> remains a compatibility alias for `--native-charts-and-tables`.
diff --git a/skills/ppt-master/references/executor-base.md b/skills/ppt-master/references/executor-base.md
index bfad2a33..eabf3922 100644
--- a/skills/ppt-master/references/executor-base.md
+++ b/skills/ppt-master/references/executor-base.md
@@ -355,6 +355,11 @@ grep "chart-plot-area" <project_path>/svg_output/<current_page>.svg
**Hard rule**: every data chart whose type appears in the **Supported chart types** list of [shared-standards.md](shared-standards.md) "PowerPoint-Native Chart / Table Replacement Markers" (the single authority for the eligible set, marker contract, and JSON schemas) gets `data-pptx-replace-with="chart"` plus one `<metadata type="application/json">` JSON child on its top-level `<g>`, transcribing the same data just plotted. Every pure text-grid data table gets `data-pptx-replace-with="table"` the same way, transcribing all visible cell text into `columns` / `rows`. The parent marker determines the JSON schema; do not duplicate a chart/table kind on the metadata child.
+Generated authoring MUST omit `data-pptx-import-source` and
+`data-pptx-fallback-sha256`: those attributes record imported-PPTX provenance
+and its sealed fallback baseline. Never copy a static baseline from a chart
+catalog or reusable template; normal content edits would make it stale.
+
`data-pptx-replace-with` is a **data-backed replacement claim**, not a generic label for a group that contains numbers and not a marker for ordinary PowerPoint shapes or connectors. Add it only when the matching JSON payload can be written in the same edit; if the object is meant to remain SVG geometry, do not add the marker.
- Chart types absent from that list and conceptual/diagrammatic graphics (process flows, cycles, quadrant cards, timelines, KPI cards) get **no marker** — `svg_quality_checker.py` rejects unsupported marker types.
diff --git a/skills/ppt-master/references/shared-standards.md b/skills/ppt-master/references/shared-standards.md
index 7f699993..7800da81 100644
--- a/skills/ppt-master/references/shared-standards.md
+++ b/skills/ppt-master/references/shared-standards.md
@@ -1301,9 +1301,14 @@ runtime attributes, marker-local stable ID renames, and marker-local
marker-local unused definitions, and explicitly referenced document-level
target roots (even when hidden) remain conservatively hashed. External
image/font file bytes are not read.
-Hashless legacy markers remain native-compatible and warn in the checker/native
-route that stale detection is unavailable. A stale hash is an integrity mismatch,
-not a visual-parity gate on an unchanged active marker.
+Generated authoring and reusable templates omit import provenance and do not
+preseed a static fallback baseline; that hashless authored state is normal and
+does not warn. A hashless legacy imported marker that still carries PPTX import
+provenance remains native-compatible and warns in the checker/native route that
+stale detection is unavailable. An explicitly sealed authored marker that does
+carry a baseline is validated by the same integrity rule; only a missing
+authored baseline is silent. A stale hash is an integrity mismatch, not a
+visual-parity gate on an unchanged active marker.
**Hard rule — imported fallback kind**: A PPTX chart with a complete baked
preview may carry `data-pptx-fallback-kind="source-preview"`. Supported parsed
diff --git a/skills/ppt-master/scripts/README.md b/skills/ppt-master/scripts/README.md
index 5c5fd48e..37658120 100644
--- a/skills/ppt-master/scripts/README.md
+++ b/skills/ppt-master/scripts/README.md
@@ -175,7 +175,7 @@ Supported parsed column/bar/line/area, pie/doughnut, scatter, and bubble charts
The ChartEx importer accepts exactly the validated treemap, sunburst, histogram, pareto, box-whisker, waterfall, and funnel data models. Supported hierarchy/category/value/series/subtotal data round-trips to native output; source style, axes, labels, and binning may normalize. Numeric caches must be non-empty and finite with exact contiguous point topology. This is not arbitrary ChartEx import or presentation fidelity, and the ChartEx native writer still only promises valid payload palette entries rather than full source styling.
-Active imported table/chart markers carry `data-pptx-fallback-sha256`. Visible fallback edits, reachable SVG fragment-definition changes, marker-local reference-target changes, and marker transforms make the baseline stale: the mandatory quality checker warns, default export remains available, and `--native-charts-and-tables` fails instead of discarding the SVG edit. Legacy markers without a baseline remain convertible with a checker/replacement-route warning. Legacy `data-pptx-native*`, `data-pptx-visual-status`, and `data-pptx-route-status` spellings and the `--native-objects` option remain read-compatible; generated output and canonical commands use the replacement/fallback names and `--native-charts-and-tables`.
+Active imported table/chart markers carry `data-pptx-fallback-sha256`. Visible fallback edits, reachable SVG fragment-definition changes, marker-local reference-target changes, and marker transforms make the baseline stale: the mandatory quality checker warns, default export remains available, and `--native-charts-and-tables` fails instead of discarding the SVG edit. Generated authoring and reusable templates omit import provenance and a static baseline without warning. Hashless legacy imported markers that still carry PPTX import provenance remain convertible with a checker/replacement-route warning. Legacy `data-pptx-native*`, `data-pptx-visual-status`, and `data-pptx-route-status` spellings and the `--native-objects` option remain read-compatible; generated output and canonical commands use the replacement/fallback names and `--native-charts-and-tables`.
Exporter-canonical classic charts also recover canonical solid series/slice
colors and exact one- or two-paragraph title styling; two paragraphs retain
diff --git a/skills/ppt-master/scripts/docs/conversion.md b/skills/ppt-master/scripts/docs/conversion.md
index 975f0365..49ce4ea8 100644
--- a/skills/ppt-master/scripts/docs/conversion.md
+++ b/skills/ppt-master/scripts/docs/conversion.md
@@ -299,8 +299,11 @@ while `--native-charts-and-tables` fails before replacement so it cannot discard
referenced document-level target roots (even when hidden) are included
conservatively; marker-local `display:none` subtrees are excluded, and external
file bytes are not read.
-A legacy marker without the hash remains native-compatible and warns in the
-checker/native route that stale detection is unavailable.
+Generated authoring and reusable templates omit import provenance and do not
+preseed a static fallback hash; that state is normal and does not warn. A legacy
+imported marker that still carries PPTX import provenance but lacks the hash
+remains native-compatible and warns in the checker/native route that stale
+detection is unavailable.
Legacy `data-pptx-native*`, `data-pptx-visual-status`, and
`data-pptx-route-status` spellings remain read-compatible. New importer output
diff --git a/skills/ppt-master/scripts/svg_to_pptx/native_objects/fallback_hash.py b/skills/ppt-master/scripts/svg_to_pptx/native_objects/fallback_hash.py
index b68f1300..926f00ae 100644
--- a/skills/ppt-master/scripts/svg_to_pptx/native_objects/fallback_hash.py
+++ b/skills/ppt-master/scripts/svg_to_pptx/native_objects/fallback_hash.py
@@ -11,7 +11,7 @@ from pptx_shapes import (
svg_native_fallback_fingerprint,
)
-from .marker_attributes import native_replacement_kind
+from .marker_attributes import native_import_source, native_replacement_kind
NATIVE_FALLBACK_RUNTIME_ATTR = "data-pptx-runtime-fallback-unchanged"
@@ -77,10 +77,12 @@ def native_fallback_contract_warnings(
"--native-charts-and-tables will fail"
]
if expected is None:
+ if native_import_source(elem) != "pptx":
+ return []
return [
- f"has no {NATIVE_FALLBACK_SHA256_ATTR} baseline; the marker remains "
- "compatible with Chart/Table replacement, but stale fallback edits "
- "cannot be detected"
+ f"imported marker has no {NATIVE_FALLBACK_SHA256_ATTR} baseline; "
+ "the marker remains compatible with Chart/Table replacement, but "
+ "stale fallback edits cannot be detected"
]
if _native_fallback_is_fresh(
elem,
diff --git a/skills/ppt-master/scripts/test_svg_quality_checker.py b/skills/ppt-master/scripts/test_svg_quality_checker.py
index f540085a..9a18ff2b 100644
--- a/skills/ppt-master/scripts/test_svg_quality_checker.py
+++ b/skills/ppt-master/scripts/test_svg_quality_checker.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
"""Regression tests for SVG checker compatibility severity."""
+import io
import sys
import tempfile
import unittest
@@ -29,6 +30,7 @@ from svg_to_pptx.native_objects import (
native_import_source,
native_replacement_kind,
native_replacement_status,
+ stamp_native_fallback_baseline,
)
from svg_to_pptx.pptx_package.template_structure import (
TemplateStructureError,
@@ -631,6 +633,133 @@ class SVGQualityCheckerCompatibilityTests(unittest.TestCase):
self.assertEqual(canonical_result, legacy_result)
+ def test_authored_hashless_native_marker_has_no_baseline_warning(self):
+ content = '''<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">
+ <g id="table" data-pptx-replace-with="table">
+ <metadata type="application/json">{"x":80,"y":80,"width":320,"height":180,"rows":[["A"]]}</metadata>
+ <rect x="80" y="80" width="320" height="180" fill="#FFFFFF"/>
+ </g>
+</svg>'''
+ result = self._check(content)
+ self.assertTrue(result['passed'])
+ self.assertEqual(result['warnings'], [])
+
+ with tempfile.TemporaryDirectory() as tmp_dir:
+ svg_path = Path(tmp_dir) / 'authored.svg'
+ svg_path.write_text(content, encoding='utf-8')
+ stderr = io.StringIO()
+ with patch('sys.stderr', new=stderr):
+ convert_svg_to_slide_shapes(svg_path, native_objects=True)
+
+ self.assertNotIn('fallback-sha256', stderr.getvalue())
+
+ def test_imported_hashless_native_marker_warns_but_remains_compatible(self):
+ for source_attribute in (
+ 'data-pptx-import-source="pptx"',
+ 'data-pptx-native-source="pptx"',
+ ):
+ content = f'''<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">
+ <g id="table" data-pptx-replace-with="table" {source_attribute}>
+ <metadata type="application/json">{{"x":80,"y":80,"width":320,"height":180,"rows":[["A"]]}}</metadata>
+ <rect x="80" y="80" width="320" height="180" fill="#FFFFFF"/>
+ </g>
+</svg>'''
+ with self.subTest(source_attribute=source_attribute):
+ result = self._check(content)
+ self.assertTrue(result['passed'])
+ self.assertIn(
+ 'imported marker has no data-pptx-fallback-sha256 baseline',
+ '\n'.join(result['warnings']),
+ )
+
+ with tempfile.TemporaryDirectory() as tmp_dir:
+ svg_path = Path(tmp_dir) / 'imported.svg'
+ svg_path.write_text(content, encoding='utf-8')
+ stderr = io.StringIO()
+ with patch('sys.stderr', new=stderr):
+ convert_svg_to_slide_shapes(
+ svg_path,
+ native_objects=True,
+ )
+ self.assertIn(
+ 'imported marker has no data-pptx-fallback-sha256 baseline',
+ stderr.getvalue(),
+ )
+
+ def test_explicit_authored_fallback_baseline_still_blocks_stale_native_export(self):
+ root = ET.fromstring(
+ '''<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">
+ <g id="table" data-pptx-replace-with="table">
+ <metadata type="application/json">{"x":80,"y":80,"width":320,"height":180,"rows":[["A"]]}</metadata>
+ <rect x="80" y="80" width="320" height="180" fill="#FFFFFF"/>
+ </g>
+</svg>'''
+ )
+ marker = next(elem for elem in root if elem.tag.endswith('g'))
+ stamp_native_fallback_baseline(marker, document_root=root)
+
+ with tempfile.TemporaryDirectory() as tmp_dir:
+ svg_path = Path(tmp_dir) / 'sealed-authored.svg'
+ ET.ElementTree(root).write(svg_path, encoding='unicode')
+ fresh_result = SVGQualityChecker().check_file(str(svg_path))
+ self.assertTrue(fresh_result['passed'])
+ self.assertEqual(fresh_result['warnings'], [])
+ convert_svg_to_slide_shapes(svg_path, native_objects=True)
+
+ rect = next(elem for elem in marker if elem.tag.endswith('rect'))
+ rect.set('fill', '#EEEEEE')
+ ET.ElementTree(root).write(svg_path, encoding='unicode')
+ stale_result = SVGQualityChecker().check_file(str(svg_path))
+ self.assertTrue(stale_result['passed'])
+ self.assertIn(
+ 'visible SVG fallback differs from its recorded baseline',
+ '\n'.join(stale_result['warnings']),
+ )
+ convert_svg_to_slide_shapes(svg_path)
+ with self.assertRaisesRegex(
+ SvgNativeConversionError,
+ 'fallback was edited after its baseline',
+ ):
+ convert_svg_to_slide_shapes(svg_path, native_objects=True)
+
+ def test_explicit_authored_invalid_fallback_baseline_still_fails_native_export(self):
+ content = '''<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 720">
+ <g id="table" data-pptx-replace-with="table"
+ data-pptx-fallback-sha256="invalid">
+ <metadata type="application/json">{"x":80,"y":80,"width":320,"height":180,"rows":[["A"]]}</metadata>
+ <rect x="80" y="80" width="320" height="180" fill="#FFFFFF"/>
+ </g>
+</svg>'''
+ result = self._check(content)
+ self.assertTrue(result['passed'])
+ self.assertIn(
+ 'must be a 64-digit SHA-256',
+ '\n'.join(result['warnings']),
+ )
+ with tempfile.TemporaryDirectory() as tmp_dir:
+ svg_path = Path(tmp_dir) / 'invalid-baseline.svg'
+ svg_path.write_text(content, encoding='utf-8')
+ convert_svg_to_slide_shapes(svg_path)
+ with self.assertRaisesRegex(
+ SvgNativeConversionError,
+ 'must be a 64-digit SHA-256',
+ ):
+ convert_svg_to_slide_shapes(svg_path, native_objects=True)
+
+ def test_authored_template_markers_do_not_preseed_static_fallback_hashes(self):
+ template_root = SCRIPT_DIR.parent / 'templates'
+ offenders = []
+ for svg_path in template_root.rglob('*.svg'):
+ root = ET.parse(svg_path).getroot()
+ for elem in root.iter():
+ if not native_replacement_kind(elem):
+ continue
+ if native_import_source(elem) == 'pptx':
+ continue
+ if elem.get('data-pptx-fallback-sha256') is not None:
+ offenders.append(str(svg_path.relative_to(template_root)))
+ self.assertEqual(offenders, [])
+
def test_compact_authored_preset_exports_one_native_shape(self):
fragment = render_preset_shape_fragment(
'rightArrow',
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 d9534b58..01ef8ff7 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
@@ -19,8 +19,7 @@
<g id="chart-insight-chart-slot" data-pptx-placeholder="chart" data-pptx-placeholder-idx="1"
data-pptx-placeholder-bounds="88 176 712 408">
<g id="chart-insight-chart-carrier" data-pptx-placeholder-carrier="true"
- data-pptx-replace-with="chart"
- data-pptx-fallback-sha256="e39e729fbcd88647bc948bf86f6974592347d171897ee0568376b13330fdb95b">
+ data-pptx-replace-with="chart">
<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>
<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"/>
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 75077e47..57d46af3 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
@@ -19,8 +19,7 @@
<g id="table-summary-table-slot" data-pptx-placeholder="table" data-pptx-placeholder-idx="1"
data-pptx-placeholder-bounds="88 176 776 408">
<g id="table-summary-table-carrier" data-pptx-placeholder-carrier="true"
- data-pptx-replace-with="table"
- data-pptx-fallback-sha256="6537e9228a8e8691fd1870f794329de56b7c51a8c6c40fe4e37d2d8963659f61">
+ data-pptx-replace-with="table">
<metadata type="application/json">{"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>
<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"/>