From 04de45cc4f9c3ae5fe7ca0210222d1a6ec52f67c Mon Sep 17 00:00:00 2001 From: nbertagnolli Date: Mon, 30 Dec 2019 00:38:31 -0700 Subject: [PATCH] Added unicode support for pi, infinity and a few others --- lib/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils.py b/lib/utils.py index c05e287..2e6c7ce 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -97,6 +97,11 @@ u'\xe2' : 'a', # a with caret u'\xf6' : 'o', # o with umlaut u'\xed' : 'i', # i with accent + u'\u03c0' : 'pi', # pi + u'\xae' : 'r', # Registered trademark as r + u'\xbd' : "1/2", # 1/2 unicode to string + u'\u221e': "inf", # infinity + u'\u2610': "na" # ballot box as na } # this one is one-way only