aboutsummaryrefslogtreecommitdiff
path: root/internal/bible/convert.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/convert.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/convert.go')
-rw-r--r--internal/bible/convert.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/bible/convert.go b/internal/bible/convert.go
index 6181dbf..e7d5944 100644
--- a/internal/bible/convert.go
+++ b/internal/bible/convert.go
@@ -46,6 +46,7 @@ var (
iRe = regexp.MustCompile(`\s+i\s+`)
dashRe = regexp.MustCompile(`\s*[-–—]\s*`)
verseLetterRe = regexp.MustCompile(`(\d)[a-c]\b`)
+ bookDotRe = regexp.MustCompile(`(\p{L})\.`) // abbreviation dot after a letter ("Cor." -> "Cor")
psalmRestRe = regexp.MustCompile(`(\d+)(?:\s*\((\d+)\))?(.*)$`)
digitsRe = regexp.MustCompile(`\d+`)
)