mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #688] epub output parsing errors #345
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#345
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @blogbourri on GitHub (Jul 31, 2023).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/688
Originally assigned to: @Monirzadeh on GitHub.
Data
Describe the bug / actual behavior
Epub files currently output are malformed. This caused the following error on calibre-web, which was resolved when I removed the malformed epubs from my library:
https://github.com/janeczku/calibre-web/issues/2834
Note from the error message:
lxml.etree.XMLSyntaxError: Namespace prefix dc on title is not defined, line 4, column 14Checking the epubs with epubcheck returns three errors:
Therefore, it seems to be the title element specifically that is causing the issue here, but there shouldn't be the other errors either.
Expected behavior
Epubs should be valid against W3C standards and compatible with standard epub software.
To Reproduce
Steps to reproduce the behavior:
@fmartingr commented on GitHub (Aug 1, 2023):
Thanks for raising awareness of this. Ebooks is a very recent feature and we are currently working on it.
Leaving this here as well, which would make easy to make tests for this:
https://www.w3.org/publishing/epubcheck/
@Monirzadeh commented on GitHub (Aug 4, 2023):
@blogbourri Thanks for report, we work on this can you please give me a link example?
Or confirm if this file work fine in your device? (image too)
book.zip
@blogbourri commented on GitHub (Aug 5, 2023):
just tested your epub and yes it does work :)
if you still want an example that breaks it, you can try this one:
https://bookmark.colorbash.art/bookmark/25/content