From c9f3bf46f0de09edb796e35f3dcff349febf75c9 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Fri, 24 Jul 2026 10:32:28 +0200 Subject: dayinfo: show feast/day name + colour (modern niedziela + traditional missalemeum) in cli/tui/web; v0.5.0 --- internal/liturgy/section.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'internal/liturgy/section.go') 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 +} -- cgit v1.3