Dear readers, a question!
rst2rst was going along just fine, but I have run into the real problem: TABLES.
To refresh your memeory (if you know) or let you know anyway, RST is an ascii markup language. And it supports tables. Like this example:
+----------+----------------------+ | | | +----------+------------+---------+ | | | | +----------+------------+ + | | | +-----------------------+---------+
The parser gives me a tree structure:
row (entry, entry with morecols=1) row (entry,entry,entry with morerows=1) row (entry with morecols=1)
Now, each cell has a minimum size set by its contents.
For example, a cell containing "Hello" has a minimum size of 5x1 (wxh).
It is a good idea to surround the contents with a blank row/column, so make that 7x3. I can figure this out from the contents.
And here's the trick question... anyone knows an algorithm to do this that is not incredibly difficult? Or, if it is incredibly difficult, care to help me? ;-)