04-03-2011, 05:05 PM | #1 |
Junior Member
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... |
04-03-2011, 05:16 PM | #2 |
creator of calibre
Posts: 43,860
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.
|
Advert | |
|
04-04-2011, 05:45 PM | #3 |
Junior Member
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 |
04-04-2011, 05:58 PM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're welcome
|
|
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 |