diff --git a/CHANGELOG.html b/CHANGELOG.html index 3e071ea..79440d9 100644 --- a/CHANGELOG.html +++ b/CHANGELOG.html @@ -1,4 +1,4 @@ - +
@@ -312,6 +312,28 @@ user-select: none; } +/* Pass C 配套:cjk-autospace lib 把長英文段包進 ,此處 + 讓瀏覽器原生 hyphens: auto 用 en 字典做斷詞 + 渲染連字符。連字符純 + 視覺(DOM 不存在),複製返回原文無污染。 + + hyphenate-limit-chars: 6 3 3 — 詞長 ≥6、斷點前/後各 ≥3 字符,避免 + 把 "before" 斷成 "be-fore" 之類粒度過細之結果。Safari/Firefox 對此 + 屬性支援不全,未生效時退至各家瀏覽器之默認啟發。 + + hyphenate-character: "-" — 強制斷字符為 U+002D HYPHEN-MINUS(窄拉丁 + 寬度)而非預設之 U+2010 HYPHEN。Noto Serif CJK SC 把 U+2010 設計為 + 全形 CJK 標點(1 em,等於一個中文字寬度)以服務 CJK 範圍表達,但 + 用在英文斷字會視覺斷裂;U+002D 在同字型中為窄拉丁,與作者鍵入的 - + 一致。仍為純視覺渲染,DOM 與剪貼簿不受影響。 */ +[lang|="en"] +{ + hyphens: auto; + -webkit-hyphens: auto; + hyphenate-limit-chars: 6 3 3; + hyphenate-character: "-"; + -webkit-hyphenate-character: "-"; +} + /* Default two-sided justified alignment for any multi-line prose / data container in CJK lang. Auto-applies — no class required. Principle: text that wraps to 2+ lines should justify regardless of tag (table @@ -1880,6 +1902,102 @@ header.page .actions main { padding-top: var(--gap-xl); padding-bottom: var(--gap-xl); } +/* ---------- Table of Contents (opt in via body[data-toc]) ---------- + Runtime 由 behavior.js 之 setupToc 注入