Quote:
Originally Posted by pittendrigh
Is it possible to have Sigil output NOT include html or head elements?
Why? I have software that displays an unzipped (on the server) epub3 (not epub2, not yet anyway). I use it behind a password barrier for teaching users how to build a boat.
To make this work i use PHP XPath functions to parse the various parts of an unzipped epub3. It works. I've been using it for half a year now. Long how-to-do-it instructions in epub format are good stuff for me. But I only want this output for use on my website.
However, on a per-XML-page basis I use PHP's preg_replace function to strip off the HTML and HEAD elements so the output can be embedded inside my surrounding Content Management System HTML output.
I could continue using that way. I could use a bash/sed or python script to remove those elements from the file output AFTER unzipping the epub3.
Or better yet, if it was possible, I'd like to click Save on my Sigil editor, in a way that saves the various individual pages without HTML and Head. Is that possible? With Sigil? I've read various faqs and browsed the Sigil user guide and can't find it.
|
My quick reply would be no. Sigil is designed to output valid epub2/epub3 and what you are asking for would not be considered valid.
You could try asking in the Sigil forum but I suspect the answer there would still be no.