View Single Post
Old 02-05-2021, 07:36 AM   #6
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,234
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by wolf123 View Post
Is it OK to overload (add multiple values in) epub:type?
No, you can use multiple values for epub:type:

Quote:
The epub:type attribute inflects semantics on the element on which it appears. Its value is one or more white space-separated terms stemming from external vocabularies associated with the document instance, as defined in Vocabulary Association.
Source


For instance, you can use multiple values to define Document Partition and Section, like these examples:

Code:
<section epub:type="frontmatter preface" role="doc-preface">...</section>
<section epub:type="backmatter colophon" role="doc-colophon">...</section>
The order is not important either for epub:type values.

Quote:
Originally Posted by wolf123 View Post
Do I risk to subsequently overload aria roles?
Like the link you pointed clearly says: you must not overload the aria roles. Only use one value. A second value can only be used as fallback, since only the first value is recognized.
So, you would have to detect multiple values for epub:type and use only the appropriate one while mapping to aria roles. Usually, only one of the epub:type values has a corresponding aria role.

Last edited by thiago.eec; 02-05-2021 at 07:43 AM.
thiago.eec is offline   Reply With Quote