Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-03-2011, 05:05 PM   #1
emretinaztepe
Junior Member
emretinaztepe began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2011
Device: Reeder IX
Calibre Conversion Help

Hi Everyone,

I recently wrote a program in order to easily add Turkish Language Support to epub files created with Calibre.

It works good and does everything automatically like editing conten.opf file, editing stylesheet.css, adding fonts to EPUB files and it also supports basic conversion pdf to epub. But if the source file is not CALIBRE CONVERTED, it can't add language support.

The problem is : eventhough EPUB is converted to EPUB by the help of command line, i cant see any content.opf and stylesheet.css added to it. If perform this step manually via Calibre, they exist in the output.

I use:
ebook-convert "source.epub" "destination.epub" --verbose
command line?

What should i do to force Calibre add CONTENT.OPF and STYLESHEET.CSS to the output?

Thanks...
emretinaztepe is offline   Reply With Quote
Old 04-03-2011, 05:16 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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no way to force a particular file structure in the output EPUB. To make you application robust you have to parse container.xml in the EPUB to find the OPF and then parse the OPF to find the stylesheet.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-04-2011, 05:45 PM   #3
emretinaztepe
Junior Member
emretinaztepe began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2011
Device: Reeder IX
Thank you very much

Thanks Kovid,

One for the answer and ten times more for Calibre
emretinaztepe is offline   Reply With Quote
Old 04-04-2011, 05:58 PM   #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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Conversion Error eucalyptus Calibre 1 11-17-2010 11:09 AM
Calibre 0.7.21, conversion issues. Nadrek Calibre 3 10-02-2010 09:48 PM
Opus Best conversion settings in Calibre Crusader Bookeen 4 10-17-2009 02:14 PM
Calibre Conversion Tutorial ForceMd Calibre 19 08-11-2009 02:34 AM
Calibre conversion errors? nick_f Sony Reader 2 03-03-2009 05:44 AM


All times are GMT -4. The time now is 05:56 PM.


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