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-24-2012, 02:01 PM   #16
wcooley
Junior Member
wcooley began at the beginning.
 
wcooley's Avatar
 
Posts: 8
Karma: 10
Join Date: Dec 2010
Device: Graphite Kindle DX
Quote:
Originally Posted by nbigaouette View Post
Thanks a lot for the recipe! It will be a lot easier to read offline. I really appreciate.

The only thing missing would be the inclusion of the comments section. The comments on lwn are of high quality and always interesting to read. Is that possible? It might be harder to include though...

Thanks again.
I agree that the comments on LWN are usually good reading themselves, but I chose to exclude them because it's not easy to represent the nesting of replies, which is context important for making sense of the replies. Also, I intend implement parsing the "One big page", rather than fetching all of the sections separately, and that page does not have the comments in-line. (I could still fetch the comments, of course, but it's one more thing to implement.)
wcooley is offline   Reply With Quote
Old 10-15-2012, 01:47 AM   #17
wcooley
Junior Member
wcooley began at the beginning.
 
wcooley's Avatar
 
Posts: 8
Karma: 10
Join Date: Dec 2010
Device: Graphite Kindle DX
I have updated the LWN recipe again:

https://raw.github.com/wcooley/calib..._weekly.recipe

There was some breakage due to a regex that was too loose and changes in the content of the site; I ended up rewriting the parse_index stuff quite a bit in the process.

Last edited by wcooley; 10-19-2012 at 05:22 PM.
wcooley is offline   Reply With Quote
 
Advertisement
Old 10-21-2014, 06:48 AM   #18
sakib
Junior Member
sakib began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2014
Device: Orsio b731, Pocketbook Basic 611
hi folks,
I've thought that quotes & quotes blocks in article could be italic, so that they're a bit easier to read.

Quotes and block quotes are widely used in LWN articles and
distinguished from other text by quotation marks and color.
Grayscale displays of ebook devices can't highlight them with
color, so change text style to italic for better reading experience.

Attached patch extends CSS in this way. Feel free to use it.
Thanks!
sakib is offline   Reply With Quote
Old 10-21-2014, 12:57 PM   #19
wcooley
Junior Member
wcooley began at the beginning.
 
wcooley's Avatar
 
Posts: 8
Karma: 10
Join Date: Dec 2010
Device: Graphite Kindle DX
Thanks sakib! Would you mind giving me a pull request in Github: https://github.com/wcooley/calibre_recipes? I'll try to take a look at your zip when I'm at a real computer (on phone now).
wcooley is offline   Reply With Quote
Old 10-22-2014, 12:45 PM   #20
sakib
Junior Member
sakib began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2014
Device: Orsio b731, Pocketbook Basic 611
Quote:
Originally Posted by wcooley View Post
Thanks sakib! Would you mind giving me a pull request in Github: https://github.com/wcooley/calibre_recipes? I'll try to take a look at your zip when I'm at a real computer (on phone now).
hi wcooley. Unfortunately I stopped using github (reasons are rather political). I suggest you to cherry-pick the patch with 'git am' if you'd like to keep it. Besides creating repository for sake of just a couple of patches seems a bit like overkill

ps. and also thank you for all the work you did to this recipe, so that editions look so nice now. I really appreciated it.
sakib is offline   Reply With Quote
Old 10-22-2014, 12:49 PM   #21
sakib
Junior Member
sakib began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2014
Device: Orsio b731, Pocketbook Basic 611
one more patch to sync book title w/ issue title

Title of weekly editions include release date in heading.
Book title currently appended with book creation date, but
they're not always the same, which could complicate
search if someone has big bunch of magazine issues
in her library.

It's should be easier to follow news if titles on site and
in library are the same. Feel free to use it.
Thanks!
sakib is offline   Reply With Quote
Old 11-12-2014, 02:23 PM   #22
sakib
Junior Member
sakib began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2014
Device: Orsio b731, Pocketbook Basic 611
Here's couple of patches that possibly can improve reading experience.
First one to outline several important articles' parts: 0001-recipes-lwn_weekly-outline-quize-box-authors.patch.zip
Code:
Fill authors names in articles headers with bg color
to separate them from article body. The same for
quiz boxes, plus outline them with border line,
as they're put directly within article's text.
Looks like this:
Before/After
Click image for larger version

Name:	outline_before_after.png
Views:	13
Size:	64.9 KB
ID:	130986
Click image for larger version

Name:	quiz_before_after.png
Views:	14
Size:	119.6 KB
ID:	130987

Second one to make in-article tables work: 0002-recipes-lwn_weekly-improve-table-handling.patch.zip
Code:
Site uses table layout a lot, both for page formatting
and within article's text, yet we clean up all tags
before & after article text, and remove what's left
from tables in-between, also removing useful tables
often embedded within articles. The better way seems
to keep only parts we actually interested about:
PageHeadline (article's title) and ArticleText and
not linearize table within ArticleText tag, thus
preserving useful tables.
Looks like this:
Before/After
Click image for larger version

Name:	table_before_after.png
Views:	14
Size:	101.0 KB
ID:	130988
Click image for larger version

Name:	table_before_after2.png
Views:	14
Size:	88.8 KB
ID:	130989

Patches can be generally useful and may be worth considering to cherry-pick them, as well as patch from previous post (#21)
sakib is offline   Reply With Quote
Old 11-12-2014, 10:44 PM   #23
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,438
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Merged.
kovidgoyal is offline   Reply With Quote
Reply

Tags
calibre, lwn, recipe

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe for KA-News.de tfeld Recipes 0 12-30-2010 06:45 PM
Request: Inquirer.net Recipe update zoilom Recipes 0 12-21-2010 02:06 AM
LWN article on OpenInkPot wallcraft OpenInkpot 2 10-16-2009 01:01 PM
News.com: Music, movie lobbyists push to spy on your Net traffic Steven Lyle Jordan News 14 08-28-2008 04:13 AM
Gentoo Weekly News, Handbooks in Plucker format hacker Workshop 5 08-28-2007 10:39 AM


All times are GMT -4. The time now is 05:37 PM.


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