From 980c58b7697de8bff24435a9c62283beb3a416aa Mon Sep 17 00:00:00 2001 From: Charles LaPierre Date: Tue, 7 Jan 2025 07:55:47 -0800 Subject: [PATCH] fixing incorrect accessibilityFeatures Fixes #563 Checking features instead of access modes for non visual content Fixed #572 Incorrect property tests in rich content --- .../2.0/draft/techniques/epub-metadata/index.html | 12 +++++------- 1 file changed, 5 insertions(+), 7 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 079322b..5774d00 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 @@ -305,9 +305,7 @@

Variables setup

  • LET all_necessary_content_textual be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessModeSufficient" and normalize-space()="textual"].
  • LET non_textual_content_images be the result of calling check for node on - package_document, /package/metadata/meta[@property="schema:accessibilityFeature" and
    (normalize-space()="chartOnVisual" or normalize-space()="chemOnVisual" or
    - normalize-space()="diagramOnVisual" or normalize-space()="mathOnVisual" or
    - normalize-space()="musicOnVisual" or normalize-space()="textOnVisual")]
    . + package_document, /package/metadata/meta[@property="schema:accessMode" and
    normalize-space() = ("chartOnVisual", "chemOnVisual", "diagramOnVisual", "mathOnVisual", "musicOnVisual", "textOnVisual")]
    .
  • LET textual_alternative_images be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessibilityFeature" and
    (normalize-space()="longDescription" or normalize-space()="alternativeText" or normalize-space()="describedMath")]
    . @@ -671,7 +669,7 @@

    Understanding the variables

    contains_charts_diagrams
    -

    If true it indicates that the accessibilityFeature="chartOnVisual" (charts encoded in visual form) is present in the package document, otherwise if false it means that the metadata is not present.

    +

    If true it indicates that the accessMode="chartOnVisual" (charts encoded in visual form) is present in the package document, otherwise if false it means that the metadata is not present.

    This means that there is a positive indication that the product has some information conveyed via some form of illustration, such as a graph, a chart, a diagram, a figure, etc).

    long_text_descriptions
    @@ -681,7 +679,7 @@

    Understanding the variables

    contains_chemical_formula
    -

    If true it indicates that the accessibilityFeature="chemOnVisual" (Chemical content) is present in the package document, otherwise if false it means that the metadata is not present.

    +

    If true it indicates that the accessMode="chemOnVisual" (Chemical content) is present in the package document, otherwise if false it means that the metadata is not present.

    This means that there is a positive indication that the publication contains chemical notations, formulae.

    chemical_formula_as_ @@ -731,11 +729,11 @@

    Variables setup

    1. LET package_document be the result of calling preprocessing given package_document_as_text.
    2. -
    3. LET contains_charts_diagrams be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessibilityFeature" and normalize-space()="chartOnVisual"].
    4. +
    5. LET contains_charts_diagrams be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessMode" and normalize-space()="chartOnVisual"].
    6. LET long_text_descriptions be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessibilityFeature" and normalize-space()="longDescriptions"].
    7. -
    8. LET contains_chemical_formula be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessibilityFeature" and normalize-space()="chemOnVisual"].
    9. +
    10. LET contains_chemical_formula be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessMode" and normalize-space()="chemOnVisual"].
    11. LET chemical_formula_as_latex be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessibilityFeature" and normalize-space()="latex-chemistry"].