Discussion:
ePub reader snags - wx.html2.WebViewArchiveHandler to the rescue?
Mike Stover
2014-09-26 13:24:52 UTC
Permalink
Hello all. I'll be the first to admit that I may need to ask this question
elsewhere, but here goes nothing.

I recently decided to create a small ePub reader with Python due to some
various circumstances. I already have the ability to grab the html/xhtml
pages from within the ePub (its just a zip file) and display them using
wx.html2.WebView, however I've run into an issue. I found that any page
that has an image within it will not display properly, for example, the
titlepage.xhtml in one of the books I'm working with.

After a bit of Googling and source code searching I happened across
wx.html2.WebViewArchiveHandler, however there is little to no documentation
on it. So here is my question, and probably the first of many. Can anyone
point me to an example or more documentation on the handler?

Thanks,
- Mike S.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mike Stover
2014-09-26 15:17:26 UTC
Permalink
To clarify a little bit... What I have found about the
WebViewArchiveHandler indicates it is similar to the FSHandler but allows
items/objects to be loaded from a zip file. Since an ePub file is literally
a zip file with the extension changed I am thinking I should be able to use
it to load images that are linked in the html files that are being loaded.
I just don't know how to get started with it. I am looking up the wxWidgets
code / docs.

-Mike S.
Post by Mike Stover
Hello all. I'll be the first to admit that I may need to ask this question
elsewhere, but here goes nothing.
I recently decided to create a small ePub reader with Python due to some
various circumstances. I already have the ability to grab the html/xhtml
pages from within the ePub (its just a zip file) and display them using
wx.html2.WebView, however I've run into an issue. I found that any page
that has an image within it will not display properly, for example, the
titlepage.xhtml in one of the books I'm working with.
After a bit of Googling and source code searching I happened across
wx.html2.WebViewArchiveHandler, however there is little to no documentation
on it. So here is my question, and probably the first of many. Can anyone
point me to an example or more documentation on the handler?
Thanks,
- Mike S.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...