name: interlinear-pdf-chirho description: Generate complete interlinear Bible PDFs with Greek/Hebrew text, glosses, and reference translations. Use when creating downloadable Bible study PDFs. disable-model-invocation: true
For God so loved the world, that He gave His only begotten Son,
that all who believe in Him should not perish but have everlasting life.
— John 3:16
Interlinear Bible PDF Generation
Generate complete interlinear Bible PDFs showing Greek/Hebrew source text with word-by-word glosses for any translated language.
Tool Location
The generation tool is located at:
sveltekit2-platform-chirho/tools-chirho/generate-interlinear-bible-pdf-chirho.ts
Usage
IMPORTANT: Run from the sveltekit2-platform-chirho/ directory (needs fonts and DB connection).
cd sveltekit2-platform-chirho
# Basic usage - generates interlinear-{lang}-chirho.pdf
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts <language_code>
# Custom output path
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts <language_code> <output_path>
# With reference translation
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts <language_code> <output_path> <reference_version>
Examples
# Portuguese interlinear (glosses only)
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts por static/bibles-chirho/interlinear-por-chirho.pdf
# Spanish with RV1909 reference
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts spa static/bibles-chirho/interlinear-spa-rv1909-chirho.pdf rv1909
# Hindi with KJV reference
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts hin static/bibles-chirho/interlinear-hin-kjv-chirho.pdf kjv
# Bengali with Bengali2006EB reference
bun run tools-chirho/generate-interlinear-bible-pdf-chirho.ts ben static/bibles-chirho/interlinear-ben-ben2006eb-chirho.pdf ben2006eb
Output Location
PDFs should be placed in:
sveltekit2-platform-chirho/static/bibles-chirho/
Naming Convention
| Type | Format | Example |
|---|---|---|
| Glosses only | interlinear-{lang}-chirho.pdf |
interlinear-por-chirho.pdf |
| With reference | interlinear-{lang}-{ref}-chirho.pdf |
interlinear-spa-rv1909-chirho.pdf |
PDF Structure
Each PDF contains:
- Title page with language and generation info
- Table of contents with all 66 books
- Book chapters with:
- Greek/Hebrew source text
- Strong's numbers (H/G codes)
- Word-by-word glosses in target language
- Optional reference translation text
Required Fonts
The tool requires these fonts in static/fonts-chirho/:
NotoSans-Regular.ttf- For Latin scriptNotoSans-Bold.ttf- For headingsEzraSIL-Regular.ttf- For Hebrew text
Database Dependency
The tool reads glosses from PostgreSQL. Ensure:
- Docker is running (
docker compose up -d) - Translations are imported into the database
- Language code exists in the
languagetable
File Size
Complete Bible PDFs are approximately 130-145 MB depending on:
- Number of glosses available
- Reference translation inclusion
- Font embedding
Deployment
After generating:
- Verify PDF opens correctly
- Check file size is reasonable (~130 MB)
- Commit to Git
- Deploy to production (auto-syncs static files)
Available Reference Versions
| Code | Version | Language |
|---|---|---|
kjv |
King James Version | English |
web |
World English Bible | English |
rv1909 |
Reina-Valera 1909 | Spanish |
hinerv |
Hindi Easy-to-Read | Hindi |
ben2006eb |
Bengali Common Language | Bengali |