X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/87fb552dd37301bc0834afc09aa99cadd6310b98..30b145cc4660ae5d86bd0de88e373d3107ba54d5:/texfilter.py?ds=sidebyside diff --git a/texfilter.py b/texfilter.py index de3674b..e215b18 100644 --- a/texfilter.py +++ b/texfilter.py @@ -13,6 +13,8 @@ TexFilters: List[Tuple[str, Callable[[bytes], bytes]]] = [ # Work around `Extra }, or forgotten \endgroup.` ("FixBareNesting", lambda x: re.sub( b'(^|\n)(\\\\(emph|st){)', b'\\1\\\\hspace{0pt}\\2', x)), + ("UnicodeApprox", lambda x: re.sub('≈'.encode('utf-8'), b'$\\approx$', x)), + ("UnicodeTriangle", lambda x: re.sub('◁'.encode('utf-8'), b'$\\lhd$', x)), ]