Closed mattgarrish closed 3 years ago
@mattgarrish
The technical committee of the Japanese DAISY consortium plans to introduce three sets of metadata. It is natural to expect conformance reporting dedicated to these sets. I would thus like to have an extensible mechanism. The use of the href attribute is certainly extensible.
The problem remains here is that WCAG doesn't have URLs for each conformance level
I think that such URLs should be introduced. Very important things on the Web should have names.
To further complicate things ONIX code page 196 looks like its hard coded to the accessibility 1.0 Specification at either A / AA
https://ns.editeur.org/onix/en/196
196 | 02 | EPUB Accessibility Specification 1.0 A
Conforms with the requirements of EPUB Accessibility Spec 1.0 and WCAG level A. |
---|
196 | 03 | EPUB Accessibility Specification 1.0 AA
Conforms with the requirements of EPUB Accessibility Spec 1.0 and WCAG level AA. |
---|
To further complicate things ONIX code page 196 looks like its hard coded to the accessibility 1.0 Specification at either A / AA
We don't really need to solve that, as those codes would remain valid for whatever content already uses them. The question would become do they want to add new codes every time there's an update or should a field more aligned with conformsTo be better choice (i.e., in which the identifier can be copied).
If we want to avoid having to revise the document every time there's a new WCAG release, we need flexibility in stating conformance. But if we want precision in terms of what was actually conformed to, we also need a pattern that is easily replicated and updated. The layered approach of accessibility doesn't make this an easy task.
If we require AA support, then the two-field approach is probably the best:
<link rel="dcterms:conformsTo" href="https://www.w3.org/TR/epub-a11y-11/"/>
<link rel="dcterms:conformsTo" href="https://www.w3.org/TR/WCAG21/"/>
(Conforming to AAA is generally unrealistic so we don't have to account for it.)
Another thing we could do is say that by default 2.1 conformance is required, in which case the second conformsTo property isn't required. But if you conform to a lesser version (if we allow that) then you must specify the second field and if you conform to a newer version you should specify it (it wouldn't be required because backwards compatibility of wcag would make conformance with 2.1 always true).
I see so we would duplicate the conformsTo
This works well also because some publishers have their own a11y conformance level internally they may want to add as well
Example from one of our GCA™ Publishers( @RachelComerford ):
<meta property="dcterms:conformsTo">Macmillan Learning Flat Accessible ePub Specification V4.0</meta>
I think that such URLs should be introduced.
I've opened an issue to have identifiers added so we can link to them: https://github.com/w3c/wcag/issues/1575
Beyond this issue, it would help with the crosslinking to the WCAG definitions, as right now all our links on specific levels can only go to the conformance level section.
I will write to EditEUR to get their opinion.
Feedback from EditEUR:
I think it would depend on the degree of change between v1.0 and any future version. A simple update that doesn’t add (too much) to the requirements of meeting the new standard would not require a new ONIX code, whereas a more significant change where e-books that clearly meet v1.0 do not meet significant new requirements of the standard would require new codes.
As an alternative to adding two new codes each time you revise the EPUB Accessibility spec, we could introduce a mechanism to carry a second URL which identifies the version of the Accessibility standard and WCAG.
In terms of what you’re discussing on Github, a single URL that specifies the version of the EPUB Accessibility Spec (1.0, 1.1, 2.0 or whatever), the WCAG version used within the Spec (2.1, 2.2 etc) and the level (A, AA) of WCAG would be ideal, provided there’s some expectation that future versions of the standard will use a similar URL-based versioning mechanism.
The issue was discussed in a meeting on 2021-01-14
@gregoriopellegrino any idea how two conformsto urls be used in ONIX (one for EPUB accessibility version and other for WCAG)?
Single URL makes it somewhat simpler if we want to map it to different metadata formats.
Some months ago I asked to EditEUR:
In the W3C we are working on a new version of the EPUB Accessibility Guidelines...
In short: at the moment codes 2 and 3 in code list 196 refer to EPUB Accessibility Guidelines 1.0, what will happen when the new version is released? Will more codes be added? And so on?
This is their reply:
I think it would depend on the degree of change between v1.0 and any future version. A simple update that doesn’t add (too much) to the requirements of meeting the new standard would not require a new ONIX code, whereas a more significant change where e-books that clearly meet v1.0 do not meet significant new requirements of the standard would require new codes.
As an alternative to adding two new codes each time you revise the EPUB Accessibility spec, we could introduce a mechanism to carry a second URL which identifies the version of the Accessibility standard and WCAG.
In terms of what you’re discussing on Github, a single URL that specifies the version of the EPUB Accessibility Spec (1.0, 1.1, 2.0 or whatever), the WCAG version used within the Spec (2.1, 2.2 etc) and the level (A, AA) of WCAG would be ideal, provided there’s some expectation that future versions of the standard will use a similar URL-based versioning mechanism.
Given our flexibility of reporting and that you could conform to many different versions of WCAG under a single accessibility version, it's more than just two new URLs for every new version. There are at least six combinations for 1.1 -- WCAG 2.0 or 2.1 and Level A, AA or AAA. (And more permutations to come with 2.2, etc.)
The most viable options at this point are either patterned text strings:
Or a similar URL pattern like
WCAG doesn't define a means of identifying the level in the URL, and the request I made to add IDs won't be available until 2.2 is released (and will never be available for the earlier versions). That likely makes separating the URLs the least viable option we have.
The issue was discussed in a meeting on 2021-02-25
List of resolutions:
I wrote to EditEUR
Adding a comment that came up in an internal discussion. Does this type of approach raise internationalization issues? I.e., the identification is made through a text field which, in fact, is not really a text, but a very English oriented identification, with concatenation based on space and '+' characters. This may be misleading for some (think of languages that do not have a notion of spaces between words...).
I am not sure whether this is a real issue, but maybe it merits some thoughts.
(Using URL-s instead is, in this respect, cleaner.)
Cc @r12a @xfq
The issue was discussed in a meeting on 2021-03-04
@r12a @xfq is there an issue here (see https://github.com/w3c/epub-specs/issues/1455#issuecomment-789617935)? If not, this issue should be closed...
Adding a comment that came up in an internal discussion. Does this type of approach raise internationalization issues? I.e., the identification is made through a text field which, in fact, is not really a text, but a very English oriented identification, with concatenation based on space and '+' characters. This may be misleading for some (think of languages that do not have a notion of spaces between words...).
If it's just a string that is not a natural language data value, I don't think it is a problem, but I think it is better to make it look like an identifier when designing this kind of string, maybe something like EPUB_A11Y_11_WCAG_21_AA
.
maybe something like
EPUB_A11Y_11_WCAG_21_AA
I like this idea. It's not as cumbersome as a URL but less potentially confusing than purely text strings.
Perhaps we could mix hyphens and underscores for slightly more clarity that there are two distinct specifications?
So maybe:
EPUB-A11Y-11_WCAG-21-AA
or
EPUB_A11Y_11-WCAG_21_AA
maybe something like
EPUB_A11Y_11_WCAG_21_AA
I like this idea. It's not as cumbersome as a URL but less potentially confusing than purely text strings.
Perhaps we could mix hyphens and underscores for slightly more clarity that there are two distinct specifications?
So maybe:
EPUB-A11Y-11_WCAG-21-AA
or
EPUB_A11Y_11-WCAG_21_AA
+1. I am slightly more in favour of the former of these two, but we should not spend too much time on this:-)
I am slightly more in favour of the former of these two
Agree. It's more common to use underscores for joining segments and hyphens within them in my experience.
+1 to this approach as well, we already found some old conformance links pointing to the W3C web submission document, to an old version of the IDPF and both upper/lowercases. This will help mitigate these types of errors as we see below:
(Thanks to VitalSource for providing the following data on published EPUBs with the following dcterms:conformsTo metadata)
http://www.idpf.org/epub/a11y/accessibility-20160801.html#wcag-AA
http://www.idpf.org/epub/a11y/accessibility-20160801.html#wcag-aa/
http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a
http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa
https://www.w3.org/Submission/epub-a11y
So could we then for older versions like these above, we would have the following metadata right?
EPUB-A11Y-10_WCAG-20-A EPUB-A11Y-10_WCAG-20-AA which would reference the 1.0 Spec and WCAG 2.0
So could we then for older versions like these above, we would have the following metadata right?
EPUB-A11Y-10_WCAG-20-A EPUB-A11Y-10_WCAG-20-AA
We can't change the 1.0 specification, so these wouldn't be valid to either specification. All we can do is try and avoid the same pitfall of linking the identifier to an organization.
Better to move people on to 1.1 as soon as we can to avoid proliferating the IDPF identifiers any more than they have been. Other than removing the alt text exemption, content being produced that conforms to 1.0 should immediately conform to one of:
Moving publishers to WCAG-21 can happen more gradually.
Closing this specific issue, though, as the changes are now integrated. We can refine any details as we go.
The old IDPF conformance URLs have to be updated for the next release and we also need to figure out how to ensure a more stable reporting method going forward.
The base URL to use for the epub accessibility specification should be fairly straightforward as we'll have a versioned /TR path to use this time (no need for a dated specification).
The complexity comes in also having to report the WCAG version and level, assuming we are allowing flexibility in conformance. We should figure out how important this information is to break out. Do vendors care about the specifics of conformance, for example, or only that content conforms to the accessibility standard?
In a world where the details aren't that critical, one option would be to drop the WCAG conformance level from the
conformsTo
URL entirely so only the accessibility specification URL is used. The WCAG version and level could be required in the accessibility summary, for example, so users can still understand the quality. For example:One problem with this approach, however, is that the information won't be easily parseable by tools like Ace. But these tools may also always assume conformance to the latest version (making them account for variances between releases could prove a maintenance headache).
Alternatively, we could require (or recommend) a second
conformsTo
field that specifies the WCAG version:The problem remains here is that WCAG doesn't have URLs for each conformance level, so unless we require AA conformance we're still going to be missing information. We could require that context in the summary, though.
Looking at the Dublin Core definitions again, we might also simply consider using a natural language descriptor for WCAG conformance. The vocabulary now says this:
https://dublincore.org/specifications/dublin-core/dcmi-terms/#section-1
This sounds to me like the rigidity of dcterms properties for linked data has been relaxed. In that case, we could require authors to follow a pattern like "WCAG 2.X Level AA":
We could also take this one step further and incorporate everything in one common pattern like:
That's as far as my thought experiments have taken me with this, at any rate. Other ideas welcome.
/cc @avneeshsingh @clapierre @GeorgeKerscher