From 951d136957c14bed5581a11fe41bdebd174d5ce8 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 2 Jul 2016 00:22:17 -0400 Subject: file renaming, whitespace cleaning --- org/ao_defaults.org | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) (limited to 'org/ao_defaults.org') diff --git a/org/ao_defaults.org b/org/ao_defaults.org index 3412ae8..a6baeb4 100644 --- a/org/ao_defaults.org +++ b/org/ao_defaults.org @@ -343,6 +343,7 @@ header. #+END_SRC ** template: flags regex initialize :regex_flags: + #+name: ao_defaults_templates #+BEGIN_SRC d /+ regex flags +/ @@ -383,7 +384,9 @@ template SiSUrgxInitFlags() { } } #+END_SRC + ** template: bibliography :biblio: + #+name: ao_defaults_templates #+BEGIN_SRC d template SiSUbiblio() { @@ -419,7 +422,9 @@ template SiSUbiblio() { }`; // is: book, article, magazine, newspaper, blog, other } #+END_SRC + ** template: internal markup :markup: + #+name: ao_defaults_templates #+BEGIN_SRC d template InternalMarkup() { @@ -502,7 +507,9 @@ template InternalMarkup() { * regex ctRegex :regex: [[./sdp.org][sdp]] [[./][org/]] + ** misc :misc: + #+name: ao_rgx #+BEGIN_SRC d /+ misc +/ @@ -525,7 +532,9 @@ static levels_markup = ctRegex!(`^[A-D1-4]$`); static levels_numbered = ctRegex!(`^[0-9]$`); static levels_numbered_headings = ctRegex!(`^[0-7]$`); #+END_SRC + ** filename (and path) matching (including markup insert file) :insert:file:path:filename: + #+name: ao_rgx #+BEGIN_SRC d static src_pth = ctRegex!(`^(?P[a-zA-Z0-9._-]+/)*(?P[a-zA-Z0-9._-]+[.]ss[tm])$`); @@ -541,14 +550,18 @@ static insert_src_fn_ssi_or_sst = ctRegex!(`^<<\s*(?P[a-zA-Z0-9._-]+/)*(? /+ insert markup file +/ // static insert_src_fn_ssi_or_sst = ctRegex!(`^<<\s*([a-zA-Z0-9._-]+/)*(?P[a-zA-Z0-9._-]+[.]ss[ti])$`); #+END_SRC + ** comments :comment: + #+name: ao_rgx #+BEGIN_SRC d /+ comments +/ static comment = ctRegex!(`^%+ `); static comments = ctRegex!(`^%+ |^%+$`); #+END_SRC + ** native header :native:header: + #+name: ao_rgx #+BEGIN_SRC d /+ header +/ @@ -565,7 +578,9 @@ static native_header_meta_title = ctRegex!(`^@title:\s`, "m"); static variable_doc_title = ctRegex!(`@title`); static variable_doc_author = ctRegex!(`@author`); #+END_SRC + ** subheader :native:subheader: + #+name: ao_rgx #+BEGIN_SRC d /+ head +/ @@ -580,7 +595,9 @@ static native_subhead_notes = ctRegex!(`^(?:abstract|description)$`, static native_subhead_publisher = ctRegex!(`^(?:name)$`, "m"); static native_subhead_make = ctRegex!(`^(?:cover_image|home_button_image|home_button_text|footer|headings|num_top|breaks|substitute|bold|italics|emphasis|texpdf_font|css)$`, "m"); #+END_SRC + ** heading & paragraph operators :paragraph:operator: + #+name: ao_rgx #+BEGIN_SRC d /+ heading & paragraph operators +/ @@ -599,6 +616,7 @@ static para_attribs = ctRegex!(`^_(([0-9])(_([0-9]))?|_([1-9])?[*]) `); #+END_SRC ** blocked markup :block:tic: + #+name: ao_rgx #+BEGIN_SRC d /+ blocked markup +/ @@ -606,7 +624,9 @@ static block_open = ctRegex!("^((code|poem|group|block|quote|tabl // static block_open_less_code = ctRegex!("^(((poem|group|block|quote|table)[{].*?$)|`{3} (poem|group|block|quote|table))"); static block_poem_open = ctRegex!("^((poem[{].*?$)|`{3} poem)"); #+END_SRC + ** blocked markup tics :block:tic: + #+name: ao_rgx #+BEGIN_SRC d /+ blocked markup tics +/ @@ -620,7 +640,9 @@ static block_tic_quote_open = ctRegex!("^`{3} (quote)"); static block_tic_table_open = ctRegex!("^`{3} (table)"); static block_tic_close = ctRegex!("^(`{3})$","m"); #+END_SRC + ** blocked markup curly :block:curly: + #+name: ao_rgx #+BEGIN_SRC d /+ blocked markup curly +/ @@ -639,7 +661,9 @@ static block_curly_quote_close = ctRegex!(`^([}]quote)`); static block_curly_table_open = ctRegex!(`^(table[{].*?$)`); static block_curly_table_close = ctRegex!(`^([}]table)`); #+END_SRC + ** inline markup font face mod :inline:font:face: + #+name: ao_rgx #+BEGIN_SRC d /+ inline markup font face mod +/ @@ -652,7 +676,9 @@ static inline_strike = ctRegex!(`-\{(?P.+?)\}-`); static inline_insert = ctRegex!(`\+\{(?P.+?)\}\+`); static inline_mono = ctRegex!(`#\{(?P.+?)\}#`); #+END_SRC + ** inline markup footnotes :inline:footnote: + #+name: ao_rgx #+BEGIN_SRC d /+ inline markup footnotes +/ @@ -667,10 +693,8 @@ static inline_al_delimiter_close_regular = ctRegex!(`】`, "m"); static inline_al_delimiter_open_and_close_regular = ctRegex!(`【|】`, "m"); static inline_notes_delimiter_al_regular = ctRegex!(`【(.+?)】`, "m"); static inline_notes_delimiter_al_regular_number_note = ctRegex!(`【(\d+)\s+(.+?)】`, "m"); - static inline_al_delimiter_open_asterisk = ctRegex!(`【\*`, "m"); static inline_al_delimiter_open_plus = ctRegex!(`【\+`, "m"); - static inline_curly_delimiter_open_regular = ctRegex!(`~\{\s*`, "m"); static inline_curly_delimiter_close_regular = ctRegex!(`\s*\}~`, "m"); static inline_curly_delimiter_open_and_close_regular = ctRegex!(`~\{\s*|\s*\}~`, "m"); @@ -694,7 +718,9 @@ static inline_text_and_note_square_sp = ctRegex!(`(.+?)~\[[*+]+\s+(.+?)\] static inline_text_and_note_square = ctRegex!(`(.+?)~\[\s*(.+?)\]~`, "mg"); static inline_note_square_delimiters = ctRegex!(`(~\[\s*)(.+?)(\]~)`, "mg"); #+END_SRC + ** inline markup book index :inline:bookindex: + #+name: ao_rgx #+BEGIN_SRC d /+ inline markup book index +/ @@ -702,7 +728,9 @@ static book_index = ctRegex!(`^=\{\s*(.+?)\}$`, "m"); static book_index_open = ctRegex!(`^=\{\s*([^}]+?)$`); static book_index_close = ctRegex!(`^(.*?)\}$`, "m"); // strip #+END_SRC + ** no obj_cite_number object :ocn:off:object: + #+name: ao_rgx #+BEGIN_SRC d /+ no obj_cite_number object +/ @@ -710,7 +738,9 @@ static obj_cite_number_off = ctRegex!(`~#$`, "m"); static obj_cite_number_off_dh = ctRegex!(`-#$`, "m"); static obj_cite_number_off_all = ctRegex!(`[~-]#$`, "m"); #+END_SRC + ** no obj_cite_number block :ocn:off:block: + #+name: ao_rgx #+BEGIN_SRC d /+ no obj_cite_number block +/ @@ -720,13 +750,17 @@ static obj_cite_number_off_block_close = ctRegex!(`^--\+#$`); // static auto_obj_cite_number_ignore = ctRegex!(`^[+~*$-]{3,}$`); // reminder static obj_cite_number_block_marks = ctRegex!(`^--[+~-]#$`); #+END_SRC + ** ignore outside code blocks :block:code: + #+name: ao_rgx #+BEGIN_SRC d /+ ignore outside code blocks +/ static skip_code_block_from_regular_parse = ctRegex!(`^(--[+~-]#|-[\\]{2}-|=[.\\]{2}=)$`); // not structural info #+END_SRC + ** line & page breaks :break: + #+name: ao_rgx #+BEGIN_SRC d /+ line & page breaks +/ @@ -739,13 +773,17 @@ static break_string = ctRegex!(`』`); // ancestry, parent static parent = ctRegex!(`([0-7]):([0-9]+)`); #+END_SRC + ** json :json: + #+name: ao_rgx #+BEGIN_SRC d /+ json +/ static tailing_comma = ctRegex!(`,$`, "m"); #+END_SRC + ** biblio tags :biblio:tags: + #+name: ao_rgx #+BEGIN_SRC d /+ biblio tags +/ @@ -753,7 +791,9 @@ static biblio_tags = ctRegex!(`^(is|au|author_raw|author|author_ar static biblio_abbreviations = ctRegex!(`^(au|ed|ti|lng|jo|vol|edn|yr|pl|pb|pub|pg|pgs|sn)$`); // static biblio_tags = ctRegex!(`^(is|author_raw|author|author_arr|editor_raw|editor_arr|title|subtitle|fulltitle|language|trans|src|journal|in|volume|edition|year|place|publisher|url|pages|note|short_name|id):\s+(.+)`); #+END_SRC + ** bookindex split :bookindex:split: + #+name: ao_rgx #+BEGIN_SRC d /+ bookindex split +/ @@ -764,6 +804,7 @@ static bi_term_and_obj_cite_numbers_match = ctRegex!(`^(.+?)\+(\d+)`); #+END_SRC * set colors for terminal :colors:terminal: + #+name: ao_ansi_colors #+BEGIN_SRC d string[string] scr_txt_color = [ @@ -838,6 +879,7 @@ string[string] scr_txt_marker = [ * tangles (code structure) :tangle: ** defaults: :ao_defaults.d: + #+name: tangle_ao_defaults #+BEGIN_SRC d :tangle ../src/sdp/ao_defaults.d /+ @@ -848,6 +890,7 @@ string[string] scr_txt_marker = [ #+END_SRC ** rgx: :ao_rgx.d: + #+name: tangle_ao_rgx #+BEGIN_SRC d :tangle ../src/sdp/ao_rgx.d /+ @@ -860,6 +903,7 @@ template RgxInit() { } } #+END_SRC + ** ansi_colors: :ao_ansi_colors.d: #+BEGIN_SRC d :tangle ../src/sdp/ao_ansi_colors.d -- cgit v1.2.3