04-16-2013, 07:12 PM | #1 |
Watching the Sky
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> |
04-17-2013, 03:13 AM | #2 |
US Navy, Retired
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. |
Advert | |
|
04-20-2013, 12:08 AM | #3 |
creator of calibre
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. |
04-20-2013, 11:22 AM | #4 | |
Watching the Sky
Posts: 234
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
|
Quote:
Thanks for the feedback. |
|
04-20-2013, 11:24 AM | #5 |
creator of calibre
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.
|
Advert | |
|
|
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 |