diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-27 19:16:32 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-27 19:16:32 +0200 |
| commit | 14d5ae922ad6e32dcb04997244712a20974e8391 (patch) | |
| tree | 06317f21e19133cf1e792aadd802011f916bbbd0 /internal/cli/liturgy.go | |
| parent | a1e041dfbe55194c7fea0636d38cff33ee28315d (diff) | |
| download | lectio-14d5ae922ad6e32dcb04997244712a20974e8391.tar.gz lectio-14d5ae922ad6e32dcb04997244712a20974e8391.zip | |
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.
Diffstat (limited to 'internal/cli/liturgy.go')
| -rw-r--r-- | internal/cli/liturgy.go | 11 |
1 files changed, 8 insertions, 3 deletions
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" } |
