diff options
Diffstat (limited to 'internal/liturgy/section.go')
| -rw-r--r-- | internal/liturgy/section.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/liturgy/section.go b/internal/liturgy/section.go new file mode 100644 index 0000000..498b201 --- /dev/null +++ b/internal/liturgy/section.go @@ -0,0 +1,12 @@ +// Package liturgy parses the daily Catholic liturgy readings page into +// structured sections (1st reading, psalm, acclamation, gospel). +package liturgy + +// Section is one reading section of the liturgy page (e.g. "1. czytanie", +// "Psalm", "Aklamacja", "Ewangelia"): its heading, optional subtitle, the +// citation extracted from the heading, a stable identifier for which liturgical +// part it is, and its body split into paragraphs of text lines. +type Section struct { + Heading, Subtitle, Citation, PartID string + Paragraphs [][]string +} |
