View Single Post
Old 09-03-2008, 07:16 AM   #95
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
First user-supplied plugin for impserve...

I wrote (more like adapted) a plugin for impserve to force webpages to display in the smallest font, where possible.

This could be better tailored to make specific webpages work properly by adjusting some 'class' within a 'div'. Oh, well this is my first go with this idea. In essence, this is a proof-of-concept of a sorts that users can contribute and extend impserve's effectiveness!

Instructions:
=========
1. download the 'AdjustSmallestFont.py.txt' and rename 'AdjustSmallestFont.py'.
2. place the renamed file in your plugins directory (under your ebookutils/impserve directories).
3. run impserve as usual (I issue "run.py -a 127.0.0.1 -p 9090 shelf" from within a .bat file that I double-click. Yes, I'm lazy!)

Enjoy (and contribute back )!

p.s. To modify AdjustSmallestFont.py to increase the xx-small font, change/edit "<font size='1'>" to "<font size='2'>" for x-small font; 3 for small; 4 for medium; 5 for large; and 6 for x-large.
Attached Files
File Type: txt AdjustSmallestFont.py.txt (389 Bytes, 516 views)

Last edited by nrapallo; 09-03-2008 at 08:46 PM.
nrapallo is offline   Reply With Quote