Added support for homonyms into HTML form.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 28 Mar 2018 20:40:53 +0300
changeset 1032 b8e3e97178ca
parent 1031 bd264a649916
child 1033 68dd3ebf1f4d
Added support for homonyms into HTML form.
py/gadict_html.py
--- a/py/gadict_html.py	Wed Mar 28 20:40:11 2018 +0300
+++ b/py/gadict_html.py	Wed Mar 28 20:40:53 2018 +0300
@@ -144,6 +144,10 @@
             l.sort()
             FOUT.write(", ".join(l))
             FOUT.write("</span>")
+        if hw.homo is not None and len(hw.homo) > 0:
+            FOUT.write(" homo: <span class='homo'>")
+            FOUT.write(link(hw.homo))
+            FOUT.write("</span>")
         FOUT.write("</div>\n")
     for sense in translations:
         if not sense: