aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/meta_abstraction.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-09-10 18:15:02 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commite95c49b76f4ac7bf72c383ee43a0567dfcbf1603 (patch)
treeb3aec9058f69be0047bb526052f8deefb5d97463 /org/meta_abstraction.org
parentmaker, subprojects arrange, minor (diff)
0.1.0 renamed doc-reform, doc_reform (& rad)
- from sdp
Diffstat (limited to 'org/meta_abstraction.org')
-rw-r--r--org/meta_abstraction.org51
1 files changed, 25 insertions, 26 deletions
diff --git a/org/meta_abstraction.org b/org/meta_abstraction.org
index 87782d3..50a0e78 100644
--- a/org/meta_abstraction.org
+++ b/org/meta_abstraction.org
@@ -1,8 +1,8 @@
-#+TITLE: sdp document abstraction
+#+TITLE: doc_reform document abstraction
+#+DESCRIPTION: documents - structuring, publishing in multiple formats & search
+#+FILETAGS: :doc_reform:abstraction:
#+AUTHOR: Ralph Amissah
#+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]]
-#+DESCRIPTION: documents - structuring, publishing in multiple formats & search
-#+KEYWORDS
#+LANGUAGE: en
#+STARTUP: indent content
#+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t
@@ -11,23 +11,22 @@
#+PROPERTY: header-args :padline no :exports code :noweb yes
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
-#+FILETAGS: :sdp:rel:meta:
-#+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n)
+#+TAGS: assert(a) class(c) debug(d) mixin(m) doc_reform(s) tangle(T) template(t) WEB(W) noexport(n)
-- [[./sdp.org][sdp]] [[./][org/]]
+- [[./doc_reform.org][doc_reform]] [[./][org/]]
-* 1. Document Abstraction :module:sdp:metadoc_from_src:
+* 1. Document Abstraction :module:doc_reform:metadoc_from_src:
Process markup document, create document abstraction.
** 0. module template
-#+BEGIN_SRC d :tangle ../src/sdp/meta/metadoc_from_src.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/meta/metadoc_from_src.d
/++
document abstraction:
abstraction of sisu markup for downstream processing
metadoc_from_src.d
+/
-module sdp.meta.metadoc_from_src;
+module doc_reform.meta.metadoc_from_src;
template SiSUdocAbstraction() {
/+ ↓ abstraction imports +/
<<abs_top_imports>>
@@ -150,7 +149,7 @@ template SiSUdocAbstraction() {
#+name: abs_top_imports
#+BEGIN_SRC d
-import sdp.meta;
+import doc_reform.meta;
import
std.algorithm,
std.container,
@@ -158,9 +157,9 @@ import
std.json,
std.path;
import
- sdp.meta.defaults,
- sdp.meta.object_setter,
- sdp.meta.rgx;
+ doc_reform.meta.defaults,
+ doc_reform.meta.object_setter,
+ doc_reform.meta.rgx;
#+END_SRC
*** mixins :mixins:
@@ -1177,7 +1176,7 @@ if ((obj_type_status["heading"] == State.on)
segment_anchor_tag_that_object_belongs_to = anchor_tag_;
segment_anchor_tag_that_object_belongs_to_uri = anchor_tag_ ~ ".fnSuffix#" ~ obj_cite_digits.on.to!string;
} else if (an_object["lev_markup_number"].to!int < 4) {
- string segn;
+ string segn;
switch (an_object["lev_markup_number"].to!int) {
case 0:
segn = "_the_title";
@@ -2299,7 +2298,7 @@ if (the_table_of_contents_section["scroll"].length > 1) {
if (obj.metainfo.heading_lev_markup == 4) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2328,7 +2327,7 @@ if (the_table_of_contents_section["scroll"].length > 1) {
if (obj.metainfo.heading_lev_markup == 4) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
if ((opt_action.html)
@@ -2364,7 +2363,7 @@ if (the_document_body_section.length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2414,7 +2413,7 @@ if (the_endnotes_section.length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2456,7 +2455,7 @@ if (the_glossary_section.length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2501,7 +2500,7 @@ if (the_bibliography_section.length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2551,7 +2550,7 @@ if (the_bookindex_section["scroll"].length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2589,7 +2588,7 @@ if (the_bookindex_section["scroll"].length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -2637,7 +2636,7 @@ if (the_blurb_section.length > 1) {
obj.tags.segname_next = html_segnames[obj.ptr.html_segnames + 1];
}
assert(obj.tags.segment_anchor_tag == html_segnames[obj.ptr.html_segnames],
- obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
+ obj.tags.segment_anchor_tag ~ "!=" ~ html_segnames[obj.ptr.html_segnames]);
}
}
/+ dom structure (marked up & collapsed) +/
@@ -7698,19 +7697,19 @@ template docSectKeysSeq() {
}
#+END_SRC
-* 2. Object Setter (Set Abstract Object) :module:sdp:meta_object_setter:
+* 2. Object Setter (Set Abstract Object) :module:doc_reform:meta_object_setter:
set abstracted objects for downstream processing
** 0. module template
-#+BEGIN_SRC d :tangle ../src/sdp/meta/object_setter.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/meta/object_setter.d
/++
object setter:
setting of sisu objects for downstream processing
meta_object_setter.d
+/
-module sdp.meta.object_setter;
+module doc_reform.meta.object_setter;
template ObjectSetter() {
/+ structs +/
<<meta_structs_init>>