View Single Post
Old 10-06-2018, 07:39 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,095
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by XRaySpeX View Post
Thanks, but I didn't follow much of that. I a newbie in this. That code might be ugly but it's what's in the file. It's a given.

The Calibre editor works only on EPUB & AWZ3 files only. Are you suggesting I 1st convert my AWZ file to those & then search & replace the heading lines from 1 code to another?

Is there no way to convert my file directly & combine the 2 heading lines into 1 in a ToC or even to have them as a 2 level ToC?
Have you tried opening the AZW file with the editor? (I have none, so I don't know if it works)

AFAIK there is no way to convert-combine.
The only things obvious I saw that makes that code a chapter title is the word Chapter and a font-size tag

So, I would convert to AZW3 and then work on it.

BTW here is a snippet of code I use to search for Roman numeral chapter numbers ( stand alone. you will need to add pieces to match your specific code)
Code:
<p class="\w">([CLXVI]{1,7})</p>
theducks is offline   Reply With Quote