Damian C. wrote:
Thanks very much for your comprehensive reply - it was very helpful.
As this is another one of those customer documents where they have
modified the styles for their own purpose I'm not going to customise our
conversion just for them - but it's great to know that we could do this
if we wanted to.
Am I right in thinking that if users want paragraph level styles to be
reflected in the semantic xhtml then they should stick to the built-in
styles such as Heading 1?
No, not at all. Simply your customers must carefully design their own
custom styles.
XMLmind Word To XML does not make much differences between stock styles
and custom styles. What really counts are the *properties* of a given
style, whether stock or custom.
For example, your customers have used:
--
.p-BodyTextBold {
font-family: Arial;
font-weight: bold;
...
}
.p-BodyTextBoldItalics {
font-family: Arial;
font-style: italic;
font-weight: bold;
...
}
---
to style what are basically sub-headings and sub-sub-headings in your
"Project Cicero foo.docx" file.
It would have sufficed for your customers to add outline levels[*] to
the two above styles for w2x to work fine out of the box. w2x would have
generated nested topics or sections[**] having titles.
---
[*] Note that w2x can automatically add outline levels to custom styles
if needed too.
- CSS property "-ms-outlineLvl: 1;" for sub-headings.
- CSS property "-ms-outlineLvl: 2;" for sub-sub-headings.
See command set-rule() in "The XED scripting language",
https://www.xmlmind.com/w2x/_distrib/doc/xedscript/index.html
---
[**] Requires passing w2x option "-p transform.single-topic yes".
--
XMLmind Word To XML Support List
[email protected]
https://www.xmlmind.com/mailman/listinfo/w2x-support