freealise commited on
Commit
48a174a
·
1 Parent(s): 3a69bf3

link to dict

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