summaryrefslogtreecommitdiff
path: root/internal/liturgy/section.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 10:32:28 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 10:32:28 +0200
commitc9f3bf46f0de09edb796e35f3dcff349febf75c9 (patch)
treec1a0b98b484e4da557c1ab205dfff0d92ce8ac36 /internal/liturgy/section.go
parenta865374755480a4aef2a6156afccdf08a91422ea (diff)
downloadlectio-c9f3bf46f0de09edb796e35f3dcff349febf75c9.tar.gz
lectio-c9f3bf46f0de09edb796e35f3dcff349febf75c9.zip
dayinfo: show feast/day name + colour (modern niedziela + traditional missalemeum) in cli/tui/web; v0.5.0
Diffstat (limited to 'internal/liturgy/section.go')
-rw-r--r--internal/liturgy/section.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/liturgy/section.go b/internal/liturgy/section.go
index 498b201..cacefb0 100644
--- a/internal/liturgy/section.go
+++ b/internal/liturgy/section.go
@@ -10,3 +10,22 @@ type Section struct {
Heading, Subtitle, Citation, PartID string
Paragraphs [][]string
}
+
+// DayInfo is the day's liturgical identity, source-language (Polish for the
+// modern niedziela.pl lectionary, English/Latin for the traditional
+// missalemeum) -- never translated, like Section's own Heading/Citation.
+// A source that carries no such data (or an unrecognised page/response
+// shape) yields a zero DayInfo; callers must treat that as "omit the
+// header", never as an error.
+type DayInfo struct {
+ // Name is the celebration, e.g. "Święto św. Marii Magdaleny" (modern) or
+ // "St. Mary Magdalene" (traditional).
+ Name string
+ // Season is the temporal context, e.g. "Feria IV after VIII Sunday
+ // after Pentecost" (traditional); always "" for the modern lectionary,
+ // whose temporal is folded into Name on temporal days.
+ Season string
+ // Colour is the normalized liturgical colour: "white", "green",
+ // "violet", "red", "rose", or "" when unknown/unmapped.
+ Colour string
+}