diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-11 13:57:47 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-12 12:14:39 -0400 |
| commit | f41bf1cc525c70cced764a5e4df70d499d82f9c9 (patch) | |
| tree | 5825a95d525fcaa332bd378c1493bbd4a14613a0 /org/ocda.org | |
| parent | ocda: one constructor for doc_matters (diff) | |
spine: process a document from .ocda.db or .ssp
Process a document from its .ocda.db or .ssp abstraction. A .ssp or a
.ocda.db given as an argument is now a document like any other: read
rather than parsed, and handed to the output writers as the same doc
they already take.
The 35 document sample collection built from its .ssp files is byte
identical to the same collection built from markup: 1457 files, no
differences.
Three things had to be rebuilt rather than read, all of them a value
parsed rather than a structure derived:
- classify_topic_register_arr and its expanded twin. The split is not a
plain one, so the rule moved to sisudoc.ocda.meta.topic_register and
both the yaml reader and this one call it.
- creator_author_arr, which is creator.author split on the ", " it was
joined with.
- title_sub, a copy of title_subtitle made where the header is read, and
what epub3 puts in dc:title id="subtitle".
Fixed ordering bug found by the acceptance test. A heading's own anchor
can be a bare number taken from its text and this can collide with the
ocn of an unrelated object. Whole output comparison found that before
the fix there was one wrong link in one epub's table of contents.
From a .ocda.db, 1446 of 1457 files are identical. The 11 that are not
are the images: a database carries its own image blobs and nothing yet
extracts them, so the five sisu_markup images are not copied and the
epub that embeds them differs. That is the next step and is not a defect
in this one.
--source and --pod2 are refused with a warning rather than half
done, no artefact carrying the markup.
(assisted by Claude-Code)
Diffstat (limited to 'org/ocda.org')
| -rw-r--r-- | org/ocda.org | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org/ocda.org b/org/ocda.org index db24139..ee490f4 100644 --- a/org/ocda.org +++ b/org/ocda.org @@ -97,6 +97,7 @@ public import sisudoc.ocda.abstraction.ssp_in; // spineAbstractionRead (.ssp public import sisudoc.ocda.abstraction.db_in; // spineAbstractionDbRead (.db back in) public import sisudoc.ocda.abstraction.load; // spineAbstractionLoad (one way in) public import sisudoc.ocda.abstraction.doc_has; // spineDocHasFromAbstraction (ST_DocHas from a loaded abstraction) +public import sisudoc.ocda.abstraction.doc_from_artefact; // spineDocFromArtefact (a doc, from a .ssp or a .ocda.db) #+END_SRC ** _module template_ :module:metadoc_from_src: |
