Adds src/scripture/ (types.ts, index.ts), a verse-addressable store mirroring
psalter/index.ts's own pattern exactly -- getScriptureVerses(book, chapter,
range) -- for non-Psalm scripture (Wisdom, Canticles, Ezekiel, Acts, Joel,
etc.). Kept as its own module, not folded into the Psalter, per 2026-08
discussion ("the psalms kind of work differently even if the logic is the
same, they do need their own store").
Octave readings can now declare `passages: [{ book, chapter, verses }]`
instead of embedding text -- each entry becomes its own paragraph, letting a
reading built from several verse ranges keep its original paragraph breaks.
getOctaveReading resolves either shape (embedded text or passages) into the
same OctaveReadingText callers already expect, so nothing downstream needs
to know which was used. Scope, per discussion: only readings that are
Scripture start to finish get this treatment -- prose that merely quotes a
verse or two (most of the patristic sermons pulled so far) keeps its
quotations embedded inline, as before.
Migrates the 9 already-committed octave readings that are pure Scripture
(Wisdom 4:7-20, Canticles 1 and 8, seven different Ezekiel excerpts across
All Saints' octave -- one of which, day 7, genuinely spans two chapters --
and Acts 19/Joel 2 for Pentecost's octave) to the new passages notation,
verified to resolve to character-identical text as before.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Corrects the earlier "no Matins content exists" conclusion (previous
commit): that was true of the live prayMatutinum query specifically,
scoped to "Monastic Tridentinum 1617" -- which naturally selects nothing,
since the dogma wasn't defined until 1854. The reference project's raw
"bmv"-suffixed variant files (12-09bmv.txt through 12-14bmv.txt) do carry
real content: excerpts from Pope Pius IX's dogmatic bull "Ineffabilis
Deus" joined with a different Marian homily each day (Sophronius,
Bernard, Tarasius). Included per explicit user direction -- this
project's octave content is deliberately more generous than the strict
1617 monastic rubric alone would select.
Days 4 (Dec 11) and 6 (Dec 13) genuinely have no reading of their own in
the source (confirmed directly in the raw files, not assumed) -- both
already belong to another saint's own feast (Damasus, Lucy) anyway. Day
8 has no "bmv" variant file at all.
Also fixes two more source typos found while transcribing ("Himselfcan"
-> "Himself can", "Onlybegotten" -> "Only-begotten").
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Christmas's stacking cluster (Dec 26-31): only day 6 (Dec 30) has its own
Matins reading -- the one day nothing else wins outright, confirmed via
its own Invitatory. St. Stephen, St. John, and the Holy Innocents' own
octaves (also active there, stacking) have no separate reading content
anywhere in this range -- every other day belongs entirely to whichever
saint natively wins it, same as Immaculate Conception's octave (no
Matins content at all beyond its own day, confirmed and left
unauthored -- checked, not skipped).
Pentecost's octave: days 2-7 all have real content, confirmed via a
consistent distinctive Invitatory throughout, including its own Ember
Saturday (day 7) -- Pentecost's own content governs Matins there despite
St. Felix I's stub-level commemoration that same day (see
tests/calendar/transfer.test.ts). Day 8 (Trinity Sunday) has none of its
own -- Trinity's own distinct office governs that day's actual Matins
content, so no reading is authored for it despite the octave mechanism
still commemorating Pentecost there. Two readings are direct Scripture
(Acts 19:1-9, Joel 2:23-28) with no source English rendered; used the
standard Douay-Rheims wording (verified, not draft) rather than the
project's own patristic-prose translations, matching how every other
Scripture citation in this project is sourced.
Also fixes two more instances of the recurring "dropped space after
capital I" source typo ("Icame" -> "I came").
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
All Saints: all 7 days (2-8) have real content -- a continuous reading
from the book of Ezechiel read straight through the whole octave,
confirmed via each day's own distinctive Invitatory antiphon, present
even on Nov 2 (so this app's own All Souls' Day exclusion doesn't
conflict with anything here). Also fixes two more recurring "dropped
space after capital I" source typos ("Iwill" -> "I will") found by
grepping the accumulated readings so far, retroactively correcting
St. Lawrence's day 8 and the Assumption's day 6.
vite.config.ts: raises workbox's maximumFileSizeToCacheInBytes -- the
growing body of eagerly-bundled octave-reading text (by design, for
offline use) pushed the main chunk past the default 2 MiB precache cap,
which was failing the production build.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Assumption: days 2, 4-8 (day 3, Aug 17, is entirely overshadowed by St.
Lawrence's own octave-concluding day, a higher-rank Duplex that day --
no separate Assumption reading exists there). Also fixes a source typo
("Isaw her" -> "I saw her") in the shared responsory, retroactively
correcting day 2's file from the previous commit.
Nativity of the BVM: days 2, 4, 5, 6, 8 (day 3, Sep 10, belongs to St.
Nicholas of Tolentino's monastic-specific reassignment; day 7, Sep 14, is
the Exaltation of the Holy Cross -- confirmed via each day's own
Invitatory antiphon, not assumed). Day 5 had no source English at all;
translated per this session's discussion (status: draft). Also fixes a
second source typo ("Gorgonitis" -> "Gorgonius" in a commemoration
heading).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds propers/octave-readings.ts: a day-indexed lookup
(getOctaveReading(octaveId, dayNumber), id convention
"${octaveId}-octave-day-${dayNumber}") since readings genuinely vary day
to day within a single octave (confirmed: the Assumption's own octave
gives different patristic excerpts on day 2 vs. day 5) -- the singular
OctaveConfig.readingId field from the previous commit didn't fit that
reality and is removed.
Sourced via a different query command (prayMatutinum, not prayTertia)
than every other proper this pull has pulled -- the raw per-date
Sancti/MM-DD.txt files for octave-continuation days are occupied by
unrelated later-calendar saints (same trap as everywhere else), but the
real content lives in MM-DDoct.txt/MM-DDbmv.txt-style variant files the
live engine resolves correctly.
Per project convention (2026-08 discussion): the historical 3 (or 9-12,
on a day's own higher-rank office) Lectios are collapsed into one
continuous reading rather than kept broken up, and only the first
responsory is kept (which one to use when several collapse into one is
still an open question). A caught bug along the way: several readings
have no English translation in the source at all -- its own English page
silently falls back to showing the Latin text under the "Reading"
header, which an early pass mistakenly stored as a duplicate before the
mismatch was caught; now left honestly missing instead.
St. Lawrence's octave: real readings for days 2-5 and 8 (day 8, "In
Octava S. Laurentii," is a fuller distinct office); days 6-7 (Aug 15-16)
belong entirely to the Assumption's feast and octave instead -- day 7's
query, redirected, became assumption-octave-day-2's reading. The other
five octaves (Assumption's remaining days, Nativity BVM, Immaculate
Conception, All Saints, the Christmas trio, Pentecost) are follow-up
work, not done in this pass.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>