Reference parser: relative references like Elberfelder 1871's Kap 6,5 #117

Open
opened 2026-10-29 13:15:28 +00:00 by claude-bot · 0 comments
Collaborator

Follow-up to #13, split out by the owner on 2026-10-29 (#13 question 6: "later").

#13's reference parser (part 6b, core/src/bible/refs.rs) handles TSK's free-text references (Ps 18:40-43; 78:68), osisRef ranges and cross-chapter ranges. It does not handle relative references, which some German modules use:

  • Kap 6,5: chapter 6, verse 5 of the book the note sits in.
  • A bare V. 12 or 6,5, read against the note's own book and chapter.

Until this lands, such references stay plain text in the note sheet (not links), never wrong links.

Plan: pass the note's Place as context to the parser; unit tests on synthetic strings plus a sweep over Elberfelder 1871 (skips without sword_dir()).

🤖 Generated with Claude Code

Follow-up to #13, split out by the owner on 2026-10-29 (#13 question 6: "later"). #13's reference parser (part 6b, `core/src/bible/refs.rs`) handles TSK's free-text references (`Ps 18:40-43; 78:68`), osisRef ranges and cross-chapter ranges. It does **not** handle relative references, which some German modules use: - `Kap 6,5`: chapter 6, verse 5 of the book the note sits in. - A bare `V. 12` or `6,5`, read against the note's own book and chapter. Until this lands, such references stay plain text in the note sheet (not links), never wrong links. Plan: pass the note's `Place` as context to the parser; unit tests on synthetic strings plus a sweep over Elberfelder 1871 (skips without `sword_dir()`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
schaefera/utStudyBIble#117
No description provided.