Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 06-12-2014, 11:50 PM   #1
Abull
Member
Abull began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
Why do mismatched link and anchor work?

In an epub I created some numbered target IDs didn't quite match the links on the contents page because I either mistyped a digit twice or left off one of a repeated digit. However the lnks worked as intended in Calibre's editor and weren't identified as an error when I ran the check. The same thing happens in Sigil. I only dicovered the error in EPUB-Checker.

The links also work in both versions of desktop ADE, but not in FBreader.

But shouldn't Calibre editor catch them as an error anyway?
Abull is offline   Reply With Quote
Advert
Old 06-13-2014, 12:01 AM   #2
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: 32,709
Karma: 9906392
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Attach a sample demonstrating the issue.
kovidgoyal is offline   Reply With Quote
Old 06-13-2014, 12:31 AM   #3
Abull
Member
Abull began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jan 2013
Device: none
Here it is.
Attached Files
File Type: epub Link number mismatch.epub (2.9 KB, 56 views)
Abull is offline   Reply With Quote
Old 06-13-2014, 01:00 AM   #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: 32,709
Karma: 9906392
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The editor does not currently check fragments (the part of the link after the #). As for the links working, when you click a link with an incorrect fragment, most viewers will simply take you to the top of the file linked to an ignore the incorrect fragment, that will give you the illusion of the link working, if the link destination is near the top of the file.

I will look into adding a check for fragments as well.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub iBook link-anchor dicknskip Sigil 1 04-04-2013 01:28 AM
Anchor in Kindle quocsan Kindle Formats 4 10-22-2012 10:03 PM
simple anchor link question affa ePub 1 04-20-2011 04:29 AM
HTML Anchor in XHTML arreke Sigil 3 12-27-2010 01:28 PM


All times are GMT -4. The time now is 01:56 PM.


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