Commit 7fac4f3b by ichuang

formulaequationinput: add capital greek letters and hbar to calc preview

parent 9c6987d0
......@@ -111,7 +111,13 @@ def enrich_varname(varname):
"""
greek = ("alpha beta gamma delta epsilon varepsilon zeta eta theta "
"vartheta iota kappa lambda mu nu xi pi rho sigma tau upsilon "
"phi varphi chi psi omega").split()
"phi varphi chi psi omega hbar").split()
# add capital greek letters
greek += [x.capitalize() for x in greek]
# add hbar for QM
greek.append('hbar')
if varname in greek:
return ur"\{letter}".format(letter=varname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment