aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/sdp.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-11-06 09:12:06 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitf9257293164f7681243e35b9608a4cb6c2d3e16b (patch)
tree74e8887aaccec6d0fd999c24e6a6666eabae685a /org/sdp.org
parentsqlite document db discrete & collection, started (diff)
Diffstat (limited to 'org/sdp.org')
-rw-r--r--org/sdp.org28
1 files changed, 26 insertions, 2 deletions
diff --git a/org/sdp.org b/org/sdp.org
index 74deb39..6649d88 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -110,11 +110,11 @@ unittest {
#+NAME: imports_sdp
#+BEGIN_SRC d
-import sdp.meta;
import
std.getopt,
std.process;
import
+ sdp.meta,
sdp.meta.metadoc_summary,
sdp.meta.metadoc_from_src,
sdp.meta.conf_make_meta,
@@ -496,10 +496,16 @@ template SiSUabstraction() {
#+BEGIN_SRC d
/+ ↓ read file (filename with path) +/
/+ ↓ file tuple of header and content +/
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step1 commence → (get document header & body & insert files)");
+}
auto _header_body_inserts =
SiSUrawMarkupContent!()(fn_src);
static assert(!isTypeTuple!(_header_body_inserts));
static assert(_header_body_inserts.length==3);
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step1 complete");
+}
debug(header_and_body) {
writeln(header);
writeln(_header_body_inserts.length);
@@ -523,8 +529,14 @@ debug(header_and_body) {
#+NAME: sdp_each_file_do_split_sisu_markup_file_header_into_make_and_meta
#+BEGIN_SRC d
/+ ↓ split header into make and meta +/
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step2 commence → (doc header: make & meta as struct)");
+}
auto _make_and_meta_struct =
docHeaderMakeAndMetaTupExtractAndConvertToStruct!()(conf_files_composite_make, _header_body_inserts[headBody.header]); // breakage ...
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step2 complete");
+}
#+END_SRC
** 3. _document abstraction, tuple_ (pre-output-processing) :processing:
@@ -544,6 +556,9 @@ auto _make_and_meta_struct =
#+NAME: sdp_each_file_do_document_abstraction
#+BEGIN_SRC d
/+ ↓ document abstraction: process document, return abstraction as tuple +/
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step3 commence → (document abstraction (da); da keys; segnames; doc_matters)");
+}
auto da = SiSUdocAbstraction!()(
_header_body_inserts[headBody.body_content],
_make_and_meta_struct,
@@ -556,6 +571,9 @@ auto _document_section_keys_sequenced = da[docAbst.section_keys];
string[] _doc_html_segnames = da[docAbst.segnames];
string[] _doc_epub_segnames_0_4 = da[docAbst.segnames_0_4];
auto _images = da[docAbst.images];
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step3 complete");
+}
#+END_SRC
** 4. _document matters_ (doc info gathered, various sources)
@@ -565,6 +583,9 @@ auto _images = da[docAbst.images];
#+NAME: sdp_each_file_do_document_matters
#+BEGIN_SRC d
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step4 commence → (doc_matters)");
+}
struct DocumentMatters {
auto keys_seq() {
/+ contains .seg & .scroll sequences +/
@@ -619,9 +640,12 @@ struct DocumentMatters {
}
}
auto doc_matters = DocumentMatters();
+debug(steps) {
+ writeln(__LINE__, ":", __FILE__, ": step4 complete");
+}
#+END_SRC
-* 3. document abstraction _summary_ :module:sdp:metadoc_summary:
+* 3. document abstraction _summary_ :module:sdp:metadoc_summary:
** 0. module template
#+BEGIN_SRC d :tangle ../src/sdp/meta/metadoc_summary.d