freealise commited on
Commit
0d7c17f
·
1 Parent(s): dff869a

link to dict

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -103,9 +103,11 @@ if sentence:
103
  for line in ud_output[2:]:
104
  # Each UD line as a table row
105
  cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
106
- cells[2] = """<iframe src='https://freeali.se/freealise/translate/index.htm#gsc.q="""+cells[2]+"""&gsc.tab=1&gsc.sort=' width='256' height='128'></iframe><br/>
107
- <iframe src='https://freeali.se/freealise/translate/loader.htm?q="""+cells[2]+"""' width='256' height='128'></iframe><br/>
108
- <a href='javascript:' onclick=''>""" + cells[2] + """</a>"""
 
 
109
  table_md += "| " + " | ".join(cells) + " |\n"
110
  table_md += "</div>" # Close the RTL div
111
  print(table_md)
 
103
  for line in ud_output[2:]:
104
  # Each UD line as a table row
105
  cells = line.replace('_', '\\_').replace('|', '&#124;').replace(':', '&colon;').split('\t')
106
+
107
+ cells[2] = "<iframe src='https://freeali.se/freealise/translate/index.htm#gsc.q=" + cells[2] + "&gsc.tab=1&gsc.sort=' width='256' height='128'></iframe><br/>"
108
+ cells[2] += "<iframe src='https://freeali.se/freealise/translate/loader.htm?q=" + cells[2] + "' width='256' height='128'></iframe><br/>"
109
+ cells[2] += "<a href='javascript:' onclick=''>" + cells[2] + "</a>"
110
+
111
  table_md += "| " + " | ".join(cells) + " |\n"
112
  table_md += "</div>" # Close the RTL div
113
  print(table_md)