Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2014, 11:51 PM   #1
damien18
Junior Member
damien18 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2013
Device: Marvin 3 (iPadOS)
Cracked.com: Missing images and small image captions

Within the last 10 days or so, cracked.com seems to have changed how images within its articles are displayed, as they are no longer appearing in an epub that was downloaded using the current calibre version (2.10, running under Windows 7 Ultimate 64-bit) and cracked.com recipe. Unfortunately, my knowledge of recipes is very limited, and I have no idea how to fix this.

Additionally, the captions underneath the images are very small, and difficult to read on my Kobo Glo. I tried to fix this by adding the following line to the recipe, but it has no effect:
Code:
extra_css = 'font[size="1"]:not([style]) { font-size: 12px; }'
I also tried the following, in case the ":not" selector is unsupported, but with the same results:
Code:
extra_css = 'font[size="1"] { font-size: 12px; }'
Both of the above selectors work as expected on the actual site (using Firefox with the "Stylish" extension), so I don't think it's an issue with the CSS itself.

Can anyone help?
damien18 is offline   Reply With Quote
Old 11-27-2014, 01:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,525
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...9edae7961e1981
kovidgoyal is offline   Reply With Quote
Advert
Old 11-27-2014, 10:55 PM   #3
damien18
Junior Member
damien18 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2013
Device: Marvin 3 (iPadOS)
This is fantastic. The images are back, and the captions are easy to read. Thanks very much.

Even the "Photoplasty" articles are displaying images now, and those have always been broken. I did notice that they are only displaying the first two pages of the article, but that's still a huge improvement over no images at all (most "Photoplasty" images contain lots of text that would probably be difficult to read on an e-reader anyway).

Once again, many thanks for the effort.
damien18 is offline   Reply With Quote
Old 11-27-2014, 11:11 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,525
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you increase recursions = 1 to a higher number in the recipe you should be able to download multi-page articles as well.
kovidgoyal is offline   Reply With Quote
Old 12-01-2014, 12:14 AM   #5
damien18
Junior Member
damien18 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2013
Device: Marvin 3 (iPadOS)
I hadn't thought to try that, because with recursions=1, two-page articles were downloading properly. Now I see that recursions must be set to one less than the maximum number of pages to be downloaded. I set it to 10, because the largest number of pages I was able to find in any recent article was 11.

And, I like the redesign of the "Add custom news source" dialog. It's a bit easier to use now.

Thanks again.
damien18 is offline   Reply With Quote
Advert
Reply

Tags
calibre, cracked.com, recipe


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to format images and captions in EPUB silviolorusso ePub 6 05-03-2013 08:51 AM
Epubs: keeping images and captions together verydeepwater ePub 13 12-02-2012 05:33 PM
Image captions --- how to keep with image? GrannyGrump ePub 7 01-31-2012 01:38 PM
Images and captions in epub Balaji Workshop 3 08-19-2011 09:00 AM
captions and images together detede Apple Devices 11 06-14-2010 10:00 PM


All times are GMT -4. The time now is 10:49 AM.


MobileRead.com is a privately owned, operated and funded community.