![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2013
Device: Nook HD+
|
HTML Page to EPUB Named Anchor Problem
I am trying to convert an HTML page to EPUB using Calibre version 1.5.
The conversion works but all of the named anchors in the ebook Table of Contents link back to the web site. How do I tell Calibre to convert the named anchors to go to the proper ebook page? This is the HTML page I am trying to convert, http://www.w3.org/TR/html5/single-page.html. TIA. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works for me, see attached.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2013
Device: Nook HD+
|
Interesting ....
On my Nook HD+, when I try to view pages 9-24 the Reader crashes. On the PC using Nook for PC the program crashes when I try to view the book? |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Downloading Kovid's linked file directly to my Nexus 7 2013:
Gknitz, Perhaps the issue is with the Nook reader in the hardware/software? I would suggest trying the book in another reader to see if the same thing happens on both the Nook and PC - if possible. Oh, and were you trying Kovid's linked file or your own? You would need to try both - just in case there is a difference in the conversion settings used. Last edited by Sabardeyn; 09-27-2013 at 09:39 AM. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2013
Device: Nook HD+
|
The Nook HD+ software is up todate but I purchased several PDF readers which may have modified the Reader App. Thanks, I'll do some research!!!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2013
Device: Nook HD+
|
Is there something I need to set in the configuration to get the named anchors to link within the file?
I have attached a copy of the file I generated on a PC and the links in the HTML TOC still go to the live website??? TIA. Gary. |
![]() |
![]() |
![]() |
#7 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
It has nothing to do with the conversion and everything to do with how you saved the web page. Using Firefox if you save page as Web Page, complete you get links to the web. If you save page as Web Page, HTML only you get local drive links within the document.
Last edited by DoctorOhh; 09-30-2013 at 10:47 PM. |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2013
Device: Nook HD+
|
Then you would lose all of the images and any other links (such as styles) which could be important in a specification or any HTML page. So you need to save it as a Web Page, Complete and then tell Calibre to remove the fully qualified URLs. Maybe through the "search and replace" ???
|
![]() |
![]() |
![]() |
#9 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
So this is not a conversion issue. I just did a Save page as Web Page, Complete and all of the links in the TOC were local disk links. I then converted the book and the resultant epub has external links in it because they are meant to point to external web sites, but everything in the TOC points to locations in the epub itself. How are you managing to save the page without the TOC being local disk links? Last edited by DoctorOhh; 10-01-2013 at 03:52 AM. |
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2013
Device: Nook HD+
|
Interesting ....
Turns out I use Chrome most of the time, so I saved it in Chrome This is the Introduction link in FireFox for Web Page, Complete <a href="#introduction"><span class="secno">1 </span>Introduction</a> This is the Introduction link in Chrome for Web Page, Complete <a href="http://www.w3.org/TR/html5/introduction.html#introduction"><span class="secno">1 </span>Introduction</a> So, it looks like it's a Browser issue, WOW! Thanks for your help Also, how did you setup the configuration so the EPUB TOC has the expanding arrow ">" that opens up to more TOC selections. Thanks again. Gary. Last edited by gknitz; 10-01-2013 at 06:25 PM. |
![]() |
![]() |
![]() |
#11 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
![]() The easiest way (which is not what I did) is to convert the book then use the Edit TOC tool built into calibre. Select the book entry, right click and select Edit TOC and choose Create TOC from all headings. |
|
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
To get a multi-level ToC just use the level 1-3 toc xpath settings in the conversion section:
Level 1: //h:h2 Level 2: //h:h3 Level 3: //h:h4 |
![]() |
![]() |
![]() |
Tags |
anchor, calibre, epub, html, named anchor |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
html to Epub problem: PRS950 resets on 2nd page. | xtracto | Conversion | 8 | 10-05-2011 08:54 AM |
HTML Anchor in XHTML | arreke | Sigil | 3 | 12-27-2010 01:28 PM |
Problem with html->epub: reader can't page through file | horseflesh | Calibre | 5 | 10-20-2009 12:22 AM |
multi-page HTML with images to ePub or LRF | Nvidiot | Workshop | 19 | 07-13-2009 07:20 PM |
Problem converting a webpage html to LRF, what program should I use? Long page turns | seajewel | Workshop | 1 | 08-01-2008 06:32 AM |