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: Korean wraps between words and keeps PDF word spaces; web tables are GFM on their grid; early gate skips the jump bound

hugohe30ae80b191228
diff --git a/skills/ppt-master/references/plan-core.md b/skills/ppt-master/references/plan-core.md
index f5a5debe..b8708d1e 100644
--- a/skills/ppt-master/references/plan-core.md
+++ b/skills/ppt-master/references/plan-core.md
@@ -163,7 +163,7 @@ python3 skills/ppt-master/scripts/visualization_recall.py validate \
**Family selection**: user/template typography is authoritative. Delivery target: an explicit user/template target first, otherwise Windows Microsoft PowerPoint (owner: [`shared-standards-core.md`](./shared-standards-core.md) §4.1) — the authoring host's installed fonts never select a face; name concrete faces installed or approved on that target; at most four families; a brand/web face leads only after user-confirmed installation, otherwise export a safe face and keep it as a Design Spec reference (fonts are not embedded; CSS tails are preview aids, not PowerPoint fallbacks). Avoid near-equivalent splits (YaHei↔PingFang, SimSun↔Songti, Arial↔Helvetica↔Segoe UI, Times↔Times New Roman). Fonts in one deck form contrast (different family, weight, or proportion) or concord (one family throughout); across the direction set include both a concord and a contrast pairing unless the user or template fixes the stack, and never default to title = body without a reason.
-**Reference — PPT-safe faces (recall, not a whitelist; one concrete named face per script — a stack carries at most one Latin face and one CJK face and never a fallback list of alternatives, because export takes the first named face of each script)**: CJK sans `Microsoft YaHei` / `SimHei`, CJK serif `SimSun` / `FangSong` / `KaiTi` (their macOS counterparts `PingFang SC` / `Heiti SC` / `Songti SC` are preview aliases, never the named face), Traditional Chinese sans `Microsoft JhengHei`, serif `PMingLiU` / `DFKai-SB`, Japanese sans `Yu Gothic` / `Meiryo`, Japanese serif `Yu Mincho` (text on another locale's CJK face takes that locale's glyph forms), Latin sans `Arial` / `Calibri` / `Segoe UI` / `Verdana` / `Trebuchet MS`, Latin serif `Times New Roman` / `Georgia` / `Cambria` / `Palatino` / `Garamond` (`Georgia` sets old-style figures whose digits sit at different heights — a hero-number or data role needs lining figures: `Times New Roman`, `Cambria`, or any listed sans or mono), mono `Consolas` / `Courier New`, display `Impact` / `Arial Black`. Let the locked style's character pick the axis and lead the title — `Microsoft YaHei` / `Arial` are the neutral members, never the automatic lead; a neutral sans title where the style asks for character is the failure to avoid. Non-pre-installed directions — retro/pixel Press Start 2P / VT323, rounded Nunito / Quicksand / OPPO Sans (safe substitute `Trebuchet MS` / `Verdana`), modern web Inter / HarmonyOS Sans / Source Han, calligraphic 隶书 / 华文行楷 / 华文新魏 (safe substitute `KaiTi` / `FangSong`, titles only), brand faces — need target installation or stay Design Spec references.
+**Reference — PPT-safe faces (recall, not a whitelist; one concrete named face per script — a stack carries at most one Latin face and one CJK face and never a fallback list of alternatives, because export takes the first named face of each script)**: CJK sans `Microsoft YaHei` / `SimHei`, CJK serif `SimSun` / `FangSong` / `KaiTi` (their macOS counterparts `PingFang SC` / `Heiti SC` / `Songti SC` are preview aliases, never the named face), Traditional Chinese sans `Microsoft JhengHei`, serif `PMingLiU` / `DFKai-SB`, Japanese sans `Yu Gothic` / `Meiryo`, serif `Yu Mincho`, Korean sans `Malgun Gothic`, serif `Batang` (text on another locale's CJK face takes that locale's glyph forms), Latin sans `Arial` / `Calibri` / `Segoe UI` / `Verdana` / `Trebuchet MS`, Latin serif `Times New Roman` / `Georgia` / `Cambria` / `Palatino` / `Garamond` (`Georgia` sets old-style figures whose digits sit at different heights — a hero-number or data role needs lining figures: `Times New Roman`, `Cambria`, or any listed sans or mono), mono `Consolas` / `Courier New`, display `Impact` / `Arial Black`. Let the locked style's character pick the axis and lead the title — `Microsoft YaHei` / `Arial` are the neutral members, never the automatic lead; a neutral sans title where the style asks for character is the failure to avoid. Non-pre-installed directions — retro/pixel Press Start 2P / VT323, rounded Nunito / Quicksand / OPPO Sans (safe substitute `Trebuchet MS` / `Verdana`), modern web Inter / HarmonyOS Sans / Source Han, calligraphic 隶书 / 华文行楷 / 华文新魏 (safe substitute `KaiTi` / `FangSong`, titles only), brand faces — need target installation or stay Design Spec references.
**Role extension after confirmation**: while composing the roster, add a lowercase snake_case role with an exact stack only for a recurring role that materially needs a different family (`annotation`, `footer`, `footnote`, `data`, `emphasis`, `quote`, `code`), coherent with the confirmed heading/body system and locked style; one-off garnish stays omitted and Default names any added role in one compact `Role rationale` line in §IV.
diff --git a/skills/ppt-master/scripts/source_to_md/pdf_to_md.py b/skills/ppt-master/scripts/source_to_md/pdf_to_md.py
index ec7a588d..cdff8ff7 100644
--- a/skills/ppt-master/scripts/source_to_md/pdf_to_md.py
+++ b/skills/ppt-master/scripts/source_to_md/pdf_to_md.py
@@ -334,12 +334,22 @@ def detect_headers_footers(doc: fitz.Document, threshold_ratio: float = 0.6) ->
return noise_texts
+def _is_hangul(char: str) -> bool:
+ return "\uac00" <= char <= "\ud7a3" or "\u1100" <= char <= "\u11ff" or "\u3130" <= char <= "\u318f"
+
+
def join_wrapped_text(head: str, tail: str) -> str:
- """Join two wrapped PDF lines; a break between wide CJK characters is no space."""
+ """Join two wrapped PDF lines.
+
+ Chinese and Japanese wrap between characters, so a break between wide
+ characters takes no space; Korean spaces its words and wraps at them, so
+ a break touching Hangul keeps one.
+ """
if (
head and tail
and unicodedata.east_asian_width(head[-1]) in {"W", "F"}
and unicodedata.east_asian_width(tail[0]) in {"W", "F"}
+ and not (_is_hangul(head[-1]) or _is_hangul(tail[0]))
):
return head + tail
return f"{head} {tail}"
diff --git a/skills/ppt-master/scripts/source_to_md/web_to_md.py b/skills/ppt-master/scripts/source_to_md/web_to_md.py
index 19d1d576..73af8f4b 100644
--- a/skills/ppt-master/scripts/source_to_md/web_to_md.py
+++ b/skills/ppt-master/scripts/source_to_md/web_to_md.py
@@ -788,6 +788,44 @@ def simple_html_to_markdown_traversal(
"""Convert HTML content to Markdown using BeautifulSoup traversal."""
lines = []
+ def fold(node: Tag) -> str:
+ """Convert a cell or caption like body text, folded onto one line."""
+ text = ''.join(traverse(child) for child in node.children)
+ return re.sub(r'\s+', ' ', text).strip().replace('|', '\\|')
+
+ def span(cell: Tag, name: str) -> int:
+ try:
+ return min(max(int(cell.get(name) or 1), 1), 50)
+ except ValueError:
+ return 1
+
+ def row_cells(row: Tag, carried: dict[int, int] | None = None) -> list[str]:
+ """Return one row's cells on the table grid.
+
+ A colspan pads empty cells to its right; ``carried`` maps a column to
+ the rows a rowspan above still covers, which take an empty cell here.
+ """
+ carried = {} if carried is None else carried
+ cells: list[str] = []
+
+ def fill_carried() -> None:
+ while carried.get(len(cells), 0) > 0:
+ carried[len(cells)] -= 1
+ cells.append('')
+
+ for cell in row.find_all(['td', 'th'], recursive=False):
+ fill_carried()
+ rowspan = span(cell, 'rowspan')
+ for offset in range(span(cell, 'colspan')):
+ if rowspan > 1:
+ carried[len(cells)] = rowspan - 1
+ cells.append(fold(cell) if offset == 0 else '')
+ while any(count > 0 for column, count in carried.items() if column >= len(cells)):
+ if carried.get(len(cells), 0) > 0:
+ carried[len(cells)] -= 1
+ cells.append('')
+ return cells
+
def traverse(node: Tag | NavigableString) -> str:
if isinstance(node, Comment):
# ``Comment`` is a ``NavigableString`` subclass: without this
@@ -876,27 +914,29 @@ def simple_html_to_markdown_traversal(
if is_block:
inner_text = inner_text.strip()
- # Post-processing for tables (simplified)
if node.name == 'tr':
- # Convert each cell like body text so links survive, then fold it
- # onto one table line.
- cells = []
- for cell in node.find_all(['td', 'th'], recursive=False):
- text = ''.join(traverse(child) for child in cell.children)
- cells.append(re.sub(r'\s+', ' ', text).strip().replace('|', '\\|'))
- return f"| {' | '.join(cells)} |\n"
+ return f"| {' | '.join(row_cells(node))} |\n"
if node.name == 'table':
- # Try to add a separator line after first row if it looks like a header
- rows = inner_text.strip().split('\n')
- if rows:
- cols_count = rows[0].count('|') - 1
- if cols_count > 0:
- # rough approx
- sep = "| " + " | ".join(["---"] * int(cols_count/2)) + " |"
- # Actually, the traverse of TR returns newline terminated strings.
- # Let's just return what we gathered.
- pass
- return f"\n\n{inner_text}\n\n"
+ carried: dict[int, int] = {}
+ rows = [
+ cells for cells in (
+ row_cells(tr, carried) for tr in node.find_all('tr')
+ if tr.find_parent('table') is node
+ ) if cells
+ ]
+ if not rows:
+ return f"\n\n{inner_text}\n\n"
+ width = max(len(cells) for cells in rows)
+ rows = [cells + [''] * (width - len(cells)) for cells in rows]
+ lines = [f"| {' | '.join(cells)} |" for cells in rows]
+ lines.insert(1, '| ' + ' | '.join(['---'] * width) + ' |')
+ caption = node.find('caption')
+ caption_text = (
+ fold(caption) if caption is not None and caption.find_parent('table') is node
+ else ''
+ )
+ lead = f"{caption_text}\n\n" if caption_text else ''
+ return f"\n\n{lead}" + '\n'.join(lines) + "\n\n"
return f"{prefix}{inner_text}{suffix}"
diff --git a/skills/ppt-master/scripts/svg_quality/checker.py b/skills/ppt-master/scripts/svg_quality/checker.py
index 9c1680cd..442c8f04 100644
--- a/skills/ppt-master/scripts/svg_quality/checker.py
+++ b/skills/ppt-master/scripts/svg_quality/checker.py
@@ -1188,6 +1188,9 @@ class SVGQualityChecker:
self._pptx_structure_issues: List[Tuple[str, str]] = []
self._has_incomplete_page_roster = False
self._active_slide_count: int | None = None
+ # Early/page stages see part of the roster, so a slide jump's upper
+ # bound waits for the final gate.
+ self.partial_roster = False
self._prototype_by_output: Dict[Path, Path] = {}
self._active_prototype_path: Path | None = None
self._active_template_reuse_scope: str | None = None
@@ -2786,7 +2789,7 @@ class SVGQualityChecker:
f'Invalid SVG hyperlink: {error}'
for error in _project_hyperlink_errors(
root,
- slide_count=self._active_slide_count,
+ slide_count=None if self.partial_roster else self._active_slide_count,
)
)
diff --git a/skills/ppt-master/scripts/svg_quality/cli.py b/skills/ppt-master/scripts/svg_quality/cli.py
index 6de76b7f..b7adb96d 100644
--- a/skills/ppt-master/scripts/svg_quality/cli.py
+++ b/skills/ppt-master/scripts/svg_quality/cli.py
@@ -251,6 +251,7 @@ def main() -> None:
print("=" * 80)
checker.check_directory(str(project))
else:
+ checker.partial_roster = stage in {"early", "page", "first-page"}
if roundtrip:
checker.check_roundtrip_workspace(target)
elif stage == "early":
diff --git a/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py b/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py
index 55223e58..41f16891 100644
--- a/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py
+++ b/skills/ppt-master/scripts/tests/test_dogfood_leaves_fixes.py
@@ -417,6 +417,33 @@ class BeautifyReadbackTests(unittest.TestCase):
self.assertIn("Section one\nOverall duties", markdown)
+class KoreanIntakeTests(unittest.TestCase):
+ def test_wrap_breaks_korean_between_words(self) -> None:
+ lines, _widths, _oversized = text_measure.wrap_text(
+ "제주 해녀는 어촌계와 해녀회라는 공동체 규칙 아래서 바다밭을 가꾼다",
+ size=24, max_width=250, family="Malgun Gothic",
+ )
+ words = set("제주 해녀는 어촌계와 해녀회라는 공동체 규칙 아래서 바다밭을 가꾼다".split())
+ for line in lines:
+ self.assertTrue(set(line.split()) <= words, lines)
+
+ def test_pdf_join_keeps_korean_word_space(self) -> None:
+ self.assertEqual(pdf_to_md.join_wrapped_text("감소하였으며", "이중"), "감소하였으며 이중")
+ self.assertEqual(pdf_to_md.join_wrapped_text("新幹", "線"), "新幹線")
+
+ def test_web_table_is_gfm_on_its_grid(self) -> None:
+ html = (
+ "<table><caption>해녀 현황</caption>"
+ '<tr><th rowspan="2">구분</th><th colspan="2">계</th></tr>'
+ "<tr><th>2025</th><th>2024</th></tr>"
+ "<tr><td>계</td><td>7,482</td><td>7,561</td></tr></table>"
+ )
+ markdown = web_to_md.simple_html_to_markdown_traversal(
+ web_to_md.BeautifulSoup(html, "html.parser"), "https://example.kr/")
+ self.assertIn("해녀 현황\n\n| 구분 | 계 | |\n| --- | --- | --- |", markdown)
+ self.assertIn("| | 2025 | 2024 |\n| 계 | 7,482 | 7,561 |", markdown)
+
+
class SlideSizeTypeTests(unittest.TestCase):
def test_standard_ratios_keep_their_token(self) -> None:
self.assertEqual(_slide_size_type(12192000, 6858000), "screen16x9")
diff --git a/skills/ppt-master/scripts/text_measure.py b/skills/ppt-master/scripts/text_measure.py
index a4476603..a68c32cc 100644
--- a/skills/ppt-master/scripts/text_measure.py
+++ b/skills/ppt-master/scripts/text_measure.py
@@ -129,8 +129,16 @@ def _is_latin_or_number_cluster(cluster: str) -> bool:
)
+def _is_hangul_cluster(cluster: str) -> bool:
+ """Return whether a rendered cluster is a Hangul syllable or jamo."""
+ return any(
+ '\uac00' <= ch <= '\ud7a3' or '\u1100' <= ch <= '\u11ff' or '\u3130' <= ch <= '\u318f'
+ for ch in cluster
+ )
+
+
def _lexical_units(text: str) -> list[str]:
- """Split a paragraph while keeping Latin words and numbers atomic."""
+ """Split a paragraph while keeping Latin words, numbers, and Korean words atomic."""
clusters = split_project_text_clusters(' '.join(text.split()))
units: list[str] = []
pending_space = False
@@ -143,7 +151,14 @@ def _lexical_units(text: str) -> list[str]:
continue
end = index + 1
- if _is_latin_or_number_cluster(cluster):
+ word_end = index
+ while word_end < len(clusters) and not clusters[word_end].isspace():
+ word_end += 1
+ if any(_is_hangul_cluster(item) for item in clusters[index:word_end]):
+ # Korean breaks between space-separated words (eojeol), never
+ # inside one; an eojeol wider than the line is reported oversized.
+ end = word_end
+ elif _is_latin_or_number_cluster(cluster):
while end < len(clusters):
next_cluster = clusters[end]
if _is_latin_or_number_cluster(next_cluster):
diff --git a/skills/ppt-master/workflows/generate-pptx.md b/skills/ppt-master/workflows/generate-pptx.md
index 62716341..9973053d 100644
--- a/skills/ppt-master/workflows/generate-pptx.md
+++ b/skills/ppt-master/workflows/generate-pptx.md
@@ -354,6 +354,7 @@ python3 ${SKILL_DIR}/scripts/finalize_svg.py <project_path>
| Decision | Flag |
|---|---|
| Explicit editable Chart/Table delivery decision | Append `--native-charts-and-tables` (markers, templates, semantic tables, and imported charts never activate it; formulas are always native) |
+| Final checker reports oversized images | Append `--image-sizing display` |
| Preserved or produced `animations.json` | Keep the base command; the exporter reads the sidecar |
| Deck-wide motion setting | Append the resolved [`animations.md`](../references/animations.md) flags |
| Explicit Custom Animations disable | Keep the sidecar and append `-a none` |