-
Notifications
You must be signed in to change notification settings - Fork 164
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
Spine items rejecting property attributes #318
Conversation
Related to: 9a9c8d8 where the prefix was disabled
Thank you for the PR. It has been a very long time since the commit you referenced, but ...
... because of the readium-sdk/ePub3/ePub/package.cpp Line 681 in a32d900
==> readium-sdk/ePub3/ePub/package.cpp Lines 1183 to 1215 in a32d900
... which invokes readium-sdk/ePub3/ePub/property_holder.cpp Lines 306 to 313 in a32d900
There are indeed direct calls to readium-sdk/ePub3/ePub/package.cpp Line 443 in a32d900
readium-sdk/ePub3/ePub/package.cpp Line 460 in a32d900
==> readium-sdk/ePub3/ePub/property_holder.cpp Lines 314 to 326 in a32d900
So, it seems you are trying to solve / have solved a similar issue for https://github.com/kyles-ep/readium-sdk/blob/fac65be973beb86e179a7b9ab464150ce71dcece/ePub3/ePub/spine.cpp#L39-L42 Can you please explain why Thank you for clarifying, and sorry if I am missing an obvious point (it has been a long time since I looked at this C++ codebase) |
PS: is @evidentpoint using / planning to use a modified version of |
Apologies for not elaborating on the problem. The problem is that this document has spine items with "rendition" properties:
and the package metadata element has the following children:
From what I understand, spine items are allowed to override the rendition properties specified in the package metadata, and as it is, there's a bug that prevents this property from being picked up. |
A request came our way that asked us to look into fixing a bug with the |
Sorry. I thought I could change both source and destination of the PR. |
I took the liberty to change the PR target branch from |
You explanation makes sense Kyle, thanks. I am surprised this bug hasn't surfaced before. Wouldn't it make more sense to invoke |
Related to: 9a9c8d8 where the 'rendition' prefix was disabled
The XML parsing runs fine, extracting the property string, but when creating the IRI, there's a whitelist for acceptable IRI prefixes it seems and the default has 'rendition' commented out. The proposed solution is to specifically enable this for SpineItem since it seems there are previous issues with enabling it in the default whitelist.