|04-03-2011, 06:05 PM||#1|
Join Date: Apr 2011
Device: Reeder IX
Calibre Conversion Help
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.
ebook-convert "source.epub" "destination.epub" --verbose
What should i do to force Calibre add CONTENT.OPF and STYLESHEET.CSS to the output?
|04-03-2011, 06:16 PM||#2|
creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
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.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Calibre Conversion Error||eucalyptus||Calibre||1||11-17-2010 12:09 PM|
|Calibre 0.7.21, conversion issues.||Nadrek||Calibre||3||10-02-2010 10:48 PM|
|Opus Best conversion settings in Calibre||Crusader||Bookeen||4||10-17-2009 03:14 PM|
|Calibre Conversion Tutorial||ForceMd||Calibre||19||08-11-2009 03:34 AM|
|Calibre conversion errors?||nick_f||Sony Reader||2||03-03-2009 06:44 AM|