aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/reference/abstraction/democratizing_innovation.eric_von_hippel.en.ssp
Commit message (Collapse)AuthorAgeFilesLines
* .ssp: three additional fields the writers readRalph Amissah2026-09-091-0/+1388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With these the .ssp carries every field the output writers read. The two that were missing were both read by the sqlite search writer, and one of them is needed by anything that wants to know where an object sits in a segmented output: - .segment_html_is / .segment_epub_is (tags.html_segment_anchor_tag_is, epub_segment_anchor_tag_is), the segment an object *belongs to*, as against .segment (in_segment_html), which is the segment a heading *opens* and is set on headings only: 32 of 36 headings and 0 of 109 paragraphs in the autonomous contract. Without them a reader cannot tell which segment a paragraph is in. - .identifier for non-heading objects, the "a"~N series given to objects whose number is suppressed. A heading already carried it on its declaration line; every other object now carries it as a property, on the same condition, that it differs from the ocn. The same two segment fields are added to the abstraction db (segment_html_is, segment_epub_is) and to the cross-check test, so the two serialisations stay level. .ssp reference regenerated output run (--text --latex --epub --html --curate) byte identical to before the change, as it must be since no output writer reads either artefact. (assisted by Claude-Code)
* test-abstraction-ssp re-generatedRalph Amissah2026-09-031-652/+529
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several structure fields (now) computed in ocda do not yet have a consumer outside the `.ssp` writer (which shares ocda fields in a PEG parsable .ssp file). Their addition is to facilitate future output processing: each representing document structure information that document output generators of various formats, such as html, epub, latex, sql and any DOM based / tree-graph (node based hierarchical) representations, previously had to, or would have to, work out for themselves based on what ocda offered (without them). Computing them (upstream) in ocda once and sharing them (and providing the .ssp), means that: - future output formats can start from prepared structure rather than deriving it; - existing generators can be simplified to consume them instead of re-deriving; - a (dlang) generator could in principle be populated either from ocda directly or from a `.ssp` file; - `.ssp` being PEG parsable puts the same prepared structure in reach of implementations in other languages. `test/test-abstraction-ssp.sh` the `.ssp` reference regression test is used to catch regression in ocda including these as yet unused fields, which otherwise would remain unseen until used by other output-format consumers. This also is the reason issues now made easily visible and are being addressed (without issue to existing output generators). (assisted by Claude-Code)
* test-abstraction-ssp re-generated, abstraction fixRalph Amissah2026-08-301-40/+4773
| | | | | test-abstraction-ssp re-generated: document abstraction (ocda) document structure representation fixes (verify)
* test build .ssp requires --serial (--no-parallel) runRalph Amissah2026-08-281-48/+48
|
* test build .ssp requires --abstraction to be runRalph Amissah2026-08-281-11/+65
|
* run test-abstraction-ssp.sh updateRalph Amissah2026-08-281-7/+12
| | | | | generrate new reference set of .ssp test-abstraction-ssp.sh --generate
* digest (sha256) for document root heading (title)Ralph Amissah2026-07-311-0/+1
| | | | | | corrects an omission this hould have been included to start with reference tests texts regenerated
* add .ssp regression test script and reference filesRalph Amissah2026-04-221-0/+11467
test/test-abstraction-ssp.sh: shell script that generates .ssp files for all sample documents and diffs against committed reference files in test/reference/abstraction/. Usage: ./test/test-abstraction-ssp.sh --generate ./bin/spine-ldc ./test/test-abstraction-ssp.sh ./bin/spine-ldc Exits 0 if all .ssp files match, 1 if differences found. Reports changed, missing, and new files. test/reference/abstraction/: 35 reference .ssp files generated from the current abstraction, covering all sample documents including 9-language live-manual. Co-Authored-By: Anthropic Claude Opus 4.6 (1M context)