feat(i18n): GLM 直译 10 篇书评——英文站全量覆盖,全部 locked 防回退

TMT 月度免费额度耗尽,改由 GLM 模型直译(质量高于机翻):面纱/佩德罗·巴拉莫/
海风中失落的血色馈赠/等待戈多(源更新重译,修正旧版人名漂移)/你谈/述罪
+ 四篇排版测试稿。翻译纪律:frontmatter 除 title 外字节级保留 + locked: true;
markdown 与排版包装器原样保留只译内文;文学书名用原著通行英文题名
(The Painted Veil / Pedro Páramo / Waiting for Godot / The Lost Salt Gift of Blood)。
同步刷新 translation-state 的源 sha256(locked + 幂等双保险)。
仪表盘英文覆盖 10→15;E2E 筛选断言随新照片动态对齐(65/65)。

验证: pnpm astro build exit 0(54+ 页,EN 目录 14 篇全生成);content-lint 0/0/0;E2E 65/65;gen-admin-stats 英文=15

Spec: 2026-11-05_blog-5n-admin-deep-optimization

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-05 23:44:18 +08:00
1 parent ef2bd97267
commit ba83217048
12 files changed
+241 -37

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
---
title: "Typography Sample"
pubDate: 2026-11-02
category: tech
tags: [test, hidden]
# 排版/斜体/白名单测试样张(fix3 车道):hidden 不列出,构建与 E2E 验证用
draft: false
locked: true
---
This post verifies three things: inline italic rendering, the restricted typography-class whitelist, and caption classes.
## Italics (should stay inline: no line break, no centering)
This sentence has *inline italic emphasis* set in the middle of the text; it must stay on the same line as the body text.
*This whole paragraph is an italic standalone paragraph; it must not turn into a block-level centered element.*
## Restricted typography classes (whitelist)
<span class="ink-muted">This run is ink-muted grey text.</span>
<span class="font-kai">This run is in the LXGW WenKai type family.</span>
<span class="font-mono">This run is in the monospace mono family.</span>
<p class="drop-cap">Drop-cap paragraph: the autumn sea lies like a sheet of tin smoothed flat by the wind, and the setting sun has scorched a ring of red around its rim.</p>
<p class="quote-line">Dusk, so-called, is simply the light slowly admitting that it has to go.</p>
## Whitelist stripping (illegal classes and inline styles must be removed)
<span class="evil-class ink-2" style="color:#ff0000" onclick="alert(1)">This run carries an illegal class, an inline color, and an onclick all at once; after the build only ink-2 should remain, with style/onclick gone.</span>
## Captions (class-driven)
<p class="fig-cap">This is the explicit caption style (fig-cap): centered, grey text.</p>