Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2007, 08:54 AM   #1
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
"Print" directly to a Reader from Firefox

I've got a hack set-up I think some other people here might be interested in. Using Firefox's built-in PostScript printer support -- which allows individual printers to have their own margin etc settings and a custom command run on the output -- I can "print" from Firefox and have the result droped onto my Reader as an appropriately-sized PDF. The process is currently Unix-y only, but someone sufficiently determined could probably produce one which works under Windows too.

I describe what I've done in more detail and provide scripts & settings in a post on my blog:Hope people find it useful!

Last edited by llasram; 02-09-2007 at 08:55 AM. Reason: spelling errors
llasram is offline   Reply With Quote
Old 02-09-2007, 03:04 PM   #2
Alexander Turcic
Fully Converged
Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.
 
Alexander Turcic's Avatar
 
Posts: 18,163
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
I am going to try it. llasram, you mentioned a ruby script to convert Gutenberg to LaTeX on your website. Would you mind sharing it with us? I am still considering writing a script to convert BBCode to LaTeX for our weekly newsletter, and it would be nice to see some similar conversion scripts first.
Alexander Turcic is offline   Reply With Quote
Advert
Old 02-09-2007, 03:09 PM   #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,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As a browser independent method to convert html to PDF with support for CSS html2ps + ps2pdf looks useful.

http://user.it.uu.se/~jan/html2ps.html
kovidgoyal is offline   Reply With Quote
Old 02-09-2007, 03:16 PM   #4
Alexander Turcic
Fully Converged
Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.Alexander Turcic ought to be getting tired of karma fortunes by now.
 
Alexander Turcic's Avatar
 
Posts: 18,163
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
kovidgoyal, I have spent a couple of hours with html2ps. It's nice but there seems to be a major flaw in connection with the Sony Reader: Internal links don't seem to work. I posted more about it here. If you come up with a solution, I'd be a happy camper.
Alexander Turcic is offline   Reply With Quote
Old 02-09-2007, 05:48 PM   #5
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by kovidgoyal
As a browser independent method to convert html to PDF with support for CSS html2ps + ps2pdf looks useful.

http://user.it.uu.se/~jan/html2ps.html
Yes and no. I've been using html2ps for some other tasks (e.g., generation of PDFs from the HTML in Atom feeds). For regularized HTML->PDF generation, html2ps's model of providing a custom stylesheet works great. What I was going for here is integration -- being able to go from viewing the page on the browser to having a "printout" on the Reader. I've found this to be especially useful for highly transient printouts, such as Google Maps directions.

It would be possible to make a Firefox extension which ultimately ran the current Web page through html2ps, but it (a) would need some extra work to operate properly on pages requiring credentialed access, (b) would lose / require re-writing current print feature support (e.g., print only selection), and (c) would be even less brower-independent.

Making a CUPS (etc) driver which produced an appropriately sized & metadataed PDF and dumped it on the Reader would probably would garner the most source independence. But it would lose Firefox support -- a long standing mis-feature of Gecko's PostScript rendering engine is that it can only render to a pre-compiled list of fixed page sizes. My hack gets around this by setting large margins in Firefox's configuration and chopping the PS output down to the appropriate size.

Anyway, I'm not saying my solution is perfect -- just the best one I've thought of so far for what I want to do. :-)

P.S. Thanks muchly for libprs500!
llasram is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yep. It's official. Sony Reader has "ruined" books for me. A final "review." WilliamG Sony Reader 48 01-14-2011 03:49 AM
Transfer Web pages to Kindle - what do you use? "Print to MOBI" an option? guiyoforward Amazon Kindle 8 09-06-2010 12:50 AM
Call "print newspapers" as "snailpapers" because they arrive with news is 12 hrs old taglines Lounge 4 02-05-2010 10:01 AM
Using Mac OS X to "print" PDFs to ebooks... kf6gpe PDF 0 01-03-2009 03:27 PM
"Print is Dead: Books in Our Digital Age" by Jeff Gomez jasonkchapman News 15 10-18-2007 06:05 PM


All times are GMT -4. The time now is 09:40 PM.


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