From c959735f21b3ddac6932bc9e8862d77a4421f133 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 12 Sep 2026 22:42:06 -0400 Subject: epub, html, db: use of elements & attributes, fix fixed, four things used that XHTML does not have. (search db sisudoc-spine-search-cgi results share styling) (assisted by Claude-Code) --- src/sisudoc/outputs/io_out/sqlite_collection_db.d | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/sisudoc/outputs/io_out/sqlite_collection_db.d') diff --git a/src/sisudoc/outputs/io_out/sqlite_collection_db.d b/src/sisudoc/outputs/io_out/sqlite_collection_db.d index 727c844..d5b2dcf 100644 --- a/src/sisudoc/outputs/io_out/sqlite_collection_db.d +++ b/src/sisudoc/outputs/io_out/sqlite_collection_db.d @@ -64,9 +64,10 @@ static auto rgx = RgxO(); static auto rgx_xhtml = RgxXHTML(); static auto mkup = InlineMarkup(); long _metadata_tid_lastrowid; -/+ ↓ sqlite db schema version, stamped into the db as PRAGMA user_version +/ -/+ bump whenever the table or index definitions in this module change, and +/ -/+ bump the matching expectation in sisudoc-spine-search-cgi +/ +/+ ↓ sqlite db schema version, stamped into the db as PRAGMA user_version + bump whenever the table or index definitions in this module change, and + bump the matching expectation in sisudoc-spine-search-cgi + +/ enum sqlite_db_schema_version = 1; /+ ↓ tally of failed sqlite statements, shared: sqlite output may run in parallel +/ private shared int _sqlite_failure_tally = 0; @@ -368,7 +369,7 @@ template SQLiteFormatAndLoadObject() { .replaceAll(rgx.inline_subscript, "$1") .replaceAll(rgx.inline_strike, "$1") .replaceAll(rgx.inline_insert, "$1") - .replaceAll(rgx.inline_mono, "$1") + .replaceAll(rgx.inline_mono, "$1") .replaceAll(rgx.inline_cite, "$1"); return _txt; } @@ -414,7 +415,7 @@ template SQLiteFormatAndLoadObject() { .replaceAll(rgx.inline_subscript, "$1") .replaceAll(rgx.inline_strike, "$1") .replaceAll(rgx.inline_insert, "$1") - .replaceAll(rgx.inline_mono, "$1") + .replaceAll(rgx.inline_mono, "$1") .replaceAll(rgx.inline_cite, "$1"); return _txt; } @@ -490,7 +491,7 @@ template SQLiteFormatAndLoadObject() { rgx.inline_image, ("$1 $6")); + ~ "$3\" width=\"$4\" height=\"$5\" /> $6")); } return _txt; } @@ -681,7 +682,7 @@ template SQLiteFormatAndLoadObject() { string _txt = munge_html(doc_matters, obj); _txt = (obj.attrib.bullet) ? ("●  " ~ _txt) : _txt; _txt = inline_markup(doc_matters, obj, _txt); - string o = format(q"┃

+ string o = format(q"┃

%s

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