Kovid: The extra markup are spans. The spans have a class and an id. They wrap each sentence in the book. Strictly, they are legal markup for an epub. If the input plugin was purely used by the viewer, it would be OK to leave them in. But, as it would also be used for conversions, it would be rude to leave them. There was some discussion in the Modify epub plugin thread on how to remove them. I'll have another look at this.
I also need to detect the Kobo DRM so that an error can be displayed. It isn't immediately obvious how as there isn't anything like the encryption.xml file.
The other thing that is needed with this is a metadata reader plugin. Again, subclassing the epub plugin works. The only thing that needs to be handled is the encrypted covers if there is DRM.
|