py/gadict_srs_anki.py
changeset 877 340482715bb0
parent 872 b201a02dc707
child 931 9a5f97027ee7
equal deleted inserted replaced
876:fb18fade83f0 877:340482715bb0
   389         buf.append(sense.pos)
   389         buf.append(sense.pos)
   390         buf.append("</span>")
   390         buf.append("</span>")
   391     have_ref = False
   391     have_ref = False
   392     if sense.topic_list and len(sense.topic_list) > 0:
   392     if sense.topic_list and len(sense.topic_list) > 0:
   393         have_ref = True
   393         have_ref = True
   394         buf.append(u" <span class='topic'>⌊")
   394         buf.append(u" <span class='topic'>【")
   395         buf.append(u", ".join(sense.topic_list))
   395         buf.append(u", ".join(sense.topic_list))
   396         buf.append(u"⌉</span>")
   396         buf.append(u"】</span>")
   397     if sense.ant_list and len(sense.ant_list) > 0:
   397     if sense.ant_list and len(sense.ant_list) > 0:
   398         have_ref = True
   398         have_ref = True
   399         buf.append(" <span class='ant'>ant: ")
   399         buf.append(" <span class='ant'>ant: ")
   400         buf.append("; ".join(sense.ant_list))
   400         buf.append("; ".join(sense.ant_list))
   401         buf.append("</span>")
   401         buf.append("</span>")