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

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 07-02-2011, 08:11 PM   #1
RamZesS
Junior Member
RamZesS began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2011
Device: Sony PRS-505
When some <MetadataWriterPlugin> is used

Can somebody explain me when <MetadataWriterPlugin> is used, in which context or conversion process phase?
Is it possible for a user to call it from UI in order to apply current book metadata to the selected book format?

If I provide <MetadataReaderPlugin> for some book format should I develop the <MetadataWriterPlugin> as well?
(I looked up in the code, it looks like not all build-in book formats have both type of plugins)
RamZesS is offline   Reply With Quote
Old 07-02-2011, 08:43 PM   #2
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: 26,130
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
writer plugins are used when ever a book is exported from the calibre library via save to disk/send to device/the content server.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 07-03-2011, 11:50 AM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,460
Karma: 986493
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The reader and writes are also used by some conversion plugins. Instead of duplicating code I often put the metadata stuff into the reader/writer class and use it in the conversion plugin.

Quote:
Originally Posted by RamZesS View Post
If I provide <MetadataReaderPlugin> for some book format should I develop the <MetadataWriterPlugin> as well?
(I looked up in the code, it looks like not all build-in book formats have both type of plugins)
You do not need to provide both. It's nice to have both but not aways feasible. As you noted not all formats have both.
user_none is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -4. The time now is 11:32 AM.


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