Header promotion: remove empty headers
I've posted 5 book transformations on owncloud here: https://owncloud.coko.foundation/index.php/s/c9e88VI5TPOiSAf
These use the latest XSweet + Typescript, focused on header promotion. It contains an analysis spreadsheet (you've seen it before) that has 4 tabs with the header promotion analysis from a few chapters of different books. There are some idiosyncrasies specific to each of the books that are worth investigating, and I've called some of them out in the general notes at the top of each tab.
The first biggest across-the-board improvement seems like it would be to remove all the empty header tags as the last header promotion step. Empty heading tags mess up the navigable structure when it's imported into Editoria.
There are some books where some headers are surrounded on both sides by empty header tags, but the header itself isn't labeled. Once the empty headers are getting stripped out, maybe we can look at that next. Perhaps there's forensic value in removing all the empty headers as the last step of header promotion but keeping an intermediary file so we can see these kinds of near misses. What do you think?