|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Presenting EPUB and/or EPUB content over internet to visitors - automatically?
I wasn't quite sure what to call this thread.
What I would like to do is this... My EPUB (my first) is getting too big to be read on one HTML web page. Or rather I should say that the content of my EPUB is getting too big since in truth I don't upload the EPUB but rather the content coverted into HTML. Currently I am simply converting the markdown in which it is mostly written into a stand alone HTML file and uploading that to my web server. All well and good...well...except for the fact that there is no easy navigation of the content other than scrolling up and down this growing HTML single page (not so good). I want to make it as easy as possible for visitors to read the content of my EPUB through their browsers (whether I serve up an actual EPUB or not doesn't really matter with respect to that as long as visitors can read the content somehow). Hmm...let's see...ideally...I would want to upload my EPUB (not the HTML in it) to my web server and then when a visitor clicks on a link to read it, their web browser would simply present the EPUB in a nice browser EPUB reader like Readium without having to install anything (but you have to download a plugin for that one and it's not available in IE). But in Googling there doesn't seem to be such a thing. I did find a site that has apparently embedded Readium where one can indeed read an EPUB (epub 3 no less) by simply clicking a link but like I said..it's not available for IE which is a show stopper). The other thing I have found is what are called Javascript enabled slide shows (i.e. Slidy, Slideous, S5, and I think DZSlides) which may be able to act as cheap ebook readers...of sorts. I would have to make some changes to the EPUB underlying HTML content (no big deal...I would create a script to automatically do that for me), upload the content, and present it through the slide show. These slide shows come complete with arrow key navigation and some other niceties. Does anyone have experience presenting the content of an EPUB through a slide show through a browser LOL? Any comments or ideas on any of this? Carlos PS. I think I figured out what these great big gaps in the appearance of posts is. I have set up my browser to not load images automatically and had forgotten that I had done that so I was being left with the impression that this forum was presenting itself rather strangely when in fact it was me all along LOL. Last edited by carlosbcg; 02-21-2013 at 02:07 AM. |
![]() |
![]() |
![]() |
#2 |
Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
At one point, I wrote a scrolling-style EPUB reader entirely in JavaScript as a Safari extension (mainly as a gag and to prove that it could be done), and except for the fact that it took many, many seconds to unzip the ZIP file, it did actually work, mostly.... But for your sanity, I don't recommend that approach.
![]() I'd go with something much simple. For each source HTML page, create a static copy of that page in which you throw the book's TOC into a div and float it left, and throw the source HTML page into another div with a wide left margin. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Quote:
Quote:
Of course their TOC is a bit simplistic, somewhat inconvenient and likely unworkable for any long TOC, and certainly not to my liking. Thanks for the suggestions! Carlos |
||
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#5 |
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Quote:
I want a visitor to come to my site, click on a link (or visit a specific URL at my site) such that the EPUB just opens for them in a very nice reader that requires nothing to install, download, or otherwise. I mean that should be possible given that the content of my EPUB is just HTML5 (well...XHTML5 at least). The main difference between straight HTML5/XHTML5 served to visitors and an EPUB served up that I can see is the table of contents and the cover page. An EPUB has all that while HTML5 doesn't (at least unless I include it). Oh and also the nice GUI interface that allows one to use keys and otherwise move through the ebook easily. That too is way different than just HTML5/XHTML5. I'm still looking at the other thing you suggested. If their license allows it I may just download the Readium source code and fenaggle it into running at my server automatically. Don't know how easy that would be...don't even know what language it's written in...but if it's PHP and Javascript that should be possible at least in theory. It's a very nice reader. Carlos |
|
![]() |
![]() |
![]() |
#7 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Quote:
No downloading, installation, or otherwise on the part of a visitor who wants to read my EPUB. Just click a link or image of the EPUB and away they go to read. Nice. I do wonder though if the license for some of the readers is a problem. For example rePublish is GPL. Does that mean that my EPUB must be GPL'ed too? The GPL license is kinda of a virus in that sense. It normally takes over whatever you create if any of it is GPL (I think). I just saw one that has an MIT license that might fit my needs. Thanks for the heads up on these Javascript readers! Much appreciated. Carlos |
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Another concern with the Javascript readers is that so many of them seem to be...well...really old and not updated much at all.
js-epub is from 3 years ago! epubjs is from 2009! My eBook is EPUB3. Not sure that would be a problem. I'll have to play around with some of these and look at their source code. Carlos |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Monocle seems to be exactly what I need except for it not working as is, under IE.
A visitor can make it work by downloading and installing Google Chrome Frame though such a thing DOES go against my desire to present my EPUB(s) to visitors without them having to install anything. Carlos |
![]() |
![]() |
![]() |
#10 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
If you are just looking to convert your EPUB into an HTML that is viewable on the web, then you can use calibre to convert it to the ZIP format. The Sigil User Guide in my link is an example of converting from EPUB to HTML online using this approach.
|
![]() |
![]() |
![]() |
#11 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Still, it's probably not exactly what you are looking for, as it requires the user to go to an external site and create an account (even though it's as simple as writing an email and password, no additional info needed, not even a confirmation email, I believe). Monocle looks quite interesting, but it doesn't read the ePub directly, you have to extract it first... |
|
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
There are things like ePubReader here in this forum for some browsers but I know of nothing for all possible browsers. However, you can explain how the user can fix it themselves. Browsers have a setting to specify external programs that can be used for certain extensions. You can use this browser feature to plugin the ePub reader of your choice.
Dale |
![]() |
![]() |
![]() |
#13 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Quote:
I can write, breath, and eat HTML. I even have scripts that take my markdown (in which I write my content) and spit out nice HTML complete. I even have created scripts that even FTP such things to my server automatically apart from my normal FTP program through SSH. My desire is not just to be able to present the HTML. I can do that now. My desire is to be able to present it as an ebook with all the nice, user friendly ability to read the HTML as a book on the browser screen with keyboard navigation and the like. Just like you find in many EPUB readers. But also where it is cross browser compatible (able to be seen and used under at least Firefox, Chrome, and Internet Explorer). I mean I can insert next and previous buttons at the bottom of my HTML sections and all that but that's not the same thing as the nice GUI type of interface that EPUB readers present. Carlos |
|
![]() |
![]() |
![]() |
#14 | |
Member
![]() Posts: 23
Karma: 10
Join Date: Feb 2013
Device: Linux laptop and iPhone
|
Quote:
Here is an example of Monocle in action -> http://monocle.inventivelabs.com.au/books/dubliners No need to do anything at all. Just go to the link (or click on it from within a site). The reason it's not compatible with IE is that it uses some kind of two column CSS that IE does not do. But since I don't need two column anything I am hoping I can look at the source and just strip out the parts that make IE choke. I mean things can't be this seemingly difficult. EPUB is just XHTML underneat and every browser worth anything these days can read XHTML. Throw in some simple Javascript and voila...one should be able to have a cross browser, fully compatible, simple EPUB reader. Carlos |
|
![]() |
![]() |
![]() |
#15 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
[quote]I mean things can't be this seemingly difficult. EPUB is just XHTML underneat and every browser worth anything these days can read XHTML. Throw in some simple Javascript and voila...one should be able to have a cross browser, fully compatible, simple EPUB reader.[quote] You are right, it shouldn't be that difficult, at least if you don't aim at supporting things like headers/footers. Some time ago I wrote a quick-and-dirty script (for linux) that allowed me at least to test an EPUB in the browser and check formatting and TOC. If you can do some programming, maybe you can turn it into some server-side scripting code, or find someone who can. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Videos in the EPUB get automatically played when the EPUB is opened in the iBook | rangaman | ePub | 9 | 12-20-2012 06:57 PM |
How to automatically create chapter titles and breaks in an epub file? | memenow | Conversion | 2 | 11-27-2012 09:54 PM |
How to automatically split (x)html in epub? | osnova | ePub | 15 | 03-13-2012 06:00 PM |
Automatically resizing epub images | dhume01 | Conversion | 4 | 03-15-2011 05:45 PM |
Automatically convert file to EPUB upon import into library | astrodad | Calibre | 6 | 07-23-2010 12:22 PM |