I have the following HTML:
<html><body><p>n<sup>th</sup></p></body></html>
I am using the command:
$ libreoffice --convert-to docx:"MS Word 2007 XML" test.html
To convert that HTML into a DOCX file. However I notice that the resulting DOCX file does not actually contain the <sup>
tag. It looks like it is using position and size to replicate the <w:vertAlign>
tag:
<w:position w:val="8"/><w:sz w:val="19"/>
What I would need to know is how to make libreoffice put in the <w:vertAlign>
tag instead of using position and size.
Additonal Info:
I had a similar problem with bold and italics (<strong><em>
) but was able to get the conversion to work correctly if I converted the strong
and em
tags to b
and i
tags respectively.