aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_defaults.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/ao_defaults.d')
-rw-r--r--src/sdp/ao_defaults.d119
1 files changed, 7 insertions, 112 deletions
diff --git a/src/sdp/ao_defaults.d b/src/sdp/ao_defaults.d
index 269b8c0..a5fda94 100644
--- a/src/sdp/ao_defaults.d
+++ b/src/sdp/ao_defaults.d
@@ -374,125 +374,21 @@ template SiSUbiblio() {
}
}
}
-template SiSUpaths() {
- string _base_filename(string fn_src) {
- string _fn_base = "";
- if (extension(fn_src) == ".sst") {
- _fn_base = baseName(fn_src, ".sst");
- } else if (extension(fn_src) == ".ssm") {
- _fn_base = baseName(fn_src, ".ssm");
- }
- return _fn_base;
- }
- struct DirPaths {
- string base_filename(string fn_src) {
- return _base_filename(fn_src);
- }
- }
- struct SiSUpodPaths {
- string base_filename(string fn_src) {
- return _base_filename(fn_src);
- }
- string base(string fn_src) {
- return chainPath("sisupod", _base_filename(fn_src)).array;
- }
- string doc(string fn_src) {
- return chainPath(base(fn_src), "doc").array;
- }
- string doc_lng(string fn_src, string lng) {
- return chainPath(doc(fn_src), lng).array;
- }
- string conf(string fn_src) {
- return chainPath(doc(fn_src), "_sisu").array;
- }
- string image(string fn_src) {
- return chainPath(conf(fn_src), "image").array;
- }
- string css(string fn_src) {
- return chainPath(conf(fn_src), "css").array;
- }
- string fn_doc(string fn_src, string lng) {
- return chainPath((doc_lng(fn_src, lng)), baseName(fn_src)).array;
- }
- string fn_doc_insert(string fn_src, string fn_insert, string lng) {
- return chainPath((doc_lng(fn_src, lng)), baseName(fn_insert)).array;
- }
- }
- struct HtmlPaths {
- string base_filename(string fn_src) {
- return _base_filename(fn_src);
- }
- string base() {
- return chainPath("en", "html").array;
- }
- string seg(string fn_src) {
- return chainPath(base, _base_filename(fn_src)).array;
- }
- string fn_scroll(string fn_src) {
- return chainPath(base, _base_filename(fn_src) ~ ".html").array;
- }
- string fn_seg(string fn_src, string seg_filename) {
- return chainPath(seg(fn_src), seg_filename ~ ".html").array;
- }
- // string fn_css(string fn_src) {
- // return chainPath(seg(fn_src), "html.css").array;
- // }
- }
- struct EpubPaths {
- string base_filename(string fn_src) {
- return _base_filename(fn_src);
- }
- string base() {
- return chainPath("en", "epub").array;
- }
- string doc(string fn_src) {
- return chainPath(base, _base_filename(fn_src)).array;
- // return chainPath(base, base_fn).array;
- }
- string doc_meta_inf(string fn_src) {
- return chainPath(doc(fn_src), "META-INF").array;
- }
- string doc_oebps(string fn_src) {
- return chainPath(doc(fn_src), "OEBPS").array;
- }
- string doc_oebps_css(string fn_src) {
- return chainPath(doc_oebps(fn_src), "css").array;
- }
- string doc_oebps_image(string fn_src) {
- return chainPath(doc_oebps(fn_src), "image").array;
- }
- string fn_mimetypes(string fn_src) {
- return chainPath(doc(fn_src), "mimetypes").array;
- }
- string fn_dmi_container_xml(string fn_src) {
- return chainPath(doc_meta_inf(fn_src), "container.xml").array;
- }
- string fn_oebps_toc_ncx(string fn_src) {
- return chainPath(doc_oebps(fn_src), "toc.ncx").array;
- }
- string fn_oebps_content_opf(string fn_src) {
- return chainPath(doc_oebps(fn_src), "content.opf").array;
- }
- string fn_oebps_content_xhtml(string fn_src, string seg_filename) {
- return chainPath(doc_oebps(fn_src), seg_filename ~ ".xhtml").array;
- }
- }
-}
template InternalMarkup() {
struct InlineMarkup {
auto en_a_o = "【"; auto en_a_c = "】"; // endnote en_a_o: '~{'; en_a_c: '}~';
auto en_b_o = "〖"; auto en_b_c = "〗"; // endnote en_b_o: '~['; en_b_c: ']~';
- auto lnk_o = "┥"; auto lnk_c = "┝";
+ auto lnk_o = "┥"; auto lnk_c = "┝"; // auto lnk_o = "⌠"; auto lnk_c = "⌡"; // '⌈' '⌋' '⌠' '⌡' #Mx[:lnk_o= '◁'; Mx[:lnk_c= '▷' #‹ ›
auto url_o = "┤"; auto url_c = "├";
auto mark_internal_site_lnk = "¤";
auto nbsp = "░";
- auto br_line = "┘";
- auto br_nl = "┙";
- auto br_paragraph = "┚";
+ auto br_line = "┘"; // "╱"; // lB ▌ 9612 ┘ ¶
+ auto br_nl = "┙"; // "╲"; // lB ▌ 』 ┘
+ auto br_paragraph = "┚"; // "█"; // FB █ 9608 # PP ∥ 8741 #▐ #'┘' #'¶' #FB █ 9608 lB ▌ 9612 RB ▐ 9616
auto br_obj = "break_obj";
- auto br_page_line = "┼";
- auto br_page = "┿";
- auto br_page_new = "╂";
+ auto br_page_line = "┼"; // "▭";
+ auto br_page = "┿"; // "┼";
+ auto br_page_new = "╂"; // "╋";
string indent_by_spaces_provided(int indent) {
auto _indent_spaces ="░░"; // auto nbsp = "░";
_indent_spaces = replicate(_indent_spaces, indent);
@@ -583,7 +479,6 @@ template SiSUlanguageCodes() {
return _lang_codes;
}
auto codes_() {
- // return join(code_arr,"|");
return "(" ~ join(code_arr,"|") ~ ")";
}
auto codes_regex() {