From 71bb62a0b854e87926c39d6a91ef06993713457e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 30 Sep 2026 14:57:31 -0400 Subject: search database: show all included notes search database: show notes other than regular numbered (foot)notes. make sure all types of notes for all object types set the objects has.inline_notes_reg flag required for them to be rendered search results' html (doc_objects.body) show notes only where an object's has.inline_notes_reg flag is set, which occurred for numbered notes only - only numbered notes, regular footnotes were included - and notes in some objects were omitted (quotes and verse) (assisted by Claude-Code) --- src/sisudoc/outputs/io_out/sqlite_collection_db.d | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sisudoc/outputs/io_out/sqlite_collection_db.d b/src/sisudoc/outputs/io_out/sqlite_collection_db.d index 2a7fcd7..91bd8ab 100644 --- a/src/sisudoc/outputs/io_out/sqlite_collection_db.d +++ b/src/sisudoc/outputs/io_out/sqlite_collection_db.d @@ -640,9 +640,13 @@ template SQLiteFormatAndLoadObject() { const O obj, string _txt, ) { - if (obj.has.inline_notes_reg) { + /+ ↓ every note the text holds, of every series: numbered (1, 2 ...), special + (*, **), and the editor's (*1, +1 ...). Checks whether text contains any + notes, the pattern every other writer now uses. + +/ + if (_txt.match(rgx.inline_notes_al_all_note)) { string[] _endnotes; - foreach(m; _txt.matchAll(rgx.inline_notes_al_regular_number_note)) { + foreach(m; _txt.matchAll(rgx.inline_notes_al_all_note)) { _endnotes ~= "

" ~ "" ~ m.captures["num"] ~ "." ~ m.captures["note"] @@ -650,7 +654,7 @@ template SQLiteFormatAndLoadObject() { } _txt = replaceAll!(m => (" " ~ "" ~ m["num"] ~ "")) - (_txt, rgx.inline_notes_al_regular_number_note) + (_txt, rgx.inline_notes_al_all_note) ~ _endnotes.join("\n"); } debug(markup_endnotes) { @@ -727,6 +731,7 @@ template SQLiteFormatAndLoadObject() { assert(obj.metainfo.is_of_type == "block"); assert(obj.metainfo.is_a == "quote"); string _txt = munge_html(doc_matters, obj); + _txt = inline_markup(doc_matters, obj, _txt); string o = format(q"┃

%s

┃", @@ -779,6 +784,7 @@ template SQLiteFormatAndLoadObject() { assert(obj.metainfo.is_of_type == "block"); assert(obj.metainfo.is_a == "verse"); string _txt = munge_html(doc_matters, obj); + _txt = inline_markup(doc_matters, obj, _txt); string o = format(q"┃

%s

┃", obj.metainfo.is_a, _txt -- cgit v1.2.3