Looking at the code, org.docx4j.model.properties.run.VerticalAlignment, the reason it doesn't work is that a value of "top" is supported, but not "super". Assuming super is a legal value in CSS land (I haven't checked), then the required change is:
Using java Syntax Highlighting
@@
-59,10
+59,13 @@
public class VerticalAlignment
extends AbstractRunProperty
{
CTVerticalAlignRun vAlign
= Context.
getWmlObjectFactory().
createCTVerticalAlignRun();
if (value.
getCssText().
toLowerCase().
equals("top")) {
vAlign.
setVal(STVerticalAlignRun.
SUPERSCRIPT);
this.
setObject( vAlign
);
+ } else if (value.
getCssText().
toLowerCase().
equals("super")) {
+ vAlign.
setVal(STVerticalAlignRun.
SUPERSCRIPT);
+ this.
setObject( vAlign
);
} else if (value.
getCssText().
toLowerCase().
equals("bottom")) {
vAlign.
setVal(STVerticalAlignRun.
SUBSCRIPT);
this.
setObject( vAlign
);
} else {
log.
warn("What to do with value: " + value.
getCssText());
Parsed in 0.016 seconds, using
GeSHi 1.0.8.4
mothergoose wrote:is there any sort of hook or filter that can be used to sneak into the conversion process and add additional elements to the docx while parsing the XHTML document?
No, there isn't at the moment. We have that sort of tag handler thing for output, and I can see the use for XHTML Import, especially for custom (ie foreign) element names.