Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2008, 12:13 AM   #16
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Lightbulb

Quote:
Originally Posted by kovidgoyal View Post
I think I good solution is to add the infrastructure to allow users to add their own custom OPF -> output format tool via an option to "Add external tool"

Once the infrastructure is in place it will be easy to add profiles for imp and mobi based on impmake and mobigen.

Unfortunately, all my current calibre hacking time is allocated to other things, so the only way this will get done is if someone contributes a patch.

the way I envison it working is via "recipes" for tools. A recipe should define the command line options the tool accepts (at the very least a way to define the output file). Calibre can have a nice GUI to aid in the creation of recipes. Once a recipe is created, calibre will create a generic config dialog (like the LRF config dialog) based on the defined options and a user specified path to the actual binary and then it will be able to run the tool to convert any of the supported iinput formats into the desired output format (calibre already has code to generate an OPF file given an HTML file + metadata). calibre can ship with built-inrecipes for a couple of well known tools like mobigen and impmake.
I think that's a very good approach. That allows us to reuse all the smart XXX -> OPF/EPUB tools already in calibre, and then use something else externally for the rest. Also, now that calibre will be storing the ebooks in a directory structure it will be easier to serve books via impserve.

What I'd like to propose is this:
  1. add support for creating tool recipes (via plugins??) and specify which formats they are able to create [with a given OPF as input].
  2. add support for the configuration for the above [if they need any], otherwise initially we can just require the creation of a new recipe.
  3. add a new type of tool recipe (which should be selectable from the menu) which can be autostarted [obviously this should be configurable] when calibre starts (e.g. for impserve which will serve the ebooks from the ebooks directory, eb1150 for handling the usb proxy). This can be a seperate process or a new thread in calibre itself (I'd prefer the latter approach).
  4. add support for the 1100 similiar to the prs500 as it is a "push" USB protocol, unlike the 1150/1200 which requires a proxy (impserve) to get it working.
If that is acceptable to Kovid, then that would mean first-class support for the 1100/1150/1200 [including content creation + serving] which I had hoped to do around a year ago but never got around to do I'd appreciate some pointers on which parts of the code would need to be customized (or maybe we could just mail/chat here or on IRC) to take up the discussion.
ashkulz is offline   Reply With Quote
Old 09-03-2008, 12:20 AM   #17
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Quote:
Originally Posted by kovidgoyal View Post
But impmake exists only on windows and under wine?
impmake uses SB PubX (bundled with eBook Publisher) via COM, which exists only on Windows. eBook Publisher is also available on OS X, but I don't know if it can be automated (AppleScript?) as I don't have access to a Mac. For Linux, WINE is the only solution.

Quote:
Originally Posted by scruffy View Post
I think there are a few options...

1) impmake

1a) or maybe using lit2sb (ie the perl script that Nick extracted/tweaked see https://www.mobileread.com/forums/showthread.php?t=28138 )

1b) or any other tool that needs the SBPublisher.Builder to make an imp.

Since Calibre can generate a opf and a cover image, a reduced version of lit2sb (ie ignoring the lit extract code parts) should suffice. Requires windows for SBPublisher, so it's not cross platform. [That hasn't stopped other tools like PDFRead from this answer, just don't continue on to creating an IMP on non-windows platforms... stop with the html/OPF/Cover, which is near exactly where Calibre stands today.]

2) Convert code (written in VB?) into python from
http://krausyaoj.tripod.com/reb1200.htm
License is open enough to allow using hunks of code wholesale likely, and at the end, hopefully we have a python native imp builder. (subst Perl or other language for Python if you wish.)

3?) rbmake: http://rbmake.sourceforge.net/rbmake.html
Completely opensource, and has the advantage of supporting older Rocket readers. But converting from rb to imp isn't trivial, though... so this isn't really a good answer, since it would require using something else to convert to imp still... but might be worth considering, if someone wanted the older readers to work with Calibre in the future.
All of the tools mentioned in 1 and 2 internally use the SBPubX via COM as no one has managed a complete reverse engineering yet [you'd need to extract the fonts and parse the bitmap NFNT fonts from the DLL + reproduce their HTML renderer -- I've tried it and given it up in front of taking the impmake approach]. For rbmake, it's best if we call the executable like I discussed above.
ashkulz is offline   Reply With Quote
Advert
Old 09-03-2008, 12:45 AM   #18
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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
On the calibre development page there's a link to a mailing list, I suggest you subscribe to that and we can hold the discussion there (I find IM to intrusive).

I'll give you some pointers on how to write a plugin for impmake. It will basically need to do two things:

1) define a set of options
2) accept a path to an OPF file and a path to an output file and do the conversion.
3) Create a GUI config dialog based on 1)

I'll add an option to calibre to let the user specify his desired output format (and if the plugin exists for it and the user can point to a working binary) all conversion operations will output that format.
kovidgoyal is offline   Reply With Quote
Old 09-03-2008, 08:51 AM   #19
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
I've requested to join the calibre-devs team, hope we'll continue the discussion there
ashkulz is offline   Reply With Quote
Old 09-03-2008, 11:18 AM   #20
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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your request has been approved.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-03-2008, 01:43 PM   #21
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
I'll be away for a few days -- there's a religious festival going on [ganpati] and I have to visit lots of relatives, so maybe we can resume discussion after that
ashkulz is offline   Reply With Quote
Old 09-03-2008, 02:15 PM   #22
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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sure, it's been a while since my last ganpati...enjoy
kovidgoyal is offline   Reply With Quote
Old 10-10-2008, 08:15 PM   #23
askyn
Addict
askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.askyn ought to be getting tired of karma fortunes by now.
 
askyn's Avatar
 
Posts: 300
Karma: 1006538
Join Date: Jul 2008
Device: Kindle Paperwhite (11th Gen)
Just wondering if this is still a possiblity of happening?

I use a 1150 and would love a centeral program to use as a library / converstion spot.

Thank you.
askyn is offline   Reply With Quote
Old 10-11-2008, 04:14 AM   #24
ashkulz
Addict
ashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enoughashkulz will become famous soon enough
 
ashkulz's Avatar
 
Posts: 350
Karma: 705
Join Date: Dec 2006
Location: Mumbai, India
Device: Kindle 1/REB 1200
Nope, I've been a bit busy in real life ... so I haven't really got around to talking with Kovid.
ashkulz is offline   Reply With Quote
Old 12-07-2009, 02:07 PM   #25
bookfanmd
Addict
bookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura about
 
bookfanmd's Avatar
 
Posts: 246
Karma: 4476
Join Date: May 2009
Location: US - Maryland
Device: Sony 300/505/T1 Nook STWG Kobo Glo Kobo Aura HD KDX iPad1 K3 KT PW2
Did anything ever happen with the proposed changes to support .imp? It would be wonderful if .imp was included.
bookfanmd is offline   Reply With Quote
Old 12-07-2009, 10:49 PM   #26
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
You may be able to use eBook Publisher (from the people who own the hardware for the eBookwise) to convert ePubs (see this thread). So build an ePub in Calibre, then import into eBook Publisher?

They're not prettied up (it doesn't like some of Calibre's ePub coding), but the couple I've made are definitely readable.
FizzyWater is offline   Reply With Quote
Old 12-07-2009, 11:14 PM   #27
bookfanmd
Addict
bookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura aboutbookfanmd has a spectacular aura about
 
bookfanmd's Avatar
 
Posts: 246
Karma: 4476
Join Date: May 2009
Location: US - Maryland
Device: Sony 300/505/T1 Nook STWG Kobo Glo Kobo Aura HD KDX iPad1 K3 KT PW2
Thanks. I just started using the mobi2imp today and will have to check this one out. It would just be so nice if Calibre did it for us.
bookfanmd is offline   Reply With Quote
Old 12-11-2009, 09:58 AM   #28
Rolnikov
Junior Member
Rolnikov began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2008
Device: Rocket eBook Pro
I think there must have been some developments, because you can output to RB format now from Calibre. (The files seem to crash the REB, though.)
Rolnikov is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ETI or IMP files for Calibre RikaStrom Conversion 6 03-19-2021 10:47 AM
Calibre support of new Kindle 3 chilady1 Calibre 7 01-15-2011 04:36 PM
Does Calibre Support Kindle DX? Sonist Calibre 16 06-20-2009 07:59 PM
Does Calibre support DR1000S? physics@war Calibre 1 05-21-2009 02:48 AM
BeBook support in Calibre timing Calibre 0 05-18-2009 05:30 AM


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


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