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 04-16-2013, 07:12 PM   #1
buffaloseven
Watching the Sky
buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.
 
buffaloseven's Avatar
 
Posts: 234
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
A Couple Questions About News Fetching

I really enjoy the Calibre news fetching capabilities, but I had two questions about it:

1. Is there any way that images can be centered on the page in articles? Right now, the images are always left-aligned, which while not a huge deal, is a small touch that could be made better.

2. Is there any way for the processor to better handle quotes and captions? Right now they're embedded into the ePub as straight
Code:
<p>...</p>
blocks, when they really should have some sort of styling applied to them to denote them as separate typographic features.
buffaloseven is offline   Reply With Quote
Old 04-17-2013, 03:13 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Moderator Notice
Moved thread to the Recipes forum since this is where the magic of formatting downloaded news articles happens. Hopefully someone will have some insight into your question.
DoctorOhh is offline   Reply With Quote
Advert
Old 04-20-2013, 12:08 AM   #3
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Both those depend on the source for the news downloads, if images are centered in the source, they will be centered in the output and so on.

You could process the downloaded HTML to do it, by implementing the preprocess_html() method, or using extra_css in the recipe, but the details of those implementations are specific to the source website.
kovidgoyal is offline   Reply With Quote
Old 04-20-2013, 11:22 AM   #4
buffaloseven
Watching the Sky
buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.
 
buffaloseven's Avatar
 
Posts: 234
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
Both those depend on the source for the news downloads, if images are centered in the source, they will be centered in the output and so on.

You could process the downloaded HTML to do it, by implementing the preprocess_html() method, or using extra_css in the recipe, but the details of those implementations are specific to the source website.
Okay; since I haven't seen images centred on my Kobo Glo, despite the source having images centred, it could be a problem specific to markup for the Glo parser. I'll take a peek at seeing if I can re-format the code to fit it there. I'm downloading from Instapaper, which should standardize any code I'm processing.

Thanks for the feedback.
buffaloseven is offline   Reply With Quote
Old 04-20-2013, 11:24 AM   #5
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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Many recipes strip out the css by setting no_stylesheets = True, check that the recipes you are using dont do this.
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fetching News UI fafaforza Calibre 3 08-24-2012 12:59 AM
Fetching news failed Steven630 Recipes 2 07-13-2012 12:48 AM
Which is the module of fetching news? cathre Calibre 3 09-19-2011 11:59 PM
Fetching News Zerenthal Library Management 4 08-15-2011 03:17 PM
A couple questions about News CheriePie Calibre 10 03-03-2009 06:18 AM


All times are GMT -4. The time now is 12:23 AM.


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