First, I would like to congrat Robert for EFM. Nice job!
Regarding the Robert question about non-component files (which URLs should be rewritten), I am involved in a project that use Monocle and recently we implemented a similar task with success (saving locally the book resources and loading them when book is opened). With binary files, it’s easy (just use data URLs). However, we found some issues when embedding SVG files. IMO, it’s the main issue in this process. Regarding auxiliary files that refers another files (e.g. a CSS that has references to images or fonts), we implemented a script that “resolves” all these references in order to CSS work “stand alone” (again, using data URLs). And it works…
Regarding Joseph idea of using Websockets to create a client side server, it’s interesting but the main issue is that Websockets are not supported in Android browsers - http://caniuse.com/#feat=websockets
--
First, I would like to congrat Robert for EFM. Nice job!
Regarding the Robert question about non-component files (which URLs should be rewritten), I am involved in a project that use Monocle and recently we implemented a similar task with success (saving locally the book resources and loading them when book is opened). With binary files, it’s easy (just use data URLs). However, we found some issues when embedding SVG files. IMO, it’s the main issue in this process.
Regarding auxiliary files that refers another files (e.g. a CSS that has references to images or fonts), we implemented a script that “resolves” all these references in order to CSS work “stand alone” (again, using data URLs). And it works…
On 22 January 2013 06:29, Joseph Pearson <jos...@inventivelabs.com.au> wrote:
Very nice! Pretty fast too. I've idly mentioned the possibility of this fully client-side approach for a few years, but this is the first time I've seen it implemented as a library, so kudos.
On Tuesday, January 22, 2013 10:19:21 AM UTC-3, lmvco wrote:First, I would like to congrat Robert for EFM. Nice job!
Thanks!Regarding the Robert question about non-component files (which URLs should be rewritten), I am involved in a project that use Monocle and recently we implemented a similar task with success (saving locally the book resources and loading them when book is opened). With binary files, it’s easy (just use data URLs). However, we found some issues when embedding SVG files. IMO, it’s the main issue in this process.
I tested one epub with embedded SVG files, and it seemed to work for me. But I didn't check this out very closely.Regarding auxiliary files that refers another files (e.g. a CSS that has references to images or fonts), we implemented a script that “resolves” all these references in order to CSS work “stand alone” (again, using data URLs). And it works…
Cool. Do you have an algorithm to work out the dependencies of these auxiliary files so they can be encoded in the correct order? Or do you just do the images and fonts first, and assume that that SVG files only reference those and the CSS files only reference images, fonts, and SVG files? (I'm sure the latter would be enough 99.9% of the time.)
On 22 January 2013 06:29, Joseph Pearson <jos...@inventivelabs.com.au> wrote:
Very nice! Pretty fast too. I've idly mentioned the possibility of this fully client-side approach for a few years, but this is the first time I've seen it implemented as a library, so kudos.Thanks for the kind works, and for the link. I hope it turns out to be useful for people.
Robert
--