diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-07-30 23:24:06 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-07-31 14:48:09 -0400 |
| commit | 569a22bdb0841f360af97683ded5006329a14b28 (patch) | |
| tree | 5d8969d9c269792468219af492d068dfcb7ea720 /org/ocda_obj_setter.org | |
| parent | digest (sha256) for document root heading (title) (diff) | |
digests (sha256) a revisit
Diffstat (limited to 'org/ocda_obj_setter.org')
| -rw-r--r-- | org/ocda_obj_setter.org | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/org/ocda_obj_setter.org b/org/ocda_obj_setter.org index 3427c6b..d26ed4c 100644 --- a/org/ocda_obj_setter.org +++ b/org/ocda_obj_setter.org @@ -49,6 +49,11 @@ template ObjectSetter() { #+NAME: meta_structs_docObjectMeta #+BEGIN_SRC d +struct SHA_256_Hashes_ { + char[] summary; + ubyte[32] text; // both text and inline footnotes; consider additionally separating text and footnotes + ubyte[32][string] images; +} struct DocObj_MetaInfo_ { string is_of_part = ""; // frontmatter, body, backmatter string is_of_section = ""; // toc, body, glossary, biography, book index, blurb @@ -67,7 +72,7 @@ struct DocObj_MetaInfo_ { int o_n_bibliography = 0; int o_n_book_index = 0; int o_n_blurb = 0; - string object_number_substantive() const @property { + string object_number_substantive() const @property { return (o_n_substantive == 0) ? "" : o_n_substantive.to!string; } string object_number_non_substantive() const @property { @@ -122,7 +127,7 @@ struct DocObj_MetaInfo_ { int parent_ocn = 0; int last_descendant_ocn = 0; int[] children_headings; - ubyte[32] sha256; + SHA_256_Hashes_ sha256; } #+END_SRC |
