def simplify_horizontal_text_elements(text_blocks: list):
    """Arrange text blocks into something more readable."""
    for i, tz in enumerate(text_blocks):
        old_trm, uc, new_trm = tz[0], tz[1], tz[2]
        x = old_trm[4]
        y = old_trm[5]
        width = new_trm[4] - old_trm[4]
        scaling = old_trm[0]
        text_blocks[i] = {'x': x, 'y': y,'width': width,'scaling': scaling,'text': uc}
    return
Arrange text blocks into something more readable.
pdfsyntax/layout.py