diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-12 22:42:06 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-14 12:18:49 -0400 |
| commit | c959735f21b3ddac6932bc9e8862d77a4421f133 (patch) | |
| tree | 342fea358d2ae0fd68ce0f250daef42e0e3632a6 /org/out_sqlite.org | |
| parent | epub: mimetype entry comes first in the archive (diff) | |
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)
Diffstat (limited to 'org/out_sqlite.org')
| -rw-r--r-- | org/out_sqlite.org | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/org/out_sqlite.org b/org/out_sqlite.org index df9adbb..2895b72 100644 --- a/org/out_sqlite.org +++ b/org/out_sqlite.org @@ -81,10 +81,11 @@ long _metadata_tid_lastrowid; #+NAME: sqlite_schema #+HEADER: :noweb yes #+BEGIN_SRC d -/+ ↓ 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; +/+ ↓ 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 = <<sqlite_collection_search_db_schema_version>>; /+ ↓ tally of failed sqlite statements, shared: sqlite output may run in parallel +/ private shared int _sqlite_failure_tally = 0; /+ ↓ schema version mismatch is reported once per run, not once per document +/ @@ -725,7 +726,7 @@ string munge_html(M,O)( .replaceAll(rgx.inline_subscript, "<sub>$1</sub>") .replaceAll(rgx.inline_strike, "<del>$1</del>") .replaceAll(rgx.inline_insert, "<ins>$1</ins>") - .replaceAll(rgx.inline_mono, "<tt>$1</tt>") + .replaceAll(rgx.inline_mono, "<code>$1</code>") .replaceAll(rgx.inline_cite, "<cite>$1</cite>"); return _txt; } @@ -789,7 +790,7 @@ string html_font_face(string _txt){ .replaceAll(rgx.inline_subscript, "<sub>$1</sub>") .replaceAll(rgx.inline_strike, "<del>$1</del>") .replaceAll(rgx.inline_insert, "<ins>$1</ins>") - .replaceAll(rgx.inline_mono, "<tt>$1</tt>") + .replaceAll(rgx.inline_mono, "<code>$1</code>") .replaceAll(rgx.inline_cite, "<cite>$1</cite>"); return _txt; } @@ -878,7 +879,7 @@ string inline_images(M,O)( rgx.inline_image, ("$1<img src=\"" ~ _img_pth - ~ "$3\" width=\"$4\" height=\"$5\" naturalsizeflag=\"0\" align=\"bottom\" border=\"0\" /> $6")); + ~ "$3\" width=\"$4\" height=\"$5\" /> $6")); } return _txt; } @@ -1124,7 +1125,7 @@ string html_para(M,O)( string _txt = munge_html(doc_matters, obj); _txt = (obj.attrib.bullet) ? ("●  " ~ _txt) : _txt; _txt = inline_markup(doc_matters, obj, _txt); - string o = format(q"┃<p class="%s" indent="h%si%s"> + string o = format(q"┃<p class="%s" data-indent="h%si%s"> %s </p>┃", obj.metainfo.is_a, @@ -2225,6 +2226,14 @@ VALUES ( #+END_SRC * org includes + +* sqlite collection search db schema version + +#+NAME: sqlite_collection_search_db_schema_version +#+BEGIN_SRC org +<<./sisudoc_spine_version_info_and_doc_header_including_copyright_and_license.org:sqlite_collection_search_db_schema_version()>> +#+END_SRC + ** project version #+NAME: spine_version |
