py/gadict_srs_anki.py
changeset 618 6ad7203ac9dc
parent 608 01fcbb1d5cea
child 644 e38cd6112193
--- a/py/gadict_srs_anki.py	Sun Oct 23 19:57:02 2016 +0300
+++ b/py/gadict_srs_anki.py	Sun Oct 23 20:01:22 2016 +0300
@@ -103,6 +103,9 @@
   color: red;
   font-style: italic;
 }
+.topic {
+  color: #B04080;
+}
 .ant {
   color: #404080;
 }
@@ -110,7 +113,13 @@
   color: #804040;
 }
 .rel {
-  color: #804080;
+  color: #604080;
+}
+.hyper {
+  color: #600080;
+}
+.hypo {
+  color: #606080;
 }
 .attrs {
   color: blue;
@@ -192,6 +201,16 @@
         buf.append(" <span class='syn'>syn: ")
         buf.append("; ".join(sense.syn_list))
         buf.append("</span>")
+    if sense.hyper_list and len(sense.hyper_list) > 0:
+        have_ref = True
+        buf.append(" <span class='hyper'>hyper: ")
+        buf.append("; ".join(sense.hyper_list))
+        buf.append("</span>")
+    if sense.hypo_list and len(sense.hypo_list) > 0:
+        have_ref = True
+        buf.append(" <span class='hypo'>hypo: ")
+        buf.append("; ".join(sense.hypo_list))
+        buf.append("</span>")
     if sense.rel_list and len(sense.rel_list) > 0:
         have_ref = True
         buf.append(" <span class='rel'>rel: ")