Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-02-2010, 02:00 PM   #1
krischik
Addict
krischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheese
 
krischik's Avatar
 
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
Question Order or reading meta data.

I am preparing subscription book for import into calibre and I use ebook-convert and ebook-meta to do so. Once the books are perfect I start the import.

However the result was not perfect after all. So I wonder: what takes priority when importing meta data: File-name extraction or embedded meta data. I begin to thing it might be file-name in which case I would which for a "do not use file-names for meta data" option.

Martin
krischik is offline   Reply With Quote
Old 02-02-2010, 02:07 PM   #2
krischik
Addict
krischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheese
 
krischik's Avatar
 
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
I forgot: if you import multiple formats: which format is used to read the meta data?
krischik is offline   Reply With Quote
Advert
Old 02-02-2010, 04:56 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
file name extraction is not used unless set the preference option for it. metadata read from multiple formats will be a union of metadata from all formats. Which ones take priority are hard coded, look in the ebooks.metadata.meta module for details.
kovidgoyal is offline   Reply With Quote
Old 02-03-2010, 02:35 AM   #4
krischik
Addict
krischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheesekrischik can extract oil from cheese
 
krischik's Avatar
 
Posts: 334
Karma: 1234
Join Date: Jul 2009
Location: Hindelbank, Switzerland
Device: P990i, PRS 505
Unhappy Hmm

Quote:
Originally Posted by kovidgoyal View Post
file name extraction is not used unless set the preference option for it. metadata read from multiple formats will be a union of metadata from all formats. Which ones take priority are hard coded, look in the ebooks.metadata.meta module for details.
Code:
_METADATA_PRIORITIES = [
                       'html', 'htm', 'xhtml', 'xhtm',
                       'rtf', 'fb2', 'pdf', 'prc', 'odt',
                       'epub', 'lit', 'lrx', 'lrf', 'mobi',
                       'rb', 'imp', 'azw'
                      ]
If I understand the code right with my limited Python skills then mobi takes priority over epub. (Order is low priority -> high priority).

An opf file takes priority over everything - That is: if an opf file is successfully read then other files are skipped.

And file-names are used as fallback if reading meta-data fails for whatever reason.

That would explain my problems but also offers a solution: I just need to create an opf file from the epub .

Martin
krischik is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to display meta data on the reader? eric11210 Sony Reader 2 08-07-2010 07:39 PM
ePub meta data brudigia ePub 4 07-26-2010 12:58 PM
set meta data with ebook-meta and ebook-convert krischik Calibre 6 01-19-2010 11:40 AM
Meta data problems melhall Sony Reader 1 03-31-2008 10:58 PM
PRS-500 Meta Data in Vista not available Gamgee72 Sony Reader Dev Corner 2 09-12-2007 05:12 PM


All times are GMT -4. The time now is 06:54 PM.


MobileRead.com is a privately owned, operated and funded community.