diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-11 12:32:13 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-12 12:14:39 -0400 |
| commit | 4e6774904ce811b074d8b3694b04dc5c1e8219e4 (patch) | |
| tree | 236137b4f7f36e683791ea4fa8d4f0f43e30945a /test/reference/abstraction/live-manual.es.ssp | |
| parent | ocda: ST_DocHas from a loaded abstraction (diff) | |
ocda: heading cross reference linking
The segment a cross reference to a heading lands on, gixed upstream in
ocda, where the field is created, rather than inferred by the loader.
A heading above level 4 opens no html segment of its own, so a link to
it has to land on the level 4 heading that follows. The build loop
cannot know that when it reads the heading, and says so in a comment of
its own: "for html segname need following lv4 not yet known". It
back-fills tag_assoc when the level 4 heading arrives (lv0to3_tags), and
the answer then lives only in that map.
tags.segment_lv4_is now holds it, resolved in a pass over the finished
head and body sections: walking backwards, the last level 4 heading seen
is the next one for everything above it, which is the same answer the
back-fill gives. Emitted in the .ssp only where it differs from
.segment_html_is, which is every heading at level 4 or below, so it is
sparse: 317 lines over the 35 document reference set, none removed.
Carried in the database as a column of its own, and read back by both
readers.
docHasFromAbstraction reads it instead of working it out. With that, and
on top of the two defect fixes, a document loaded from an artefact and
one parsed from markup agree:
key sets identical, all 35 documents
values 3 entries differ of some 30,000, all of them
_the_title, where the abstraction supplies an epub
segment the parser leaves unset
link targets all 1,651 agree, against 89 differing before any
of this work and 1 after the defect fixes alone
Format stays v1.1. That version is new in this same run of work and
nothing outside spine has read it, so this belongs in it rather than in
a bump of its own.
(assisted by Claude-Code)
Diffstat (limited to 'test/reference/abstraction/live-manual.es.ssp')
| -rw-r--r-- | test/reference/abstraction/live-manual.es.ssp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/reference/abstraction/live-manual.es.ssp b/test/reference/abstraction/live-manual.es.ssp index 25a1ef6..2fb8833 100644 --- a/test/reference/abstraction/live-manual.es.ssp +++ b/test/reference/abstraction/live-manual.es.ssp @@ -58,6 +58,7 @@ .segment_epub: _the_title .segment_html_is: _the_title .segment_epub_is: _the_title +.segment_lv4_is: about-manual .heading_ancestors_text: Manual de Live Systems||||||| | Manual de Live Systems @@ -1579,6 +1580,7 @@ .segment_epub: _part_1 .segment_html_is: _part_1 .segment_epub_is: _part_1 +.segment_lv4_is: about-manual .heading_ancestors_text: Manual de Live Systems|Acerca de este manual|||||| | Acerca de este manual @@ -1598,6 +1600,7 @@ .segment_epub: _part_2 .segment_html_is: _part_2 .segment_epub_is: _part_2 +.segment_lv4_is: about-manual .heading_ancestors_text: Manual de Live Systems|Acerca de este manual|||||| | Acerca de este manual @@ -2547,6 +2550,7 @@ .segment_epub: _part_3 .segment_html_is: _part_3 .segment_epub_is: _part_3 +.segment_lv4_is: about-project .heading_ancestors_text: Manual de Live Systems|Contribuir al ${project}|||||| | Contribuir al ${project} @@ -3056,6 +3060,7 @@ .segment_epub: _part_4 .segment_html_is: _part_4 .segment_epub_is: _part_4 +.segment_lv4_is: installation .heading_ancestors_text: Manual de Live Systems|Usuario|||||| | Usuario @@ -3076,6 +3081,7 @@ .segment_epub: _part_5 .segment_html_is: _part_5 .segment_epub_is: _part_5 +.segment_lv4_is: installation .heading_ancestors_text: Manual de Live Systems|Instalación|||||| | Instalación @@ -3793,6 +3799,7 @@ .segment_epub: _part_6 .segment_html_is: _part_6 .segment_epub_is: _part_6 +.segment_lv4_is: the-basics .heading_ancestors_text: Manual de Live Systems|Conceptos básicos|||||| | Conceptos básicos @@ -5744,6 +5751,7 @@ .segment_epub: _part_7 .segment_html_is: _part_7 .segment_epub_is: _part_7 +.segment_lv4_is: overview-of-tools .heading_ancestors_text: Manual de Live Systems|Descripción general de las herramientas|||||| | Descripción general de las herramientas @@ -6229,6 +6237,7 @@ .segment_epub: _part_8 .segment_html_is: _part_8 .segment_epub_is: _part_8 +.segment_lv4_is: managing-a-configuration .heading_ancestors_text: Manual de Live Systems|Gestionar una configuración|||||| | Gestionar una configuración @@ -6609,6 +6618,7 @@ .segment_epub: _part_9 .segment_html_is: _part_9 .segment_epub_is: _part_9 +.segment_lv4_is: customization-overview .heading_ancestors_text: Manual de Live Systems|Personalización de contenidos|||||| | Personalización de contenidos @@ -6818,6 +6828,7 @@ .segment_epub: _part_10 .segment_html_is: _part_10 .segment_epub_is: _part_10 +.segment_lv4_is: customizing-package-installation .heading_ancestors_text: Manual de Live Systems|Personalización de la instalación de paquetes|||||| | Personalización de la instalación de paquetes @@ -8676,6 +8687,7 @@ .segment_epub: _part_11 .segment_html_is: _part_11 .segment_epub_is: _part_11 +.segment_lv4_is: customizing-contents .heading_ancestors_text: Manual de Live Systems|Personalización de contenidos|||||| | Personalización de contenidos @@ -9140,6 +9152,7 @@ .segment_epub: _part_12 .segment_html_is: _part_12 .segment_epub_is: _part_12 +.segment_lv4_is: customizing-run-time-behaviours .heading_ancestors_text: Manual de Live Systems|Personalización del comportamiento en tiempo de ejecución.|||||| | Personalización del comportamiento en tiempo de ejecución. @@ -10298,6 +10311,7 @@ .segment_epub: _part_13 .segment_html_is: _part_13 .segment_epub_is: _part_13 +.segment_lv4_is: customizing-binary .heading_ancestors_text: Manual de Live Systems|Personalización de la imagen binaria|||||| | Personalización de la imagen binaria @@ -10519,6 +10533,7 @@ .segment_epub: _part_14 .segment_html_is: _part_14 .segment_epub_is: _part_14 +.segment_lv4_is: customizing-installer .heading_ancestors_text: Manual de Live Systems|Personalización del Instalador de Debian|||||| | Personalización del Instalador de Debian @@ -10817,6 +10832,7 @@ .segment_epub: _part_15 .segment_html_is: _part_15 .segment_epub_is: _part_15 +.segment_lv4_is: contributing-to-project .heading_ancestors_text: Manual de Live Systems|Proyecto|||||| | Proyecto @@ -10836,6 +10852,7 @@ .segment_epub: _part_16 .segment_html_is: _part_16 .segment_epub_is: _part_16 +.segment_lv4_is: contributing-to-project .heading_ancestors_text: Manual de Live Systems|Contribuir al proyecto|||||| | Contribuir al proyecto @@ -11224,6 +11241,7 @@ .segment_epub: _part_17 .segment_html_is: _part_17 .segment_epub_is: _part_17 +.segment_lv4_is: bugs .heading_ancestors_text: Manual de Live Systems|Cómo informar acerca de errores.|||||| | Cómo informar acerca de errores. @@ -12056,6 +12074,7 @@ .segment_epub: _part_18 .segment_html_is: _part_18 .segment_epub_is: _part_18 +.segment_lv4_is: coding-style .heading_ancestors_text: Manual de Live Systems|Estilo de código|||||| | Estilo de código @@ -12704,6 +12723,7 @@ .segment_epub: _part_19 .segment_html_is: _part_19 .segment_epub_is: _part_19 +.segment_lv4_is: procedures .heading_ancestors_text: Manual de Live Systems|Procedimientos|||||| | Procedimientos @@ -13044,6 +13064,7 @@ .segment_epub: _part_20 .segment_html_is: _part_20 .segment_epub_is: _part_20 +.segment_lv4_is: git-repositories .heading_ancestors_text: Manual de Live Systems|Repositorios Git|||||| | Repositorios Git @@ -13300,6 +13321,7 @@ .segment_epub: _part_21 .segment_html_is: _part_21 .segment_epub_is: _part_21 +.segment_lv4_is: examples .heading_ancestors_text: Manual de Live Systems|Ejemplos|||||| | Ejemplos @@ -13319,6 +13341,7 @@ .segment_epub: _part_22 .segment_html_is: _part_22 .segment_epub_is: _part_22 +.segment_lv4_is: examples .heading_ancestors_text: Manual de Live Systems|Ejemplos|||||| | Ejemplos @@ -14543,6 +14566,7 @@ .segment_epub: _part_23 .segment_html_is: _part_23 .segment_epub_is: _part_23 +.segment_lv4_is: style-guide .heading_ancestors_text: Manual de Live Systems|Apéndice|||||| | Apéndice @@ -14562,6 +14586,7 @@ .segment_epub: _part_24 .segment_html_is: _part_24 .segment_epub_is: _part_24 +.segment_lv4_is: style-guide .heading_ancestors_text: Manual de Live Systems|Style guide|||||| | Style guide |
