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 /src/sisudoc/ocda/meta/metadoc_object_setter.d | |
| parent | digest (sha256) for document root heading (title) (diff) | |
digests (sha256) a revisit
Diffstat (limited to 'src/sisudoc/ocda/meta/metadoc_object_setter.d')
| -rw-r--r-- | src/sisudoc/ocda/meta/metadoc_object_setter.d | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sisudoc/ocda/meta/metadoc_object_setter.d b/src/sisudoc/ocda/meta/metadoc_object_setter.d index c5c8b1b..718ce55 100644 --- a/src/sisudoc/ocda/meta/metadoc_object_setter.d +++ b/src/sisudoc/ocda/meta/metadoc_object_setter.d @@ -101,6 +101,11 @@ template ObjectSetter() { string[] lev4_subtoc = []; string[] anchor_tags = []; } + 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 @@ -119,7 +124,7 @@ template ObjectSetter() { 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 { @@ -174,7 +179,7 @@ template ObjectSetter() { int parent_ocn = 0; int last_descendant_ocn = 0; int[] children_headings; - ubyte[32] sha256; + SHA_256_Hashes_ sha256; } struct ObjGenericComposite { string text = ""; |
