08-21-2015, 03:56 AM | #1 |
Member
Posts: 11
Karma: 10
Join Date: Nov 2011
Device: iPad
|
Converting OPF to mobi loses article's author and description?
Hi,
I'm trying to convert a OPF to a mobi ebook using ebook-convert like Code:
ebook-convert book.opf book.mobi But when I read the book on a Kindle Paperwhite, I found all articles' author and description info are lost. In Paperwhite's Cover View, there is 'No details available' under each article title. However, these information are in the OPF file: Code:
<navPoint playOrder="2" class="article" id="88f3f4f35ed557e95c59024d92a73b33"> <navLabel> <text>India blocks Colgate patents for spices</text> </navLabel> <content src="1.html"/> <mbp:meta name="description">India blocks Colgate patents for spices</mbp:meta> <mbp:meta name="author">Unknown</mbp:meta> </navPoint> |
08-21-2015, 06:45 AM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cannot create periodicals by conversion only using the recipe system in calibre. Periodicals are the format needed for per article metadata.
|
Advert | |
|
08-21-2015, 09:51 PM | #3 | |
Member
Posts: 11
Karma: 10
Join Date: Nov 2011
Device: iPad
|
Quote:
1. If I do Code:
ebook-convert lifehacker.recipe lifehacker.mobi 2. I tried to add these to article's HTML files: Code:
<head> <meta charset='utf-8'> <meta content="here is the author" name="author"/> <meta content="here is the description" name="description" /> <title>India blocks Colgate patents for spices</title> </head> Code:
ebook-convert book.opf book.mobi What do you mean "per article metadata"? By the way, if use kindlegen as Code:
kindlegen lifehacker.opf lifehacker.mobi |
|
08-21-2015, 11:04 PM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When you run ebook-convert with a .recipe file you are using the recipe system.
Once again, you can only create periodicals using the recipe system, and only periodicals have support for per article metadata. I dont know what kindlegen has to do with anything. *calibre* can only create periodicals using the recipe system. What kindlegen can or cannot do is irrelevant. |
08-28-2015, 01:59 AM | #5 | |
Member
Posts: 11
Karma: 10
Join Date: Nov 2011
Device: iPad
|
Quote:
Alright, thanks. If I want to modify Calibre and recompile ebook-convert, where shoud I start? I have located the code thats gives the 'No details available' message: https://github.com/kovidgoyal/calibr...er2/indexer.py It seems that I only need to make sure that node.description comes from toc.ncx, or somewhere else. But which class/file should I modify? I don't know Python, but it should not be too hard to to it. |
|
Advert | |
|
08-28-2015, 02:05 AM | #6 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Instructions on setting up a calibre development environment are in the user manual. You dont need to compile anything, it is as simple as running three commands
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub to Mobi loses Diagrams | Kiepersol | Conversion | 8 | 07-20-2015 10:05 AM |
Scannable pdf file loses data converting to mobi | Rich Gibson | Conversion | 3 | 01-18-2013 10:01 PM |
converting epub to mobi - editing Contents.opf | aschofield | Conversion | 1 | 06-30-2012 05:27 PM |
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 |
Generate Article Description? | kindlefont | Recipes | 1 | 01-30-2011 07:07 PM |