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 08-20-2013, 09:02 AM   #1
hzsolt
Junior Member
hzsolt began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
How "ebook-convert *.mobi" works?

Hi All!

For an automated project, I'm trying to figure out what happens when I convert an OEB book to mobi. I tought that it simply packs the html files to the PalmDOC format but there is something special:

If I make a "clean" (almost unformatted) OEB e-book than converts it to mobi and back the new one will have many calibre1, calibre2, etc. CSS-styles. Also HTML comments are lost.

What are these? Are they there for compatibility purposes? Are they generated at packaging to mobi or at unpacking?

Could you please help me find the part of code in calibre which is related to mobi converting or in charge of these styles?

I'm intrested in e-books and would like to understand better the way "it works".

Thanks a lot in advance!
hzsolt is offline   Reply With Quote
Old 08-20-2013, 10:19 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,838
Karma: 12535517
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
This section of the manual might be a good place to start for an overview of the conversion pipeline.
DoctorOhh is offline   Reply With Quote
Old 08-20-2013, 11:12 AM   #3
hzsolt
Junior Member
hzsolt began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2011
Device: Kindle 3
Quote:
Originally Posted by DoctorOhh View Post
This section of the manual might be a good place to start for an overview of the conversion pipeline.
Thanks! According to this, I only want to use the "output plugin" of the process. So my input would be in format like "processed" (just before passing) and I don't want calibre to format or tidy it.

Is there a way to do this? It seems that ebook-convert does not have any arguments like this.

Last edited by hzsolt; 08-20-2013 at 11:17 AM.
hzsolt is offline   Reply With Quote
Old 08-20-2013, 11:34 AM   #4
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: 25,908
Karma: 5035037
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You cannot, the MOBI OUtput plugin depends on the rest of the conversion pipeline having been run first. If you want more details, read the code, the structure of the code is described in the dsetting up development environment section of the user manual.
kovidgoyal 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
ePub to mobi convert as "pure" as possible gers1978 Conversion 4 05-23-2014 07:12 PM
Convert "The Economist" EPUB to MOBI = Lose Navigation to Articles and Sections dukelov3 Conversion 3 03-08-2013 10:11 PM
How to convert an EPUB to MOBI with "Sections & Articles" feature? donnie888 Conversion 0 10-20-2012 10:29 PM
EPUB to MOBI: "Failed: Convert book 1 of 1" Jillo Introduce Yourself 4 02-20-2010 06:49 PM
Zune eBook Creator (RTextAsImage) - "Convert" text to images oleg.shastitko Reading and Management 10 01-28-2008 01:18 PM


All times are GMT -4. The time now is 10:06 AM.


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