Charts, diagrams, math, and formulas
- This technique relates to Charts, diagrams, math, and formulas key information.
+ This technique relates to Charts, diagrams, math, and formulas key information.
This algorithm takes the package_document_as_text argument: a UTF-8 string representing the Package document.
Understanding the variables
@@ -749,24 +737,24 @@ Variables setup
Instructions
-
- Display
"Charts, diagrams, math, and formulas"
as heading.
+ Display "Charts, diagrams, math, and formulas"
as heading.
This heading can be hidden if metadata is missing.
-
IF (contains_charts_diagrams AND long_text_descriptions):
- THEN display
"Charts and diagrams have extended descriptions"
.
+ THEN display "Charts and diagrams have extended descriptions"
.
-
IF chemical_formula_as_chemml:
- THEN display
"Accessible chemistry content"
.
+ THEN display "Accessible chemistry content"
.
-
IF math_formula_as_latex OR math_formula_as_mathml:
- THEN display
"Accessible math content"
.
+ THEN display "Accessible math content"
.
-
IF (contains_charts_diagrams OR contains_chemical_formula OR contains_math_formula) AND NOT (long_text_descriptions OR chemical_formula_as_chemml OR math_formula_as_latex OR math_formula_as_mathml):
- THEN display
"accessibility of formulas, charts, math, and diagrams not identified as being accessible"
.
+ THEN display "accessibility of formulas, charts, math, and diagrams not identified as being accessible"
.
@@ -890,7 +878,7 @@ Instructions
THEN display "The presence of hazards is unknown"
.
- ELSE either omit this key informtion if metadata is missing or display "No information about possible hazards is available."
.
+ ELSE either omit this key informtion if metadata is missing or display "No information about possible hazards is available"
.
@@ -913,7 +901,7 @@ Understanding the variables
- accessibility_summary
-
-
If true it indicates that the accessibilitySummary is present in the package document, otherwise if false it means that the metadata is not present.
+ Contains the accessibilitySummary from the package document if it exists, otherwise it will be blank.
This means there is a human-written text containing a short explanatory summary of the accessibility of the product or the URL of a web page comprising such a summary. Summarizes the already existent information and may add information that the publisher could not express with the other codes.
- lang_attribute_accessibility_summary
@@ -931,7 +919,7 @@ Variables setup
- LET package_document be the result of calling preprocessing given package_document_as_text.
- - LET accessibility_summary be the result of calling check for node on package_document,
/package/metadata/meta[@property="schema:accessibilitySummary"]
.
+ - LET accessibility_summary be the value of the node extracted from package_document, using the xpath
/package/metadata/meta[@property="schema:accessibilitySummary"]
.
- LET lang_attribute_accessibility_summary be the result of calling check for node on package_document,
/package/metadata/meta[@property="schema:accessibilitySummary"]/(@lang|ancestor::*/@lang)[last()]
.
@@ -952,7 +940,7 @@ Instructions
ELSE LET language_accessibility_summary be the value of language_of_text.
-
- ELSE IF accessibility_summary is NOT empty:
+ IF accessibility_summary is NOT empty:
THEN display the content of accessibility_summary with language_accessibility_summary as language.
-
ELSE either omit this key informtion if metadata is missing or display
"No accessibility summary is available."
.
diff --git a/a11y-meta-display-guide/2.0/draft/techniques/onix-metadata/index.html b/a11y-meta-display-guide/2.0/draft/techniques/onix-metadata/index.html
index a778635d..b3c1cc3b 100644
--- a/a11y-meta-display-guide/2.0/draft/techniques/onix-metadata/index.html
+++ b/a11y-meta-display-guide/2.0/draft/techniques/onix-metadata/index.html
@@ -522,8 +522,8 @@ Instructions
-