aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/sdp.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-12-29 20:36:41 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit249e8d2d61f3650d934582b65200ca8fa0b47495 (patch)
tree0d03750aa9a4897c0277d85f49a9505f03b1d1c3 /org/sdp.org
parentnaming (diff)
dom structure, levels marked up & collapsed (use e.g. in epub toc)doc-reform_v0.0.10
Diffstat (limited to 'org/sdp.org')
-rw-r--r--org/sdp.org52
1 files changed, 21 insertions, 31 deletions
diff --git a/org/sdp.org b/org/sdp.org
index 274c285..f8734be 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -24,7 +24,7 @@ struct Version {
int minor;
int patch;
}
-enum ver = Version(0, 10, 0);
+enum ver = Version(0, 10, 1);
#+END_SRC
** TODO sdp src/sdp.d :sdp.d:
@@ -137,6 +137,7 @@ import sdlang; // sdlang.d
#+END_SRC
***** notes
+
sdlang.parser, // sdlang/parser.d
sdlang.exceptions;
@@ -430,50 +431,39 @@ auto doc_html_segnames = t[1];
#+NAME: sdp_each_file_do_document_abstraction
#+BEGIN_SRC d
string[][string] document_section_keys_sequenced = [
- "seg": [
- "head",
- "toc_seg",
- "body",
- ],
- "scroll": [
- "head",
- "toc_scroll",
- "body",
- ]
+ "seg": ["head", "toc_seg", "body",],
+ "scroll": ["head", "toc_scroll", "body",]
];
if (doc_ao_contents["endnotes_seg"].length > 1) {
- document_section_keys_sequenced["seg"] =
- document_section_keys_sequenced["seg"] ~= "endnotes_seg";
+ document_section_keys_sequenced["seg"] ~= "endnotes_seg";
}
if (doc_ao_contents["endnotes_scroll"].length > 1) {
- document_section_keys_sequenced["scroll"] =
- document_section_keys_sequenced["scroll"] ~= "endnotes_scroll";
+ document_section_keys_sequenced["scroll"] ~= "endnotes_scroll";
}
if (doc_ao_contents["glossary"].length > 1) {
- document_section_keys_sequenced["seg"] =
- document_section_keys_sequenced["seg"] ~= "glossary";
- document_section_keys_sequenced["scroll"] =
- document_section_keys_sequenced["scroll"] ~= "glossary";
+ document_section_keys_sequenced["seg"] ~= "glossary";
+ document_section_keys_sequenced["scroll"] ~= "glossary";
}
if (doc_ao_contents["bibliography"].length > 1) {
- document_section_keys_sequenced["seg"] =
- document_section_keys_sequenced["seg"] ~= "bibliography";
- document_section_keys_sequenced["scroll"] =
- document_section_keys_sequenced["scroll"] ~= "bibliography";
+ document_section_keys_sequenced["seg"] ~= "bibliography";
+ document_section_keys_sequenced["scroll"] ~= "bibliography";
}
if (doc_ao_contents["bookindex_seg"].length > 1) {
- document_section_keys_sequenced["seg"] =
- document_section_keys_sequenced["seg"] ~= "bookindex_seg";
+ document_section_keys_sequenced["seg"] ~= "bookindex_seg";
}
if (doc_ao_contents["bookindex_scroll"].length > 1) {
- document_section_keys_sequenced["scroll"] =
- document_section_keys_sequenced["scroll"] ~= "bookindex_scroll";
+ document_section_keys_sequenced["scroll"] ~= "bookindex_scroll";
}
if (doc_ao_contents["blurb"].length > 1) {
- document_section_keys_sequenced["seg"] =
- document_section_keys_sequenced["seg"] ~= "blurb";
- document_section_keys_sequenced["scroll"] =
- document_section_keys_sequenced["scroll"] ~= "blurb";
+ document_section_keys_sequenced["seg"] ~= "blurb";
+ document_section_keys_sequenced["scroll"] ~= "blurb";
+}
+if ((opt_action_bool["html"])
+|| (opt_action_bool["html_scroll"])
+|| (opt_action_bool["html_seg"])
+|| (opt_action_bool["epub"])) {
+ document_section_keys_sequenced["seg"] ~= "tail";
+ document_section_keys_sequenced["scroll"] ~= "tail";
}
#+END_SRC