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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2011, 06:05 AM   #1
silviolorusso
Enthusiast
silviolorusso began at the beginning.
 
silviolorusso's Avatar
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: none
Embed EPUB in a webpage

Hello,

I was wondering if there's a way to embed EPUB visualization in a webpage. Like Scribd or Issuu.

Thanks!
silviolorusso is offline   Reply With Quote
Old 06-20-2011, 12:28 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,654
Karma: 5072002
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by silviolorusso View Post
Hello,

I was wondering if there's a way to embed EPUB visualization in a webpage. Like Scribd or Issuu.

Thanks!
I would suggest you unzip it and place the contents in a folder, then reference the start from a link on a web page. The standard epub toc won't work but if you have an inline toc it should be fine. You need to preserve what folders you find in the epub exactly as they appear there.

Dale
DaleDe is offline   Reply With Quote
Old 07-27-2014, 09:55 PM   #3
JodyC
Junior Member
JodyC began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2014
Device: none
embedding epub

Quote:
Originally Posted by DaleDe View Post
I would suggest you unzip it and place the contents in a folder, then reference the start from a link on a web page. The standard epub toc won't work but if you have an inline toc it should be fine. You need to preserve what folders you find in the epub exactly as they appear there.

Dale
Hi, can you give more detail on how to reference the start from a link on web page?

Much appreciated
Jody
JodyC is offline   Reply With Quote
Old 07-27-2014, 10:26 PM   #4
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,538
Karma: 10990232
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DaleDe View Post
I would suggest you unzip it and place the contents in a folder, then reference the start from a link on a web page. The standard epub toc won't work but if you have an inline toc it should be fine. You need to preserve what folders you find in the epub exactly as they appear there.

Dale
How do you suggest going from one file to the next? That info is contained only in the spine.

Should the reader keep referring back to the ToC? (Not a guaranteed solution anyway.)
eschwartz is offline   Reply With Quote
Old 07-28-2014, 01:32 AM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,654
Karma: 5072002
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by eschwartz View Post
How do you suggest going from one file to the next? That info is contained only in the spine.

Should the reader keep referring back to the ToC? (Not a guaranteed solution anyway.)
At the bottom of the page you need to link to the next page and to the previous page using HTML links. Once you do the first one you can use it as a template for the other pages. It is also a good idea to place a link back to the TOC.

By the way, the is exactly what epub reader does automatically. ePub reader has its on forum on this web site.

Dale
DaleDe is offline   Reply With Quote
Old 07-28-2014, 01:36 AM   #6
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,654
Karma: 5072002
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by JodyC View Post
Hi, can you give more detail on how to reference the start from a link on web page?

Much appreciated
Jody
The links between the pages are straight forward html links such as
<a href="page1.html">Page 1</a>

where page1.html is replaced with the actual name of the first file. Place this line at the bottom of the file and/or up at the top.

Dale
DaleDe is offline   Reply With Quote
Old 07-28-2014, 07:18 AM   #7
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,538
Karma: 10990232
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DaleDe View Post
At the bottom of the page you need to link to the next page and to the previous page using HTML links. Once you do the first one you can use it as a template for the other pages. It is also a good idea to place a link back to the TOC.

By the way, the is exactly what epub reader does automatically. ePub reader has its on forum on this web site.

Dale
Which is of course more than simply unzipping to a folder.

I second the EPUBReader suggestion.
eschwartz is offline   Reply With Quote
Old 07-29-2014, 02:11 PM   #8
skreutzer
PublishingToolsDeveloper
skreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exercise
 
skreutzer's Avatar
 
Posts: 87
Karma: 38234
Join Date: Jan 2014
Location: Germany
Device: Only devices that support open formats!
I've just written a Java program which is supposed to do exactly that:

epub2html1

An EPUB2 file gets extracted to a standard local HTML file collection. An index.html isn't generated automatically yet, but such feature can be integrated easily. Some file references like embedded fonts (CSS @font-face) won't get recognized, I guess. Currently, I don't provide a binary executable download package for it, so you could either compile it for yourself, or I could prepare such a package on request.
skreutzer is offline   Reply With Quote
Old 07-29-2014, 03:08 PM   #9
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,538
Karma: 10990232
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by skreutzer View Post
I've just written a Java program which is supposed to do exactly that:

epub2html1

An EPUB2 file gets extracted to a standard local HTML file collection. An index.html isn't generated automatically yet, but such feature can be integrated easily. Some file references like embedded fonts (CSS @font-face) won't get recognized, I guess. Currently, I don't provide a binary executable download package for it, so you could either compile it for yourself, or I could prepare such a package on request.
That looks very interesting. If it doesn't already, perhaps it could do something like framing the files, kind of like the way Baen does it; example here: http://www.baenebooks.com/chapters/9...1625791214.htm
eschwartz is offline   Reply With Quote
Old 07-29-2014, 03:21 PM   #10
skreutzer
PublishingToolsDeveloper
skreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exerciseskreutzer juggles running chainsaws for a bit of light exercise
 
skreutzer's Avatar
 
Posts: 87
Karma: 38234
Join Date: Jan 2014
Location: Germany
Device: Only devices that support open formats!
I've just noticed that the original post #1 is quite old and now the topic has changed to JodyC's question. epub2html1 shouldn't get involved into generating the links between the extracted pages (since its responsibility is to get rid of EPUB specifics by creating a plain HTML collection), but it could indeed write a XML file with information about what was extracted (basically keeping the NCX more or less). From there, either another tool could take this XML file and incorporate the links into every HTML file as well as generating an index.html from it (HTML TOC), HTML frames are an even easier solution, or a PHP script on a server could add the links on each request while echoing the HTML files (with or without support of the XML file). Depends on if the HTML files should be used as standalone files, or if they're supposed to live on a webserver. As I'm currently investigating ways to post HTML programmatically to WordPress, you would get this features too out of the box.

Last edited by skreutzer; 07-29-2014 at 03:24 PM.
skreutzer 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
How to embed fonts in ePub after Calibre fiery ePub 73 01-31-2013 01:55 PM
How to embed animation in epub q5485 ePub 17 05-01-2012 11:41 AM
Is it possible to embed PDFs in EPUB? jsimms ePub 18 08-05-2011 12:20 PM
Webpage with Pictures to MOBI or EPUB maurices5000 Conversion 1 02-15-2011 12:28 PM
Automatic convert webpage to epub? bthoven Calibre 35 11-12-2010 03:48 AM


All times are GMT -4. The time now is 10:53 PM.


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