|
|
2 mesiacov pred | |
|---|---|---|
| .. | ||
| cases | 2 mesiacov pred | |
| README.md | 2 mesiacov pred | |
| skeleton.html | 2 mesiacov pred | |
Multi-country regulatory survey template. Playwright HTML+CSS, A4 portrait, CJK multi-language font cascade, per-country sections + horizontal comparison table + references. For the production AI voice cloning case, read
../../docs/ai-voice-cloning-regulatory-report-case.md.
Playwright HTML+CSS direct render -> PDF. Does NOT use the token pipeline.
Why not the token pipeline:
@font-face + font-family cascade control.Palette (academic / governmental muted tone):
#1a3d7c navy (H1 + table headers)#111 near-black#fafbfd light#888 borderTypography (CJK cascade — order matters):
font-family:
'PingFang SC',
/* CN simplified, primary */ 'Hiragino Sans',
/* JP fallback */ 'Apple SD Gothic Neo',
/* KR — required! Hiragino does NOT cover hangul */ 'Helvetica Neue',
/* Latin fallback */ sans-serif;
Layout:
border-collapse, 9.5pt body, navy header background, zebra even rows,
page-break-inside: avoid.page-break-before: always except for the first
section), H2 14pt + left rule, H3 12pt muted navy.See skeleton.html (~200 lines; one representative per-country section provided —
duplicate it per country in the loop).
Quick start:
cp templates/multilang-research-report/skeleton.html /tmp/report/page.html
# Edit --primary in :root.
# Duplicate the per-country section for each of your N countries.
node packages/local-runtime/assets/skills/pdf/scripts/render_html.cjs /tmp/report/page.html /tmp/report/out.pdf
references_master.md within the first 3 iterations to lock the A/B/C grading scheme.lang="zh-CN" / lang="ko" / lang="ja" on <p> /
<td> to enable correct hyphenation / line-breaking.td { word-break: break-word; vertical-align: top; padding: 6pt; }.Required placeholders / swappable:
JURISDICTION_COUNT (5 is the baseline; 3-10 ok).COUNTRY_LIST -> loop structure: COUNTRY_CODE (CN/EU/US/KR/JP) / COUNTRY_NAME /
LEGAL_FRAMEWORK_TEXT / STATUTE_NAMES / ...LAW_NAME (per country x per section).CASE_PARTIES / CASE_VERDICT / CASE_YEAR.DIMENSION_LIST (6 baseline: legal hierarchy / core statutes / penalties / disclosure / effective
date / consent standard).JURISDICTION_COUNT + 1.Optional sections:
Structural invariants:
page-break-before: always.[CODE-##] format (CN-1 / EU-27 / US-48).Swappable subject domains (verified path: AI voice cloning; generalises to: data privacy + cross-border, chip export controls, crypto regulation, biometrics):
Diversify every run. The §4 baseline (academic navy + zebra tables) is the m15 rendition of one specific topic — do not paste it onto every research report. Adapt the primary color to match the subject domain (privacy: green; chip export: industrial gray; crypto: amber), re-pick the table accent, and re-cut the comparison dimensions per topic. Two reports on different subjects should read as different publications, not two coats of paint on the same template.
docs/ + data/ research artifacts, fact-check report, optimized dark academic
cover, KPI cards, compact horizontal comparison table, and source ratings. Read
../../docs/ai-voice-cloning-regulatory-report-case.md
and regenerate from
cases/ai-voice-cloning-regulatory/source.html.