From dcbde93eca88ed0629429b14d1f4383bba99edf6 Mon Sep 17 00:00:00 2001 From: Charles LaPierre Date: Mon, 25 Nov 2024 13:14:50 -0800 Subject: [PATCH] exact string matching now making sure the exact strings for conformance are checked --- .../draft/techniques/epub-metadata/index.html | 138 +++++++++++++++--- 1 file changed, 117 insertions(+), 21 deletions(-) diff --git a/a11y-meta-display-guide/2.0/draft/techniques/epub-metadata/index.html b/a11y-meta-display-guide/2.0/draft/techniques/epub-metadata/index.html index c0f362f1..39880a54 100755 --- a/a11y-meta-display-guide/2.0/draft/techniques/epub-metadata/index.html +++ b/a11y-meta-display-guide/2.0/draft/techniques/epub-metadata/index.html @@ -346,37 +346,37 @@

Understanding the variables

epub_accessibility_1_1
-

If true it indicates that the conformsTo contains "EPUB Accessibility 1.1" (EPUB Accessibility Specification 1.1) is present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "EPUB Accessibility 1.1" (EPUB Accessibility Specification 1.1) is present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of EPUB Accessibility Spec 1.1.

wcag_20
-

If true it indicates that the conformsTo contains "WCAG 2.0" or conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a" (EPUB Accessibility Specification 1.0 A) or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa" (EPUB Accessibility Specification 1.0 AA) or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa" (EPUB Accessibility Specification 1.0 AAA) are present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "WCAG 2.0" or conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a" (EPUB Accessibility Specification 1.0 A) or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa" (EPUB Accessibility Specification 1.0 AA) or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa" (EPUB Accessibility Specification 1.0 AAA) are present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of WCAG version 2.0 or with the requirements of EPUB Accessibility Spec 1.0 (at level A, AA, or AAA). This is because being compliant with EPUB Accessibility 1.0 specification means at least being compliant with WCAG 2.0 specification.

wcag_21
-

If true it indicates that the conformsTo contains "WCAG 2.1" is present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "WCAG 2.1" is present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of WCAG version 2.1.

wcag_22
-

If true it indicates that the conformsTo contains "WCAG 2.2" is present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "WCAG 2.2" is present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of WCAG version 2.2.

level_a
-

If true it indicates that the conformsTo contains "Level A" or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a" (EPUB Accessibility Specification 1.0 A) are present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "Level A" or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a" (EPUB Accessibility Specification 1.0 A) are present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of WCAG level A or with the requirements of EPUB Accessibility Spec 1.0 level A.

level_aa
-

If true it indicates that the conformsTo contains "Level AA" or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa" (EPUB Accessibility Specification 1.0 AA) are present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "Level AA" or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa" (EPUB Accessibility Specification 1.0 AA) are present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of WCAG level AA or with the requirements of EPUB Accessibility Spec 1.0 level AA.

level_aaa
-

If true it indicates that the conformsTo contains "Level AAA" or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa" (EPUB Accessibility Specification 1.0 A) are present in the package document, otherwise if false it means that the metadata is not present.

+

If true it indicates that an approved conformsTo claim contains "Level AAA" or the conformsTo="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa" (EPUB Accessibility Specification 1.0 A) are present in the package document, otherwise if false it means that the metadata is not present.

This means that the publication conforms with the requirements of WCAG level AAA or with the requirements of EPUB Accessibility Spec 1.0 level AAA.

certifier
@@ -411,21 +411,117 @@

Variables setup

  1. LET package_document be the result of calling preprocessing given package_document_as_text.
  2. -
  3. LET epub_accessibility_1_0 be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-"].
  4. - -
  5. LET epub_accessibility_1_1 be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), "EPUB Accessibility 1.1")].
  6. - -
  7. LET wcag_20 be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), "http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-")] OR calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), "WCAG 2.0")]
  8. - -
  9. LET wcag_21 be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), WCAG 2.1")].
  10. - -
  11. LET wcag_22 be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), WCAG 2.2")].
  12. - -
  13. LET level_a be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), Level A")] OR calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text()=http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a"].
  14. - -
  15. LET level_aa be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), Level AA")] OR calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text()=http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa"].
  16. + +
  17. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-a"] : + + THEN LET epub_accessibility_1_0 = TRUE, + LET wcag_20 = TRUE, + and LET level_a = TRUE. + +
  18. + +
  19. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa"]: + + THEN LET epub_accessibility_1_0 = TRUE, + LET wcag_20 = TRUE, + and LET level_aa = TRUE. + +
  20. + +
  21. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa"]: + + THEN LET epub_accessibility_1_0 = TRUE, + LET wcag_20 = TRUE, + and LET level_aaa = TRUE. + +
  22. + + +
  23. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.0 Level A"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_20 = TRUE, + and LET level_a = TRUE. + +
  24. + +
  25. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.0 Level AA"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_20 = TRUE, + and LET level_aa = TRUE. + +
  26. + +
  27. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.0 Level AAA"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_20 = TRUE, + and LET level_aaa = TRUE. + +
  28. + + +
  29. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.1 Level A"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_21 = TRUE, + and LET level_a = TRUE. + +
  30. + +
  31. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.1 Level AA"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_21 = TRUE, + and LET level_aa = TRUE. + +
  32. + +
  33. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.1 Level AAA"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_21 = TRUE, + and LET level_aaa = TRUE. + +
  34. -
  35. LET level_aaa be the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and contains(text(), Level AAA")] OR calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text()=http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aaa"].
  36. + +
  37. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.2 Level A"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_22 = TRUE, + and LET level_a = TRUE. + +
  38. + +
  39. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.2 Level AA"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_22 = TRUE, + and LET level_aa = TRUE. + +
  40. + +
  41. + IF the result of calling check for node on package_document, /package/metadata/meta[@property="dcterms:conformsTo" and text() = EPUB Accessibility 1.1 - WCAG 2.2 Level AAA"] : + + THEN LET epub_accessibility_1_1 = TRUE, + LET wcag_22 = TRUE, + and LET level_aaa = TRUE. + +
  42. LET certifier be the value of the node extracted from package_document, using the xpath /package/metadata/meta[@property="a11y:certifiedBy"]/text().