예제 #1
0
 def translate(s):
     if s in greek_unicode:
         return greek_unicode.get(s)
     else:
         return s
예제 #2
0
파일: mathml.py 프로젝트: cklb/sympy
 def translate(s):
     if s in greek_unicode:
         return greek_unicode.get(s)
     else:
         return s
예제 #3
0
#	(3, 8):     VF('THREE EIGHTHS'), (5, 8): VF('FIVE EIGHTHS'), (7, 8): VF('SEVEN EIGHTHS'), }
#
#
#atoms_table = {# class             how-to-display
#	'Exp1':             U('SCRIPT SMALL E'), 'Pi': U('GREEK SMALL LETTER PI'),
#	'Infinity': U('INFINITY'),
#	'NegativeInfinity': U('INFINITY') and ('-' + U('INFINITY')),  # XXX what to do here
#	# 'ImaginaryUnit':    U('GREEK SMALL LETTER IOTA'),
#	# 'ImaginaryUnit':    U('MATHEMATICAL ITALIC SMALL I'),
#	'ImaginaryUnit':    U('DOUBLE-STRUCK ITALIC SMALL I'),
#	'EmptySet': U('EMPTY SET'),
#	'Naturals':         U('DOUBLE-STRUCK CAPITAL N'),
#	'Integers': U('DOUBLE-STRUCK CAPITAL Z'),
#	'Reals':            U('DOUBLE-STRUCK CAPITAL R'),
#	'Union': U('UNION'),
#	'Intersection': U('INTERSECTION'),
#	'Ring':             U('RING OPERATOR')}
#



'\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C6\u03C7\u03C8\u03C9'
'\u03B1\u03B2\u03B3\u03B4\u03B5\u03B6\u03B7\u03B8\u03B9\u03Ba\u03Bb\u03Bc\u03Bd\u03Be\u03Bf'
'\u0391\u0392\u0393\u0394\u0395\u0396\u0397\u0398\u0399\u039a\u039b\u039c\u039d\u039e\u039f'
'\u03A0\u03A1\u03A2\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9'


print(greek_unicode.get('beta'))
print(greek_unicode.get('Beta'))
print(digit_super(3))
print(digit_sub(3))