/* * scripture-scan.js — work out which scripture a ProPresenter slide is about. * * Used by the ProPresenter Sync tab (propresenter-sync.js). Three sources on a slide, tried in order, * first hit wins (PDR §04): the slide LABEL, then the slide NOTES, then the DISPLAY TEXT itself. * * parseField(text) — the whole field IS a reference ("John 3:16 (NIV)", "1 Cor 13:4–7", "Ps 23", * "vv. 4-7 Romans 8"), decorations stripped. Falls back to scanText. * scanText(text) — the FIRST "Book chapter:verse(-verse)" inside free prose ("…as it says in * Rev. 21:4, God will…"). Needs the colon (or "Heb 11.4"), so a chapter-only * mention in a sentence never fires — too ambiguous on stage. * * Book names go through window.BibleBooks (book-aliases.js), which refuses to guess between two books. * One extra rule here: a one/two-letter alias found in prose ("is", "am", "re") only counts when it is * capitalised in the slide ("Is 53:5" yes, "the service is 3:16 long" no). * * Classic script (window.ScriptureScan), like book-aliases.js, so a plain