# /// script # requires-python = ">=3.10" # dependencies = [] # /// from export_html import build_html rows = [(0, 0, 100, 10), (0, 10, 100, 20)] cols = [(0, 0, 50, 20), (50, 0, 100, 20)] ocr = [{"text": "A&B", "bbox": [0, 0, 40, 9]}, {"text": "x", "bbox": [60, 12, 70, 19]}, {"text": "y", "bbox": [5, 12, 15, 19]}] h = build_html(rows, cols, [(0, 0, 100, 10)], ocr) # first row merged assert '