Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre


Thread Tools Search this Thread
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with adding font to EPUB news recipe megabadd Calibre 2 01-11-2010 10:16 AM
Smaller Monospaced Font Possible? Achilles Kindle Developer's Corner 2 01-02-2010 11:37 PM
Global html2lrf/recipe base-font-size? streaml1ne Calibre 1 07-06-2008 11:59 AM
Way to make font smaller in converted Lit files? MidknytOwl Sony Reader 3 06-16-2008 08:47 AM
Calibre recipe Question astrodad Calibre 3 05-23-2008 01:05 PM

All times are GMT -4. The time now is 05:07 AM. is a privately owned, operated and funded community.