aboutsummaryrefslogtreecommitdiff
path: root/internal/calendar/calendar.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-28 10:47:48 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-28 10:47:48 +0200
commit98fe454868ffff3f52396e095b5cd5f1251f1fd2 (patch)
treeab6a730c8cb0a707289935408cb3ebb336ea14cf /internal/calendar/calendar.go
parentd571091e25e87758c3c77fbc8b2d935bcc8304a4 (diff)
downloadlectio-98fe454868ffff3f52396e095b5cd5f1251f1fd2.tar.gz
lectio-98fe454868ffff3f52396e095b5cd5f1251f1fd2.zip
feat(of): proper readings for the movable Marian memorials
Mary, Mother of the Church and the Immaculate Heart of Mary are computed in the engine (no fixed-date INI entry), so they fell back to the ferial. Attach their proper Masses inline: Mary MotC = Gen 3:9-15,20 / Ps 87 / John 19:25-34; Immaculate Heart = Isa 61:9-11 / 1 Sam 2 canticle / Luke 2:41-51. Verified they render when observed (Immaculate Heart 2029-06-09). Extends TestOFMovableMemorials.
Diffstat (limited to 'internal/calendar/calendar.go')
-rw-r--r--internal/calendar/calendar.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/internal/calendar/calendar.go b/internal/calendar/calendar.go
index 99a24b3..d224e87 100644
--- a/internal/calendar/calendar.go
+++ b/internal/calendar/calendar.go
@@ -125,15 +125,21 @@ type movableCel struct {
// Heart, i.e. easter+69).
func movableMemorialsOF(y int) []movableCel {
e := Easter(y)
- mk := func(off int, slug, en, pl string) movableCel {
+ mk := func(off int, slug, en, pl string, first, psalm, gospel string) movableCel {
return movableCel{when: e.AddDate(0, 0, off), cel: Celebration{
Slug: slug, Rank: RankMemorial, Class: ClassBVM, Colour: White, Layer: "universal",
Name: map[string]string{"en": en, "pl": pl},
+ // Proper readings (these memorials have no fixed-date entry to key from).
+ Masses: []Mass{{Readings: []Reading{
+ {Part: "first", Citation: first}, {Part: "psalm", Citation: psalm}, {Part: "gospel", Citation: gospel},
+ }}},
}}
}
return []movableCel{
- mk(50, "mary-mother-of-the-church", "Mary, Mother of the Church", "Najświętszej Maryi Panny, Matki Kościoła"),
- mk(69, "the-immaculate-heart-of-the-blessed-virgin-mary", "The Immaculate Heart of the Blessed Virgin Mary", "Niepokalanego Serca Najświętszej Maryi Panny"),
+ mk(50, "mary-mother-of-the-church", "Mary, Mother of the Church", "Najświętszej Maryi Panny, Matki Kościoła",
+ "Genesis 3:9-15,20", "Psalms 87:1-2,3+5,6-7", "John 19:25-34"),
+ mk(69, "the-immaculate-heart-of-the-blessed-virgin-mary", "The Immaculate Heart of the Blessed Virgin Mary", "Niepokalanego Serca Najświętszej Maryi Panny",
+ "Isaiah 61:9-11", "1 Samuel 2:1,4-5,6-7,8abcd", "Luke 2:41-51"),
}
}