Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-16-2013, 08: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: 231
Karma: 634112
Join Date: Oct 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, 04: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: 8,909
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: 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
Old 04-20-2013, 01: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: 26,465
Karma: 5383257
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, 12:22 PM   #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: 231
Karma: 634112
Join Date: Oct 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, 12:24 PM   #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: 26,465
Karma: 5383257
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 08:30 PM.


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