py/gadict_srs_anki.py
changeset 618 6ad7203ac9dc
parent 608 01fcbb1d5cea
child 644 e38cd6112193
equal deleted inserted replaced
617:ec1c2838feae 618:6ad7203ac9dc
   101 }
   101 }
   102 .lang {
   102 .lang {
   103   color: red;
   103   color: red;
   104   font-style: italic;
   104   font-style: italic;
   105 }
   105 }
       
   106 .topic {
       
   107   color: #B04080;
       
   108 }
   106 .ant {
   109 .ant {
   107   color: #404080;
   110   color: #404080;
   108 }
   111 }
   109 .syn {
   112 .syn {
   110   color: #804040;
   113   color: #804040;
   111 }
   114 }
   112 .rel {
   115 .rel {
   113   color: #804080;
   116   color: #604080;
       
   117 }
       
   118 .hyper {
       
   119   color: #600080;
       
   120 }
       
   121 .hypo {
       
   122   color: #606080;
   114 }
   123 }
   115 .attrs {
   124 .attrs {
   116   color: blue;
   125   color: blue;
   117 }
   126 }
   118 span.ex {
   127 span.ex {
   189         buf.append("</span>")
   198         buf.append("</span>")
   190     if sense.syn_list and len(sense.syn_list) > 0:
   199     if sense.syn_list and len(sense.syn_list) > 0:
   191         have_ref = True
   200         have_ref = True
   192         buf.append(" <span class='syn'>syn: ")
   201         buf.append(" <span class='syn'>syn: ")
   193         buf.append("; ".join(sense.syn_list))
   202         buf.append("; ".join(sense.syn_list))
       
   203         buf.append("</span>")
       
   204     if sense.hyper_list and len(sense.hyper_list) > 0:
       
   205         have_ref = True
       
   206         buf.append(" <span class='hyper'>hyper: ")
       
   207         buf.append("; ".join(sense.hyper_list))
       
   208         buf.append("</span>")
       
   209     if sense.hypo_list and len(sense.hypo_list) > 0:
       
   210         have_ref = True
       
   211         buf.append(" <span class='hypo'>hypo: ")
       
   212         buf.append("; ".join(sense.hypo_list))
   194         buf.append("</span>")
   213         buf.append("</span>")
   195     if sense.rel_list and len(sense.rel_list) > 0:
   214     if sense.rel_list and len(sense.rel_list) > 0:
   196         have_ref = True
   215         have_ref = True
   197         buf.append(" <span class='rel'>rel: ")
   216         buf.append(" <span class='rel'>rel: ")
   198         buf.append("; ".join(sense.rel_list))
   217         buf.append("; ".join(sense.rel_list))