aboutsummaryrefslogtreecommitdiff
path: root/internal/liturgy/section.go
diff options
context:
space:
mode:
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
+}