Embed Style Map
-
Hi Mike,
First I want to thank you for the plugin. I have successfully added to the style map in the source code, but I realize that’s not a good way to fly.
I tried to use your embed tool with a docx from Mac Word 2016. I feed it a “normal” size word document, and it didn’t work, so I tried with a very small document and just one style and that didn’t work either. For both cases it sent me to a page with an empty body tag.
I’m wondering, is the step of embedding the style map via your online tool intended to be used every time we need to upload a docx, or is it to provide a document that either serves as the starting document for every new docx, or perhaps to provide an example of how we can do it manually?
Regarding the last option — I gather the map is stored in a note in the document and perhaps it can be edited in. Would this be possible?
BTW, when I found your plugin, I was working to develop a workflow and some code to support it around using Calibre as a server for docx to html conversions. I had the same mapping issue there, but I figured out a way to make it work by placing some clues in the document and doing post processing to modify the html.
With your plugin, I’m still going to need to do some post-processing, but it’s going to make this much much easier, so thank you again.
One more thing – I tried to do a map like this, which would be handy, but it didn’t work: “r[style-name=’StandOut’] => span class=’StandOut'”.
The following map does work, sort of: “r[style-name=’-StandOut’] => StandOut. It creates a tag of “StandOut” that I can parse and convert to “<span class=”StandOut”>. The problem with that post-parsing approach is that the preview, a feature I love, is not so true.
- The topic ‘Embed Style Map’ is closed to new replies.