09-08-2012, 05:25 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Kindle Touch
|
How to define the "Start" or "Beginning" page in Calibre
Hi,
I can't seem to define the "Start" or "Beginning" page when converting the raw HTML file to mobi in Calibre. It seems like most of the Kindle books I download start at Chapter One, missing out the front matter. This is how I would like to format Kindle books. It's a simple matter in mobipocket (there's a dialog box in the Guide section) What this does, is add a line to the OPF file in the Reference Section. I have tried using "Start reading at Xpath Expression" in Calibre under the Structure Detection menu, but haven't had any success. I've researched this online but haven’t found a solution. Can Calibre do this? How? If not it seems like a must-have wish list item. thx |
09-09-2012, 12:08 AM | #2 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you are converting epub add the line to the opf in the epub using the tweak book feature and then convert it. If you are converting some other format, use the start reading at xpath expression. Read the Xpath tutorial in the user manual if you cant figure out how to use XPath.
|
Advert | |
|
09-09-2012, 01:04 PM | #3 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Jun 2011
Device: Kindle
|
Here's how I do it:
When converting to MOBI, make sure you have "debug" turned on. After the conversion, go to the "processed" folder in wherever you put the debug output. Edit the content.opf in there and add this line to the <guide> section: Code:
<reference href="mybook.html#start" type="start" title="Startup Page"/> Then, zip all the content in that processed folder and add the zip to Calibre. Convert that zip to a MOBI and it will retain your start page. |
09-09-2012, 10:04 PM | #4 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2012
Device: Kindle Touch
|
Kovid - I'm creating Kindle books direct from HTML not converting an epub. I did look at the Xpath tutorial and made several attempts but without success. It might be beyond the skillset of most authors to figure out Xpath.
Skeezix - Hadn't thought about that. Thanks - that ought to work. |
09-05-2015, 12:54 AM | #5 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2011
Location: Coventry, UK
Device: Kindle
|
This works
Create an anchor (called a bookmark in Microsoft Word)
Call it start Within Calibre, use the XPath expression in the “Start reading at” field //h:a[@name='start'] This works for both EPUB and MOBI output. |
Advert | |
|
08-12-2016, 06:58 AM | #6 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2016
Device: kindle
|
This doesn't work for me (convertion docx to mobi):
The log file says "Setting start reading at position to <different formula for example the above with using a bookmark field, or other Formula searching for a unique text in the chapter>". But the kindle preview tool says "Start reading: not given" (german translation) when opening the book property dialog and the start page is always the first page (title). Thanks in advance. Any suggestions |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I define the "first" page of an ebook? | bfollowell | Sigil | 21 | 05-06-2012 06:51 PM |
"Insert Metadata as Start Page" Error | Ticket #7238 | carlyman | Calibre | 2 | 10-20-2010 10:30 AM |
Creator taking control of the "first page" link in the "content" menu | cyberbaffled | Kindle Formats | 2 | 07-11-2010 04:21 PM |
Swap "Prev Page" & "Next Buttons" ???? | kilofox | Amazon Kindle | 6 | 04-02-2008 11:39 PM |