adobe / da-live

Dark Alley is a research project
https://da.live
Apache License 2.0
7 stars 11 forks source link

Table parsing improvements #98

Closed auniverseaway closed 4 months ago

auniverseaway commented 4 months ago

DA's table parsing isn't accurate for medium complexity tables...

Example: https://da.live/edit#/da-sites/bacom/fragments/why-adobe/contact-footer/lets-talk-about Solution: https://codepen.io/auniverseaway/pen/OJGzbVB

Not sure how we can infer these more complex layouts with only divs. Here's my stab at this:

Row with the most (3) children: Each child gets a colspan of 2 - which totals to 6. Row with next most (2) children that need to split: Each child gets a colspan of 3 - which totals to 6. Row with single children: Each child (the one) gets a colspan of 6 - which totals to 6.

I really don't see how complex tables can be bi-directional just by looking at divs alone... which is a bit troubling.