View Single Post
Old 05-03-2012, 07:11 AM   #215
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: 45,494
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes it needs to be another stylesheet(s). You will want to collect all the different sets of font-face/page margin rules. Create new styleseets for every distinct set and then link to the appropriate stylesheet in every html file. Look at stylizer.py and flatcss.py, where all the stylesheet processing is done.

In your case that will mean one extra stylesheet in the resulting epub. For more complex books it will result in upto n+1 stylesheets where n is the number of html files.

Last edited by kovidgoyal; 05-03-2012 at 07:13 AM.
kovidgoyal is offline   Reply With Quote