diff options
Diffstat (limited to 'org/ao_rgx.org')
-rw-r--r-- | org/ao_rgx.org | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/org/ao_rgx.org b/org/ao_rgx.org index ff7f207..eecad70 100644 --- a/org/ao_rgx.org +++ b/org/ao_rgx.org @@ -1,4 +1,4 @@ -#+TITLE: Emacs config file written in org-mode +#+TITLE: sdp rgx #+AUTHOR: Ralph Amissah #+EMAIL: ralph.amissah@gmail.com #+STARTUP: indent @@ -9,11 +9,12 @@ #+OPTIONS: ^:nil _:nil #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport -#+TAGS: Amissah(A) Class(c) WEB(W) noexport(n) #+FILETAGS: :sdp:ao: +#+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n) -* regex -** misc +* regex :regex: +[[./sdp.org][sdp]] +** misc :misc: #+name: ao_rgx #+BEGIN_SRC d :exports none /* misc */ @@ -38,18 +39,23 @@ static levels_markup = ctRegex!(`^[A-D1-4]$`); static levels_numbered = ctRegex!(`^[0-9]$`); static levels_numbered_headings = ctRegex!(`^[0-7]$`); #+END_SRC -** markup insert file +** markup insert file :insert:file: #+name: ao_rgx #+BEGIN_SRC d :exports none /* insert markup file */ static insert_src_fn_ssi_or_sst = ctRegex!(`^<<\s*(?P<path>[a-zA-Z0-9._-]+/)*(?P<filename>[a-zA-Z0-9._-]+[.]ss[ti])$`); // static insert_ssi_or_sst_fn = ctRegex!(`^<<\s*[a-zA-Z0-9._-]+[.]ss[ti]`); #+END_SRC -** header & comments +** comments :comment: #+name: ao_rgx #+BEGIN_SRC d :exports none -/* header & comments */ +/* comments */ static comment = ctRegex!(`^%+ `); +#+END_SRC +** header :header: +#+name: ao_rgx +#+BEGIN_SRC d :exports none +/* header */ static header = ctRegex!(`^@([a-z_]+):(?:\s|$)`); static header_make = ctRegex!(`^@(make):(?:\s|$)`); static header_metadata = ctRegex!(`^@([a-z_]+):(?:\s|$)`); @@ -57,7 +63,7 @@ static header_sub = ctRegex!(`^[ ]+:([a-z_]+):\s`); static head_main = ctRegex!(`^@([a-z_]+):\s*(.*)`, "m"); static head_sub = ctRegex!(`^[ ]*:([a-z_]+):\s+(.+)`, "m"); #+END_SRC -** header & paragraph operators +** header & paragraph operators :paragraph:operator: #+name: ao_rgx #+BEGIN_SRC d :exports none /* heading & paragraph operators */ @@ -73,7 +79,7 @@ static para_indent = ctRegex!(`^_([1-9]) `); static para_indent_hang = ctRegex!(`^_([0-9])_([0-9]) `); static para_attribs = ctRegex!(`^_(([0-9])(_([0-9]))?|_([1-9])?[*]) `); #+END_SRC -** blocked markup tics +** blocked markup tics :block:tic: #+name: ao_rgx #+BEGIN_SRC d :exports none /* blocked markup tics */ @@ -85,7 +91,7 @@ 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 +** blocked markup curly :block:curly: #+name: ao_rgx #+BEGIN_SRC d :exports none /* blocked markup curly */ @@ -102,7 +108,7 @@ 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 markup font face mod :inline:font:face: #+name: ao_rgx #+BEGIN_SRC d :exports none /* inline markup font face mod */ @@ -115,7 +121,7 @@ static inline_strike = ctRegex!(`-\{(?P<text>.+?)\}-`); static inline_insert = ctRegex!(`\+\{(?P<text>.+?)\}\+`); static inline_mono = ctRegex!(`#\{(?P<text>.+?)\}#`); #+END_SRC -** inline markup footnotes +** inline markup footnotes :inline:footnote: #+name: ao_rgx #+BEGIN_SRC d :exports none /* inline markup footnotes */ @@ -146,7 +152,7 @@ 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 markup book index :inline:bookindex: #+name: ao_rgx #+BEGIN_SRC d :exports none /* inline markup book index */ @@ -154,7 +160,7 @@ static book_index = ctRegex!(`^=\{\s*(.+?)\}$`, "m"); static book_index_open = ctRegex!(`^=\{\s*([^}]+?)$`); static book_index_close = ctRegex!(`^(.*?)\}$`, "m"); // strip #+END_SRC -** no ocn object +** no ocn object :ocn:off:object: #+name: ao_rgx #+BEGIN_SRC d :exports none /* no ocn object */ @@ -162,7 +168,7 @@ static ocn_off = ctRegex!(`~#$`, "m"); static ocn_off_dh = ctRegex!(`-#$`, "m"); static ocn_off_all = ctRegex!(`[~-]#$`, "m"); #+END_SRC -** no ocn block +** no ocn block :ocn:off:block: #+name: ao_rgx #+BEGIN_SRC d :exports none /* no ocn block */ @@ -172,13 +178,13 @@ static ocn_off_block_close = ctRegex!(`^--\+#$`); // static auto_ocn_ignore = ctRegex!(`^[+~*$-]{3,}$`); // reminder static ocn_block_marks = ctRegex!(`^--[+~-]#$`); #+END_SRC -** ignore outside code blocks +** ignore outside code blocks :block:code: #+name: ao_rgx #+BEGIN_SRC d :exports none /* ignore outside code blocks */ static regular_parse_skip = ctRegex!(`^(--[+~-]#|-[\\]{2}-|=[.\\]{2}=)$`); // not structural info #+END_SRC -** line & page breaks +** line & page breaks :break: #+name: ao_rgx #+BEGIN_SRC d :exports none /* line & page breaks */ @@ -191,13 +197,13 @@ static break_string = ctRegex!(`』`); // ancestry, parent static parent = ctRegex!(`([0-7]):([0-9]+)`); #+END_SRC -** json +** json :json: #+name: ao_rgx #+BEGIN_SRC d :exports none /* json */ static tailing_comma = ctRegex!(`,$`, "m"); #+END_SRC -** head +** head :header: #+name: ao_rgx #+BEGIN_SRC d :exports none /* head */ @@ -213,14 +219,14 @@ static subhead_notes = ctRegex!(`^(?:abstract|description)$`, "m"); static subhead_publisher = ctRegex!(`^(?:name)$`, "m"); static 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 -** biblio tags +** biblio tags :biblio:tags: #+name: ao_rgx #+BEGIN_SRC d :exports none /* biblio tags */ static biblio_tags = ctRegex!(`^(is|au|author_raw|author|author_arr|editor_raw|ed|editor_arr|ti|title|subtitle|fulltitle|lng|language|trans|src|jo|journal|in|vol|volume|edn|edition|yr|year|pl|place|pb|pub|publisher|url|pg|pages|note|short_name|id):\s+(.+)`); static biblio_abbreviations = ctRegex!(`^(au|ed|ti|lng|jo|vol|edn|yr|pl|pb|pub|pg|pgs|sn)$`); #+END_SRC -** bookindex split +** bookindex split :bookindex:split: #+name: ao_rgx #+BEGIN_SRC d :exports none /* bookindex split */ @@ -229,7 +235,7 @@ static bi_main_term_plus_rest_split = ctRegex!(`\s*:\s*`); static bi_sub_terms_plus_ocn_offset_split = ctRegex!(`\s*\|\s*`); static bi_term_and_ocns_match = ctRegex!(`^(.+?)\+(\d+)`); #+END_SRC -* tangles +* tangles :tangle: ** code structure: :ao_rgx.d: #+name: tangle_ao_rgx #+BEGIN_SRC d :tangle ../lib/sdp/ao_rgx.d :padline no :exports none :noweb yes |