"""Standalone, standard-library checker for the published synthetic PDF corpus.""" import argparse,json,re,unicodedata from pathlib import Path def normalize(value):return re.sub(r'\s+',' ',unicodedata.normalize('NFKC',str(value))).strip().casefold() def pipe_tables(text): tables=[];lines=text.splitlines();i=0 def row(line):return [cell.strip() for cell in line.strip().strip('|').split('|')] while i+1