05-16-2013, 03:19 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2013
Device: iPad
|
Index containing page no. with links - <pagelist> problem
Hi,
a service provider converted a printed book (indesign/pdf master) into epub (epub2). As usual in real professional books you have an index at the end, containing page numbers. During conversion all page no. were asigned a link to the corresponding chapter/html file including its anchor (e.g. 'sealing: 12, 33, 47, etc'). Unfortunately my ebook handler (libreka in Germany) refuses to publish it to the the apple book store with the reason: "please fix linked page numbers in the index with <pagelist> (toc.ncx)". Kiling the index completely does not help at all because then I get around 1300 linking errors (all links in chapters refer to the index as well) ... So I am a bit in a struggle what to do Can anybody give me advice how to fix my problem? As far as I googled <pagelist> is not the answer to my problems ... And please keep in mind: I am dealing with approx. 1,300 links at all. Manual editing would take a huge amount of time. Thanks in advance. Any help appreciated. Cheers. btw.: pagina-EPUB-Checker_Win-1.1.0 does not find any errors at all! |
05-16-2013, 01:24 PM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
ePub 3 has support for page lists. See http://www.idpf.org/accessibility/gu...v/pagelist.php
and http://www.idpf.org/accessibility/gu...ml/pagenum.php Apple does have quite a bit of epub 3 support for iBooks. I have no idea if this will fully solve your problem but it may give you some ideas. |
Advert | |
|
05-17-2013, 01:08 AM | #3 |
Member
Posts: 10
Karma: 18
Join Date: Nov 2010
Device: none
|
It is strange though that the links in the chapters refer to the Index ! ... It should be the inverse. The links in the Index should be redirecting the reader to the corresponding page in the book.
Unless the links take the reader to a specific location(named destination) in the page and not just to a specific page number. In that case the corresponding named destination in each page must be removed from the page to prevent these errors. |
05-17-2013, 07:33 AM | #4 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2013
Device: iPad
|
|
05-17-2013, 02:09 PM | #5 |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
kind of a shame to wipe out the entire index, but if you removed all the links in the index, then you could just do a global search/replace for all the anchors in the html pages to remove them too.
|
Advert | |
|
05-17-2013, 08:02 PM | #6 | |
Wizard
Posts: 2,303
Karma: 12126963
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Also, for more information on the PageList and/or page-map, I found this link on the Wiki: http://blog.threepress.org/2009/11/2...-ncx-pagelist/ |
|
05-21-2013, 03:29 AM | #7 | |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2013
Device: iPad
|
Quote:
This is the code in the chapter file: <a href="../Text/anhang3.html#ir_9_220" id="in_9_220">ANY_TEXT</a> This is the code in the index file: <a href="../Text/chapter03.html#in_9_220" id="ir_9_220">220</a> 220 corresponds to the real page number. Why they made a link to the index file: I don't know! It looks that way, that all links in the chapter files have a similar ID construct, starting with id="in_*_*". Maybe anyone can help ... Thanks in advance. Cheers. |
|
05-21-2013, 07:27 AM | #8 | ||
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
Quote:
Quote:
Code:
find:<a[^#]+#ir[^>]+>(.*?)</a> repl:\1 regardless, it's probably a good idea to backup your file in case you decide to switch distribution in the future. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Companion index problem | madnick | Calibre Companion | 3 | 01-08-2013 04:04 PM |
index.html with links to PDF's | Dokumentleser | Conversion | 0 | 09-11-2012 04:55 PM |
TOC and Index links in Sigil | Bamber | ePub | 10 | 11-11-2010 02:12 PM |
Charles Dickens e-books index page added | RWood | Announcements | 6 | 02-19-2008 05:52 PM |
Automatic index links creation in mobipocket | ragdoll | Kindle Formats | 1 | 02-08-2008 07:07 AM |