I would not reinvent the wheel here. There are many javascript epub3 readers to be found in github projects and many with an MIT license suitable for commercial dev that get you 95% of the way there.
Check out Sigil plugins for ReadiumReader, EpubJSReader, and BibiReader to see how simple it is to create a base reader with these javascripts and a webkit or chrome (Qt) based web engine.
|