I'm working on a scheduling document that displays events for each month in a linear fashion as shown. The events are defined in a Yaml file and could potentially overlap, in which case they should "simply" go to the line below. My first attempt just increments each event on its own line, but that's needlessly sparse as many events are on different time periods and can perfectly fit on the same line.
I'm not sure how to keep track or which cells are empty – tables simply seem to produce an error when adding content to a cell already taken, but I don't know if there's a API to probe for it?
Failing that, my next idea would be to implement a "shadow table" where I keep a binary matrix of used cells and check against that, but I'm not too sure how to implement this (easily) in typst, as there's no 2D array/matrix type. I'd have to go with lists of arrays I guess. Would I be reinventing the wheel?