# otherwise we ommit the reaction but render anything else (possibly brackets)
elifsymbol[0]=="degreesexpr":
# in most of the cases we want to simply display the number. Sometimes the situation is more complex. We need to look if the number should be annotated with subsequent numbers
# Examples:
# THETA(P=4,P=1,RF=LAB) IN DEG : 140,+30,-40 AND 165,+15,-25
When calling this method, the original symbol (RE and THETA in examples) has already
been resolved. We have to parse everything in brackets
also the first SOMETHING= has been resolved already
@param is_real Specifies if RE sign should be treated as real part
@type is_real boolean
"""
res=[]
specifier_sections={}# we maintain a list of all specifiers before rendering (we have to assign position to them and to. for a specifier we remember a list of parsed values
cur_token=(None,None)
next_specifier=initial_specifier
whilecur_token[0]!="close_b":# this one will be finished in only one case
cur_specifier=next_specifier.upper()
tokens_list=[]
# hunting for the coma or closing bracket
cur_token=(None,None)
brackets_count=0# we want to count brackets and escape in the case of too many closing
c.append("<br><a href=\"%(plot_page_url)s\" class=\"hepdataPlotLink\"><img src=\"%(plot_image_url)s\" alt=\"The plot is not available\" class=\"hepdataimg\"></a>"%args)