View Single Post
Old 11-18-2010, 06:53 AM   #9
boocko
Junior Member
boocko began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: kindle3
I don't know hot to explain it more exactly...

OK, make an empty folder, TEST. Copy there any recipe, e.g. cnn.recipe file, that is in Calibre directory under resources\recipes. You can open the file and see, that it includes a LOT of extra_css:

Quote:
extra_css = '''
.cnn_strycntntlft{font-family :Arial,Helvetica,sans-serif;}
h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small}
.cnnTxtCmpnt{font-family :Arial,Helvetica,sans-serif; font-size: x-small}
.cnnTMcontent{font-family :Arial,Helvetica,sans-serif; font-size :x-small;color:#575757}
.storytext{font-family :Arial,Helvetica,sans-serif; font-size:small}
...
Then go to command line in TEST folder, and run:

ebook-convert cnn.recipe cnn --test -vv

You will find a new folder called CNN. In the folder, there is downloaded HTML structure.
I'm trying to find out, where in this HTML structure the above quoted extra_css were inserted. According to the manual, it should be somewhere there, but I can't find it.
boocko is offline   Reply With Quote