-
Notifications
You must be signed in to change notification settings - Fork 48
Conversation
@gonejack Thanks for the PR! Unfortunately it seems to be failing the EPUBCheck test (I'm using v4.2.2). To see the results for yourself, you can either:
I'll try to document this a bit better for contributors to make it easier to submit PRs. Here is the output I'm getting:
If you want to send a separate PR just for #19 I can merge that now, or if you'd like you can just fix this one. Thanks! |
@gonejack I just added more information on EPUBCheck to the readme. Hope that helps! |
@gonejack I just updated the CI/CD tests in Travis to run EPUBCheck so it should help catch this sooner. |
I notice that sigil sets cover meta the same way and O'reilly books contain this meta as well. It's interesting why sigil and macOS support something not following the specification. |
@coveralls it's my fault that mixed them, fix for #19 is too short for a PR, could you include it in your later commits? |
I did some research regarding the thumbnail issue and the new element you added, and it seems that this is an old EPUB 2 element that a lot of companies still use. This page in particular was helpful: http://idpf.org/forum/topic-715 This was the example given on that page: <meta name="cover" content="My_Cover_ID" /> According to that page, this should still be valid even in EPUB 3 (which this library generates), so I compared it to the <meta property="" name="cover" content="testfromfile.png"></meta> The biggest difference seems to be that they left out the So I made one small tweak in pkg.go, and it passes validation now! Property string `xml:"property,attr,omitempty"` Since I couldn't modify this PR, I created a new one (#38) and rebased it on your commit so you'll be listed as a contributor. Thanks for your help and I'm sorry it took me so long to look into this. I don't have a Mac that's easily accessible now, but hopefully this fixes #18. Feel free to reopen it if it doesn't. |
Good done, I will try it later. |
Hi, author.
This PR addresses both #19 and #18