aboutsummaryrefslogtreecommitdiff
path: root/internal/bible/booktable.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 15:22:14 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 15:22:14 +0200
commit88ade3a7b7e15e6742d367bdc4b95b1293b92429 (patch)
tree91f721176e3f28dc9c06566101cb441538e145fc /internal/bible/booktable.go
parent28699aa44df1d791fb48618a8f06627f230432d4 (diff)
downloadlectio-88ade3a7b7e15e6742d367bdc4b95b1293b92429.tar.gz
lectio-88ade3a7b7e15e6742d367bdc4b95b1293b92429.zip
feat: EF temporal Sunday lectionary (offline Sunday Mass readings)
Unique temporal-day slugs (season-sunday-week); scripts/genlect.go generates tridentine-lectionary.ini from missalemeum keyed by slug (55 entries: the Sundays of the whole EF year). caldata.TemporalReadings(form,slug) lookup; --liturgy resolves proper-of-feast else the temporal cycle and renders the text. bible.ParseRef strips abbreviation dots (1 Cor. -> 1 Cor). 52/53 Sundays fully resolve offline.
Diffstat (limited to 'internal/bible/booktable.go')
-rw-r--r--internal/bible/booktable.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/bible/booktable.go b/internal/bible/booktable.go
index de8995c..ffa3907 100644
--- a/internal/bible/booktable.go
+++ b/internal/bible/booktable.go
@@ -139,6 +139,7 @@ func (t *BookTable) Books(dialect string) []BookInfo {
// normalizeSigla.
func (t *BookTable) ParseRef(dialect, input string) (string, bool) {
low := strings.ToLower(strings.Join(strings.Fields(input), " "))
+ low = bookDotRe.ReplaceAllString(low, "$1") // drop abbreviation dots ("1 cor. 9" -> "1 cor 9")
if low == "" {
return "", false
}