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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-11-2020, 07:05 AM   #1
sewi_rafal
Junior Member
sewi_rafal began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2020
Device: Kindle PW4
epub to asw3: wrong internal links

I'm converting a epub file to asw3 for Kindle PW using Calibre v. 4.99.4.
The problem is that when looking at the formats in edit book window from epub I have:

Code:
...
<a href="part0000_split_015.html#a">Chapter 1</a><br class="calibre2"/>
<a href="part0000_split_026.html#b">Chapter 2</a><br class="calibre2"/>
<a href="part0000_split_027.html#c">Chapter 3</a><br class="calibre2"/>
<a href="part0000_split_027.html#d">Chapter 4</a><br class="calibre2"/>
<a href="part0000_split_029.html#e">Chapter 5</a><br class="calibre2"/>
...
while in the converted asw3 I get broken internal links. Looking at the debugging processed text parts, the links are correct, whereas in the final aws3 file, the links get corrupted. Any idea where is the issue?

- fragment from asw3 file in edit book window:
Code:
...
<a href="part0000.html#1-64ba2faa11d04ddca7487a72e9ffd7df">Chapter 1</a><br class="calibre2"/>
<a href="part0000.html#1-64ba2faa11d04ddca7487a72e9ffd7df">Chapter 2</a><br class="calibre2"/>
<a href="part0000.html#1-64ba2faa11d04ddca7487a72e9ffd7df">Chapter 3</a><br class="calibre2"/>
<a href="part0000.html#1-64ba2faa11d04ddca7487a72e9ffd7df">Chapter 4</a><br class="calibre2"/>
<a href="part0000.html#1-64ba2faa11d04ddca7487a72e9ffd7df">Chapter 5</a><br class="calibre2"/>
...
sewi_rafal is offline   Reply With Quote
Old 02-11-2020, 09:00 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: 36,109
Karma: 15014853
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sh...d.php?t=186697
kovidgoyal is online now   Reply With Quote
Advert
Old 02-13-2020, 03:46 PM   #3
sewi_rafal
Junior Member
sewi_rafal began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2020
Device: Kindle PW4
I filed a bug as follows

https://bugs.launchpad.net/calibre/+bug/1863160

There you can find the example html input file for conversion to azw3

I use debian unstable package: 4.99.4+dfsg+really4.10.0+py3-2

Interestingly, when using the current Windows calibre, the links are correct.
sewi_rafal is offline   Reply With Quote
Old 02-13-2020, 03:51 PM   #4
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 3,383
Karma: 32493247
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
You are missing quotes around your HTML ids.

Code:
<div id=a>
jhowell is offline   Reply With Quote
Old 02-13-2020, 04:11 PM   #5
sewi_rafal
Junior Member
sewi_rafal began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2020
Device: Kindle PW4
Thank you for spotting it, but still the issue remains.
sewi_rafal is offline   Reply With Quote
Advert
Old 02-13-2020, 04:57 PM   #6
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 3,383
Karma: 32493247
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by sewi_rafal View Post
I use debian unstable package: 4.99.4+dfsg+really4.10.0+py3-2
Probably a bug related to Python 3. Have you tried the official Linux release?

https://calibre-ebook.com/download_linux


Added: I tested your HTML file with the calibre 4.99.4 beta (Python 3) under Windows and it fails there. So it does appear to be related to calibre's Python 3 porrting.

Last edited by jhowell; 02-13-2020 at 05:09 PM.
jhowell is offline   Reply With Quote
Old 02-14-2020, 03:50 AM   #7
sewi_rafal
Junior Member
sewi_rafal began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2020
Device: Kindle PW4
Quote:
Originally Posted by jhowell View Post
Probably a bug related to Python 3. Have you tried the official Linux release?
...
I have tried now, and the official Linux 4.10 version converts to azw3 successfully. Also I have tried the Windows beta 4.99.4 and it fails.

Note that the links in the converted epub format are correct.
sewi_rafal 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
Reader crashes when opening ePub pages with internal links radiobuzzer PocketBook 0 04-12-2016 08:27 AM
Internal Links broken in Epub to DOCX conversion David Kudler Conversion 2 06-11-2015 12:39 AM
Android epub app (internal links don't work) Gem777 Android Devices 4 02-27-2015 12:23 PM
Creating internal links in EPUB from svg image ecojon ePub 1 03-26-2012 01:37 PM
Internal links in ePub-files broken? Portnull Calibre 2 08-17-2009 12:00 PM


All times are GMT -4. The time now is 06:51 AM.


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