mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
b1dff9f2fb
Cross-references and word studies now appear as proper footnotes in PDF exports using WeasyPrint's CSS footnote support. Features: - Cross-references grouped by description (e.g., "References God") - Word studies with Greek/Hebrew terms and meanings - Automatic footnote numbering - Footnote markers (* and †) in verse text - Clean footnote formatting at bottom of pages PDF now includes all the study content from the web view in a print-friendly format. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
129 lines
3.7 KiB
HTML
129 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{{ book }} {{ chapter }} (KJV)</title>
|
|
<style>
|
|
@page {
|
|
size: letter;
|
|
margin: 0.85in;
|
|
@bottom-center {
|
|
content: counter(page);
|
|
font-family: "et-book", Georgia, serif;
|
|
font-size: 10pt;
|
|
color: #666;
|
|
}
|
|
@footnote {
|
|
border-top: 0.5pt solid #666;
|
|
padding-top: 6pt;
|
|
margin-top: 12pt;
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: "et-book", Georgia, "Times New Roman", serif;
|
|
font-size: 11.25pt;
|
|
line-height: 1.65;
|
|
color: #111;
|
|
}
|
|
|
|
h1 {
|
|
font-weight: normal;
|
|
letter-spacing: 0.05em;
|
|
font-size: 24pt;
|
|
margin: 0 0 0.1in 0;
|
|
}
|
|
|
|
.subtitle {
|
|
font-style: italic;
|
|
color: #666;
|
|
margin-bottom: 0.3in;
|
|
}
|
|
|
|
.chapter-meta {
|
|
font-size: 10pt;
|
|
color: #666;
|
|
margin-bottom: 0.35in;
|
|
border-bottom: 1px solid #ddd;
|
|
padding-bottom: 0.15in;
|
|
}
|
|
|
|
.verses {
|
|
margin-bottom: 0.4in;
|
|
}
|
|
|
|
.verse {
|
|
display: flex;
|
|
gap: 0.15in;
|
|
margin-bottom: 0.08in;
|
|
}
|
|
|
|
.verse-number {
|
|
font-variant-numeric: lining-nums;
|
|
font-size: 10pt;
|
|
color: #777;
|
|
min-width: 0.35in;
|
|
text-align: right;
|
|
}
|
|
|
|
.verse-text {
|
|
flex: 1;
|
|
text-align: justify;
|
|
}
|
|
|
|
/* Footnote markers and content */
|
|
.footnote {
|
|
float: footnote;
|
|
font-size: 9pt;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.footnote-marker {
|
|
vertical-align: super;
|
|
font-size: 8pt;
|
|
color: #666;
|
|
}
|
|
|
|
::footnote-marker {
|
|
font-size: 8pt;
|
|
color: #666;
|
|
}
|
|
|
|
::footnote-call {
|
|
content: counter(footnote);
|
|
font-size: 8pt;
|
|
vertical-align: super;
|
|
color: #666;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: 0.4in;
|
|
font-size: 9pt;
|
|
color: #888;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>{{ book }} {{ chapter }}</h1>
|
|
<p class="subtitle">Authorized King James Version (KJV)</p>
|
|
<p class="chapter-meta">{{ verse_count }} verses · Cross-references and word studies included as footnotes.</p>
|
|
|
|
<div class="verses">
|
|
{% for verse in verses %}
|
|
{% set commentary = commentaries[verse.verse] if commentaries and verse.verse in commentaries else none %}
|
|
<div class="verse">
|
|
<span class="verse-number">{{ verse.verse }}</span>
|
|
<span class="verse-text">
|
|
{{ verse.text }}{% if commentary %}{% if commentary.cross_reference_groups %}<span class="footnote-marker">*</span>{% for group in commentary.cross_reference_groups %}<span class="footnote"><strong>{{ group.description }}:</strong> {% for ref in group.refs %}{{ ref }}{% if not loop.last %}; {% endif %}{% endfor %}.</span>{% endfor %}{% endif %}{% if commentary.word_studies %}{% for study in commentary.word_studies %}<span class="footnote-marker">†</span><span class="footnote"><strong>{{ study.word }}:</strong> {{ study.term }} ({{ study.translit }}) — {{ study.meaning }}.</span>{% endfor %}{% endif %}{% endif %}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="footer">
|
|
From KJV Study • kjvstudy.org
|
|
</div>
|
|
</body>
|
|
</html>
|