|
|
#1 |
|
Enthusiast
![]() 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=')
Edit2: ['--base-font-size', '6'] fixed this. Thank you, kovidgoyal.
Last edited by moneytoo; 06-01-2008 at 03:59 PM. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error with adding font to EPUB news recipe | megabadd | Calibre | 2 | 01-11-2010 11:16 AM |
| Smaller Monospaced Font Possible? | Achilles | Kindle Developer's Corner | 2 | 01-03-2010 12:37 AM |
| Global html2lrf/recipe base-font-size? | streaml1ne | Calibre | 1 | 07-06-2008 12:59 PM |
| Way to make font smaller in converted Lit files? | MidknytOwl | Sony Reader | 3 | 06-16-2008 09:47 AM |
| Calibre recipe Question | astrodad | Calibre | 3 | 05-23-2008 02:05 PM |