View Single Post
Old 01-30-2023, 01:04 AM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 781
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Sage
Need Help w/ Reformatting Chapter Headings

I'd appreciate any help in how to go about reformatting the chapter headings in this book. It's Glen Cook's "A Cruel Wind":

https://www.amazon.com/gp/product/B0...w_myk_ro_title

This is a fresh download of the AZW3 from my Amazon library. What I'm showing here is from my Calibre converted epub, but I've checked the source AZW3 and KindleUnpack versions and they look pretty much the same. Here's an example of what all the chapter headers look like:
Code:
<p class="calibre7"><br class="calibre1" id="filepos21832"/>
</p>

  <p class="whitespace"></p>

  <p class="calibre7"><span class="calibre18">O</span></p>

  <p class="calibre7"><span class="calibre19">NE:</span></p>

  <p class="calibre7"><span class="calibre18">T</span></p>

  <p class="calibre7"><span class="calibre19">HE</span></p>

  <p class="calibre7"><span class="calibre18">Y</span></p>

  <p class="calibre7"><span class="calibre19">EARS 583-590 AFE</span></p>

  <p class="whitespace"></p>

  <p class="calibre7"><span class="calibre18">H</span></p>

  <p class="calibre7"><span class="calibre24">E</span></p>

  <p class="calibre7"><span class="calibre18">I</span></p>

  <p class="calibre7"><span class="calibre24">S</span></p>

  <p class="calibre7"><span class="calibre18">E</span></p>

  <p class="calibre7"><span class="calibre24">NTERED IN THE</span></p>

  <p class="calibre7"><span class="calibre18">L</span></p>

  <p class="calibre7"><span class="calibre24">ISTS OF THE</span></p>

  <p class="calibre7"><span class="calibre18">W</span></p>

  <p class="calibre7"><span class="calibre24">ORLD</span></p>

  <p class="calibre7"><br class="calibre1"/>
</p>
I'm at a loss for how to convert that to something readable. The spans basically work out to be bold tags and the calibre7 class is nothing but a standard paragraph with top/bottom margins of 1em. The problem is even if I remove those, I'm left with all those hard returns and spaces. I can also get rid of the hard returns. But I can't come up with a way or removing the spaces reasonably across all the chapter heading in the book.

Last edited by enuddleyarbl; 01-30-2023 at 01:08 AM.
enuddleyarbl is offline   Reply With Quote