diff options
Diffstat (limited to 'org/default_misc.org')
-rw-r--r-- | org/default_misc.org | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/org/default_misc.org b/org/default_misc.org index 993d2a0..fdba922 100644 --- a/org/default_misc.org +++ b/org/default_misc.org @@ -65,7 +65,7 @@ import #+name: meta_defaults_template_registers #+BEGIN_SRC d -string[string][string] conf_aa_empty() { +static string[string][string] conf_aa_empty() { auto conf_ = [ "webserv": [ "url_root" : "", @@ -146,7 +146,7 @@ string[string][string] conf_aa_empty() { #+name: meta_defaults_template_registers #+BEGIN_SRC d -string[string][string] meta_aa_empty() { +static string[string][string] meta_aa_empty() { auto meta_ = [ "classify": [ "dewey" : "", @@ -214,7 +214,7 @@ string[string][string] meta_aa_empty() { #+name: meta_defaults_template_registers #+BEGIN_SRC d -auto ptr_head_main = +static auto ptr_head_main = [ "classify", "creator", @@ -227,7 +227,7 @@ auto ptr_head_main = "rights", "title" ]; -auto ptr_head_sub_classify = +static auto ptr_head_sub_classify = [ "dewey", "keywords", @@ -235,7 +235,7 @@ auto ptr_head_sub_classify = "subject", "topic_register" ]; -auto ptr_head_sub_creator = +static auto ptr_head_sub_creator = [ "author", "author_email", @@ -243,7 +243,7 @@ auto ptr_head_sub_creator = "illustrator", "translator" ]; -auto ptr_head_sub_date = +static auto ptr_head_sub_date = [ "added_to_site", "available", @@ -253,14 +253,14 @@ auto ptr_head_sub_date = "published", "valid" ]; -auto ptr_head_sub_identifier = +static auto ptr_head_sub_identifier = [ "isbn", "oclc", "pg" ]; /+ make +/ -auto ptr_head_sub_make = +static auto ptr_head_sub_make = [ "cover_image", "home_button_image", @@ -275,27 +275,27 @@ auto ptr_head_sub_make = "texpdf_font", "css" ]; -auto ptr_head_sub_notes = +static auto ptr_head_sub_notes = [ "abstract", "description" ]; -auto ptr_head_sub_original = +static auto ptr_head_sub_original = [ "language", "source", "title" ]; -auto ptr_head_sub_publisher = +static auto ptr_head_sub_publisher = [ "name" ]; -auto ptr_head_sub_rights = +static auto ptr_head_sub_rights = [ "copyright", "cover", "illustrations", "license" ]; -auto ptr_head_sub_title = +static auto ptr_head_sub_title = [ "edition", "full", @@ -394,7 +394,7 @@ header. #+BEGIN_SRC d template SiSUrgxInitFlags() { /+ regex flags +/ - int[string] flags_type_init() { + static int[string] flags_type_init() { int[string] flags_type_init = [ "make_headings" : 0, "header_make" : 0, @@ -437,7 +437,7 @@ template SiSUrgxInitFlags() { #+name: meta_defaults_template_node #+BEGIN_SRC d template SiSUnode() { - string[string] node_metadata_heading_str() { + static string[string] node_metadata_heading_str() { auto _node = [ "is" : "", "ocn" : "", @@ -447,7 +447,7 @@ template SiSUnode() { ]; return _node; } - int[string] node_metadata_heading_int() { + static int[string] node_metadata_heading_int() { auto _node = [ "ocn" : 0, // decide whether to use or keep? "ptr_doc_object" : 0, @@ -460,7 +460,7 @@ template SiSUnode() { ]; return _node; } - string[string] node_metadata_para_str() { + static string[string] node_metadata_para_str() { auto _node = [ "is" : "", "ocn" : "", @@ -468,7 +468,7 @@ template SiSUnode() { ]; return _node; } - int[string] node_metadata_para_int() { + static int[string] node_metadata_para_int() { auto _node = [ "ocn" : 0, "indent_base" : 0, @@ -487,7 +487,7 @@ template SiSUnode() { template SiSUbiblio() { // required: deemed_author (author || editor); year; fulltitle; struct BibJsnStr { - auto biblio_entry_tags_jsonstr() { + static auto biblio_entry_tags_jsonstr() { string x = `{ "is" : "", "sortby_deemed_author_year_title" : "", @@ -568,7 +568,7 @@ import #+name: defaults_template_markup #+BEGIN_SRC d template InternalMarkup() { - struct InlineMarkup { + static struct InlineMarkup { auto en_a_o = "【"; auto en_a_c = "】"; auto en_b_o = "〖"; auto en_b_c = "〗"; auto lnk_o = "┥"; auto lnk_c = "┝"; @@ -587,11 +587,11 @@ template InternalMarkup() { auto tc_c = "┚"; auto tc_p = "┆"; auto mono = "■"; - string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") { + static string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") { _indent_spaces = replicate(_indent_spaces, indent); return _indent_spaces; } - string repeat_character_by_number_provided(C,N)(C _character ="-", N number=10) { + static string repeat_character_by_number_provided(C,N)(C _character ="-", N number=10) { _character = replicate(_character, number); return _character; } @@ -606,7 +606,7 @@ template InternalMarkup() { template SiSUlanguageCodes() { /+ language codes +/ struct Lang { - string[string][string] codes() { + static string[string][string] codes() { auto _lang_codes = [ "am": [ "c": "am", "n": "Amharic", "t": "Amharic", "xlp": "amharic" ], "bg": [ "c": "bg", "n": "Bulgarian", "t": "Български (Bəlgarski)", "xlp": "bulgarian" ], @@ -673,18 +673,18 @@ template SiSUlanguageCodes() { ]; return _lang_codes; } - string[] code_arr_ptr() { + static string[] code_arr_ptr() { auto _lang_codes = ["am", "bg", "bn", "br", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hy", "ia", "is", "it", "ja", "ko", "la", "lo", "lt", "lv", "ml", "mr", "nl", "no", "nn", "oc", "pl", "pt", "pt_BR", "ro", "ru", "sa", "se", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tk", "tr", "uk", "ur", "us", "vi", "zh", "en", "xx",]; return _lang_codes; } - string[] code_arr() { + static string[] code_arr() { auto _lang_codes = ["am", "bg", "bn", "br", "ca", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "ga", "gl", "he", "hi", "hr", "hy", "ia", "is", "it", "ja", "ko", "la", "lo", "lt", "lv", "ml", "mr", "nl", "no", "nn", "oc", "pl", "pt", "pt_BR", "ro", "ru", "sa", "se", "sk", "sl", "sq", "sr", "sv", "ta", "te", "th", "tk", "tr", "uk", "ur", "vi", "zh"]; return _lang_codes; } - auto codes_() { + static auto codes_() { return "(" ~ join(code_arr,"|") ~ ")"; } - auto codes_regex() { + static auto codes_regex() { return regex(codes_); } } @@ -695,7 +695,7 @@ template SiSUlanguageCodes() { #+name: meta_ansi_colors #+BEGIN_SRC d -string[string] scr_txt_color = [ +static string[string] scr_txt_color = [ "off" : "\033[0m", "white" : "\033[37m", "white_bold" : "\033[1m", @@ -731,7 +731,7 @@ string[string] scr_txt_color = [ "navy" : "\033[34m", "black" : "\033[30m" ]; -string[string] scr_txt_marker = [ +static string[string] scr_txt_marker = [ "white" : "\033[37m*\033[0m ", "bold" : "\033[1m*\033[0m ", "invert" : "\033[7m*\033[0m ", |