![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Dec 2010
Device: htc dream, htc desire, cybook odyssey
|
read epub from a shell
I was just wondering if there was a tool to read ebooks (epub) in the (unix) console.
It's still possible to export to html and read them with links for example, but a tool dedicated to ebooks, with bookmarks and such would be great. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
As much as I love—and rely on—the bash prompt, I really can't see this happening. Someone out there somewhere might spend time developing their own console epub reader... maybe. But even then, I doubt it would be easy to find.
Maybe start with the source for Lynx, if someone wanted to take a stab at it? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 13
Karma: 10
Join Date: Dec 2010
Device: htc dream, htc desire, cybook odyssey
|
there is this now : http://www.emacswiki.org/emacs/epubmode.el
|
![]() |
![]() |
![]() |
#4 |
affordable chipmunk
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,290
Karma: 9863855
Join Date: Feb 2011
Location: Brazil
Device: Sony XPeria ZL, Kindle Paperwhite
|
considering epub is basically some sort of compiled html, this would be a natural choice for lynx or elinks to receive a patch.
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25
Karma: 1028
Join Date: Mar 2010
Location: Chandler, AZ
Device: Samsung Stratosphere (coolreader), BeBook Neo,EBookman
|
You can try this.
Code:
unzip -x -C your.epub lynx -image_links ./content/ |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Well, you could try with this script, and then open with lynx.
|
![]() |
![]() |
![]() |
#7 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
Oooh! Nice...
![]() Even if it doesn't seem to work straight out of the box with lynx. lynx apparently does not respect the 'xml:base="{dir}"' attribute, so that has to be set explicitly in the links in indexAAA.xhtml, I think. Lynx does not handle <meta .... charset=.../>, I had to remove those lines from the book chapter xhtml files to get it to show anything but pure ascii. Just a couple of minor modifications in the script should fix those. Maybe have a specific -shellepubreader option? And of course one has to set up lynx to handle xhtml files in the first place. |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25
Karma: 1028
Join Date: Mar 2010
Location: Chandler, AZ
Device: Samsung Stratosphere (coolreader), BeBook Neo,EBookman
|
@Jellby: Thanks.
@SBT Please post your modifications. This is neat. |
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25
Karma: 1028
Join Date: Mar 2010
Location: Chandler, AZ
Device: Samsung Stratosphere (coolreader), BeBook Neo,EBookman
|
SBT:
Thanks. Just to be clear for others. I had to Code:
patch epub-read.sh epub-read_lynxviewer.patch epub-read.sh -v Oz_Omnibus.epub I also turned images on in the lynx.conf file by adding the following. Code:
XLOADIMAGE_COMMAND:xv %s & MAKE_LINKS_FOR_ALL_IMAGES:TRUE Last edited by AZdave; 12-09-2011 at 02:54 PM. |
![]() |
![]() |
![]() |
#11 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
epub to speech?
Having got this far, a thought struck me... lynx has been popular among the visually impaired because it has been simple to integrate with text-to-speech tools. While we're at it, maybe add an option to pipe output from lynx to the festival TTS?
BTW, anybody know about epub-to-speech converters? Or user interface guidelines for the blind? |
![]() |
![]() |
![]() |
#12 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 25
Karma: 1028
Join Date: Mar 2010
Location: Chandler, AZ
Device: Samsung Stratosphere (coolreader), BeBook Neo,EBookman
|
Quote:
Code:
PRINTER:TTS:festival --tts %s:80 DOWNLOADER:TTS:festival --tts %s p and select TTS . the number 80 is optional but it read the whole file. The DOWNLOADER reads the html tags to you so it is not needed. or Code:
lynx -cfg=lynx.config indexAAA.html | festival --tts Last edited by AZdave; 12-15-2011 at 03:00 PM. |
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 13
Karma: 10
Join Date: Dec 2010
Device: htc dream, htc desire, cybook odyssey
|
thank you for all those tips!
|
![]() |
![]() |
![]() |
#14 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
@AZDave: That's neat... I thought about something along the lines of your second solution, but defining the TTS as a printer is much more elegant.
I wonder if it is possible to implement a pause/play functionality? I can't think of a particularly good solution, sending STOP/CONT signals to festival seems the only feasible option, and I'm not sure how to do that in a sensible manner through lynx. |
![]() |
![]() |
![]() |
#15 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Maybe through system-wide hotkeys?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad My fbreader can't read epub. Can someone help me please? | tigerszheng | iRex | 1 | 06-23-2011 07:23 AM |
Read ePub on K3 | tomsem | Amazon Kindle | 0 | 09-16-2010 05:51 PM |
Can read epub or pdf, not both. | HattieLou | Sony Reader | 29 | 01-05-2010 12:26 AM |
Read ePub on PPC | Icarusbop | Reading and Management | 19 | 11-06-2009 10:38 PM |
How to read other than epub on android? | elzdekorte | Alternative Devices | 2 | 09-29-2009 06:30 PM |