View Single Post
Old 04-15-2014, 08:16 AM   #31
cram1010 began at the beginning.
Posts: 16
Karma: 10
Join Date: Apr 2012
Device: Bq cervantes
Typographical styleshhet

Gutenweb is a typographical stylesheet I have developed to get up and runing when generating html or epub documents. It uses some very known typographical principes and it adapts to screen or print media.

It can be used with calibre recipes to get default styles that will look nice and readable. To use it, you can do something like this:

import urllib
class MyRecipe (BasicNewsRecipe):
  # some code

  no_stylesheets = True
  extra_css = urllib.urlopen('').read().replace('@charset "UTF-8";', '')

 # more code
cram1010 is offline   Reply With Quote