Quote:
Originally Posted by Cactus Chef
Thanks! Scrambled version attached here.
|
You can use Sigil to split your chapters:
Press
Ctrl+F, then make sure you are in
Mode: "Regex".
Search: (<p class="calibre1" style="text-align: justify;"><a id="\d+"></a><b class="calibre2">)
Replace: <hr class="sigil_split_marker" />\1
Then
Edit > Split at Markers (F6).
This should split all 27 chapters into their individual HTML files.
Note: Make sure to turn off Regex mode. If you don't know what you're doing, you can easily break/delete code out of your book.
* * *
After splitting, you can do some minor cleaning.
Biggest things I would recommend:
1. Rename the HTML files to something that actually makes sense:
Instead of:
- index_split_003.html
you want human-readable filenames:
- Part01.xhtml
- Chapter01.xhtml
- Chapter02.xhtml
Note: This also helps debug if things are busted (like your TOC issue). You can actually tell where the heck the links are pointing instead of all these cryptic names.
2. Change Headings to Use Proper <h1>-><h6>
Instead of this current crud:
Code:
<p class="calibre1" style="text-align: justify;"><a id="287"></a><b class="calibre2">Chapter 1 [...]</p>
you want those headings to be:
Code:
<h1>Part 1</h1>
<h2>Chapter 1</h2>
<h2>Chapter 2</h2>
[...]
<h1>Part 2</h1>
<h2>Chapter 12</h2>
You can then use Sigil's
Tools > Table Of Contents > Generate Table of Contents and
Tools > Table Of Contents > Create HTML Table of Contents to regenerate a correct TOC for you.
Quote:
Originally Posted by Cactus Chef
I purchased an EPUB version of A Canticle for Leibowitz from Kobo some time ago. All of the core text is there, but there are a number of formatting problems that make it irksome to read, namely that the Table of Contents is nonfunctional, and the chapter markers are incorrect.
I raised the issue with Kobo, who in turn raised it with the Publisher, but the publisher considered the issues "minor" and opted not to fix or recall the book. Kobo offered to refund me, but the book was $3, and I was also happy that the book was sold DRM-free by the publisher, so I told them not to worry about it.
|
This doesn't seem like a "minor" problem to me. This is a fundamentally broken ebook and should not be for sale in that state.