aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/ocda/meta/ocn_align.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-30 16:18:59 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-30 23:14:23 -0400
commit993a3f655359f98dc26d3d3222e07792e2ccddf7 (patch)
tree1633a8183b2affec4a2951c8357ab89e9073bd25 /src/sisudoc/ocda/meta/ocn_align.d
parentsearch database: show all included notes (diff)
abstraction 2.1: a poem states its object range
- A poem is a container of verse, and stores its range of verse ocn, - its verse are the citable units with ocn. - A note in the last verse of a poem previously was not gathered into the endnotes section, this now is fixed Format 2.0 -> 2.1: the property is an addition, the poem is not a citable object (but contans a range of objects), its verse are (individual citable objects), and every reader checks the major version. A 2.0 database reads as having no ranges. (assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/ocda/meta/ocn_align.d')
-rw-r--r--src/sisudoc/ocda/meta/ocn_align.d9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sisudoc/ocda/meta/ocn_align.d b/src/sisudoc/ocda/meta/ocn_align.d
index 9f9fdaf..e93f12a 100644
--- a/src/sisudoc/ocda/meta/ocn_align.d
+++ b/src/sisudoc/ocda/meta/ocn_align.d
@@ -163,10 +163,11 @@ template spineOcnAlign() {
foreach (obj; doc.abstraction[section]) {
int _ocn = obj.metainfo.ocn.to!int;
if (_ocn <= 0) { continue; }
- /+ ↓ first in document order wins. An ocn is not unique: a poem and
- its first verse share one, by design, so the same number names
- two objects and the first of them is the one both languages
- will have reached first.
+ /+ ↓ first in document order wins. Until format spec:2.1 a (verse) ocn
+ was not unique: a poem carried the ocn of its last verse, so the
+ same number named two objects. A poem now carries 0 and is passed
+ over above; the rule stays, and costs nothing, for an artefact
+ written before spec:2.1.
+/
if (_ocn !in _p.kinds) { _p.kinds[_ocn] = _kindOf(obj); }
_p.ocn_count += 1;