Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2011, 04:06 PM   #1
slex
Addict
slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.slex ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 1125790
Join Date: Nov 2008
Location: Bulgaria
Device: Kindle 4 NT, Onyx Boox M92
The option "--extra-css" doesn't work

I try it both in the GUI -> Preferences - Conversion -> Common options -> Conversion -> Extra CSS

and as an option to the command line ebook-convert.

I want to modify the CSS of epub conversion, but it makes no changes to the .css file. When running from the console, it shows some info as if implementing the CSS, but showing some problems, something like

Property: Not valid for profile "['CSS Fonts Module Level 3 @font-face properties']" but valid "CSS Level 2.1" value: "Liberation Mono", monospace [73:5: font-family]


I try to make epub files use Liberation fonts. The CSS is valid, if I edit it manually after conversion, it works OK, but Calibre doesn't apply it at the process of conversion.

I use Calibre 0.7.38 on Fedora 14.

Last edited by slex; 02-13-2011 at 04:17 PM.
slex is offline   Reply With Quote
Old 02-19-2011, 07:21 AM   #2
tarzan
Junior Member
tarzan began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: prs650
Very similar problem

I had e very similar problem on calibre 0.7.46. I was using the news recipe Kathimerini to get my news from Greece, but when I got that in my PRS 650 the accented (tonos , modern greek monotonic) fonts were replaced by question marks.

After many hours of happily swearing at Sony and the world in general, I decided to get some free fonts (GFSArtemisia from http://www.greekfontsociety.gr/) put them in a folder named "fonts" and add the following CSS to the EPUB:

@font-face {
font-family: "Arial";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/GFSArtemisia.otf);
}

@font-face {
font-family: "Arial";
font-weight: bold;
font-style: normal;
src: url(res:///Data/fonts/GFSArtemisiaBold.otf);
}

@font-face {
font-family: "Arial";
font-weight: normal;
font-style: italic;
src: url(res:///Data/fonts/GFSArtemisiaIt.otf);
}

@font-face {
font-family: "Arial";
font-weight: bold;
font-style: italic;
src: url(res:///Data/fonts/GFSArtemisiaBoldIt.ttf);
}

body {
font-family: "Arial";
}


I tried converting EPUB to EPUB and adding the extra CSS through the GUI but that did not work.

I also tried to fix my problem to add the extra_css, by modifying the news recipe python script.

But nothing.

The only way I got it to work is by right clicking on the book and selecting "tweak EPUB", exploding the epub, adding the above css fragment to the stylesheet.css file and then rebuilding the EPUB, which worked fine in my PRS 650 (I hope Sony burns in hell for the time they wasted me :-) ).

This sounds like a calibre bug to me.
tarzan is offline   Reply With Quote
 
Advertisement
Old 02-19-2011, 07:26 AM   #3
tarzan
Junior Member
tarzan began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2011
Device: prs650
My reply is in the moderator queue, but I have to leave my computer now, I just wanted to update that I am actually using 0.7.45 not 0.7.46 as i said in the previous post
tarzan 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 CSS versus "Regular" CSS konrad ePub 4 02-18-2011 10:29 AM
PRS-650 Extra Mounted Volume "Setting" slantybard Sony Reader 12 09-23-2010 04:51 AM
using "Extra CSS" box RedRoverJ Calibre 4 06-25-2010 08:08 PM
Firmware Update No "Update your Kindle" option in "Settings" shimoncellos Amazon Kindle 4 05-26-2010 06:37 PM
"Menu" and "Mark" keys does not work murad Sony Reader 4 07-11-2009 01:35 PM


All times are GMT -4. The time now is 03:33 AM.


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