npillmayer / gotype

some experiments on type in frames, still early draft
Other
5 stars 1 forks source link

Implement valign knot-type for floats #19

Closed npillmayer closed 3 years ago

npillmayer commented 4 years ago

valign knots are processed during line-breaking, as this is the point in time when line-count information is available first. We should modify type ParShape by adding a method

 processVAlign(...) linebreak.ParShape

which is called during speculative line-breaking in every feasible alternative path, whenever a valign is found in the input khipu. Returned ParShapes are assigned to FBs per linecount, but shared between FB-alternatives for the same linecount (as the valign is on the same line for them). The returned ParShape is then able to influence line-lengths for the lines starting at linecount+1.

npillmayer commented 3 years ago

transferred to tyse