aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/meta')
-rw-r--r--src/sdp/meta/metadoc.d103
1 files changed, 59 insertions, 44 deletions
diff --git a/src/sdp/meta/metadoc.d b/src/sdp/meta/metadoc.d
index b028f8d..79f9849 100644
--- a/src/sdp/meta/metadoc.d
+++ b/src/sdp/meta/metadoc.d
@@ -88,68 +88,83 @@ template SiSUabstraction() {
writeln(__LINE__, ":", __FILE__, ": step4 commence → (doc_matters)");
}
struct DocumentMatters {
- auto keys_seq() {
- /+ contains .seg & .scroll sequences +/
- auto _k = _document_section_keys_sequenced;
- return _k;
- }
- string[] segnames() {
- string[] _k = _doc_html_segnames;
- return _k;
- }
- string[] segnames_lv_0_to_4() {
- string[] _k = _doc_epub_segnames_0_4;
- return _k;
- }
- auto conf_make_meta() {
- auto _k = _make_and_meta_struct;
- return _k;
- }
- auto source_filename() {
- string _k = _manifest.src_fn;
- return _k;
- }
- auto src_path_info() {
- string _pwd = _env["pwd"];
- auto _k = SiSUpathsSRC!()(_pwd, _manifest.src_fn);
- return _k;
- }
auto opt_action() {
/+ getopt options, commandline instructions, raw
- processing instructions --epub --html etc.
- command line config instructions --output-path
+/
- auto _k = _opt_action;
+ return _opt_action;
+ }
+ auto conf_make_meta() { // TODO meld with all make instructions
+ auto _k = _make_and_meta_struct;
return _k;
}
auto environment() {
- auto _k = _env;
+ struct Env_ {
+ auto pwd() {
+ return _manifest.pwd;
+ }
+ auto home() {
+ return _manifest.home;
+ }
+ }
+ return Env_();
+ }
+ auto is_pod() {
+ return _manifest.is_pod;
+ }
+ auto source_filename() {
+ return _manifest.src_fn;
+ }
+ auto src_path_info() { // consider, reconsider?
+ auto _k = SiSUpathsSRC!()(_manifest.pwd, _manifest.src_fn);
return _k;
}
auto language() {
- string _k;
- if (auto m = (_manifest.src_fn).match(rgx.language_code_and_filename)) {
- _k = m.captures[1];
- } else {
- _k = "en";
- }
- return _k;
+ return _manifest.src_lng;
+ }
+ auto output_path() {
+ return _manifest.output_path;
+ }
+ auto pod_manifest_list_of_filenames() {
+ return _manifest.pod_manifest_list_of_filenames;
+ }
+ auto pod_manifest_list_of_languages() {
+ return _manifest.pod_manifest_list_of_languages;
+ }
+ auto pod_manifest_filename() {
+ return _manifest.pod_manifest_filename;
+ }
+ auto pod_manifest_path() {
+ return _manifest.pod_manifest_path;
+ }
+ auto pod_manifest_file_with_path() {
+ return _manifest.pod_manifest_file_with_path;
+ }
+ auto pod_config_dirs() {
+ return _manifest.pod_config_dirs;
+ }
+ auto pod_image_dirs() {
+ return _manifest.pod_image_dirs;
}
auto file_insert_list() {
string[] _k = _header_body_inserts[headBody.insert_filelist];
return _k;
}
- auto pod_manifest() {
- /+ extensive information on
- - source processing paths
- - repetition of opt_action with additional processing, including
- - output path if any
- +/
- auto _k = _manifest;
+ auto image_list() {
+ return _images;
+ }
+ auto keys_seq() {
+ /+ contains .seg & .scroll sequences +/
+ auto _k = _document_section_keys_sequenced;
return _k;
}
- auto image_list() {
- auto _k = _images;
+ string[] segnames() {
+ string[] _k = _doc_html_segnames;
+ return _k;
+ }
+ string[] segnames_lv_0_to_4() {
+ string[] _k = _doc_epub_segnames_0_4;
return _k;
}
}