1) The new version of the embedder generates word documents which are opened by word without any complaints. Thumbs up!
Templates do not work — documents created on base of the template do not contain the stylemap. But I am okay with creating an empty word document with the stylemap embedded and copying this to create new posts which seems to work fine.
Haven’t thought of the multi-user implications. I think a global stylemap which could be overriden by an embedded stylemap would be enough, but I can live well with the current approach.
2) I want to merge multiple following quote
paragraphs in word to a single blockquote
with multiple embedded p
s.
To achieve this I adjusted the mapping to p[style-name='Quote'] => blockquote > p
and created a word document which contains just four paragraphs:
- normal
- quote
- quote
- normal
Importing this document results in two seperate blockquote
elements each containing a p
element. You can download the minimalistic document here.
3) Or what about a :raw
postfix (similar to the :fresh
postfix) that could tell Mammoth to take the original text without any escaping? This way it would even be possible to include some raw HTML.
4) The suggestion from 3) might solve this too.
5) Just a question: Is there currenlty the possibility to omit
a special paragraph type completely while importing? Background: I like to include titles in my word documents at the beginning, but they map to the post’s title and do not appear in the content. Definitely not essential for surviving.
===
Please don’t get the points above wrong: I love the plug-in as it is and it is really a huge time saver. All the requests above point into one direction: I would prefer to maintain the full article including shortcodes and the like within word. Without the possibility to include shortcodes/HTML import becomes a one-shot solution for just the first import and every change afterwards needs to be done in the WordPress editor which — unfortunately — is quite error prone due to it’s strange newline and paragraph handling.
Thanks a lot for all your efforts…