Skip to content

Commit 980c58b

Browse files
committed
fixing incorrect accessibilityFeatures
Fixes #563 Checking features instead of access modes for non visual content Fixed #572 Incorrect property tests in rich content
1 parent 61ab869 commit 980c58b

File tree

1 file changed

+5
-7
lines changed
  • a11y-meta-display-guide/2.0/draft/techniques/epub-metadata

1 file changed

+5
-7
lines changed

a11y-meta-display-guide/2.0/draft/techniques/epub-metadata/index.html

+5-7
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,7 @@ <h4>Variables setup</h4>
305305
<li><b>LET</b> <var>all_necessary_content_textual</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessModeSufficient</i>" and normalize-space()="<i>textual</i>"]</code>.</li>
306306
<li>
307307
<b>LET</b> <var>non_textual_content_images</var> be the result of calling <a href="#check-for-node">check for node</a> on
308-
<var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="<i>schema:accessibilityFeature</i>" and <br/>(normalize-space()="<i>chartOnVisual</i>" or normalize-space()="<i>chemOnVisual</i>" or <br/>
309-
normalize-space()="<i>diagramOnVisual"</i> or normalize-space()="<i>mathOnVisual</i>" or <br/>
310-
normalize-space()="<i>musicOnVisual"</i> or normalize-space()="<i>textOnVisual</i>")]</code>.
308+
<var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="<i>schema:accessMode</i>" and <br/>normalize-space() = ("chartOnVisual", "chemOnVisual", "diagramOnVisual", "mathOnVisual", "musicOnVisual", "textOnVisual")]</code>.
311309
</li>
312310

313311
<li><b>LET</b> <var>textual_alternative_images</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="<i>schema:accessibilityFeature</i>" and <br/>(normalize-space()="<i>longDescription</i>" or normalize-space()="<i>alternativeText</i>" or normalize-space()="<i>describedMath"</i>)]</code>.
@@ -671,7 +669,7 @@ <h4>Understanding the variables</h4>
671669
<dl>
672670
<dt><var>contains_charts_diagrams</var></dt>
673671
<dd>
674-
<p>If true it indicates that the <i>accessibilityFeature="chartOnVisual"</i> (charts encoded in visual form) is present in the package document, otherwise if false it means that the metadata is not present.</p>
672+
<p>If true it indicates that the <i>accessMode="chartOnVisual"</i> (charts encoded in visual form) is present in the package document, otherwise if false it means that the metadata is not present.</p>
675673
<p>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).</p>
676674
</dd>
677675
<dt><var>long_text_descriptions</var></dt>
@@ -681,7 +679,7 @@ <h4>Understanding the variables</h4>
681679
</dd>
682680
<dt><var>contains_chemical_formula</var></dt>
683681
<dd>
684-
<p>If true it indicates that the <i>accessibilityFeature="chemOnVisual"</i> (Chemical content) is present in the package document, otherwise if false it means that the metadata is not present.</p>
682+
<p>If true it indicates that the <i>accessMode="chemOnVisual"</i> (Chemical content) is present in the package document, otherwise if false it means that the metadata is not present.</p>
685683
<p>This means that there is a positive indication that the publication contains chemical notations, formulae.</p>
686684
</dd>
687685
<dt><var>chemical_formula_as_
@@ -731,11 +729,11 @@ <h4>Variables setup</h4>
731729
<ol class="condition">
732730
<li><b>LET</b> <var>package_document</var> be the result of calling <a href="#pre-processing">preprocessing</a> given <var>package_document_as_text</var>.</li>
733731

734-
<li><b>LET</b> <var>contains_charts_diagrams</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessibilityFeature</i>" and normalize-space()="<i>chartOnVisual</i>"]</code>.</li>
732+
<li><b>LET</b> <var>contains_charts_diagrams</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessMode</i>" and normalize-space()="<i>chartOnVisual</i>"]</code>.</li>
735733

736734
<li><b>LET</b> <var>long_text_descriptions</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessibilityFeature</i>" and normalize-space()="<i>longDescriptions</i>"]</code>.</li>
737735

738-
<li><b>LET</b> <var>contains_chemical_formula</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessibilityFeature</i>" and normalize-space()="<i>chemOnVisual</i>"]</code>.</li>
736+
<li><b>LET</b> <var>contains_chemical_formula</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessMode</i>" and normalize-space()="<i>chemOnVisual</i>"]</code>.</li>
739737

740738

741739
<li><b>LET</b> <var>chemical_formula_as_latex</var> be the result of calling <a href="#check-for-node">check for node</a> on <var>package_document</var>, <code class="xpath">/package/metadata/meta[@property="schema:<i>accessibilityFeature</i>" and normalize-space()="<i>latex-chemistry</i>"]</code>.</li>

0 commit comments

Comments
 (0)