def bbox_horz_aligned(box1, box2):
if not (box1 and box2):<EOL><INDENT>return False<EOL><DEDENT>box1_top = box1.top + <NUM_LIT><EOL>box2_top = box2.top + <NUM_LIT><EOL>box1_bottom = box1.bottom - <NUM_LIT><EOL>box2_bottom = box2.bottom - <NUM_LIT><EOL>return not (box1_top > box2_bottom or box2_top > box1_bottom)<EOL>
Returns true if the vertical center point of either span is within the
vertical range of the other