IGN:Preliminarywindows driver for the e-shinebook

This commit is contained in:
Kovid Goyal 2009-10-23 10:44:58 -06:00
parent eac47f65fa
commit 46b1bd1b64
3 changed files with 20 additions and 1 deletions

View File

@ -36,6 +36,16 @@ class Uncrate(BasicNewsRecipe):
remove_tags_after = dict(name='div', attrs={'class':'serif'})
remove_tags = [dict(name=['object','link','script','iframe','form'])]
extra_css = '''
.serif{font-family:Georgia,Rockwell,'Times New Roman',Times,serif; font-weight:normal; font-size: x-small; }
.lefttext{font-family:Georgia,Rockwell,'Times New Roman',Times,serif; font-weight:normal; font-size: x-small; }
h1{ font-family:Verdana,Arial,Helvetica,sans-serif;font-size:x-large; font-weight:bold;}
.byline{ font-family:Verdana,Arial,Helvetica,sans-serif;font-size: x-small; color:#FF4000;}
.posted{ font-family:Verdana,Arial,Helvetica,sans-serif;font-size: x-small;}
.answer{ font-family:Verdana,Arial,Helvetica,sans-serif;font-size: x-small;}
a{color:#FF4000;}
'''
feeds = [(u'Articles', u'http://feeds.feedburner.com/uncrate')]
def preprocess_html(self, soup):

View File

@ -361,7 +361,7 @@ from calibre.customize.profiles import input_profiles, output_profiles
from calibre.devices.bebook.driver import BEBOOK, BEBOOK_MINI
from calibre.devices.blackberry.driver import BLACKBERRY
from calibre.devices.cybookg3.driver import CYBOOKG3, CYBOOK_OPUS
from calibre.devices.eb600.driver import EB600, COOL_ER
from calibre.devices.eb600.driver import EB600, COOL_ER, ESHINEBOOK
from calibre.devices.iliad.driver import ILIAD
from calibre.devices.irexdr.driver import IREXDR1000
from calibre.devices.jetbook.driver import JETBOOK
@ -424,6 +424,7 @@ plugins += [
ANDROID,
CYBOOK_OPUS,
COOL_ER,
ESHINEBOOK,
ESLICK
]
plugins += [x for x in list(locals().values()) if isinstance(x, type) and \

View File

@ -67,3 +67,11 @@ class COOL_ER(EB600):
OSX_MAIN_MEM = 'COOL-ER eReader Media'
EBOOK_DIR_MAIN = 'my docs'
class ESHINEBOOK(EB600):
FORMATS = ['epub', 'pdf', 'txt']
VENDOR_NAME = 'LONGSHIN'
WINDOWS_MAIN_MEM = 'ESHINEBOOK'