diff options
Diffstat (limited to 'src/doc_reform/spine.d')
-rwxr-xr-x | src/doc_reform/spine.d | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/src/doc_reform/spine.d b/src/doc_reform/spine.d index 4476b6d..b30773a 100755 --- a/src/doc_reform/spine.d +++ b/src/doc_reform/spine.d @@ -244,16 +244,16 @@ void main(string[] args) { } enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } struct OptActions { - bool assertions() { + bool assertions() @trusted { return opts["assertions"]; } - bool concordance() { + bool concordance() @trusted { return opts["concordance"]; } auto config_path_set() { return settings["config"]; } - bool css_theme_default() { + bool css_theme_default() @trusted { bool _is_light; if (opts["light"] || opts["theme-light"]) { _is_light = true; @@ -264,94 +264,94 @@ void main(string[] args) { } return _is_light; } - bool debug_do() { + bool debug_do() @trusted { return opts["debug"]; } - bool digest() { + bool digest() @trusted { return opts["digest"]; } - bool epub() { + bool epub() @trusted { return opts["epub"]; } - bool harvest_link() { + bool harvest_link() @trusted { return (opts["harvest-link"]) ? true : false; } - bool harvest() { + bool harvest() @trusted { return (opts["harvest"] || opts["harvest-authors"] || opts["harvest-topics"]) ? true : false; } - bool harvest_authors() { + bool harvest_authors() @trusted { return (opts["harvest"] || opts["harvest-authors"]) ? true : false; } - bool harvest_topics() { + bool harvest_topics() @trusted { return (opts["harvest"] || opts["harvest-topics"]) ? true : false; } - bool html() { + bool html() @trusted { return (opts["html"] || opts["html-seg"] || opts["html-scroll"]) ? true : false; } - bool html_seg() { + bool html_seg() @trusted { return (opts["html"] || opts["html-seg"]) ? true : false; } - bool html_scroll() { + bool html_scroll() @trusted { return (opts["html"] || opts["html-scroll"]) ? true : false; } - bool html_stuff() { + bool html_stuff() @trusted { return (opts["html"] || opts["html-scroll"] || opts["html-seg"]) ? true : false; } - bool latex() { + bool latex() @trusted { return (opts["latex"] || opts["pdf"]) ? true : false; } - bool odt() { + bool odt() @trusted { return (opts["odf"] || opts["odt"]) ? true : false; } - bool manifest() { + bool manifest() @trusted { return opts["manifest"]; } - bool ocn_hidden() { + bool ocn_hidden() @trusted { return opts["hide-ocn"]; } - bool ocn_off() { + bool ocn_off() @trusted { return opts["ocn-off"]; } - bool quiet() { + bool quiet() @trusted { return opts["quiet"]; } - bool pod() { + bool pod() @trusted { return opts["pod"]; } - bool show_summary() { + bool show_summary() @trusted { return opts["show-summary"]; } - bool show_make() { + bool show_make() @trusted { return opts["show-make"]; } - bool show_metadata() { + bool show_metadata() @trusted { return opts["show-metadata"]; } - bool show_config() { + bool show_config() @trusted { return opts["show-config"]; } - bool source() { + bool source() @trusted { return opts["source"]; } - bool source_or_pod() { + bool source_or_pod() @trusted { return (opts["pod"] || opts["source"]) ? true : false; } - bool sqlite_discrete() { + bool sqlite_discrete() @trusted { return opts["sqlite-discrete"]; } - bool sqlite_db_drop() { + bool sqlite_db_drop() @trusted { return (opts["sqlite-db-recreate"] || opts["sqlite-db-drop"]) ? true : false; } - bool sqlite_db_create() { + bool sqlite_db_create() @trusted { return (opts["sqlite-db-recreate"] || opts["sqlite-db-create"]) ? true : false; } - bool sqlite_delete() { + bool sqlite_delete() @trusted { return opts["sqlite-delete"]; } - bool sqlite_update() { + bool sqlite_update() @trusted { return (opts["sqlite-update"] || opts["sqlite-insert"]) ? true : false; } - bool sqlite_shared_db_action() { + bool sqlite_shared_db_action() @trusted { return ( opts["sqlite-db-recreate"] || opts["sqlite-db-create"] @@ -360,46 +360,46 @@ void main(string[] args) { || opts["sqlite-update"] ) ? true : false; } - bool text() { + bool text() @trusted { return opts["text"]; } - bool verbose() { + bool verbose() @trusted { return (opts["verbose"] || opts["very-verbose"]) ? true : false; } - bool very_verbose() { + bool very_verbose() @trusted { return opts["very-verbose"]; } - bool xhtml() { + bool xhtml() @trusted { return opts["xhtml"]; } - bool section_toc() { + bool section_toc() @trusted { return opts["section_toc"]; } - bool section_body() { + bool section_body() @trusted { return opts["section_body"]; } - bool section_endnotes() { + bool section_endnotes() @trusted { return opts["section_endnotes"]; } - bool section_glossary() { + bool section_glossary() @trusted { return opts["section_glossary"]; } - bool section_biblio() { + bool section_biblio() @trusted { return opts["section_biblio"]; } - bool section_bookindex() { + bool section_bookindex() @trusted { return opts["section_bookindex"]; } - bool section_blurb() { + bool section_blurb() @trusted { return opts["section_blurb"]; } - bool backmatter() { + bool backmatter() @trusted { return opts["backmatter"]; } - bool skip_output() { + bool skip_output() @trusted { return opts["skip-output"]; } - bool workon() { + bool workon() @trusted { return opts["workon"]; } auto languages_set() { @@ -411,7 +411,7 @@ void main(string[] args) { auto sqlite_filename() { return settings["sqlite-filename"]; } - bool parallelise() { + bool parallelise() @trusted { bool _is; if (opts["parallel"] == true) { _is = true; @@ -435,7 +435,7 @@ void main(string[] args) { } else { _is = false; } return _is; } - bool parallelise_subprocesses() { + bool parallelise_subprocesses() @trusted { return opts["parallel-subprocesses"]; } auto output_task_scheduler() { @@ -466,7 +466,7 @@ void main(string[] args) { } return schedule.sort().uniq; } - bool abstraction() { + bool abstraction() @trusted { return ( opts["abstraction"] || concordance @@ -482,7 +482,7 @@ void main(string[] args) { || sqlite_update ) ? true : false; } - bool meta_processing_general() { + bool meta_processing_general() @trusted { return ( opts["abstraction"] || html @@ -493,7 +493,7 @@ void main(string[] args) { || sqlite_update ) ? true :false; } - bool meta_processing_xml_dom() { + bool meta_processing_xml_dom() @trusted { return ( opts["abstraction"] || html |