![]() |
#1 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
ToC Formatting Help?
![]() I've got an ePub version of a 19th century novel that I'm nearly done with. I modified it w Calibre's editor from one I found somewhere online. It had several font inconsistencies that I corrected, and all is good to go except for the table of contents showing hyperlinks to the preface and separate chapters. Chapter links function properly and appear in order and in columns, but the columns are of unequal length. The first column contains about twice the number of links as the remaining four columns, which are filled (part way) from the bottom up. It leaves me with one long column on the left, and four short columns on the right. Aesthetically unattractive. The entries for the links appear identical, and I've been unable to find a solution. I'm a novice at editing ePub, so assume I'm missing something quite simple. Anyone willing to take a look at the book and tell me what's amiss? I would be grateful. Many thanks. |
![]() |
![]() |
![]() |
#2 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
This advice only works if you are making an ePub 2 eBooks. |
|
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,349
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If, on the other hand, you are trying to stick to the original formatting as much as possible, you will want to keep the html ToC. Wolfie's comment is correct for newer books, and non-kindle books that don't require an HTML ToC.
As DNSB mentioned you can post the ePub here (it's obviously out of copyright)...or... you can just post the html/css of the ToC.... it sounds like a simple Table error...inconsistent number of TDs per TR, or something like that. |
![]() |
![]() |
![]() |
#5 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
OK. Yes, I'm just hacking away at what someone else got almost right. Know very little about this. Well, there was a lot of editing of wrongly formatted poetry, actually, which had been assigned a courier font for some reason. Fixed that, added italics to the verse and (found) typo, so it looks pretty good to my eye. But the ToC links bother me. So, I've attached the latest revision of this book. For the curious, it's "Phantastes," by George MacDonald, long out of copyright. It should be a less painful read from this ePub book than for me. It was reading the unedited version that drove me to do as many fixes as I could.
Many thanks. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
You'll need to wrap the first 5 chapter links also in
Code:
<div colspan="1" rowspan="1" class="calibre6"> ... </div> Spoiler:
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What you are trying to do with the HTML ToC is just a big huge no. It's going to look awful.
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,751
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
After looking at this eBook in ADE and the Calibre editor, it has some serious errors that stop it from displaying correctly in ADE.
|
![]() |
![]() |
![]() |
#10 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,349
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Yes, there are a lot of huge errors...
I did take a few minutes to do some very basic cleanup and styling so you can use it as a starting point. Everything should work fine now, but I would definitely give it another walk through. I'm sure there are others on MR that would do things differently, but this will at least get you started! ![]() There are some basic tutorials in MR's Wiki that will help immensely. Most of the errors I noticed were from not putting the correct closing tags around your elements( <p></p>, <h5></h5>, <div></div>, etc.) I also added a slightly larger cover image. The one you had was only 286px high - much too small! The one I added is too small as well, but 500px is at least viewable. It would be really nice if you could scan, or otherwise locate, the illustrations at the end of each chapter! Cheers! Last edited by Turtle91; 07-09-2021 at 06:18 PM. Reason: minor update to attachment |
![]() |
![]() |
![]() |
#11 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 316
Karma: 3196766
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
I think you may be better off just trashing that TOC and letting Sigil build a new one. I don't think this columnar approach works well and the code looks very messy. Did not expect to see tons of <blockquote>s in a TOC.
|
![]() |
![]() |
![]() |
#12 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,349
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#13 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I realized after playing with the copy from this thread that I had downloaded and done some cleanup on a copy from, I think, Gutenberg a while back. I've attached that copy to this message as a cleaner starting point.
|
![]() |
![]() |
![]() |
#14 |
Zealot
![]() Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
|
Easy if you know what you're doing, which I do not. Many thanks. It was the charm.
Yes, even in my ignorance, I suspected that the file I had was a bit of a mess. I don't know enough to even make a mess like that, much less clean it up! Last edited by RMOP; 07-09-2021 at 08:28 PM. |
![]() |
![]() |
![]() |
#15 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
Last edited by hobnail; 07-09-2021 at 11:11 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOC Formatting Question | phossler | Editor | 11 | 11-08-2020 10:55 PM |
Aura ONE device-TOC formatting | Sam Sahara | Kobo Reader | 1 | 08-24-2018 07:36 AM |
Formatting the TOC | RickAltman | Conversion | 1 | 11-13-2014 12:43 AM |
Inline TOC formatting | phossler | Editor | 9 | 03-29-2014 06:05 AM |
Formatting TOC | jackibar | Sigil | 18 | 03-01-2012 09:02 AM |