HTMLevator issueshttps://gitlab.coko.foundation/XSweet/HTMLevator/-/issues2018-07-26T22:00:41Zhttps://gitlab.coko.foundation/XSweet/HTMLevator/-/issues/16Test heading promotion method chooser2018-07-26T22:00:41ZAlex ThegTest heading promotion method chooserThe criteria used for determining the heading promotion method is as follows:
* If the extracted HTML contains 2 or more `xsweet-outline-level` properties, then use the outline-level heading promotion
* Else, use the property-based clas...The criteria used for determining the heading promotion method is as follows:
* If the extracted HTML contains 2 or more `xsweet-outline-level` properties, then use the outline-level heading promotion
* Else, use the property-based classic method
These are OK for now, but could benefit from further refinement.
This is carried forward from the previous issue: https://gitlab.coko.foundation/XSweet/XSweet/issues/123https://gitlab.coko.foundation/XSweet/HTMLevator/-/issues/14How header promotion uses styles, and the list of styles we pay attention to2018-05-02T15:44:13ZAlex ThegHow header promotion uses styles, and the list of styles we pay attention toBakker ch 2: [b_02_ch_1_Bakker.docx](/uploads/fbc7cf504b35339d8505347cadeeb240/b_02_ch_1_Bakker.docx)
Conversion outputs: [output_b02_ch_1_Bakker.zip](/uploads/467e11494ac6f4af558b39b442cc4b1b/output_b02_ch_1_Bakker.zip)
See issue XS...Bakker ch 2: [b_02_ch_1_Bakker.docx](/uploads/fbc7cf504b35339d8505347cadeeb240/b_02_ch_1_Bakker.docx)
Conversion outputs: [output_b02_ch_1_Bakker.zip](/uploads/467e11494ac6f4af558b39b442cc4b1b/output_b02_ch_1_Bakker.zip)
See issue XSweet#56, this is the second improvement this group of headers suggests:
When we find and promote Word styles we care about, like "section heading", we could also look for other similarly formatted text that's NOT labeled with a Word style but should have been. In this instance, the header promotion script could:
* see the "section heading" styles and promotes the marked headings
* note how the section headings were formatted (here it's underlined 12pt helvetica font)
* look for other potential headings formatted the same way, and promotes them as appropriate (this would catch the other 4)
Would this be easy to do?