Commit 61d5c4ef by ichuang

Merge pull request #888 from edx/fix/ichuang/add-capital-greek-to-formulaequationinput

formulaequationinput: add capital greek letters and hbar to calc preview
parents cbbfc41c ab203fb6
...@@ -113,6 +113,12 @@ def enrich_varname(varname): ...@@ -113,6 +113,12 @@ def enrich_varname(varname):
"vartheta iota kappa lambda mu nu xi pi rho sigma tau upsilon " "vartheta iota kappa lambda mu nu xi pi rho sigma tau upsilon "
"phi varphi chi psi omega").split() "phi varphi chi psi omega").split()
# add capital greek letters
greek += [x.capitalize() for x in greek]
# add hbar for QM
greek.append('hbar')
if varname in greek: if varname in greek:
return ur"\{letter}".format(letter=varname) return ur"\{letter}".format(letter=varname)
else: else:
......
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