diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-20 11:42:25 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-20 11:42:25 +0200 |
| commit | 900d1d781e62a08a1bda1285c8e8611a7baa0f2f (patch) | |
| tree | 621e920076409f74e164cfc15016ad9910bcf40a /test/golden/ordo-2027.txt | |
| parent | e2e56ac5af290b60ea01037e58e8bc00545c021c (diff) | |
| download | colitur-900d1d781e62a08a1bda1285c8e8611a7baa0f2f.tar.gz colitur-900d1d781e62a08a1bda1285c8e8611a7baa0f2f.zip | |
feat(templates): week headers stop repeating the month name
Every ordo booklet week header used to print the month name again
even though the month heading right above it already established it
-- pure noise, repeated once per week for the whole year. All seven
ordo flavours now print the week's own Roman numeral plus the span of
dates it covers instead, e.g. "Hebdomada I (Ian 1-2)", with no month
name on the line; the LaTeX table of contents and the Typst outline
(built automatically from its own headings, so editing the heading is
the whole fix there) read the same way.
A single-day week (e.g. a lone trailing Sunday) renders "Ian 31", not
"Ian 31-31": each flavour's dash sits inside an inverted single_day
section, so the engine -- which cannot itself compare first_dom to
last_dom -- never has to decide anything, it only follows the data.
The dash character matches each flavour's own existing convention:
LaTeX/Typst's own "--" ligature, groff's \(en escape (alongside its
existing \(bu), HTML's – entity (alongside its existing
·), and a literal en dash for the three flavours with no
escaping (adoc/md/txt).
Every in-template comment describing the new fields is written without
ever typing two curly braces together, including in the two comments
this touches that used to embed a live {{month_name}}/{{term.week}}
tag pair inside a LaTeX % comment -- harmless only because that whole
line already started with %, not because the engine has any comment
awareness (it has none).
Goldens regenerated through test_render_golden.ml's own render path
(Test_view.view_of + Template.render_string), not the CLI -- the two
differ in default language and would otherwise pin output the test
suite never produces. Grid goldens are untouched, matching the grid
templates, which have no week header.
Verified against real pdflatex (two passes) and typst compile output,
not merely the golden pins: both flavours print "Hebdomada I (Ian
1-2)", "Hebdomada II (Ian 3-9)", "Hebdomada III (Ian 10-16)" as their
first three week headers and identical text in the table of
contents/outline, and both show "Hebdomada VI (Ian 31)" for January's
own trailing single-day week with no dash.
Diffstat (limited to 'test/golden/ordo-2027.txt')
| -rw-r--r-- | test/golden/ordo-2027.txt | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/test/golden/ordo-2027.txt b/test/golden/ordo-2027.txt index 2fdfc4b..8b496de 100644 --- a/test/golden/ordo-2027.txt +++ b/test/golden/ordo-2027.txt @@ -1,7 +1,7 @@ January 2027 -== Week 1 == +== Week I (Jan 1–2) == 1 The Octave Day of the Nativity class-1 · white @@ -14,7 +14,7 @@ January 2027 Gospel Luke 2:15-20 -== Week 2 == +== Week II (Jan 3–9) == 3 The Holy Name of Jesus class-2 · white @@ -53,7 +53,7 @@ January 2027 Gospel Luke 2:15-20 -== Week 3 == +== Week III (Jan 10–16) == 10 The Holy Family class-2 · white @@ -94,7 +94,7 @@ January 2027 Gospel Matt 16:13-19 -== Week 4 == +== Week IV (Jan 17–23) == 17 2nd Sunday after Epiphany class-2 · green @@ -136,7 +136,7 @@ January 2027 Commemoration St. Emerentiana -== Week 5 == +== Week V (Jan 24–30) == 24 Septuagesima Sunday class-2 · violet @@ -176,7 +176,7 @@ January 2027 Gospel Matt 25:1-13. -== Week 6 == +== Week VI (Jan 31) == 31 Sexagesima Sunday class-2 · violet @@ -187,7 +187,7 @@ January 2027 February 2027 -== Week 1 == +== Week I (Feb 1–6) == 1 St. Ignatius of Antioch class-3 · red @@ -222,7 +222,7 @@ February 2027 Commemoration St. Dorothy -== Week 2 == +== Week II (Feb 7–13) == 7 Quinquagesima Sunday class-2 · violet @@ -263,7 +263,7 @@ February 2027 Gospel Mark 6:47-56 -== Week 3 == +== Week III (Feb 14–20) == 14 1st Sunday of Lent class-1 · violet @@ -303,7 +303,7 @@ February 2027 Gospel Matt 17:1-9 -== Week 4 == +== Week IV (Feb 21–27) == 21 2nd Sunday of Lent class-1 · violet @@ -346,7 +346,7 @@ February 2027 Commemoration St. Gabriel of Our Lady of Sorrows -== Week 5 == +== Week V (Feb 28) == 28 3rd Sunday of Lent class-1 · violet @@ -357,7 +357,7 @@ February 2027 March 2027 -== Week 1 == +== Week I (Mar 1–6) == 1 Monday of the 3rd Week of Lent class-3 · violet @@ -393,7 +393,7 @@ March 2027 Commemoration Sts. Felicitas & Perpetua -== Week 2 == +== Week II (Mar 7–13) == 7 4th Sunday of Lent class-1 · rose @@ -435,7 +435,7 @@ March 2027 Gospel John 8:12-20 -== Week 3 == +== Week III (Mar 14–20) == 14 Passion Sunday class-1 · violet @@ -476,7 +476,7 @@ March 2027 Gospel John 12:10-36 -== Week 4 == +== Week IV (Mar 21–27) == 21 Palm Sunday class-1 · violet @@ -514,7 +514,7 @@ March 2027 Gospel Matt 28:1-7 -== Week 5 == +== Week V (Mar 28–31) == 28 Easter Sunday class-1 · white @@ -540,7 +540,7 @@ March 2027 April 2027 -== Week 1 == +== Week I (Apr 1–3) == 1 Thursday of Easter Week class-1 · white @@ -558,7 +558,7 @@ April 2027 Gospel John 20:1-9 -== Week 2 == +== Week II (Apr 4–10) == 4 Low Sunday (Sunday in Easter Octave) class-1 · white @@ -596,7 +596,7 @@ April 2027 Gospel John 19:25-27 -== Week 3 == +== Week III (Apr 11–17) == 11 2nd Sunday after Easter class-2 · white @@ -636,7 +636,7 @@ April 2027 Commemoration St. Anicetus -== Week 4 == +== Week IV (Apr 18–24) == 18 3rd Sunday after Easter class-2 · white @@ -675,7 +675,7 @@ April 2027 Gospel John 15:1-7 -== Week 5 == +== Week V (Apr 25–30) == 25 4th Sunday after Easter class-2 · white @@ -712,7 +712,7 @@ April 2027 May 2027 -== Week 1 == +== Week I (May 1) == 1 St. Joseph the Workman class-1 · white @@ -720,7 +720,7 @@ May 2027 Gospel Matt 13:54-58 -== Week 2 == +== Week II (May 2–8) == 2 5th Sunday after Easter class-2 · white @@ -760,7 +760,7 @@ May 2027 Gospel John 19:25-27 -== Week 3 == +== Week III (May 9–15) == 9 Sunday after the Ascension class-2 · white @@ -800,7 +800,7 @@ May 2027 Gospel John 14:15-21. -== Week 4 == +== Week IV (May 16–22) == 16 Pentecost Sunday (Whitsunday) class-1 · red @@ -838,7 +838,7 @@ May 2027 Gospel Luke 4:38-44. -== Week 5 == +== Week V (May 23–29) == 23 Trinity Sunday class-1 · white @@ -878,7 +878,7 @@ May 2027 Gospel Matt 25:1-13. -== Week 6 == +== Week VI (May 30–31) == 30 2nd Sunday after Pentecost class-2 · green @@ -895,7 +895,7 @@ May 2027 June 2027 -== Week 1 == +== Week I (Jun 1–5) == 1 St. Angela Merici class-3 · white @@ -924,7 +924,7 @@ June 2027 Gospel Matt 5:1-12 -== Week 2 == +== Week II (Jun 6–12) == 6 3rd Sunday after Pentecost class-2 · green @@ -964,7 +964,7 @@ June 2027 Commemoration St. Basilidus -== Week 3 == +== Week III (Jun 13–19) == 13 4th Sunday after Pentecost class-2 · green @@ -1005,7 +1005,7 @@ June 2027 Commemoration Sts. Gervasius and Protasius -== Week 4 == +== Week IV (Jun 20–26) == 20 5th Sunday after Pentecost class-2 · green @@ -1043,7 +1043,7 @@ June 2027 Gospel Luke 12:1-8 -== Week 5 == +== Week V (Jun 27–30) == 27 6th Sunday after Pentecost class-2 · green @@ -1070,7 +1070,7 @@ June 2027 July 2027 -== Week 1 == +== Week I (Jul 1–3) == 1 The Precious Blood of Our Lord Jesus Christ class-1 · red @@ -1089,7 +1089,7 @@ July 2027 Gospel Matt 10:28-33 -== Week 2 == +== Week II (Jul 4–10) == 4 7th Sunday after Pentecost class-2 · green @@ -1127,7 +1127,7 @@ July 2027 Gospel Matt 12:46-50 -== Week 3 == +== Week III (Jul 11–17) == 11 8th Sunday after Pentecost class-2 · green @@ -1168,7 +1168,7 @@ July 2027 Commemoration St. Alexis -== Week 4 == +== Week IV (Jul 18–24) == 18 9th Sunday after Pentecost class-2 · green @@ -1210,7 +1210,7 @@ July 2027 Commemoration St. Christina -== Week 5 == +== Week V (Jul 25–31) == 25 10th Sunday after Pentecost class-2 · green @@ -1255,7 +1255,7 @@ July 2027 August 2027 -== Week 1 == +== Week I (Aug 1–7) == 1 11th Sunday after Pentecost class-2 · green @@ -1296,7 +1296,7 @@ August 2027 Commemoration St. Donatus -== Week 2 == +== Week II (Aug 8–14) == 8 12th Sunday after Pentecost class-2 · green @@ -1338,7 +1338,7 @@ August 2027 Commemoration St. Eusebius -== Week 3 == +== Week III (Aug 15–21) == 15 Assumption of the Blessed Virgin Mary class-1 · white @@ -1378,7 +1378,7 @@ August 2027 Gospel Matt 13:44-52. -== Week 4 == +== Week IV (Aug 22–28) == 22 14th Sunday after Pentecost class-2 · green @@ -1419,7 +1419,7 @@ August 2027 Commemoration St. Hermes -== Week 5 == +== Week V (Aug 29–31) == 29 15th Sunday after Pentecost class-2 · green @@ -1441,7 +1441,7 @@ August 2027 September 2027 -== Week 1 == +== Week I (Sep 1–4) == 1 Wednesday of the 15th Week of the Time after Pentecost class-4 · green @@ -1466,7 +1466,7 @@ September 2027 Gospel Luke 11:27-28 -== Week 2 == +== Week II (Sep 5–11) == 5 16th Sunday after Pentecost class-2 · green @@ -1507,7 +1507,7 @@ September 2027 Commemoration Sts. Protus & Hyacinth -== Week 3 == +== Week III (Sep 12–18) == 12 17th Sunday after Pentecost class-2 · green @@ -1548,7 +1548,7 @@ September 2027 Gospel Matt 22:1-14 -== Week 4 == +== Week IV (Sep 19–25) == 19 18th Sunday after Pentecost class-2 · green @@ -1590,7 +1590,7 @@ September 2027 Gospel Luke 13:6-17 -== Week 5 == +== Week V (Sep 26–30) == 26 19th Sunday after Pentecost class-2 · green @@ -1621,7 +1621,7 @@ September 2027 October 2027 -== Week 1 == +== Week I (Oct 1–2) == 1 Friday of the 19th Week of the Time after Pentecost class-4 · green @@ -1635,7 +1635,7 @@ October 2027 Gospel Matt 18:1-10 -== Week 2 == +== Week II (Oct 3–9) == 3 20th Sunday after Pentecost class-2 · green @@ -1677,7 +1677,7 @@ October 2027 Commemoration St. Dionysius and companions -== Week 3 == +== Week III (Oct 10–16) == 10 21st Sunday after Pentecost class-2 · green @@ -1715,7 +1715,7 @@ October 2027 Gospel Matt 13:44-52. -== Week 4 == +== Week IV (Oct 17–23) == 17 22nd Sunday after Pentecost class-2 · green @@ -1755,7 +1755,7 @@ October 2027 Gospel Matt 24:42-47 -== Week 5 == +== Week V (Oct 24–30) == 24 23rd Sunday after Pentecost class-2 · green @@ -1795,7 +1795,7 @@ October 2027 Gospel Luke 11:27-28 -== Week 6 == +== Week VI (Oct 31) == 31 Christ the King class-1 · white @@ -1806,7 +1806,7 @@ October 2027 November 2027 -== Week 1 == +== Week I (Nov 1–6) == 1 All Saints class-1 · white @@ -1840,7 +1840,7 @@ November 2027 Gospel Luke 11:27-28 -== Week 2 == +== Week II (Nov 7–13) == 7 5th Sunday after Epiphany class-2 · green @@ -1882,7 +1882,7 @@ November 2027 Gospel Luke 12:32-34 -== Week 3 == +== Week III (Nov 14–20) == 14 6th Sunday after Epiphany class-2 · green @@ -1921,7 +1921,7 @@ November 2027 Gospel Luke 12:32-34 -== Week 4 == +== Week IV (Nov 21–27) == 21 24th and Last Sunday after Pentecost class-2 · green @@ -1962,7 +1962,7 @@ November 2027 Gospel Luke 11:27-28 -== Week 5 == +== Week V (Nov 28–30) == 28 1st Sunday of Advent class-1 · violet @@ -1985,7 +1985,7 @@ November 2027 December 2027 -== Week 1 == +== Week I (Dec 1–4) == 1 Wednesday of the 1st Week of Advent class-3 · violet @@ -2012,7 +2012,7 @@ December 2027 Commemoration St. Barbara -== Week 2 == +== Week II (Dec 5–11) == 5 2nd Sunday of Advent class-1 · violet @@ -2055,7 +2055,7 @@ December 2027 Commemoration Saturday of the 2nd Week of Advent -== Week 3 == +== Week III (Dec 12–18) == 12 3rd Sunday of Advent class-1 · rose @@ -2095,7 +2095,7 @@ December 2027 Gospel Luke 3:1-6 -== Week 4 == +== Week IV (Dec 19–25) == 19 4th Sunday of Advent class-1 · violet @@ -2134,7 +2134,7 @@ December 2027 Gospel John 1:1-14 -== Week 5 == +== Week V (Dec 26–31) == 26 Sunday within the Octave of the Nativity class-2 · white |
