Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epubs with XML v1.1 files make endive crash #4

Open
2 tasks
barsanuphe opened this issue Sep 15, 2016 · 1 comment
Open
2 tasks

epubs with XML v1.1 files make endive crash #4

barsanuphe opened this issue Sep 15, 2016 · 1 comment
Assignees
Labels

Comments

@barsanuphe
Copy link
Owner

barsanuphe commented Sep 15, 2016

Go's XML parser only handles XML 1.0 and cannot handle XML 1.1.
Some epubs have their OPS/package.opf file declared as XML 1.1.

  • handle error gracefully
  • try to find workaround
@barsanuphe barsanuphe added the bug label Sep 15, 2016
@barsanuphe barsanuphe self-assigned this Sep 15, 2016
@barsanuphe
Copy link
Owner Author

Ugly workaround that implies modifying the epub file:

  • extract epub contents
  • modify ops/xxx.opf file to indicate xml version="1.0"
  • zip -Xr modified.epub mimetype *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant