TNAND chip map: The previous commit did not change the logic board.
[trinary.git] / digital_simulator / Symbols.py
blob66731284781140ad956663276e826aa386ba4146
1 #!env python
2 # vim: set fileencoding=utf8
3 # Created:20080216
4 # By Jeff Connelly
6 # Trinary-related symbols
7 # See http://jeff.tk/wiki/Trinary/Symbols
8 # Note: to print, .encode('utf8') first
10 # MORE IMPORTANT NOTE: This isn't needed most of the time.
11 # Instead, just use the Unicode symbols directly. You can
12 # do this if the second line of the file is:
13 # # vim: set fileencoding=utf8
15 # TODO: Use literal values, actual characters, not escape
17 # Trinary.cc-based unary
18 ROTATE_UP = u"\u2229"
19 ROTATE_DN = u"\u222a"
20 SHIFT_UP = u"\u2197"
21 SHIFT_DN = u"\2198"
22 INVERT = u"/"
24 # Mouftah-based unary
25 FD = u"\u00ac"
26 RD = u"\u2310"
27 PTI = u"\u2518"; PTI2 = u"\u2518"
28 NTI = u"\u2207"; NTI2 = u"\u2514"
29 STI = u"/"
31 # TODO: dyadic
33 # Balanced base 9
34 NONARY = {
35 -1: u"\u2460",
36 -2: u"\u2461",
37 -3: u"\u2462",
38 -4: u"\u2463",
39 0: u"0",
40 1: u"1",
41 2: u"2",
42 3: u"3",
43 4: u"4"}