From a14ef39dc207955de13ba2b141a69236e356a521 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 29 Sep 2026 19:36:53 -0400 Subject: D: what a source holds, and what a database holds unread ocda.inventory answers two questions about the file rather than the document. languages(path), for every form alike: the languages in the manifest's order (which every .ssp records in @source languages), each with the markup it was made from and the sha256 of its .ssp - stored by the database, taken from the bytes for a .ssp or a pod, and the same. carried(path), for a .ocda.db: what it holds besides the abstraction, by role and storage. And the database loader now counts what it holds and the model does not. The text loader meets every property line and counts those it does not keep; this one asks for columns by name and so never saw the others, and reported that it had understood everything, which is the silence the count exists to prevent. It counts them on the conditions under which the .ssp writes the same property, and the report is now the same from a .ssp, a .ocda.db and a .sisupod: 36 of 36. The pod loader's archive and language-name helpers become package visible for the inventory. (assisted by Claude-Code) --- dlang/src/ocda/load_pod.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dlang/src/ocda/load_pod.d') diff --git a/dlang/src/ocda/load_pod.d b/dlang/src/ocda/load_pod.d index 75993be..8f59fe3 100644 --- a/dlang/src/ocda/load_pod.d +++ b/dlang/src/ocda/load_pod.d @@ -92,7 +92,7 @@ OcdaDocument loadPodFile(string path, string lang = "") { The bytes decide, not the name: a .sisupod is a zstd frame and a .zip is not, and a file misnamed either way still reads. +/ -private ubyte[] archiveBytes(string path) { +package ubyte[] archiveBytes(string path) { auto bytes = cast(ubyte[]) read(path); return zstdIsFrame(bytes) ? zstdDecompress(bytes, max_pod_size) @@ -100,7 +100,7 @@ private ubyte[] archiveBytes(string path) { } /+ ↓ ..ssp -> +/ -private string langOfSspName(string name) { +package string langOfSspName(string name) { if (!name.endsWith(".ssp")) { return ""; } string stem = name[0 .. $ - 4]; auto dot = stem.lastIndexOf('.'); -- cgit v1.2.3