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 12-01-2011, 02:05 PM   #1
therealjoeblow
Zealot
therealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfolded
 
Posts: 101
Karma: 52102
Join Date: Jun 2010
Device: Kobo Touch; Blackberry w/MobiPocket Reader
Bug Report: Mobi Conversion puts TOC Nav in wrong spot

If I take an untouched retail ePub with a perfectly functioning TOC (ie, which guaranteed navigates to the correct position in the book), convert it to Mobi, and then either to htmlz for editing or even directly back to ePub, the conversion puts the TOC navigation anchors in the wrong spot.

When I look at the intermediate html code, the Mobi conversion has placed tags like:

<pagebreak id="something">

...but it places these BEFORE the <div class="mbppagebreak"></div> code, so when you navigate in the final converted ePub, it goes to the bottom of the page before page break and the actual chapter you want.

It should be putting these tags AFTER the <div>

And while I'm at it, why doesn't it just add the id=whatever to the <div> tag so you don't need the extra non-standard <pagebreak> tag? The problem is that <pagebreak> isn't a real html tag, and it hangs tools like HTMLTidy, the file can't be processed to clean up the code with these <pagebreak> tags in it, they have to be manually converted to something else like <p> or <div> before Tidy can be used.

Is this something that can please be fixed? manually changing the tags and them moving them to fall after the <div class="mbppagebreak"> tag takes a lot of effort.

Thanks
The REAL Joe
therealjoeblow is offline   Reply With Quote
Old 12-01-2011, 03:04 PM   #2
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 667
Karma: 436517
Join Date: Jul 2010
Location: UK
Device: PRS-300 (R.I.P.), PW2, Nexus7
Quote:
Originally Posted by therealjoeblow View Post
And while I'm at it, why doesn't it just add the id=whatever to the <div> tag
Does that work in HTML? I thought that you could only link to IDs within <a> tags.
Agama is offline   Reply With Quote
 
Advertisement
Old 12-01-2011, 10:16 PM   #3
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: 26,450
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Dont convert it to MOBI first. Convert it directly to HTMLZ or EPUB.
kovidgoyal is online now   Reply With Quote
Old 12-02-2011, 09:30 AM   #4
therealjoeblow
Zealot
therealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfoldedtherealjoeblow reads XML... blindfolded
 
Posts: 101
Karma: 52102
Join Date: Jun 2010
Device: Kobo Touch; Blackberry w/MobiPocket Reader
I have a particular reason for wanting to do the mobi conversion first. A lot of retail ePub's are formatted with hard coded font families, line heights and other things that are very difficult to manually strip out - conversion from ePub to htmlz leaves a lot of remnants behind making the process tedious and frustrating. Converting first to mobi strips all that crap in one fell swoop, which I've found much simpler to deal with, but has these pagebreak issues...

Cheers
The REAL Joe
therealjoeblow is offline   Reply With Quote
Old 12-02-2011, 10:56 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: 26,450
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There's a filter css option in the conversion settings under Look & Feel
kovidgoyal is online now   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
epub ncx to mobi nav points is losing items upon conversion bfollowell Conversion 13 09-27-2011 11:23 AM
0.7.58: FB2 to MOBI conversion something wrong eothain Conversion 3 04-30-2011 05:36 AM
conversion failure/bug - epub-rtf-mobi cybmole Calibre 1 12-03-2010 06:37 AM
minor bug report - html conversion cybmole Calibre 18 09-30-2010 12:26 PM
Preserving TOC upon conversion from Lit to Mobi mobelby Calibre 0 07-31-2009 08:59 AM


All times are GMT -4. The time now is 03:22 AM.


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