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 02-14-2013, 06:30 PM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
ePub to mob-both: links don't work

Last month I uploaded to the ePub section of the MR library Counter-Attack and Other Poems by Siegfried Sassoon which I had tested on my Sony PRS T2 and on my iPad2 with ibooks. In both ereaders it works very well.

Many have of the poems have long lines, and I set it up so that when a line breaks the following text is indented. This cannot be done with old mobi, so I thought I would see if I could convert the book of poems with calibre to see if it will work in azw3/KF8.

I've just converted it, and though the text is indented after a break none of the hyperlinks in the text or in the pop-up menu work. They may take the reader to a different place, but it's the wrong place.
When I converted it with calibre I chose the 'both' option, but left every other choice at defaults except for choosing 'Kindle' as the output option. I tested it on my upgraded Kindle3, and there is an associated han file in the document folder.

I haven't the slightest idea on whether I did anything wrong when converting, or whether there is anything wrong in the original ePub file - though I know that the XHTML is valid and the ePub validates with ePubCheck and FlightCrew.

Can anyone help? I've attached both the ePub and mobi/azw3 versions.

PS I've just converted the ePub with KindleGen. The mobi version created with KindleGen does honour the hyperlinks, even footnotes, and does have the indentations where a line is broken. But it doesn't give access to the pop-up menu - the one in the toc.ncx file. Is this usual for KindleGen conversions? I guess I'd better ask in the mobi forum.

Last edited by AlexBell; 02-15-2013 at 06:56 PM. Reason: included author's name
AlexBell is offline   Reply With Quote
Old 02-15-2013, 12:34 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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont use a section of a larger html file as a cover, and if you must do that, then dont mark it as a cover in the <guide>. If you mark it as a cover, it will be removed by the conversion when it is processing covers. Remove the cover entry from the guide and the conversion should work.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-15-2013, 05:28 AM   #3
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by kovidgoyal View Post
Dont use a section of a larger html file as a cover, and if you must do that, then don't mark it as a cover in the <guide>. If you mark it as a cover, it will be removed by the conversion when it is processing covers. Remove the cover entry from the guide and the conversion should work.
Thanks, Kovid, I'll give that a try tomorrow.

I have that entry in the guide for a reason; but my senior memory is a bit vague. I think it was to try to get the cover to show in iBooks, or when I was trying to get old mobi files to open at the cover. I wonder if I might need to leave it in the ePub version but comment it out before conversion. It certainly doesn't cause any problems when I convert ePubs to old mobi.

Anyway, I'll try to let you know tomorrow.
AlexBell is offline   Reply With Quote
Old 02-15-2013, 07:07 PM   #4
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Sorry, Kovid, it didn't work. I commented out all the guide section, put the new content.opf file (otherwise unchanged) into the ePub package, validated and tested the new ePub, and converted as before. If anything the hyperlinks are even more unstable.

I then changed the guide section to one suggested on the mobi forum, went through the process again, and converted with Kindlegen. The links work, and this time I can get the Menu>goto>table of contents to work.

I've removed the old files from my first post, and attached the new files to this post. The files should all be dated 16/02/2013


I've deleted the fi
AlexBell is offline   Reply With Quote
Old 02-16-2013, 12:02 AM   #5
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont have the time to track down everything wrong with that epub, but so far I've found that the links to the Preface and Introduction dont work in the original epub either. And you are probably using css/conversion settings that are inserting page breaks <div class="poetry"> and <p class="titlename"> which will cause links to individual poems to end up pointing to the end of the previous poem.

Do an epub to epub conversion and test the resulting epub, you will see the same set of problems.

Fix the Preface and Introduction links and move the id="poemwhatever" attribute to the <p> tag, so that the links point to the correct place.

Alternatively, use page-break-before instead of page-break-after.

Last edited by kovidgoyal; 02-16-2013 at 12:14 AM.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-16-2013, 12:38 AM   #6
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Thanks for your suggestions.
AlexBell is offline   Reply With Quote
Old 02-16-2013, 01:55 AM   #7
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I will add some code to the next calibre release that should handle this situation (page-break-after and id on the page break element correctly). In th meantime, use either of the solutions I posted before, i.e. putting the id on the <p> or changing to page-break-before
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOBI conversion- links don't work russ5260 Conversion 1 08-02-2011 04:30 PM
Links to URLs work, internal links don't? NewDay ePub 36 10-27-2010 04:09 AM
Fetched news emailed as PDF, links don't work gertblij Calibre 7 10-22-2010 11:22 AM
Links don't work ragdoll iRex 3 02-21-2008 01:47 PM
Plucker: Why these links don't work? javierdl Reading and Management 0 09-07-2006 09:02 PM


All times are GMT -4. The time now is 04:58 PM.


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