diff options
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 |
