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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2007, 09: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: 622
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 09:55 AM. Reason: spelling errors
llasram is offline   Reply With Quote
Old 02-09-2007, 04: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: 17,472
Karma: 10995944
Join Date: Oct 2002
Location: Switzerland
Device: Sony PRS-650 / Nexus 7 / Kindle PW
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 online now   Reply With Quote
Old 02-09-2007, 04: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: 26,450
Karma: 5383257
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, 04: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: 17,472
Karma: 10995944
Join Date: Oct 2002
Location: Switzerland
Device: Sony PRS-650 / Nexus 7 / Kindle PW
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 online now   Reply With Quote
Old 02-09-2007, 06: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: 622
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:49 AM
Transfer Web pages to Kindle - what do you use? "Print to MOBI" an option? guiyoforward Amazon Kindle 8 09-06-2010 01:50 AM
Call "print newspapers" as "snailpapers" because they arrive with news is 12 hrs old taglines Lounge 4 02-05-2010 11:01 AM
Using Mac OS X to "print" PDFs to ebooks... kf6gpe PDF 0 01-03-2009 04:27 PM
"Print is Dead: Books in Our Digital Age" by Jeff Gomez jasonkchapman News 15 10-18-2007 07:05 PM


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


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