12-25-2018, 04:47 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: Kindle Paperwhite
|
How to change markup in content.opf when importing .epub file?
Hi,
I'm using Calibre for quite some time now, but recently the publisher of a series changed something inside content.opf. Now, when converting .epup from this particular publisher to -mobi format for my Kindle Paperwhite, the ebook initially opens on the last page. I tracked this down to the following line inside content.opf: Code:
<reference type="text" title="Beginning" href="001.html#a0"/> The question now is, can I automate this substitution when importing the .epub file into Calibre? (And if yes, how?) thanks for any hint how to achieve this. Thomas |
12-25-2018, 05:28 PM | #2 | |
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
To find the start location I use the search and replace regex builder to look inside to find the start point. bernie Last edited by gbm; 12-25-2018 at 05:36 PM. |
|
Advert | |
|
12-26-2018, 07:26 PM | #3 | |
Guru
Posts: 927
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
You need to make sure the 'href' attribute is pointing to the first page of bodymatter (after titlepage, copyright, toc, etc). |
|
12-29-2018, 06:21 AM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: Kindle Paperwhite
|
Cool! Thant worked, thank you very much!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ERROR in EPUB content.opf | crankypants | ePub | 7 | 06-23-2016 01:22 AM |
Ampersands and content.opf file | AlexBell | ePub | 17 | 04-07-2016 09:44 PM |
Change opf filename from content.opf to title.opf | northstar7 | Sigil | 3 | 09-23-2013 12:44 PM |
Sigil 0.5.3 keeps rebuilding my content.opf file from scratch | mtrahan | Sigil | 7 | 04-28-2012 09:10 AM |
cleaning the content.opf file | Adjust | ePub | 6 | 09-01-2010 05:54 PM |