|  03-16-2010, 06:37 PM | #1 | 
| Member   Posts: 24 Karma: 137 Join Date: Jan 2010 Device: PRS-900 | 
				
				comic.com recipe
			 
			
			it's looks fine in calibre but once i put it on my reader (PRS-900) it cuts part of the page off on the right side.  It's like it's not formated for the screen size on the 900 i have tried to recreate the ebook with the output being for the 900 but that didnt help either
		 | 
|   |   | 
|  03-16-2010, 08:53 PM | #2 | ||
| Wizard            Posts: 4,004 Karma: 177841 Join Date: Dec 2009 Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T | Quote: 
 Here's what Kovid wrote about this: Quote: 
 Code:     def preprocess_html(self, soup):
        return self.adeify_images(soup)You can also try using my new GoComics recipe. It has an image size control that is not available in my Comics.com recipe. There are some strips available in both, so perhaps the strips you want from Comics.com will be found in the newer GoComics recipe.. | ||
|   |   | 
|  03-17-2010, 11:03 AM | #3 | 
| Member   Posts: 24 Karma: 137 Join Date: Jan 2010 Device: PRS-900 | 
			
			Ok I added that extra part to the recipe and it helped alot there is still a very very small piece missing but everything is at least readable now. thanks for your help
		 | 
|   |   | 
|  03-17-2010, 01:22 PM | #4 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2010 Device: Kindle 2 | 
			
			would adding def preprocess_html(self, soup): return self.adeify_images(soup) help with the gocomics recipe you shared? it's very difficult to read the strips on my kindle 2. Otherwise, it works great. if adding that will help, where do I put it? | 
|   |   | 
|  03-17-2010, 05:40 PM | #5 | |
| Wizard            Posts: 4,004 Karma: 177841 Join Date: Dec 2009 Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T | Quote: 
 Change the return line as follows: Code:     def preprocess_html(self, soup):
        if soup.title:
            title_string = soup.title.string.strip()
            _cd = title_string.split(',',1)[1]
            comic_date = ' '.join(_cd.split(' ', 4)[0:-1])
        if soup.h1.span:
            artist = soup.h1.span.string
            soup.h1.span.string.replaceWith(comic_date + artist)
        feature_item = soup.find('p',attrs={'class':'feature_item'})
        if feature_item.a:
            a_tag = feature_item.a
            a_href = a_tag["href"]
            img_tag = a_tag.img
            img_tag["src"] = a_href
            img_tag["width"] = self.comic_size
            img_tag["height"] = None
        return self.adeify_images(soup)Last edited by Starson17; 03-17-2010 at 05:56 PM. Reason: Forgot I'd used preprocess_html in GoComics | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Help with a recipe for "What the Duck" web comic | jphphotography | Recipes | 2 | 10-12-2010 10:20 PM | 
| Comic Conversion | RussMeyer | Kobo Reader | 0 | 05-02-2010 04:21 PM | 
| Comic strips? | ziegl027 | Reading Recommendations | 1 | 01-01-2010 10:32 PM | 
| Comic PDF | mrsonyreader | Sony Reader | 5 | 08-18-2008 03:43 AM | 
| comic books | emale07 | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 08-09-2003 10:02 AM |