aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-12-23 14:20:10 +0100
committerMattias Andrée <maandree@operamail.com>2012-12-23 14:20:10 +0100
commit12c0001baa37bef59ea4f02d8e0fda5ce9d7e181 (patch)
tree797371ed225ca95a3226695fca50908719863c28
parentadd suppot for ¬ (diff)
downloadsets-12c0001baa37bef59ea4f02d8e0fda5ce9d7e181.tar.gz
sets-12c0001baa37bef59ea4f02d8e0fda5ce9d7e181.tar.bz2
sets-12c0001baa37bef59ea4f02d8e0fda5ce9d7e181.tar.xz
add unicode support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--sets.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sets.py b/sets.py
index eae0eef..9a514ae 100644
--- a/sets.py
+++ b/sets.py
@@ -109,7 +109,12 @@ if len(next.elems) > 0:
formula = sys.argv[1]
formula = formula.replace('\\', '-').replace('*', '&').replace('+', '|')
formula = formula.replace('C', '~').replace('!', '~').replace('¬', '~')
-
+formula = formula.replace('∁', '~').replace('∅', '0').replace('∆', '^')
+formula = formula.replace('∧', '&').replace('∨', '|').replace('∩', '&')
+formula = formula.replace('∪', '|').replace('⊗', '^').replace('⊻', '^')
+formula = formula.replace('⋀', '&').replace('⋁', '|').replace('⋂', '&')
+formula = formula.replace('⋃', '|').replace('Ω', 'U').replace('Ω', 'U')
+formula = formula.replace('⊕', '^').replace('𝓤', 'U').replace('↛', '-')
for i in range(0, 10):