|
|
|
@ -117,9 +117,9 @@
|
|
|
|
|
(define/typed (columns-mapper page-in)
|
|
|
|
|
(PageQuad . -> . PageQuad)
|
|
|
|
|
(apply page (quad-attrs page-in)
|
|
|
|
|
(for/list : (Listof Quad) ([col (in-list (quad-list page-in))])
|
|
|
|
|
(map add-vert-positions (for/list : (Listof ColumnQuad) ([col (in-list (quad-list page-in))])
|
|
|
|
|
(assert col ColumnQuad?)
|
|
|
|
|
(apply column (quad-attrs col) (map (λ([ln : Quad]) (assert ln LineQuad?) (compute-line-height (add-horiz-positions (fill ln)))) (quad-list col))))))
|
|
|
|
|
(apply column (quad-attrs col) (map (λ([ln : Quad]) (assert ln LineQuad?) (compute-line-height (add-horiz-positions (fill ln)))) (quad-list col)))))))
|
|
|
|
|
(define mapped-pages (map columns-mapper (number-pages ps)))
|
|
|
|
|
(define doc (quads->doc mapped-pages))
|
|
|
|
|
doc)
|
|
|
|
|