12-01-2011, 02:05 PM | #1 |
Zealot
Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro 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 |
12-01-2011, 03:04 PM | #2 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
|
Advert | |
|
12-01-2011, 10:16 PM | #3 |
creator of calibre
Posts: 44,796
Karma: 25490602
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont convert it to MOBI first. Convert it directly to HTMLZ or EPUB.
|
12-02-2011, 09:30 AM | #4 |
Zealot
Posts: 106
Karma: 52102
Join Date: Jun 2010
Device: Samsung Android Tablet w/Moon+ Pro 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 |
12-02-2011, 10:56 AM | #5 |
creator of calibre
Posts: 44,796
Karma: 25490602
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There's a filter css option in the conversion settings under Look & Feel
|
Advert | |
|
Thread Tools | Search this Thread |
|
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 |