06-28-2012, 06:06 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2012
Device: Kindle Keyboard
|
converting epub to mobi - editing Contents.opf
Hi there,
I wa having a recent issue which has been resolved thanks to these forums. That is that some of my Contents.opf files have a guide section that looks like this: <guide> <reference type="cover" title="cover" href="cover.xhtml" /> <reference type="title-page" title="title" href="title.xhtml" /> <reference type="preface" title="annotation" href="annotation.xhtml" /> <reference type="title-page" title="bookcontent1_0" href="section1.xhtml" /> <reference type="text" title="bookcontent2_0" href="section2.xhtml" /> <reference type="text" title="bookcontent3_0" href="section3.xhtml" /> <reference type="text" title="bookcontent4_0" href="section4.xhtml" /> <reference type="text" title="bookcontent5_0" href="section5.xhtml" /> <reference type="text" title="bookcontent6_0" href="section6.xhtml" /> <reference type="text" title="bookcontent7_0" href="section7.xhtml" /> <reference type="text" title="bookcontent8_0" href="section8.xhtml" /> <reference type="text" title="bookcontent9_0" href="section9.xhtml" /> <reference type="text" title="bookcontent10_0" href="section10.xhtml" /> <reference type="text" title="bookcontent11_0" href="section11.xhtml" /> <reference type="text" title="bookcontent12_0" href="section12.xhtml" /> <reference type="text" title="bookcontent13_0" href="section13.xhtml" /> <reference type="text" title="bookcontent14_0" href="section14.xhtml" /> <reference type="text" title="bookcontent15_0" href="section15.xhtml" /> <reference type="text" title="bookcontent16_0" href="section16.xhtml" /> <reference type="text" title="bookcontent17_0" href="section17.xhtml" /> <reference type="text" title="bookcontent18_0" href="section18.xhtml" /> <reference type="text" title="bookcontent19_0" href="section19.xhtml" /> <reference type="text" title="bookcontent20_0" href="section20.xhtml" /> <reference type="text" title="bookcontent21_0" href="section21.xhtml" /> <reference type="text" title="bookcontent22_0" href="section22.xhtml" /> <reference type="text" title="bookcontent23_0" href="section23.xhtml" /> <reference type="text" title="bookcontent24_0" href="section24.xhtml" /> <reference type="text" title="bookcontent25_0" href="section25.xhtml" /> <reference type="notes" title="bookcontent26_0" href="fb2info.xhtml" /> <reference type="copyright-page" title="about" href="about.xhtml" /> </guide> Changing this to: <guide> <reference type="cover" title="cover" href="cover.xhtml" /> <reference type="title-page" title="title" href="title.xhtml" /> <reference type="preface" title="annotation" href="annotation.xhtml" /> <reference type="title-page" title="bookcontent1_0" href="section1.xhtml" /> <reference type="text" title="bookcontent2_0" href="section2.xhtml" /> <reference type="notes" title="bookcontent26_0" href="fb2info.xhtml" /> <reference type="copyright-page" title="about" href="about.xhtml" /> </guide> Give me a MOBI file with the correct start points. Now, I suspect tthis might be due to the original fb2 to epub conversion, but I'm not sure. So, as I need to do this for a few thousand epubs is there anyway that calibre can edit the Contents.opf file during conversion to remove all but the first 'type="text"' reference in the guide section of this file? Oh, and as an aside, how can I change this for MOBI files which have been converted without having to reconvert them all (I probably have the EPUBs on backup but don't really wan to go down that route!) |
06-30-2012, 05:27 PM | #2 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jun 2012
Device: Kindle Keyboard
|
0.8.58 release notes:
- EPUB Input: When there are multiple elements of the same type in the OPF guide, use the first rather than the last element. Job done, many thanks! |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? | DHahn | Kindle Formats | 3 | 04-17-2012 04:06 AM |
Converting Table of Contents to .MOBI | samiam3 | Conversion | 0 | 04-16-2012 03:57 PM |
Editing epub's style.css when converting to epub | Pros | Calibre | 0 | 02-02-2012 01:13 PM |
ePub or HTML to Mobi Table of Contents problem | Dark123 | Conversion | 2 | 05-08-2011 03:43 PM |
Table of contents problem converting from mobi to epub | dlmecum | Calibre | 7 | 01-21-2011 07:07 PM |