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
Which parsers should be implemented and how? #117
Comments
👍 to that.
It makes sense in the context of "Web Publications" (where we consume a manifest) but can be tricky for a number of reasons:
I think that this is a "good to have" feature, but shouldn't be our priority right now.
W3CManifest and W3CAudiobook are the same thing since they both use the Publication Manifest.
Do we really need package-level features for PDF? Are you talking more specifically about LCPDF? It's worth pointing out that aside from PDF, these are all ZIP based containers which might share a lot of utilities between them. |
I meant the composite pattern. For example, we could have some low-level So a CBZ parser would return directly a Using this, we could also expose "virtual" resources such as the serialized manifest.json, media-overlays, position-lists, etc. without having to add custom routes to the HTTP server (which wouldn't work for publications not served through the server anyway). Thanks to the composite pattern, it's very easy to extend without modifying the existing classes, and the outside only see a single
I'm not sure, but wouldn't this cause copyright issues? Or security ones if the web content was protected with authentification? |
I was not sure Audiobook was a proper subset of Manifest both in definition and processing, but maybe it is.
Shouldn't be simple PDF files supported? I guess it is very easy to implement.
I think many books would allow such a behaviour. Users would be responsible for using this tool legally, as any piece of software (including book reading). However, there are indeed some technical limitations and I agree this is not a priority. I just wanted to keep it in mind for design purposes. |
This is addressed in this new proposal: Streamer API. |
Currently supported in Kotlin:
Currently supported in Swift
Remarks
HTTPContainer
andArchiveContainer
is confused.Ideas
PublicationParser,
with the internal parser factory that I suggested for the streamer API (Clarify and refine the streamer API on mobile platforms #116), should check the file extension and maybe sniff the file to determine which container and which parser have to be used.The text was updated successfully, but these errors were encountered: