From 14d5ae922ad6e32dcb04997244712a20974e8391 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 27 Jul 2026 19:16:32 +0200 Subject: fix(readings): stop auto-rendering from the defective wuj corpus The Wujek (wuj) corpus is missing the deuterocanonical Daniel 3:24-90 (Song of the Three), Daniel 13-14, and Esther 10:4-16:24, plus ~400 verses its builder (parse_bwujek.py) dropped or mis-numbered (e.g. Matthew 5:13/39 are in the source HTML but absent from wuj.tsv). Rendering computed readings from it silently produced gaps. vernacularVersion() now renders Polish from the complete Latin Vulgate (vul) instead of wuj; English stays on Douay-Rheims (complete after the deuterocanon backfill). wuj remains embedded for explicit `--ref -b wuj` and version comparison -- it just isn't auto-selected for computed reading text. A properly formatted Polish Bible can later be dropped in as a user corpus (the national-bibles feature) to restore native Polish rendering. --- internal/cli/liturgy.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'internal/cli/liturgy.go') diff --git a/internal/cli/liturgy.go b/internal/cli/liturgy.go index 9dcdb69..bb250a5 100644 --- a/internal/cli/liturgy.go +++ b/internal/cli/liturgy.go @@ -61,11 +61,16 @@ func dayReadings(sel calendar.Selection, layers []calendar.Layer, date time.Time return nil } -// vernacularVersion is the offline corpus used to render reading text: Wujek -// for Polish, Douay-Rheims otherwise (bt is scraped, so it is not used here). +// vernacularVersion is the COMPLETE offline corpus used to render reading text. +// The Wujek (wuj) corpus is intentionally NOT auto-selected here: it lacks the +// deuterocanonical Daniel/Esther additions and ~400 verses its builder dropped, +// so Polish renders from the complete Latin Vulgate until a properly-formatted +// Polish Bible is supplied as a user corpus (the national-bibles feature). wuj +// stays available for explicit `--ref -b wuj` and version comparison. English +// uses Douay-Rheims (complete after the deuterocanon backfill); bt is scraped. func vernacularVersion(cfg config.Config) string { if cfg.TraditionalLang == "pl" || cfg.UILanguage == "pl" { - return "wuj" + return "vul" // Latin: no complete Polish corpus yet (wuj is defective) } return "drb" } -- cgit v1.3