From 493c5324693fea33207632143292ba9ff1deb3e7 Mon Sep 17 00:00:00 2001 From: Will Estes Date: Thu, 3 Sep 2026 05:43:12 -0400 Subject: [PATCH] Drop verse-number prefixes from scripture-sourced Matins readings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolvePassages() prepended each verse's number ("1 Et factum est...") when joining scripture verses into continuous reading text — visible today in Job's Matins reading. Not wanted; join the verse text alone. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Je2mXNHoXmi1DS3xEL67rH --- src/propers/octave-readings.ts | 4 ++-- tests/propers/octave-readings.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/propers/octave-readings.ts b/src/propers/octave-readings.ts index c5f358c..ad23eac 100644 --- a/src/propers/octave-readings.ts +++ b/src/propers/octave-readings.ts @@ -70,11 +70,11 @@ export function resolvePassages(passages: ScriptureCitation[]): Partial (v.text.la ? `${v.n} ${v.text.la}` : undefined)) + .map((v) => v.text.la) .filter((s): s is string => !!s) .join(' '); const en = verses - .map((v) => (v.text.en ? `${v.n} ${v.text.en}` : undefined)) + .map((v) => v.text.en) .filter((s): s is string => !!s) .join(' '); if (la) laParagraphs.push(la); diff --git a/tests/propers/octave-readings.test.ts b/tests/propers/octave-readings.test.ts index c09356c..d198485 100644 --- a/tests/propers/octave-readings.test.ts +++ b/tests/propers/octave-readings.test.ts @@ -34,8 +34,8 @@ describe('getOctaveReading', () => { const reading = getOctaveReading('all-saints', 2); const paragraphs = reading?.text.la?.split('\n\n') ?? []; expect(paragraphs.length).toBe(3); - expect(paragraphs[0]).toContain('1 Et factum est'); - expect(reading?.text.en).toContain('1 Now it came to pass'); + expect(paragraphs[0]).toContain('Et factum est'); + expect(reading?.text.en).toContain('Now it came to pass'); }); it('resolves a scripture passage reading that spans two chapters', () => {