Note markers at the word they belong to, with a setting to keep them at the verse end #140
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
schaefera/utStudyBIble#140
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the owner's #13 phone check: in KJV Prov 11:15 both note markers sit at the end of the verse, though the notes are on "smart" and "suretiship".
Cause: the module puts both notes at the verse end, each naming its word in
<catchWord>. diatheke shows them at the end too, so we match the module.Owner's decision: a setting to choose between "keep all note markers at the end of the verse" and "put note markers on the exact word(s) they are linked to" (AndBible does the latter).
Plan:
No mockup: the markers keep their look and only their place changes, and the setting reuses the Display page's Switch row.
This is planned for v0.2 at the owner's request. An implementation was started and then stopped before anything was pushed. This is the design for when it is picked up:
sword/src/filter/notes.rs,osis.rs):Notegetscatch_word: Option<String>, the text of<catchWord>with its whitespace collapsed (Nonewhen missing or empty, and alwaysNonefor ThML).PlacedNote.atkeeps the module's place, so the golden tests stay unchanged.core/src/bible/note.rs): a method onPlacedNote. Given the verse's display text, it returns the end byte of the last whole-word match of the catch word that ends at or beforeat.at.NOTES_AT_WORD(notes.at_word, default"1") incore/src/settings.rs, carried inOptionsthe wayrunningis.Reader::readuses the moved place, and the marks are sorted by place ifrich_markedneeds that. Changing the setting re-renders at the same top verse, asRUNNING_TEXTdoes.notesAtWordproperty andsetNotesAtWord, likerunningText.DisplaySettings.qml, a Switch "Note markers at their words" after "Running text", with the line "Off: at the end of the verse, where the Bible has them".notes-at-wordcase, with the setting on and off.