View Single Post
Old 02-20-2014, 11:49 AM   #19
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,255
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by cybmole View Post
I appreciate it's my own doing. I dislike having to page thru a TOC before I can get to chapter 1 so I zap any such at edit stage.
Couldn't agree more but how did you do the actual deletion? Was it in the controlled environment of Sigil/calibre Editor or some other way. The latter is not recommended if you want to keep your epubs valid. At the very least the opf file needs to know if one of its files has been mercilessly zapped.

Quote:
Originally Posted by cybmole View Post
please expand on " necessary clean up" - I usually jsut delete the html toc then have the modify plug in clean up the "real" TOC.

is there a different clean up which will take out the invalid href=......
I did a couple with regex but it has to be done carefully or the xlink:href on title page can get zapped also
As far as I know, the Modify Epub TOC cleanup options only look at the toc.ncx TOC file not any useless TOC which exists as one of the epub's html files. In your example I think the broken links are to the inline TOC html file not the ncx file.

As you know which epub has this problem, I'd suggest opening it in Sigil and/or calibre Editor and running their respective Book Check options to see if the broken links are flagged.

For future epubs it's worth experimenting with Sigil and/or calibre Editor to see if deleting the TOC html file automatically prevents the broken links. One may do a more thorough job than the other but without experimenting I don't know which is currently in the lead. Long term I'd put my money on calibre Editor. Either will be better than an 'uncontrolled' delete.
jackie_w is offline   Reply With Quote