View Single Post
Old 12-09-2011, 06:23 AM   #5
SBT
Fanatic
SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.SBT ought to be getting tired of karma fortunes by now.
 
SBT's Avatar
 
Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
Here's a rather quick&dirty patch which includes a -v option, which lets you view the epub-file in lynx. Haven't had a chance to test many epub-files on it, but it seems to work with xhtml UTF-8 files.

I rip out any lines in xhtml files than contain meta.. charset= info, as otherwise lynx just displays blobs instead of any character that's not strictly ascii. A more robust method would be to use html tidy, I suppose, and convert from xhtml to html.
Attached Files
File Type: zip epub-read_lynxviewer.patch.zip (1.3 KB, 388 views)
SBT is offline   Reply With Quote