/*
#+OPTIONS: ^:nil _:nil#+OPTIONS: ^:nil _:nil
* sisu_defaults.d
*/
template SiSUheader() {
  auto header_make_jsonstr = `{
    "make": {
      "cover_image"        : "",
      "home_button_image"  : "",
      "home_button_text"   : "",
      "footer"             : "",
      "headings"           : "",
      "num_top"            : "",
      "breaks"             : "",
      "substitute"         : "",
      "bold"               : "",
      "italics"            : "",
      "emphasis"           : "",
      "texpdf_font"        : "",
      "css"                : ""
    }
  }`;
  auto header_metadata_jsonstr = `{
    "creator": {
      "author"             : "",
      "translator"         : "",
      "illustrator"        : ""
    },
    "title": {
      "main"               : "",
      "sub"                : "",
      "full"               : "",
      "language"           : "",
      "edition"            : "",
      "note"               : ""
    },
    "rights": {
      "copyright"          : "",
      "illustrations"      : "",
      "license"            : "",
      "cover"              : ""
    },
    "date": {
      "published"          : "",
      "created"            : "",
      "issued"             : "",
      "available"          : "",
      "valid"              : "",
      "modified"           : "",
      "added_to_site"      : ""
    },
    "original": {
      "title"              : "",
      "language"           : "",
      "source"             : ""
    },
    "classify": {
      "topic_register"     : "",
      "subject"            : "",
      "keywords"           : "",
      "loc"                : "",
      "dewey"              : ""
    },
    "identifier": {
      "oclc"               : "",
      "pg"                 : "",
      "isbn"               : ""
    },
    "notes": {
      "abstract"           : "",
      "description"        : ""
    },
    "publisher": {
      "name"               : ""
    },
    "links": {
    }
  }`; // links
  auto pointer_head_main =
    [
      "creator",
      "title",
      "rights",
      "date",
      "original",
      "classify",
      "identifier",
      "notes",
      "make",
      "links"
    ];
  auto pointer_head_sub_creator =
    [
      "author",
      "translator",
      "illustrator",
      "cover"
    ];
  auto pointer_head_sub_title =
    [
      "main",
      "sub",
      "full",
      "language",
      "edition",
      "note"
    ];
  auto pointer_head_sub_rights =
    [
      "copyright",
      "illustrations",
      "license"
    ];
  auto pointer_head_sub_date =
    [
      "published",
      "created",
      "issued",
      "valid",
      "modified",
      "added_to_site"
    ];
  auto pointer_head_sub_original =
    [
      "title",
      "language",
      "source"
    ];
  auto pointer_head_sub_classify =
    [
      "topic_register",
      "subject",
      "keywords",
      "loc",
      "dewey"
    ];
  auto pointer_head_sub_identifier =
    [
      "oclc",
      "pg",
      "isbn"
    ];
  auto pointer_head_sub_notes =
    [
      "abstract",
      "description"
    ];
  auto pointer_head_sub_publisher =
    [ "name" ];
  auto pointer_head_sub_make =
    [
      "cover_image",
      "home_button_image",
      "home_button_text",
      "footer", "headings",
      "num_top",
      "breaks",
      "substitute",
      "bold",
      "italics",
      "emphasis",
      "texpdf_font",
      "css"
    ];
  auto config_jsonstr = `{
  }`;
}
/*
* RgxInitFlags
*/
template SiSUrgxInitFlags() {
// mixin template RgxInit() {
  int[string] flag_type = [
    "make_headings"        : 0,
    "header_make"          : 0,
    "header_metadata"      : 0,
    "heading"              : 0,
    "heading_biblio"       : 0,
    "para"                 : 0,
    "blocks"               : 0, // 0..2 generic
    "code"                 : 0, // 0..2
    "poem"                 : 0, // 0..2
    "table"                : 0, // 0..2
    "group"                : 0, // 0..2
    "block"                : 0, // 0..2
    "quote"                : 0, // 0..2
    "verse_new"            : 0,
    "curly_code"           : 0,
    "curly_poem"           : 0,
    "curly_table"          : 0,
    "curly_group"          : 0,
    "curly_block"          : 0,
    "curly_quote"          : 0,
    "tic_code"             : 0,
    "tic_poem"             : 0,
    "tic_table"            : 0,
    "tic_group"            : 0,
    "tic_block"            : 0,
    "tic_quote"            : 0,
    "ocn_status"           : 0, // 0 ocn; 1 no ocn; 2 no ocn & dummy headings
    "ocn_status_multi_obj" : 0, // 0 ocn; 1 no ocn; 2 no ocn & dummy headings
    "book_index"           : 0,
  ];
}
template SiSUbiblio() {
  auto biblio_entry_tags_jsonstr =  `{
    "is"                   : "",
    "sortby_deemed_author_year_title"  : "",
    "deemed_author"                    : "",
    "author_raw"                       : "",
    "author"                           : "",
    "author_arr"                       : [ "" ],
    "editor_raw"                       : "",
    "editor"                           : "",
    "editor_arr"                       : [ "" ],
    "title"                            : "",
    "subtitle"                         : "",
    "fulltitle"                        : "",
    "language"                         : "",
    "trans"                            : "",
    "src"                              : "",
    "journal"                          : "",
    "in"                               : "",
    "volume"                           : "",
    "edition"                          : "",
    "year"                             : "",
    "place"                            : "",
    "publisher"                        : "",
    "url"                              : "",
    "pages"                            : "",
    "note"                             : "",
    "short_name"                       : "",
    "id"                               : ""
  }`; // is: book, article, magazine, newspaper, blog, other
  auto biblio_tag_map = [
    "au"                               : "author_raw",
    "ed"                               : "editor_raw",
    "ti"                               : "fulltitle",
    "lng"                              : "language",
    "jo"                               : "journal",
    "vol"                              : "volume",
    "edn"                              : "edition",
    "yr"                               : "year",
    "pl"                               : "place",
    "pb"                               : "publisher",
    "pub"                              : "publisher",
    "pg"                               : "pages",
    "pgs"                              : "pages",
    "sn"                               : "short_name"
  ]; // is: book, article, magazine, newspaper, blog, other
}
template InternalMarkup() {
  class InternalMarkup {
    auto en_a_o = "【"; auto en_a_c = "】";
    auto en_b_o = "〖"; auto en_b_c = "〗";
  }
}