Monday, October 27, 2008
Final tweaks?
The block-slicing algorithm has had its final refinement for the time being. Rather than choosing an available cut at random, we assign a score to all available cuts based on the width of the channels between text blocks. The cut with the highest score (ie widest gap) is used.
Also added debug output so we can see images of the pages with the text block boundaries drawn on top. This revealed that all our blocks were padded to the right, where OS X supplies us with a Space, Newline sequence to mark the end of each line. We're now ignoring those when sizing the text blocks, which gives the cut-scoring algorithm better information to work with.
Text re-calculated and re-uploaded.
T
Labels: text