Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-21-2014, 02:42 PM   #1
Fedwin
Enthusiast
Fedwin began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2011
Device: PRS-T1
chapters opening as pop-up footnotes

I've noticed something with the last two updates of Calibre - when I click on a table of contents entry in some books, it loads the chapter in the pop-up footnote window. But it only happens with some books. But with Sigil or Readium, clicking on the toc entry jumps to the chapter as it should.

Here is a link to one ebook that has this problem.

Moderator Notice
Link to copyrighted material deleted - Please read FAQ: Posting Guidelines section 8

Last edited by BetterRed; 11-21-2014 at 02:53 PM.
Fedwin is offline   Reply With Quote
Old 11-21-2014, 03:06 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,661
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Fedwin - I suspect the problem lies with the content of the ToC in the Epub - in that the links in the are improperly formulated. I suggest you look at a 'good' and a 'bad' epub in the editor to see the difference.

You may be able to 'fix' the non working TOC's with the Edit TOC tool, if not then you should be able to fix it in the editor. In both cases make sure you have copies of the files as they are now...

You could to complain to store where you bought the book - they might even give you your money back

BR
BetterRed is offline   Reply With Quote
Advert
Old 11-21-2014, 03:51 PM   #3
Fedwin
Enthusiast
Fedwin began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2011
Device: PRS-T1
@moderator - Sorry, I didn't even think about that. I just figured calibre guys would want an example.

@BetterRead - Thanks. I am not concerned about the book, since it works fine on my ereader and with other programs. I thought it must be a bug with the latest two calibre updates and was just trying make them aware of it.

The html was this:

<p class="calibre26"><span class="calibre18"><a class="calibre12" href="../Text/chapter1_1.xhtml" id="ch1"><span class="calibre25">CHAPTER ONE -THE EARTH</span></a></span></p>

I reduced it to essentials:

<p><a href="../Text/chapter1_1.xhtml" id="ch1">CHAPTER ONE -THE EARTH</a></p>

and the same behavior continued. I removed the id="ch1", which seems valid to me, and now it works fine. But I am no html wiz.

If no one else experiences this problem, I guess it is the book and it is just beyond me to see why.
Fedwin is offline   Reply With Quote
Old 11-21-2014, 08:53 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It is simple, any link that is pointing to another html file when that file also links back to the original link is assumed to be a endnote/backlink pair.

This assumption can, of course be incorrect in some cases, as you discovered, but most of the time, it makes sense. You can always force the viewer to not treat a link as a footnote/endnote, by setting

epub:type="link" on the <a> tag.
kovidgoyal is offline   Reply With Quote
Old 11-22-2014, 01:52 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And thinking about it, I can probably improve the heuristic to exclude the case when the link is the only content in a block level p, div, heading, etc tag.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-23-2014, 12:25 AM   #6
Fedwin
Enthusiast
Fedwin began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Dec 2011
Device: PRS-T1
Thanks, that explains it.

I like to be able to click back and forth between chapter titles and the html table of contents. How important that is to the average Calibre user, I don't know.
Fedwin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop-up footnotes Leonatus Kobo Reader 41 01-13-2017 07:06 PM
Drawbacks with Pop Up Footnotes in epub 3 ? verydeepwater ePub 8 06-13-2014 05:28 AM
Pop-up dictionaries on K4 rebane Amazon Kindle 6 04-25-2012 11:25 PM
azw to mobi: Not detecting chapters/page break at chapters and no TOC RachDvn Calibre 3 01-16-2011 09:53 AM
ePub Chapters vs. Stanza Chapters kjk Sigil 4 09-14-2009 10:50 AM


All times are GMT -4. The time now is 03:19 PM.


MobileRead.com is a privately owned, operated and funded community.