Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-05-2013, 05:49 PM   #1
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
ebook-convert breaks internal hyperlinks?

Hi!

I have a shell script I use to grab some URLs generated by my app via wget, and then convert the XHTML documents into EPUB and MOBI ebooks, thanks to Calibre. Very nice.

I have added internal hyperlinks to the XHTML documents to link footnote markers in the text to endnotes at the end of the document and vice versa.

Code:
My footnote marker<a href="#endnote_1x824" id="marker_1x824">1</a>.

...

<li id='endnote_1x824'>My footnote text. <a href='#marker_1x824'>^</a></li>
When I noticed the ebook hyperlinks were broken, I checked WGET to make sure that WGET wasn't corrupting the links, but the links still looked normal.

But after I convert a document to EPUB, the links are messed up:

Code:
<li id="endnote_1x824" class="calibre19">My footnote text. <a href="{HTML filename}#marker_1x824">^</a></li>
Is there an argument I can pass to ebook-convert to bring working internal hyperlinks over?
johnstephens is offline   Reply With Quote
Old 09-05-2013, 11:40 PM   #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: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sho...d.php?t=186697
kovidgoyal is offline   Reply With Quote
Old 09-11-2013, 02:38 PM   #3
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
Thank you, Kovid! This helped me identify the problem, which was caused by a flag on wget, not by Calibre. Sorry for adding static to the forum, and thanks again for all you do!
johnstephens is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil TOC breaks internal links LarsEighner Sigil 1 09-03-2013 10:23 AM
losing internal hyperlinks. Need Help! JLogue Sigil 2 08-24-2012 05:57 PM
Batch breaks after ebook-convert.exe j0s3f Calibre 1 05-04-2011 05:27 PM
Does the latest Kobo support internal hyperlinks yet? KevinH Kobo Reader 3 04-11-2011 02:48 PM
PDF with internal hyperlinks to MOBI wlloydw Conversion 3 02-23-2011 04:33 PM


All times are GMT -4. The time now is 09:52 PM.


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