aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp.d')
-rwxr-xr-xsrc/sdp.d15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/sdp.d b/src/sdp.d
index c29014c..e19a21e 100755
--- a/src/sdp.d
+++ b/src/sdp.d
@@ -8,6 +8,7 @@ import
compile_time_info, // sdp/compile_time_info.d
ao_abstract_doc_source, // sdp/ao_abstract_doc_source.d
ao_defaults, // sdp/ao_defaults.d
+ ao_header_extract, // sdp/ao_header_extract.d
ao_read_config_files, // sdp/ao_read_config_files.d
ao_read_source_files, // sdp/ao_read_source_files.d
ao_output_debugs, // sdp/ao_output_debugs.d
@@ -98,6 +99,8 @@ mixin RgxInit;
void main(string[] args) {
mixin SiSUheaderSkel;
+ mixin SiSUheaderExtractNative;
+ mixin SiSUheaderExtractSDLang;
mixin SiSUbiblio;
mixin SiSUrgxInitFlags;
mixin SiSUconfiguration;
@@ -107,6 +110,7 @@ void main(string[] args) {
mixin SiSUoutputHub;
mixin ScreenTxtColors;
auto raw = MarkupRaw();
+ auto head_native = HeaderDocMetadataAndMakeNativeToJson();
auto headsdl = HeaderExtractSDL();
auto abs = Abstraction();
auto dbg = SDPoutputDebugs();
@@ -266,9 +270,14 @@ void main(string[] args) {
writeln(header_and_content_tuple.length);
writeln(sourcefile_content[0]);
}
- /+ ↓ headers metadata & make sdlang +/
- auto header_sdlang = headsdl.headerSDLang(header);
- /+ ↓ porcess document, return abstraction as tuple +/
+ // Tuple!(JSONValue[string], JSONValue[string]) header_make_and_meta_tuple;
+ auto header_make_and_meta_tuple = (match(header, rgx.native_header_meta_title))
+ ? (head_native.headerContentJSON(header))
+ : (headsdl.headerSDLangToJSON(header));
+ static assert(!isTypeTuple!(header_make_and_meta_tuple));
+ JSONValue[string] dochead_make_json = header_make_and_meta_tuple[0];
+ JSONValue[string] dochead_meta_json = header_make_and_meta_tuple[1];
+ /+ ↓ process document, return abstraction as tuple +/
auto t = abs.abstract_doc_source(sourcefile_content);
static assert(!isTypeTuple!(t));
auto doc_ao_contents = t[0]; // contents ~ endnotes ~ bookindex;