View Single Post
Old 06-01-2008, 08:00 AM   #1
moneytoo began at the beginning.
Posts: 39
Karma: 20
Join Date: Oct 2007
Location: Czech Republic
Device: Sony PRS-505
[calibre] recipe - smaller font?


I'm making my own recipes but the font size seems to me too large. Is there any way how to make it smaller?
I tried adding following html2lrf_options but it doesnt seem to have any effect.
html2lrf_options = ['--base-font-size=6']
import re
class AdvancedUserRecipe1212265657(BasicNewsRecipe):
    title          = u''
    oldest_article = 7
    max_articles_per_feed = 5
    no_stylesheets = True  

    feeds = [(u'', u'')]

    filter_regexps = [r'default.aspx?textlist=1']

    preprocess_regexps = [
       (re.compile(r'<div id="ctl01_mnmosttop">.*<div id="ctl01_maindata">', re.DOTALL|re.IGNORECASE),
        lambda match: '</div>')]

    def print_version(self, url):
        return url.replace('', '')
Edit: Submited as ticket (#740)

Edit2: ['--base-font-size', '6'] fixed this. Thank you, kovidgoyal.

Last edited by moneytoo; 06-01-2008 at 02:59 PM.
moneytoo is offline   Reply With Quote