add Douay-Rheims Bible to the project for english bible references
All checks were successful
CI / update (push) Successful in 19s
All checks were successful
CI / update (push) Successful in 19s
This commit is contained in:
@@ -5,31 +5,33 @@
|
|||||||
import { writeFileSync } from 'fs';
|
import { writeFileSync } from 'fs';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { lookupReference } from '../src/lib/server/bible';
|
import { lookupReference } from '../src/lib/server/bible';
|
||||||
import { mysteryReferences } from '../src/lib/data/mysteryDescriptions';
|
import { mysteryReferences, mysteryReferencesEnglish } from '../src/lib/data/mysteryDescriptions';
|
||||||
import type { MysteryDescription, VerseData } from '../src/lib/data/mysteryDescriptions';
|
import type { MysteryDescription, VerseData } from '../src/lib/data/mysteryDescriptions';
|
||||||
|
|
||||||
const tsvPath = resolve('static/allioli.tsv');
|
function generateVerseData(
|
||||||
|
references: Record<string, readonly { title: string; reference: string }[]>,
|
||||||
|
tsvPath: string
|
||||||
|
): Record<string, MysteryDescription[]> {
|
||||||
|
const result: Record<string, MysteryDescription[]> = {};
|
||||||
|
|
||||||
const mysteryDescriptions: Record<string, MysteryDescription[]> = {};
|
for (const [mysteryType, refs] of Object.entries(references)) {
|
||||||
|
|
||||||
for (const [mysteryType, references] of Object.entries(mysteryReferences)) {
|
|
||||||
const descriptions: MysteryDescription[] = [];
|
const descriptions: MysteryDescription[] = [];
|
||||||
|
|
||||||
for (const ref of references) {
|
for (const ref of refs) {
|
||||||
const result = lookupReference(ref.reference, tsvPath);
|
const lookup = lookupReference(ref.reference, tsvPath);
|
||||||
|
|
||||||
let text = '';
|
let text = '';
|
||||||
let verseData: VerseData | null = null;
|
let verseData: VerseData | null = null;
|
||||||
|
|
||||||
if (result && result.verses.length > 0) {
|
if (lookup && lookup.verses.length > 0) {
|
||||||
text = `«${result.verses.map((v) => v.text).join(' ')}»`;
|
text = `«${lookup.verses.map((v) => v.text).join(' ')}»`;
|
||||||
verseData = {
|
verseData = {
|
||||||
book: result.book,
|
book: lookup.book,
|
||||||
chapter: result.chapter,
|
chapter: lookup.chapter,
|
||||||
verses: result.verses
|
verses: lookup.verses
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
console.warn(`No verses found for: ${ref.reference}`);
|
console.warn(`No verses found for: ${ref.reference} in ${tsvPath}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
descriptions.push({
|
descriptions.push({
|
||||||
@@ -40,13 +42,24 @@ for (const [mysteryType, references] of Object.entries(mysteryReferences)) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
mysteryDescriptions[mysteryType] = descriptions;
|
result[mysteryType] = descriptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
const dePath = resolve('static/allioli.tsv');
|
||||||
|
const enPath = resolve('static/drb.tsv');
|
||||||
|
|
||||||
|
const mysteryVerseDataDe = generateVerseData(mysteryReferences, dePath);
|
||||||
|
const mysteryVerseDataEn = generateVerseData(mysteryReferencesEnglish, enPath);
|
||||||
|
|
||||||
const output = `// Auto-generated by scripts/generate-mystery-verses.ts — do not edit manually
|
const output = `// Auto-generated by scripts/generate-mystery-verses.ts — do not edit manually
|
||||||
import type { MysteryDescription } from './mysteryDescriptions';
|
import type { MysteryDescription } from './mysteryDescriptions';
|
||||||
|
|
||||||
export const mysteryVerseData: Record<string, MysteryDescription[]> = ${JSON.stringify(mysteryDescriptions, null, '\t')};
|
export const mysteryVerseDataDe: Record<string, MysteryDescription[]> = ${JSON.stringify(mysteryVerseDataDe, null, '\t')};
|
||||||
|
|
||||||
|
export const mysteryVerseDataEn: Record<string, MysteryDescription[]> = ${JSON.stringify(mysteryVerseDataEn, null, '\t')};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const outPath = resolve('src/lib/data/mysteryVerseData.ts');
|
const outPath = resolve('src/lib/data/mysteryVerseData.ts');
|
||||||
|
|||||||
@@ -63,9 +63,11 @@ async function authorization({ event, resolve }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Bible verse functionality for error pages
|
// Bible verse functionality for error pages
|
||||||
async function getRandomVerse(fetch: typeof globalThis.fetch): Promise<any> {
|
async function getRandomVerse(fetch: typeof globalThis.fetch, pathname: string): Promise<any> {
|
||||||
|
const isEnglish = pathname.startsWith('/faith/') || pathname.startsWith('/recipes/');
|
||||||
|
const endpoint = isEnglish ? '/api/faith/bibel/zufallszitat' : '/api/glaube/bibel/zufallszitat';
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/api/glaube/bibel/zufallszitat');
|
const response = await fetch(endpoint);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
}
|
}
|
||||||
@@ -80,11 +82,14 @@ export const handleError: HandleServerError = async ({ error, event, status, mes
|
|||||||
console.error('Error occurred:', { error, status, message, url: event.url.pathname });
|
console.error('Error occurred:', { error, status, message, url: event.url.pathname });
|
||||||
|
|
||||||
// Add Bible verse to error context
|
// Add Bible verse to error context
|
||||||
const bibleQuote = await getRandomVerse(event.fetch);
|
const bibleQuote = await getRandomVerse(event.fetch, event.url.pathname);
|
||||||
|
|
||||||
|
const isEnglish = event.url.pathname.startsWith('/faith/') || event.url.pathname.startsWith('/recipes/');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
message: message,
|
message: message,
|
||||||
bibleQuote
|
bibleQuote,
|
||||||
|
lang: isEnglish ? 'en' : 'de'
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -5,19 +5,23 @@
|
|||||||
reference = '',
|
reference = '',
|
||||||
title = '',
|
title = '',
|
||||||
verseData = null,
|
verseData = null,
|
||||||
|
lang = 'de',
|
||||||
onClose
|
onClose
|
||||||
}: {
|
}: {
|
||||||
reference?: string,
|
reference?: string,
|
||||||
title?: string,
|
title?: string,
|
||||||
verseData?: VerseData | null,
|
verseData?: VerseData | null,
|
||||||
|
lang?: string,
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
|
const isEnglish = $derived(lang === 'en');
|
||||||
|
|
||||||
let book: string = $state(verseData?.book || '');
|
let book: string = $state(verseData?.book || '');
|
||||||
let chapter: number = $state(verseData?.chapter || 0);
|
let chapter: number = $state(verseData?.chapter || 0);
|
||||||
let verses: Array<{ verse: number; text: string }> = $state(verseData?.verses || []);
|
let verses: Array<{ verse: number; text: string }> = $state(verseData?.verses || []);
|
||||||
let loading = $state(false);
|
let loading = $state(false);
|
||||||
let error = $state(verseData ? '' : 'Keine Versdaten verfügbar');
|
let error = $state(verseData ? '' : (lang === 'en' ? 'No verse data available' : 'Keine Versdaten verfügbar'));
|
||||||
|
|
||||||
function handleBackdropClick(event: MouseEvent) {
|
function handleBackdropClick(event: MouseEvent) {
|
||||||
if (event.target === event.currentTarget) {
|
if (event.target === event.currentTarget) {
|
||||||
@@ -49,7 +53,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<p class="modal-reference">{reference}</p>
|
<p class="modal-reference">{reference}</p>
|
||||||
</div>
|
</div>
|
||||||
<button class="close-button" onclick={onClose} aria-label="Schließen">
|
<button class="close-button" onclick={onClose} aria-label={isEnglish ? 'Close' : 'Schließen'}>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
<line x1="18" y1="6" x2="6" y2="18"></line>
|
<line x1="18" y1="6" x2="6" y2="18"></line>
|
||||||
<line x1="6" y1="6" x2="18" y2="18"></line>
|
<line x1="6" y1="6" x2="18" y2="18"></line>
|
||||||
@@ -59,7 +63,7 @@
|
|||||||
|
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
{#if loading}
|
{#if loading}
|
||||||
<p class="loading">Lädt...</p>
|
<p class="loading">{isEnglish ? 'Loading...' : 'Lädt...'}</p>
|
||||||
{:else if error}
|
{:else if error}
|
||||||
<p class="error">{error}</p>
|
<p class="error">{error}</p>
|
||||||
{:else if verses.length > 0}
|
{:else if verses.length > 0}
|
||||||
@@ -72,7 +76,7 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<p class="error">Keine Verse gefunden</p>
|
<p class="error">{isEnglish ? 'No verses found' : 'Keine Verse gefunden'}</p>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -105,3 +105,94 @@ export const mysteryReferences = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const mysteryReferencesEnglish = {
|
||||||
|
lichtreichen: [
|
||||||
|
{
|
||||||
|
title: "The first Luminous Mystery: The Baptism in the Jordan.",
|
||||||
|
reference: "Mt 3:16-17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The second Luminous Mystery: The Wedding at Cana.",
|
||||||
|
reference: "Jn 2:1-5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The third Luminous Mystery: The Proclamation of the Kingdom of God.",
|
||||||
|
reference: "Mk 1:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fourth Luminous Mystery: The Transfiguration.",
|
||||||
|
reference: "Mt 17:1-2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fifth Luminous Mystery: The Institution of the Holy Eucharist.",
|
||||||
|
reference: "Mt 26:26"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
freudenreich: [
|
||||||
|
{
|
||||||
|
title: "The first Joyful Mystery: The Annunciation of the Archangel Gabriel to the Virgin Mary.",
|
||||||
|
reference: "Lk 1:26-27"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The second Joyful Mystery: The Visitation of Mary to Elizabeth.",
|
||||||
|
reference: "Lk 1:39-42"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The third Joyful Mystery: The Nativity of Jesus in the Stable at Bethlehem.",
|
||||||
|
reference: "Lk 2:1-7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fourth Joyful Mystery: The Presentation of Jesus in the Temple.",
|
||||||
|
reference: "Lk 2:21-24"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fifth Joyful Mystery: The Finding of Jesus in the Temple.",
|
||||||
|
reference: "Lk 2:41-47"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
schmerzhaften: [
|
||||||
|
{
|
||||||
|
title: "The first Sorrowful Mystery: The Agony of Jesus in the Garden.",
|
||||||
|
reference: "Mt 26:36-39"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The second Sorrowful Mystery: The Scourging at the Pillar.",
|
||||||
|
reference: "Mt 27:26"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The third Sorrowful Mystery: The Crowning with Thorns.",
|
||||||
|
reference: "Mt 27:27-29"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fourth Sorrowful Mystery: Jesus Carries the Heavy Cross.",
|
||||||
|
reference: "Mk 15:21-22"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fifth Sorrowful Mystery: The Crucifixion of Jesus.",
|
||||||
|
reference: "Lk 23:33-46"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
glorreichen: [
|
||||||
|
{
|
||||||
|
title: "The first Glorious Mystery: The Resurrection of Jesus.",
|
||||||
|
reference: "Lk 24:1-6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The second Glorious Mystery: The Ascension of Jesus.",
|
||||||
|
reference: "Mk 16:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The third Glorious Mystery: The Descent of the Holy Spirit.",
|
||||||
|
reference: "Acts 2:1-4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fourth Glorious Mystery: The Assumption of Mary into Heaven.",
|
||||||
|
reference: "Lk 1:48-49"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "The fifth Glorious Mystery: The Coronation of Mary as Queen of Heaven and Earth.",
|
||||||
|
reference: "Apo 12:1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
} as const;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// Auto-generated by scripts/generate-mystery-verses.ts — do not edit manually
|
// Auto-generated by scripts/generate-mystery-verses.ts — do not edit manually
|
||||||
import type { MysteryDescription } from './mysteryDescriptions';
|
import type { MysteryDescription } from './mysteryDescriptions';
|
||||||
|
|
||||||
export const mysteryVerseData: Record<string, MysteryDescription[]> = {
|
export const mysteryVerseDataDe: Record<string, MysteryDescription[]> = {
|
||||||
"lichtreichen": [
|
"lichtreichen": [
|
||||||
{
|
{
|
||||||
"title": "Das erste lichtreiche Geheimnis: Die Taufe im Jordan.",
|
"title": "Das erste lichtreiche Geheimnis: Die Taufe im Jordan.",
|
||||||
@@ -523,3 +523,526 @@ export const mysteryVerseData: Record<string, MysteryDescription[]> = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const mysteryVerseDataEn: Record<string, MysteryDescription[]> = {
|
||||||
|
"lichtreichen": [
|
||||||
|
{
|
||||||
|
"title": "The first Luminous Mystery: The Baptism in the Jordan.",
|
||||||
|
"reference": "Mt 3:16-17",
|
||||||
|
"text": "«And Jesus being baptized, forthwith came out of the water: and lo, the heavens were opened to him: and he saw the Spirit of God descending as a dove, and coming upon him. And behold a voice from heaven saying: This is my beloved Son, in whom I am well pleased.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Matthew",
|
||||||
|
"chapter": 3,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 16,
|
||||||
|
"text": "And Jesus being baptized, forthwith came out of the water: and lo, the heavens were opened to him: and he saw the Spirit of God descending as a dove, and coming upon him."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 17,
|
||||||
|
"text": "And behold a voice from heaven saying: This is my beloved Son, in whom I am well pleased."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The second Luminous Mystery: The Wedding at Cana.",
|
||||||
|
"reference": "Jn 2:1-5",
|
||||||
|
"text": "«And the third day, there was a marriage in Cana of Galilee: and the mother of Jesus was there. And Jesus also was invited, and his disciples, to the marriage. And the wine failing, the mother of Jesus saith to him: They have no wine. And Jesus saith to her: Woman, what is that to me and to thee? My hour is not yet come. His mother saith to the waiters: Whatsoever he shall say to you, do ye.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "John",
|
||||||
|
"chapter": 2,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 1,
|
||||||
|
"text": "And the third day, there was a marriage in Cana of Galilee: and the mother of Jesus was there."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 2,
|
||||||
|
"text": "And Jesus also was invited, and his disciples, to the marriage."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 3,
|
||||||
|
"text": "And the wine failing, the mother of Jesus saith to him: They have no wine."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 4,
|
||||||
|
"text": "And Jesus saith to her: Woman, what is that to me and to thee? My hour is not yet come."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 5,
|
||||||
|
"text": "His mother saith to the waiters: Whatsoever he shall say to you, do ye."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The third Luminous Mystery: The Proclamation of the Kingdom of God.",
|
||||||
|
"reference": "Mk 1:15",
|
||||||
|
"text": "«And saying: The time is accomplished and the kingdom of God is at hand. Repent and believe the gospel:»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Mark",
|
||||||
|
"chapter": 1,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 15,
|
||||||
|
"text": "And saying: The time is accomplished and the kingdom of God is at hand. Repent and believe the gospel:"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fourth Luminous Mystery: The Transfiguration.",
|
||||||
|
"reference": "Mt 17:1-2",
|
||||||
|
"text": "«And after six days Jesus taketh unto him Peter and James, and John his brother, and bringeth them up into a high mountain apart: And he was transfigured before them. And his face did shine as the sun: and his garments became white as snow.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Matthew",
|
||||||
|
"chapter": 17,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 1,
|
||||||
|
"text": "And after six days Jesus taketh unto him Peter and James, and John his brother, and bringeth them up into a high mountain apart:"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 2,
|
||||||
|
"text": "And he was transfigured before them. And his face did shine as the sun: and his garments became white as snow."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fifth Luminous Mystery: The Institution of the Holy Eucharist.",
|
||||||
|
"reference": "Mt 26:26",
|
||||||
|
"text": "«And whilst they were at supper, Jesus took bread and blessed and broke and gave to his disciples and said: Take ye and eat. This is my body.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Matthew",
|
||||||
|
"chapter": 26,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 26,
|
||||||
|
"text": "And whilst they were at supper, Jesus took bread and blessed and broke and gave to his disciples and said: Take ye and eat. This is my body."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"freudenreich": [
|
||||||
|
{
|
||||||
|
"title": "The first Joyful Mystery: The Annunciation of the Archangel Gabriel to the Virgin Mary.",
|
||||||
|
"reference": "Lk 1:26-27",
|
||||||
|
"text": "«And in the sixth month, the angel Gabriel was sent from God into a city of Galilee, called Nazareth, To a virgin espoused to a man whose name was Joseph, of the house of David: and the virgin's name was Mary.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 1,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 26,
|
||||||
|
"text": "And in the sixth month, the angel Gabriel was sent from God into a city of Galilee, called Nazareth,"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 27,
|
||||||
|
"text": "To a virgin espoused to a man whose name was Joseph, of the house of David: and the virgin's name was Mary."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The second Joyful Mystery: The Visitation of Mary to Elizabeth.",
|
||||||
|
"reference": "Lk 1:39-42",
|
||||||
|
"text": "«And Mary rising up in those days, went into the hill country with haste into a city of Juda. And she entered into the house of Zachary and saluted Elizabeth. And it came to pass that when Elizabeth heard the salutation of Mary, the infant leaped in her womb. And Elizabeth was filled with the Holy Ghost. And she cried out with a loud voice and said: Blessed art thou among women and blessed is the fruit of thy womb.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 1,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 39,
|
||||||
|
"text": "And Mary rising up in those days, went into the hill country with haste into a city of Juda."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 40,
|
||||||
|
"text": "And she entered into the house of Zachary and saluted Elizabeth."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 41,
|
||||||
|
"text": "And it came to pass that when Elizabeth heard the salutation of Mary, the infant leaped in her womb. And Elizabeth was filled with the Holy Ghost."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 42,
|
||||||
|
"text": "And she cried out with a loud voice and said: Blessed art thou among women and blessed is the fruit of thy womb."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The third Joyful Mystery: The Nativity of Jesus in the Stable at Bethlehem.",
|
||||||
|
"reference": "Lk 2:1-7",
|
||||||
|
"text": "«And it came to pass that in those days there went out a decree from Caesar Augustus that the whole world should be enrolled. This enrolling was first made by Cyrinus, the governor of Syria. And all went to be enrolled, every one into his own city. And Joseph also went up from Galilee, out of the city of Nazareth, into Judea, to the city of David, which is called Bethlehem: because he was of the house and family of David. To be enrolled with Mary his espoused wife, who was with child. And it came to pass that when they were there, her days were accomplished that she should be delivered. And she brought forth her first born son and wrapped him up in swaddling clothes and laid him in a manger: because there was no room for them in the inn.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 2,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 1,
|
||||||
|
"text": "And it came to pass that in those days there went out a decree from Caesar Augustus that the whole world should be enrolled."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 2,
|
||||||
|
"text": "This enrolling was first made by Cyrinus, the governor of Syria."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 3,
|
||||||
|
"text": "And all went to be enrolled, every one into his own city."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 4,
|
||||||
|
"text": "And Joseph also went up from Galilee, out of the city of Nazareth, into Judea, to the city of David, which is called Bethlehem: because he was of the house and family of David."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 5,
|
||||||
|
"text": "To be enrolled with Mary his espoused wife, who was with child."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 6,
|
||||||
|
"text": "And it came to pass that when they were there, her days were accomplished that she should be delivered."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 7,
|
||||||
|
"text": "And she brought forth her first born son and wrapped him up in swaddling clothes and laid him in a manger: because there was no room for them in the inn."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fourth Joyful Mystery: The Presentation of Jesus in the Temple.",
|
||||||
|
"reference": "Lk 2:21-24",
|
||||||
|
"text": "«And after eight days were accomplished, that the child should be circumcised, his name was called JESUS, which was called by the angel before he was conceived in the womb. And after the days of her purification, according to the law of Moses, were accomplished, they carried him to Jerusalem, to present him to the Lord: As it is written in the law of the Lord: Every male opening the womb shall be called holy to the Lord: And to offer a sacrifice, according as it is written in the law of the Lord, a pair of turtledoves or two young pigeons:»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 2,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 21,
|
||||||
|
"text": "And after eight days were accomplished, that the child should be circumcised, his name was called JESUS, which was called by the angel before he was conceived in the womb."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 22,
|
||||||
|
"text": "And after the days of her purification, according to the law of Moses, were accomplished, they carried him to Jerusalem, to present him to the Lord:"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 23,
|
||||||
|
"text": "As it is written in the law of the Lord: Every male opening the womb shall be called holy to the Lord:"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 24,
|
||||||
|
"text": "And to offer a sacrifice, according as it is written in the law of the Lord, a pair of turtledoves or two young pigeons:"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fifth Joyful Mystery: The Finding of Jesus in the Temple.",
|
||||||
|
"reference": "Lk 2:41-47",
|
||||||
|
"text": "«And his parents went every year to Jerusalem, at the solemn day of the pasch. And when he was twelve years old, they going up into Jerusalem, according to the custom of the feast, And having fulfilled the days, when they returned, the child Jesus remained in Jerusalem. And his parents knew it not. And thinking that he was in the company, they came a day's journey and sought him among their kinsfolks and acquaintance. And not finding him, they returned into Jerusalem, seeking him. And it came to pass, that, after three days, they found him in the temple, sitting in the midst of the doctors, hearing them and asking them questions. And all that heard him were astonished at his wisdom and his answers.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 2,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 41,
|
||||||
|
"text": "And his parents went every year to Jerusalem, at the solemn day of the pasch."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 42,
|
||||||
|
"text": "And when he was twelve years old, they going up into Jerusalem, according to the custom of the feast,"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 43,
|
||||||
|
"text": "And having fulfilled the days, when they returned, the child Jesus remained in Jerusalem. And his parents knew it not."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 44,
|
||||||
|
"text": "And thinking that he was in the company, they came a day's journey and sought him among their kinsfolks and acquaintance."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 45,
|
||||||
|
"text": "And not finding him, they returned into Jerusalem, seeking him."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 46,
|
||||||
|
"text": "And it came to pass, that, after three days, they found him in the temple, sitting in the midst of the doctors, hearing them and asking them questions."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 47,
|
||||||
|
"text": "And all that heard him were astonished at his wisdom and his answers."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"schmerzhaften": [
|
||||||
|
{
|
||||||
|
"title": "The first Sorrowful Mystery: The Agony of Jesus in the Garden.",
|
||||||
|
"reference": "Mt 26:36-39",
|
||||||
|
"text": "«Then Jesus came with them into a country place which is called Gethsemani. And he said to his disciples: Sit you here, till I go yonder and pray. And taking with him Peter and the two sons of Zebedee, he began to grow sorrowful and to be sad. Then he saith to them: My soul is sorrowful even unto death. Stay you here and watch with me. And going a little further, he fell upon his face, praying and saying: My Father, if it be possible, let this chalice pass from me. Nevertheless, not as I will but as thou wilt.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Matthew",
|
||||||
|
"chapter": 26,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 36,
|
||||||
|
"text": "Then Jesus came with them into a country place which is called Gethsemani. And he said to his disciples: Sit you here, till I go yonder and pray."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 37,
|
||||||
|
"text": "And taking with him Peter and the two sons of Zebedee, he began to grow sorrowful and to be sad."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 38,
|
||||||
|
"text": "Then he saith to them: My soul is sorrowful even unto death. Stay you here and watch with me."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 39,
|
||||||
|
"text": "And going a little further, he fell upon his face, praying and saying: My Father, if it be possible, let this chalice pass from me. Nevertheless, not as I will but as thou wilt."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The second Sorrowful Mystery: The Scourging at the Pillar.",
|
||||||
|
"reference": "Mt 27:26",
|
||||||
|
"text": "«Then he released to them Barabbas: and having scourged Jesus, delivered him unto them to be crucified.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Matthew",
|
||||||
|
"chapter": 27,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 26,
|
||||||
|
"text": "Then he released to them Barabbas: and having scourged Jesus, delivered him unto them to be crucified."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The third Sorrowful Mystery: The Crowning with Thorns.",
|
||||||
|
"reference": "Mt 27:27-29",
|
||||||
|
"text": "«Then the soldiers of the governor, taking Jesus into the hall, gathered together unto him the whole band. And stripping him, they put a scarlet cloak about him. And platting a crown of thorns, they put it upon his head, and a reed in his right hand. And bowing the knee before him, they mocked him, saying: Hail, King of the Jews.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Matthew",
|
||||||
|
"chapter": 27,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 27,
|
||||||
|
"text": "Then the soldiers of the governor, taking Jesus into the hall, gathered together unto him the whole band."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 28,
|
||||||
|
"text": "And stripping him, they put a scarlet cloak about him."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 29,
|
||||||
|
"text": "And platting a crown of thorns, they put it upon his head, and a reed in his right hand. And bowing the knee before him, they mocked him, saying: Hail, King of the Jews."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fourth Sorrowful Mystery: Jesus Carries the Heavy Cross.",
|
||||||
|
"reference": "Mk 15:21-22",
|
||||||
|
"text": "«And they forced one Simon a Cyrenian, who passed by coming out of the country, the father of Alexander and of Rufus, to take up his cross. And they bring him into the place called Golgotha, which being interpreted is, The place of Calvary.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Mark",
|
||||||
|
"chapter": 15,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 21,
|
||||||
|
"text": "And they forced one Simon a Cyrenian, who passed by coming out of the country, the father of Alexander and of Rufus, to take up his cross."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 22,
|
||||||
|
"text": "And they bring him into the place called Golgotha, which being interpreted is, The place of Calvary."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fifth Sorrowful Mystery: The Crucifixion of Jesus.",
|
||||||
|
"reference": "Lk 23:33-46",
|
||||||
|
"text": "«And when they were come to the place which is called Calvary, they crucified him there: and the robbers, one on the right hand, and the other on the left. And Jesus said: Father, forgive them, for they know not what they do. But they, dividing his garments, cast lots. And the people stood beholding. And the rulers with them derided him, saying: He saved others: let him save himself, if he be Christ, the elect of God. And the soldiers also mocked him, coming to him and offering him vinegar, And saying: If thou be the king of the Jews, save thyself. And there was also a superscription written over him in letters of Greek and Latin and Hebrew THIS IS THE KING OF THE JEWS. And one of those robbers who were hanged blasphemed him, saying: If thou be Christ, save thyself and us. But the other answering, rebuked him, saying: Neither dost thou fear God, seeing; thou art under the same condemnation? And we indeed justly: for we receive the due reward of our deeds. But this man hath done no evil. And he said to Jesus: Lord, remember me when thou shalt come into thy kingdom. And Jesus said to him: Amen I say to thee: This day thou shalt be with me in paradise. And it was almost the sixth hour: and there was darkness over all the earth until the ninth hour. And the sun was darkened, and the veil of the temple was rent in the midst. And Jesus crying with a loud voice, said: Father, into thy hands I commend my spirit. And saying this, he gave up the ghost.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 23,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 33,
|
||||||
|
"text": "And when they were come to the place which is called Calvary, they crucified him there: and the robbers, one on the right hand, and the other on the left."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 34,
|
||||||
|
"text": "And Jesus said: Father, forgive them, for they know not what they do. But they, dividing his garments, cast lots."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 35,
|
||||||
|
"text": "And the people stood beholding. And the rulers with them derided him, saying: He saved others: let him save himself, if he be Christ, the elect of God."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 36,
|
||||||
|
"text": "And the soldiers also mocked him, coming to him and offering him vinegar,"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 37,
|
||||||
|
"text": "And saying: If thou be the king of the Jews, save thyself."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 38,
|
||||||
|
"text": "And there was also a superscription written over him in letters of Greek and Latin and Hebrew THIS IS THE KING OF THE JEWS."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 39,
|
||||||
|
"text": "And one of those robbers who were hanged blasphemed him, saying: If thou be Christ, save thyself and us."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 40,
|
||||||
|
"text": "But the other answering, rebuked him, saying: Neither dost thou fear God, seeing; thou art under the same condemnation?"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 41,
|
||||||
|
"text": "And we indeed justly: for we receive the due reward of our deeds. But this man hath done no evil."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 42,
|
||||||
|
"text": "And he said to Jesus: Lord, remember me when thou shalt come into thy kingdom."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 43,
|
||||||
|
"text": "And Jesus said to him: Amen I say to thee: This day thou shalt be with me in paradise."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 44,
|
||||||
|
"text": "And it was almost the sixth hour: and there was darkness over all the earth until the ninth hour."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 45,
|
||||||
|
"text": "And the sun was darkened, and the veil of the temple was rent in the midst."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 46,
|
||||||
|
"text": "And Jesus crying with a loud voice, said: Father, into thy hands I commend my spirit. And saying this, he gave up the ghost."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"glorreichen": [
|
||||||
|
{
|
||||||
|
"title": "The first Glorious Mystery: The Resurrection of Jesus.",
|
||||||
|
"reference": "Lk 24:1-6",
|
||||||
|
"text": "«And on the first day of the week, very early in the morning, they came to the sepulchre, bringing the spices which they had prepared. And they found the stone rolled back from the sepulchre. And going in, they found not the body of the Lord Jesus. And it came to pass, as they were astonished in their mind at this, behold, two men stood by them, in shining apparel. And as they were afraid and bowed down their countenance towards the ground, they said unto them: Why seek you the living with the dead? He is not here, but is risen. Remember how he spoke unto you, when he was yet in Galilee,»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 24,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 1,
|
||||||
|
"text": "And on the first day of the week, very early in the morning, they came to the sepulchre, bringing the spices which they had prepared."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 2,
|
||||||
|
"text": "And they found the stone rolled back from the sepulchre."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 3,
|
||||||
|
"text": "And going in, they found not the body of the Lord Jesus."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 4,
|
||||||
|
"text": "And it came to pass, as they were astonished in their mind at this, behold, two men stood by them, in shining apparel."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 5,
|
||||||
|
"text": "And as they were afraid and bowed down their countenance towards the ground, they said unto them: Why seek you the living with the dead?"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 6,
|
||||||
|
"text": "He is not here, but is risen. Remember how he spoke unto you, when he was yet in Galilee,"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The second Glorious Mystery: The Ascension of Jesus.",
|
||||||
|
"reference": "Mk 16:19",
|
||||||
|
"text": "«And the Lord Jesus, after he had spoken to them, was taken up into heaven and sitteth on the right hand of God.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Mark",
|
||||||
|
"chapter": 16,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 19,
|
||||||
|
"text": "And the Lord Jesus, after he had spoken to them, was taken up into heaven and sitteth on the right hand of God."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The third Glorious Mystery: The Descent of the Holy Spirit.",
|
||||||
|
"reference": "Acts 2:1-4",
|
||||||
|
"text": "«And when the days of the Pentecost were accomplished, they were all together in one place: And suddenly there came a sound from heaven, as of a mighty wind coming: and it filled the whole house where they were sitting. And there appeared to them parted tongues, as it were of fire: and it sat upon every one of them. And they were all filled with the Holy Ghost: and they began to speak with divers tongues, according as the Holy Ghost gave them to speak.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Acts",
|
||||||
|
"chapter": 2,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 1,
|
||||||
|
"text": "And when the days of the Pentecost were accomplished, they were all together in one place:"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 2,
|
||||||
|
"text": "And suddenly there came a sound from heaven, as of a mighty wind coming: and it filled the whole house where they were sitting."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 3,
|
||||||
|
"text": "And there appeared to them parted tongues, as it were of fire: and it sat upon every one of them."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 4,
|
||||||
|
"text": "And they were all filled with the Holy Ghost: and they began to speak with divers tongues, according as the Holy Ghost gave them to speak."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fourth Glorious Mystery: The Assumption of Mary into Heaven.",
|
||||||
|
"reference": "Lk 1:48-49",
|
||||||
|
"text": "«Because he hath regarded the humility of his handmaid: for behold from henceforth all generations shall call me blessed. Because he that is mighty hath done great things to me: and holy is his name.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Luke",
|
||||||
|
"chapter": 1,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 48,
|
||||||
|
"text": "Because he hath regarded the humility of his handmaid: for behold from henceforth all generations shall call me blessed."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"verse": 49,
|
||||||
|
"text": "Because he that is mighty hath done great things to me: and holy is his name."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The fifth Glorious Mystery: The Coronation of Mary as Queen of Heaven and Earth.",
|
||||||
|
"reference": "Apo 12:1",
|
||||||
|
"text": "«And a great sign appeared in heaven: A woman clothed with the sun, and the moon under her feet, and on her head a crown of twelve stars.»",
|
||||||
|
"verseData": {
|
||||||
|
"book": "Apocalypse",
|
||||||
|
"chapter": 12,
|
||||||
|
"verses": [
|
||||||
|
{
|
||||||
|
"verse": 1,
|
||||||
|
"text": "And a great sign appeared in heaven: A woman clothed with the sun, and the moon under her feet, and on her head a crown of twelve stars."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
|
|||||||
@@ -10,16 +10,17 @@ export interface BibleVerse {
|
|||||||
text: string;
|
text: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
let cachedVerses: BibleVerse[] | null = null;
|
const versesCache = new Map<string, BibleVerse[]>();
|
||||||
|
|
||||||
export function loadVersesFromFile(tsvPath?: string): BibleVerse[] {
|
export function loadVersesFromFile(tsvPath?: string): BibleVerse[] {
|
||||||
if (cachedVerses) return cachedVerses;
|
|
||||||
|
|
||||||
const filePath = tsvPath ?? resolve('static/allioli.tsv');
|
const filePath = tsvPath ?? resolve('static/allioli.tsv');
|
||||||
|
const cached = versesCache.get(filePath);
|
||||||
|
if (cached) return cached;
|
||||||
|
|
||||||
const content = readFileSync(filePath, 'utf-8');
|
const content = readFileSync(filePath, 'utf-8');
|
||||||
const lines = content.trim().split('\n');
|
const lines = content.trim().split('\n');
|
||||||
|
|
||||||
cachedVerses = lines.map((line) => {
|
const verses = lines.map((line) => {
|
||||||
const [bookName, abbreviation, bookNumber, chapter, verseNumber, text] = line.split('\t');
|
const [bookName, abbreviation, bookNumber, chapter, verseNumber, text] = line.split('\t');
|
||||||
return {
|
return {
|
||||||
bookName,
|
bookName,
|
||||||
@@ -31,7 +32,8 @@ export function loadVersesFromFile(tsvPath?: string): BibleVerse[] {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
return cachedVerses;
|
versesCache.set(filePath, verses);
|
||||||
|
return verses;
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseReference(reference: string) {
|
function parseReference(reference: string) {
|
||||||
|
|||||||
35794
static/drb.tsv
Normal file
35794
static/drb.tsv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user