I used the sample ConvertOutHtml for converting a .docx file to html (at this point thanks for the great work, the conversion is pretty accurate).
However I noticed, that text in superscript or subscript is not converted. Maybe this is a bug or did I miss something here? Are there any other ways to get superscript/subscript shown correctly in the output html?
When digging deeper I found out, that org.docx4j.model.properties.run.VerticalAlignment uses
- Code: Select all
vertical-align: top
vertical-align: bottom
to represent superscript/subscript. As far as I am concerned, this should be
- Code: Select all
vertical-align: super
vertical-align: sub
When replacing these accordingly in the output html file, the text is shown correctly, so maybe this is the place to fix it?
Thanks for your help!