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
docs(text-fill): document editable picture and texture fills
hugohe3f05c952e8f6e
diff --git a/docs/powerpoint-svg-mapping.md b/docs/powerpoint-svg-mapping.mdindex ed65a389..0c8e2aef 100644--- a/docs/powerpoint-svg-mapping.md+++ b/docs/powerpoint-svg-mapping.md@@ -125,7 +125,8 @@ preset selection and authoring behavior are documented in| Font size | Finite unitless SVG pixels, for example `font-size="24"` | DrawingML hundredths of a point; `1 px = 0.75 pt` | `Native-stable` after unit conversion | Generated authoring uses only unitless px; registered legacy units are compatible input and warn, while unknown units error; DrawingML minimum is 1 pt || Font weight | Registered `font-weight` on `<text>`/`<tspan>` | DrawingML regular/bold run switch | `Native-normalized`; numeric weights collapse to the DrawingML boolean boundary | The exact value grammar and aliases belong to [`svg-effects.md` §6.7](../skills/ppt-master/references/svg-effects.md#67-advanced-text-treatments) || Italic, underline, and strike | Registered `font-style` / `text-decoration` on `<text>`/`<tspan>` | DrawingML italic, underline, and strike run properties | `Native-stable` for registered tokens | Unknown tokens are rejected; the exact grammar belongs to [`svg-effects.md` §6.7](../skills/ppt-master/references/svg-effects.md#67-advanced-text-treatments) |-| Text fill and transparency | Canonical fill plus run alpha | DrawingML run fill and alpha | `Native-normalized` | Use the semantic alpha channel, not an unregistered CSS effect |+| Solid/gradient text fill and transparency | Canonical solid/gradient fill plus run alpha | DrawingML run fill and alpha | `Native-normalized` | Use the semantic alpha channel, not an unregistered CSS effect |+| Picture or texture text fill | `<text>` / non-positional `<tspan>` fill referencing one annotated single-image pattern | Editable DrawingML run `a:blipFill` with native stretch or tile | Forward export is native; stretch is `Native-normalized`, tile scale/phase may normalize; reverse import does not reconstruct the fill yet | Requires `data-pptx-text-image-fill="stretch|tile"`, one direct valid image, and no image clip/filter/mask/transform; see [`svg-effects.md` §6.3](../skills/ppt-master/references/svg-effects.md#63-gradients-and-paint-effects) || Text outline | Registered stroke on text | DrawingML run outline | `Native-normalized` | Review when outline carries fine visual meaning || Text alignment | Registered `text-anchor` and paragraph semantics | Paragraph alignment plus normalized text-frame position | `Native-normalized` | Run-level anchoring and browser baseline heuristics are unsupported; exact placement belongs to [`svg-effects.md` §6.7](../skills/ppt-master/references/svg-effects.md#67-advanced-text-treatments) || Vertical text-frame alignment | No canonical generated-SVG control; generated text boxes use top anchoring | Top-anchored DrawingML text body | Imported vertical text may be normalized, but the main route does not expose a general authoring control | Do not infer vertical alignment from SVG baseline or browser layout behavior |diff --git a/skills/ppt-master/references/shared-standards-core.md b/skills/ppt-master/references/shared-standards-core.mdindex 004cf597..24398d43 100644--- a/skills/ppt-master/references/shared-standards-core.md+++ b/skills/ppt-master/references/shared-standards-core.md@@ -150,9 +150,10 @@ Unknown or unmapped declarations fail Checker preflight and native export.> **PPT preset patterns and native chart/table/template metadata are> conditional** — see [`native-data-interface.md`](./native-data-interface.md) and [`pptx-structure-interface.md`](./pptx-structure-interface.md).-DrawingML has no arbitrary per-pixel alpha-compositing path. Effects that rely-on one, including text-knockout image fills and arbitrary alpha composites,-must be baked into a raster asset before SVG export.+DrawingML has no arbitrary per-pixel alpha-compositing path. A registered+single-image text picture/texture fill follows [`svg-effects.md`](./svg-effects.md)+§6.3; arbitrary text-knockout composites, multi-layer image text, and arbitrary+alpha composites remain bake-required before SVG export.---diff --git a/skills/ppt-master/references/svg-effects.md b/skills/ppt-master/references/svg-effects.mdindex c61f22bf..89c22327 100644--- a/skills/ppt-master/references/svg-effects.md+++ b/skills/ppt-master/references/svg-effects.md@@ -57,7 +57,7 @@ different jobs.| Picture/card/overlay elevation or boundary is unclear | Object or picture/carrier shadow, restrained glow, or hairline | §6.4; equal peers stay flat; one light direction || Native copy and image do not integrate | Scrim, fade, wash, vignette, off-center spotlight, or faux glass | §6.5 and the Image-Treatment Implementation Map; verify contrast; no backdrop blur || Relationship state, direction, continuity, or boundary is unclear | Draft/optional/future → dash; direction → marker; undirected → solid; continuous flow → gradient stroke; repeated boundary → frame/contour/crop edge; exact grid → multi-subpath | §6.6 / §6.3; every line needs a job |-| Short display text needs notation or silhouette | Removed/former → strike; eyebrow distinction → tracking; display silhouette → outline/gradient; luminous metric → glow; semantic list → native bullet | §6.7 / §6.4; no decorative body-copy treatment |+| Short display text needs notation, silhouette, or material/image emphasis | Removed/former → strike; eyebrow distinction → tracking; display silhouette → outline/gradient; justified material/image emphasis → native picture/texture fill; luminous metric → glow; semantic list → native bullet | §6.7 / §6.3 / §6.4; no decorative body-copy treatment || Tilt, repetition, or reversible asset direction helps composition | Rotate, translate/mirror, or local `<use>` | §6.8; never mirror text, logos, or directional evidence || Resolved style needs hand, print, pixel, facets, layers, ribbon, or line-plus-area | Matching constructed recipe | §6.11; no generic decorative freeform || Meaning needs an unmatched silhouette, radial hierarchy, gauge, or custom route | Freeform, explicit arc/sector, or calculated arrowhead | §6.9 / §6.10; prefer an equal stock shape/marker |@@ -212,6 +212,40 @@ has both dimensions. Checker and exporter reject the degenerate stroke form.stroke="url(#flow)" stroke-width="12"/>```+**Native text picture/texture fill**:++| Concern | Contract |+|---|---|+| Target | Direct `fill="url(#id)"` on `<text>` or a non-positional `<tspan>`; the text remains editable |+| Definition | Direct `<pattern>` child of `<defs>` with unique `id` and exact `data-pptx-text-image-fill="stretch"` or `"tile"` |+| Image | Exactly one direct SVG-namespace `<image>` child; project-local or data-URI source; explicit positive `width` / `height` |+| Native result | `stretch` → run-level `a:blipFill/a:stretch`; `tile` → run-level `a:blipFill/a:tile` |+| Alpha | Text `fill-opacity` multiplies the native picture-fill alpha |+| Forbidden | Preset-pattern attributes; `patternTransform`; additional pattern children; image style/alpha/clip/filter/mask/transform; use outside text; unannotated custom image patterns; multi-image/layer knockout composites |++Use this registered pattern when the design calls for a photograph, material,+or texture inside editable glyphs. The pattern is an authoring carrier for a+PowerPoint run picture fill, not a general SVG pattern promise. PowerPoint owns+the final run bounding box: `stretch` is `Native-normalized`, while `tile` may+normalize tile scale or phase and needs visual review. Forward SVG→PPTX export+is native; PPTX→SVG does not reconstruct run-level picture fills yet.++```xml+<defs>+ <pattern id="titleTexture" data-pptx-text-image-fill="stretch"+ patternUnits="objectBoundingBox"+ patternContentUnits="objectBoundingBox" width="1" height="1">+ <image href="../images/cloud-texture.png"+ x="0" y="0" width="1" height="1"+ preserveAspectRatio="none"/>+ </pattern>+</defs>+<text x="96" y="220" fill="url(#titleTexture)" fill-opacity="0.85"+ font-family="Microsoft YaHei" font-size="72" font-weight="700">+ 国风之美+</text>+```+Preset patterns are a separate PPT interface in [`native-data-interface.md`](./native-data-interface.md).---