Hello, everyone,
I really appreciate your replies. Sorry for not answering for quite a while.
Now, let me give you some details I've found recently.
1. Calibre does an excellent job for the
epub -> docs
conversion for the epub version of Whitman's "Leaves of Grass," as found
here, course in the public domain.
And this is important for Whitman is using, of course, a wide variety of stanzas. The important result was that the
stanzas were separated via extra blank lines.
The options I used in Calibre were simple:
- look & feel: layout: insert blank line between paras
- no heuristics
This is the epub code for two stanzas at the beginning of a poem:
---
<h2 id="pgepubid00008">Eidolons</h2>
<div xml:space="preserve" class="pgmonospaced">****** I met a seer,<br/>* Passing the hues and objects of the world,<br/>* The fields of art and learning, pleasure, sense,<br/>****** To glean eidolons.<br/><br/>****** Put in thy chants said he,<br/>* No more the puzzling hour nor day, nor segments, parts, put in,<br/>* Put first before the rest as light for all and entrance-song of all,<br/>****** That of eidolons.<br/>
---
The fact that <br/> separators were used in the source seems to have been critical in the success of the calibre conversion to docs (please see further).
2. Calibre failed for me in terms of stanzas separation for the
epub -> docs
conversion for the epub code containing other separators such as:
---
<div class="page_top_padding" id="div3">
<p class="poetry" id="p1">Text of first verse of the stanza</p>
<p class="poetry" id="p2">Text of 2nd verse of the stanza< /p>
<p class="poetry" id="p3">Text of last verse of the stanza</p>
</div>
---
This was epub code generated by Calibre in a previous
azw3 -> epub conversion
in cases where a direct
azw3 -> docs conversion
was losing stanza separation.
I tried many options, with and without heuristics. Any suggestions for options?
The
stanza separation was lost.
I tried many options.
3. Another case in which Calibre seems to do a
good job in terms of stanzas separation for both of the conversions
azw3 -> docs
azw3 -> epub
is when the epub code looks like this:
---
<p class="vsb"> 1st verse in the stanza </p>
<p class="v"> next verse in the stanza </p>
<p class="v"> next verse in the stanza </p>
<p class="vsb">1st verse in the stanza</p>
<p class="vsb">1st verse in the stanza</p>
<p class="v"> next verse in the stanza </p>
<p class="v"> next verse in the stanza </p>
---
I guess class="vsb" forces a new stanza.
I'm not able to read any azw3 code, sorry.