diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-30 14:57:31 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-30 22:34:17 -0400 |
| commit | 71bb62a0b854e87926c39d6a91ef06993713457e (patch) | |
| tree | 1968ac25b86687544b93314c10e39997ea9dbf43 /src/sisudoc | |
| parent | notes: editor's notes, ~[* ]~ & ~[+ ]~, as series (diff) | |
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)
Diffstat (limited to 'src/sisudoc')
| -rw-r--r-- | src/sisudoc/outputs/io_out/sqlite_collection_db.d | 12 |
1 files changed, 9 insertions, 3 deletions
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 ~= "<p class=\"endnote\">" ~ "<sup>" ~ m.captures["num"] ~ ".</sup>" ~ m.captures["note"] @@ -650,7 +654,7 @@ template SQLiteFormatAndLoadObject() { } _txt = replaceAll!(m => (" " ~ "<sup>" ~ m["num"] ~ "</sup>")) - (_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"┃<p class="%s"> %s </p>┃", @@ -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"┃<p class="%s">%s</p>┃", obj.metainfo.is_a, _txt |
