aboutsummaryrefslogtreecommitdiff
path: root/internal/bible/corpora
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 23:54:29 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 23:54:29 +0200
commit2f20d41921a4ed08d0a7b16246215e0eee5ac512 (patch)
treee09dc26734f16a2285ee3436dcadbe5ccbaf3de9 /internal/bible/corpora
parente6eba32facf520d202f7941f43206e0f95141452 (diff)
downloadlectio-2f20d41921a4ed08d0a7b16246215e0eee5ac512.tar.gz
lectio-2f20d41921a4ed08d0a7b16246215e0eee5ac512.zip
feat(bible): resolve and display cross-chapter verse ranges (N:M-P:Q)
Lookup now detects a verse-tail range that crosses a chapter boundary ("M-P:Q", e.g. "30-28:7" in "Sirach 27:30-28:7") and fetches chapter N from verse M to its end, any whole chapters between, and chapter P from verse 1 through Q, instead of misreading the tail as a plain from-to range and coming up empty. SplitRef expands the same pattern inside a comma list so a trailing group after the jump (e.g. the ",8-10" in "Malachi 1:14-2:2,8-10") resolves against the new current chapter. FormatRef renders the range intact as "<sigla> N:M-P:Q" instead of splitting off a fake new-chapter marker from the embedded "P:" and mangling the display (previously "Sir 27:7"). No sentinel value is ever stored in a ref string; it only bounds an internal verse-filter loop in Lookup.
Diffstat (limited to 'internal/bible/corpora')
0 files changed, 0 insertions, 0 deletions