Skip to content

Turn any script into viral, multi-style animated stickman videos for Faceless YouTube Channels. Automate visuals, voiceover, captions & SFX. 100% Free & Open-Source.

docs: sync Chinese hero with B1 hand-drawn preview (#52)

烤妹儿1cd03b23b8e1
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 5bb96e8..5c79d18 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -42,14 +42,15 @@
<a href="#style-5"><img src="https://cdn.jsdelivr.net/gh/kaomei/stickman-video-director@2697fac5e0466f44098148a52c9648697521b3d6/assets/readme/previews/style-5-japan-hero.gif" alt="历史卡通风火柴人动画:江户日本的武士故事" width="90%"></a>
</td>
<td width="50%" align="center">
-<strong>待更新…</strong>
+<strong>极简手绘风</strong><br>
+<a href="#b1"><img src="https://cdn.jsdelivr.net/gh/kaomei/stickman-video-director@fa0a68d1ccf9fd057230abab2af832f768debe86/assets/readme/previews/b1-minimal-handdrawn.gif" alt="极简手绘风火柴人视频:生动角色、重点文字与微动画" width="90%"></a>
</td>
</tr>
</table>
<div align="center">
-**5 大画风 · 7 种视觉方案 · 实测样片 · 免费开源**
+**6 大画风 · 8 种视觉方案 · 实测样片 · 免费开源**
⭐ **本系列持续更新,欢迎点个 Star,更多热门画风陆续上线。**
diff --git a/tests/verify-chinese-onboarding.py b/tests/verify-chinese-onboarding.py
index 317c7f0..1e81a54 100644
--- a/tests/verify-chinese-onboarding.py
+++ b/tests/verify-chinese-onboarding.py
@@ -57,7 +57,12 @@ for label in ("A1:经典黑白风", "A2:现代潮酷风", "A3:史前洞穴
assert f"### {label}\n" in cn, label
hero = cn.split('<table width="100%">', 1)[1].split("</table>", 1)[0]
style_names = ("经典黑白风", "现代潮酷风", "史前洞穴风", "治愈故事风", "历史卡通风")
-assert re.findall(r"<strong>([^<]+)</strong><br>", hero) == list(style_names)
+b_style_names = [name for name in re.findall(r"^### B\d+:([^\n]+)$", cn, re.M)
+ if not name.startswith("待更新")]
+assert re.findall(r"<strong>([^<]+)</strong><br>", hero) == list(style_names) + b_style_names, "Sync every published B style into the top preview grid, using its style name without A/B prefixes"
+assert "<strong>极简手绘风</strong><br>" in hero, "Use the approved B1 preview in the sixth cell"
+assert f"**{len(style_names) + len(b_style_names)} 大画风 · {len(style_names) + 2 + len(b_style_names)} 种视觉方案 · 实测样片 · 免费开源**" in cn
+assert re.search(r'<a href="#b1"><img src="([^"]+/b1-minimal-handdrawn\.gif)"[^>]+width="90%"></a>', hero), "Link the top B1 preview to its detail section"
for number, name in enumerate(style_names, 1):
assert f"### A{number}:{name}\n" in cn, "Keep preview and detail names aligned"
assert "史前黑色幽默" not in cn and "史前手绘 / 黑色幽默" not in cn
@@ -99,6 +104,7 @@ for preview in previews:
assert width <= 640 and height <= 360
assert file.stat().st_size < 4_000_000
b1 = cn.split('<a id="b1"></a>', 1)[1].split('<a id="b2"></a>', 1)[0]
+assert re.search(r'src="([^"]+/b1-minimal-handdrawn\.gif)"', hero).group(1) == re.search(r'src="([^"]+/b1-minimal-handdrawn\.gif)"', b1).group(1), "Reuse the same immutable B1 preview in the hero and detail section"
fields = ("- **画面特点**:", "- **适合内容**:", "- **怎么选**:")
assert all(b1.count(field) == 1 for field in fields), "Use the same introduction fields as A styles"
assert [b1.index(field) for field in fields] == sorted(b1.index(field) for field in fields)
diff --git a/tests/verify-localized-readmes.py b/tests/verify-localized-readmes.py
index 6dfd395..dc0be3c 100644
--- a/tests/verify-localized-readmes.py
+++ b/tests/verify-localized-readmes.py
@@ -29,7 +29,11 @@ for readme in root.glob("README*.md"):
assert [hero.index(asset) for asset in order] == sorted(hero.index(asset) for asset in order)
last_cells = re.findall(r"<td[^>]*>(.*?)</td>", rows[-1], re.DOTALL)
assert "style-5-japan-hero.gif" in last_cells[0]
- assert "<strong>" in last_cells[1] and "<img" not in last_cells[1]
+ if readme.name == "README.zh-CN.md":
+ assert "<strong>极简手绘风</strong>" in last_cells[1]
+ assert f'href="#b1"><img src="{chinese_b1_preview}"' in last_cells[1]
+ else:
+ assert "<strong>" in last_cells[1] and "<img" not in last_cells[1]
approved_voiceover = (
"Ten thousand years ago, one man finally solved all his problems. He shut them outside.",
"Then someone offered him food… in exchange for a small favor. Congratulations. Employment was invented.",