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

Hi,

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.
Code:
html2lrf_options = ['--base-font-size=6']
Code:
import re
class AdvancedUserRecipe1212265657(BasicNewsRecipe):
    title          = u'MobilMania.cz'
    oldest_article = 7
    max_articles_per_feed = 5
    no_stylesheets = True  

    feeds = [(u'MobilMania.cz', u'http://www.mobilmania.cz/textrss')]

    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('http://www.mobilmania.cz/TextArtSelect.aspx?article=', 'http://www.mobilmania.cz/TextArtSelect.aspx?img=1&article=')
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