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!)
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!)