aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_regex.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-05-20 10:20:38 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commitd21e5b572433f39111282805435e6337f0e1b4c0 (patch)
tree7a604e949edeef496ef79870f98aa4b722136d34 /org/default_regex.org
parent0.7.1 odt (initial stub) (diff)
0.7.2 latex (for pdf) (initial stub)doc-reform_v0.7.2
Diffstat (limited to 'org/default_regex.org')
-rw-r--r--org/default_regex.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/org/default_regex.org b/org/default_regex.org
index e8b6b3f..2958027 100644
--- a/org/default_regex.org
+++ b/org/default_regex.org
@@ -415,6 +415,24 @@ static xhtml_greater_than = ctRegex!(`[>]`, "m"); /
static xhtml_line_break = ctRegex!(` [\\]{2}`, "m"); // <br />
#+END_SRC
+*** latex special characters
+
+#+name: sp_ch_xhtml_rgx
+#+BEGIN_SRC d
+static latex_special_char_shortlist = ctRegex!(`([%$_#&\\])`);
+static latex_special_char_curlybraces = ctRegex!(`([{}])`);
+static latex_special_char = ctRegex!(`([%${}_#&\\])`);
+static latex_special_char_for_escape = ctRegex!(`([%${}_#\\])`);
+static latex_special_char_for_escape_and_braces = ctRegex!(`([&])`);
+static latex_special_char_for_escape_url = ctRegex!(`([%])`);
+static latex_special_char_escaped = ctRegex!(`\\([%${}_#\\])`);
+static latex_special_char_escaped_braced = ctRegex!(`[{]\\([&])[}]`);
+static latex_identify_inline_link = ctRegex!(`┥.+?┝┤\S+?├`, "mg");
+static latex_clean_internal_link = ctRegex!(`^(?:#|¤\S+?#)`, "m");
+static latex_identify_inline_fontface = ctRegex!(`\\([_#$]┨.+?┣)\\([_#$])`, "mg");
+static latex_clean_bookindex_linebreak = ctRegex!(`\s*\\\\\\\\\s*`, "m");
+#+END_SRC
+
* 2. ctRegex defaults shared by meta & output (generic)
** misc generic