style 圖文好讀wip

This commit is contained in:
2026-05-18 01:22:51 +08:00
parent 8decc4a7ee
commit 73a5427e48
7 changed files with 1013 additions and 90 deletions
+14
View File
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
from pathlib import Path
p = Path(r"d:\Developer\projects\sechskies\totoga2\readable copy.html")
s = p.read_text(encoding="utf-8")
s = s.replace(
'< class="intro-text"> class="ebook-intro-note">',
'<p class="ebook-intro-note">',
)
s = s.replace('< class="intro-text">>', '<p class="intro-text">')
if '< class="intro-text">' in s:
raise SystemExit("still broken intro-text tags")
p.write_text(s, encoding="utf-8", newline="\n")
print("fixed", s.count('class="intro-text"'))