Spaces:
Running
Running
Update app.py
Browse files18 unmodified lines192021222324259 unmodified lines353637383940411 unmodified line4344454647484910 unmodified lines6061626364656618 unmodified linestable_chunks = calculate_clean_chunks(words_data)for idx, current_chunk in enumerate(table_chunks):# Start tablehtml_output.append(f'<table style="{table_style}" align="center" cellpadding="5" cellspacing="0">')html_output.append(' <colgroup>')for _ in range(total_slots):9 unmodified linescurrent_chunk.append({"hebrew": " ", "transliteration": " ", "translation": " ", "morphology": " "})allocated_slots += 1# ROW 1: Hebrewhtml_output.append(' <tr style="height: auto; line-height: 1.0 !important;">')if is_first:html_output.append(f' <td style="{heading_cell_style}">{reference}</td>')1 unmodified linehtml_output.append(f' <td style="{hebrew_cell_style}">{word.get("hebrew", " ")}</td>')html_output.append(' </tr>')# ROW 2: Englishhtml_output.append(' <tr style="height: auto; line-height: 1.0 !important;">')if is_first:formatted_manuscript = manuscript.replace(" ", "<br>") if " " in manuscript else manuscript10 unmodified lineshtml_output.append(f' <td style="{english_cell_style}"> </td>')html_output.append(' </tr>')# Close table and add spacerhtml_output.append('</table><br><br>')html_output.append('</div>')18 unmodified lines192021222324259 unmodified lines353637383940411 unmodified line4344454647484910 unmodified lines6061626364656618 unmodified linestable_chunks = calculate_clean_chunks(words_data)for idx, current_chunk in enumerate(table_chunks):# Start Table for this chunkhtml_output.append(f'<table style="{table_style}" align="center" cellpadding="5" cellspacing="0">')html_output.append(' <colgroup>')for _ in range(total_slots):9 unmodified linescurrent_chunk.append({"hebrew": " ", "transliteration": " ", "translation": " ", "morphology": " "})allocated_slots += 1# Row 1: Hebrewhtml_output.append(' <tr style="height: auto; line-height: 1.0 !important;">')if is_first:html_output.append(f' <td style="{heading_cell_style}">{reference}</td>')1 unmodified linehtml_output.append(f' <td style="{hebrew_cell_style}">{word.get("hebrew", " ")}</td>')html_output.append(' </tr>')# Row 2: Englishhtml_output.append(' <tr style="height: auto; line-height: 1.0 !important;">')if is_first:formatted_manuscript = manuscript.replace(" ", "<br>") if " " in manuscript else manuscript10 unmodified lineshtml_output.append(f' <td style="{english_cell_style}"> </td>')html_output.append(' </tr>')# End Table + Spacerhtml_output.append('</table><br><br>')html_output.append('</div>')
app.py+4-4