File size: 312,485 Bytes
eecd46e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
{
 "datasheet_version": "release2 for rc1_data, written 2026-11-26T02:20:41Z; updated 2026-11-26 (owner decision of 26 Nov 2026 on D1 and D2; real data sets cited with where to obtain them; detector entry for the D5 retrain)",
 "dataset_name": "Turkic OCR generated data: synthetic handwriting lines, typed lines, empty clutter crops and whole pages in ten Turkic language-script pairs (page generator pagesynth 0.3.0, round R5)",
 "status": "release candidate; nothing has been uploaded anywhere; the owner chooses the destination",
 "licensor": "Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova",
 "copyright": "Copyright 2026 Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova",
 "citation": "Suleimenov, A., Bolatov, Z., Baglanova, A., Kadirbekova, A., Nguyen, A. T. (2026). A Handwriting Recognition Model for Turkic Languages in Latin and Cyrillic Script. Project report, Nazarbayev University.",
 "how_to_read": {
  "path_prefixes": {
   "CODE": "the project's code root (generator under CODE/src/pagesynth; production drivers under CODE/src/pagesynth/scripts and the round scripts)",
   "DATA": "the project's data root on its compute cluster",
   "records": "the project's internal working records of round R5 (not published)",
   "PROJ": "the project's documentation folder (not published)",
   "RS": "local copies of cluster code read for this release (records/R5/RELEASE2/src_read/real)"
  },
  "references": "Code references are file:function (lines). Report references are path#key. Every stage lists what was done, its parameters, and where the code or record says so; 'disagreements' list places where a record and the code differ (the code decides what was generated); 'unknowns' say what is not settled and how to find out.",
  "sources_of_this_datasheet": [
   "generator sections: generator documentation (records/R5/RELEASE2/work/gen_sections.json), from the generator code version 0.3.0 and the GEN reports",
   "real-data, freeze, mix and print sections: real-data documentation (records/R5/RELEASE2/work/real_sections.json), from the DATA, FREEZE and PRINT records and code",
   "regeneration check: job B (rel2_regen.py) and release filtering: job C (rel2_build_data.py), by the project"
  ]
 },
 "owner_decisions": {
  "date": "2026-11-25",
  "source": "owner, quoted verbatim, 25 Nov 2026: \"Yes, use your recommended release defaults and proceed comprehensively.\"; the defaults are listed per decision",
  "decisions": {
   "D3": {
    "decision": "weights and the character language model under CC BY-NC-SA 4.0, shipped with each base model's Apache-2.0 text and a modification notice",
    "applied": "LICENSE, LICENSE.Apache-2.0 (and LICENSE.base-model for PaddleOCR-VL) and NOTICE added to the three reader packages; cards updated"
   },
   "D4": {
    "decision": "accept the personal-use fonts in the training data and disclose them in the cards and the datasheet (which fonts, how many training lines and pages, and that the weights contain no font files)",
    "applied": "font_disclosure block in every card; datasheet section licences_and_attribution.personal_use_fonts_disclosure"
   },
   "D5": {
    "decision": "retrain the stage-2 detector without the 83 personal-use-font pages, then AGPL-3.0",
    "applied": "training data prepared (job 55665); GPU job and spec written, not submitted (records/R5/RELEASE2/d5/); the rc1 detector weights are marked not for release"
   },
   "D6": {
    "decision": "Sakha newspaper text stays excluded",
    "applied": "unchanged: 9,707 items excluded from rc1_data"
   },
   "D7": {
    "decision": "the real-print pointer list stays out for now (conservative default because the owner gave no preference); reversible",
    "applied": "DATA/release/rc1_data_print_pointers kept on disk, not in the publication list"
   },
   "D9": {
    "decision": "data as Parquet shards with embedded images, public; weights in gated repositories with a research-use prompt",
    "applied": "DATA/release/rc1_data_parquet built and verified byte for byte; cards name gated access"
   },
   "D10": {
    "decision": "stage-2 generated data: not now",
    "applied": "not packaged"
   },
   "D11": {
    "decision": "own code under Apache-2.0; the detector training and inference path and the page pipeline under AGPL-3.0",
    "applied": "infer.py of the three readers under Apache-2.0 (LICENSE files); detector and page-pipeline packages carry the AGPL-3.0 text"
   },
   "D13": {
    "decision": "accept the unfiltered texts, with a datasheet note that the sentences come unfiltered from Wikipedia and web text and can name real people",
    "applied": "datasheet composition and known limits; cards limits"
   },
   "D14": {
    "decision": "resolved: the PaddleOCR-VL base chain is Apache-2.0 (PaddleOCR-VL-1.6 <- 1.5 <- PaddleOCR-VL, vision encoder initialised from Keye-VL, itself from SigLIP so400m; all Apache-2.0); ship the licence text, mark changes, keep the notices",
    "source": "records/R5/RELEASE2/keye_provenance.json",
    "applied": "NOTICE of the PaddleOCR-VL package states the chain; LICENSE.base-model is the PaddleOCR-VL-1.6 LICENSE file at the pinned revision"
   }
  },
  "still_open_for_owner": {},
  "decisions_2026_11_26": {
   "date": "2026-11-26",
   "source": "owner, 26 Nov 2026 about 06:30 UTC, quoted verbatim: \"We still do not have permission, so we are releasing only what we can distribute. For others just to cite and reference where to download.\"; recorded reading: this settles D1 and D2, the three reader packages (PaddleOCR-VL-1.6, Qwen3-VL-2B, PP-OCRv6-medium with its character language model) are not released; the release is the generated data (CC BY-SA 4.0), the retrained detector with the page-pipeline code (AGPL-3.0) and the project's code",
   "decisions": {
    "D1": "not released: the weights of the three readers (PaddleOCR-VL-1.6, Qwen3-VL-2B, PP-OCRv6-medium) and the character language model lm/char6.klm, because the KOHTD and HKR authors have not given permission; the real data sets are cited with where to obtain them",
    "D2": "moot for this release: no released object is trained on HKR (the readers are not released; the detector and the generated data never used HKR); the provenance of the project's HKR copy (third-party Kaggle upload scispecai/hkr-dat, licence 'Unknown') stays disclosed",
    "D3_effect": "no released object: the CC BY-NC-SA 4.0 terms decided for the reader weights and the character language model stay recorded, but nothing under them is released",
    "D9_effect": "the gated model repositories for the readers have no object; the detector (AGPL-3.0, with the page-pipeline code) and the generated data remain"
   },
   "D8": {
    "date": "2026-11-26",
    "source": "owner, 26 Nov 2026 about 06:40 UTC, quoted verbatim: \"Yes, use the four authors as licensor.\"; the names are in the order of docs/proposal.pdf (checked: page 1 lists Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova), the copyright line, the citation, and the rule that no e-mail address or other personal detail is written",
    "decision": {
     "licensor": "Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova",
     "copyright": "Copyright 2026 Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova",
     "citation": "Suleimenov, A., Bolatov, Z., Baglanova, A., Kadirbekova, A., Nguyen, A. T. (2026). A Handwriting Recognition Model for Turkic Languages in Latin and Cyrillic Script. Project report, Nazarbayev University.",
     "contact": "the issue page of the release repository (to be filled once the owner chooses where to upload)",
     "applies_to": "the released packages: generated data (rc1_data, rc1_data_parquet), the line detector, the page pipeline and the code; the withheld reader packages are left as they are"
    }
   },
   "still_open_for_owner": {}
  }
 },
 "motivation": {
  "purpose": "Training and evaluating one OCR model for handwritten and printed text in nine Turkic languages (Kazakh, Kyrgyz, Uzbek in Cyrillic and Latin, Tatar, Bashkir, Sakha, Turkish, Azerbaijani, Turkmen). Real handwriting with exact labels exists only for Kazakh (KOHTD) and Russian; for the other languages and for the whole Latin script the only handwriting is generated here.",
  "creators": "the project (research only, non-commercial); generator pagesynth 0.3.0 written for round R5 (20-21 Nov 2026)",
  "funding": "not stated in the records (owner to fill in before publication)"
 },
 "composition": {
  "what": "Images rendered by the project's page generator from real sentences with handwriting-style and print fonts; no real handwriting, no real printed page and no real photograph is in the package. Four kinds: hand (line crops of simulated handwriting), typed (line crops of printed worksheet and table text), clutter (line-shaped crops without text; label is the empty string), pages (whole simulated pages with PageXML and the generator's page JSON).",
  "languages": {
   "kk": "Kazakh, Cyrillic",
   "ky": "Kyrgyz, Cyrillic",
   "uz_cyrl": "Uzbek, Cyrillic",
   "uz_latn": "Uzbek, Latin",
   "tr": "Turkish, Latin",
   "az": "Azerbaijani, Latin",
   "tt": "Tatar, Cyrillic",
   "ba": "Bashkir, Cyrillic",
   "tk": "Turkmen, Latin",
   "sah": "Sakha (Yakut), Cyrillic"
  },
  "splits": "train = the frozen training rows of mix_v1 (ids unchanged); val and test = the frozen evaluation rows (frozen_eval_v1). The generated test split is the project's own and is released with labels; no real-data test set is in the package.",
  "counts_by_kind_and_split": {
   "clutter": {
    "test": {
     "in_frozen_split": 500,
     "kept": 500
    },
    "train": {
     "excluded:personal_use_font_on_page": 144,
     "excluded_items": 149,
     "in_frozen_split": 6000,
     "kept": 5851,
     "excluded:regenerated_page_content_differs_from_stored_rows": 5,
     "excluded:regenerated_page_lacks_a_stored_row_font": 5,
     "excluded:row_not_reproduced_by_regeneration": 2
    },
    "val": {
     "in_frozen_split": 500,
     "kept": 500
    }
   },
   "hand": {
    "test": {
     "in_frozen_split": 10000,
     "kept": 9575,
     "kept_with_text_source:fw2": 4837,
     "kept_with_text_source:wiki": 2492,
     "excluded:text_source_not_cleared:ailab": 425,
     "excluded_items": 425
    },
    "train": {
     "dropped_at_freeze_not_in_frozen_split": 156,
     "excluded:personal_use_font_on_page": 3022,
     "excluded:regenerated_page_content_differs_from_stored_rows": 102,
     "excluded:regenerated_page_lacks_a_stored_row_font": 60,
     "excluded_items": 8194,
     "in_frozen_split": 119844,
     "kept": 111650,
     "kept_with_text_source:fw2": 54054,
     "kept_with_text_source:wiki": 29842,
     "excluded:text_source_not_cleared:ailab": 5036,
     "excluded:text_source_not_cleared:ailab_unattributed_match": 39
    },
    "val": {
     "in_frozen_split": 10000,
     "kept": 9540,
     "kept_with_text_source:fw2": 4675,
     "kept_with_text_source:wiki": 2620,
     "excluded:text_source_not_cleared:ailab": 459,
     "excluded:text_source_not_cleared:ailab_unattributed_match": 1,
     "excluded_items": 460
    }
   },
   "pages": {
    "test": {
     "in_frozen_split": 300,
     "kept": 272,
     "kept_with_text_source:fw2": 265,
     "kept_with_text_source:wiki": 210,
     "excluded:text_source_not_cleared:ailab": 28,
     "excluded_items": 28
    },
    "train": {
     "excluded:personal_use_font_on_page": 83,
     "excluded_items": 467,
     "in_frozen_split": 3999,
     "kept": 3532,
     "kept_with_text_source:fw2": 3449,
     "kept_with_text_source:wiki": 2809,
     "excluded:text_source_not_cleared:ailab": 383,
     "excluded:text_source_not_cleared:ailab_unattributed_match": 1
    },
    "val": {
     "in_frozen_split": 300,
     "kept": 271,
     "kept_with_text_source:fw2": 263,
     "kept_with_text_source:wiki": 214,
     "excluded:text_source_not_cleared:ailab": 29,
     "excluded_items": 29
    }
   },
   "typed": {
    "test": {
     "in_frozen_split": 5000,
     "kept": 4762,
     "kept_with_text_source:fw2": 2370,
     "kept_with_text_source:wiki": 1207,
     "excluded:text_source_not_cleared:ailab": 217,
     "excluded:text_source_not_cleared:ailab_unattributed_match": 21,
     "excluded_items": 238
    },
    "train": {
     "dropped_at_freeze_not_in_frozen_split": 85,
     "excluded:personal_use_font_on_page": 1681,
     "excluded_items": 4488,
     "in_frozen_split": 59915,
     "kept": 55427,
     "kept_with_text_source:fw2": 26864,
     "kept_with_text_source:wiki": 14348,
     "excluded:text_source_not_cleared:ailab": 2526,
     "excluded:text_source_not_cleared:ailab_unattributed_match": 281
    },
    "val": {
     "in_frozen_split": 5000,
     "kept": 4739,
     "kept_with_text_source:fw2": 2319,
     "kept_with_text_source:wiki": 1283,
     "excluded:text_source_not_cleared:ailab": 235,
     "excluded:text_source_not_cleared:ailab_unattributed_match": 26,
     "excluded_items": 261
    }
   }
  },
  "counts_by_kind_split_language": {
   "clutter": {
    "test": {
     "az": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "ba": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "kk": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "ky": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "sah": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "tk": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "tr": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "tt": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "uz_cyrl": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "uz_latn": {
      "in_frozen_split": 50,
      "kept": 50
     }
    },
    "train": {
     "az": {
      "excluded:personal_use_font_on_page": 34,
      "excluded_items": 34,
      "in_frozen_split": 600,
      "kept": 566
     },
     "ba": {
      "excluded:regenerated_page_content_differs_from_stored_rows": 2,
      "excluded:regenerated_page_lacks_a_stored_row_font": 2,
      "excluded_items": 2,
      "in_frozen_split": 600,
      "kept": 598
     },
     "kk": {
      "excluded:regenerated_page_content_differs_from_stored_rows": 1,
      "excluded:regenerated_page_lacks_a_stored_row_font": 1,
      "excluded_items": 1,
      "in_frozen_split": 600,
      "kept": 599
     },
     "ky": {
      "in_frozen_split": 600,
      "kept": 600
     },
     "sah": {
      "in_frozen_split": 600,
      "kept": 600
     },
     "tk": {
      "excluded:personal_use_font_on_page": 22,
      "excluded:regenerated_page_content_differs_from_stored_rows": 2,
      "excluded:regenerated_page_lacks_a_stored_row_font": 2,
      "excluded:row_not_reproduced_by_regeneration": 2,
      "excluded_items": 24,
      "in_frozen_split": 600,
      "kept": 576
     },
     "tr": {
      "excluded:personal_use_font_on_page": 11,
      "excluded_items": 11,
      "in_frozen_split": 600,
      "kept": 589
     },
     "tt": {
      "in_frozen_split": 600,
      "kept": 600
     },
     "uz_cyrl": {
      "in_frozen_split": 600,
      "kept": 600
     },
     "uz_latn": {
      "excluded:personal_use_font_on_page": 77,
      "excluded_items": 77,
      "in_frozen_split": 600,
      "kept": 523
     }
    },
    "val": {
     "az": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "ba": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "kk": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "ky": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "sah": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "tk": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "tr": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "tt": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "uz_cyrl": {
      "in_frozen_split": 50,
      "kept": 50
     },
     "uz_latn": {
      "in_frozen_split": 50,
      "kept": 50
     }
    }
   },
   "hand": {
    "test": {
     "az": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 423,
      "kept_with_text_source:wiki": 364
     },
     "ba": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 442,
      "kept_with_text_source:wiki": 347
     },
     "kk": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 412,
      "kept_with_text_source:wiki": 349
     },
     "ky": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 491,
      "kept_with_text_source:wiki": 284
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 425,
      "excluded_items": 425,
      "in_frozen_split": 1000,
      "kept": 575,
      "kept_with_text_source:fw2": 261,
      "kept_with_text_source:wiki": 57
     },
     "tk": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 761,
      "kept_with_text_source:wiki": 56
     },
     "tr": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 374,
      "kept_with_text_source:wiki": 381
     },
     "tt": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 487,
      "kept_with_text_source:wiki": 308
     },
     "uz_cyrl": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 762,
      "kept_with_text_source:wiki": 2
     },
     "uz_latn": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 424,
      "kept_with_text_source:wiki": 344
     }
    },
    "train": {
     "az": {
      "dropped_at_freeze_not_in_frozen_split": 2,
      "excluded:personal_use_font_on_page": 570,
      "excluded:regenerated_page_content_differs_from_stored_rows": 6,
      "excluded:regenerated_page_lacks_a_stored_row_font": 6,
      "excluded_items": 576,
      "in_frozen_split": 11998,
      "kept": 11422,
      "kept_with_text_source:fw2": 4526,
      "kept_with_text_source:wiki": 4497
     },
     "ba": {
      "dropped_at_freeze_not_in_frozen_split": 6,
      "excluded:regenerated_page_content_differs_from_stored_rows": 24,
      "excluded:regenerated_page_lacks_a_stored_row_font": 18,
      "excluded_items": 24,
      "in_frozen_split": 11994,
      "kept": 11970,
      "kept_with_text_source:fw2": 4893,
      "kept_with_text_source:wiki": 4325
     },
     "kk": {
      "dropped_at_freeze_not_in_frozen_split": 8,
      "excluded:regenerated_page_content_differs_from_stored_rows": 12,
      "excluded:regenerated_page_lacks_a_stored_row_font": 12,
      "excluded_items": 12,
      "in_frozen_split": 11992,
      "kept": 11980,
      "kept_with_text_source:fw2": 4831,
      "kept_with_text_source:wiki": 4343
     },
     "ky": {
      "dropped_at_freeze_not_in_frozen_split": 10,
      "excluded:regenerated_page_content_differs_from_stored_rows": 6,
      "excluded:regenerated_page_lacks_a_stored_row_font": 6,
      "excluded_items": 6,
      "in_frozen_split": 11990,
      "kept": 11984,
      "kept_with_text_source:fw2": 5779,
      "kept_with_text_source:wiki": 3399
     },
     "sah": {
      "excluded:regenerated_page_content_differs_from_stored_rows": 12,
      "excluded:text_source_not_cleared:ailab": 5036,
      "excluded:text_source_not_cleared:ailab_unattributed_match": 39,
      "excluded_items": 5082,
      "in_frozen_split": 12000,
      "kept": 6918,
      "kept_with_text_source:fw2": 2983,
      "kept_with_text_source:wiki": 731
     },
     "tk": {
      "excluded:personal_use_font_on_page": 473,
      "excluded:regenerated_page_content_differs_from_stored_rows": 6,
      "excluded:regenerated_page_lacks_a_stored_row_font": 6,
      "excluded_items": 479,
      "in_frozen_split": 12000,
      "kept": 11521,
      "kept_with_text_source:fw2": 8114,
      "kept_with_text_source:wiki": 617
     },
     "tr": {
      "dropped_at_freeze_not_in_frozen_split": 5,
      "excluded:personal_use_font_on_page": 360,
      "excluded:regenerated_page_content_differs_from_stored_rows": 18,
      "excluded:regenerated_page_lacks_a_stored_row_font": 6,
      "excluded_items": 378,
      "in_frozen_split": 11995,
      "kept": 11617,
      "kept_with_text_source:fw2": 4506,
      "kept_with_text_source:wiki": 4422
     },
     "tt": {
      "dropped_at_freeze_not_in_frozen_split": 122,
      "excluded:regenerated_page_content_differs_from_stored_rows": 6,
      "excluded_items": 6,
      "in_frozen_split": 11878,
      "kept": 11872,
      "kept_with_text_source:fw2": 5270,
      "kept_with_text_source:wiki": 3918
     },
     "uz_cyrl": {
      "excluded:regenerated_page_content_differs_from_stored_rows": 12,
      "excluded:regenerated_page_lacks_a_stored_row_font": 6,
      "excluded_items": 12,
      "in_frozen_split": 12000,
      "kept": 11988,
      "kept_with_text_source:fw2": 8672,
      "kept_with_text_source:wiki": 34
     },
     "uz_latn": {
      "dropped_at_freeze_not_in_frozen_split": 3,
      "excluded:personal_use_font_on_page": 1619,
      "excluded_items": 1619,
      "in_frozen_split": 11997,
      "kept": 10378,
      "kept_with_text_source:fw2": 4480,
      "kept_with_text_source:wiki": 3556
     }
    },
    "val": {
     "az": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 411,
      "kept_with_text_source:wiki": 371
     },
     "ba": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 394,
      "kept_with_text_source:wiki": 335
     },
     "kk": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 398,
      "kept_with_text_source:wiki": 366
     },
     "ky": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 482,
      "kept_with_text_source:wiki": 326
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 459,
      "excluded:text_source_not_cleared:ailab_unattributed_match": 1,
      "excluded_items": 460,
      "in_frozen_split": 1000,
      "kept": 540,
      "kept_with_text_source:fw2": 241,
      "kept_with_text_source:wiki": 66
     },
     "tk": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 718,
      "kept_with_text_source:wiki": 51
     },
     "tr": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 420,
      "kept_with_text_source:wiki": 404
     },
     "tt": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 428,
      "kept_with_text_source:wiki": 376
     },
     "uz_cyrl": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 780,
      "kept_with_text_source:wiki": 1
     },
     "uz_latn": {
      "in_frozen_split": 1000,
      "kept": 1000,
      "kept_with_text_source:fw2": 403,
      "kept_with_text_source:wiki": 324
     }
    }
   },
   "pages": {
    "test": {
     "az": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30,
      "kept_with_text_source:wiki": 28
     },
     "ba": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 27,
      "kept_with_text_source:wiki": 29
     },
     "kk": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 28,
      "kept_with_text_source:wiki": 28
     },
     "ky": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30,
      "kept_with_text_source:wiki": 28
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 28,
      "excluded_items": 28,
      "in_frozen_split": 30,
      "kept": 2,
      "kept_with_text_source:fw2": 2
     },
     "tk": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30,
      "kept_with_text_source:wiki": 9
     },
     "tr": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 29,
      "kept_with_text_source:wiki": 30
     },
     "tt": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 29,
      "kept_with_text_source:wiki": 28
     },
     "uz_cyrl": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30
     },
     "uz_latn": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30,
      "kept_with_text_source:wiki": 30
     }
    },
    "train": {
     "az": {
      "excluded:personal_use_font_on_page": 14,
      "excluded_items": 14,
      "in_frozen_split": 400,
      "kept": 386,
      "kept_with_text_source:fw2": 374,
      "kept_with_text_source:wiki": 376
     },
     "ba": {
      "in_frozen_split": 400,
      "kept": 400,
      "kept_with_text_source:fw2": 391,
      "kept_with_text_source:wiki": 391
     },
     "kk": {
      "in_frozen_split": 400,
      "kept": 400,
      "kept_with_text_source:fw2": 389,
      "kept_with_text_source:wiki": 387
     },
     "ky": {
      "in_frozen_split": 400,
      "kept": 400,
      "kept_with_text_source:fw2": 394,
      "kept_with_text_source:wiki": 377
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 383,
      "excluded:text_source_not_cleared:ailab_unattributed_match": 1,
      "excluded_items": 384,
      "in_frozen_split": 400,
      "kept": 16,
      "kept_with_text_source:fw2": 11,
      "kept_with_text_source:wiki": 5
     },
     "tk": {
      "excluded:personal_use_font_on_page": 18,
      "excluded_items": 18,
      "in_frozen_split": 399,
      "kept": 381,
      "kept_with_text_source:fw2": 381,
      "kept_with_text_source:wiki": 153
     },
     "tr": {
      "excluded:personal_use_font_on_page": 9,
      "excluded_items": 9,
      "in_frozen_split": 400,
      "kept": 391,
      "kept_with_text_source:fw2": 376,
      "kept_with_text_source:wiki": 379
     },
     "tt": {
      "in_frozen_split": 400,
      "kept": 400,
      "kept_with_text_source:fw2": 394,
      "kept_with_text_source:wiki": 387
     },
     "uz_cyrl": {
      "in_frozen_split": 400,
      "kept": 400,
      "kept_with_text_source:fw2": 400,
      "kept_with_text_source:wiki": 11
     },
     "uz_latn": {
      "excluded:personal_use_font_on_page": 42,
      "excluded_items": 42,
      "in_frozen_split": 400,
      "kept": 358,
      "kept_with_text_source:fw2": 339,
      "kept_with_text_source:wiki": 343
     }
    },
    "val": {
     "az": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 29,
      "kept_with_text_source:wiki": 29
     },
     "ba": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 29,
      "kept_with_text_source:wiki": 27
     },
     "kk": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 28,
      "kept_with_text_source:wiki": 29
     },
     "ky": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 29,
      "kept_with_text_source:wiki": 28
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 29,
      "excluded_items": 29,
      "in_frozen_split": 30,
      "kept": 1,
      "kept_with_text_source:fw2": 1,
      "kept_with_text_source:wiki": 1
     },
     "tk": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30,
      "kept_with_text_source:wiki": 11
     },
     "tr": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30,
      "kept_with_text_source:wiki": 30
     },
     "tt": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 28,
      "kept_with_text_source:wiki": 29
     },
     "uz_cyrl": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 30
     },
     "uz_latn": {
      "in_frozen_split": 30,
      "kept": 30,
      "kept_with_text_source:fw2": 29,
      "kept_with_text_source:wiki": 30
     }
    }
   },
   "typed": {
    "test": {
     "az": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 184,
      "kept_with_text_source:wiki": 181
     },
     "ba": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 203,
      "kept_with_text_source:wiki": 159
     },
     "kk": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 214,
      "kept_with_text_source:wiki": 156
     },
     "ky": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 264,
      "kept_with_text_source:wiki": 135
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 217,
      "excluded:text_source_not_cleared:ailab_unattributed_match": 21,
      "excluded_items": 238,
      "in_frozen_split": 500,
      "kept": 262,
      "kept_with_text_source:fw2": 131,
      "kept_with_text_source:wiki": 20
     },
     "tk": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 354,
      "kept_with_text_source:wiki": 20
     },
     "tr": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 186,
      "kept_with_text_source:wiki": 211
     },
     "tt": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 255,
      "kept_with_text_source:wiki": 153
     },
     "uz_cyrl": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 375,
      "kept_with_text_source:wiki": 1
     },
     "uz_latn": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 204,
      "kept_with_text_source:wiki": 171
     }
    },
    "train": {
     "az": {
      "dropped_at_freeze_not_in_frozen_split": 4,
      "excluded:personal_use_font_on_page": 433,
      "excluded_items": 433,
      "in_frozen_split": 5996,
      "kept": 5563,
      "kept_with_text_source:fw2": 1989,
      "kept_with_text_source:wiki": 2030
     },
     "ba": {
      "dropped_at_freeze_not_in_frozen_split": 5,
      "in_frozen_split": 5995,
      "kept": 5995,
      "kept_with_text_source:fw2": 2472,
      "kept_with_text_source:wiki": 2060
     },
     "kk": {
      "dropped_at_freeze_not_in_frozen_split": 12,
      "in_frozen_split": 5988,
      "kept": 5988,
      "kept_with_text_source:fw2": 2455,
      "kept_with_text_source:wiki": 2089
     },
     "ky": {
      "dropped_at_freeze_not_in_frozen_split": 7,
      "in_frozen_split": 5993,
      "kept": 5993,
      "kept_with_text_source:fw2": 2886,
      "kept_with_text_source:wiki": 1706
     },
     "sah": {
      "dropped_at_freeze_not_in_frozen_split": 7,
      "excluded:text_source_not_cleared:ailab": 2526,
      "excluded:text_source_not_cleared:ailab_unattributed_match": 281,
      "excluded_items": 2807,
      "in_frozen_split": 5993,
      "kept": 3186,
      "kept_with_text_source:fw2": 1575,
      "kept_with_text_source:wiki": 385
     },
     "tk": {
      "dropped_at_freeze_not_in_frozen_split": 4,
      "excluded:personal_use_font_on_page": 273,
      "excluded_items": 273,
      "in_frozen_split": 5996,
      "kept": 5723,
      "kept_with_text_source:fw2": 3985,
      "kept_with_text_source:wiki": 254
     },
     "tr": {
      "dropped_at_freeze_not_in_frozen_split": 9,
      "excluded:personal_use_font_on_page": 176,
      "excluded_items": 176,
      "in_frozen_split": 5991,
      "kept": 5815,
      "kept_with_text_source:fw2": 2086,
      "kept_with_text_source:wiki": 2116
     },
     "tt": {
      "dropped_at_freeze_not_in_frozen_split": 30,
      "in_frozen_split": 5970,
      "kept": 5970,
      "kept_with_text_source:fw2": 2641,
      "kept_with_text_source:wiki": 1981
     },
     "uz_cyrl": {
      "dropped_at_freeze_not_in_frozen_split": 3,
      "in_frozen_split": 5997,
      "kept": 5997,
      "kept_with_text_source:fw2": 4596,
      "kept_with_text_source:wiki": 3
     },
     "uz_latn": {
      "dropped_at_freeze_not_in_frozen_split": 4,
      "excluded:personal_use_font_on_page": 799,
      "excluded_items": 799,
      "in_frozen_split": 5996,
      "kept": 5197,
      "kept_with_text_source:fw2": 2179,
      "kept_with_text_source:wiki": 1724
     }
    },
    "val": {
     "az": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 177,
      "kept_with_text_source:wiki": 202
     },
     "ba": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 202,
      "kept_with_text_source:wiki": 187
     },
     "kk": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 240,
      "kept_with_text_source:wiki": 156
     },
     "ky": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 235,
      "kept_with_text_source:wiki": 165
     },
     "sah": {
      "excluded:text_source_not_cleared:ailab": 235,
      "excluded:text_source_not_cleared:ailab_unattributed_match": 26,
      "excluded_items": 261,
      "in_frozen_split": 500,
      "kept": 239,
      "kept_with_text_source:fw2": 133,
      "kept_with_text_source:wiki": 23
     },
     "tk": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 348,
      "kept_with_text_source:wiki": 21
     },
     "tr": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 170,
      "kept_with_text_source:wiki": 194
     },
     "tt": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 206,
      "kept_with_text_source:wiki": 175
     },
     "uz_cyrl": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 401,
      "kept_with_text_source:wiki": 2
     },
     "uz_latn": {
      "in_frozen_split": 500,
      "kept": 500,
      "kept_with_text_source:fw2": 207,
      "kept_with_text_source:wiki": 158
     }
    }
   }
  },
  "items_in_frozen_splits": 221358,
  "items_released": 206619,
  "exclusion_reasons_total": {
   "personal_use_font_on_page": 4930,
   "regenerated_page_content_differs_from_stored_rows": 107,
   "regenerated_page_lacks_a_stored_row_font": 65,
   "row_not_reproduced_by_regeneration": 2,
   "text_source_not_cleared:ailab": 9338,
   "text_source_not_cleared:ailab_unattributed_match": 369
  },
  "rows_dropped_at_freeze_listed_not_released": "241 (156 hand, 85 typed train rows; see stage 12); listed in excluded/excluded_items.tsv",
  "bytes": {
   "total": 3551671379,
   "by_top_folder": {
    "LICENSE": 2434,
    "attribution": 11934524,
    "clutter": 28958808,
    "excluded": 1147554,
    "hand": 1076805929,
    "labels": 519290864,
    "pages": 1397742618,
    "typed": 515788648
   }
  },
  "files": 214801,
  "extra_files": "LICENSE, attribution/, excluded/. The real-print pointer list (train and val only; URL, page, line box, DPI; no image, no text) is a separate folder, DATA/release/rc1_data_print_pointers, with its own NOTICE (FinePDFs ODC-By, Common Crawl terms); publishing it is an owner decision.",
  "files_identical_to_training_images": {
   "differing_examples": [],
   "verified_byte_for_byte_against_trained_images": 206619,
   "log": "the data build's internal image list (finished 2026-11-21T01:52:29Z, before the first training sequence was built)"
  },
  "texts_can_name_real_people": "The sentences behind the labels and the drawn text come unfiltered from Wikipedia and web text (FineWeb-2) and can name real people; no name filter was applied (the display filter of the generator was used only for showcase images). Accepted by the owner (D13, 25 Nov 2026)."
 },
 "label_format": {
  "files": "labels/<kind>_<split>.jsonl (one JSON object per item, every field below) and labels/<kind>_<split>.tsv (core columns: id, image, text, language, script, kind, split, font_id, generator_version, seed, page_id, line_id, crop_mode, text_licences)",
  "fields": {
   "id": "frozen id of the project (unchanged)",
   "image": "relative path of the JPEG",
   "text": "exact label: the string drawn, NFC; empty for clutter; for pages all line labels in reading order joined by one space",
   "language": "project code (kk, ky, uz_cyrl, uz_latn, tr, az, tt, ba, tk, sah)",
   "language_bcp47": "BCP 47 tag",
   "script": "Cyrl or Latn",
   "kind": "hand_synth, typed_synth or clutter (pages carry hand_synth with unit page)",
   "unit": "line or page",
   "split": "train, val or test",
   "font_id": "font of the line (registry id); for pages the page writer's font id",
   "font_licence_class": "ofl or apache2 (no personal-use font in the package)",
   "heldout_font": "1 if the font is one of the four held out of train",
   "generator_version": "pagesynth-0.3.0",
   "seed": "page seed (decimal string; 64-bit)",
   "seed_detail": "seed tag r5v1, population H or T, split seed, page type, page index, attempt and its source. Each page's random seed is derived deterministically from these values (see the generator code, CODE/src/pagesynth/produce_r5.py); the Parquet shards leave out the formula text (seed_detail.rule) that labels/*.jsonl carry",
   "page_id": "generator page id",
   "line_id": "line id within the page",
   "group": "page group used for splitting",
   "page_type": "notebook, mixed, worksheet, diagram, table or map",
   "strength": "light, medium or heavy capture",
   "capture_mode": "scan or phone",
   "paper_kind": "squared, ruled, graph or blank",
   "region_class": "handwriting, annotation, teacher_mark, table_cell, print, clutter or page",
   "ink": "ink name",
   "crop_mode": "poly or rect for lines; window kind for clutter (paper, figure, stamp, picture, ignore, table)",
   "size_px": "nominal font size in pixels",
   "font_axes": "variable-font axis values",
   "writer_style": "realised writer parameters (slant, spacing, word gap, drift, weight, texture depth, elastic flag and amplitude, size scale)",
   "overlaps": "regions (stamp, picture) whose ink lies over the line",
   "mixed": "1 if the line mixes scripts or symbols by design",
   "orig_text": "corpus spelling before the Uzbek apostrophe mapping (empty if equal)",
   "effects": "page-level effects and marks",
   "photo": "capture noise parameters",
   "geometry": "capture geometry parameters",
   "text_sources": "corpus document ids behind the text (wiki:<page id>, fw2:<FineWeb-2 id>)",
   "text_source_scope": "line, page or none",
   "text_licences": "licences of those documents",
   "page_fonts": "every font drawn on the item's page",
   "page_font_source": "saved page JSON (exact production record) or regenerated page",
   "pagexml": "pages only: PageXML 2019-07-15 file",
   "page_json": "pages only: the generator's page JSON (polygons, baselines, regions, fonts, seed)"
  }
 },
 "stages": {
  "01_text_collection_and_cleaning": {
   "title": "Text collection and cleaning",
   "parts": {
    "generator": {
     "title": "Text: collection, cleaning, vocabulary, generated tokens and how a label is formed",
     "summary": "Every sentence drawn on a page comes from a per-language sentence list built before production from Wikipedia (dump 20231101), FineWeb-2 and, for Sakha only, a local newspaper corpus (ailabykt). Sentences are NFC-normalised, limited to the language's own alphabet, filtered by about 15 rejection rules and de-duplicated with a key that folds digits. Word labels of figures, tables and maps come from a frequency-ranked lower-case vocabulary and, on maps, from a geographic word list; dates, numbers, grades and formulas are generated in code. A line's label is exactly the string that was drawn: a wrapped piece of one or more sentences, possibly hyphenated, NFC.",
     "steps": [
      {
       "what": "Sources, quotas and row-group sampling of the sentence list (run once per language on a CPU node, before R5)",
       "parameters": {
        "wikipedia": "Hugging Face dataset wikimedia/wikipedia, config 20231101.<wiki code> (kk, ky, uz for both Uzbek scripts, tt, ba, sah, tr, az, tk); all parquet files in sorted order; at most 200 row groups per file, spread evenly; stop at 400,000 sentences",
        "fineweb2": "HuggingFaceFW/fineweb-2 data/<config>/train with config kaz_Cyrl, kir_Cyrl, uzn_Cyrl, uzn_Latn, tat_Cyrl, bak_Cyrl, sah_Cyrl, tur_Latn, azj_Latn, tuk_Latn; first 2 parquet files only; at most 400 row groups per file, spread evenly; stop at 400,000 sentences",
        "sakha_local": "local parquet files DATA/data/raw/ailabykt_sakha_mono/data, rows whose source is kyym, eder_saas, sakha_sire or uluus_media (natlib is OCR text and excluded); stop when these reach 300,000 sentences",
        "per_document_cap": "25 sentences",
        "paragraph_minimum": "20 characters (shorter paragraphs skipped)",
        "access": "HfFileSystem(token=False): unauthenticated HTTP range reads",
        "source_id": "wiki:<article id>, fw2:<document id>, ailab:<source>:<file>:<row group>:<row>"
       },
       "code_refs": [
        "pagesynth/textbuild.py:build (lines 60-153)",
        "pagesynth/textbuild.py:_iter_parquet_rowgroups (lines 45-57)",
        "pagesynth/textbuild.py:_doc_sentences (lines 28-42)",
        "pagesynth/text.py:PROFILES (lines 67-78)",
        "scripts/build_text.py (lines 13-23)",
        "scripts/build_text.sbatch (lines 16-20)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#input",
        "records/R5/GEN/text_split.json#counts"
       ]
      },
      {
       "what": "Normalisation (does not change letters)",
       "parameters": {
        "spaces": "no-break, thin, ideographic and other Unicode spaces, tab, CR, VT, FF become a plain space; runs of spaces collapse to one",
        "dropped": "soft hyphen, zero-width space/joiners, word joiner, BOM, left-to-right and right-to-left marks and embeddings",
        "unicode_form": "NFC",
        "other_languages": "hyphen variants and minus sign become '-', curly single quotes, backtick and acute accent become the ASCII apostrophe, double prime and reversed double quote become the ASCII double quote",
        "uz_latn": "o, O, g, G followed by any apostrophe-like mark become oʻ/gʻ (U+02BB); every other apostrophe-like mark becomes U+02BC; dashes and double-quote variants as above"
       },
       "code_refs": [
        "pagesynth/text.py:normalize (lines 140-160)"
       ],
       "report_refs": []
      },
      {
       "what": "Sentence splitting",
       "parameters": {
        "rule": "a paragraph is split after a token ending in . ! ? or … (closing quotes and brackets ignored) when the next token starts with an upper-case letter or digit",
        "not_a_sentence_end": "tokens with an inner dot (initials, abbreviations such as т.б.) and tokens of at most 2 characters before a final dot"
       },
       "code_refs": [
        "pagesynth/text.py:split_sentences (lines 201-221)"
       ],
       "report_refs": []
      },
      {
       "what": "Cleaning: rejected sentence types (each counted as a reason)",
       "parameters": {
        "length": "3 to 15 words (space-separated tokens), at most 110 characters",
        "bad_substring": "replacement character, backslash, |, _, @, http, www., #, <, >, [, ], {, }, ~, ^, &, $, bullet, middle dot",
        "combining_mark": "any character of Unicode category Mn",
        "char_outside_alphabet": "any character outside the language alphabet (see alphabet)",
        "uz_latn_c_outside_ch": "Uzbek Latin: c or C not followed by h or H",
        "repeated_char": "the same character 4 or more times in a row",
        "few_letters": "letters below 60 percent of non-space characters",
        "mostly_upper": "upper-case letters above 50 percent of letters",
        "no_upper_start": "first character after opening quotes or brackets is not upper case or a digit",
        "no_end_punct": "does not end in . ! ? or … (closing quotes ignored)",
        "camel_case": "an upper-case letter right after a lower-case letter inside a word",
        "russian_like": "Cyrillic languages only: contains one of 27 strong Russian function words (что, это, как, ...) or at least 2 of 11 weak ones (и, в, на, ...)",
        "punct_word": "a token with no letter or digit other than - – — = + / % №"
       },
       "code_refs": [
        "pagesynth/text.py:clean_sentence (lines 228-278)",
        "pagesynth/text.py:BAD_SUBSTR, RU_STRONG, RU_WEAK (lines 167-188)",
        "pagesynth/text.py:camel_in_word (lines 191-198)"
       ],
       "report_refs": []
      },
      {
       "what": "Alphabet of each language (what a sentence may contain)",
       "parameters": {
        "common": "digits 0-9, space, punctuation . , ; : ! ? - – — ( ) straight double quote, apostrophe, « » “ ” „ % № / + = …",
        "cyrillic_languages": "the full Russian alphabet in both cases plus the language letters: kk ӘҒҚҢӨҰҮҺІ, ky ҢӨҮ, uz_cyrl ЎҚҒҲ, tt ӘӨҮҖҢҺ, ba ӘӨҮҘҠҢҪҒҺ, sah ҔҤӨҮҺ (both cases)",
        "latin_languages": "a-z in both cases minus q, w, x for tr (plus Â Î Û and ÇĞİıÖŞÜ), minus w for az (plus ƏÇĞİıÖŞÜ), minus c, q, x for tk (plus ÄÇŽŇÖŞÜÝ), minus w for uz_latn (plus ʻ U+02BB and ʼ U+02BC)",
        "case": "explicit per-language case tables; str.upper()/lower() never used on Turkic text"
       },
       "code_refs": [
        "pagesynth/text.py:alphabet (lines 92-104)",
        "pagesynth/text.py:EXTRA_PAIRS, LATIN_BASE_PAIRS (lines 38-65)",
        "pagesynth/text.py:upper, _upper_map (lines 428-453)"
       ],
       "report_refs": []
      },
      {
       "what": "Sakha repair",
       "parameters": {
        "rule": "a token that contains Cyrillic letters and whose only Latin letters are h or H gets h -> һ (U+04BB), H -> Һ (U+04BA); other mixed tokens are left and then rejected by the alphabet check",
        "applied_to": "Sakha FineWeb-2 text and the local Sakha newspapers (and the refilter step); not to Sakha Wikipedia text (build passes sakha_repair=False for Wikipedia)"
       },
       "code_refs": [
        "pagesynth/text.py:repair_sakha_h (lines 281-292)",
        "pagesynth/textbuild.py:build (lines 90, 106, 125)",
        "pagesynth/textbuild.py:refilter (line 173)"
       ],
       "report_refs": []
      },
      {
       "what": "De-duplication and order",
       "parameters": {
        "key": "the sentence with every digit 1-9 replaced by 0 (numeric templates collapse)",
        "scope": "one language's whole list across all sources; first occurrence kept",
        "final_order": "sorted by a fixed deterministic function of the sentence text (deterministic shuffle)"
       },
       "code_refs": [
        "pagesynth/text.py:dedupe_key (lines 419-424)",
        "pagesynth/textbuild.py:build.add (lines 72-79)",
        "pagesynth/textbuild.py:build (line 131)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#not_removed"
       ]
      },
      {
       "what": "Sentence sampler used on the pages",
       "parameters": {
        "weight": "1 + 1.2 x min(number of distinct language-specific letters in the sentence, 4); for uz_latn the specials are oʻ and gʻ",
        "draw": "inverse-CDF draw with the page's text generator; every draw (also draws only used to test a font) is appended to bank.drawn for the source_doc metadata"
       },
       "code_refs": [
        "pagesynth/text.py:SentenceBank (lines 348-393)",
        "pagesynth/generate.py:load_banks (lines 187-199)"
       ],
       "report_refs": []
      },
      {
       "what": "Label vocabulary (words for figure, table, flowchart and fallback map labels)",
       "parameters": {
        "built_from": "train sentences of the R5 split only, then copied unchanged to val and test",
        "token": "whitespace token split at hyphens, dashes and slashes, punctuation stripped; at least 2 characters, every character a letter of the language alphabet; OH, NH, HO, HN are never words",
        "kept_words": "lower-case tokens with lower-case count at least 20, 3 to 12 letters, not a Russian function word, capitalised mid-sentence count at most 2 percent of the lower-case count (keeps proper names out)",
        "size": "top 6,000 by frequency, then topped up to at least 300 words per language-specific letter; 6,000 to 6,197 words per language",
        "draw_weight": "(rank + 100)^-0.5 x (1 + 1.5 x min(distinct special letters, 2)); a slot draws distinct words of 3 to max_len letters that the writer's font can draw",
        "capitals": "some slots capitalise the first letter: figure word labels 40 percent, table header 100 percent, first table column 25 percent, map fallback 50 percent"
       },
       "code_refs": [
        "pagesynth/vocab.py:count_words, select_words (lines 64-106)",
        "pagesynth/vocab.py:LabelVocab.draw (lines 49-61)",
        "pagesynth/vocab.py:load (lines 120-127)",
        "pagesynth/langtext.py:tokens, is_word (lines 42-57)",
        "scripts/r5_text_split.py (lines 58-65)",
        "pagesynth/scenes.py:vocab_words (lines 72-87)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#label_words_note",
        "records/R5/GEN/text_split.json#counts"
       ]
      },
      {
       "what": "Geographic labels for map pages (geo_labels.json, built before the split from the full sentence list)",
       "parameters": {
        "natural_earth_names": "tokens of NAME_RU (Cyrillic languages) or NAME_TR (Turkish only) of countries, populated places, geography regions and lakes, kept when used capitalised mid-sentence at least 5 times in the corpus; az, tk and uz_latn get no Natural Earth names",
        "cue_tokens": "capitalised tokens next to a place cue word (city, region, district, river, lake, mountain, village, republic in the language) at least 8 times and capitalised mid-sentence at least 40 times",
        "blocked": "surname-like endings (-ов, -ева, -oglu, -zade ...), first-name bigram rule, PERSON_BLOCK and MAP_BLOCK lists",
        "map_places": "at most 300 tokens of at most 12 letters, no inflected form, not a common lower-case word; countries, regions and lakes, cities only with at least 60 capitalised uses, cue tokens only with at least 100",
        "common_nouns": "per concept (river, lake, mountain, desert, sea, city, steppe, border, north, south, village, region) the most frequent candidate spelling with at least 30 lower-case uses",
        "draw": "place with probability 0.55, else a common noun (capitalised half of the time)"
       },
       "code_refs": [
        "scripts/build_display_lists.py (lines 26-140)",
        "pagesynth/geo.py:CONCEPTS, PLACE_CUES, SURNAME_END, PERSON_BLOCK, MAP_BLOCK (lines 33-73)",
        "pagesynth/geo.py:geo_words (lines 158-182)",
        "pagesynth/geo.py:load_geo (lines 151-155)",
        "pagesynth/scenes.py:scene_map.map_words (lines 832-836)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#output"
       ]
      },
      {
       "what": "Generated (non-corpus) tokens",
       "parameters": {
        "dates": "d.mm.yyyy, day 1-28, month 1-12, year 2019-2026 (notebook top line and mixed lines) or 2022-2026 (worksheet date field)",
        "mixed_unit_line": "8 equally likely kinds: date; number + unit (Cyrillic units км кг см ... or Latin km kg cm ...); 'a + b = c' or 'a - b = c' with a, b in 2-29; '№ n' (1-39); 'n%' (1-99); 'v = w + n' formula; a Latin abbreviation; 'a-bb' range",
        "numbers_in_mixed_unit": "1-19, 10-999, 'a,b' (a 0-99, b 1-9), 'a.b' (a 0-99, b 1-99, no zero padding) or 1000-99999 (5 kinds equally likely)",
        "table_numbers": "1-999 (60 percent) or 'a,b' with a 0-49, b 1-8",
        "grades": "5, 4, 4+, 5-, 3, 3+, 2, 10/10, 9/10, +, 12 (equally likely)",
        "margin_notes": "!, ?, +, 5, 10, 2",
        "figure_symbols": "axis letters x, y, O, tick numbers -3..3, function labels such as 'y = 2x + 1', 'y = x2', 'y = sin x', 'y = 1/x', 'y = ex'; vertex letters A B C D H O R; circuit labels R1 L K U A; atom labels from SMILES (O, OH, N, NH2 ...); chart percentages, years 2018-2023 or 1..n, axis ticks",
        "stamp_number": "'№ n', n 1-59 (unlabelled)",
        "latin_abbreviations": "H2O, CO2, NaCl, pH, PC, USB, Wi-Fi, SMS, IT, DNA, UN, AI, TV (Cyrillic); a shorter list for Latin languages in mixed lines"
       },
       "code_refs": [
        "pagesynth/text.py:_num, mixed_unit (lines 302-344)",
        "pagesynth/layouts.py:_date_text (lines 305-306)",
        "pagesynth/scenes.py:scene_worksheet (line 552)",
        "pagesynth/scenes.py:_table (line 733)",
        "pagesynth/scenes.py:teacher_pass (line 352)",
        "pagesynth/scenes.py:handwriting_marks (line 321)",
        "pagesynth/objects.py:axes_plot, geometry_fig, circuit, molecule, chart (lines 27-299)",
        "pagesynth/marks.py:stamp (line 198)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 252-256"
       ]
      },
      {
       "what": "How a line's label is formed from sentences",
       "parameters": {
        "units": "whole corpus sentences that the writer's font draws completely are concatenated word by word until about 8-29 words (a paragraph); a line can therefore span the end of one sentence and the start of the next",
        "wrapping": "greedy by measured width (same advances as the renderer)",
        "hyphenation": "probability 0.18 per overflowing word of at least 7 characters when a 2+ letter prefix fits; the prefix plus '-' ends the row and is part of the label; the rest starts the next row",
        "long_word": "a single word wider than a row is skipped (dropped from the text, label still equals the drawn text)",
        "right_overflow": "the last word is dropped (up to 3 times) when the rendered row passes the right edge by more than half a cell",
        "latin_insertion": "Cyrillic handwriting text: with probability 0.08 per drawn sentence one Latin abbreviation is inserted at a random word position; such lines are NOT tagged mixed",
        "mixed_tag": "set for the top date line, standalone mixed-unit lines, the worksheet date field and number cells of tables",
        "uzbek_marks": "uz_latn: U+02BB/U+02BC are drawn as the font's own mark, else U+2018/U+2019, else the ASCII apostrophe; the LABEL is the drawn mark, orig_text keeps the corpus text",
        "nfc": "page.add_line raises gate d_nfc if a label is not NFC; produce_r5 normalises again; r5_finalize checks again",
        "struck_words": "a struck-through word stays in the label and its character span is stored in struck_spans; such lines never become crops"
       },
       "code_refs": [
        "pagesynth/layouts.py:draw_text_units (lines 80-106)",
        "pagesynth/layouts.py:wrap_rows (lines 109-153)",
        "pagesynth/layouts.py:build_notebook (lines 252-301)",
        "pagesynth/layouts.py:_render (lines 309-316)",
        "pagesynth/fonts.py:map_uzbek_marks (lines 350-363)",
        "pagesynth/page.py:add_line (lines 130-153)",
        "pagesynth/marks.py:strike_word (lines 67-80)",
        "produce_r5.py:work.meta (line 138)",
        "scripts/r5_finalize.py (lines 88-90)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#row 254",
        "records/R5/GEN/probabilities.tsv#row 256"
       ]
      }
     ],
     "disagreements": [
      "maps.py docstring (lines 8-10) says map place names are 'proper-noun-like tokens of the language's corpus'. In R5 the split folders contain geo_labels.json (r5_text_split.py lines 66-68; text_split.json#output), so scene_map.map_words uses geo.geo_words (Natural Earth names, cue-derived tokens, common nouns) and scenes.proper_words is never called. Code supports: geo labels whenever geo_labels.json exists, label-vocabulary words otherwise.",
      "text.py docstring says only letters of the language's own alphabet survive (script purity). That holds for the corpus, but layouts.draw_text_units (lines 92-96) inserts Latin abbreviations into 8 percent of drawn Cyrillic handwriting sentences, and mixed-unit lines add Latin letters and formulas. Code supports: pages contain mixed-script lines by design; only some are tagged mixed.",
      "geo.py docstring (lines 15-16) says cue-derived place tokens must 'occur capitalised at least 20 times'. scripts/build_display_lists.py line 84 requires at least 40 capitalised mid-sentence uses. Code supports 40."
     ],
     "unknowns": [
      "Which text.py version built the corpus. text.VERSION is 0.1.0, and changes.txt says the corpora were not changed in 0.3.0. Whether textbuild.refilter was run on the R5 input is also unknown. To find out, check for sentences_raw.tsv and the key n_before_refilter in stats.json in DATA/data/processed/pagesynth_text/<lang>/.",
      "Exact parquet files and source shares per language (stats.json keys files, per_source) are not in the GEN records.",
      "Licence or terms of use of the Wikipedia dump, FineWeb-2 and the ailabykt Sakha corpus: no terms file ships with the generator. Check each dataset card. Labels are verbatim text from these sources."
     ]
    }
   },
   "project_notes": "This release excludes every item whose text comes from the Sakha newspaper corpus (sources kyym, eder_saas, sakha_sire, uluus_media of ailabykt/sakha-corpus-mono), because the newspapers' own reuse terms (hyperlink to the source; Ulus Media: prior written consent) cannot be met per item; Sakha items made from Wikipedia and FineWeb-2 text remain (see stage 16)."
  },
  "02_source_document_split": {
   "title": "Split of the text by source document",
   "parts": {
    "generator": {
     "title": "Split of the text by source document",
     "summary": "Before any page is drawn, each language's sentence list is cut into train, val and test by source document: a deterministic bucket of the document id decides the split (about 90/5/5 percent of documents). Train, val and test pages read only their own split's sentence file, so no val or test sentence comes from a training document. The label vocabulary is rebuilt from train sentences and copied to val and test; geo_labels.json is copied unchanged.",
     "steps": [
      {
       "what": "Split rule",
       "parameters": {
        "document_id": "the source field before the TAB of sentences.tsv: wiki:<article id>, fw2:<document id>, ailab:<newspaper>:<file>:<row group>:<row>",
        "bucket": "a fixed deterministic function of the document id, mod 1000; no salt (the input is the bare id)",
        "train": "bucket 0-899",
        "val": "bucket 900-949",
        "test": "bucket 950-999"
       },
       "code_refs": [
        "scripts/r5_text_split.py:split_of (lines 29-31)",
        "scripts/r5_text_split.py (lines 43-55)",
        "scripts/r5_text_split.sbatch (lines 12-16)",
        "scripts/text_split_all.sh (lines 6-8)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#rule"
       ]
      },
      {
       "what": "Files per split and their use in production",
       "parameters": {
        "written": "DATA/data/processed/r5/pagesynth_text_split/{train,val,test}/<lang>/sentences.tsv, label_words.json (train-built), geo_labels.json (copied)",
        "read_by_production": "produce_r5.py reads <text-root>/<split>/<lang>/sentences.tsv and the two json files; it stops if label_words.json is missing (unless --allow-vocab-fallback)"
       },
       "code_refs": [
        "scripts/r5_text_split.py (lines 58-68)",
        "produce_r5.py:main (lines 252-255)",
        "pagesynth/generate.py:load_banks (lines 187-199)",
        "scripts/r5_production.sbatch (line 18)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#output"
       ]
      },
      {
       "what": "Counts per language (sentences train / val / test; documents train / val / test; label words)",
       "parameters": {
        "kk": "767,198: 691,347 / 37,333 / 38,518; 104,465 / 5,621 / 5,826 documents; 6,004 words",
        "ky": "666,892: 599,228 / 33,465 / 34,199; 95,987 / 5,303 / 5,457; 6,197",
        "uz_cyrl": "401,012: 360,449 / 20,409 / 20,154; 43,729 / 2,510 / 2,442; 6,161",
        "uz_latn": "753,843: 678,138 / 37,631 / 38,074; 106,274 / 5,869 / 5,909; 6,133",
        "tt": "777,044: 698,356 / 39,070 / 39,618; 148,848 / 8,257 / 8,440; 6,139",
        "ba": "732,284: 660,264 / 36,141 / 35,879; 86,149 / 4,727 / 4,794; 6,134",
        "sah": "1,073,747: 966,915 / 52,405 / 54,427; 94,138 / 5,171 / 5,366; 6,024",
        "tr": "790,405: 710,629 / 39,460 / 40,316; 87,853 / 4,842 / 5,033; 6,000",
        "az": "789,032: 710,026 / 39,145 / 39,861; 86,320 / 4,789 / 4,767; 6,038",
        "tk": "427,446: 384,727 / 21,547 / 21,172; 60,041 / 3,342 / 3,299; 6,012"
       },
       "code_refs": [
        "scripts/r5_text_split.py (lines 69-72)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#counts"
       ]
      },
      {
       "what": "What crosses the split boundary by design",
       "parameters": {
        "label_vocabulary": "words of val/test figure, table and map labels come from train documents",
        "geo_labels": "built from the full, unsplit sentence list (build_display_lists.py reads pagesynth_text/<lang>/sentences.tsv) and copied to all splits",
        "generated_tokens": "dates, numbers, grades, formulas, abbreviations are drawn from the same code in every split"
       },
       "code_refs": [
        "scripts/r5_text_split.py (lines 58-68)",
        "scripts/build_display_lists.py (lines 26-30)"
       ],
       "report_refs": [
        "records/R5/GEN/text_split.json#label_words_note"
       ]
      }
     ],
     "disagreements": [],
     "unknowns": [
      "Near-duplicate sentences (one word changed) in different documents can sit in different splits; text_split.json#not_removed says this was not measured.",
      "Line-level overlap across splits was measured later by FREEZE. 189 synthetic train rows have a label equal to one of 72 synthetic val/test lines of at least 20 characters, and 52 train images are near-duplicates (perceptual fingerprint distance at most 4) of val/test rows with the same label. These 241 rows were removed only from the frozen training copies; manifests/ is unchanged (PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/freeze_record.json#mix_v1.dropped_rows). Why identical long lines occur across a document split is not established in the records."
     ]
    }
   }
  },
  "03_font_selection_and_coverage": {
   "title": "Font selection and coverage checks",
   "parts": {
    "generator": {
     "title": "Fonts: registry, policy per split, glyph gate, choice per page, licence class",
     "summary": "The registry holds 73 fonts: 56 handwriting-like ones (9 draw Cyrillic and Latin, 47 draw Latin only, 8 of those are personal-use signature fonts) and 17 print fonts. Every handwriting font has weight 1.0 for each script it may draw. A page's main writer is drawn by weight and kept if it fully draws at least 35 percent of 30 sampled sentences; every sentence or word on the page must then pass the glyph gate for that font. Four fonts are held out of train and carry about 35 percent of val/test handwriting pages; personal-use fonts are excluded from val and test but allowed in train. A page's licence_class is personal_use_only if any font of a labelled line or stamp on it is personal-use.",
     "steps": [
      {
       "what": "Registry and font files",
       "parameters": {
        "cyrillic_and_latin_hand": "caveat, badscript, pacifico, shantell, playpen, pangolin, balsamiq, lxgw_wenkai, lobster (weight 1.0 for Cyrl and Latn)",
        "latin_only_open_hand": "39 fonts: playwrite_at, playwrite_desas, mynerve, mansalva, cedarville, giveyouglory, patrickhand, charm, briemhand, mali, itim, dekko, fuzzybubbles, grapenuts, grechenfuemen, indieflower, merienda, moondance, ole, ooohbaby, squarepeg, sriracha, twinklestar, yomogi, rugeboogie, nerkoone, sedgwickave, caveatbrush, kalam, annieuseyourtelescope, architectsdaughter, gloriahallelujah, shadowsintolight, justanotherhand (apache2), zeyada, delicioushandrawn, edu_au_hand, playwrite_gbs, playwrite_aunsw",
        "personal_use_only": "sig_autography, sig_breathing, sig_brittany, sig_motterdam, sig_quentin, sig_respondent, sig_signatura, sig_wedding (Latin weight 1.0, Cyrillic 0)",
        "print": "p_notosans (2.0/2.0), p_ptsans (Cyrl 2.0, Latn 1.0), p_ptserif (1.5/1.0), p_sourcesans, p_opensans, p_roboto, p_arimo, p_merriweather, p_lora, p_firasans, p_ibmplexserif, p_ebgaramond, p_cousine, p_notoserif, p_robotoslab (apache2), p_alegreya, p_nunito (1.0/1.0)",
        "folder": "PAGESYNTH_FONTS = CODE/assets/fonts on the cluster; a registry entry whose file is missing is silently dropped, so production stops unless exactly 73 fonts load (--expect-fonts 73)",
        "variable_axes": "drawn per writer within: caveat wght 400-700; shantell wght 300-500, INFM 0-100, BNCE -100..100, SPAC 0-25; playpen wght 200-600; playwrite_at/desas wght 150-400; briemhand 100-300; merienda 300-800; edu_au_hand 400-700; playwrite_gbs/aunsw 100-400"
       },
       "code_refs": [
        "pagesynth/fonts.py:REGISTRY (lines 49-137)",
        "pagesynth/fonts.py:FONT_DIR (line 43)",
        "pagesynth/fonts.py:sample_axes (lines 402-408)",
        "produce_r5.py:main (lines 245-246)",
        "scripts/r5_production.sbatch (lines 17-19)"
       ],
       "report_refs": [
        "records/R5/GEN/fonts_v030.tsv#font_id,licence_class,file",
        "records/R5/GEN/fonts_v030_summary.json#per_script",
        "records/R5/GEN/changes.txt#lines 4-10"
       ]
      },
      {
       "what": "Font policy per split (held-out and personal-use fonts)",
       "parameters": {
        "held_out": "playpen and shantell (Cyrillic and Latin), plus mynerve and mali (Latin)",
        "train": "held-out fonts excluded (weight 0) for every element; personal-use fonts allowed",
        "val_test": "the 8 personal-use fonts excluded; each held-out font gets weight u/(1-u) x n_seen/n_held with u = 0.35",
        "held_out_weight_cyrillic": "0.35/0.65 x 7/2 = 1.885 (my arithmetic from the code and registry)",
        "held_out_weight_latin": "0.35/0.65 x 44/4 = 5.92 (n_seen = 56 Latin-weighted hand fonts - 8 personal - 4 held out; my arithmetic)",
        "weights_are_per_script": "computed over registry fonts, not over the fonts that cover a language"
       },
       "code_refs": [
        "produce_r5.py:CFG (lines 38-41, 49)",
        "produce_r5.py:set_font_policy (lines 59-76)",
        "pagesynth/fonts.py:set_policy, font_weight (lines 140-156)"
       ],
       "report_refs": [
        "records/R5/GEN/changes.txt#line 11",
        "records/R5/GEN/fonts_v030_summary.json#heldout"
       ]
      },
      {
       "what": "Glyph gate: when a font may draw a character",
       "parameters": {
        "rule_1": "character in the font's cmap and not mapped to .notdef",
        "rule_2": "rasterised at 64 px it produces ink",
        "rule_3": "its raster differs from the font's .notdef raster (boxes are not letters)",
        "rule_4": "a language-specific letter whose raster equals another letter of the same script is not good",
        "rule_5": "digits that look alike are all dropped; of dashes, quotes and apostrophes that look alike only the first (ASCII) stays",
        "line_checks": "page.add_line rejects any label character outside the good set (gate a_glyph); render_line raises LineError for an empty glyph, a glyph placed without ink, a character of a joined-font word that adds no ink (mass drop at most 0.5), or a character without ink in its own column range"
       },
       "code_refs": [
        "pagesynth/fonts.py:FontFace.good_chars (lines 246-287)",
        "pagesynth/fonts.py:confusable_groups (lines 176-190)",
        "pagesynth/page.py:add_line (lines 133-138)",
        "pagesynth/ink.py:render_line (lines 257-291)",
        "pagesynth/ink.py:_check_each_char_inked (lines 383-392)"
       ],
       "report_refs": []
      },
      {
       "what": "How the page writer is chosen",
       "parameters": {
        "draw": "weighted choice among hand fonts of the script with weight > 0 under the split policy (personal-use fonts only when include_personal; production passes include_personal=True)",
        "acceptance": "30 sentences are drawn; the font is kept if it draws at least 35 percent of them completely (after the Uzbek mark mapping); up to 40 tries, else the page attempt fails",
        "then": "every sentence, caption fragment or label word is drawn by rejection until the font draws it completely (80 tries per sentence unit, 60 for fragments, 80 x n for vocabulary words)",
        "one_writer": "one main writer per page; worksheet and map pages have a print writer and a separate handwriting writer on a virtual 62 px ruling"
       },
       "code_refs": [
        "pagesynth/layouts.py:choose_writer (lines 42-77)",
        "pagesynth/fonts.py:pick_face (lines 382-399)",
        "pagesynth/layouts.py:draw_text_units (lines 80-106)",
        "pagesynth/scenes.py:caption_words, short_text (lines 146-212)",
        "pagesynth/vocab.py:LabelVocab.draw (lines 49-61)",
        "pagesynth/scenes.py:scene_worksheet (lines 520-529)",
        "pagesynth/scenes.py:scene_map (lines 788-794)"
       ],
       "report_refs": []
      },
      {
       "what": "Other font pools",
       "parameters": {
        "teacher_marks": "a separate hand font per teacher pass, pick_face(include_personal=False), no 35 percent test; a grade or comment the font cannot draw is skipped",
        "print_text": "pick_face(kind='print', include_personal=False); kept if at least 14 of 25 sampled sentences are drawable; size 28-38 px",
        "stamps": "always p_notosans (Noto Sans); the stamp is skipped if Noto Sans lacks a needed character"
       },
       "code_refs": [
        "pagesynth/scenes.py:teacher_pass (lines 327-335)",
        "pagesynth/scenes.py:print_writer (lines 481-496)",
        "pagesynth/marks.py:stamp (lines 196-201)"
       ],
       "report_refs": []
      },
      {
       "what": "Licence class of a line, a page and a manifest row",
       "parameters": {
        "line": "licence_class of the line's font (ofl, apache2, personal_use_only)",
        "page": "personal_use_only if any font in page.fonts is personal-use; ofl if all are ofl; else open (ofl plus apache2)",
        "page_fonts": "fonts of all labelled lines (main, print, teacher writers) plus the stamp font; not fonts that only appear as show-through",
        "clutter_rows": "licence_class empty"
       },
       "code_refs": [
        "pagesynth/page.py:add_line (line 139)",
        "pagesynth/marks.py:stamp (line 235)",
        "pagesynth/page.py:finalize (lines 398-399)",
        "produce_r5.py:work (lines 132, 141, 179, 196, 212)"
       ],
       "report_refs": []
      },
      {
       "what": "Coverage (full alphabet by the glyph gate) and realised shares",
       "parameters": {
        "full_cover_hand_fonts": "kk 9, ky 9, tt 9, ba 8, uz_cyrl 7, sah 7; uz_latn 56, tr 50, tk 50, az 34",
        "full_cover_print_fonts": "17 of 17 except sah 16 (Source Sans 3 lacks ҔҕҤҥ) and az 14 (PT Sans and PT Serif lack Əə, Open Sans lacks Ə)",
        "realised_train_cyrillic": "balsamiq 16.67, pangolin 15.68, caveat 15.13, lobster 14.58, badscript 13.59, pacifico 12.87, lxgw_wenkai 11.48 percent of 72,000 lines",
        "realised_train_latin": "max yomogi 3.08 percent of 48,000 lines; the 8 personal-use fonts together 6.27 percent (my sum)",
        "personal_use_share": "2.51 percent of all 120,000 train handwriting lines; 0 in val and test",
        "held_out_share": "val 37.78 percent, test 38.72 percent of handwriting lines (target 35)",
        "apache2": "train hand 0.63 percent, typed 5.67 percent"
       },
       "code_refs": [
        "scripts/fonts_report.py (lines 47-89)"
       ],
       "report_refs": [
        "records/R5/GEN/fonts_v030_summary.json#per_language",
        "records/R5/GEN/fonts_v030.tsv#missing_sah,missing_az",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_font_share_train_Cyrl",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_font_share_train_Latn",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_licence_class",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_val_font_group",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_test_font_group"
       ]
      }
     ],
     "disagreements": [
      "Personal-use fonts. fonts.py docstring (lines 23-26) says they are 'never shown on the pages or shipped', and changes.txt line 7 says 'used for training only: never in val or test, never in a picture'. Production calls attempt_page(..., include_personal=True) (produce_r5.py line 125), and set_font_policy excludes them only in val and test. They are therefore drawn into train handwriting crops (2.51 percent, realised_stats_stage1.json#hand_train_licence_class) and into the whole train pages saved for the detector set. Code supports: present in train outputs; absent from val and test.",
      "Train font pools for Sakha and Uzbek Cyrillic. changes.txt line 11 says they 'keep only 5 train fonts', and fonts_v030_summary.json gives train_pool_fonts 5. realised_stats_stage1.json#hand_font_pages_train shows 7 fonts in each: sah adds balsamiq (316 pages, lacks Ҕҕ) and lxgw_wenkai (138 pages, lacks ҔҕҤҥ); uz_cyrl adds pangolin (268) and lobster (239), both lacking Ҳҳ. Other cases: ba uses lxgw_wenkai on 9 pages (lacks ҘҙҠҡҪҫ); az uses 14 fonts lacking Əə on 1-3 pages each; tr uses sig_brittany (1 page) and sig_signatura (3 pages), which lack ĞğİŞş. Code supports the realised pools: choose_writer accepts a partial-cover font when at least 35 percent of sampled sentences are drawable, and those pages then carry only sentences without the missing letters.",
      "12 percent cap. diagnosis.json#fix_in_0_3_0 says 'at most 12 percent of one script's handwriting lines for any font'. The code has no cap, only equal weights. The realised Cyrillic train maximum is 16.67 percent (balsamiq), and report.txt line 6 and changes.txt line 10 say the cap cannot be met. Code supports: no cap.",
      "Held-out share 35 percent. produce_r5 CFG unseen_share_valtest = 0.35, but the weights are computed per script over registry fonts, not per language. Realised val is 37.78 percent and test 38.72 percent. For az val, the four held-out fonts are on 123 of 255 font-page entries, about 48 percent (my arithmetic over realised_stats_stage1.json#hand_font_pages_val; teacher fonts are counted too). Code supports: the share varies by language and exceeds 35 percent where few fonts cover the language."
     ],
     "unknowns": [
      "Origin and licence text of the 8 signature fonts. fonts.py calls them 'the owner's Latin signature fonts'. For Motterdam, Quentin and Signatura Monoline it says 'licence not in file: assumed personal use'. No licence file for any of the 8 ships in assets_licences/.",
      "Licence files for 19 open registry fonts are not among the 45 shipped files: playpen, pangolin, balsamiq, playwrite_at, playwrite_desas, mynerve, mansalva, cedarville, giveyouglory, patrickhand, charm, briemhand, mali, itim, p_notosans, p_ptsans, p_ptserif, p_sourcesans, p_opensans. Also, OFL_BadScript_Caveat.txt carries only the Bad Script copyright line, with no Caveat copyright notice. Whether these licence files exist in the cluster folder CODE/assets/fonts/licences/ is unknown; list that folder.",
      "Share of synth_pages_train pages whose licence_class is personal_use_only. It is not in the records; count the licence_class column of synth_pages_train.meta.tsv."
     ]
    }
   },
   "project_notes": "Personal-use fonts were drawn into train pages only (produce_r5.py set_font_policy excludes them in val and test). This release removes every item whose page drew any personal-use font (stage 16)."
  },
  "04_simulated_writer": {
   "title": "The simulated writer",
   "parts": {
    "generator": {
     "title": "Simulated writer: style parameters and where they act",
     "summary": "Each page has one main writer: a font, variable-axis values, a size and an ink, plus a set of style parameters drawn once per page. Glyphs of non-joined fonts are placed one by one with small random rotation, scale and offset; joined fonts are drawn word by word, so their jitter applies per word. After placement the line gets ink texture, pen pressure, optional pale dropouts, an elastic distortion with probability 0.5, and ink bleed when it is composited. Printed lines use the same renderer with every style effect switched off.",
     "steps": [
      {
       "what": "Per-writer parameters (drawn once per page, ink.default_style)",
       "parameters": {
        "slant": "uniform -12 to +18 degrees, applied as a shear of every glyph (joined fonts: of every word)",
        "letter_spacing": "advance factor uniform 0.95-1.15",
        "word_spacing": "space width factor uniform 0.8-1.4 (space = max(font space, 0.34 x size))",
        "baseline_drift": "sine of amplitude uniform 0-3 percent of the x-height, wavelength uniform 5-12 x size, random phase per line",
        "advance_noise": "normal, sd uniform 0.4-2 percent of the size",
        "word_vertical_offset": "normal per word, sd uniform 0.8-2.5 percent of the size",
        "line_slope": "normal sd 0.5 degrees per writer; overridden per line: notebook rows sd 0.45, labels sd 0.8, ruled worksheet answers sd 0.3",
        "pressure": "depth uniform 0.04-0.16: per-glyph multiplier 1 - depth x U(0,1) and a smooth multiplier along the line",
        "dropout": "0, 0, 0.5 or 1 (equally likely): number of pale spots per line int(U{0,1,2} x dropout + 0.5), radius 4-10 percent of the size, ink x 0.45",
        "stroke_weight": "variable fonts with a wght axis: the axis value drawn from the font's range; static fonts: dilate or erode by uniform 0-1 flat px (sign 50/50, rounded to supersampled px); an erosion that removes more than 65 percent of a glyph's ink is skipped",
        "ink_texture": "depth uniform 0.05-0.35, correlation length uniform 3-8 flat px (smooth multiplicative field)",
        "elastic": "probability 0.5 per line; Simard-style smooth field normalised to unit sd, alpha uniform 2-6 supersampled px, sigma uniform 4-6 flat px, alpha capped at 0.3 x sigma in supersampled px (0.9 x sigma flat units); applied before the per-character ink check"
       },
       "code_refs": [
        "pagesynth/ink.py:SLANT_DEG..ELASTIC_P (lines 77-90)",
        "pagesynth/ink.py:default_style (lines 93-117)",
        "pagesynth/ink.py:render_line (lines 183-360)",
        "pagesynth/ink.py:_texture, _elastic (lines 166-180)"
       ],
       "report_refs": [
        "records/R5/GEN/changes.txt#lines 13-17",
        "records/R5/GEN/probabilities.tsv#rows 107-125"
       ]
      },
      {
       "what": "Per-glyph jitter (non-joined fonts per glyph, joined fonts per word)",
       "parameters": {
        "rotation": "uniform +-3 degrees (halved for joined fonts)",
        "scale": "x and y independently 1 + uniform +-6 percent",
        "vertical_offset": "uniform +-4 percent of the x-height",
        "supersampling": "3x canvas, area downsampling to the 150 dpi flat page",
        "layout": "Pillow BASIC layout (no GSUB/GPOS), advances from the font plus legacy kern-table pairs"
       },
       "code_refs": [
        "pagesynth/ink.py:render_line (lines 228-298)",
        "pagesynth/ink.py:_advances (lines 120-130)",
        "pagesynth/fonts.py:FontFace.pil (lines 221-237)"
       ],
       "report_refs": []
      },
      {
       "what": "Size of the writing",
       "parameters": {
        "target_x_height": "squared or graph paper: cell x U(0.62, 1.0); ruled: ruling x U(0.36, 0.5); blank: 5 mm cell x U(0.6, 1.1); worksheet and map handwriting: ruled rule on a virtual 62 px ruling",
        "size_scale": "uniform 0.85-1.2 on top of the target",
        "cap": "size at most U(1.05, 1.2) x line pitch / (ascender + descender) and at most 105 px; the realised scale after the cap is stored (size_scale)",
        "per_line": "notebook rows x U(0.97, 1.03); labels x 0.8-0.9 of the writer size (shrunk to fit), grades x 1.7",
        "teacher": "target x-height 26 px, size cap 70 px"
       },
       "code_refs": [
        "pagesynth/layouts.py:target_xheight (lines 33-39)",
        "pagesynth/layouts.py:choose_writer (lines 61-72)",
        "pagesynth/layouts.py:_render (lines 309-316)",
        "pagesynth/scenes.py:teacher_pass (lines 331-335)"
       ],
       "report_refs": []
      },
      {
       "what": "Ink and bleed at composition",
       "parameters": {
        "bleed": "every handwriting-like line: alpha' = 1 - (1 - a)(1 - 0.5 x Gaussian(a, sigma 0.9 px)); print lines without bleed",
        "ink": "one ink per writer (see layouts_paper_ink); colour multiplies the paper, alpha scaled by the ink's opacity"
       },
       "code_refs": [
        "pagesynth/page.py:add_line (lines 141-149)",
        "pagesynth/page.py:_bleed (lines 405-408)",
        "pagesynth/page.py:finalize (lines 217-226)"
       ],
       "report_refs": []
      },
      {
       "what": "Recorded per line (style column values of the sidecar)",
       "parameters": {
        "stored": "slant_deg, spacing, word_gap, drift_xh, weight_px, tex_depth, elastic (0/1), elastic_alpha (realised, after cap), elastic_sigma (page JSON only), size_scale (realised), erode_skipped (page JSON only), font_axes",
        "not_stored": "per-glyph jitter values, pressure and dropout draws, advance noise"
       },
       "code_refs": [
        "pagesynth/ink.py:render_line (lines 348-351)",
        "produce_r5.py:work.meta (lines 142-144)"
       ],
       "report_refs": [
        "records/R5/GEN/status.json (per-item metadata request)"
       ]
      }
     ],
     "disagreements": [
      "probabilities.tsv row 123 gives 'line slope, normal with sd 0.5 degrees (0.45 per line, 0.8 per label)'. Code: boxed worksheet answers, inline answers and table cells keep the writer's slope (sd 0.5 drawn once per page), and ruled worksheet answers and top-up lines use sd 0.3 (scenes.py lines 591, 612, 628, 651, 741). Code supports the wider set of values."
     ],
     "unknowns": [
      "No record measures how close these writer statistics are to real Turkic handwriting. All ranges are set in code."
     ]
    }
   }
  },
  "05_layouts_paper_ink": {
   "title": "Layouts, paper and ink",
   "parts": {
    "generator": {
     "title": "Page types, paper, ruling, margins, ink and fill",
     "summary": "Two page populations are drawn: H (notebook 0.34, mixed 0.22, worksheet 0.14, diagram 0.12, table 0.10, map 0.08) for handwriting crops, clutter and saved pages, and T (worksheet 0.85, table 0.15) for typed crops. Notebook, mixed and diagram pages are squared, ruled, blank or graph paper with an optional red margin line; worksheet, table and map pages are blank sheets. Text fills a random share of the rows; inks are nine pen colours with fixed weights.",
     "steps": [
      {
       "what": "Page types and sizes (150 dpi)",
       "parameters": {
        "H_mix": "notebook 0.34, mixed 0.22, worksheet 0.14, diagram 0.12, table 0.10, map 0.08",
        "T_mix": "worksheet 0.85, table 0.15",
        "size_notebook_mixed_diagram": "85 percent A5 874 x 1240 px or square-ish 975 x 1199 px (50/50), 15 percent A4 1240 x 1754 px",
        "size_worksheet_table_map": "A4 1240 x 1754 px",
        "realised_hand_train_page_type": "notebook 0.3351, mixed 0.2217, worksheet 0.1352, diagram 0.126, table 0.1005, map 0.0815"
       },
       "code_refs": [
        "produce_r5.py:CFG (lines 42-43)",
        "produce_r5.py:pick_type (lines 108-112)",
        "pagesynth/generate.py:PAGE_SIZES (line 22)",
        "pagesynth/generate.py:make_page (lines 65-69)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_page_type",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#typed_train_page_type"
       ]
      },
      {
       "what": "Paper kind and ruling",
       "parameters": {
        "notebook_mixed": "squared 0.68, ruled 0.17, blank 0.05, graph 0.10",
        "diagram": "squared 0.75, ruled 0.05, blank 0.05, graph 0.15",
        "worksheet_table_map": "blank, tint BGR (250, 252, 253), no margin line",
        "squared": "5 mm cell (29.53 px), random offset; grid style scan_cyan 0.45 (BGR about (246, 243, 195) +-6, width 2.6-3.4 px, depth 0.5-0.7), photo_grey 0.4, photo_green 0.08, photo_lilac 0.07 (width 0.95-1.5 px, depth 0.26-0.48)",
        "ruled": "ruling 6, 7, 8 or 9 mm, line width 1.0-1.4 px, depth 0.45-0.7",
        "graph": "1, 5 and 10 mm lines (widths 0.8/1.0/1.3 px), one of three colours",
        "paper_tint": "one of 8 BGR tints (two are scanner white)",
        "realised_hand_train_paper": "squared 0.5098, blank 0.3429, graph 0.0806, ruled 0.0667"
       },
       "code_refs": [
        "pagesynth/generate.py:make_page (lines 71-80)",
        "pagesynth/paper.py:make_paper (lines 41-138)",
        "pagesynth/paper.py:PAPER_TINTS, GRID_COLS, GRID_STYLES, MARGIN_COLS (lines 18-25)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_paper_kind",
        "records/R5/GEN/probabilities.tsv#rows 13-34"
       ]
      },
      {
       "what": "Margins and text area",
       "parameters": {
        "margin_line": "probability 0.8 on non-blank paper, at 4.0-5.2 cells from the side edge, side left or right 50/50; thin 0.5 (1.2-1.9 px), thick 0.3 (2.8-4.6 px), double 0.2; one of four red tones",
        "text_area_with_margin": "from 0.25 cell beyond the margin line to 1 cell from the far edge",
        "text_area_without_margin": "1.5 cells from the binding side, 1.2 cells from the other",
        "vertical": "1.8 cells from the top to 1.2 cells from the bottom",
        "worksheet": "x from 110 px to page width - 110 px, first row at y = 120 px"
       },
       "code_refs": [
        "pagesynth/paper.py:make_paper (lines 61-66, 109-135)",
        "pagesynth/scenes.py:scene_worksheet (lines 530-531)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 21-26"
       ]
      },
      {
       "what": "Rows and fill (notebook, mixed, diagram)",
       "parameters": {
        "baselines": "squared/graph: every second grid line; ruled: every rule (baseline 0.08 ruling above the rule); blank: pitch U(1.7, 2.2) cells",
        "fill": "share of rows written: U(0.7, 1.0) on notebook and mixed pages, U(0.25, 0.6) on diagram pages; at least 2 rows",
        "start": "with probability 0.25 the text starts at a random lower row",
        "top_lines": "date (right aligned) 0.45, title of 2-4 words (centred) 0.3",
        "paragraphs": "8-29 words; first-line indent 0, 2 or 3 cells (one choice per page); a standalone mixed-content line after a paragraph 0.15; paragraph gap 0.25",
        "jitter": "baseline y normal sd 0.035 cell (blank 0.06), x normal sd 0.12 cell + 0.05 cell"
       },
       "code_refs": [
        "pagesynth/layouts.py:baselines (lines 156-177)",
        "pagesynth/layouts.py:build_notebook (lines 180-302)",
        "pagesynth/scenes.py:scene_notebook_fig (lines 433-437)",
        "pagesynth/generate.py:make_page (lines 108-109)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 252-259"
       ]
      },
      {
       "what": "Ink colours and weights",
       "parameters": {
        "weights": "blue_ballpoint 0.26, black 0.14, gel_violet 0.12, gel_blue 0.10, dark_blue 0.10, gel_black 0.08, pencil_grey 0.08, blue_black 0.06, green 0.06",
        "opacity_multipliers": "0.92-0.97 for pens, 0.62 for pencil",
        "other_inks": "red_teacher (teacher marks), print_black (printed text), 4 highlighter inks (opacity 0.58-0.62), 6 coloured-pencil inks for map hatching (0.5)",
        "figure_strokes": "pencil grey with probability 0.3, else the writer's ink",
        "realised_hand_train": "blue_ballpoint 0.2608, black 0.142, gel_violet 0.1191, gel_blue 0.0982, dark_blue 0.0968, pencil_grey 0.0803, gel_black 0.0779, green 0.0606, blue_black 0.0593, red_teacher 0.0051"
       },
       "code_refs": [
        "pagesynth/page.py:INKS, INK_WEIGHTS (lines 42-60)",
        "pagesynth/page.py:pick_ink (lines 78-80)",
        "pagesynth/scenes.py:pick_figure_ink (lines 219-220)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_ink",
        "records/R5/GEN/changes.txt#line 17"
       ]
      },
      {
       "what": "Paper surface (every page)",
       "parameters": {
        "texture": "fine fibre noise (sd 2.2 after blur 0.8 px), low-frequency mottling (sd 1.8), 15-59 dust specks, darker outer 3.5 percent band",
        "pattern": "probability by page type: notebook 0.12, mixed 0.2, diagram 0.15, worksheet 0.3, table 0.25, map 0.15; kind uniform among tint, guilloche, watermark (non-text emblems), dots, faint_table, stripes; opacity 0.08-0.2 (scaled by kind)"
       },
       "code_refs": [
        "pagesynth/paper.py:add_texture (lines 141-167)",
        "pagesynth/paper.py:add_pattern (lines 252-316)",
        "pagesynth/generate.py:make_page (lines 131-138)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 35-41"
       ]
      }
     ],
     "disagreements": [],
     "unknowns": []
    }
   }
  },
  "06_extras_marks_stamps_figures": {
   "title": "Extras: teacher marks, stamps, figures and other objects",
   "parts": {
    "generator": {
     "title": "Extras: figures, pictures, maps, tables, hand marks, teacher marks, stamps, holes and other paper objects",
     "summary": "Mixed and diagram pages carry figures (six procedural generators) with symbol labels, two word labels and a caption, all written in the page writer's font; mixed and diagram pages may also carry a procedural picture with a title and a caption. Hand marks (circles, underlines, strikes, ticks, braces, scribbles, highlighter) and red teacher marks (marks, a grade, a short comment) are added by page-type probabilities. Round stamps carry unlabelled ring text in Noto Sans. Binder holes, staples, creases, stains, patterns and a show-through ghost alter the paper; stickers exist in code but are never placed.",
     "steps": [
      {
       "what": "Scene decisions per page type",
       "parameters": {
        "notebook": "hand marks 0.3, teacher 0.12, stamp 0.05, no figure, no picture",
        "mixed": "figure 0.65, teacher 0.5, stamp 0.35, picture 0.25, hand marks always",
        "diagram": "figure always (8-12 rows, needs at least 10 rows), hand marks 0.8, teacher 0.3, stamp 0.1, picture 0.1",
        "worksheet_and_table": "hand marks 0.3 (1-3 marks), teacher 0.2, stamp 0.15 (over text 0.4)",
        "map": "hand marks 0.5 (1 mark) and teacher 0.2 are drawn as decisions but produce nothing (see disagreements)",
        "stamp_over_text_notebook_family": "0.35"
       },
       "code_refs": [
        "pagesynth/generate.py:make_page (lines 97-124)",
        "pagesynth/scenes.py:scene_notebook_fig (lines 402-456)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 208-226"
       ]
      },
      {
       "what": "Figures (strokes only; every text is a labelled line in the writer's font)",
       "parameters": {
        "generators": "axes_plot, geometry_fig, circuit, molecule, flowchart, chart, uniform (flowchart falls back to axes_plot when fewer than 3 vocabulary words fit)",
        "size": "mixed pages 5-8 rows, diagram pages 8-12 rows, full text width minus 0.4 cell each side",
        "symbol_labels": "axis letters, tick numbers, function labels, vertex letters, circuit letters, atom symbols, chart percentages and years; tagged symbol (never cropped)",
        "word_labels": "2 vocabulary words per figure (axis titles or part/note names, 40 percent capitalised), placed away from strokes (at least 7 px) and within 90-160 px of ink; flowchart boxes carry 3-5 vocabulary words",
        "caption": "2-4 consecutive corpus words that are all language words, else 2 vocabulary words",
        "molecule": "one of 10 SMILES (benzene, toluene, phenol, glycine, glycerol, aspirin, ibuprofen, naphthalene, paracetamol, citric acid), 2D coordinates from RDKit, rotated with probability 0.3",
        "ink": "pencil grey 0.3 else the writer's ink"
       },
       "code_refs": [
        "pagesynth/scenes.py:figure_block (lines 224-272)",
        "pagesynth/scenes.py:place_word_label, Occupancy (lines 90-143)",
        "pagesynth/scenes.py:add_caption (lines 166-178)",
        "pagesynth/objects.py (lines 24-334)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 239-247"
       ]
      },
      {
       "what": "Pictures",
       "parameters": {
        "content": "procedural landscape: sky gradient, three hill bands, sun disc, a house, Gaussian noise sd 4; no photograph",
        "rows": "6-9 rows on pages with at least 12 rows; first row title, last row caption (corpus words)",
        "occluder": "opaque; gate c_cover rejects a page where a labelled line touches it"
       },
       "code_refs": [
        "pagesynth/objects.py:picture (lines 302-331)",
        "pagesynth/scenes.py:add_picture (lines 391-398)",
        "pagesynth/scenes.py:scene_notebook_fig (lines 413-449)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#row 245"
       ]
      },
      {
       "what": "Maps (map pages)",
       "parameters": {
        "data": "Natural Earth 1:50m countries, coastline, rivers and lake centerlines, lakes (GeoJSON)",
        "regions": "central_asia, turkey_caucasus, europe, asia, siberia, middle_east, volga_urals (uniform), random sub-window trimming up to 12 percent of each side",
        "drawn": "borders, coast, rivers (blue), lakes (tint), dashed 10-degree graticule without numbers, frame, 3-7 city dots; no printed text",
        "labels": "8-14 handwritten place labels at country centroids and river points, 1-3 circled dots with a pointer arrow and label (0.6), legend box with 2-3 hatched swatches and words, top-up until 8 labels and 80 letters (25 tries)",
        "hatching": "0-3 countries in coloured pencil",
        "title": "printed, 2-5 corpus words in a print font"
       },
       "code_refs": [
        "pagesynth/maps.py:render_map (lines 76-171)",
        "pagesynth/maps.py:REGIONS (lines 21-29)",
        "pagesynth/scenes.py:scene_map (lines 785-892)",
        "pagesynth/marks.py:hatch (lines 97-119)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#row 246"
       ]
      },
      {
       "what": "Tables",
       "parameters": {
        "table_page": "3-6 columns, 6-13 rows (capped by page height), row height 72, 80 or 90 px, printed rules 1.7 px; columns 0 and 1 hold words",
        "worksheet_table": "probability 0.3 when space allows; 2-4 columns, 3-5 rows",
        "header": "printed vocabulary words, capitalised, shrunk to 0.8 or 0.65 to fit",
        "cells": "handwriting (class table_cell): column 0 one or two vocabulary words (25 percent capitalised); other columns words or numbers 50/50; empty cells 0.1 (word columns other than 0) or 0.2 (number columns); number cells tagged mixed"
       },
       "code_refs": [
        "pagesynth/scenes.py:_table (lines 661-749)",
        "pagesynth/scenes.py:scene_worksheet (lines 556-568)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 248-251"
       ]
      },
      {
       "what": "Hand marks (strokes, never labelled; the margin note is a labelled line)",
       "parameters": {
        "count": "2-6 on notebook, mixed, diagram pages; 1-3 on worksheet and table pages",
        "kinds": "uniform over 8 slots: circle, underline (30 percent wavy), strike-through (second stroke 0.4; word stays in the label, line never cropped), tick (0.7) or cross, brace over three lines (needs more than 3 handwriting lines, else a scribble), scribble, highlighter (2 slots: yellow, green, pink or orange behind 1-2 words)",
        "ink": "writer's ink 0.6, pencil 0.4 (worksheet and table pages: blue ballpoint 0.6, pencil 0.4)",
        "margin_note": "probability 0.5 when a margin line exists: '!', '?', '+', '5', '10' or '2' in the writer's font (class annotation)"
       },
       "code_refs": [
        "pagesynth/scenes.py:handwriting_marks (lines 276-322)",
        "pagesynth/marks.py (lines 46-186)",
        "pagesynth/generate.py:make_page (line 113)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 227-236"
       ]
      },
      {
       "what": "Teacher marks (red_teacher ink)",
       "parameters": {
        "marks": "1-4 marks, each: circle 0.25, underline 0.25 (wavy 0.5), tick or cross 0.5 (tick 0.65, cross 0.35)",
        "grade": "one of 11 values at 1.7x size in a free spot in the upper right half (class teacher_mark)",
        "comment": "probability 0.6: a 2-4 word fragment of a corpus sentence in the lower half (class teacher_mark)",
        "font": "separate hand font, never personal-use",
        "realised": "teacher_mark 0.51 percent of train handwriting crops"
       },
       "code_refs": [
        "pagesynth/scenes.py:teacher_pass (lines 325-366)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_region_class"
       ]
      },
      {
       "what": "Stamps (text not labelled)",
       "parameters": {
        "shape": "round, radius 62-88 px, outer ring 3 px and inner ring 2 px at r - 9",
        "text": "2-3 corpus words of 4-10 letters from one sentence, upper-cased with the language's case table, along the ring; centre '№ n' (1-59)",
        "font": "Noto Sans (p_notosans)",
        "colour": "violet, blue, red or dark violet; opacity x 0.82 with blotchy texture; drawn on top of everything",
        "placement": "free spot, or anywhere (over text) with probability 0.35 (notebook family) or 0.4 (worksheet and table)",
        "label": "region 'stamp' with ignore_text = true; its text is stored in the page JSON region, not as a line; gate g_text_outside rejects stamp ink outside its circle",
        "overlap_record": "a line whose polygon meets a stamp, picture or sticker region lists it in overlaps"
       },
       "code_refs": [
        "pagesynth/scenes.py:add_stamp (lines 369-388)",
        "pagesynth/marks.py:stamp (lines 193-240)",
        "pagesynth/page.py:finalize (lines 306-314, 367-370)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#row 238"
       ]
      },
      {
       "what": "Paper objects and damage",
       "parameters": {
        "binder_holes": "probability 0.2: 2, 3 or 4 holes, radius 0.27-0.32 cell, 1.4 cells from the binding edge; occluders (gate c_cover)",
        "staple": "probability 0.08, near the top corner on the binding side",
        "creases": "0, 1 or 2 with probabilities 0.25, 0.5, 0.25; horizontal 0.6; at 30-70 percent of the page; shading only",
        "stains": "probability 0.25, one coffee-ring stain, radius 3-9 percent of the page width",
        "show_through": "always: the page's own labelled lines mirrored left-right, shifted up to +-40 px and +-20 px, blurred (sigma 1.6), strength 0.03-0.08 (light), 0.05-0.12 (medium), 0.08-0.16 (heavy); amount not stored",
        "answer_boxes": "printed frames registered as 'ignore' regions",
        "stickers_and_fingers": "marks.sticker exists but is never called; no finger code exists"
       },
       "code_refs": [
        "pagesynth/generate.py:make_page (lines 139-166)",
        "pagesynth/generate.py:make_ghost (lines 30-51)",
        "pagesynth/paper.py:add_holes, add_staple, add_creases, add_stains (lines 170-244)",
        "pagesynth/marks.py:sticker (lines 243-267)",
        "pagesynth/scenes.py:scene_worksheet (line 606)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 42-49",
        "records/R5/GEN/status.json (per-item metadata request)"
       ]
      }
     ],
     "disagreements": [
      "Map pages get no hand marks and no teacher marks. probabilities.tsv rows 224-225 give 0.5 and 0.2. Code: handwriting_marks and teacher_pass return early unless the page has lines of class 'handwriting' (scenes.py lines 278-280 and 336-338), and scene_map draws only 'print' and 'annotation' lines, so these decisions only consume random numbers. Code supports: none on map pages. Table pages can be marked only through their optional handwritten date field or top-up lines.",
      "Stamp over text on worksheet and table pages. probabilities.tsv row 226 gives 0.35 for both page families; generate.py line 117 uses rm.random() < 0.4. Code supports 0.4.",
      "Number of hand marks. probabilities.tsv row 234 lists 2-6 (notebook, mixed, diagram) and 1-3 (worksheet) and omits map pages (1 mark drawn, generate.py line 122, which then produces nothing) and table pages (1-3). Code supports the full list.",
      "Brace. probabilities.tsv row 231 says 'brace over three lines' with 0.125. Code draws a scribble instead when the page has 3 or fewer handwriting lines (scenes.py line 301 falls through to the else branch). Code supports brace-or-scribble.",
      "page.py docstring (gate c_cover, line 18) names stickers and fingers. No code places either (marks.sticker is never called). Code supports: no stickers or fingers in R5 data."
     ],
     "unknowns": [
      "Realised counts of figures, pictures, stamps, holes and marks per page are not in the records. They can be counted from effects_all in the sidecar TSVs or from the saved page JSONs."
     ]
    }
   }
  },
  "07_capture_simulation": {
   "title": "Capture simulation (scan or phone photo)",
   "parts": {
    "generator": {
     "title": "Capture simulation: scan, phone photo and strength",
     "summary": "Every page gets one capture strength (light, medium or heavy, each with probability 1/3 per attempt) and one mode: scan or phone. One analytic map moves the paper and every ink item together (rotation, perspective, curl, mesh), so polygons follow the ink; then content-independent photo effects are applied to the whole image: resampling, blur, motion blur, illumination gradient, cast shadow, colour cast, sensor noise and JPEG.",
     "steps": [
      {
       "what": "Strength and mode",
       "parameters": {
        "strength": "uniform over light, medium, heavy (strength 'mixed'), redrawn on every attempt",
        "mode_light": "scan 1.0",
        "mode_medium": "scan 0.45, phone 0.55",
        "mode_heavy": "phone 1.0",
        "realised_hand_train": "light 0.3625, medium 0.3396, heavy 0.2979; scan 0.5197, phone 0.4803"
       },
       "code_refs": [
        "pagesynth/geometry.py:STRENGTHS (lines 19-26)",
        "pagesynth/geometry.py:pick_strength (lines 29-35)",
        "pagesynth/generate.py:make_page (line 62)",
        "produce_r5.py:work (line 125, strength 'mixed')"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_strength",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_geo_mode"
       ]
      },
      {
       "what": "Geometry (one forward map for paper and items)",
       "parameters": {
        "rotation_deg": "light 0.15-0.9, medium 0.8-2.5 (halved in scan mode), heavy 2.5-5.5; random sign",
        "perspective": "corner jitter of +-persp x min(W, H): light 0, medium 0.03, heavy 0.075 (phone only)",
        "page_scale": "light 1.0, medium 0.95-0.99 (scan 0.97-1.0), heavy 0.84-0.92",
        "curl_px": "light 0.2-1.2, medium 1.5-4.5, heavy 5-11 (x 0.35 in scan mode); vertical displacement from two sines plus a quadratic term across the width",
        "mesh_px": "light 0.1-0.6, medium 0.8-2.5, heavy 2.5-5 (x 0.5 in scan mode); horizontal sine displacement",
        "phone_shift": "+-2 percent of width and height",
        "scan_skew": "shear, normal sd 0.12 degrees",
        "output_canvas": "same pixel size as the flat page"
       },
       "code_refs": [
        "pagesynth/geometry.py:Geo.__init__ (lines 43-84)",
        "pagesynth/geometry.py:Geo.u, forward, backward_maps (lines 86-119)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 55-69"
       ]
      },
      {
       "what": "Background outside the page",
       "parameters": {
        "scan": "scanner bed light grey 250 (0.7) or dark (60, 60, 62) (0.3); warp border 252",
        "phone": "procedural desk: wood-like streaks (horizontal or vertical) or cloth, random colour; soft drop shadow of the page edge (45 percent darkening)"
       },
       "code_refs": [
        "pagesynth/page.py:finalize (lines 194-204)",
        "pagesynth/geometry.py:desk_texture (lines 240-257)"
       ],
       "report_refs": []
      },
      {
       "what": "Photo effects (whole image, ink does not move)",
       "parameters": {
        "down_up_resampling": "light 1.0, medium 0.88-0.97, heavy 0.78-0.90",
        "gaussian_blur_sigma_px": "light 0.4-0.7, medium 0.6-0.95, heavy 0.8-1.2",
        "motion_blur": "heavy phone only: 5 px line kernel at a random angle",
        "illumination": "linear gradient plus radial fall-off, amplitude light 0.02-0.06, medium 0.08-0.16, heavy 0.18-0.30",
        "cast_shadow": "phone only: blurred random quadrilateral, strength 0.18 (medium) or 0.30 (heavy) x U(0.5, 1.0)",
        "colour_cast": "per channel 1 + c x U(-1, 1), c = 0.012 / 0.04 / 0.07",
        "sensor_noise": "Gaussian (blurred 0.6 px), level light 3.0-4.5, medium 3.5-5.5, heavy 5-8, scaled by 0.6 + 0.4 x intensity/255; scan mode channel weights B 0.30, G 0.40, R 1.0",
        "scanner_white_point": "scan mode gain 1.01-1.04 (bright paper clips)",
        "jpeg_quality": "light 88-95, medium 70-85, heavy 50-68 (encode and decode)",
        "creases_stains_show_through": "applied to the flat paper before the warp (see extras section)"
       },
       "code_refs": [
        "pagesynth/geometry.py:photo_effects (lines 260-306)",
        "pagesynth/page.py:finalize (line 317)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 70-96"
       ]
      },
      {
       "what": "Recorded capture values",
       "parameters": {
        "photo_json": "blur, noise, jpeg, grad, down",
        "geometry_json": "mode, theta, scale, persp, curl, mesh",
        "not_recorded": "shadow and cast draws, ghost amount, desk kind"
       },
       "code_refs": [
        "produce_r5.py:work (lines 200-201)",
        "pagesynth/geometry.py:Geo.__init__ (lines 83-84)"
       ],
       "report_refs": [
        "records/R5/GEN/status.json (per-item metadata request)"
       ]
      }
     ],
     "disagreements": [
      "probabilities.tsv rows 50-54 give capture strength 1/3 each and scan 0.4833. The realised train handwriting shares are light 0.3625, medium 0.3396, heavy 0.2979 and scan 0.5197. Code: a page that fails a gate is retried with attempt + 1, which redraws the strength (generate.py lines 60-62, 172-184), so pages that pass the gates lean towards lighter capture. Code supports a selection effect; the size of it per gate is not recorded."
     ],
     "unknowns": [
      "The noise channel weights are described as 'measured on real scans: B,G,R std about 1.1, 1.5, 5.6' (geometry.py line 298), but the comment does not say which scans."
     ]
    }
   }
  },
  "08_cropping": {
   "title": "Cropping (polygon or rectangle)",
   "parts": {
    "generator": {
     "title": "Line crops: selection, polygon versus rectangle, quality checks",
     "summary": "Each page gives up to 6 line crops in train and 4 in val and test, chosen without replacement with weights that favour lines of three or more words. 70 percent of crops are cut with the polygon mask (pixels outside the line polygon set to the paper level) and 30 percent as a plain rotated rectangle. Both are straightened, native-resolution colour JPEGs. Quality rests on the page-level gates; no check runs on the crop itself.",
     "steps": [
      {
       "what": "Which lines may become crops",
       "parameters": {
        "H_population": "classes handwriting, annotation, teacher_mark, table_cell",
        "T_population": "class print",
        "minimum": "at least 3 non-space characters",
        "excluded": "lines with a struck-through word; lines tagged symbol (axis letters, formulas, atom labels, tick numbers)"
       },
       "code_refs": [
        "pagesynth/crops.py:HAND_CLASSES, TYPED_CLASSES (lines 16-17)",
        "pagesynth/crops.py:eligible_lines (lines 105-120)",
        "produce_r5.py:CFG min_chars (line 48)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 273-274"
       ]
      },
      {
       "what": "Line selection per page",
       "parameters": {
        "lines_per_page": "train 6, val 4, test 4 (all eligible lines when fewer)",
        "weights": "3+ words 1.0, 2 words 0.5, 1 word 0.15",
        "method": "weighted sampling without replacement (Efraimidis-Spirakis keys u^(1/w)), selected lines kept in reading order",
        "rng": "seeded deterministically from ('sel', run seed, language, page index)",
        "realised_hand_train_classes": "handwriting 0.7277, table_cell 0.1369, annotation 0.1304, teacher_mark 0.0051"
       },
       "code_refs": [
        "produce_r5.py:CFG lines_per_page (line 44)",
        "produce_r5.py:work (lines 156-171)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_region_class"
       ]
      },
      {
       "what": "Polygon of a line",
       "parameters": {
        "source": "derived from the line's own warped alpha (threshold 0.05) in a frame along the line direction; per-column ink envelope widened by a sliding window of +-3 px and a margin of 3 px (light), 4 (medium), 5 (heavy); simplified with 0.6 px tolerance",
        "cross_check": "polygon from the flat alpha mapped through the warp must agree (IoU at least 0.6)"
       },
       "code_refs": [
        "pagesynth/geometry.py:derive_polygon (lines 188-236)",
        "pagesynth/page.py:finalize (lines 233-253, 277-294)"
       ],
       "report_refs": []
      },
      {
       "what": "Crop geometry and masking",
       "parameters": {
        "mode_share": "poly 0.7, rect 0.3 per line (realised train hand 0.7018 / 0.2982)",
        "rectangle": "minimum-area rectangle of the polygon plus 4 px on every side, warped to an axis-aligned image whose long side is the text direction; replicate border",
        "poly_mask": "pixels outside the polygon replaced by the per-channel 90th percentile of pixels inside it (the paper level)",
        "rect": "no mask: neighbouring ink, rules and marks stay",
        "resolution": "native page resolution (about 150 dpi before the capture scale), no resize, colour BGR",
        "file": "JPEG quality 92 (the page was already JPEG-coded by the capture step)"
       },
       "code_refs": [
        "pagesynth/crops.py:_rect_frame (lines 20-37)",
        "pagesynth/crops.py:crop_line (lines 40-54)",
        "produce_r5.py:CFG p_crop_poly, jpeg_quality (lines 45, 47)",
        "produce_r5.py:work (lines 166-171)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_crop_mode",
        "records/R5/GEN/probabilities.tsv#rows 271-272"
       ]
      },
      {
       "what": "Quality checks that protect crops (page gates; a failing page is redrawn, at most 6 attempts)",
       "parameters": {
        "a_glyph": "every character in the font's good set and inked",
        "b_recall": "at least 99.9 percent of the line's warped ink inside its polygon",
        "b_overlap": "at most 0.5 percent of polygon pixels where another labelled line has alpha above 0.15",
        "b_consistency": "IoU at least 0.6 between the two polygon constructions",
        "c_frame": "the line's ink and polygon inside the image",
        "c_cover": "no hole, picture or other occluder touches a line polygon",
        "g_text_outside": "stamp ink only inside its circle",
        "h_language_text": "at least 3 lines with a language word and 60 language letters in handwriting-like lines; 2 word labels per figure or picture, 3 per map; table header and word-column rules",
        "d_nfc": "labels are NFC",
        "after_production": "r5_finalize checks NFC, empty clutter labels and that each image file exists; test images are never opened"
       },
       "code_refs": [
        "pagesynth/page.py:finalize (lines 182-314)",
        "pagesynth/page.py:GateFailure and thresholds (lines 62-76)",
        "pagesynth/langtext.py:check_page (lines 109-157)",
        "pagesynth/generate.py:attempt_page (lines 172-184)",
        "scripts/r5_finalize.py (lines 86-94)"
       ],
       "report_refs": []
      }
     ],
     "disagreements": [],
     "unknowns": [
      "No crop-level check exists (size, orientation, readability). Inferred from crops._rect_frame, not measured: a line whose polygon is taller than wide, such as a very short label, would be cut rotated by 90 degrees, because the long side of the rectangle is taken as the text direction. The count of such crops is unknown; it can be found by comparing crop width and height in the image files."
     ]
    }
   }
  },
  "09_typed_page_rendering": {
   "title": "Typed-page rendering",
   "parts": {
    "generator": {
     "title": "Typed lines: printed worksheets and tables (population T)",
     "summary": "Typed crops come from a separate population of worksheet (0.85) and table (0.15) pages, drawn by the same scene code as the handwriting worksheets. Only lines of class print become typed crops: the worksheet title, the numbered question lines and the table header words. Printed text uses 17 OFL or Apache print fonts at 28-38 px with no jitter, slant or bleed, in print_black ink. The same capture, polygon and crop steps as handwriting apply.",
     "steps": [
      {
       "what": "Print writer",
       "parameters": {
        "fonts": "print pool with weights (Noto Sans 2.0; PT Sans 2.0 Cyrillic / 1.0 Latin; PT Serif 1.5 / 1.0; the other 14 1.0)",
        "acceptance": "at least 14 of 25 sampled sentences drawable",
        "size": "uniform 28-38 px",
        "style": "hand=False: no slant, jitter, pressure, texture, elastic, bleed; spacing and word gap 1.0",
        "ink": "print_black (BGR 38, 36, 36; opacity 0.97)",
        "realised_typed_train_licence": "ofl 0.9433, apache2 0.0567"
       },
       "code_refs": [
        "pagesynth/scenes.py:print_writer (lines 481-496)",
        "pagesynth/ink.py:default_style (lines 95-98)",
        "pagesynth/page.py:INKS (line 53)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#typed_train_licence_class",
        "records/R5/GEN/probabilities.tsv#rows 191-207"
       ]
      },
      {
       "what": "Printed elements of a worksheet",
       "parameters": {
        "title": "2-5 corpus words, 1.35 x size, centred (no Latin abbreviation insertion)",
        "questions": "3-7 items; each a paragraph of 8-21 corpus words prefixed with 'n.' (the number is in the label), wrapped without hyphenation, line spacing 1.5 x size",
        "answers": "handwriting: 1-3 ruled lines, a framed box of 2-3 rows, or a short inline answer (1/3 each); date field with handwriting on a printed rule (0.7)",
        "tables": "printed header words (vocabulary, capitalised) and handwritten cells",
        "top_up": "ruled handwriting lines added until handwriting-like lines carry 75 letters"
       },
       "code_refs": [
        "pagesynth/scenes.py:scene_worksheet (lines 518-658)",
        "pagesynth/scenes.py:_printed_paragraph (lines 499-515)",
        "pagesynth/scenes.py:_table (lines 687-704)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 248-251"
       ]
      },
      {
       "what": "Typed crops",
       "parameters": {
        "classes": "print only",
        "per_page": "6 train, 4 val/test, same weights and crop modes as handwriting",
        "page_index": "10,000,000 + page number (separate seeds from H pages); page_id suffix _T",
        "realised_typed_train": "worksheet 0.866, table 0.134; poly 0.6998, rect 0.3002; paper blank 1.0"
       },
       "code_refs": [
        "produce_r5.py:work (lines 121-122, 130, 157-163)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#typed_train_page_type",
        "records/R5/GEN/gen_reports/realised_stats_stage1.json#typed_train_crop_mode"
       ]
      }
     ],
     "disagreements": [],
     "unknowns": [
      "Shares of title, question and header lines among typed crops are not in the records. They can be counted from the sidecar's n_words and the page JSON tags, which are saved for H pages only (T pages are never saved whole)."
     ]
    }
   }
  },
  "10_clutter_crops_and_backgrounds": {
   "title": "Clutter crops and their backgrounds",
   "parts": {
    "generator": {
     "title": "Clutter crops (empty-label windows)",
     "summary": "With probability 0.45 an H page also gives up to 2 line-shaped windows that touch no labelled text line. Half of the tries aim inside a figure, stamp, picture, answer box or table region, the rest anywhere on the image, but within 160 px of writing. The label is the empty string. Windows can still show unlabelled text: stamp ring text and the mirrored show-through.",
     "steps": [
      {
       "what": "Window choice",
       "parameters": {
        "page_probability": "0.45 (H population only)",
        "windows_per_page": "up to 2, non-overlapping, 60 tries",
        "height": "uniform 46-130 px",
        "width": "height x uniform 2.6-12, at most 0.92 x image width; at least 60 x 24 px",
        "region_aim": "probability 0.5: centre uniform in the bounding box of a random region of type figure, stamp, picture, ignore (answer box) or table; kind = region type; else kind 'paper' and a uniform centre",
        "must_not_touch": "any labelled line polygon dilated by 10 px (all classes, including symbols and margin notes)",
        "near_text": "window centre within 160 px of the dilated text mask",
        "cut": "axis-aligned rectangle of the final image, not straightened, JPEG quality 92",
        "label": "empty string; crop_mode column holds the window kind; licence_class empty"
       },
       "code_refs": [
        "pagesynth/crops.py:text_mask (lines 57-63)",
        "pagesynth/crops.py:clutter_windows (lines 66-102)",
        "produce_r5.py:CFG clutter_page_p, clutter_per_page (line 46)",
        "produce_r5.py:work (lines 172-180)"
       ],
       "report_refs": [
        "records/R5/GEN/probabilities.tsv#rows 275-281"
       ]
      },
      {
       "what": "Counts",
       "parameters": {
        "planned_per_language": "train 600, val 50, test 50",
        "produced_before_trim": "train 1,453-1,580, val 179-237, test 182-232 per language",
        "kept": "the first rows in id order, i.e. from the lowest page indices"
       },
       "code_refs": [
        "scripts/r5_finalize.py (lines 61-65)"
       ],
       "report_refs": [
        "records/R5/GEN/gen_reports/counts_stage1.json#rows",
        "records/R5/GEN/plan_stage1.json#clutter"
       ]
      }
     ],
     "disagreements": [
      "crops.py docstring (lines 7-8) and probabilities.tsv row 276 ('window on a figure (strokes, no text)') describe clutter as text-free. Code: the mask covers only labelled lines, so a window of kind 'stamp' can show the stamp's ring words and '№ n' (unlabelled Noto Sans text), and any window can show the mirrored show-through of the page's lines. Code supports: no labelled text, but unlabelled text-like ink is possible."
     ],
     "unknowns": [
      "Realised shares of window kinds (paper, figure, stamp, picture, ignore, table) are not in the records. Count crop_mode in synth_clutter_*.meta.tsv.",
      "How often a phone-mode window includes desk background is unknown. The 160 px rule keeps the centre near writing but does not exclude the desk."
     ]
    }
   },
   "project_notes": "Project check (25 Nov 2026): no file of CODE/src/pagesynth, pagesynth_v020 or pagesynth_v1 names or reads NAF, DocLayNet, School Notebooks or RUKOPYS images (grep for naf, doclaynet, rukopys, school_notebook, imread, Image.open and parquet readers over the three trees); image reads exist only in diagnostic and calibration scripts that production never calls. Clutter backgrounds are therefore the generator's own procedural paper, figures, stamps, pictures and desk. Project records that name NAF and DocLayNet as clutter backgrounds (records/deck2/datasets.json 'Clutter images'; records/R5/DATA/data_sources.json role_r5) are wrong on this point."
  },
  "11_production_and_determinism": {
   "title": "Production, seeds and determinism (with the regeneration check of this release)",
   "parts": {
    "generator": {
     "title": "Production: populations, seeds, stages, saved pages, finalisation, determinism, metadata",
     "summary": "Production runs produce_r5.py per (language, split, population, page range) on CPU nodes, sharing a chunk list between Slurm array tasks. Every page is a function of the seed tag r5v1, split, population, language, page index and attempt. Stage 1 (45,400 pages) was finalised into manifests, and the R5 training mix used frozen copies of the stage-1 train manifests with 241 rows removed; stage 2 has no realised count in the records. Byte-identical reruns were shown only for the generate_pages.py driver on the laptop, not for the production driver.",
     "steps": [
      {
       "what": "Populations and chunks",
       "parameters": {
        "H": "page mix of six types; gives hand_synth line crops, clutter crops and saved whole pages",
        "T": "worksheet/table mix; gives typed_synth line crops",
        "chunk": "one produce_r5.py call of up to 400 consecutive page indices; tasks claim chunks with an atomic mkdir and skip chunks whose part file exists",
        "order": "val and test chunks first, train chunks round-robin over languages and populations",
        "stage1_pages_per_language": "H train 2,400, T train 1,200, H val 320, H test 320, T val 150, T test 150 (derived from produced_before_trim divided by lines per page; totals 45,400 pages and 130 chunks match report.txt)",
        "workers": "a pool of forked processes, results in page order (imap)"
       },
       "code_refs": [
        "scripts/make_chunks.py (lines 16-37)",
        "scripts/run_chunks.py (lines 31-56)",
        "scripts/reorder_chunks.py (lines 7-24)",
        "produce_r5.py:main (lines 262-276)",
        "scripts/r5_production.sbatch, r5_production_mid.sbatch, r5_production_small.sbatch"
       ],
       "report_refs": [
        "records/R5/GEN/report.txt#line 9",
        "records/R5/GEN/status.json#task3_production",
        "records/R5/GEN/gen_reports/counts_stage1.json#rows"
       ]
      },
      {
       "what": "Seeds",
       "parameters": {
        "run_seed": "a fixed deterministic function of 'r5v1|<split>|<pop>', mod 2^31",
        "page_type": "drawn from the mix with a generator seeded deterministically from ('ptype|<run seed>|<lang>|<idx>')",
        "page_index": "idx for H, 10,000,000 + idx for T",
        "page_seed": "a fixed deterministic function of '<run seed>|<page type>|<lang>|<page index>|<attempt>'",
        "streams": "8 child generators (text, geometry, photo effects, desk, paper, misc, ghost, extra) spawned from the page seed with numpy SeedSequence",
        "attempts": "at most 6; a gate failure retries with attempt + 1 (everything redrawn); a page failing all 6 gives no rows and is logged in _parts/<tag>.fail.jsonl",
        "line_selection": "generator seeded deterministically from ('sel|<run seed>|<lang>|<idx>')"
       },
       "code_refs": [
        "produce_r5.py:sha_int (lines 55-56)",
        "produce_r5.py:main (line 249)",
        "produce_r5.py:pick_type (lines 108-112)",
        "produce_r5.py:work (lines 122-129)",
        "pagesynth/page.py:seed_for (lines 436-439)",
        "pagesynth/generate.py:_rngs, make_page, attempt_page (lines 25-27, 60-61, 172-184)"
       ],
       "report_refs": []
      },
      {
       "what": "Pages saved whole (detector set)",
       "parameters": {
        "which": "H pages with index below pages_save: 400 per language in train, 30 in val, 30 in test (first chunk of each)",
        "files": "page JPEG (quality 92) and page JSON: every line with text, orig_text, polygon, baseline, box, reading order, region class, font, axes, ink, style, tags, struck_spans, overlaps, per-line QA; regions (figure, table, picture, stamp, ignore) with polygons; paper, geometry, photo values, fonts with licence classes, page licence_class, info.effects, split, generator_version",
        "manifest_row": "kind hand_synth, unit page, text = all line texts of the page in reading order joined by spaces (including print lines, symbols and struck words)",
        "realised": "train 3,999 (tk 399), val 300, test 300"
       },
       "code_refs": [
        "produce_r5.py:work (lines 181-197)",
        "scripts/make_chunks.py (lines 16-34)",
        "pagesynth/page.py:finalize (lines 332-401)"
       ],
       "report_refs": [
        "records/R5/GEN/production_done.json#manifests",
        "records/R5/GEN/gen_reports/counts_stage1.json#rows (tk pages train 399)"
       ]
      },
      {
       "what": "Finalisation (how the planned number of rows was kept)",
       "parameters": {
        "merge": "all _parts/*.tsv rows grouped by (kind, split, language); kind = pages for unit page, else hand, typed or clutter",
        "keep": "sorted by id, first N per group kept (N from the plan); ids carry the zero-padded page index, so the lowest page indices are kept",
        "extra_rows": "r5_finalize.sbatch passes --keep-extra, so rows beyond the plan are only left out of the manifests; their image files stay on disk and rows_dropped_beyond_plan reads 0",
        "outputs": "synth_{hand,typed,clutter,pages}_{train,val,test}.tsv (10 columns) and .meta.tsv (all 46 columns), counts_stage1.json, realised_stats_stage1.json, production_done.json (one record per manifest)",
        "plan_stage1_per_language": "hand 12,000 / 1,000 / 1,000; typed 6,000 / 500 / 500; clutter 600 / 50 / 50; pages 400 / 30 / 30",
        "realised_stage1_totals": "hand 120,000 / 10,000 / 10,000; typed 60,000 / 5,000 / 5,000; clutter 6,000 / 500 / 500; pages 3,999 / 300 / 300",
        "produced_before_trim": "hand train 14,338-14,388 per language (about 2,350 extra per language kept on disk), typed train 7,042-7,084"
       },
       "code_refs": [
        "scripts/r5_finalize.py (lines 37-145)",
        "scripts/r5_finalize.sbatch (lines 15-24)"
       ],
       "report_refs": [
        "records/R5/GEN/plan_stage1.json",
        "records/R5/GEN/production_done.json#rows_dropped_beyond_plan",
        "records/R5/GEN/gen_reports/counts_stage1.json#totals"
       ]
      },
      {
       "what": "Stage 1 versus stage 2 and the R5 training mix",
       "parameters": {
        "stage2_plan": "hand train 40,000 and typed train 20,000 per language (val, test, clutter and pages as stage 1)",
        "stage2_realised": "counts.json: realised_stage2 null or 0 for every row",
        "stage2_finalize": "job 51070 cancelled; resubmitted as 51289 writing to manifests_stage2/ (FREEZE record)",
        "training_mix": "frozen copies of the stage-1 manifests (frozen_mix_v1); 241 synthetic train rows removed from the copies only: synth_hand_train 120,000 -> 119,844, synth_typed_train 60,000 -> 59,915",
        "mix_shares": "hand_synth 0.03 per Cyrillic language and 0.0425 per Latin language, typed_synth 0.006 x 10, clutter 0.03 (the project's mix_v1 decision)",
        "evaluation_copies": "synth val/test manifests copied read-only to frozen_eval_v1 byte-identical to production_done stage 1"
       },
       "code_refs": [
        "scripts/make_chunks.py (lines 8-11)",
        "scripts/r5_finalize.sbatch (lines 19-22)"
       ],
       "report_refs": [
        "records/R5/GEN/plan_stage2.json",
        "records/R5/GEN/counts.json#realised_stage2",
        "PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/freeze_record.json#mix_v1.dropped_rows",
        "PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/freeze_record.json#mix_v1.shares",
        "PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/freeze_record.json#gen_jobs",
        "PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/freeze_record.json#evaluation_copies"
       ]
      },
      {
       "what": "Determinism evidence",
       "parameters": {
        "test": "scripts/check_determinism.py runs generate_pages.py twice in separate processes (seed 77, strength cycle) and compares every .jpg and .json byte for byte",
        "result_0_3_0": "8 of 8 (language, page type) combinations, 48 files byte-identical, on the laptop",
        "not_covered": "produce_r5.py (crops, selection, clutter, multiprocessing), the cluster versus the laptop for 0.3.0, strength 'mixed'"
       },
       "code_refs": [
        "scripts/check_determinism.py (lines 29-49)",
        "scripts/xplat_check.sbatch, scripts/xplat_local.sh (Mac versus Linux check of an earlier version)"
       ],
       "report_refs": [
        "records/R5/GEN/determinism_v030.txt",
        "records/R5/GEN/changes.txt#line 26"
       ]
      },
      {
       "what": "Per-item metadata columns (manifest = first 10; .meta.tsv = all 46)",
       "parameters": {
        "id": "hs_/ts_/cl_<split>_<lang>_<page idx 6 digits>_<n>; pages pg_<split>_<page_id>",
        "image": "absolute cluster path of the JPEG",
        "text": "NFC label; empty for clutter; joined line texts for pages",
        "lang, script": "language code, Cyrl or Latn",
        "kind": "hand_synth, typed_synth or clutter (pages: hand_synth)",
        "source": "pagesynth-0.3.0:<page_id>:<line id> (clutter :window; pages: path of the page JSON)",
        "split": "train, val or test",
        "group": "<split>_<pop>_<page_id>: all rows of one page share it",
        "unit": "line or page",
        "page_id": "<page type>_<lang>_<strength initial>_<page index>, typed pages end in _T",
        "line_id": "l000... in reading order (top to bottom, rows within 0.55 x size, left to right)",
        "page_type, strength, geo_mode, paper_kind": "page values (geo_mode = scan or phone)",
        "region_class": "handwriting, annotation, teacher_mark, table_cell, print; clutter; page",
        "font_id": "line font; pages: comma-joined fonts",
        "font_group": "seen or unseen (held-out)",
        "licence_class / font_licence_class": "licence class of the line font (same value twice); pages: page licence_class; clutter: empty",
        "heldout_font": "1 if the line font is held out, else 0",
        "ink": "ink name",
        "crop_mode": "poly or rect; clutter: window kind",
        "size_px": "font size in flat px",
        "font_axes": "JSON of variable-axis values",
        "slant_deg, spacing, word_gap, drift_xh, weight_px, tex_depth, elastic, elastic_alpha, size_scale": "realised writer style of handwriting lines (empty for print)",
        "overlaps": "stamp, picture or sticker regions that meet the line polygon",
        "mixed": "1 if the line is tagged mixed",
        "orig_text": "uz_latn corpus text before the mark mapping",
        "n_chars, n_words": "characters including spaces; space-separated tokens",
        "effects": "page paper effects: pattern, binder holes, staple, creases, stains, show-through",
        "effects_all": "all page effects except font, ink, class and pen tags (geometry, strength, paper style, margin, JPEG/blur/noise bins, marks, objects, stamp, writer effects)",
        "photo_json, geometry_json": "capture values (see capture section)",
        "source_doc": "document id(s) of the corpus sentence the line was cut from; pages: all ids of the page (up to 2,000 characters)",
        "source_doc_confidence": "unique, ambiguous (several drawn sentences contain the line, up to 3 ids), split (two halves matched), none (vocabulary label, date, number, grade), page"
       },
       "code_refs": [
        "produce_r5.py:COLS (lines 224-228)",
        "produce_r5.py:work.meta (lines 136-149)",
        "produce_r5.py:source_docs (lines 84-105)",
        "produce_r5.py:work (lines 198-220)"
       ],
       "report_refs": [
        "records/R5/GEN/status.json (per-item metadata request)"
       ]
      },
      {
       "what": "Software",
       "parameters": {
        "environment": ".venv_gen, Python 3.12 via uv",
        "pinned_packages": "fonttools 4.68.0, pillow 13.0.0, opencv-python-headless 5.1.0.95, numpy 2.5.5, scipy 1.18.1, rdkit 2026.9.2, pyarrow 26.0.1, huggingface-hub 2.4.0 and others; matplotlib and schemdraw are pinned but not imported by the generator modules"
       },
       "code_refs": [
        "requirements_gen.txt (lines 1-30)",
        "scripts/setup_env.sh (lines 7-8)"
       ],
       "report_refs": []
      }
     ],
     "disagreements": [
      "r5_finalize.py docstring (line 9) says rows beyond the plan 'are not written to the manifest and their crop files are deleted'. r5_finalize.sbatch (line 24) passes --keep-extra, so the files stay on disk and production_done.json shows rows_dropped_beyond_plan 0, although counts_stage1.json shows about 2,350 extra hand train rows per language. Code supports: extra files kept, manifests trimmed.",
      "r5_finalize.py docstring says it keeps 'the first N rows in page order'. It sorts by id. Page ids sort by page type, then language, strength initial and index, not by page order. With 400/30/30 pages planned and at most that many produced, no page row was trimmed in stage 1. Code supports: id order.",
      "production_done.json was written at 2026-11-21T03:20:17Z. The FREEZE record says the frozen copies (02:07-02:16Z) are 'byte-identical to production_done stage 1', and that the 02:30 and 03:20 re-finalize jobs could still rewrite manifests/. The records do not show whether the 03:20 outputs are the ones frozen (see unknowns)."
     ],
     "unknowns": [
      "Whether the manifests recorded in records/R5/GEN/production_done.json are byte-identical to the frozen copies; a byte-for-byte comparison of the two would settle it.",
      "Whether stage 2 production and its finalize (job 51289, manifests_stage2/) completed. GEN and FREEZE records do not say.",
      "Which tk train page (index below 400) failed all 6 attempts, and why. See _parts/train_tk_H_0_400.fail.jsonl on the cluster.",
      "Bitwise equality between laptop and cluster outputs for 0.3.0, and determinism of produce_r5.py itself: not tested in the records."
     ]
    },
    "regeneration_check": {
     "why": "A line crop records only its own line's font. To know every font drawn on the page of each released item (the page writer's hand on a typed worksheet, figure labels, marks), the pages had to be rebuilt; saved page JSONs exist only for the pages saved whole (train page index below 400, val and test below 30).",
     "how": "Job B (records/R5/RELEASE2/code/rel2_regen.py, cluster job 55358, ZEN4, 16 CPUs) imported the unchanged production driver CODE/src/pagesynth/produce_r5.py and called its work() for every page behind a released or pre-freeze row (37,736 pages), with the production settings (seed tag r5v1, font policy of the split, the split's sentence bank, pages_save of the stage-1 chunk list). JPEG writes were replaced by an in-memory encoder whose output was compared byte for byte; page JSONs went to a scratch folder and were compared byte for byte with the stored ones.",
     "results": {
      "totals": {
       "pages": 37736,
       "rows_checked": 221590,
       "rows_cols_equal": 221445,
       "bytes_equal": 172906,
       "page_json_equal": 3045,
       "page_json_differs": 1549,
       "bytes_differ": 48684,
       "rows_cols_differ": 145,
       "regen_row_not_in_manifests": 8939
      },
      "handwriting_population": {
       "pages": 25027,
       "rows_checked": 151590,
       "rows_cols_equal": 151445,
       "bytes_equal": 103013,
       "page_json_equal": 3045,
       "page_json_differs": 1549,
       "bytes_differ": 48577,
       "rows_cols_differ": 145,
       "regen_row_not_in_manifests": 8896
      },
      "typed_population": {
       "pages": 12709,
       "rows_checked": 70000,
       "rows_cols_equal": 70000,
       "bytes_equal": 69893,
       "bytes_differ": 107,
       "regen_row_not_in_manifests": 43
      },
      "column_mismatch_counts": {
       "text": 114,
       "source": 121,
       "line_id": 96,
       "size_px": 110,
       "n_chars": 112,
       "effects_all": 139,
       "font_id": 98,
       "n_words": 89,
       "source_doc": 105,
       "group": 89,
       "page_id": 89,
       "strength": 89,
       "geo_mode": 77,
       "ink": 72,
       "crop_mode": 47,
       "slant_deg": 96,
       "spacing": 96,
       "word_gap": 96,
       "drift_xh": 96,
       "weight_px": 96,
       "tex_depth": 96,
       "size_scale": 96,
       "effects": 63,
       "photo_json": 102,
       "geometry_json": 102,
       "elastic_alpha": 76,
       "source_doc_confidence": 37,
       "elastic": 52,
       "paper_kind": 18,
       "region_class": 17,
       "mixed": 1,
       "overlaps": 5,
       "font_axes": 18,
       "licence_class": 6,
       "font_licence_class": 6
      },
      "manifest_rows_not_regenerated": 9
     },
     "finding": "The production pages are reproducible in content but not always byte for byte. Typed pages (population T) reproduce almost exactly; handwriting pages differ in small numeric details (a polygon vertex moved by 2 px, a different vocabulary word in a few lines). Code reading gives a likely cause: FontFace.xheight_px caches the measured x-height under the rounded size (fonts.py lines 289-301) while the measurement uses the unrounded size, so the cached value depends on which size a worker process measured first, that is on the order of pages in the process; production distributed pages to worker processes dynamically. The GEN determinism check (8 of 8 combinations byte-identical) ran fixed page sequences and could not see this. Within one attempt the fonts are chosen before any such measurement (layouts.choose_writer, scenes.print_writer), but a page gate that fails in one run and passes in the other changes the attempt number and with it the seed and the fonts. Evidence: among the 33,787 released-candidate items whose page was saved whole, the regenerated attempt differed for 45 items and the regenerated font list for 52 (build_report.json page_font_evidence). Therefore the release takes the font list from the saved page JSON wherever it exists, and for the other pages excludes every page whose regenerated rows differ from its stored rows in text, font, line id or class, or lack a stored font, or do not reproduce the item (stage 16). Every typed (population T) row was reproduced with equal metadata, so no typed page changed its attempt.",
     "released_images_are_the_trained_images": {
      "check": "every released image file was compared byte for byte, while it was copied, with the image recorded by the data build before training (the data build's internal image list, 221,599 generated ids, finished 2026-11-21T01:52:29Z; the first training sequence was built at 02:19Z)",
      "result": {
       "differing_examples": [],
       "verified_byte_for_byte_against_trained_images": 206619,
       "log": "the data build's internal image list (finished 2026-11-21T01:52:29Z, before the first training sequence was built)"
      },
      "stage2_ranges": "Stage 2 wrote into the same image tree, but its 200 chunks (DATA/tmp/r5_chunks_stage2.tsv) are all train chunks starting at page index 2400 (population H) or 1200 (T), beyond every stage-1 range (H 0-2399, T 0-1199, val/test 0-319 and 0-149); grep for lower start indices found 0 rows."
     },
     "code_unchanged": "Generator .py files last modified 2026-11-20T23:01:41Z, first stage-1 part file 2026-11-20T23:04:48Z, newest file of the generator's virtual environment 2026-11-19T14:04:58Z (DATA/tmp/release2/facts/code_mtimes.json)."
    }
   }
  },
  "12_dedup_and_freeze": {
   "title": "De-duplication and the freeze (with the 241 dropped generated rows)",
   "parts": {
    "dedup": {
     "title": "De-duplication before the freeze: real data (529 rows dropped) and generated data (241 rows dropped)",
     "summary": "Every image of the real manifests (all splits) was fingerprinted twice, by its exact bytes and by a 64-bit perceptual fingerprint. A training image was dropped if it was byte-identical to, or within perceptual fingerprint Hamming distance 4 of, any validation or test image of any source: 529 real training crops went (KOHTD 133, HKR 46, CHD 64, School Notebooks 286). After the generated data existed, a report-only pass over all 922,540 images led the project to drop 241 generated training rows from the frozen copies only: 52 near-duplicates with the same label and 189 rows whose label equals a long validation or test line. Real printed lines were never image-fingerprinted.",
     "steps": [
      {
       "what": "Fingerprinting (pass 1, real sets, ZEN4 job r5_build_C): every image of the 14 pre-dedupe real manifests (train, val, test of KOHTD, HKR, CHD, School Notebooks, plus RUKOPYS test). exact file bytes; perceptual fingerprint = grey image resized to 32x32 (INTER_AREA), 2-D DCT, low 8x8 block, bit = coefficient above the block median (64 bits); distance = Hamming.",
       "parameters": {
        "perceptual_fingerprint": "32x32 INTER_AREA, DCT, 8x8 low, > median, 64 bits",
        "distance": "Hamming"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_C.sbatch (line 13)"
       ],
       "report_refs": [],
       "counts": {
        "images_fingerprinted": 579421,
        "failed": 0
       }
      },
      {
       "what": "Pass 1 rule (applied): (a) byte-identical: any group of byte-identical files holding a train image and a val/test image drops every train member; (b) near: every train image whose best val/test partner has perceptual fingerprint distance <= 4 (exact search by a multi-index over five 13/12-bit chunks) is dropped, whatever the labels; (c) owner's extra check: HKR images against ALL KOHTD images (any split); HKR train members of such pairs dropped. The TRAIN side is always the one dropped. Compared: all train images against all val+test images of all sources (cross-source included).",
       "parameters": {
        "near_threshold": 4,
        "search": "exact, 5 chunks of the 64 bits"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe (lines 573-666), near_pairs (lines 593-628)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_dedupe.json",
        "records/R5/DATA/dedupe.json#pass_1_real_sources"
       ],
       "counts": {
        "byte_identical_dropped": 39,
        "byte_identical_same_label": 35,
        "byte_identical_different_label": 4,
        "near_only_dropped": 490,
        "near_same_label": 211,
        "near_different_label": 279,
        "total_dropped": 529,
        "kohtd_train": 133,
        "hkr_train": 46,
        "chd_train": 64,
        "school_train": 286,
        "share_of_463296_train_images": "0.11%",
        "hkr_vs_kohtd_extra_dropped": 0
       }
      },
      {
       "what": "Diagnostics not acted on: 45 validation images have a near partner in a test set (by source: kohtd val~test 18, school val~school test 13, hkr val~test 5, school val~kohtd test 3, kohtd val~school test 2, kohtd val~hkr test 1, school val~rukopys 1, chd val~school test 1, chd val~chd test 1).",
       "parameters": {},
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe (lines 681-686)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_1_real_sources.diagnostic_val_vs_test_near_partners_not_acted_on"
       ],
       "counts": {
        "val_images_with_near_test_partner": 45
       }
      },
      {
       "what": "Pass 2 (report-only, 2026-11-20T22:48:50Z) over every manifest then in the folder (real sets after pass 1 plus az_localdoc_test): 0 would-drops.",
       "parameters": {
        "mode": "report only"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe_all (lines 771-816)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_2_all_manifests_after_pass_1_report_only"
       ],
       "counts": {
        "images": 579334,
        "would_drop": 0
       }
      },
      {
       "what": "Pass 3 after GEN's stage-1 production (job 51293/51295; fingerprinting of the generated images 01:52:29Z, dedupe_all 01:58:30Z, report-only, GEN's .meta.tsv sidecars skipped by a one-line fix): all manifests with image fingerprints (real, synthetic, kohtd_rand, az). The deliberate replication overlap dominates (kohtd_rand_train ~ kohtd_val 11,318; kohtd_train ~ kohtd_rand_val 15,752 and ~ kohtd_rand_test 15,811, byte-identical). FREEZE wrote its rule before reading the report (01:50Z): kohtd_rand overlap left out; partner kohtd_test -> stop; other byte-identical train/val-test -> stop; near pairs with the same non-empty label -> stop and ask; different or empty labels -> report only. Result: 52 same-label near pairs between synthetic train and synthetic val/test; 2 near pairs synth_hand_train ~ kohtd_test with different labels, judged perceptual fingerprint coincidences by the project (not a stop).",
       "parameters": {
        "near_threshold": 4
       },
       "code_refs": [
        "records/R5/FREEZE/data_scripts_meta_fix.diff",
        "CODE/scripts/r5_freeze/dedupe_verdict.py (local copy records/R5/FREEZE/scripts/dedupe_verdict.py)"
       ],
       "report_refs": [
        "records/R5/FREEZE/post/stage_dedupe_all.json",
        "records/R5/FREEZE/post/dedupe_verdict.json#pairs_by_manifest_partner_reason_samelabel, #STOP_pairs",
        "records/R5/FREEZE/status.json#dedupe_rule_written_before_the_report",
        "records/R5/FREEZE/freeze_record.json#kohtd_test_near_pairs_not_a_stop (project)"
       ],
       "counts": {
        "images": 922540,
        "train_images": 737890,
        "valtest_images": 184650,
        "would_drop_total": 43412,
        "synthetic_same_label_near_pairs": 52,
        "synth_to_kohtd_test_near_pairs_different_label": 2,
        "clutter_train_near_clutter_valtest_empty_label": 72
       }
      },
      {
       "what": "Generated rows dropped (project decision ~02:05Z, option B extended), from the frozen copies only (manifests/ unchanged; pre-drop copies kept read-only in DATA/outputs/r5/freeze/predrop/). Rule (a) near_dup_same_label: synthetic hand/typed train rows that dedupe_all pairs with a synthetic val/test row at perceptual fingerprint distance <= 4 AND the same non-empty label (clutter excluded). Rule (b) text_leak_ge20: synthetic train rows whose label (whitespace runs collapsed) equals the label of a synthetic val/test row of unit 'line' with at least 20 characters. Val/test labels were read from frozen_eval_v1 and never printed; outputs hold ids only. Sidecars filtered the same way.",
       "parameters": {
        "rule_a": "near perceptual fingerprint <= 4 and same non-empty label, partner in synth_{hand,typed,clutter,pages}_{val,test}, kind != clutter",
        "rule_b": "' '.join(label.split()) equal to a synthetic val/test line label with len >= 20"
       },
       "code_refs": [
        "records/R5/FREEZE/scripts/drop_rows.py (lines 46-80 rules; 82-98 filtered copies)",
        "records/R5/FREEZE/scripts/freeze_drop.sbatch (steps 1-3, lines 36-69)"
       ],
       "report_refs": [
        "records/R5/FREEZE/post/drop_report.json",
        "records/R5/FREEZE/post/dropped_rows.tsv (id, manifest, reason, matched val/test id; counted with cut/sort)",
        "records/R5/FREEZE/freeze_record.json#mix_v1.dropped_rows"
       ],
       "counts": {
        "pairs_a": 52,
        "pairs_b": 231,
        "unique_rows_a": 52,
        "unique_rows_b": 189,
        "rows_in_both": 0,
        "unique_rows_total": 241,
        "synth_hand_train_a": 6,
        "synth_hand_train_b": 150,
        "synth_hand_train_total": 156,
        "synth_typed_train_a": 46,
        "synth_typed_train_b": 39,
        "synth_typed_train_total": 85,
        "a_partners": "hand_val 2, hand_test 4, typed_val 24, typed_test 22",
        "valtest_lines_ge20_matched": 72,
        "matched_by_set": "hand_val 34, hand_test 23, typed_val 7, typed_test 8",
        "synth_hand_train_after": 119844,
        "synth_typed_train_after": 59915
       }
      },
      {
       "what": "Left in on purpose (outside the decision): 3 print_real_train pairs (2 rows: printreal:tt:tt_4d1c132627:p0002l032 and printreal:uz_cyrl:uz_cyrl_cd07965fed:p0000l000) whose text equals a synthetic handwriting val/test line; 72 clutter near pairs with the empty label; real-train near pairs found only in pass 3 (chd_train 14: 7 with kohtd_rand val/test partners, 7 with synthetic val/test partners; school_train 13: 11 kohtd_rand (1 with the same label), 2 synthetic; kohtd_train 70 near: 67 kohtd_rand (deliberate overlap), 3 synthetic; all non-kohtd_rand ones with different labels). These real train rows were not dropped and are in the frozen copies.",
       "parameters": {},
       "code_refs": [
        "records/R5/FREEZE/scripts/drop_rows.py (lines 75-79: non-synthetic matches listed, not dropped)"
       ],
       "report_refs": [
        "records/R5/FREEZE/post/drop_report.json#nonsynthetic_matches",
        "records/R5/FREEZE/post/dedupe_verdict.json#pairs_by_manifest_partner_reason_samelabel",
        "records/R5/FREEZE/post/dedupe_all_dropped.tsv (columns manifest, reason, partner_manifest, same_label; counted with cut/sort/uniq)"
       ],
       "counts": {
        "print_real_rows_kept": 2,
        "chd_train_near_pairs_kept": 14,
        "school_train_near_pairs_kept": 13,
        "kohtd_train_near_pairs_kept": 70
       }
      },
      {
       "what": "Not covered by any image duplicate check: print_real_train/val/test and more_real_print (no image fingerprints; PRINT's own check is by document and exact line text, and its crops were compared byte for byte only against DATA's image lists).",
       "parameters": {},
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe_all (line 788: only ids with a fingerprint are compared)"
       ],
       "report_refs": [
        "records/R5/FREEZE/post/check_post.json#checks.dedupe_not_checked",
        "records/R5/FREEZE/status.json#decision_needed (last item)"
       ],
       "counts": {
        "print_real_rows_not_fingerprinted": 86776,
        "more_real_print_rows_not_fingerprinted": 857
       }
      }
     ],
     "disagreements": [
      "records/R5/DATA/report.txt item 2 says 'A second pass finds 0'. That is the real-only pass 2 of 22:48Z. The later all-manifest pass 3 (01:58:30Z) found real training images with near partners in kohtd_rand_* and synthetic val/test sets (chd 14, school 13, kohtd 70); none was acted on (records/R5/FREEZE/post/dedupe_verdict.json). Both records are correct for their inputs.",
      "rc1 model cards (records/R5/RELEASE/rc1/*/model_card.json#training_data.components.hand_synth) say '119,844 lines after 156 near-duplicates of validation or test rows were dropped'. The primary drop list says the 156 handwriting rows were 6 near-duplicates and 150 label-equal rows (records/R5/FREEZE/post/dropped_rows.tsv; drop_report.json#unique_rows_dropped_by_reason gives 52 and 189 over both kinds).",
      "records/R5/DATA/dedupe.json#reading calls the dropped real crops '529 of 463,296 train images'; 463,296 = 462,767 kept + 529 dropped real train crops (derived); consistent."
     ],
     "unknowns": [
      "dedupe_all reports only one partner per train image (the first byte-identical one in manifest order, or the nearest perceptual fingerprint one), so a second partner can be hidden behind the reported one (records/R5/FREEZE/status.json#dedupe_rule_written_before_the_report.limitation). For kohtd_train, whose images are byte-identical to kohtd_rand val/test rows, any synthetic or other partner would be masked in pass 3; pass 1 had already checked kohtd_train against every real val/test set.",
      "perceptual fingerprint finds copies at the same scale only; a crop re-cut at another scale or a re-scan is not found (records/R5/DATA/dedupe.json#limits)."
     ]
    },
    "freeze": {
     "title": "The freeze of mix_v1 (21 Nov 2026): files, times, frozen ids, checks",
     "summary": "The freeze step made read-only copies of the eight training manifests (and three generator sidecars), removed the 241 generated rows from those copies only, generated mix_v1.yaml from the project's share decision, checked it with every consumer's parser, and renamed it into place read-only at 2026-11-21T02:16:04Z. At that moment no model had trained on mix_v1. The frozen row ids are exactly the rows of the frozen copies; the 241 removed ids are listed in dropped_rows.tsv.",
     "steps": [
      {
       "what": "Frozen copies: DATA/data/processed/r5/frozen_mix_v1/ (folder dr-xr-sr-x, files r--r--r--), made 01:46Z; each byte-identical to its source and to the expected file (GEN production_done.json for synthetic, PRINT's final file for print_real_train, DATA's manifest_stats.json for the real handwriting sets). After the drop (job 51299) the two synthetic train files and their sidecars were replaced atomically by the filtered versions and made read-only again.",
       "parameters": {},
       "code_refs": [
        "RS/r5_freeze/gen_mix_v1.py:main (lines 96-150: byte checks, write bits, drop checks)",
        "records/R5/FREEZE/scripts/freeze_drop.sbatch (lines 51-60)"
       ],
       "report_refs": [
        "RS/mix_v1.yaml (leaf fields)",
        "records/R5/FREEZE/status.json#done (A3)",
        "records/R5/FREEZE/post/drop_report.json#files",
        "records/R5/FREEZE/freeze_record.json#mix_v1.data"
       ],
       "counts": {
        "manifests": 8,
        "sidecars": 3,
        "train_images_total": 722023
       }
      },
      {
       "what": "Generator checks before the yaml is written (any failure: exit 2, no yaml): frozen copy = source = expected file (byte for byte), or for dropped files frozen = pre-drop copy minus exactly the listed ids (pre-drop = production_done); no write bit; 10-column header; every row split = train; every leaf has rows after its language filter; no page rows and no empty non-clutter labels; shares are exact fractions summing to exactly 1; the 3-passes-per-1M cap of the Russian sources does not bind. The yaml is re-read and compared with the intended shares.",
       "parameters": {
        "P_short": 150000
       },
       "code_refs": [
        "RS/r5_freeze/gen_mix_v1.py:main (lines 104-183 file checks; 185-244 shares; 293-313 re-read check)"
       ],
       "report_refs": [
        "records/R5/FREEZE/post/gen_report2.json#status, #sum_is_exactly_1, #n_leaves"
       ],
       "counts": {
        "leaves": 35
       }
      },
      {
       "what": "Freeze: mix_v1.yaml.tmp (written 02:11:07Z) renamed to DATA/data/processed/r5/mix_v1.yaml and made read-only at 2026-11-21T02:16:04Z. Copies: records/R5/RULE/mix_v1.yaml and RS/mix_v1.yaml (both checked locally to be byte-identical).",
       "parameters": {
        "frozen_utc": "2026-11-21T02:16:04Z"
       },
       "code_refs": [],
       "report_refs": [
        "records/R5/FREEZE/freeze_record.json#mix_v1",
        "records/R5/FREEZE/status.json#FROZEN"
       ],
       "counts": {}
      },
      {
       "what": "Checks on the final file (job 51299): VLMA check_mix OK (200,000-row trial sequence, no problems, 722,023 training images checked, 0 missing); LINEDET make_codec exit 0 (character union 1,648, 26 added); parser comparison PASS (LINEDET, REF, EVALCODE and VLMA parsers read the same 35 leaves, largest share difference 1.4e-17); AUDIT data audit 0 missing and 0 zero-byte images in all 42 manifests.",
       "parameters": {},
       "code_refs": [
        "records/R5/FREEZE/scripts/freeze_drop.sbatch (steps 5-6, lines 77-111)",
        "records/R5/FREEZE/scripts/compare_parsers.py"
       ],
       "report_refs": [
        "records/R5/FREEZE/freeze_record.json#mix_v1.checks_on_this_file (job 51299)"
       ],
       "counts": {
        "images_checked": 722023,
        "missing": 0,
        "codec_union": 1648
       }
      },
      {
       "what": "Other files frozen in the same window: curve_v1.tsv (validation-only learning-curve set, 1,500 rows, 02:07:51Z); frozen_eval_v1/ read-only copies of the synthetic val/test manifests (02:07:43Z, equal to production_done stage 1; registry repointed); endpoints.json (02:11:23Z, before the rename); seed-1 sample sequence mix_v1_seq.tsv (6,000,000 rows, seed 20261121, built 02:19:34-02:22:45Z by VLMA job 50942); seed-2 sequence mix_v1_seq_s20261122.tsv (6,000,000 rows, seed 20261122, job 51302); K_train (job 51303, hand_keys 315,080, hand_literal 184,972, all_keys 3,574,403, built from the frozen copies).",
       "parameters": {},
       "code_refs": [
        "RS/r5_freeze/build_seq2.sbatch"
       ],
       "report_refs": [
        "records/R5/FREEZE/freeze_record.json#seed1_sequence, #seed2_sequence, #K_train, #curve_v1, #endpoints, #evaluation_copies"
       ],
       "counts": {
        "curve_v1_rows": 1500,
        "seq_rows_each": 6000000
       }
      },
      {
       "what": "Frozen ids: the training ids are the rows of the eight frozen copies, per leaf as counted in mix_v1.yaml (train_rows); the 241 removed generated ids are listed with reason and matched val/test id in DATA/outputs/r5/freeze/dropped_rows.tsv (copy records/R5/FREEZE/post/dropped_rows.tsv).",
       "parameters": {},
       "code_refs": [
        "RS/r5_freeze/gen_mix_v1.py:leaf_lines (lines 253-265)"
       ],
       "report_refs": [
        "RS/mix_v1.yaml#components[*].train_rows",
        "records/R5/FREEZE/post/dropped_rows.tsv"
       ],
       "counts": {
        "kohtd_train": 105369,
        "hkr_train": 45513,
        "chd_train": 68479,
        "school_train": 243406,
        "synth_hand_train": 119844,
        "synth_typed_train": 59915,
        "print_real_train": 73497,
        "synth_clutter_train": 6000,
        "dropped_ids": 241
       }
      },
      {
       "what": "State at the rename and later GEN jobs: no arm had trained on mix_v1 (no predictions folder, no codec union, no sequence folder). GEN's stage-2 finalize job 51070 (into manifests/) was cancelled and resubmitted as 51289 writing to DATA/data/processed/r5/manifests_stage2/ (begins 18:05Z); stage-1 re-finalize jobs 51065 and 51066 stayed queued because the cancel was refused by the permission system; they can rewrite manifests/synth_* only, which no frozen file and no synthetic registry entry uses.",
       "parameters": {},
       "code_refs": [
        "records/R5/FREEZE/gen_finalize_stage2.diff"
       ],
       "report_refs": [
        "records/R5/FREEZE/freeze_record.json#mix_v1.state_at_rename, #gen_jobs",
        "records/R5/FREEZE/status.json (resumed after the project decision) (21 Nov ~02:05 UTC).3_cancel_51065_51066"
       ],
       "counts": {}
      }
     ],
     "disagreements": [
      "Stale pre-drop snapshots: records/R5/FREEZE/gen_report.json (yaml, written 01:46:58Z), records/R5/FREEZE/check_mix_summary.json (yaml, 722,264 images), the frozen-copy list in records/R5/FREEZE (synth_hand_train, synth_typed_train), records/R5/FREEZE/compare_parsers.json and records/R5/FREEZE/mix_v1.yaml.tmp.copy describe the superseded tmp yaml. The published copy PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/gen_report.json is the same pre-drop version, and records/deck2/datasets.json cites it. freeze_record.json cites DATA/outputs/r5/freeze/gen_report.json, which job 51299 step 3 overwrote with the final report (freeze_drop.sbatch line 63) = records/R5/FREEZE/post/gen_report2.json (yaml). Primary for the frozen state: mix_v1.yaml itself, post/gen_report2.json, post/drop_report.json. Shares are identical in both versions; only the synthetic row counts and file contents differ.",
      "Superseded shares: DATA's mix_v1_shares.json (typed_synth 0.12, no typed_real) is marked SUPERSEDED only on the cluster copy; records/R5/DATA/mix_v1_shares.json and the published PROJ copy are not marked (records/R5/FREEZE/status.json#rules_not_followed_cleanly, last item). mix_v1.yaml is the binding record.",
      "Data audit coverage: 41 manifests in job 51293 (records/R5/FREEZE/status.json#done) and 42 in job 51299 (freeze_record.json). Consistent: curve_v1 was added in between."
     ],
     "unknowns": [
      "Whether GEN jobs 51065/51066 later ran and rewrote manifests/synth_* (they cannot touch the frozen copies). To find out: sacct -j 51065,51066 on the cluster."
     ]
    }
   }
  },
  "13_training_mix": {
   "title": "The training mix mix_v1 and its sampling shares",
   "parts": {
    "training_mix": {
     "title": "The training mix mix_v1: 35 leaves, shares, how samples are drawn, over-wide lines",
     "summary": "mix_v1 sets what share of training SAMPLES (not of images) each leaf supplies: 35% KOHTD, 5% each HKR, CHD and School Notebooks, 35% generated handwriting (3% per Cyrillic and 4.25% per Latin language-script, because no real Latin-script handwriting exists for training), 6% generated print, 6% real print and 3% empty clutter crops; the shares are exact fractions that sum to 1. The VLM fine-tunes read a pre-built 6,000,000-row sequence in which every prefix keeps the shares to within one item, drawing inside each leaf without replacement until the leaf is used up and then reshuffling. The line recognizers draw pools of 2,048 samples with multinomial share counts, and replace any line wider than 2,560 px (at 96 px height) by a uniformly drawn random item, which lowers the real-print share they see. No release model read the stage-2 generated manifests.",
     "steps": [
      {
       "what": "Leaves and shares (35 leaves; stream totals hand_real 1/2, hand_synth 7/20, typed_synth 3/50, typed_real 3/50, clutter 3/100). Shares come from the project's decision; the earlier DATA proposal (typed_synth 0.12, no typed_real) is superseded. The 5 points planned for real Latin-script handwriting moved to generated Latin handwriting because 0 usable items exist (the Turkish and Azerbaijani handwriting sets held are single characters; the 442 Azerbaijani lines are test-only). A language-script without real print would have moved its 0.006 to generated print; none had to.",
       "parameters": {
        "hand_real_kk (kohtd_train)": "0.35, 105,369 rows, 3.322 passes per 1M samples",
        "hkr_train": "0.05, 45,513 rows, 1.099 passes/1M",
        "chd_train": "0.05, 68,479 rows, 0.730 passes/1M",
        "school_train": "0.05, 243,406 rows, 0.205 passes/1M",
        "hand_synth_kk": "0.03, 11,992",
        "hand_synth_ky": "0.03, 11,990",
        "hand_synth_uz_cyrl": "0.03, 12,000",
        "hand_synth_tt": "0.03, 11,878",
        "hand_synth_ba": "0.03, 11,994",
        "hand_synth_sah": "0.03, 12,000",
        "hand_synth_uz_latn": "0.0425, 11,997",
        "hand_synth_tr": "0.0425, 11,995",
        "hand_synth_az": "0.0425, 11,998",
        "hand_synth_tk": "0.0425, 12,000",
        "typed_synth_{kk,ky,uz_cyrl,tt,ba,sah,uz_latn,tr,az,tk}": "0.006 each; rows 5,988 / 5,993 / 5,997 / 5,970 / 5,995 / 5,993 / 5,996 / 5,991 / 5,996 / 5,996",
        "typed_real_{kk,ky,uz_cyrl,tt,ba,sah,uz_latn,tr,az,tk} (print_real_train)": "0.006 each; rows 7,441 / 7,413 / 7,423 / 7,428 / 7,351 / 7,343 / 7,042 / 7,316 / 7,360 / 7,380",
        "clutter": "0.03, 6,000 rows (empty target), 5.0 passes/1M",
        "filter": "{lang: x} on the shared synthetic and print manifests; only split = train rows"
       },
       "code_refs": [
        "RS/r5_freeze/gen_mix_v1.py:main (lines 189-244)",
        "records/R5/DATA/scripts/r5_registry.py (lines 143-189: superseded proposal and the empty hand_real Latin clause)"
       ],
       "report_refs": [
        "RS/mix_v1.yaml#components",
        "records/R5/FREEZE/post/gen_report2.json#leaves, #per_stream_exact",
        "records/R5/FREEZE/freeze_record.json#mix_v1.shares, #superseded"
       ],
       "counts": {
        "leaves": 35,
        "train_images_in_mix": 722023,
        "real_handwriting_images": 462767
       }
      },
      {
       "what": "VLM sampling (PaddleOCR-VL, Qwen3-VL): build_sequence.py reads every leaf of mix_v1.yaml, refuses to run if any manifest differs, byte for byte, from the one the yaml records, keeps split = train rows that pass the filter, NFC-normalises the text, and writes N rows. Row i goes to the leaf with the largest deficit share*(i+1) - count (ties to the earlier leaf), so every prefix is within about one item of the target shares (checked to 0.001 at 150,000 and at 6,000,000 rows). Inside a leaf the items follow a seeded permutation, without replacement within a pass; when a leaf is used up it is reshuffled and a new pass starts. One random.Random(seed) serves all leaves. Training reads the rows in file order (no further shuffle, per a secondary reading of train_vlm.py lines 308-314).",
       "parameters": {
        "seed_1": 20261121,
        "seed_2": 20261122,
        "rows": 6000000,
        "P_short": 150000,
        "seq_seed1": "DATA/data/processed/r5/seq/mix_v1_seq.tsv",
        "seq_seed2": "DATA/data/processed/r5/seq/mix_v1_seq_s20261122.tsv"
       },
       "code_refs": [
        "RS/r5_vlma/build_sequence.py (lines 130-175 reading and byte-for-byte check; 177-203 sampling; 205-213 share check)",
        "RS/r5_vlma/vlm_common.py:read_manifest (lines 46-53)"
       ],
       "report_refs": [
        "records/R5/FREEZE/freeze_record.json#seed1_sequence, #seed2_sequence",
        "records/R5/FREEZE/check_mix_summary.json#order (pre-drop trial, same algorithm)"
       ],
       "counts": {}
      },
      {
       "what": "Line-recognizer sampling (A1 and the other kraken arms): data.py loads the yaml leaves (split = train, filters, page units skipped, labels NFD; no byte-for-byte check in this reader). MixStream: sample s belongs to pool s // 2,048; each pool draws its per-leaf counts from a multinomial over the shares (rng [seed, 7, pool]), so shares hold in expectation, not exactly; inside a leaf items follow epoch permutations (rng [seed, 1000+leaf, epoch]), no repeat within an epoch; each pool is sorted by label length (with small noise), cut into batches of 32 and the batches shuffled (rng [seed, 11, pool]). Seed 20261121.",
       "parameters": {
        "pool_size": 2048,
        "batch_size_A1": 32,
        "seed": 20261121
       },
       "code_refs": [
        "RS/linedet_src/data.py:load_mix, load_components (lines 85-141)",
        "RS/linedet_src/data.py:MixStream (lines 145-206)"
       ],
       "report_refs": [
        "records/R5/AUDIT/part2_summary.txt (PASS: line arms read mix_v1.yaml with the item counts of the frozen copies)"
       ],
       "counts": {}
      },
      {
       "what": "Over-wide lines. Line recognizers: each crop is scaled to height 96 (A1, A2, A1s) and padded by 16 px on both sides; in training, a crop wider than 2,560 px after this, or with more characters than width/8 frames allow, raises an error and __getitem__ replaces it by an item drawn uniformly from ALL items with an unseeded generator (up to 20 tries). The code comment calls this 'skipped'; it is a replacement. Measured at 04:03Z on 21 Nov (first ~294,400 A1 samples): 1.356% of samples replaced (3,969 too wide, 23 too many characters), almost all real print; realised typed_real share 4.80% against 6.00%, school_train 5.46% against 5.00%. VLMs: our code neither drops nor resizes; the processors' own limits apply (PaddleOCR-VL max_pixels 1,003,520; Qwen3-VL longest_edge 16,777,216 pixels, per a secondary reading of the pinned processor configs).",
       "parameters": {
        "A1_height_px": 96,
        "A1_max_width_px": 2560,
        "side_pad_px": 16,
        "replacement": "numpy default_rng() unseeded, uniform over all items"
       },
       "code_refs": [
        "RS/linedet_src/data.py:SPECS (line 39)",
        "RS/linedet_src/data.py:pil_tensor (lines 226-241)",
        "RS/linedet_src/data.py:LineDS.get_one, __getitem__ (lines 284-306)"
       ],
       "report_refs": [
        "records/R5/AUDIT/p2/health_20261121T0410Z.json (lines 1190-1217: by_reason, replaced_share_of_samples 0.01356)",
        "records/R5/AUDIT/part2_summary.txt (FAIL item 2)",
        "records/R5/FREEZE/status.json#FROZEN.observation / AUDIT part 2"
       ],
       "counts": {
        "replaced_share_first_294400_samples": 0.01356,
        "too_wide": 3969,
        "too_many_characters": 23,
        "typed_real_realised_share": 0.048
       }
      }
     ],
     "disagreements": [
      "Realised versus nominal shares for the line recognizers: the rc1 cards of A1 give the yaml shares (typed_real 6%), but the A1 loader's replacement of over-wide lines gave typed_real 4.80% and school_train 5.46% in the measured window (records/R5/AUDIT/part2_summary.txt). The VLM sequence keeps the nominal shares exactly (build_sequence.py lines 205-213).",
      "data.py docstrings say a resume reproduces the same batches; that holds for the index stream only, because the replacement draws (unseeded default_rng) and kraken's augmentation are not seeded (data.py lines 145-149 versus 295-306).",
      "The superseded DATA proposal (records/R5/DATA/mix_v1_shares.json, typed_synth 0.12, no typed_real) is not marked SUPERSEDED in the local and published copies; mix_v1.yaml is binding."
     ],
     "unknowns": [
      "The replaced share over A1's full 2,309,088 samples (the measurement covers only the first ~294,400). To find out: count '[data] sample failed' in DATA/outputs/r5/linedet/driver_logs/train_A1.log, train2_A1.log and ext_driver_logs/ext_train_A1.log.",
      "How the VLM processors treat very wide line crops (aspect ratios far from square): not tested in hand. To find out: the processor code of the pinned transformers version (records/R5/RELEASE/src_read/meta/freeze_vlm.txt) and the exported processor_config.json."
     ]
    },
    "training_data_per_package": {
     "paddleocr_vl_1_6": {
      "release_checkpoint": "B1 'leader' (DATA/release/rc1/turkic-ocr-paddleocr-vl-1.6), base PaddlePaddle/PaddleOCR-VL-1.6",
      "training_data": "mix_v1 through the seed-1 sequence DATA/data/processed/r5/seq/mix_v1_seq.tsv (built 21 Nov 02:19:34-02:22:45Z from mix_v1.yaml with byte-for-byte checks of every frozen copy). Short stage rows 0-149,999 (job 50942, started 02:22:45Z on 21 Nov); leader stage rows 150,000-1,310,591 (job 52334, started 2026-11-23T19:00:21Z), initialised from the short-stage state; data-order seed 20261121, seed index 1. Total 1,310,592 samples (KOHTD about 4.35 passes, clutter 6.55, school 0.27, secondary arithmetic). Labels NFC. No validation or test manifest, no stage-2 manifest, no RL stage in the released weights (the PT-RL experiments wrote separate checkpoints from the short state).",
      "evidence": [
       "records/R5/RELEASE/src_read/meta/pvl_r5_export.json (phase leader, start_row 150000, samples_total 1310592, data_order_seed 20261121, seed_index 1)",
       "records/R5/JOBLOG/raw/extra/vlm_cmd_tokens.txt (lines 81-82 short --seq mix_v1_seq.tsv; lines 175-177 leader --seq mix_v1_seq.tsv --phase leader)",
       "RS/r5_vlma/leader_runner.py:do_run (lines 425-451; seq1 for seed 1, dos 20261121), RUNS (lines 515-522: extra arms run seed 1 only)",
       "records/R5/RULE/leaders.json (extra arm)",
       "RS/r5_vlma/build_sequence.py (lines 137-142 byte-for-byte check)"
      ],
      "disagreements": [
       "The release calls this checkpoint 'leader' (its phase name), but records/R5/RULE/leaders.json lists PaddleOCR-VL and Qwen3-VL as 'extra' arms; the selected leaders were hunyuanocr and minicpm_ocr_1_0. Same training length either way.",
       "RS/r5_vlma/leader_continue.sbatch (marked SUPERSEDED, line 11) would have continued from row 150,000 of the same sequence; the job logs show no such run (secondary reading)."
      ],
      "release_status_2026_11_26": "NOT RELEASED (owner decision of 26 Nov 2026 on D1 and D2); the folder stays on disk"
     },
     "qwen3_vl_2b": {
      "release_checkpoint": "B2 'leader' (DATA/release/rc1/turkic-ocr-qwen3-vl-2b)",
      "training_data": "Same as PaddleOCR-VL: mix_v1_seq.tsv rows 0-149,999 (short) then 150,000-1,310,591 (leader, job 52334, started 2026-11-24T02:11:07Z), seed 20261121, seed index 1, 1,310,592 samples. The seed-2 sequence mix_v1_seq_s20261122.tsv was read only by the seed-2 runs of hunyuanocr and minicpm_ocr_1_0, which are not released.",
      "evidence": [
       "records/R5/RELEASE/rc1/turkic-ocr-qwen3-vl-2b/model_card.json#fine_tuning (source model/r5_export.json)",
       "records/R5/JOBLOG/raw/extra/vlm_cmd_tokens.txt (lines 186-188)",
       "records/R5/RULE/leaders.json (extra arm)",
       "RS/r5_vlma/leader_runner.py:do_run (lines 425-451)"
      ],
      "release_status_2026_11_26": "NOT RELEASED (owner decision of 26 Nov 2026 on D1 and D2); the folder stays on disk"
     },
     "a1_ppocrv6_medium": {
      "release_checkpoint": "A1 long2x (DATA/checkpoints/r5/linedet_ext/A1/long2x.pt), kraken PP-OCRv6 medium",
      "training_data": "mix_v1.yaml read by linedet data.py (split train, filters, labels NFD, no byte-for-byte check in this reader), MixStream with seed 20261121: phase 1 to 150,016 samples, phase 2 to P_long 1,584,384, then a warm-restart extension from the resume state continuing the same sample stream, stopped by its time-aware schedule at 2,309,088 samples (target 3,168,768). Over-wide lines (> 2,560 px at height 96) and lines with too many characters were replaced by uniformly drawn items (1.356% in the first ~294,400 samples; typed_real realised 4.80%).",
      "evidence": [
       "records/R5/LINEDET/code/tasks.json (lines 1258-1297 phase 1, 1482-1515 phase 2: --mix mix_v1.yaml) [secondary reading]",
       "records/R5/LINEDET/code/tasks_line_ext.json (lines 19-61, job 52331) [secondary reading]",
       "records/R5/RELEASE/rc1/turkic-ocr-ppocrv6-medium/model_card.json#fine_tuning (samples_seen 2309088)",
       "RS/linedet_src/data.py (lines 39, 85-206, 284-306)",
       "records/R5/AUDIT/part2_summary.txt (FAIL item 2)"
      ],
      "release_status_2026_11_26": "NOT RELEASED (owner decision of 26 Nov 2026 on D1 and D2); the folder stays on disk"
     },
     "a1_char_lm": {
      "release_file": "lm/char6.klm (KenLM character 6-gram)",
      "training_data": "Text written by lm_prep.py at 02:17:43Z on 21 Nov (after the freeze): (1) the labels of every train-split leaf of mix_v1.yaml (716,023 lines, 12,339,226 characters per train_text_stats.json), NFD, spaces written as '▁'; (2) a seeded random subset (numpy default_rng(20261121)) of the generator's TRAIN sentences, DATA/data/processed/r5/pagesynth_text_split/train/*/sentences.tsv, up to 25,000,000 characters per language. No --text_split file was passed; is_train_doc returns True, so the train folder alone defines what is train. No validation or test manifest is read. Built with lmplz -o 6 -S 16G --discount_fallback and build_binary -q 8 -b 8 trie. Decoding weights (alpha 0.40, beta 1.00) were tuned on V1lm.",
      "evidence": [
       "RS/linedet_src/lm_prep.py (docstring lines 1-11; main lines 30-80; is_train_doc lines 82-84)",
       "RS/r5_linedet/lm_build.sh (lines 12-14) [secondary reading]",
       "records/R5/LINEDET/code/tasks.json (lines 2120-2139) [secondary reading]",
       "records/R5/RELEASE/rc1/turkic-ocr-ppocrv6-medium/model_card.json#lm"
      ],
      "disagreements": [
       "lm_prep.py docstring (line 9) says 'the text split file decides the corpora', but no --text_split was passed and is_train_doc always returns True; train-only rests on the folder name pagesynth_text_split/train/.",
       "Residual text overlap: 5 print_real_test lines and 1 synth_typed_test line equal a generator train sentence; whether those sentences fell in the LM's random subset is unknown (records/R5/EVALCODE/attest_report.txt lines 20-43, secondary reading)."
      ],
      "release_status_2026_11_26": "NOT RELEASED (owner decision of 26 Nov 2026 on D1 and D2); the folder stays on disk"
     },
     "yolo11s_detector": {
      "release_checkpoint": "yolo_s2_d5 best.pt (epoch 95 of 227, jobs 55687 and 55706; released with relative metadata paths and the same tensors as evaluated), retrained on 26 Nov 2026 without the 83 generated pages drawn with a personal-use font (D5): School Notebooks train pages (1,557) plus 3,916 generated train pages (78,508 lines); validation unchanged. The earlier rc1 checkpoint yolo_s2 (epoch 86 of 179) is superseded and not released; the training_data text below describes it",
      "training_data": "Stage 1 (yolo_s1c, from scratch, yolo11s.yaml): School Notebooks RU train pages, validation School Notebooks val pages. Stage 2 (yolo_s2, from stage-1 best.pt, started 00:33:52Z on 21 Nov, 2 h limit): School Notebooks train pages (1,557) plus generated stage-1 train pages (3,999, 80,299 lines); validation (best-checkpoint choice) 150 School Notebooks val pages plus 300 generated val pages. School line boxes are REBUILT: the dataset's text_line polygons are thin traces, so each word polygon (pupil_text, pupil_comment, teacher_comment with a transcription) is assigned to the nearest trace (within 0.7 word height, at least 6 px; trace covering the word's x within 70 px), the line polygon is the convex hull of its words and trace; words without a trace are grouped into extra lines by vertical proximity; traces without words dropped. Pages scaled to a long side of 1,280 px. School test pages are never read. No KOHTD, HKR or CHD data, and not mix_v1. Image size 1280, batch 16, seed 20261121.",
      "evidence": [
       "RS/linedet_src/det_prep.py (docstring lines 1-14; build_lines lines 92-157; school split loop lines 205-224; run_gen glob synth/pages/<split> lines 275-278)",
       "PROJ/docs/research_artifacts/round_2026-11-21/LINEDET/status.json (lines 24, 121: yolo_s2 data and start 00:33:52Z)",
       "records/R5/RELEASE/rc1/turkic-line-detector-yolo11s/model_card.json#stage_1, #stage_2",
       "records/R5/LINEDET/code/tasks.json (lines 2083-2118, 2425-2486) [secondary reading]"
      ],
      "disagreements": [
       "Epoch counts: task arguments 60 (stage 1) and 200 (stage 2), checkpoint train_args 203, LINEDET status 'planned 209', 2_pipeline.html 60/200; actually ran 462 (stage 1) and 179 (stage 2), both stopped by time limits; released weights = epoch 86 (secondary reading of results CSVs and prep_det.json; records/R5/RELEASE/rc1/turkic-line-detector-yolo11s/model_card.json).",
       "The rc1 cards of the Qwen3-VL and PP-OCRv6 packages say the mix is 'the same as for every model of this release'; the detector did not train on mix_v1."
      ],
      "d5_source": "records/R5/RELEASE2/d5/d5_result.json; card of turkic-line-detector-yolo11s (training.stage_2)"
     }
    },
    "stage2_used_by_any_release_model": {
     "answer": "no",
     "evidence": [
      "VLMs: the logged commands of both released VLMs, short and leader stages, read --seq DATA/data/processed/r5/seq/mix_v1_seq.tsv (records/R5/JOBLOG/raw/extra/vlm_cmd_tokens.txt lines 81-82, 175-177, 186-188). That sequence was built at 02:19-02:22Z on 21 Nov from mix_v1.yaml, whose 35 leaves all point to frozen_mix_v1/ copies, and build_sequence.py stops if any manifest differs, byte for byte, from the one the yaml records (RS/r5_vlma/build_sequence.py lines 137-142, 173-175); stage 2 was written only from 18:05Z on 21 Nov into manifests_stage2/ (records/R5/FREEZE/freeze_record.json#gen_jobs).",
      "A1 and the character LM: their tasks pass --mix DATA/data/processed/r5/mix_v1.yaml (secondary reading of records/R5/LINEDET/code/tasks.json lines 1288, 1505, 2135 and tasks_line_ext.json line 41); the yaml names only frozen_mix_v1/ files (RS/mix_v1.yaml; records/R5/AUDIT/part2_summary.txt PASS: 'all 35 manifest lines point to frozen_mix_v1/ (0 elsewhere)').",
      "Detector: det_prep.py globs the page JSONs under DATA/data/processed/r5/synth/pages/<split>/ (RS/linedet_src/det_prep.py lines 275-278), the same image root that the stage-2 finalize writes into (RS/r5_freeze/gen_finalize_stage2.sbatch line 27), so this is the weakest link; but yolo_s2 started 00:33:52Z on 21 Nov and read 3,999 train pages, the stage-1 count, about 17.5 h before stage 2 began (PROJ/docs/research_artifacts/round_2026-11-21/LINEDET/status.json lines 24, 121).",
      "Grep of RS for 'manifests_stage2': only RS/r5_freeze/gen_finalize_stage2.sbatch (lines 18, 21), the script that writes them. The only code found reading manifests_stage2 is records/R5/HYMT/code/hymt_common.py (line 26, secondary reading), which belongs to no release package.",
      "Plan versus practice: gen_finalize_stage2.sbatch lines 18-19 call stage-2 lines 'extra data for the leaders only (amendment 3.3 D2)'; the leader runs never read them (logged --seq above).",
      "Image files: stage 2 writes into the same image root as stage 1 (gen_finalize_stage2.sbatch line 27, --out-root .../r5/synth). Its manifests are an append-only extension of stage 1: the finalizer keeps the first N rows per kind, split and language in page order and ids carry the zero-padded page index (records/R5/RELEASE2/src_read/pagesynth/scripts/r5_finalize.py docstring lines 3-4, lines 59-63); stage-2 synth_hand_val/test and synth_typed_val/test are byte-identical to stage 1 (records/R5/JOBLOG/raw/extra/production_done_stage2.json vs RS/evalsets.json); every page is a deterministic function of its arguments (produce_r5.py docstring line 9). So stage-1 image paths were not reassigned. NOT checked: whether the stage-2 production re-rendered any stage-1 page index and rewrote its files before the leader and A1 phase-2/extension runs read them (by the stated determinism the bytes would be identical)."
     ],
     "unknowns": [
      "Image-level identity of the frozen training images after stage 2: to settle it, compare on the cluster, byte for byte, the image files named in frozen_mix_v1/synth_{hand,typed,clutter}_train.tsv with the data build's internal image list of 2026-11-21T01:52:29Z, or check the stage-2 chunk list for start indices below the stage-1 counts."
     ]
    }
   }
  },
  "14_real_print_pipeline_not_released": {
   "title": "The real print pipeline (documented; crops and text not released)",
   "parts": {
    "print": {
     "title": "Real printed lines (print_real) from born-digital PDFs, and the separate MORE set",
     "summary": "Addresses of born-digital PDFs in the ten language-scripts were taken from the FinePDFs metadata (docling-extracted documents only), the PDFs were fetched from their original sites, rendered with PyMuPDF at a random 150-300 dpi, and every horizontal text-layer line that passed geometric, character-set, language and pixel checks was cut out with its own text-layer text as the label. 29 Turkish parliament (TBMM) minutes were added. Documents were split per language-script by a seeded shuffle (about 80/5/15), val/test lines whose text occurs in training were removed, and the test sample of 50 crops per language-script was audited with an LLM-as-a-judge: a vision-language model compared each crop with its label (not a human); 18 documents were excluded. Result: 73,497 train, 5,014 val and 8,265 test lines from 1,110 documents; train lines enter mix_v1 as typed_real (6%). MORE (857 paragraph crops) is a separate locked test set.",
     "steps": [
      {
       "what": "FinePDFs addresses: HuggingFaceFW/finepdfs read anonymously, shard 000_00000.parquet of the train split of each config, metadata columns only. Filters: extractor == 'docling'; 1-1,500 pages; full_doc_lid or language equal to the config; at least one page labelled with the config; http(s) URL; host not adebiportal.kz; duplicate URLs removed. No language-score threshold. Shuffle with random.Random(20261121), then a candidate cap and a per-host cap per config; two later selection passes (select2 for tk, ba, sah, tt, ky with at least 60% labelled pages and tiers by label share; select3 for tr, uz_latn, az) raised the pools.",
       "parameters": {
        "configs": "kaz_Cyrl, kir_Cyrl, uzn_Cyrl, uzn_Latn, tur_Latn, azj_Latn, tat_Cyrl, bak_Cyrl, tuk_Latn, sah_Cyrl",
        "caps_select1 (max candidates / per host)": "kk 320/5, ky 320/6, uz_cyrl 320/6, uz_latn 320/6, tr 360/3, az 320/6, tt/ba/tk/sah 400/10",
        "caps_select2": "600/4 (ky 500/4)",
        "caps_select3": "tr 1200/4, uz_latn 1000/6, az 900/6",
        "seed": 20261121,
        "doc_id": "lang + '_' + a 10-character fixed deterministic code of the URL"
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_select.py:module (lines 20-39), main (lines 72-95)",
        "records/R5/PRINT/scripts/r5_print_select2.py:main (lines 31-37, 84, 105) [secondary reading]",
        "records/R5/PRINT/scripts/r5_print_select3.py (lines 30-34) [secondary reading]",
        "records/R5/PRINT/scripts/r5_print_fetch.py:do_candidate (line 119) [secondary reading]"
       ],
       "report_refs": [
        "records/R5/PRINT/counts.json#sources[0].configs",
        "records/R5/PRINT/evidence/select/select_summaries_all.json",
        "records/R5/PRINT/evidence/_fetch/fetch_summary_*.json#candidates"
       ],
       "counts": {}
      },
      {
       "what": "Fetching from the original URLs (not from Hugging Face): requests, streamed; timeout (8, 25) s, deadline 100 s, at most 80 MiB, '%PDF' in the first 1 KB, files under 1,000 bytes rejected; 1 request per second per host, 12 threads; a host is dropped after 401/403/429/451 or 3 connection failures; no retries within a run, later driver runs retried failed URLs. Resmi Gazete (Turkish Official Gazette) did not answer (timeouts) and is not used.",
       "parameters": {
        "max_bytes": "80 MiB",
        "timeout_s": "(8, 25)",
        "deadline_s": 100
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_fetch.py:module (lines 24-30), fetch (lines 44-113)",
        "records/R5/PRINT/scripts/r5_print_fetch_all{,2,3,4,5}.sh"
       ],
       "report_refs": [
        "records/R5/PRINT/evidence/_fetch/fetch_log_*.jsonl (tallied in a secondary reading)",
        "records/R5/PRINT/counts.json#sources[2] (Resmi Gazete)"
       ],
       "counts": {
        "fetch_records_non_tbmm": 6765,
        "unique_urls": 5202,
        "ok": 1885,
        "error": 1871,
        "http_404": 1366,
        "skipped": 524,
        "not_pdf": 507,
        "http_403": 351,
        "other": 261,
        "documents_on_disk_incl_tbmm": 1915
       }
      },
      {
       "what": "TBMM minutes (Turkish parliament, 'Basilmis' PDFs from cdn.tbmm.gov.tr): terms 28, 27, 26, 25, 24, 2 sittings per term and legislative year, seed 20261121; 34 attempts, 30 downloaded, 4 over 80 MiB; one rejected at the language gate (broken text layer); 29 accepted (27 train, 2 test, 0 val). Cap: TBMM documents at most 0.3 of the Turkish documents (floor(0.3/0.7 x others)), applied before the split; it did not bind.",
       "parameters": {
        "terms": "24-28",
        "cap_share": 0.3
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_fetch.py:run_tbmm (lines 181-228) [secondary reading]",
        "records/R5/PRINT/scripts/r5_print_process.py:main (lines 739-748)"
       ],
       "report_refs": [
        "records/R5/PRINT/evidence/_fetch/fetch_log_tbmm.jsonl",
        "records/R5/PRINT/evidence/_stats/tr.json#tbmm_dropped_for_share (0)"
       ],
       "counts": {
        "tbmm_sittings_accepted": 29,
        "tbmm_lines_of_8583_turkish_lines": 1675
       }
      },
      {
       "what": "Rendering: PyMuPDF get_pixmap at dpi = random.Random('20261121-<docid>-<page>').randint(150, 300), RGB, no alpha, PNG (compress level 4), no resizing; at most 40 randomly sampled pages per document.",
       "parameters": {
        "dpi": "uniform integer 150-300 per page, seeded",
        "colour": "RGB"
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_process.py (docstring lines 9-10; render_job lines 419-424)"
       ],
       "report_refs": [],
       "counts": {}
      },
      {
       "what": "Line finding and cropping: lines are PyMuPDF text-layer lines (get_text 'dict'), horizontal only. Page rejects: rotated, size outside 100-1,500 pt, invisible text, an image over half the page, under 40 characters, over 0.5% private-use/U+FFFD/control characters. Line rejects: font under 6.5 pt, span sizes differing more than 2.2x, gaps over 1.6x size, over 5% image overlap, over 30% overlap with another line. Box = line bbox x dpi/72 plus randint(2, 6) px padding, top and bottom cut at the middle of overlaps with neighbouring lines but not closer than 0.95x size above or 0.30x size below the baseline; crop dropped if h < 14, w < 30 or w/h > 120; then trimmed to the ink plus padding. Pixel checks on character boxes (ink = grey difference over 60): tail letters (қ ҳ ң ҫ need ink 0.04-0.28x size below the baseline; a document with >= 10 checked and >= 5% failing is excluded whole), ink in a gap (omitted glyph), a letter or digit box with < 2 ink pixels (hidden glyph), a space with ink (space_over_ink), ink in the first or last column (edge clip), ink share outside 0.012-0.6.",
       "parameters": {
        "pad_px": "randint(2, 6)",
        "min_h_px": 14,
        "min_w_px": 30,
        "max_aspect": 120
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_process.py:parse_page (lines 213-344), render_job (lines 427-565), main (lines 895-897) [secondary reading; render lines 419-424 checked]",
        "records/R5/PRINT/scripts/r5_print_suspects.py",
        "records/R5/PRINT/scripts/r5_print_rerun_loop.sh"
       ],
       "report_refs": [
        "records/R5/PRINT/evidence/_stats/<lang>.json#render_drops"
       ],
       "counts": {
        "drop_space_over_ink": 817,
        "drop_edge_clipped": 769,
        "drop_hidden_or_omitted_glyph": 244,
        "drop_tail_letter": 15,
        "drop_geometry": 2
       }
      },
      {
       "what": "Text-layer labels: the line's span texts joined; normalise(): a soft hyphen at line end becomes '-', other soft hyphens and zero-width/direction marks removed, ligatures (ff, fi, fl, ffi, ffl, long-st, st) expanded, Unicode spaces to a plain space, whitespace runs collapsed, strip, NFC (again NFC when the manifest is written). No apostrophe or look-alike mapping. Line filters: 3-160 characters; per-language character allow-list (Russian alphabet plus the language's letters for Cyrillic; the language's letters plus a-z for Latin); no Cyrillic in Latin lines and no mixed-script word; Cyrillic lines at most 30% Latin letters; at least 50% letters; no digit inside a word; lines of >= 5 tokens dropped if more than half are out of vocabulary. Language gate with a lexicon of the top 4,000 words of the generator's TRAIN text per language: document median page share >= 0.38 and >= 30 eligible lines; line block/page share >= 0.33; lines of >= 5 tokens need share >= 0.2; a line needs a language-specific letter or >= 3 tokens and share >= 0.6. Repeated texts within a document dropped.",
       "parameters": {
        "length": "3-160 characters",
        "lexicon": "top 4,000 words of the first 250,000 train sentences (pagesynth_text_split/train/<lang>)"
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_process.py:normalise (lines 113-123)",
        "records/R5/PRINT/scripts/r5_print_process.py:line_ok (lines 127-166), main (lines 684-761) [secondary reading; lines 739-761 checked]",
        "records/R5/PRINT/scripts/r5_print_assemble.py:write_manifest (line 47) [secondary reading]"
       ],
       "report_refs": [
        "records/R5/PRINT/audit.json#limits"
       ],
       "counts": {}
      },
      {
       "what": "Split by document per language-script: random.Random('20261121-<lang>') shuffle of the accepted document ids; for n >= 20 documents, test = max(5, round(0.15 n)) and val = max(3, round(0.05 n)), drawn in shuffled order only from documents with >= 40 eligible lines; the rest train. Then exact val/test line texts that occur in a training document were removed, and val texts that occur in test; per-document caps 900/300/300 and targets 7,500/520/850 lines (train/val/test). Crops compared byte for byte within and across languages and against DATA's image lists (nothing dropped). The split is by document, not by host.",
       "parameters": {
        "seed": "20261121-<lang>",
        "val_share": "max(3, round(0.05 n))",
        "test_share": "max(5, round(0.15 n))",
        "min_lines_for_heldout_doc": 40
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_process.py:main (lines 762-788 split; 790-852 leak removal and sampling)",
        "records/R5/PRINT/scripts/r5_print_assemble.py (lines 53-101) [secondary reading]"
       ],
       "report_refs": [
        "records/R5/PRINT/counts.json#dropped_in_assembly",
        "RS/evalsets.json#sets[name=print_real_val].split_rule"
       ],
       "counts": {
        "removed_test_lines_in_train": 3453,
        "removed_val_lines_in_train": 1079,
        "removed_val_lines_in_test": 136
       }
      },
      {
       "what": "Leakage checks and validation: same PDF in two splits 0; val/test line text in train 0; val text in test 0 (exact text, same language); two ky PDFs stored under two ids each, both in train. Manifest validation: no problems in train/val/test. Every image of all four files exists and opens (0 missing, 2026-11-21T01:26:59Z).",
       "parameters": {},
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_dupcheck.py",
        "records/R5/PRINT/scripts/r5_print_validate.py",
        "records/R5/PRINT/scripts/r5_print_verify_manifests.py"
       ],
       "report_refs": [
        "records/R5/PRINT/dupcheck.json",
        "records/R5/PRINT/validation_print.json",
        "records/R5/PRINT/final_verification.json"
       ],
       "counts": {
        "pdf_in_two_splits": 0,
        "valtest_text_in_train": 0,
        "missing_images": 0
       }
      },
      {
       "what": "Audit with an LLM-as-a-judge (montages of 10 crops; a vision-language model compared each crop with its label, NOT a human): 50 test lines per language-script drawn with random.Random(20261121); pass at >= 49/50. Rounds: uz_cyrl 48, 45, then 50 (round 1 excluded one document; round 2 added the tail-letter pixel check because some PDFs print plain k, g, h where the text layer has q, g-hook, h-hook letters; 10 uz_cyrl documents excluded over three passes); ba 48, 50, 48, then 50 (edge-clip check, then gap-ink and empty-box checks); tr 48, then 49 (soft hyphen kept as a hyphen; the remaining clipped line printreal:tr:tr_60c9baba3c:p0001l001 stays in test); kk, ky, uz_latn, az, tt, tk, sah one audit each, 50/50. Train and val were never audited; the fixes were tuned on test samples. 0 errors in 50 bounds the line error rate at about 5.8% (one-sided 95%, secondary calculation).",
       "parameters": {
        "sample": "50 test lines per language-script",
        "threshold": "49/50",
        "viewer": "LLM-as-a-judge: a vision-language model compared each crop with its label (not a human)"
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_montage.py (lines 14-18) [secondary reading]",
        "records/R5/PRINT/scripts/r5_print_audit_build.py"
       ],
       "report_refs": [
        "records/R5/PRINT/audit.json#label, #viewer, #languages, #limits",
        "records/R5/FREEZE/endpoints.json (T2.audited_languages: all 10)"
       ],
       "counts": {
        "languages_50_of_50": 9,
        "tr": "49/50"
       }
      },
      {
       "what": "Exclusions: 18 documents (uz_cyrl 10, tt 4, kk 2, ky 1, ba 1), all recorded only as 'text layer and visible glyphs disagree' (tail-letter document rule or audit); a specific cause is recorded only for uz_cyrl.",
       "parameters": {
        "uz_cyrl": "c0f7d195c8, 06327a4a83, 0ef7acf4c9, 369fb759c4, 7472cf877c, 82b32ab07e, c9f6fc7203, e5dcff9ba4, efddd9b244, 4c9f4e35f1",
        "kk": "052bff68d6, c969200d3a",
        "ky": "f73bfeb432",
        "ba": "a824561bcf",
        "tt": "83560a2a93, b599a8f532, ceda2da354, aa6132b8cb"
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_process.py:main (lines 698-702) [secondary reading]"
       ],
       "report_refs": [
        "records/R5/PRINT/evidence/_excluded_docs.txt",
        "records/R5/PRINT/audit.json"
       ],
       "counts": {
        "documents_excluded": 18
       }
      },
      {
       "what": "Final counts per language-script (lines / documents). Train: kk 7,441/64, ky 7,413/158, uz_cyrl 7,423/44, uz_latn 7,042/61, tr 7,316/139, az 7,360/104, tt 7,428/129, ba 7,351/41, tk 7,380/73, sah 7,343/73. Val: kk 518/4, ky 520/10, uz_cyrl 433/3, uz_latn 520/4, tr 476/9, az 518/7, tt 519/8, ba 479/3, tk 515/5, sah 516/5. Test: kk 842/12, ky 848/30, uz_cyrl 848/8, uz_latn 800/11, tr 791/26, az 846/20, tt 842/24, ba 761/8, tk 844/14, sah 843/13.",
       "parameters": {},
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_final_counts.py"
       ],
       "report_refs": [
        "records/R5/PRINT/counts.json#per_language.*.splits",
        "records/R5/PRINT/status.json#rows",
        "RS/mix_v1.yaml (typed_real leaves)"
       ],
       "counts": {
        "train_lines": 73497,
        "train_docs": 886,
        "val_lines": 5014,
        "val_docs": 58,
        "test_lines": 8265,
        "test_docs": 166,
        "all_docs": 1110,
        "all_lines": 86776
       }
      },
      {
       "what": "MORE set (more_real_print, locked test, not scored): HF zimoqingfeng/MORE paragraph part, fetched with snapshot_download (no pinned revision); text blocks only, not rotated, markup-like text dropped, whitespace collapsed, NFC; uz split by majority script; the repository's own crop images used unchanged; unit paragraph, group = page. 857 of 929 blocks kept (72 dropped as markup); labels 'model-assisted and human-refined' per the README as quoted in the build script; crops compared byte for byte, not viewed.",
       "parameters": {
        "unit": "paragraph",
        "lock": "locked: true"
       },
       "code_refs": [
        "records/R5/PRINT/scripts/r5_print_more_fetch.py (lines 4-5)",
        "records/R5/PRINT/scripts/r5_print_more_build.py (lines 6-7, 33-76) [secondary reading]"
       ],
       "report_refs": [
        "records/R5/PRINT/evidence/_stats/more.json",
        "RS/evalsets.json#sets[name=more_real_print]",
        "PROJ/docs/research_artifacts/round_2026-11-21/FINAL/close_notes.txt (line 10: not scored)"
       ],
       "counts": {
        "paragraphs": 857,
        "pages": 75,
        "dropped_markup": 72
       }
      }
     ],
     "disagreements": [
      "Targets: records/R5/PRINT/report.txt line 3 says 'every target met: 4,000 / 300 / 500'; the code's sampling targets are 7,500/520/850 (r5_print_process.py lines 817-852), which no language reached (maxima 7,441/520/848). The 4,000/300/500 minimums are met.",
      "Audit rounds: the report names three uz_cyrl rounds; audit.json shows ba had four audits and tr two. audit.json#limits says every language was re-audited on a fresh sample after its last change, but its own tr entry keeps a mismatch found earlier; with a fixed seed a sample is 'fresh' only because the data changed.",
      "The report's list of fixes omits space_over_ink, which dropped 817 lines (records/R5/PRINT/evidence/_stats/*.json#render_drops).",
      "fetch_summary ok_total says 160 (kk) and 174 (uz_cyrl), while the fetch logs and the disk show 104 and 87 (secondary tally of records/R5/PRINT/evidence/_fetch).",
      "sah: 14 test documents in split_docs but 13 with lines in counts.json.",
      "MORE pages: 75 in counts.json and the registry, 77 by summing more.json#pages_by_lang. MORE labels are 'human-refined' in counts.json and report.txt, 'model-assisted and human-refined' in the build script.",
      "The comment at r5_print_process.py line 790 says the TBMM cap is 'train only'; the code (lines 739-748) applies it to documents before the split.",
      "The sbatch files (60 pages per document) differ from the login-node driver that produced the data (40 pages; r5_print_login_run.sh lines 9-11). The data were produced on the login node (records/R5/PRINT/report.txt, rules not followed).",
      "records/deck2/datasets.json says the render DPI is 'not stated in files in hand'; r5_print_process.py lines 9 and 420 state 150-300 dpi.",
      "Published copy PROJ/docs/research_artifacts/round_2026-11-21/PRINT: audit.json, counts.json, dupcheck.json, final_verification.json byte-identical to SP; status.json same values re-formatted; validation_print.json, evidence/ and scripts/ are not published."
     ],
     "unknowns": [
      "Why the 8 exclusions outside uz_cyrl were made (only the generic reason is recorded). To find out: the cluster stdout of r5_print_rerun_loop.sh.",
      "The FinePDFs and MORE revisions used: not recorded.",
      "How many lines skipped the character-box pixel checks because no rawdict line matched the bbox within 0.2 pt (r5_print_process.py lines 523-524): not counted.",
      "Share of Russian or English lines left in each language: no per-line language identification was run. To find out: run a language identifier over train/val.",
      "TBMM lines per split (1,675 of 8,583 Turkish lines overall). To find out: count the source column of the manifests.",
      "The Resmi Gazete network probe result (r5_print_nettest.sbatch): cluster log DATA/logs/r5_print_net_*.out."
     ],
     "where_to_obtain": {
      "FinePDFs": {
       "where_to_obtain": "https://huggingface.co/datasets/HuggingFaceFW/finepdfs",
       "access": "public Hugging Face dataset",
       "citation": "Kydlicek, Penedo and von Werra (2025), FinePDFs, Hugging Face dataset (refs.bib key huggingfacefw2025finepdfs)"
      },
      "MORE": {
       "where_to_obtain": "Hugging Face repository zimoqingfeng/MORE (identifier as recorded in the datasheet, stage 14); not in refs.bib, URL not given",
       "access": "fetched with snapshot_download, no pinned revision",
       "citation": "not in refs.bib"
      }
     }
    }
   },
   "project_notes": "Not released: the crops and their text-layer labels. Built for an owner decision, in a separate folder (DATA/release/rc1_data_print_pointers, own NOTICE): a pointer list of the train and validation lines (URL, page, box in PDF points, render DPI, padding); the test documents are left out because URL plus box plus text layer would rebuild the locked test labels."
  },
  "15_real_dataset_manipulations_not_released": {
   "title": "Every manipulation of the real data sets (not released; they trained the weights)",
   "parts": {
    "real_kohtd": {
     "title": "KOHTD (Kazakh Offline Handwritten Text Dataset): source copy, labels, form split, scan-named crops, duplicate sheets, validation subsets",
     "summary": "KOHTD word crops (Kazakh handwriting on scanned exam sheets) were used as they are, with labels from the dataset's annotation files cleaned only by Unicode NFC and whitespace rules. The crops were split by exam form with a fixed deterministic function of the form id (70/15/15 of forms), and the 24,989 crops whose file names carry no form number went to training only. 133 training crops were removed as exact or near copies of validation or test images. Two duplicate sheets under different form numbers were found on 25 Nov, after every release model had trained; no manifest was changed because of them.",
     "steps": [
      {
       "what": "Source copy on the cluster. The word archive KOHTD_dataset.zip and the sheet archive were downloaded from the authors' links into DATA/data/raw/kohtd; the zip was extracted with the password read from standard input, never written to a file. The extracted folder holds 140,355 word images and 140,355 annotation JSON files; 1,926 full sheet scans are on disk but were not used for training.",
       "parameters": {
        "crop_folder": "DATA/data/processed/kohtd_words_raw/KOHTD_dataset/HK_dataset/img",
        "sheet_folder": "DATA/data/raw/kohtd/forms_sheets_extracted/20200929_Examination_sheets_cleaned",
        "unit": "word crop",
        "image_processing": "none: manifest rows point to the original JPEG files (image = KOHTD_IMG / crop_file)"
       },
       "code_refs": [
        "RS/scripts_top/kohtd_fetch.py (docstring)",
        "RS/scripts_top/kohtd_extract.py (lines 1-22)",
        "records/R5/DATA/scripts/r5_build_real.py:module (line 44 KOHTD_IMG), stage_kohtd (line 135)"
       ],
       "report_refs": [
        "records/R5/DATA/disk_counts.json#kohtd_words",
        "records/R5/DATA/disk_counts.json#kohtd_sheets",
        "records/R5/DATA/data_sources.json#sources[id=kohtd_sheets].role_r5 ('not used')"
       ],
       "counts": {
        "word_images": 140355,
        "annotation_files": 140355,
        "numbered_crops": 115366,
        "scan_named_crops": 24989,
        "form_ids_with_numbered_crops": 1900,
        "sheet_scans": 1926
       }
      },
      {
       "what": "Labels. The label of each crop is the 'description' field of its annotation JSON; tabs and line breaks were replaced by a space when the label list was made, then the R5 build applied clean(): Unicode NFC, tab/CR/LF to one space, strip of leading and trailing white space. No case folding, no character mapping, no look-alike mapping. No label was empty, so the rule that drops empty labels from train removed nothing.",
       "parameters": {
        "label_field": "description",
        "normalisation": "NFC; \\t \\r \\n -> space; strip",
        "empty_label_rule": "dropped from TRAIN only (kept in val/test)"
       },
       "code_refs": [
        "RS/scripts_top/k1_labels_all.py:read (lines 13-16)",
        "records/R5/DATA/scripts/r5_build_real.py:clean (lines 57-62)",
        "records/R5/DATA/scripts/r5_build_real.py:stage_kohtd (lines 125-149)",
        "records/R5/DATA/scripts/r5_kohtd_check.py (whole file: measures what NFC and strip change)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_kohtd.json#labels_changed_by_cleaning",
        "records/R5/DATA/build_logs/stage_kohtd.json#empty_labels"
       ],
       "counts": {
        "labels_changed_by_cleaning_train": 84,
        "labels_changed_by_cleaning_val": 11,
        "labels_changed_by_cleaning_test": 16,
        "empty_labels_all_splits": 0,
        "train_rows_dropped_for_empty_label": 0
       }
      },
      {
       "what": "Form split K1 v1. Specification written and frozen before the split was computed (2026-11-20T12:48:27Z); built on the cluster at 13:35 UTC from label text only. Key = form id (first number of the crop name). Bucket = a fixed deterministic function of ('KOHTD-split-v1-2026-11-20:' + form id), mod 100: 0-69 train, 70-84 validation, 85-99 test. Shares are of forms; every form keeps all its crops. The block-of-10 fallback (rule g) did not fire, so the key stayed the form id. 26 sheets without numbered crops were excluded. A second, independent implementation gave the same numbers.",
       "parameters": {
        "salt": "KOHTD-split-v1-2026-11-20:",
        "split_rule": "a fixed deterministic function of the form id, mod 100",
        "buckets": "train <70, validation 70-84, test 85-99",
        "key_mode": "form"
       },
       "code_refs": [
        "RS/scripts_top/k1_build_split.py:bucket (lines 17-20)",
        "RS/scripts_top/k1_build_split.py:split_of_form (lines 45-47)",
        "RS/scripts_top/k1_build_split.py:module (lines 59-81, scan-named rule; lines 88-93 excluded sheets)"
       ],
       "report_refs": [
        "PROJ/docs/research_artifacts/text_evidence.jsonl#round_2026-11-20/K1_kohtd_sheets/split_spec_v1.txt (rules a-g)",
        "PROJ/docs/research_artifacts/text_evidence.jsonl#round_2026-11-20/K1_kohtd_sheets/split_build_out.txt",
        "PROJ/docs/research_artifacts/text_evidence.jsonl#round_2026-11-20/K1_kohtd_sheets/split_report.txt",
        "records/R5/DATA/build_logs/stage_kohtd.json#counts"
       ],
       "counts": {
        "train_forms": 1337,
        "train_numbered_crops": 80513,
        "train_scan_named_crops": 24989,
        "train_crops_before_dedupe": 105502,
        "val_forms": 258,
        "val_crops": 16238,
        "test_forms": 305,
        "test_crops": 18615,
        "excluded_sheets": 26,
        "train_groups_in_manifest (1,337 forms + 1,160 scan names)": 2497
       }
      },
      {
       "what": "Scan-named crops. 24,989 crops are named word_croped_<scan name>_<row>_<word> and carry no form number. K1 searched one crop from each of 60 scan names on all 1,926 sheets (template matching at the corrected scale; a positive control found 20 of 20 numbered crops on their own sheet) and found none above the wrong-sheet threshold, so by rule (f) all scan-named crops went to train only. In the R5 manifest each such crop gets the group 'kohtd_scan_' + scan name (row and word numbers removed), 1,160 groups. 16 of them were later removed by the duplicate check (5 with a partner in another source, 11 with a partner in KOHTD validation or test; all with a different label). On 25 Nov an exhaustive image search (image fingerprints plus correlation, with positive controls) linked 0 of the 24,989 to a validation or test form.",
       "parameters": {
        "group_rule": "'kohtd_scan_' + crop_file[:-4].replace('word_croped_','',1).rsplit('_',2)[0]",
        "K1_search": "60 crops x 1,926 sheets, sheet shrunk 0.5, TM_CCOEFF_NORMED, acceptance 0.6312",
        "LEAK_search": "ink-map difference fingerprint (512 bits) + perceptual fingerprint (64 bits), tau_easy 0.2091, tau_hard 0.3751, NCC check 0.85, seed 20261125, jobs 55192 and 55194"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_kohtd (lines 131-134)",
        "RS/scripts_top/k1_scan_search.py (whole file)",
        "RS/scripts_top/k1_build_split.py (lines 67-79)",
        "RS/scripts_top/kohtd_leak_scan.py (lines 1-50)"
       ],
       "report_refs": [
        "PROJ/docs/research_artifacts/text_evidence.jsonl#round_2026-11-20/K1_kohtd_sheets/split_report.txt (decision f)",
        "records/R5/DATA/dedupe.json#pass_1_real_sources.kohtd_scan_named_train_crops_dropped",
        "records/R5/LEAK/kohtd_scan_leak.json#answer.scan_named_crops",
        "records/R5/LEAK/kohtd_scan_leak.json#limits"
       ],
       "counts": {
        "scan_named_crops": 24989,
        "scan_names": 1160,
        "scan_named_dropped_by_dedupe": 16,
        "linked_to_val_or_test_form_by_LEAK": 0
       }
      },
      {
       "what": "Known duplicate KOHTD sheets. Found on 25 Nov by the leak check when numbered training crops (80,512 after one near-blank crop was left out) were searched against all validation and test crops, and validation against test, with the same image fingerprints plus normalised correlation: (1) validation form 501 is the same sheet as training form 1695: 28 of the 34 crops of form 501 have a near-identical twin among the 35 crops of form 1695 (validation leak into train); (2) test form 1868 is the same sheet as validation form 951: 8 of the 10 crops of form 1868 have a twin among the 18 crops of form 951. No training sheet was found to duplicate a test sheet; 23 other train-val/test pairs and 4 other val-test form pairs are 1-2 crop coincidences. What was done: nothing in the data. The search ran after every release model had trained; the training, validation and test manifests were left unchanged and the fix (drop one member of each pair) was left to the owner. The second test pass plans every number again without test form 1868 as a sensitivity check. Because the screen set V1 keeps the first 15 crops of every validation form, V1 holds 15 crops of form 501 (derived from the V1 rule and the crop count of form 501), so the model-selection set contains near-twins of training crops.",
       "parameters": {
        "jobs": "55232 (numbered train vs val+test), 55237 and 55238 (val vs test)",
        "pair_rule_numbered": "combined fingerprint distance <= 0.2091 or NCC >= 0.9 among candidates within 0.3751",
        "duplicates_within_one_split": "not searched"
       },
       "code_refs": [
        "RS/scripts_top/kohtd_leak_numbered.py (lines 25-70)",
        "RS/scripts_top/kohtd_leak_valtest.py (header)",
        "RS/scripts_top/kohtd_leak_singles.py (header)"
       ],
       "report_refs": [
        "records/R5/LEAK/kohtd_scan_leak.json#answer.NEW_finding_numbered_crops_duplicate_sheets",
        "records/R5/LEAK/kohtd_scan_leak.json#answer.counts",
        "records/R5/LEAK/kohtd_scan_leak.json#answer.suggested_fix_for_owner_decision",
        "records/R5/LEAK/kohtd_scan_leak.json (key limits, line 2371: forms 501/1695/951/1868 have 34/35/18/10 crops)",
        "records/R5/TESTPASS2/plan.json (line 628, key sensitivity)",
        "PROJ/docs/research_artifacts/text_evidence.jsonl#round_2026-11-20/J2_screen/screen_rule_v1.txt (section 2)"
       ],
       "counts": {
        "val_form_501_crops_with_twin_in_train_form_1695": 28,
        "test_form_1868_crops_with_twin_in_val_form_951": 8,
        "train_to_test_sheet_duplicates": 0,
        "V1_crops_from_form_501 (derived)": 15
       }
      },
      {
       "what": "Duplicate check of the training crops (details in dedup_before_freeze): 133 KOHTD training crops were dropped because they were byte-identical or within perceptual fingerprint distance 4 of a validation or test image of any source.",
       "parameters": {
        "rule": "drop the TRAIN member; partner may be any val/test manifest of any source"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe (lines 549-707)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_1_real_sources.per_train_manifest.kohtd_train",
        "records/R5/DATA/dedupe.json#pass_1_real_sources.dropped_train_source_vs_partner_source_split"
       ],
       "counts": {
        "before": 105502,
        "after": 105369,
        "dropped": 133,
        "partner_kohtd_test": 50,
        "partner_kohtd_val": 60,
        "partner_school_test": 10,
        "partner_school_val": 8,
        "partner_chd_test": 1,
        "partner_chd_val": 1,
        "partner_hkr_test": 1,
        "partner_hkr_val": 1,
        "partner_rukopys_test": 1
       }
      },
      {
       "what": "Validation subsets. V1 (kohtd_screen_v1): for each of the 258 validation forms, crops sorted by a fixed deterministic function of ('J11-screen-v1:' + crop_file) and the first 15 kept (all crops if fewer); 3,678 crops. The R5 build checks the input list byte for byte, then copies the matching kohtd_val rows (cleaned text). V1lm (kohtd_lmtune): 500 validation crops not in V1, drawn with numpy default_rng(20261121).choice(12,560, 500, replace=False), sorted by index; used only to tune post-processing weights (language model). kohtd_val: all 16,238 validation crops.",
       "parameters": {
        "V1_salt": "J11-screen-v1:",
        "V1_cap_per_form": 15,
        "V1lm_seed": 20261121,
        "V1lm_method": "numpy.random.default_rng(20261121).choice(len(candidates), 500, replace=False), sorted",
        "numpy": "2.5.4"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_kohtd (lines 153-179)",
        "records/R5/DATA/scripts/r5_v1_strip_count.py (whole file)"
       ],
       "report_refs": [
        "PROJ/docs/research_artifacts/text_evidence.jsonl#round_2026-11-20/J2_screen/screen_rule_v1.txt",
        "records/R5/DATA/build_logs/stage_kohtd.json#v1_rows, #lmtune_candidates, #lmtune_method",
        "RS/evalsets.json#sets[name=V1], #sets[name=V1lm]",
        "records/R5/DATA/report.txt (NOT DONE: '2 of 3,678 V1 labels lost a trailing space')"
       ],
       "counts": {
        "V1_crops": 3678,
        "V1_forms": 258,
        "V1lm_crops": 500,
        "V1lm_forms": 178,
        "V1lm_candidates": 12560,
        "V1_labels_differing_from_input_file": 2
       }
      },
      {
       "what": "Language evidence sidecar (information only, nothing dropped): each KOHTD label is marked as containing a Kazakh-specific letter, Cyrillic without one, or no Cyrillic letter.",
       "parameters": {
        "kazakh_letters": "әғқңөұүһі and capitals"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_kohtd (lines 180-196)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_kohtd.json#label_lang_evidence"
       ],
       "counts": {
        "train_kk_specific_letter": 64248,
        "train_cyrillic_no_specific_letter": 40317,
        "train_no_cyrillic_letter": 937,
        "note": "train counts are before the duplicate check"
       }
      },
      {
       "what": "Unseen-word test slices (test-side manipulation, used for scoring only). Registry P2: KOHTD test crops whose key (NFC, lower case, letters and digits only, whole label) is not the key of any handwriting training label; P2b: also not equal to any whitespace token of any training label. Computed by r5_p2_slice.py after GEN's synthetic train manifests existed (pre-drop versions, 120,000 and 60,000 rows). The scorer instead recomputes P2 from K_train (keys of the frozen mix's hand training labels AND of their whitespace tokens, with the Turkish/Azerbaijani case fold and decimal digits only); that slice is the one the verdict reports.",
       "parameters": {
        "registry_key": "NFC, str.lower(), keep Unicode categories L* and N*",
        "scorer_key": "textnorm.n1_key: NFC, Turkic fold for tr/az then lower, keep L* and Nd; K_train hand_keys include whitespace tokens"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_p2_slice.py:norm (lines 24-26), module (lines 45-77)",
        "RS/r5eval/ktrain.py (docstring lines 1-14)",
        "RS/r5eval/textnorm.py:n1_key (lines 55-58)"
       ],
       "report_refs": [
        "records/R5/FREEZE/post/p2_slice_info.json (final registry slice)",
        "records/R5/DATA/p2_slice_info.json (provisional, 2,592 / 2,561)",
        "records/R5/TESTPASS2/kohtd/b1_kohtd_test_24nov.json (groups slice:P2, slice:registry_P2; counts only)",
        "PROJ/docs/research_artifacts/round_2026-11-21/FINAL/verdict.json (repaired_refs|slice:P2 den 20,413)",
        "records/R5/FREEZE/freeze_record.json#K_train"
       ],
       "counts": {
        "test_crops_empty_key": 13,
        "registry_P2_crops": 2558,
        "registry_P2_forms": 294,
        "registry_P2b_crops": 2105,
        "registry_P2b_forms": 289,
        "scored_P2_crops": 2228,
        "scored_P2_forms": 291,
        "scored_P2_reference_characters": 20413,
        "scored_P2b_crops": 1131,
        "scored_P2_literal_crops": 2559
       }
      },
      {
       "what": "Replication split (not used by any release model). A crop-level random 70/15/15 split of the pool kohtd_train (after the duplicate check) + kohtd_val, made only to re-run two published KOHTD methods (reference arms R1, R2); its test part overlaps our training forms and is never compared with our models. mix_v1.yaml has no leaf that reads it.",
       "parameters": {
        "rule": "numpy default_rng(20261121).permutation over the id-sorted pool; first 70% train, next 15% validation, last 15% test",
        "script": "scripts/r5_ref/ref_build_data.py (not read in this pass)"
       },
       "code_refs": [
        "RS/mix_v1.yaml (components: no kohtd_rand leaf)"
       ],
       "report_refs": [
        "RS/evalsets.json#sets[name=kohtd_rand_test].split_rule, .caution",
        "records/R5/FREEZE/post/validate_rerun.log (row counts)"
       ],
       "counts": {
        "pool": 121607,
        "kohtd_rand_train": 85124,
        "kohtd_rand_val": 18241,
        "kohtd_rand_test": 18242
       }
      }
     ],
     "disagreements": [
      "Scan-named crops: the project pages and the dataset index still say 'leak risk untested' / 'not excluded' (PROJ/docs/2_pipeline.html; records/deck2/datasets.json caveats; records/R5/DATA/dedupe.json#limits). The later exhaustive search records/R5/LEAK/kohtd_scan_leak.json#answer.scan_named_crops (25 Nov) found 0 of 24,989 linked to a validation or test form. Both are true for their date; the LEAK file is the newer primary record, and it states its own limits (it cannot see re-scans with other geometry or a different word of the same sheet).",
      "V1 identity: records/R5/DATA/report.txt says 'V1 3,678 (byte-identical to J2's file)'. The code checks the INPUT list byte for byte (r5_build_real.py lines 154-155), while the R5 manifest kohtd_screen_v1.tsv (RS/evalsets.json#sets[name=V1]) is a different file, and 2 of its 3,678 labels differ from the input file by a stripped trailing space (report.txt; r5_v1_strip_count.py). The code supports: same crops, cleaned labels.",
      "P2 size: the rc1 model cards (records/R5/RELEASE/rc1/*/model_card.json, metrics P2_unseen_word_slice) pair n_crops 2,558 (registry slice, p2_slice_info.json) with reference_characters 20,413. The score file shows 20,413 reference characters belong to the scorer's K_train slice of 2,228 crops (291 forms); the registry slice of 2,558 crops has 22,783 reference characters (records/R5/TESTPASS2/kohtd/b1_kohtd_test_24nov.json, groups slice:P2 and slice:registry_P2). The score file supports 2,228 crops for the reported P2 CER.",
      "Two P2 definitions exist: r5_p2_slice.py:norm (whole labels, str.lower, L*+N*) and ktrain.py/textnorm.n1_key (labels and whitespace tokens, Turkic fold, L*+Nd). The registry P2 (2,558) was also computed against the pre-drop synthetic train manifests (120,000/60,000 rows; records/R5/FREEZE/post/p2_slice_info.json#train_manifests_used_rows), not the frozen copies.",
      "Image count: 140,355 crops counted on disk (records/R5/DATA/disk_counts.json#kohtd_words) against 140,335 in the KOHTD paper (as stated in records/deck2/datasets.json caveats; the paper itself was not re-read here). The disk count is the primary record for what was used."
     ],
     "unknowns": [
      "How many of the 15 V1 crops of validation form 501 have a near twin in training form 1695 (28 of 501's 34 crops do). To find out: on the cluster, intersect the vt_crop ids of outputs/r5/leak_kohtd_scan/result_numbered.json (pairs_listed with vt_form 501) with the ids of manifests/kohtd_screen_v1.tsv.",
      "Whether V1lm, kohtd_val (used for the futility check, B1 KOHTD validation CER) and curve_v1 contain near twins of form 1695 through form 501 crops: kohtd_val holds all 34 crops of form 501; V1lm and curve_v1 membership not checked. To find out: grep form 501 ids in kohtd_lmtune.tsv and curve_v1.tsv on the cluster.",
      "Whether the sensitivity analysis without test form 1868 has been run for KOHTD (planned in records/R5/TESTPASS2/plan.json line 628). To find out: TESTPASS2 results on the cluster for kohtd_test.",
      "Duplicate sheets inside one split (train-train, val-val, test-test) were not searched (records/R5/LEAK/kohtd_scan_leak.json#answer.suggested_fix_for_owner_decision).",
      "Writer identity: KOHTD has no writer ids, so the split is form-disjoint but not provably writer-disjoint (split_report.txt, limits).",
      "Labels are crowd labels (two volunteers agreeing, per the paper as quoted in split_report.txt); the project did not check them one by one."
     ],
     "where_to_obtain": {
      "where_to_obtain": "https://github.com/abdoelsayed2016/KOHTD",
      "access": "through the authors' application form (named group, academic research only)",
      "citation": "Toiganbayeva et al. (2022), KOHTD: Kazakh offline handwritten text dataset, Signal Processing: Image Communication 108, 116827, doi 10.1016/j.image.2022.116827 (refs.bib key toiganbayeva2022kohtd)"
     }
    },
    "real_hkr": {
     "title": "HKR (Handwritten Kazakh and Russian), public Kaggle copy",
     "summary": "HKR word crops were taken from a third-party Kaggle copy of the public word set and used as they are (JPEG bytes copied unchanged). The split is the one recorded in the project's earlier audit manifest (described there as the official CSV split); it is not form-disjoint. Labels were NFC and whitespace cleaned and agreed with the audit manifest in every row. 46 training crops were dropped by the duplicate check.",
     "steps": [
      {
       "what": "Source copy and images. DATA/data/raw/hkr_words_kaggle_scispecai/hkr_dat.zip (64,943 jpg + 64,943 json). Each image is copied byte for byte from the zip to DATA/data/processed/r5/images/hkr/<id>.jpg; no re-encoding, no crop.",
       "parameters": {
        "zip_prefix": "HKR_Dataset_Words_Public/20200923_Dataset_Words_Public/",
        "unit": "word crop"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_hkr (lines 202-232)"
       ],
       "report_refs": [
        "records/R5/DATA/disk_counts.json#hkr_words",
        "records/R5/DATA/build_logs/stage_hkr.json#manifest_rows, #zip_ids_not_in_manifest"
       ],
       "counts": {
        "images": 64943,
        "zip_ids_not_in_audit_manifest": 0
       }
      },
      {
       "what": "Labels: annotation field 'description', clean() (NFC, tab/CR/LF to space, strip). Compared with the text column of the audit manifest after the same cleaning: no difference. Language tag: 'kk' if the label holds a Kazakh-specific letter, else 'ru'. Group: 'hkr_t<template>_i<instance>' from parts 0 and 2 of the id (project inference of the filled-form instance).",
       "parameters": {
        "lang_rule": "any of әғқңөұүһі (and capitals) -> kk, else ru",
        "group_rule": "hkr_t%s_i%s from id.split('_')[0] and [2]"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_hkr (lines 225-238)",
        "records/R5/DATA/scripts/r5_build_real.py:clean (lines 57-62)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_hkr.json#text_differs_from_manifest, #kk_labelled, #empty_labels"
       ],
       "counts": {
        "text_differs_from_audit_manifest": 0,
        "empty_labels": 0,
        "kk_labelled_train": 63,
        "kk_labelled_val": 13,
        "kk_labelled_test1": 15,
        "kk_labelled_test2": 7
       }
      },
      {
       "what": "Split: the 'split' field of the project audit manifest DATA/data/processed/r5/inputs/hkr_manifest.tsv.gz (equal to PROJ/docs/research_artifacts/kazakh_audit/hkr_manifest.tsv.gz, checked locally). train / val / test1 / test2 kept; not form-disjoint (crops of one filled form sit in several parts).",
       "parameters": {
        "split_unit": "as recorded (no re-split)"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:module (line 48), stage_hkr (lines 207-209, 236-238)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_hkr.json#counts, #groups",
        "records/R5/DATA/data_sources.json#sources[id=hkr_words].split_rule",
        "RS/evalsets.json#sets[name=hkr_val].caution"
       ],
       "counts": {
        "train_before_dedupe": 45559,
        "val": 9375,
        "test1": 4966,
        "test2": 5043,
        "groups_train": 1611,
        "groups_val": 1537,
        "groups_test1": 1383,
        "groups_test2": 1458,
        "filled_form_instances_spanning_parts (data_sources)": "1,566 of 1,614"
       }
      },
      {
       "what": "Duplicate check: 46 training crops dropped (byte-identical or perceptual fingerprint distance <= 4 to a val/test image). Extra owner check HKR against every KOHTD image (any split): 0 byte-identical, 5 near pairs; the 2 of them that were HKR train crops had already been dropped (partners in KOHTD validation), so the extra check dropped 0.",
       "parameters": {
        "near_threshold": "Hamming distance <= 4 on 64-bit perceptual fingerprint"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe (lines 644-666)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_1_real_sources.per_train_manifest.hkr_train",
        "records/R5/DATA/dedupe.json#pass_1_real_sources.hkr_vs_kohtd"
       ],
       "counts": {
        "dropped": 46,
        "after": 45513,
        "partner_hkr_test": 10,
        "partner_hkr_val": 34,
        "partner_kohtd_val": 2
       }
      },
      {
       "what": "Validation subset hkr_val_s2000: 2,000 rows drawn with numpy default_rng(20261121).choice(n, 2000, replace=False), kept in manifest order; opens no image.",
       "parameters": {
        "seed": 20261121
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_val_subsets.py (lines 10-18)"
       ],
       "report_refs": [
        "records/R5/DATA/manifest_validation_partial.json",
        "RS/evalsets.json#sets[name=hkr_val_s2000]"
       ],
       "counts": {
        "rows": 2000,
        "groups": 1098
       }
      }
     ],
     "disagreements": [
      "Test sizes 4,966 and 5,043 against 5,057 per part in one published paper (RS/evalsets.json#sets[name=hkr_test1].caution, [name=hkr_test2].caution). The audit manifest is the primary record of what was used.",
      "Number of HKR writers: about 200 in the paper's body versus about 100 in its conclusion (as stated in records/deck2/datasets.json; the paper was not re-read in this pass)."
     ],
     "unknowns": [
      "Whether the audit manifest's split equals the authors' official CSV: the CSV is not on the cluster and was not re-read in R5 (records/R5/DATA/data_sources.json#sources[id=hkr_words].split_rule). To find out: obtain the authors' CSV (application form) and compare ids.",
      "Writer identity per crop: not in the data."
     ],
     "where_to_obtain": {
      "where_to_obtain": "https://github.com/abdoelsayed2016/HKR_Dataset",
      "access": "through the authors' application form",
      "citation": "Nurseitov et al. (2021), Handwritten Kazakh and Russian (HKR) database for text recognition, Multimedia Tools and Applications 80, 33075-33097, doi 10.1007/s11042-021-11399-6 (refs.bib key nurseitov2021hkr)"
     }
    },
    "real_chd": {
     "title": "Cyrillic Handwriting Dataset (CHD, Russian words), Kaggle",
     "summary": "CHD images were copied unchanged from the archive. The official train/test split was kept; because the dataset has no validation part, 5% of the training word types (chosen by a fixed salted deterministic function of the label) became validation, so no word type sits in both. Two empty training labels were dropped and 64 training crops were removed by the duplicate check.",
     "steps": [
      {
       "what": "Source copy: DATA/data/raw/chd/archive.zip (73,830 png; train.tsv 72,286 rows; test.tsv 1,544 rows). PNG bytes copied unchanged to DATA/data/processed/r5/images/chd/{train,test}/. Label = text after the first tab of each tsv line, clean().",
       "parameters": {
        "unit": "word or short phrase crop"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_chd (lines 260-283)"
       ],
       "report_refs": [
        "records/R5/DATA/disk_counts.json#chd"
       ],
       "counts": {
        "png": 73830,
        "train_tsv_rows": 72286,
        "test_tsv_rows": 1544
       }
      },
      {
       "what": "Validation carved from official train by word type: a train row goes to validation when a fixed deterministic function of ('R5-chd-val-v1:' + cleaned label), mod 100, is below 5. Group = 'chd_w' + a 10-character fixed deterministic code of the label (word type; no writer or page id exists). Official test unchanged.",
       "parameters": {
        "salt": "R5-chd-val-v1:",
        "bucket_rule": "f(salt + label) mod 100 < 5 -> val, with f a fixed deterministic function",
        "group_rule": "chd_w + a 10-character fixed deterministic code of the label"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_chd (lines 284-294)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_chd.json#val_rule, #counts, #distinct_words",
        "RS/evalsets.json#sets[name=chd_val].split_rule"
       ],
       "counts": {
        "train_rows_incl_empty": 68545,
        "val": 3741,
        "test": 1544,
        "distinct_words_train": 34878,
        "distinct_words_val": 1802,
        "distinct_words_test": 1310,
        "test_rows_whose_word_is_in_train": 615
       }
      },
      {
       "what": "Empty labels: 2 training rows had an empty label after cleaning and were dropped from train (validation and test had none).",
       "parameters": {
        "rule": "train rows with text == '' removed"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_chd (lines 300-301)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_chd.json#empty_labels",
        "records/R5/DATA/dedupe.json#pass_1_real_sources.per_train_manifest.chd_train.before"
       ],
       "counts": {
        "train_empty_dropped": 2,
        "train_before_dedupe": 68543
       }
      },
      {
       "what": "Duplicate check: 64 training crops dropped.",
       "parameters": {
        "near_threshold": "perceptual fingerprint Hamming <= 4, or byte-identical"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe (lines 549-707)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_1_real_sources.per_train_manifest.chd_train",
        "records/R5/DATA/dedupe.json#pass_1_real_sources.dropped_train_source_vs_partner_source_split"
       ],
       "counts": {
        "dropped": 64,
        "after": 68479,
        "partner_chd_test": 21,
        "partner_chd_val": 15,
        "partner_kohtd_test": 4,
        "partner_kohtd_val": 7,
        "partner_school_test": 9,
        "partner_school_val": 7,
        "partner_rukopys_test": 1
       }
      },
      {
       "what": "Validation subset chd_val_s2000: 2,000 rows, numpy default_rng(20261121).choice, manifest order.",
       "parameters": {
        "seed": 20261121
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_val_subsets.py (lines 10-18)"
       ],
       "report_refs": [
        "RS/evalsets.json#sets[name=chd_val_s2000]"
       ],
       "counts": {
        "rows": 2000,
        "groups": 1086
       }
      }
     ],
     "disagreements": [
      "Train count: records/R5/DATA/build_logs/stage_chd.json#counts.train = 68,545 is counted before the 2 empty labels are removed (code lines 295-301); records/R5/DATA/dedupe.json#...chd_train.before = 68,543 is after. Both agree with the code; the manifest used has 68,479 rows after the duplicate check."
     ],
     "unknowns": [
      "Writers and capture method: not stated by the dataset (no writer or page id); the same hand may be in train, validation and test (RS/evalsets.json#sets[name=chd_val].caution)."
     ],
     "where_to_obtain": {
      "where_to_obtain": "https://www.kaggle.com/datasets/constantinwerner/cyrillic-handwriting-dataset",
      "access": "Kaggle dataset",
      "citation": "Verner (2021), Cyrillic Handwriting Dataset, Kaggle (refs.bib key verner2021cyrillichw)"
     }
    },
    "real_school_notebooks": {
     "title": "School Notebooks RU: word crops cut from pupil-text polygons",
     "summary": "Word crops were cut from phone photos of Russian school notebook pages, from the polygons of category pupil_text with a non-empty transcription; teacher and comment polygons were not cut. A crop is the axis-aligned rectangle around the polygon plus 3 px, rotated level first when the word is tilted between 2 and 30 degrees; pixels outside the polygon are kept (no mask). The official page split was kept. 286 training crops were removed by the duplicate check.",
     "steps": [
      {
       "what": "Source copy: DATA/data/raw/school_notebooks_ru/ (images.zip for train pages; val_test_images/{val,test}/ for the other pages; annotations_{train,val,test}.json in COCO-like form).",
       "parameters": {
        "pages_train_val_test": "1,557 / 150 / 150"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_school (lines 397-418)"
       ],
       "report_refs": [
        "records/R5/DATA/disk_counts.json#school_notebooks_ru"
       ],
       "counts": {
        "category0_annotations_train": 244529,
        "category0_with_text_train": 243692,
        "category0_with_text_val": 25138,
        "category0_with_text_test": 25293
       }
      },
      {
       "what": "Selection and labels: annotations with category_id 0 (pupil_text) only; label = attributes.translation after clean(); annotations whose cleaned translation is empty are skipped. Categories 1-4 (teacher marks, comments and others) are not cut.",
       "parameters": {
        "category": "0 (pupil_text)",
        "label_field": "attributes.translation"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_school (lines 407-415)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_school.json#empty_translation_skipped, #crop_rule"
       ],
       "counts": {
        "empty_skipped_train": 837,
        "empty_skipped_val": 17,
        "empty_skipped_test": 3
       }
      },
      {
       "what": "Cutting (cut_word). Page decoded to RGB; if the image size is the transpose of the annotated size, EXIF orientation is applied; any other size mismatch skips the page (0 page errors). For each polygon: axis-aligned bounding rectangle; if it is under 6 px in either side the word is skipped. The minimum-area rectangle of the polygon gives the tilt of its long edge; when 2 <= |tilt| <= 30 degrees and the long edge is at least 1.2 times the short edge, a patch made of the bounding box plus a margin of hypot(w,h) + pad + 4 px on every side is rotated by the tilt about the rectangle centre (bilinear, border replicate) and the rotated polygon's bounding rectangle is cut; otherwise the plain rectangle is cut. Padding 3 px on every side, clipped to the page. No polygon mask: neighbouring ink inside the rectangle stays. Crops under 6 px in either side are dropped (0 dropped). Saved as PNG, compression level 1.",
       "parameters": {
        "pad_px": 3,
        "min_side_px": 6,
        "level_if_tilt_deg": "2 to 30 and long edge >= 1.2 x short edge",
        "interpolation": "cv2.INTER_LINEAR, BORDER_REPLICATE",
        "mask": "none (rectangle crop)",
        "png_compression": 1
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:poly_pts (lines 314-317)",
        "records/R5/DATA/scripts/r5_build_real.py:cut_word (lines 320-351)",
        "records/R5/DATA/scripts/r5_build_real.py:school_page_job (lines 354-394)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_school.json#crop_rule, #page_errors, #skipped"
       ],
       "counts": {
        "page_errors": 0,
        "words_skipped_bad_polygon_or_tiny": 0
       }
      },
      {
       "what": "Split and groups: the dataset's official page split kept; group = 'school_page_' + page file stem; id 'school:<split>_<stem>_<annotation index>'.",
       "parameters": {
        "split_unit": "notebook page (official)"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_school (lines 433-435)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_school.json#counts, #pages",
        "RS/evalsets.json#sets[name=school_val].split_rule"
       ],
       "counts": {
        "train_before_dedupe": 243692,
        "val": 25138,
        "test": 25293,
        "pages_with_crops_train": 1556,
        "pages_with_crops_val": 150,
        "pages_with_crops_test": 150
       }
      },
      {
       "what": "Duplicate check: 286 training crops dropped (byte-identical or perceptual fingerprint <= 4 to a val/test image of any source).",
       "parameters": {},
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_dedupe (lines 549-707)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_1_real_sources.per_train_manifest.school_train",
        "records/R5/DATA/dedupe.json#pass_1_real_sources.dropped_train_source_vs_partner_source_split"
       ],
       "counts": {
        "dropped": 286,
        "after": 243406,
        "partner_school_test": 152,
        "partner_school_val": 107,
        "partner_kohtd_test": 11,
        "partner_kohtd_val": 12,
        "partner_chd_test": 1,
        "partner_chd_val": 2,
        "partner_hkr_val": 1
       }
      },
      {
       "what": "Validation subset school_val_s2000 (2,000 rows, seed 20261121) and the full school_val. Whole train pages (not crops) were also used by the line detector (see training_data_per_package.yolo11s_detector).",
       "parameters": {
        "seed": 20261121
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_val_subsets.py (lines 10-18)"
       ],
       "report_refs": [
        "RS/evalsets.json#sets[name=school_val_s2000]"
       ],
       "counts": {
        "rows": 2000,
        "groups": 150
       }
      }
     ],
     "disagreements": [
      "Train pages: 1,557 in the dataset, the registry and the detector card (records/R5/DATA/disk_counts.json#school_notebooks_ru.train.pages; RS/evalsets.json#sets[name=school_val].split_rule) against 1,556 pages that yielded at least one word crop (records/R5/DATA/build_logs/stage_school.json#pages.train). Not a conflict: one train page has no pupil_text polygon with a non-empty transcription (inference from the code, lines 407-418: jobs are made only for pages with words)."
     ],
     "unknowns": [
      "Which train page yielded no crop. To find out: compare image ids in annotations_train.json with the groups of school_train.tsv on the cluster.",
      "Writers: no writer ids; pupils' consent is not documented in the dataset card (records/deck2/datasets.json, index only)."
     ],
     "where_to_obtain": {
      "where_to_obtain": "https://huggingface.co/datasets/ai-forever/school_notebooks_RU",
      "access": "public Hugging Face dataset",
      "citation": "ai-forever (2022), School Notebooks RU, Hugging Face dataset (refs.bib key aiforever2022schoolnotebooks)"
     }
    },
    "real_test_only_sets": {
     "title": "Test-only real sets: Azerbaijani LocalDoc handwriting benchmark and RUKOPYS (Ukrainian)",
     "summary": "Two real handwriting sets were prepared as locked test sets and never trained on: 442 Azerbaijani (Latin) line crops from LocalDoc, re-saved as PNG with NFC and whitespace-cleaned labels, and 6,172 Ukrainian line crops cut from RUKOPYS test-page boxes (handwritten, Ukrainian, legible, no struck-out or illegible markers, box plus 4 px). Both were fingerprinted for the duplicate check so that no training image is a copy of them. TurkishOCR-Bench is listed but not used.",
     "steps": [
      {
       "what": "Azerbaijani LocalDoc/azerbaijani-htr-benchmark (CC BY 4.0): plain public download through the Hugging Face API (no login), 2026-11-20T22:44:41Z; parquet read with pyarrow only. The lines parquet gives 442 pre-cut, deskewed line images; each is decoded and saved as RGB PNG. Label: NFC, strip, then tab/CR/LF to one space. Group = 'az_page_' + the first column whose name contains 'page' or 'source' (29 groups in the registry). lang az, script Latn, unit line, split test.",
       "parameters": {
        "raw_folder": "DATA/data/raw/localdoc_az_htr"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_fetch_az_htr.py:fetch (lines 30-45)",
        "records/R5/DATA/scripts/r5_fetch_az_htr.py:manifest (lines 48-82)"
       ],
       "report_refs": [
        "records/R5/DATA/work/az_fetch_log.json",
        "records/R5/DATA/data_sources.json#sources[id=DS_AZ_LOCALDOC_HTR]",
        "RS/evalsets.json#sets[name=az_localdoc_test]"
       ],
       "counts": {
        "lines": 442,
        "groups": 29,
        "characters (data_sources)": 11003
       }
      },
      {
       "what": "RUKOPYS test split (Ukrainian handwriting; only the test split is on the cluster): regions of type handwritten, language uk, legibility legible; label clean(); regions whose label is empty or contains '[illegible]' or '~~' are skipped; crop = box enlarged by 4 px on each side, clipped to the page; boxes under 8 px skipped; page read without EXIF rotation and its size must match the metadata. lang 'other', unit line, group per page.",
       "parameters": {
        "pad_px": 4,
        "min_box_px": 8,
        "orientation": "IMREAD_IGNORE_ORIENTATION (README v2.4: boxes agree with stored pixels)"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:stage_rukopys (lines 451-493)"
       ],
       "report_refs": [
        "records/R5/DATA/build_logs/stage_rukopys.json",
        "records/R5/DATA/data_sources.json#sources[id=rukopys_test].count_basis",
        "RS/evalsets.json#sets[name=rukopys_test]"
       ],
       "counts": {
        "pages_in_set": 385,
        "handwritten_regions": 6425,
        "skipped_not_uk_or_illegible": 78,
        "skipped_empty_or_marked": 175,
        "lines_kept": 6172,
        "page_groups_in_manifest": 371
       }
      },
      {
       "what": "Both sets in the duplicate check: RUKOPYS images were fingerprinted in pass 1 (2 training crops were dropped for a near RUKOPYS partner: 1 CHD, 1 KOHTD); the Azerbaijani images were fingerprinted with GEN's images and checked in the report-only passes (0 would-drops against them in pass 2).",
       "parameters": {},
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:ALL_MANIFESTS (lines 519-520)",
        "records/R5/DATA/scripts/r5_build_real.py:synth_manifest_names (lines 712-713)"
       ],
       "report_refs": [
        "records/R5/DATA/dedupe.json#pass_1_real_sources.dropped_train_source_vs_partner_source_split",
        "records/R5/DATA/dedupe.json#pass_2_all_manifests_after_pass_1_report_only"
       ],
       "counts": {
        "train_crops_dropped_for_rukopys_partner": 2
       }
      },
      {
       "what": "TurkishOCR-Bench (488 Turkish pages, 50 handwritten): listed, not used, because its per-page licences are mixed and the 50 handwritten pages state none.",
       "parameters": {},
       "code_refs": [
        "records/R5/DATA/scripts/r5_registry.py (lines 129-134)"
       ],
       "report_refs": [
        "RS/evalsets.json#listed_not_used"
       ],
       "counts": {}
      }
     ],
     "disagreements": [
      "RUKOPYS pages: 385 pages in the set (records/R5/DATA/data_sources.json#sources[id=rukopys_test]; registry purpose text) against 371 page groups in the manifest (stage_rukopys.json#pages; RS/evalsets.json n_groups). Not a conflict: 14 pages keep no line after the filters (inference from the code).",
      "LocalDoc label cleaning order differs from clean(): r5_fetch_az_htr.py strips BEFORE replacing tabs and line breaks (lines 69-71), so a label ending in a tab or line break could keep one trailing space; clean() replaces first and strips last. The validator checks NFC but not leading or trailing spaces (r5_validate_manifests.py lines 41-42). Whether any of the 442 labels is affected is unknown."
     ],
     "unknowns": [
      "Which parquet column gave the Azerbaijani page group (the code picks the first column whose name contains 'page' or 'source'). To find out: the schema printed by the manifest step in its cluster log.",
      "Whether any of the 442 Azerbaijani labels kept a trailing space (see disagreement). To find out: count labels ending in a space in az_localdoc_test.tsv (locked test labels: needs the owner's leave or a count-only script)."
     ],
     "where_to_obtain": {
      "LocalDoc": {
       "where_to_obtain": "https://huggingface.co/datasets/LocalDoc/azerbaijani-htr-benchmark",
       "access": "public Hugging Face dataset",
       "citation": "LocalDoc (2026), Azerbaijani Handwritten OCR Benchmark, Hugging Face dataset (refs.bib key localdoc2026azhtr)"
      },
      "RUKOPYS": {
       "where_to_obtain": "https://huggingface.co/datasets/UkrainianCatholicUniversity/rukopys",
       "access": "Hugging Face dataset",
       "citation": "Ukrainian Catholic University (2026), RUKOPYS: Ukrainian Handwritten Text Recognition Dataset, Hugging Face dataset (refs.bib key ucu2026rukopys)"
      },
      "TurkishOCR-Bench": {
       "where_to_obtain": "https://huggingface.co/datasets/moganai/TurkishOCR-Bench",
       "access": "Hugging Face dataset",
       "citation": "moganai (2026), TurkishOCR-Bench, Hugging Face dataset (refs.bib key moganai2026turkishocrbench)"
      }
     }
    },
    "label_normalisation_and_lookalikes": {
     "title": "Label normalisation in manifests, at training and at scoring; look-alike repair",
     "summary": "In every real manifest the label is Unicode NFC with tabs and line breaks turned into spaces and the ends stripped; nothing else is changed (no case folding, no apostrophe or look-alike mapping). At training time the VLM loaders read NFC, while the line recognizers and the character language model convert labels to NFD. Look-alike repair maps Latin letters that look like Cyrillic ones (and back) inside mixed-script words of REFERENCES only, at scoring time, with a hand-made 28-pair table; manifests, training labels and model outputs are never repaired. The binding verdict uses repaired references; 15 KOHTD test references are changed by it.",
     "steps": [
      {
       "what": "Manifest labels (all real sets): clean() = NFC, tab/CR/LF to a space, strip. The validator checks NFC, column count and allowed values for every manifest. Real print labels have their own normaliser (soft hyphen, ligatures, Unicode spaces; see real_print_pipeline).",
       "parameters": {
        "form": "NFC",
        "whitespace": "tab/CR/LF -> space; ends stripped; inner runs of spaces NOT collapsed in clean()"
       },
       "code_refs": [
        "records/R5/DATA/scripts/r5_build_real.py:nfc, clean (lines 53-62)",
        "records/R5/DATA/scripts/r5_validate_manifests.py (lines 41-56)"
       ],
       "report_refs": [
        "records/R5/DATA/manifest_validation.json#all_clean (true for the 19 real manifests)",
        "records/R5/FREEZE/post/validate_rerun.log (only more_real_print bad_unit and the deliberate kohtd/kohtd_rand id overlaps)"
       ],
       "counts": {
        "kohtd_labels_changed_by_clean": 111
       }
      },
      {
       "what": "Training-time label forms. VLM fine-tunes (PaddleOCR-VL, Qwen3-VL): NFC on reading the manifest and when the sample sequence is built. Line recognizers (kraken PP-OCRv6 arms) and the character LM text: NFD, whitespace runs collapsed, stripped ('the form of the kraken base weights'); predictions are written back as NFC.",
       "parameters": {
        "vlm": "NFC",
        "line_arms_and_char_lm": "NFD + whitespace collapse"
       },
       "code_refs": [
        "RS/r5_vlma/vlm_common.py:read_manifest (lines 46-53)",
        "RS/r5_vlma/build_sequence.py (line 167)",
        "RS/linedet_src/common.py:to_train_text (lines 29-31), to_report_text (lines 34-37)",
        "RS/linedet_src/data.py (line 134)",
        "RS/linedet_src/lm_prep.py (lines 4, 68)"
       ],
       "report_refs": [],
       "counts": {}
      },
      {
       "what": "Scoring normalisations: N0 = NFC, every whitespace run to one space, strip, case and punctuation kept (the standard scoring text); N1 = P2 key; N2 = apostrophe folding U+0027 U+2018 U+2019 U+02BC -> U+02BB (post-processed profile and typed endpoint only); N3 = Turkish/Azerbaijani-aware lower-casing.",
       "parameters": {
        "N2_set": "U+0027 U+2018 U+2019 U+02BC U+02BB -> U+02BB"
       },
       "code_refs": [
        "RS/r5eval/textnorm.py (docstring lines 1-10; norm line 19; fold_lower lines 48-52; n1_key lines 55-58)",
        "RS/r5eval/frozen.py (frozen scorelib_j2.py and postproc_vlma.py)"
       ],
       "report_refs": [
        "records/R5/RESEVAL/eval_spec.json (N0 definition, line 92)"
       ],
       "counts": {}
      },
      {
       "what": "Look-alike table v1: 28 Latin-Cyrillic pairs that look the same in ordinary fonts (16 capitals A B C E H I J K M O P S T X Y Ə; 12 small a c e h i j o p s x y ə), written by hand as a project assumption, not taken from Unicode confusables. Frozen file, 2026-11-20T23:19:45Z.",
       "parameters": {
        "pairs": 28
       },
       "code_refs": [
        "RS/r5eval/lookalike.py:_PAIRS (lines 21-27), table_tsv (lines 36-41)"
       ],
       "report_refs": [
        "RS/r5eval_data/lookalike_table_v1.tsv"
       ],
       "counts": {
        "pairs": 28
       }
      },
      {
       "what": "Look-alike repair (rule 0.6(c)): for each whitespace-separated token of a REFERENCE that holds at least one Latin-only and one Cyrillic-only letter: in a Cyrillic row, if Cyrillic letters are at least as many as Latin ones, Latin look-alikes are mapped to Cyrillic; in a Latin row the reverse. Applied only at scoring, as the separate profile 'repaired_refs' (plain model output against repaired references). Never applied to manifests, training labels or model outputs. The binding verdict of 24 Nov reads P1 and P2 from repaired references; the verdict log says no clause flips under the other reading. Model selection on V1 reads the plain profile.",
       "parameters": {
        "where": "scoring only, references only",
        "decision_profile_for_verdict": "repaired_refs when refs_mode == 'repaired' (P1, P2 CER)"
       },
       "code_refs": [
        "RS/r5eval/lookalike.py:repair_token, repair_label (lines 48-69)",
        "RS/r5eval/scoreset.py:score_set (lines 274-286)",
        "RS/r5eval/verdictgather.py:profile (lines 149-155)",
        "RS/r5eval/selection.py (lines 194, 213, 336: plain CER)"
       ],
       "report_refs": [
        "PROJ/docs/research_artifacts/round_2026-11-21/FINAL/close_notes.txt (line 19, VERDICT heading)",
        "records/R5/TESTPASS2/kohtd/b1_kohtd_test_24nov.json#n_refs_changed (count only)"
       ],
       "counts": {
        "kohtd_test_references_changed": 15
       }
      }
     ],
     "disagreements": [
      "Which profile decides: RS/r5eval/scoreset.py docstring (line 4) calls 'plain' 'the decision figure (amendment 3.2 C10)', while FINAL/close_notes.txt line 19 says the binding verdict uses references repaired with the look-alike table, and verdictgather.py:profile (lines 149-155) returns 'repaired_refs' for CER in repaired mode. The verdict code and the close notes support repaired references for the P1/P2 verdict; plain is still what selection.py reads for V1.",
      "Table date: lookalike.py docstring says written 2026-11-21; the freeze record says frozen 2026-11-20T23:19:45Z (UTC). Consistent if the docstring date is GMT+5 (04:19 on 21 Nov)."
     ],
     "unknowns": [
      "How many references are changed by the repair in sets other than kohtd_test (n_refs_changed in the cluster score JSONs, DATA/outputs/r5/scores/<arm>/<checkpoint>/<set>.json)."
     ]
    }
   }
  },
  "16_release_filtering": {
   "title": "Release filtering of this package (licences)",
   "parts": {
    "rules": [
     "1 page fonts known: from the saved page JSON when the page was saved whole (exact production record), else from the regenerated page; for a regenerated page (a) every font of the page's stored rows (except teacher-mark lines, which use a separate open face) must appear in the regenerated font list (regenerated_page_lacks_a_stored_row_font), (b) no stored row of the page may differ from its regenerated row in text, font, line id or class (regenerated_page_content_differs_from_stored_rows), and (c) the item's own row must be reproduced (row_not_reproduced_by_regeneration); otherwise the item is excluded",
     "2 no personal-use font anywhere on the item's page (union of the page font list and the fonts of all stored rows of the page): else excluded (personal_use_font_on_page)",
     "3 every corpus document behind the item's text has a cleared source kind (Wikipedia and FineWeb-2 cleared; Sakha newspaper corpus not cleared): else excluded (text_source_not_cleared:ailab); for a line that matched 3 or more documents, all documents drawn for its page are used (over-inclusive)",
     "3b line attribution is a substring heuristic, so every released Sakha item with attribution 'none' or 'split' (2+ words) and every line of every released Sakha page was tested against all newspaper sentences drawn for its page (job 55414, rel2_sakha_check.py): items whose label occurs in such a sentence exactly or as a 3-word window are excluded (text_source_not_cleared:ailab_unattributed_match; conservative, window matches may be coincidences)",
     "4 the item is in the frozen split (the 241 rows dropped at the freeze are listed, not released)"
    ],
    "sakha_attribution_check": {
     "job": 55414,
     "utc": "2026-11-25T12:33:47Z to 12:33:56Z",
     "counts": {
      "hand|train": {
       "checked_items": 1600,
       "checked_labels": 1600,
       "window_hit_items": 34,
       "exact_hit_items": 5
      },
      "hand|val": {
       "checked_items": 131,
       "checked_labels": 131,
       "window_hit_items": 1
      },
      "hand|test": {
       "checked_items": 125,
       "checked_labels": 125
      },
      "typed|train": {
       "checked_items": 1416,
       "checked_labels": 1416,
       "window_hit_items": 281
      },
      "typed|val": {
       "checked_items": 119,
       "checked_labels": 119,
       "window_hit_items": 26
      },
      "typed|test": {
       "checked_items": 120,
       "checked_labels": 120,
       "window_hit_items": 21
      },
      "pages|train": {
       "checked_items": 17,
       "checked_labels": 33,
       "exact_hit_items": 1
      },
      "pages|val": {
       "checked_items": 1,
       "checked_labels": 5
      },
      "pages|test": {
       "checked_items": 2,
       "checked_labels": 8
      }
     },
     "excluded_items": 369
    },
    "decisions_file": {
     "status": "used by job C (rel2_build_data.py); decided 2026-11-25 from records/R5/RELEASE2/work/licence_evidence.json",
     "text_source_kinds_allowed": {
      "wiki": true,
      "fw2": true,
      "ailab": false
     },
     "why_ailab_excluded": "The Sakha newspaper sentences (ailabykt/sakha-corpus-mono, sources kyym, eder_saas, sakha_sire, uluus_media) carry CC BY 4.0 on the corpus card, but the newspapers' own sites require a hyperlink to the source for any reuse and Ulus Media requires prior written consent and limits use to personal non-commercial purposes. The corpus rows hold no article links, so the hyperlink condition cannot be met per item, and the consent condition is not met. Conservative default: excluded; the owner may re-include kyym, eder_saas and sakha_sire after deciding that a site-level link satisfies their terms.",
     "text_licence_label": {
      "wiki": "CC-BY-SA-4.0 (Wikipedia text)",
      "fw2": "ODC-By-1.0 (FineWeb-2; Common Crawl terms of use apply)",
      "ailab": "CC-BY-4.0 corpus card; newspaper terms apply (not released)"
     },
     "extra_exclusions_json": "DATA/tmp/release2/sakha_check.json",
     "why_extra_exclusions": "rel2_sakha_check.py (job 55414) found released Sakha items whose label text occurs exactly (6 items) or as a 3-word window (363 more) in a newspaper sentence drawn for their page, although their line attribution named no newspaper document; all 369 are excluded (conservative; window matches can be coincidences).",
     "build_print_pointers": true,
     "pointer_notice_text": "Real-print pointer list (release candidate; publishing it is an owner decision)\n\nWHAT THIS IS\nOne row per real printed text line that the project cut from born-digital PDFs for training (train) and validation (val): our line id, language, script, split, document id, source, the PDF's URL, the page number, our line box in PDF points (x0,y0,x1,y1), and the render DPI and padding we used. No image and no text of any PDF is included. The test documents are not listed.\n\nSOURCES AND TERMS\nContains information from FinePDFs (HuggingFaceFW/finepdfs), which is made available under the Open Data Commons Attribution License (ODC-By) 1.0; use of FinePDFs is also subject to the Common Crawl terms of use. Turkish lines also come from minutes of the Grand National Assembly of Turkey (tbmm.gov.tr).\nEvery PDF remains under its owner's rights; this list grants no right to the PDFs or their content. To rebuild a line, fetch the PDF from its URL, render the page at the listed DPI and cut the listed box.\nThe line boxes and ids are the project's own work; the licence for them is chosen by the owner before publication.\n",
     "licence_file_text": "Turkic OCR generated data, release candidate rc1_data (page generator pagesynth 0.3.0, round R5, frozen 21 Nov 2026)\n\nLICENCE\nThis package is licensed under the Creative Commons Attribution-ShareAlike 4.0 International licence (CC BY-SA 4.0):\nhttps://creativecommons.org/licenses/by-sa/4.0/legalcode\nLicensor: Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova.\nCopyright 2026 Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova.\nCite as: Suleimenov, A., Bolatov, Z., Baglanova, A., Kadirbekova, A., Nguyen, A. T. (2026). A Handwriting Recognition Model for Turkic Languages in Latin and Cyrillic Script. Project report, Nazarbayev University.\n\nWHY SHARE-ALIKE\nThe label texts, and the text drawn in the images, are sentences and words taken from Wikipedia (CC BY-SA) and from FineWeb-2 (ODC-By 1.0, built from Common Crawl).\nMaterial adapted from Wikipedia must be shared under CC BY-SA 4.0 or a compatible licence; one licence is used for the whole package so that every item is covered.\nWikipedia text contributed before 7 June 2023 is under CC BY-SA 3.0, whose ShareAlike clause allows adaptations under a later version with the same licence elements (CC BY-SA 3.0 legal code, section 4(b)(ii)); Wikipedia text is also available under the GFDL.\n\nATTRIBUTION (required by the sources; lists in the folder attribution/)\n- Wikipedia: every article whose text appears in a released label is listed by language and page id with its URL in attribution/wikipedia_articles.tsv. Text of Wikipedia, the free encyclopedia, by its contributors, CC BY-SA.\n- FineWeb-2 (HuggingFaceFW/fineweb-2), ODC-By 1.0: every source document is listed by its FineWeb-2 id in attribution/fineweb2_documents.tsv. The underlying web pages remain under their authors' rights; use of FineWeb-2 is subject to the Common Crawl terms of use.\n- Fonts: the images were rendered with fonts under the SIL Open Font License 1.1 or the Apache License 2.0 only (attribution/fonts_used.tsv); the fonts themselves are not included. No font of a personal-use licence was drawn on any page of a released item.\n- Maps: Natural Earth vector data (public domain).\n- Paper constants were measured on scans of Zenodo record 15479725 (CC BY 4.0); no pixel of those scans is in any image.\n\nCHANGES\nSentences were cleaned and split by source document, wrapped into lines and drawn as synthetic handwriting and print on synthetic pages, then degraded to look scanned or photographed. Every step is described in datasheet.json.\n\nNO WARRANTY\nThe material is provided as is, without warranties of any kind. The images contain no real person's handwriting; the texts are unfiltered web and encyclopedia sentences and can contain names of real people.\n",
     "notices": {
      "wikipedia": "Text from Wikipedia (dump 20231101 of the kk, ky, uz, tt, ba, sah, tr, az and tk editions, read through the Hugging Face dataset wikimedia/wikipedia), CC BY-SA; article list with URLs in wikipedia_articles.tsv.",
      "fineweb2": "Text from FineWeb-2 (HuggingFaceFW/fineweb-2, configs kaz_Cyrl, kir_Cyrl, uzn_Cyrl, uzn_Latn, tat_Cyrl, bak_Cyrl, sah_Cyrl, tur_Latn, azj_Latn, tuk_Latn), Open Data Commons Attribution License (ODC-By) 1.0; subject to the Common Crawl terms of use; document ids in fineweb2_documents.tsv.",
      "fonts": "Rendered with fonts under the SIL Open Font License 1.1 or the Apache License 2.0 (list and use counts in fonts_used.tsv); fonts not included.",
      "natural_earth": "Map outlines from Natural Earth 1:50m vector data, public domain (https://www.naturalearthdata.com/about/terms-of-use/).",
      "not_used": "The NAF form images and DocLayNet pages were downloaded by the project but are not read by the generator; nothing of them is in this package. No real handwriting and no real printed page is in this package."
     },
     "licence_file_text_note": "the build (job 55415) wrote the LICENSE with a placeholder in the licensor line (its text is kept in build_report.json); on 26 Nov 2026 the licensor, copyright line and citation were filled in (D8), and the text above is the updated LICENSE"
    },
    "code": "records/R5/RELEASE2/code/rel2_build_data.py (job C); per-item reasons in excluded/excluded_items.tsv; counts in excluded/exclusion_counts.json",
    "exclusion_counts": {
     "personal_use_font_on_page": 4930,
     "regenerated_page_content_differs_from_stored_rows": 107,
     "regenerated_page_lacks_a_stored_row_font": 65,
     "row_not_reproduced_by_regeneration": 2,
     "text_source_not_cleared:ailab": 9338,
     "text_source_not_cleared:ailab_unattributed_match": 369
    },
    "page_font_evidence": {
     "fonts_from_regenerated_page": 187571,
     "fonts_from_saved_page_json": 33787,
     "regenerated_page_lacks_a_stored_writer_or_print_font": 65,
     "regenerated_pages_checked_against_stored_rows": 187571,
     "saved_vs_regenerated_attempt_differ": 45,
     "saved_vs_regenerated_attempt_equal": 33742,
     "saved_vs_regenerated_fonts_differ": 52,
     "saved_vs_regenerated_fonts_equal": 33735
    },
    "page_seed_check": {
     "equal": 33787
    },
    "copy_check": {
     "byte_mismatches": 0,
     "scrub_hits": 0
    },
    "attribution_documents": {
     "fw2": 109492,
     "wiki": 69951
    }
   }
  }
 },
 "generator_external_inputs": [
  {
   "input": "73 font files (TTF/OTF) in CODE/assets/fonts (PAGESYNTH_FONTS)",
   "read_by": "pagesynth/fonts.py:FontFace.__init__ (fontTools cmap, head, fvar) and FontFace.pil (Pillow ImageFont.truetype)",
   "used_for": "glyph rasters of every labelled line, print text and stamp text; the glyph gate decides which characters a font may draw",
   "ends_up_in": "image",
   "evidence": "fonts.py lines 43, 137, 210-237; r5_production*.sbatch export PAGESYNTH_FONTS and --expect-fonts 73; per-file records in records/R5/GEN/fonts_v030.tsv. font_id and licence_class also go into metadata."
  },
  {
   "input": "Sentence list <text-root>/<split>/<lang>/sentences.tsv (source id TAB sentence)",
   "read_by": "pagesynth/text.py:SentenceBank.__init__ via pagesynth/generate.py:load_banks, called from produce_r5.py:main",
   "used_for": "all running text, captions, title words, teacher comments, worksheet answers, stamp words; source ids for source_doc",
   "ends_up_in": "label",
   "evidence": "text.py lines 353-366; produce_r5.py line 253. Drawn text is also in the image; document ids are in metadata."
  },
  {
   "input": "Label vocabulary <text-root>/<split>/<lang>/label_words.json",
   "read_by": "pagesynth/vocab.py:load",
   "used_for": "figure word labels, flowchart words, table headers and cells, caption fallback, map labels when geo_labels.json is absent",
   "ends_up_in": "label",
   "evidence": "vocab.py lines 120-127; produce_r5.py lines 254-255 stop production if it is missing."
  },
  {
   "input": "Geographic labels <text-root>/<split>/<lang>/geo_labels.json",
   "read_by": "pagesynth/geo.py:load_geo via generate.load_banks",
   "used_for": "place names and geographic common nouns on map pages (labels, pointer labels, legend)",
   "ends_up_in": "label",
   "evidence": "generate.py line 195; scenes.py lines 830-836; r5_text_split.py lines 66-68 copies it into each split."
  },
  {
   "input": "Natural Earth 1:50m GeoJSON: ne_50m_admin_0_countries, ne_50m_coastline, ne_50m_rivers_lake_centerlines, ne_50m_lakes in CODE/assets/naturalearth (PAGESYNTH_NE not set in the sbatch files)",
   "read_by": "pagesynth/maps.py:load",
   "used_for": "printed map lines (borders, coast, rivers, lakes), country polygons for hatching, centroids and river points as label positions",
   "ends_up_in": "image",
   "evidence": "maps.py lines 19-20, 46-58, 76-171. Terms: assets_naturalearth/terms_of_use.html says all Natural Earth data are in the public domain and crediting is unnecessary. The mirror commit or version of the GeoJSON files is unknown."
  },
  {
   "input": "SMILES list in code plus the RDKit library",
   "read_by": "pagesynth/objects.py:molecule",
   "used_for": "2D coordinates of 10 molecules; bond strokes and atom labels",
   "ends_up_in": "image",
   "evidence": "objects.py lines 24, 170-217. Atom labels become symbol-tagged labelled lines (in page text, never in crops). No data file is read."
  },
  {
   "input": "Wikipedia dump (Hugging Face wikimedia/wikipedia, 20231101.<code>), read over HTTP before production",
   "read_by": "pagesynth/textbuild.py:build (HfFileSystem, pyarrow) via scripts/build_text.py",
   "used_for": "sentences of the corpus",
   "ends_up_in": "label",
   "evidence": "textbuild.py lines 24, 81-95. Text appears verbatim in labels and images; article ids in metadata. Terms not shipped with the generator: unknown here."
  },
  {
   "input": "FineWeb-2 (Hugging Face HuggingFaceFW/fineweb-2, data/<config>/train, first 2 parquet files), read over HTTP before production",
   "read_by": "pagesynth/textbuild.py:build",
   "used_for": "sentences of the corpus",
   "ends_up_in": "label",
   "evidence": "textbuild.py lines 97-111. Terms not shipped with the generator: unknown here."
  },
  {
   "input": "ailabykt Sakha monolingual corpus, local parquet files DATA/data/raw/ailabykt_sakha_mono/data (sources kyym, eder_saas, sakha_sire, uluus_media)",
   "read_by": "pagesynth/textbuild.py:build (Sakha only)",
   "used_for": "Sakha sentences",
   "ends_up_in": "label",
   "evidence": "textbuild.py lines 25, 113-128; build_text.sbatch line 19. Terms not shipped with the generator: unknown here."
  },
  {
   "input": "Natural Earth names (NAME_RU / NAME_TR) of countries, populated places, geography regions and lakes, read before production",
   "read_by": "scripts/build_display_lists.py",
   "used_for": "allow list of place names and map_places in geo_labels.json",
   "ends_up_in": "label",
   "evidence": "build_display_lists.py lines 62-82, 103-113; display_lists.sbatch line 16 (--ne-dir CODE/assets/naturalearth). Natural Earth's terms say its name data for more than 20 languages come from Wikidata under CC0."
  },
  {
   "input": "google/fonts GitHub repository (raw files of 30 handwriting and 12 print families with OFL.txt or LICENSE.txt), fetched 20 Nov 2026",
   "read_by": "scripts/fetch_fonts.sh then scripts/install_fonts.sh (outside the generator)",
   "used_for": "the font files of the v0.3.0 additions",
   "ends_up_in": "image",
   "evidence": "fetch_fonts.sh lines 13-31; install_fonts.sh lines 10-18; changes.txt line 6. Older fonts and the 8 signature fonts came from earlier steps whose source is not in these records."
  },
  {
   "input": "No network source and no image file is read at production time",
   "read_by": "none (search of pagesynth/*.py, produce_r5.py, generate_pages.py for open, imread, Image.open, parquet, HTTP, glob)",
   "used_for": "paper, desk, pictures, stamps, stickers, patterns and noise are procedural",
   "ends_up_in": "none",
   "evidence": "The only file reads are fonts.py (fonts), maps.py (GeoJSON), text.py, vocab.py and geo.py (text files), and fonts.font_manifest (generate_pages.py only). Network access exists only in textbuild.py."
  }
 ],
 "generator_inputs_named_in_records_but_not_read": [
  {
   "input": "Zenodo record 15479725 (DOI 10.5281/zenodo.15479725): 10 real scans of Russian squared notebooks, CC BY 4.0",
   "where_named": "pagesynth/paper.py comment (lines 20-23); generate_pages.py manifest calibration_sources (lines 108-109); probabilities.tsv row 17 and grid.json ('calibrated on real scans')",
   "what_code_shows": "Production reads no scan. Only hard-coded constants derived from the scans are used (scan_cyan grid colour about BGR (246, 243, 195), line width 2.6-3.4 px, depth 0.5-0.7). scripts/calibrate_paper.py, calibrate_patch.py and inspect_real_ink.py read scan.jpg files for measurement only and are not called by production. The generate_pages.py manifest states 'no pixel of these scans is in any page'; produce_r5.py writes no such manifest."
  },
  {
   "input": "RUKOPYS reference photos",
   "where_named": "pagesynth/paper.py docstring (lines 4-8): 'viewed, not copied'",
   "what_code_shows": "No code reads them. The margin distance, grid softness and letter size constants are the only trace."
  },
  {
   "input": "Real scans behind the scanner-noise channel weights (B, G, R std about 1.1, 1.5, 5.6)",
   "where_named": "pagesynth/geometry.py:photo_effects comment (line 298)",
   "what_code_shows": "Constants only (channel weights 0.30, 0.40, 1.0). Which scans were measured is not named (unknown)."
  },
  {
   "input": "Display-safe corpus sentences_display.tsv and label_words_display.json",
   "where_named": "pagesynth/geo.py, vocab.py, generate.load_banks; probabilities.tsv row 260 ('the pictures here use the display corpus')",
   "what_code_shows": "produce_r5.py loads filename 'sentences.tsv' (line 253), so R5 data use the full corpus. The display corpus is used only by the grid and example images (generate_pages.py --display, grid_images.sbatch)."
  },
  {
   "input": "Earlier font downloads of survey N6 (18 Nov 2026) and the font survey font_survey_n6.tsv",
   "where_named": "records/R5/GEN/changes.txt line 6, report.txt",
   "what_code_shows": "The generator reads only FONT_DIR. N6 copies were used to confirm the fetched files byte for byte."
  },
  {
   "input": "Noise or background image sets",
   "where_named": "none named in the GEN records (fixed-string search of report.txt, changes.txt, status.json, text_split.json, grid.json, probabilities.tsv, make_examples.py, build_grid.py)",
   "what_code_shows": "Desk (geometry.desk_texture), paper texture and patterns (paper.py), pictures (objects.picture) and sensor noise are procedural; no image set is read."
  },
  {
   "input": "ailabykt source 'natlib'",
   "where_named": "pagesynth/textbuild.py docstring (line 9)",
   "what_code_shows": "Excluded: only kyym, eder_saas, sakha_sire and uluus_media rows are used (SAKHA_LOCAL_SOURCES, line 25; filter line 123)."
  },
  {
   "input": "Illustration images docs/ex/p2_font_*.jpg and the v0.2.0 pilot font table",
   "where_named": "records/R5/GEN/diagnosis.json",
   "what_code_shows": "Not generator inputs; they concern the earlier pipeline page."
  }
 ],
 "font_usage": [
  {
   "element": "Main writer: notebook body lines, top date, title, standalone mixed-content lines",
   "font_pool": "handwriting fonts of the page's script under the split policy, chosen by weight plus the 35 percent sentence test",
   "personal_use_possible": true,
   "evidence": "layouts.choose_writer (lines 42-77) with include_personal=True from produce_r5.py line 125; train only, Latin languages only (personal fonts have Cyrillic weight 0); realised in uz_latn (all 8), tr (sig_respondent, sig_wedding, sig_brittany, sig_signatura), az and tk (sig_respondent, sig_wedding): realised_stats_stage1.json#hand_font_pages_train"
  },
  {
   "element": "Figure labels (symbols, word labels, flowchart words), captions, picture titles and captions, margin notes",
   "font_pool": "the page's main writer",
   "personal_use_possible": true,
   "evidence": "scenes.figure_block, add_caption, handwriting_marks call label_line with the page writer (lines 224-272, 166-178, 313-322)"
  },
  {
   "element": "Worksheet and table handwriting: answers, date field, top-up lines, table cells",
   "font_pool": "separate handwriting writer from the same pool (virtual 62 px ruling)",
   "personal_use_possible": true,
   "evidence": "scenes.scene_worksheet lines 524-529 (choose_writer with include_personal), _table lines 706-748"
  },
  {
   "element": "Map labels, pointer labels, legend words",
   "font_pool": "separate handwriting writer from the same pool",
   "personal_use_possible": true,
   "evidence": "scenes.scene_map lines 791-892"
  },
  {
   "element": "Teacher marks: grade and comment",
   "font_pool": "handwriting pool of the script, include_personal=False, policy applies (held-out fonts excluded in train)",
   "personal_use_possible": false,
   "evidence": "scenes.teacher_pass line 327"
  },
  {
   "element": "Printed worksheet title, question lines, table headers, map title (typed crops come from these)",
   "font_pool": "17 print fonts (OFL, one Apache 2.0)",
   "personal_use_possible": false,
   "evidence": "scenes.print_writer line 483 (kind print, include_personal=False)"
  },
  {
   "element": "Stamps: ring words and '№ n' (unlabelled)",
   "font_pool": "Noto Sans only",
   "personal_use_possible": false,
   "evidence": "marks.stamp line 196"
  },
  {
   "element": "Hand marks, teacher strokes, figure strokes, maps, pictures, paper",
   "font_pool": "no font (strokes or procedural drawing)",
   "personal_use_possible": false,
   "evidence": "draw.Pen, marks.py, objects.py, maps.py; maps draw no text (maps.py line 136)"
  },
  {
   "element": "Show-through ghost on every page",
   "font_pool": "mirror image of all labelled lines of the same page",
   "personal_use_possible": true,
   "evidence": "generate.make_ghost lines 38-51 (every labelled, non-image item); faint (0.03-0.16) and mirrored"
  },
  {
   "element": "Typed train crops, especially rect crops",
   "font_pool": "print font of the line; neighbouring handwriting of the T page may enter the crop",
   "personal_use_possible": true,
   "evidence": "T pages have a handwriting writer with include_personal (scene_worksheet); rect crops keep neighbour ink (crops.py lines 4-6); gate b_overlap allows up to 0.5 percent of polygon pixels from other lines. Licence_class names only the line's font."
  },
  {
   "element": "Clutter train crops",
   "font_pool": "no labelled text; possible stamp text (Noto Sans) and show-through",
   "personal_use_possible": true,
   "evidence": "crops.clutter_windows excludes only labelled line polygons; show-through can carry personal-font lines in train; licence_class is empty for clutter rows"
  },
  {
   "element": "Saved whole pages (synth_pages_train)",
   "font_pool": "all fonts of the page",
   "personal_use_possible": true,
   "evidence": "produce_r5.py lines 181-197; page licence_class personal_use_only if any personal font is on it. The count is unknown."
  },
  {
   "element": "Any element in val or test",
   "font_pool": "pools above with the 8 personal-use fonts excluded and the 4 held-out fonts up-weighted",
   "personal_use_possible": false,
   "evidence": "produce_r5.set_font_policy lines 67-69; realised val/test licence classes are ofl and apache2 only (realised_stats_stage1.json#hand_val_licence_class, #hand_test_licence_class)"
  }
 ],
 "label_rules": [
  "The label of a line is exactly the string that was drawn, character for character, in NFC. The d_nfc gate in page.add_line, produce_r5.work.meta and the r5_finalize check enforce this. [pagesynth/page.py:add_line (lines 133-134); produce_r5.py:work.meta (line 138); scripts/r5_finalize.py (lines 88-90)]",
  "Every non-space character must be in the font's good set (glyph gate) and must produce ink in its own column range. Joined fonts must lose ink when the character is removed. A page that breaks this is redrawn. [pagesynth/fonts.py:FontFace.good_chars (lines 246-287); pagesynth/page.py:add_line (lines 135-138); pagesynth/ink.py:render_line (lines 257-291), _check_each_char_inked (lines 383-392); pagesynth/generate.py:attempt_page (lines 172-184)]",
  "Uzbek Latin oʻ/gʻ (U+02BB) and the tutuq belgisi (U+02BC) are drawn as the font's own mark, else U+2018/U+2019, else the ASCII apostrophe. The label holds the drawn mark, and orig_text keeps the corpus spelling. [pagesynth/fonts.py:map_uzbek_marks (lines 350-363); pagesynth/layouts.py:_render (lines 314-315); produce_r5.py:work.meta (line 145)]",
  "Lines are wrapped pieces of corpus sentences and can span a sentence boundary. An end-of-line hyphen (probability 0.18 for words of 7+ characters) is part of the label. [pagesynth/layouts.py:draw_text_units (lines 104-105), wrap_rows (lines 109-153); records/R5/GEN/probabilities.tsv#row 254]",
  "A word wider than the row is skipped, and a last word that overflows the right edge is dropped. The label still matches the image but is then not a substring of the corpus sentence. [pagesynth/layouts.py:wrap_rows (lines 144-147), build_notebook (lines 271-277)]",
  "In Cyrillic handwriting, 8 percent of drawn sentences get one Latin abbreviation inserted. These lines are not tagged mixed. The mixed tag marks dates, mixed-unit lines, worksheet date fields and number cells. [pagesynth/layouts.py:draw_text_units (lines 92-96), build_notebook (lines 231, 294); pagesynth/scenes.py:scene_worksheet (line 554), _table (lines 737, 745-746)]",
  "A struck-through word remains in the label and its character span is stored in struck_spans. Such lines are never cut as crops but remain in saved pages and in the page text. [pagesynth/marks.py:strike_word (lines 67-80); pagesynth/crops.py:eligible_lines (lines 115-116); produce_r5.py:work (lines 187-193)]",
  "Symbol-only labels (axis letters, tick numbers, function labels such as 'y = x2' for x squared and 'y = ex' for e to the x, vertex and circuit letters, atom labels) are tagged symbol. They are never cropped but are part of saved pages and the page text. [pagesynth/objects.py:axes_plot (lines 35-63, 85); pagesynth/scenes.py:figure_block (lines 250-256); pagesynth/crops.py:eligible_lines (lines 117-118)]",
  "Crops require at least 3 non-space characters, so the margin notes '!', '?', '+', '5', '10', '2' and most grades never become crops. [pagesynth/crops.py:eligible_lines (lines 113-114); produce_r5.py:CFG min_chars (line 48); pagesynth/scenes.py:handwriting_marks (line 321), teacher_pass (line 352)]",
  "Clutter crops have the empty string as label even when a stamp's unlabelled ring text or show-through ink is visible. [produce_r5.py:work (lines 172-180); pagesynth/crops.py:clutter_windows (lines 66-102); pagesynth/marks.py:stamp (lines 193-240); pagesynth/generate.py:make_ghost (lines 30-51)]",
  "Stamp text is never a label. It is kept in the page JSON as region text with ignore_text = true. [pagesynth/marks.py:stamp (lines 234-238)]",
  "The page-level text of a saved page is all line labels joined by single spaces in reading order (top to bottom by baseline; rows within 0.55 x the font size; left to right inside a row). [produce_r5.py:work (line 193); pagesynth/page.py:finalize (lines 332-350, 380-382)]",
  "source_doc is a heuristic substring match of the line (or of orig_text) against every sentence drawn while making the page. [produce_r5.py:source_docs (lines 84-105), work (lines 124, 202-209); pagesynth/text.py:SentenceBank.draw (lines 387-393)]"
 ],
 "known_limits": {
  "generated_data": [
   "Personal-use fonts (8 Latin signature fonts) are in the train data. They are in 2.51 percent of train handwriting crops (6.27 percent of Latin-language lines), on an unknown share of saved train pages, possibly in parts of typed and clutter train crops, and in show-through. The fonts.py docstring says they are 'never shipped'. Publishing train images would ship their renders. (realised_stats_stage1.json#hand_train_licence_class; produce_r5.py line 125)",
   "Licence files are missing for 27 of the 73 registry fonts in the shipped assets_licences/ folder. The 19 open ones are playpen, pangolin, balsamiq, playwrite_at, playwrite_desas, mynerve, mansalva, cedarville, giveyouglory, patrickhand, charm, briemhand, mali, itim, p_notosans, p_ptsans, p_ptserif, p_sourcesans and p_opensans; the other 8 are the personal-use fonts. The Caveat copyright line is absent from OFL_BadScript_Caveat.txt. [pagesynth/fonts.py:REGISTRY (lines 57-135) against the 45 files of records/R5/RELEASE2/src_read/pagesynth/assets_licences/ (ls, header lines)]",
   "The training corpus is unfiltered web and Wikipedia text and contains real names; the display filter is applied only to showcase images (probabilities.tsv row 260; produce_r5.py line 253). The terms of Wikipedia, FineWeb-2 and the ailabykt corpus are not part of the generator files. [records/R5/GEN/probabilities.tsv#row 260; produce_r5.py:main (line 253); pagesynth/textbuild.py:build (lines 60-153)]",
   "Cyrillic handwriting has only 9 fonts (7 in train). The largest train share is 16.67 percent (balsamiq), and the 12 percent target is not met (realised_stats_stage1.json#hand_font_share_train_Cyrl). Latin has 56 fonts and a maximum share of 3.08 percent. [records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_font_share_train_Latn; records/R5/GEN/fonts_v030_summary.json#per_script]",
   "Partial-cover fonts are used for languages they do not fully cover: pangolin and lobster in uz_cyrl (no Ҳҳ), balsamiq and lxgw_wenkai in sah, lxgw_wenkai in ba, 14 Əə-less fonts in az, and the signature fonts sig_brittany and sig_signatura in tr. Their lines can never contain the missing letters, so letter frequency depends on the font, and the full-cover font counts in fonts_v030_summary.json understate the pools used. [records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_font_pages_train; records/R5/GEN/fonts_v030.tsv#missing_uz_cyrl,missing_ba,missing_sah,missing_az; pagesynth/layouts.py:choose_writer (lines 52-60)]",
   "The held-out (unseen) share is 37.8 percent of val and 38.7 percent of test lines against a 35 percent target, and it varies by language (az val about 48 percent of font-page entries). Held-out weights are set per script, not per language. [produce_r5.py:set_font_policy (lines 70-74); records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_val_font_group, #hand_test_font_group, #hand_font_pages_val]",
   "Gate retries redraw every choice, including capture strength. Pages that pass lean towards easier settings: realised light 36.3, medium 34.0, heavy 29.8 percent against 1/3 each. [pagesynth/generate.py:make_page (lines 60-62), attempt_page (lines 172-184); pagesynth/geometry.py:pick_strength (lines 31-32); records/R5/GEN/gen_reports/realised_stats_stage1.json#hand_train_strength]",
   "Line-level duplicates exist across splits despite the document split: 189 train rows equal a val/test line of 20+ characters, and 52 train images are near-duplicates of val/test rows. They were removed only in the frozen training copies; manifests/ still contains them (FREEZE/freeze_record.json#mix_v1.dropped_rows).",
   "The label vocabulary (train-built) and the geographic list (built from the unsplit corpus) appear in val and test pages by design. [scripts/r5_text_split.py (lines 58-68); scripts/build_display_lists.py (lines 26-30); records/R5/GEN/text_split.json#label_words_note]",
   "Map place labels are not matched to the drawn geography. Cyrillic-language maps use Russian Natural Earth spellings (NAME_RU) that also occur in the corpus. az, tk and uz_latn maps use only corpus cue-derived place tokens. [pagesynth/maps.py docstring (lines 8-10); scripts/build_display_lists.py (line 63); pagesynth/geo.py:geo_words (lines 158-182)]",
   "No stickers, fingers or photographs. Pictures, desk and paper are procedural, so their realism is limited to the code's models. Map pages carry no hand or teacher marks. [pagesynth/marks.py:sticker (lines 243-267, never called); pagesynth/objects.py:picture (lines 302-331); pagesynth/geometry.py:desk_texture (lines 240-257); pagesynth/scenes.py:handwriting_marks (lines 278-280), teacher_pass (lines 336-338)]",
   "Clutter crops labelled '' can show unlabelled stamp text and mirrored show-through. Window kind shares are not recorded in the reports. [pagesynth/crops.py:clutter_windows (lines 66-102); pagesynth/marks.py:stamp (lines 193-240); pagesynth/generate.py:make_ghost (lines 30-51); records/R5/GEN/gen_reports/realised_stats_stage1.json (no clutter keys)]",
   "Show-through is on every page, and its amount is not stored. Effects columns are page-level, so a listed stain or crease may not be visible in a given crop. [pagesynth/generate.py:make_ghost (lines 33-37); produce_r5.py:work (lines 146, 199); records/R5/GEN/status.json (per-item metadata request)]",
   "Rect crops (30 percent) keep neighbouring ink from other lines. The crop's licence_class names only the line's own font. [pagesynth/crops.py docstring (lines 4-6), crop_line (lines 40-54); produce_r5.py:work.meta (line 141)]",
   "Every image is JPEG-coded twice: once in the capture step at quality 50-95 by strength, then saved at quality 92. [pagesynth/geometry.py:photo_effects (lines 304-305); produce_r5.py:CFG jpeg_quality, page_jpeg_quality (line 47)]",
   "No crop-level QA exists. A crop whose polygon is taller than wide could come out rotated by 90 degrees (inferred, not measured). [pagesynth/crops.py:_rect_frame (lines 20-37); produce_r5.py:work (lines 164-171)]",
   "source_doc is heuristic. bank.drawn also holds sentences drawn only to test fonts, rejected candidates and sentences from failed attempts, and matching is by substring. Short lines and vocabulary words can be misattributed or 'ambiguous'. Lines with an inserted abbreviation or a dropped long word fall back to 'split' or 'none'. [produce_r5.py:source_docs (lines 84-105), work (line 124); pagesynth/text.py:SentenceBank.draw (lines 387-393); pagesynth/layouts.py:choose_writer (lines 55-58), draw_text_units (lines 90-100)]",
   "Kept rows are the lowest page indices per group (id order). Val/test clutter and handwriting crops therefore come largely from the same first pages, some of which are also saved whole (indices below 30). Extra produced rows (about 2,350 hand train rows per language) remain on disk outside the manifests. [scripts/r5_finalize.py (lines 61-74); scripts/r5_finalize.sbatch (line 24); scripts/make_chunks.py (lines 27-29); records/R5/GEN/gen_reports/counts_stage1.json#rows]",
   "Stage 2 (40,000 hand and 20,000 typed train lines per language) has no realised count in the records. The R5 training mix used stage-1 frozen copies. [records/R5/GEN/plan_stage2.json; records/R5/GEN/counts.json#realised_stage2; PROJ/docs/research_artifacts/round_2026-11-21/FREEZE/freeze_record.json#mix_v1.dropped_rows, #gen_jobs]",
   "Byte-level determinism is shown only for generate_pages.py on the laptop (8 combinations, 48 files), not for produce_r5.py or the cluster. [records/R5/GEN/determinism_v030.txt; records/R5/GEN/changes.txt#line 26; scripts/check_determinism.py (lines 29-35)]",
   "Two synthetic train crops are perceptual fingerprint near-pairs (distance 4) of KOHTD test images. Their labels differ, and the project ruled them not a stop (FREEZE/freeze_record.json#kohtd_test_near_pairs_not_a_stop)."
  ],
  "real_data_and_training": [
   "Writer-disjointness is not verifiable for any real handwriting set: KOHTD, CHD and School Notebooks have no writer ids; KOHTD is form-disjoint, School Notebooks page-disjoint, CHD only word-type-disjoint between train and validation, and HKR's recorded split is not even form-disjoint (1,566 of 1,614 filled-form instances span several parts).",
   "Two duplicate KOHTD sheets remain in the data the release models saw or were selected on: validation form 501 duplicates training form 1695 (28 of 34 crops), and V1 (the model-selection set) holds 15 crops of form 501; test form 1868 duplicates validation form 951 (8 of 10 crops). Found after training; nothing was changed; duplicates inside one split were not searched.",
   "The duplicate check uses a 64-bit perceptual fingerprint at Hamming distance 4: it misses re-scans and crops cut at another scale, and it also removes innocent short-word crops by chance (279 of 490 near pairs had different labels). In the post-generation report-only pass, 27 real training crops (CHD 14, School 13) and 3 KOHTD training crops kept near partners in synthetic or random-split validation/test sets, mostly with different labels, and were not removed.",
   "Real printed lines were never image-fingerprinted against any other set; their leak control is by document and exact line text only. Two print_real_train rows have the same text as synthetic handwriting validation/test lines and were kept.",
   "Real-print labels are PDF text layers, audited only on 50 test lines per language-script with an LLM-as-a-judge: a vision-language model compared each crop with its label (not a human); train and validation lines were never audited; the pixel-check fixes were tuned on test samples; apostrophe variants and Latin/Cyrillic look-alikes cannot be told apart by viewing; Russian or English lines can remain in any language because there is no per-line language identification.",
   "Real handwriting for training exists only for Kazakh (KOHTD) and Russian (HKR, CHD, School Notebooks, with 98 Kazakh-letter labels in HKR); the other eight target languages rely on generated handwriting, and the only real Latin-script handwriting figure is the 442-line Azerbaijani test set.",
   "Labels are not uniformly normalised across models: VLMs train on NFC, the line recognizer and its character LM on NFD. Look-alike repair touches only references at scoring (15 KOHTD test references); a Latin look-alike inside a Cyrillic training label stays in the training data as is.",
   "The line recognizer did not see the nominal mix: over-wide lines (mostly real print) were replaced by uniformly drawn items, so real print was about 4.8% instead of 6% in the measured window, and very long lines (over 2,560 px at 96 px height) were never trained on.",
   "School Notebooks crops are rectangles without a polygon mask, so parts of neighbouring words, ruling and teacher marks can appear in a crop while the label covers only the pupil word; the detector's School Notebooks line boxes are rebuilt by a project heuristic, not given by the dataset, and its best checkpoint was chosen on the same School Notebooks validation pages it is evaluated on.",
   "The HKR split comes from a project audit record of the official CSV, which was not re-read; KOHTD labels are crowd labels (two volunteers agreeing) and were not checked one by one; CHD's capture and writers are not documented; 615 of 1,544 CHD test words also occur in CHD train.",
   "Several records describe the freeze in a pre-drop state (local and published gen_report.json, check_mix_summary.json and the frozen-copy list) and the rc1 model cards misstate the 156 dropped handwriting rows as near-duplicates and the scored P2 size (2,558 instead of 2,228 crops); readers should rely on mix_v1.yaml, post/gen_report2.json, post/drop_report.json and the score files.",
   "The real data sets are not released; the release contains weights trained on them (KOHTD and HKR under CC BY-NC-ND 4.0 per the release brief), so any reuse inherits that question, which this document does not settle."
  ],
  "this_release": [
   "The generated images can be rebuilt from the seeds only up to small numeric differences (regeneration check, stage 11).",
   "Train items of the Latin languages are fewer than the frozen training split because pages with personal-use fonts were removed; the released train split is therefore not identical to what the models saw.",
   "Sakha items whose text comes from the newspaper corpus are removed; Sakha coverage in the package is lower than in training.",
   "Texts are unfiltered Wikipedia and web sentences and can contain names of real people; attribution lists every source document.",
   "The licence of the package (CC BY-SA 4.0) follows the Wikipedia text; FineWeb-2 web pages keep their owners' rights (residual risk stated in the notice).",
   "Real-data sets, real print crops and real test sets are not in the package; the models were trained on them (see stages 13-15).",
   "Texts can name real people: the sentences come unfiltered from Wikipedia and web text (D13)."
  ]
 },
 "licences_and_attribution": {
  "package_licence": "CC BY-SA 4.0 (LICENSE file; why: ShareAlike of the Wikipedia text)",
  "attribution_files": [
   "attribution/wikipedia_articles.tsv (language, wiki, page id, URL, items)",
   "attribution/fineweb2_documents.tsv (language, FineWeb-2 config, document id, items)",
   "attribution/fonts_used.tsv (font id, items whose page uses it)",
   "attribution/notices.json (notices for Wikipedia, FineWeb-2, fonts, Natural Earth, items not used)"
  ],
  "audit": "records/R5/RELEASE2/licence_audit.json (one entry per component and per font, with sources)",
  "personal_use_fonts_disclosure": {
   "decision": "D4, owner 2026-11-25: accepted for the trained models and disclosed; excluded from this data package",
   "fonts": {
    "sig_autography": {
     "handwriting_train_lines_drawn_in_it": 286,
     "train_pages_drawn_with_it": 66
    },
    "sig_breathing": {
     "handwriting_train_lines_drawn_in_it": 204,
     "train_pages_drawn_with_it": 49
    },
    "sig_brittany": {
     "handwriting_train_lines_drawn_in_it": 191,
     "train_pages_drawn_with_it": 46
    },
    "sig_motterdam": {
     "handwriting_train_lines_drawn_in_it": 276,
     "train_pages_drawn_with_it": 68
    },
    "sig_quentin": {
     "handwriting_train_lines_drawn_in_it": 245,
     "train_pages_drawn_with_it": 55
    },
    "sig_respondent": {
     "handwriting_train_lines_drawn_in_it": 639,
     "train_pages_drawn_with_it": 209
    },
    "sig_signatura": {
     "handwriting_train_lines_drawn_in_it": 102,
     "train_pages_drawn_with_it": 33
    },
    "sig_wedding": {
     "handwriting_train_lines_drawn_in_it": 1065,
     "train_pages_drawn_with_it": 265
    }
   },
   "training_lines": "3008 of 119,844 generated handwriting train lines were drawn in a personal-use font (uz_latn 1,614, az 568, tk 467, tr 359); no typed, validation or test line",
   "training_pages": "791 of 30230 generated train pages behind the training rows carry one (504 handwriting pages, 287 typed worksheet pages); 83 of the 3,999 pages that trained the rc1 detector (superseded); the released D5 detector's 3,916 generated training pages carry none",
   "weights": "No font file is stored in any weights, language model or data file of the release; the fonts were only used to render training images. Of the trained models only the line detector is released (26 Nov 2026), and its training pages carry no personal-use font.",
   "this_package": "every item whose page drew a personal-use font is excluded (4,930 items)",
   "sources": [
    "records/R5/RELEASE2/work/d4_font_facts_local.json",
    "records/R5/RELEASE2/work/d5_prep_report.json (job 55665)",
    "licence_audit.json fonts"
   ]
  }
 },
 "distribution": {
  "status": "not distributed; owner decision D9 (25 Nov 2026): Parquet shards with embedded images, public dataset repository",
  "parquet": "DATA/release/rc1_data_parquet: data/<kind>/<split>-NNNNN-of-MMMMM.parquet (one row per item; image as struct bytes + path; label columns; record_json with every field of labels/*.jsonl except seed_detail.rule; pages also carry pagexml and page_json), LICENSE, attribution/, excluded/, datasheet.json",
  "parquet_checks": {
   "total_rows": 206619,
   "rows_equal_labels": true,
   "checks": {
    "images_verified_byte_for_byte": 206619,
    "shard_reread_ok": 16
   },
   "shards": 16,
   "bytes": 2530089935
  },
  "loose_files": "DATA/release/rc1_data holds the same items as JPEG files with JSONL/TSV labels and PageXML (the source of the Parquet shards)",
  "real_print_pointers": "kept out for now (D7: conservative default, reversible); DATA/release/rc1_data_print_pointers stays on disk",
  "stage2": "not released (D10)",
  "options": "records/R5/RELEASE2/release_plan.json"
 },
 "maintenance": {
  "contact": "the issue page of the release repository (to be filled once the owner chooses where to upload)",
  "errata": "report through the publication's issue tracker (to be chosen)",
  "versioning": "rc1_data is the first release candidate; any rebuild gets a new folder name",
  "licensor": "Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova",
  "copyright": "Copyright 2026 Anuar Suleimenov, Zhalgasbek Bolatov, Aidana Baglanova, Anel Kadirbekova",
  "citation": "Suleimenov, A., Bolatov, Z., Baglanova, A., Kadirbekova, A., Nguyen, A. T. (2026). A Handwriting Recognition Model for Turkic Languages in Latin and Cyrillic Script. Project report, Nazarbayev University."
 },
 "real_datasets_where_to_obtain": {
  "note": "every real data set named in this datasheet, with where to obtain it. None of the real image data sets is included in this package; the owner's decision of 26 Nov 2026 is to release only what can be distributed and to cite and reference the others",
  "decision": "owner, 26 Nov 2026 about 06:30 UTC, quoted verbatim: \"We still do not have permission, so we are releasing only what we can distribute. For others just to cite and reference where to download.\"; recorded reading: this settles D1 and D2, the three reader packages (PaddleOCR-VL-1.6, Qwen3-VL-2B, PP-OCRv6-medium with its character language model) are not released; the release is the generated data (CC BY-SA 4.0), the retrained detector with the page-pipeline code (AGPL-3.0) and the project's code",
  "sources_of_the_urls": "the paper's bibliography records/PAPER2/tex/refs.bib; KOHTD, HKR and School Notebooks RU as given with the owner's decision of 26 Nov 2026; entries without a refs.bib URL give the identifier recorded in this datasheet and say so",
  "datasets": [
   {
    "name": "KOHTD (Kazakh Offline Handwritten Text Dataset)",
    "licence_as_recorded": "CC BY-NC-ND 4.0",
    "where_to_obtain": "https://github.com/abdoelsayed2016/KOHTD",
    "access": "through the authors' application form (named group, academic research only)",
    "citation": "Toiganbayeva et al. (2022), KOHTD: Kazakh offline handwritten text dataset, Signal Processing: Image Communication 108, 116827, doi 10.1016/j.image.2022.116827 (refs.bib key toiganbayeva2022kohtd)",
    "role_in_this_project": "trained, validated and tested the project's readers (not released)",
    "included_in_this_release": false
   },
   {
    "name": "HKR (Handwritten Kazakh and Russian)",
    "licence_as_recorded": "CC BY-NC-ND 4.0",
    "where_to_obtain": "https://github.com/abdoelsayed2016/HKR_Dataset",
    "access": "through the authors' application form",
    "citation": "Nurseitov et al. (2021), Handwritten Kazakh and Russian (HKR) database for text recognition, Multimedia Tools and Applications 80, 33075-33097, doi 10.1007/s11042-021-11399-6 (refs.bib key nurseitov2021hkr)",
    "project_copy": "the project's copy is the third-party Kaggle upload scispecai/hkr-dat (licence 'Unknown' there), not the authors' archive",
    "role_in_this_project": "trained the project's readers (not released); its test parts descriptive only",
    "included_in_this_release": false
   },
   {
    "name": "Cyrillic Handwriting Dataset (CHD)",
    "licence_as_recorded": "CC0",
    "where_to_obtain": "https://www.kaggle.com/datasets/constantinwerner/cyrillic-handwriting-dataset",
    "access": "Kaggle dataset",
    "citation": "Verner (2021), Cyrillic Handwriting Dataset, Kaggle (refs.bib key verner2021cyrillichw)",
    "role_in_this_project": "trained the project's readers (not released); test descriptive only",
    "included_in_this_release": false
   },
   {
    "name": "School Notebooks RU",
    "licence_as_recorded": "MIT",
    "where_to_obtain": "https://huggingface.co/datasets/ai-forever/school_notebooks_RU",
    "access": "public Hugging Face dataset",
    "citation": "ai-forever (2022), School Notebooks RU, Hugging Face dataset (refs.bib key aiforever2022schoolnotebooks)",
    "role_in_this_project": "word crops trained the project's readers (not released); whole pages trained and validated the released line detector",
    "included_in_this_release": false
   },
   {
    "name": "Azerbaijani Handwritten OCR Benchmark (LocalDoc)",
    "licence_as_recorded": "CC BY 4.0",
    "where_to_obtain": "https://huggingface.co/datasets/LocalDoc/azerbaijani-htr-benchmark",
    "access": "public Hugging Face dataset",
    "citation": "LocalDoc (2026), Azerbaijani Handwritten OCR Benchmark, Hugging Face dataset (refs.bib key localdoc2026azhtr)",
    "role_in_this_project": "locked test set only",
    "included_in_this_release": false
   },
   {
    "name": "RUKOPYS (Ukrainian handwritten text)",
    "licence_as_recorded": "CC BY 4.0 repository; images shared under academic data-sharing agreements",
    "where_to_obtain": "https://huggingface.co/datasets/UkrainianCatholicUniversity/rukopys",
    "access": "Hugging Face dataset",
    "citation": "Ukrainian Catholic University (2026), RUKOPYS: Ukrainian Handwritten Text Recognition Dataset, Hugging Face dataset (refs.bib key ucu2026rukopys)",
    "role_in_this_project": "locked test set only (test split)",
    "included_in_this_release": false
   },
   {
    "name": "TurkishOCR-Bench",
    "licence_as_recorded": "mixed per page; the 50 handwritten pages state none",
    "where_to_obtain": "https://huggingface.co/datasets/moganai/TurkishOCR-Bench",
    "access": "Hugging Face dataset",
    "citation": "moganai (2026), TurkishOCR-Bench, Hugging Face dataset (refs.bib key moganai2026turkishocrbench)",
    "role_in_this_project": "listed, not used (stage 15)",
    "included_in_this_release": false
   },
   {
    "name": "FinePDFs (addresses of born-digital PDFs; the PDFs were fetched from their original sites)",
    "licence_as_recorded": "ODC-By 1.0 for the compilation; each PDF keeps its owner's rights",
    "where_to_obtain": "https://huggingface.co/datasets/HuggingFaceFW/finepdfs",
    "access": "public Hugging Face dataset",
    "citation": "Kydlicek, Penedo and von Werra (2025), FinePDFs, Hugging Face dataset (refs.bib key huggingfacefw2025finepdfs)",
    "role_in_this_project": "addresses of born-digital PDFs for the real print lines (stage 14; crops and text not released)",
    "included_in_this_release": false
   },
   {
    "name": "MORE (paragraph part)",
    "licence_as_recorded": "not recorded in the datasheet",
    "where_to_obtain": "Hugging Face repository zimoqingfeng/MORE (identifier as recorded in the datasheet, stage 14); not in refs.bib, URL not given",
    "access": "fetched with snapshot_download, no pinned revision",
    "citation": "not in refs.bib",
    "role_in_this_project": "more_real_print locked test set, not scored (stage 14)",
    "included_in_this_release": false
   },
   {
    "name": "Wikipedia (dump 20231101 of the kk, ky, uz, tt, ba, sah, tr, az and tk editions)",
    "licence_as_recorded": "CC BY-SA",
    "where_to_obtain": "https://huggingface.co/datasets/wikimedia/wikipedia",
    "access": "public Hugging Face dataset (configs 20231101.<wiki code>)",
    "citation": "Wikimedia Foundation (2023), Wikipedia, Hugging Face dataset wikimedia/wikipedia, snapshot 20231101 (refs.bib key wikimedia2023wikipediahf)",
    "role_in_this_project": "sentences of the generated data (attribution/wikipedia_articles.tsv)",
    "included_in_this_release": "text or map content drawn into the generated images, with attribution files; the source data set itself is not included"
   },
   {
    "name": "FineWeb-2",
    "licence_as_recorded": "ODC-By 1.0",
    "where_to_obtain": "https://huggingface.co/datasets/HuggingFaceFW/fineweb-2",
    "access": "public Hugging Face dataset",
    "citation": "HuggingFaceFW (2024), FineWeb-2, doi 10.57967/hf/3744 (refs.bib key huggingfacefw2024fineweb2data); Penedo et al. (2025), arXiv 2506.20920 (refs.bib key penedo2025fineweb2)",
    "role_in_this_project": "sentences of the generated data (attribution/fineweb2_documents.tsv)",
    "included_in_this_release": "text or map content drawn into the generated images, with attribution files; the source data set itself is not included"
   },
   {
    "name": "Sakha monolingual corpus (newspaper sources kyym, eder_saas, sakha_sire, uluus_media)",
    "licence_as_recorded": "CC BY 4.0 on the corpus card; the newspapers' own terms ask for a hyperlink to the source (Ulus Media: prior written consent)",
    "where_to_obtain": "Hugging Face dataset ailabykt/sakha-corpus-mono (gated; identifier as recorded in the datasheet); not in refs.bib, URL not given",
    "access": "gated Hugging Face dataset",
    "citation": "not in refs.bib",
    "role_in_this_project": "Sakha sentences of the generated training data; every item with this text is excluded from this package (D6)",
    "included_in_this_release": false
   },
   {
    "name": "Natural Earth 1:50m vector data (countries, coastline, rivers and lake centerlines, lakes)",
    "licence_as_recorded": "public domain",
    "where_to_obtain": "Natural Earth; terms page https://www.naturalearthdata.com/about/terms-of-use/ (as recorded in the datasheet); not in refs.bib",
    "access": "public download",
    "citation": "not in refs.bib",
    "role_in_this_project": "map pages of the generated data",
    "included_in_this_release": "text or map content drawn into the generated images, with attribution files; the source data set itself is not included"
   },
   {
    "name": "Zenodo record 15479725: 10 scans of Russian squared notebooks",
    "licence_as_recorded": "CC BY 4.0",
    "where_to_obtain": "DOI 10.5281/zenodo.15479725 (as recorded in the datasheet); not in refs.bib",
    "access": "Zenodo record",
    "citation": "not in refs.bib",
    "role_in_this_project": "paper constants measured on its scans; no pixel of them is in any image (generator_inputs_named_in_records_but_not_read)",
    "included_in_this_release": false
   },
   {
    "name": "NAF (forms dataset of 'Deep Visual Template-Free Form Parsing')",
    "licence_as_recorded": "not recorded",
    "where_to_obtain": "paper https://arxiv.org/abs/1909.02576 (refs.bib key davis2019naf); no dataset URL in refs.bib",
    "access": "not used",
    "citation": "Davis et al. (2019), arXiv 1909.02576 (refs.bib key davis2019naf)",
    "role_in_this_project": "named in older project records as clutter backgrounds; not read by the generator",
    "included_in_this_release": false
   },
   {
    "name": "DocLayNet",
    "licence_as_recorded": "not recorded",
    "where_to_obtain": "no URL in refs.bib (paper doi 10.1145/3534678.3539043, refs.bib key pfitzmann2022doclaynet)",
    "access": "not used",
    "citation": "Pfitzmann et al. (2022), KDD 2022, doi 10.1145/3534678.3539043 (refs.bib key pfitzmann2022doclaynet)",
    "role_in_this_project": "named in older project records as clutter backgrounds; not read by the generator",
    "included_in_this_release": false
   }
  ]
 }
}