01-07-2010, 02:00 PM | #1 | ||
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: nook
|
helloworld plugin does nothing
Here is how to replicate:
1. Ubuntu 9.10 2. Install calibre by Quote:
4. Install it by: Quote:
6. Try converting an .fb2 book to epub 7. Open epub with view in specific format and check metadata Publisher is unchanged from previous (NONE in my case) What am I doing wrong? I'd like to scrap a plugin for postprocessing epubs after conversion to include fonts and necessary corrections. However, can't even start since the only examle python plugin I could find (helloworld) does not even work for me. Suggestions are welcomed! |
||
01-07-2010, 02:11 PM | #2 |
creator of calibre
Posts: 44,550
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC that plugin only works for LRF output. If you're looking for example plugins, the calibre source code is full of them. A lot of calibre functionality is implemented as plugins. There's no real difference between a builtin and a custom plugin.
|
Advert | |
|
01-07-2010, 02:17 PM | #3 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: nook
|
1. The source code of that plugin explicitly says:
file_types = set(['epub', 'lrf']) # The file types that this plugin will be applied to I do not see a reason why it would not work on epub. Is there one? 2. Can you point exactly to a file that is a FileTypePlugin in calibre source tree? The only one I found with grep is HTML2ZIP plugin, which is a part of pluginize/src/calibre/customize/builtins.py Where else to look? Thank you! |
01-07-2010, 02:20 PM | #4 |
creator of calibre
Posts: 44,550
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The reason it only works for LRF is because the whole postprocess set of plugins only work for lrf (this is an oversight from the time when calibre's conversion susbsytem was refactored, I forgot to migrate the postprocess plugins).
If you want to write a postprocess plugin,I suggest waiting for the next release, when this will be rectified. |
01-07-2010, 02:22 PM | #5 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: nook
|
Thanks! Any estimate when is the next release?
|
Advert | |
|
01-07-2010, 02:28 PM | #6 |
creator of calibre
Posts: 44,550
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre is released typically once every six days
|
01-07-2010, 02:31 PM | #7 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: nook
|
Wow! Superimpressive! This means that Sunday I will be able to write that postprocessing plugin for epub. Great!
Thanks! |
01-07-2010, 02:33 PM | #8 |
creator of calibre
Posts: 44,550
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No guarantees, a release has been known to take as long as 8 days on occasion
|
01-11-2010, 03:56 AM | #9 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: nook
|
Thanks a lot! The new release 0.6.33 made the helloworld plugin work and my modification seems to be doing something also.
BTW, is it known where nook mounts its hard drive (the path relative to the root) internally? The one that is displayed as nook when inserted into a USB port of a linux machine? I could save some space by pointing to the fonts at a common location instead of zipping the fonts right into .epub |
01-11-2010, 12:15 PM | #10 |
creator of calibre
Posts: 44,550
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dunno, I've never actually used a Nook, the driver in calibre was written using user supplied data.
|
04-18-2010, 05:03 AM | #11 |
Junior Member
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: nook
|
Did the system break again in the latest versions? hello world plugin seems to not work again
|
04-18-2010, 05:23 AM | #12 |
creator of calibre
Posts: 44,550
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not that I am aware of. I used a 3rd party plugin just the other day. The only thing I can think of is to make sure your helloworld plugin has its name set.
Last edited by kovidgoyal; 04-18-2010 at 06:11 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DR800 FB2 plugin | yuri_b | iRex | 15 | 05-02-2011 10:18 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 01:11 PM |
metadata plugin | redneck_momma | Plugins | 1 | 05-21-2010 09:41 PM |
Calibre Plugin | zdavatz | Plugins | 17 | 05-20-2010 02:08 PM |
iLiad First HelloWorld tutorial, a n00b primer First Hello World Tutorial, a n00b primer | mind | iRex Developer's Corner | 13 | 09-19-2008 10:43 AM |