Add EPUB a11y 1.1 Conformance Support#195
Conversation
Sort conformsTo values from best to worst
|
|
||
| type A11yProfileList []A11yProfile | ||
|
|
||
| func (l A11yProfileList) Sort() { |
There was a problem hiding this comment.
Is this API really useful for integrators, or should we keep it internal for now? It seems we pre-sort the list during parsing.
There was a problem hiding this comment.
@mickael-menu I opted to keep it public because if users of the toolkit are crafting their own WebPub manifest from scratch (or from another source), they can use this function to take advantage of the sorting logic we already implemented to sort the array before e.g. marshalling or performing other logic, since it's only currently performed upon parsing of EPUB or WebPub. Do you think that's too obscure?
There was a problem hiding this comment.
Makes sense to me, I've heard about a few organizations that would like to distribute content that they author as HTML rather than EPUB, so they could be the target for that.
Also implements sorting of conformsTo values from best to worst
Closes #194