How do I get clean files from Apple Pages?
I am struggling to produce clean html and css from Apple Pages.
My documents are (to me) very simple and structured. Essentially novel-like texts, 'correctly' formatted. Nothing fancy. I am trying to end up with ePub files with clean HTML and stylesheets. My only misbehaviour is that I explicitly identify first paragraphs. I want only my named paragraph and character styles in the output.
Exporting directly to ePub (from Pages or LibreOffice) ends up messy. Exporting to Word (docx) and then using Calibre also ends up with very messy files.
I just want
<h>
<p class="SameNameAsWordProcessorParagraphStyle">
<span class="WPCharacterStyle>.
I don't want a dozen .blocks or .calibres.
And I would prefer the generated stylesheets to not have formatting information—just a list of the named or used paragraph and character/span styles.
It is possible (even likely) I am using the wrong tools for this.
|