Closed johanpoirier closed 5 years ago
Why the href is absolute? in the example from Hadrien Gardeur, all the resources and spines have relative URLs (and it causes some issues in third-parties navigators).
I only see one href
with an absolute URI in this example, the other ones are all using relative ones.
From a spec perspective, both are allowed but an absolute URI is usually preferred by clients to make their job easier.
Why do we have some sort of pointer in the properties attribute?
I don't know but this wouldn't validate against our schema.
There are also multiple other issues with that example:
languages
should be language
publicationDate
should be published
authors
should be author
roles
should be role
publishers
should be publisher
modified
should be differentI only see one href with an absolute URI in this example, the other ones are all using relative ones.
Maybe I wasn't specific.
href
like /EPUB/Image/cover.jpg
is resolved as http://localhost:48792/EPUB/Image/cover.jpg
, which leads to a 404 on the streamer server.
And href
like EPUB/Image/cover.jpg
is resolved as http://localhost:48792/somebook.epub/EPUB/Image/cover.jpg
, which is correct.
Why do we have some sort of pointer in the properties attribute?
I found a bug in the r2-shared-kotlin
project.
There are also multiple other issues with that example
I can't see any tests on the project. Why? I thought that on fresh projects from Readium 2, tests were mandatory.
It's worth pointing out that all current implementations based on the Swift/Kotlin streamers actually use the in-memory object rather than the JSON manifest.
That said, it's definitely part of the design philosophy of Readium-2 to support both, but this might explains why things are a little sparse/broken on the JSON side.
This has been addressed and resolved, I'll move it to in review, to make sure to double check
When I open a book with the streamer, I got the manifest.json:
I have two questions about it:
href
is absolute? in the example from Hadrien Gardeur, all the resources and spines have relative URLs (and it causes some issues in third-parties navigators).properties
attribute?