freealise commited on
Commit
a2ca746
·
1 Parent(s): 45a391a

link to dict

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -103,9 +103,9 @@ 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
+ 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)