From fc0a83e3720637db46c83753897d264eac8f8150 Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Thu, 23 Jan 2025 15:27:08 +0100 Subject: [PATCH 1/7] First public release of the script to generate the canonical JSON --- .../bin/canonical-json-extract-ids.xsl | 40 +++++ .../bin/canonical-json-extract-strings.xsl | 64 +++++++ a11y-meta-display-guide/bin/ids.xml | 157 ++++++++++++++++++ .../bin/update-canonical-json.sh | 52 ++++++ 4 files changed, 313 insertions(+) create mode 100644 a11y-meta-display-guide/bin/canonical-json-extract-ids.xsl create mode 100644 a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl create mode 100644 a11y-meta-display-guide/bin/ids.xml create mode 100755 a11y-meta-display-guide/bin/update-canonical-json.sh diff --git a/a11y-meta-display-guide/bin/canonical-json-extract-ids.xsl b/a11y-meta-display-guide/bin/canonical-json-extract-ids.xsl new file mode 100644 index 00000000..7e3d39f9 --- /dev/null +++ b/a11y-meta-display-guide/bin/canonical-json-extract-ids.xsl @@ -0,0 +1,40 @@ + + + + + + + + + + + ways-of-reading + conformance + navigation + rich-content + hazards + accessibility-summary + legal-considerations + additional-accessibility-information + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl new file mode 100644 index 00000000..4bad536b --- /dev/null +++ b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + W3C Publishing Community Group Accessibility Task Force + en-US + canonical + general + Original wording discussed by a large group representing different actors of the English-speaking geographies. It has been improved after proof of concept implementations and panel testers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/a11y-meta-display-guide/bin/ids.xml b/a11y-meta-display-guide/bin/ids.xml new file mode 100644 index 00000000..40a0ac34 --- /dev/null +++ b/a11y-meta-display-guide/bin/ids.xml @@ -0,0 +1,157 @@ + + + + ways-of-reading-nonvisual-reading-alt-text + ways-of-reading-nonvisual-reading-alt-text + ways-of-reading-nonvisual-reading-may-not-fully + ways-of-reading-nonvisual-reading-may-not-fully + ways-of-reading-nonvisual-reading-not-fully + ways-of-reading-nonvisual-reading-not-fully + ways-of-reading-nonvisual-reading-readable + ways-of-reading-nonvisual-reading-readable + ways-of-reading-prerecorded-audio-complementary + ways-of-reading-prerecorded-audio-no-metadata + ways-of-reading-prerecorded-audio-no-metadata + ways-of-reading-prerecorded-audio-only + ways-of-reading-prerecorded-audio-only + ways-of-reading-prerecorded-audio-synchronized + ways-of-reading-prerecorded-audio-synchronized + ways-of-reading-title + ways-of-reading-title + ways-of-reading-title + ways-of-reading-visual-adjustments-modifiable + ways-of-reading-visual-adjustments-modifiable + ways-of-reading-visual-adjustments-unknown + ways-of-reading-visual-adjustments-unknown + ways-of-reading-visual-adjustments-unmodifiable + ways-of-reading-visual-adjustments-unmodifiable + + + conformance-a + conformance-a + conformance-a + conformance-a + conformance-a + conformance-aa + conformance-aa + conformance-aa + conformance-aa + conformance-aa + conformance-aaa + conformance-aaa + conformance-aaa + conformance-aaa + conformance-certification-info + conformance-certification-info + conformance-certification-info + conformance-certifier + conformance-certifier + conformance-certifier + conformance-certifier + conformance-certifier-credentials + conformance-certifier-credentials + conformance-certifier-credentials + conformance-certifier-credentials + conformance-certifier-credentials + conformance-certifier-report + conformance-certifier-report + conformance-certifier-report + conformance-claim + conformance-claim + conformance-claim + conformance-details + conformance-details + conformance-details + conformance-epub-accessibility-1-0 + conformance-epub-accessibility-1-1 + conformance-level-a + conformance-level-aa + conformance-no + conformance-no + conformance-no + conformance-no + conformance-title + conformance-title + conformance-title + conformance-title + conformance-title + conformance-unknown-standard + conformance-wcag-2-1 + conformance-wcag-2-2 + + + navigation-index + navigation-index + navigation-no-metadata + navigation-no-metadata + navigation-no-metadata + navigation-page-navigation + navigation-page-navigation + navigation-structural + navigation-structural + navigation-title + navigation-title + navigation-title + navigation-toc + navigation-toc + + + rich-content-accessible-chemistry-as-latex + rich-content-accessible-chemistry-as-latex + rich-content-accessible-chemistry-as-mathml + rich-content-accessible-chemistry-as-mathml + rich-content-accessible-math-as-latex + rich-content-accessible-math-as-latex + rich-content-accessible-math-as-mathml + rich-content-accessible-math-as-mathml + rich-content-accessible-math-described + rich-content-accessible-math-described + rich-content-closed-captions + rich-content-closed-captions + rich-content-extended + rich-content-extended + rich-content-open-captions + rich-content-open-captions + rich-content-title + rich-content-title + rich-content-title + rich-content-transcript + rich-content-transcript + rich-content-unknown + rich-content-unknown + rich-content-unknown + + + hazards-flashing + hazards-flashing + hazards-motion + hazards-motion + hazards-no-metadata + hazards-no-metadata + hazards-no-metadata + hazards-none + hazards-none + hazards-sound + hazards-sound + hazards-title + hazards-title + hazards-title + hazards-unknown + hazards-unknown + + + accessibility-summary-no-metadata + accessibility-summary-title + accessibility-summary-title + + + legal-considerations-exempt + legal-considerations-exempt + legal-considerations-no-metadata + legal-considerations-no-metadata + legal-considerations-title + + + additional-accessibility-information-title + + \ No newline at end of file diff --git a/a11y-meta-display-guide/bin/update-canonical-json.sh b/a11y-meta-display-guide/bin/update-canonical-json.sh new file mode 100755 index 00000000..cf5a4d60 --- /dev/null +++ b/a11y-meta-display-guide/bin/update-canonical-json.sh @@ -0,0 +1,52 @@ +#!/bin/bash + +# Check for required commands +check_command() { + if ! command -v "$1" &> /dev/null; then + echo "Error: $1 is not installed. Please install it and try again." + if [ "$1" = "yq" ]; then + echo "To install yq, visit: https://github.com/mikefarah/yq#install" + fi + exit 1 + fi +} + +check_command yq +check_command xsltproc +check_command java + +# Setup +basedir=$(readlink -f "$0") +basedir=$(dirname "$basedir") +tmpdir=$(mktemp -d) +output_dir="$basedir/../2.0/draft/localizations" + +# Input files +guidelines="$basedir/../2.0/draft/guidelines/index.html" +epub_techniques="$basedir/../2.0/draft/techniques/epub-metadata/index.html" +onix_techniques="$basedir/../2.0/draft/techniques/onix-metadata/index.html" + +# XSLT files +xslt_extract_ids="$basedir/canonical-json-extract-ids.xsl" +xslt_extract_strings="$basedir/canonical-json-extract-strings.xsl" + +# Extract unique IDs +xsltproc --stringparam guidelines "$guidelines" \ + --stringparam onix "$onix_techniques" \ + --stringparam epub "$epub_techniques" \ + "$xslt_extract_ids" "$guidelines" > "$tmpdir/ids.xml" + +# Extract strings using IDs +xsltproc --stringparam guidelines "$guidelines" \ + --stringparam onix "$onix_techniques" \ + --stringparam epub "$epub_techniques" \ + --stringparam ids-file "$tmpdir/ids.xml" \ + "$xslt_extract_strings" "$tmpdir/ids.xml" > "$tmpdir/strings.xml" + +# Convert to JSON +yq --prettyPrint --xml-skip-proc-inst --indent 4 -p=xml -o=json '.root' "$tmpdir/strings.xml" > "$output_dir/en-US/display_guide_vocabulary_w3c_en-US.json" + +# Cleanup +rm -rf "$tmpdir" + +echo "Transformation completed. JSON created at en-US/display_guide_vocabulary_w3c_en-US.json" \ No newline at end of file From 117490b30fc6a584912b0c4590e75be9aec290e6 Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Thu, 23 Jan 2025 15:27:17 +0100 Subject: [PATCH 2/7] Update of the canonical JSON --- .../display_guide_vocabulary_w3c_en-US.json | 507 ++++++++++-------- 1 file changed, 277 insertions(+), 230 deletions(-) diff --git a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json index ade856ab..69cb0fa7 100644 --- a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json +++ b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json @@ -6,269 +6,316 @@ "audience": "general", "description": "Original wording discussed by a large group representing different actors of the English-speaking geographies. It has been improved after proof of concept implementations and panel testers" }, - "visual-adjustments": { - "visual-adjustments-title": "Visual adjustments", - "visual-adjustments-modifiable": { - "descriptive": "Appearance of the text and page layout can be modified according to the capabilities of the reading system (font family and font size, spaces between paragraphs, sentences, words, and letters, as well as color of background and text)", - "compact": "Appearance can be modified" - }, - "visual-adjustments-unmodifiable": { - "descriptive": "Text and page layout can not be modified. The reading experience is close to a print version. Reading systems can still provide zooming options", - "compact": "Appearance cannot be modified" - }, - "visual-adjustments-unknown": { - "descriptive": "Ability to modify the appearance is not known", - "compact": "Appearance Modifiability not known" - } - }, - "nonvisual-reading": { - "nonvisual-reading-title": "Supports nonvisual reading", - "nonvisual-reading-readable": { - "descriptive": "All content is available in generated read aloud speech and electronic braille", - "compact": "Readable in read aloud and braille" - }, - "nonvisual-reading-may-not-fully": { - "descriptive": "Portions of the content may not be available in generated read aloud speech and electronic braille", - "compact": "May not be fully readable in read aloud and braille" - }, - "nonvisual-reading-not-fully": { - "descriptive": "Not all of the content will be available in generated read aloud speech and electronic braille", - "compact": "Not fully readable in read aloud and braille" + "ways-of-reading": { + "ways-of-reading-title": "Ways of reading", + "ways-of-reading-nonvisual-reading-alt-text": { + "compact": "Has alternative text", + "descriptive": "Has alternative text descriptions for images" + }, + "ways-of-reading-nonvisual-reading-may-not-fully": { + "compact": "May not be fully readable in read aloud or dynamic braille", + "descriptive": "Portions of the content may not be readable as read aloud speech or dynamic braille" + }, + "ways-of-reading-nonvisual-reading-not-fully": { + "compact": "Not fully readable in read aloud or dynamic braille", + "descriptive": "Not all of the content will be readable as read aloud speech or dynamic braille" + }, + "ways-of-reading-nonvisual-reading-readable": { + "compact": "Readable in read aloud or dynamic braille", + "descriptive": "All content can be read as read aloud speech or dynamic braille" + }, + "ways-of-reading-prerecorded-audio-complementary": { + "compact": "Complementary audio and text", + "descriptive": "Portions of prerecorded audio are available" + }, + "ways-of-reading-prerecorded-audio-no-metadata": { + "compact": "No information about prerecorded audio is available", + "descriptive": "No information about prerecorded audio is available" + }, + "ways-of-reading-prerecorded-audio-only": { + "compact": "Prerecorded audio only", + "descriptive": "Audiobook with no text alternative" + }, + "ways-of-reading-prerecorded-audio-synchronized": { + "compact": "Prerecorded audio synchronized with text", + "descriptive": "All the content is available as prerecorded audio synchronized with text" + }, + "ways-of-reading-visual-adjustments-modifiable": { + "compact": "Appearance can be modified", + "descriptive": "Appearance of the text and page layout can be modified according to the capabilities of the reading system (font family and font size, spaces between paragraphs, sentences, words, and letters, as well as color of background and text)" + }, + "ways-of-reading-visual-adjustments-unknown": { + "compact": "No information about appearance modifiability is available", + "descriptive": "No information about appearance modifiability is available" + }, + "ways-of-reading-visual-adjustments-unmodifiable": { + "compact": "Appearance cannot be modified", + "descriptive": "Text and page layout cannot be modified as the reading experience is close to a print version, but reading systems can still provide zooming options" } }, "conformance": { "conformance-title": "Conformance", - "conformance-aaa": { - "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AAA standard", - "compact": "This publication exceeds accepted accessibility standards" + "conformance-a": { + "compact": "This publication meets minimum accessibility standards", + "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level A standard" }, "conformance-aa": { - "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AA standard", - "compact": "This publication meets accepted accessibility standards" + "compact": "This publication meets accepted accessibility standards", + "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AA standard" }, - "conformance-a": { - "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level A standard", - "compact": "This publication meets minimum accessibility standards" - }, - "conformance-not-EPUB": { - "descriptive": "The publication contains a conformance statement that is not to the EPUB Accessibility standard", - "compact": "Conformance to accepted standards for accessibility of this publication cannot be determined" - }, - "conformance-unknown": { - "descriptive": "The conformance metadata is missing and conformity to a standard of this publication is unknown", - "compact": "The publication does not include a conformance statement" - }, - "detailed-Conformance": { - "detailled-conformance-information": "Detailed Conformance Information:", - "conformance-claim": "This publication claims to meet", - "conformance-epub-accessibility-1-0": " EPUB Accessibility 1.0 ", - "conformance-epub-accessibility-1-1": " EPUB Accessibility 1.1 ", - "conformance-wcag-2-2-compact": " WCAG 2.2 ", - "conformance-wcag-2-1-compact": " WCAG 2.1 ", - "conformance-wcag-2-0-compact": " WCAG 2.0 ", - "conformance-wcag-2-2-descriptive": " Web Accessibility Content Guidelines (WCAG) 2.2 ", - "conformance-wcag-2-1-descriptive": " Web Accessibility Content Guidelines (WCAG) 2.1 ", - "conformance-wcag-2-0-descriptive": " Web Accessibility Content Guidelines (WCAG) 2.0 ", - "conformance-level-aaa": " Level AAA", - "conformance-level-aa": " Level AA", - "conformance-level-a": " Level A", - "conformance-certification-info-compact": "The publication was certified", - "conformance-certification-info-descriptive": "The publication was certified", - "conformance-certification-date-prefix": " on ", - "conformance-certifier-prefix-compact": " by ", - "conformance-certifier-prefix-descriptive": " by ", - "conformance-certifier-credentials-prefix-compact": " The certifier's credential is ", - "conformance-certifier-credentials-prefix-descriptive": " with a credential of ", - "conformance-certifier-report": "For more information refer to the certifier's report." - } - }, - "pre-recorded-audio": { - "pre-recorded-audio-title": "Pre-recorded audio", - "pre-recorded-audio-only": { - "descriptive": "Audiobook with no text alternative", - "compact": "Audio only" - }, - "pre-recorded-audio-complementary": { - "descriptive": "Contents available as complementary audio and text", - "compact": "Complementary audio and text" - }, - "pre-recorded-audio-synchronized": { - "descriptive": "All the content is available as pre-recorded audio synchronized with text", - "compact": "Synchronized audio and text" - }, - "pre-recorded-audio-no-metadata": { - "descriptive": "No information about pre-recorded audio", - "compact": "No information about pre-recorded audio" + "conformance-aaa": { + "compact": "This publication exceeds accepted accessibility standards", + "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AAA standard" + }, + "conformance-certification-info": { + "compact": "The publication was certified on", + "descriptive": "The publication was certified on" + }, + "conformance-certifier": { + "compact": "The publication was certified by", + "descriptive": "The publication was certified by" + }, + "conformance-certifier-credentials": { + "compact": "The certifier's credential is", + "descriptive": "The certifier's credential is" + }, + "conformance-certifier-report": { + "compact": "For more information refer to the certifier's report", + "descriptive": null + }, + "conformance-claim": { + "compact": "This publication claims to meet", + "descriptive": null + }, + "conformance-details": { + "compact": "Detailed conformance information", + "descriptive": null + }, + "conformance-epub-accessibility-1-0": { + "compact": "EPUB Accessibility 1.0", + "descriptive": null + }, + "conformance-epub-accessibility-1-1": { + "compact": "EPUB Accessibility 1.1", + "descriptive": null + }, + "conformance-level-a": { + "compact": "Level A", + "descriptive": null + }, + "conformance-level-aa": { + "compact": "Level AA", + "descriptive": null + }, + "conformance-level-aaa": { + "compact": "Level AAA", + "descriptive": null + }, + "conformance-no": { + "compact": "No information is available", + "descriptive": "No information is available" + }, + "conformance-unknown-standard": { + "compact": "Conformance to accepted standards for accessibility of this publication cannot be determined", + "descriptive": null + }, + "conformance-wcag-2-0": { + "compact": "WCAG 2.0", + "descriptive": null + }, + "conformance-wcag-2-1": { + "compact": "WCAG 2.1", + "descriptive": "Web Accessibility Content Guidelines (WCAG) 2.1" + }, + "conformance-wcag-2-2": { + "compact": "WCAG 2.2", + "descriptive": "Web Content Accessibility Guidelines (WCAG) 2.2" } }, "navigation": { "navigation-title": "Navigation", - "navigation-intro": { - "compact": "Navigation by" + "navigation-index": { + "compact": "Index", + "descriptive": "Index with links to referenced entries" }, - "navigation-toc": { - "descriptive": "Contains a table of contents that provides direct access to all chapters of the text via links", - "compact": "Table of contents" + "navigation-no-metadata": { + "compact": "No information is available", + "descriptive": "No information is available" }, - "navigation-index": { - "descriptive": "Index provides links to item references", - "compact": "Index" + "navigation-page-navigation": { + "compact": "Go to page", + "descriptive": "Page list to go to pages from the print source version" }, - "navigation-landmarks": { - "descriptive": "Landmarks provide quick access to main parts of the book", - "compact": "Landmarks" + "navigation-structural": { + "compact": "Headings", + "descriptive": "Elements such as headings, tables, etc for structured navigation" }, - "navigation-page": { - "descriptive": "A page list enables users to coordinate their reading with a statically paginated version", - "compact": "Page list" + "navigation-toc": { + "compact": "Table of contents", + "descriptive": "Table of contents to all chapters of the text via links" } }, - "charts-diagrams-formulas": { - "charts-diagrams-formulas-title": "Charts, diagrams, and formulas", - "charts-diagrams-formulas-extended": { - "descriptive": "Charts and diagrams are present and described by extended descriptions", - "compact": "Charts and diagrams have extended descriptions" - }, - "charts-diagrams-formulas-non-graphical-data": { - "descriptive": "Contains visual data available in accessible format", - "compact": "Visualized data also available as non-graphical data" - }, - "charts-diagrams-formulas-accessible-chemistry": { - "descriptive": "Contains chemistry formulas in accessible format", - "compact": "Accessible chemistry content" - }, - "charts-diagrams-formulas-accessible-math": { - "descriptive": "Contains math formulas in accessible format", - "compact": "Accessible math content" - }, - "charts-diagrams-formulas-accessible-unknown": { - "descriptive": "Contains formulas, charts, and diagrams without any information about the accessibility of this content.", - "compact": "Accessibility of formulas, charts, and diagrams unknown" + "rich-content": { + "rich-content-title": "Rich content", + "rich-content-accessible-chemistry-as-latex": { + "compact": "Chemical formulas in LaTeX", + "descriptive": "Chemical formulas in accessible format (LaTeX)" + }, + "rich-content-accessible-chemistry-as-mathml": { + "compact": "Chemical formulas in MathML", + "descriptive": "Chemical formulas in accessible format (MathML)" + }, + "rich-content-accessible-math-as-latex": { + "compact": "Math as LaTeX", + "descriptive": "Math formulas in accessible format (LaTeX)" + }, + "rich-content-accessible-math-as-mathml": { + "compact": "Math as MathML", + "descriptive": "Math formulas in accessible format (MathML)" + }, + "rich-content-accessible-math-described": { + "compact": "Text descriptions of math are provided", + "descriptive": "Text descriptions of math are provided" + }, + "rich-content-closed-captions": { + "compact": "Videos have closed captions", + "descriptive": "Videos included in publications have closed captions" + }, + "rich-content-extended": { + "compact": "Information-rich images are described by extended descriptions", + "descriptive": "Information-rich images are described by extended descriptions" + }, + "rich-content-open-captions": { + "compact": "Videos have open captions", + "descriptive": "Videos included in publications have open captions" + }, + "rich-content-transcript": { + "compact": "Transcript(s) provided", + "descriptive": "Transcript(s) provided" + }, + "rich-content-unknown": { + "compact": "No information is available", + "descriptive": "No information is available" } }, "hazards": { "hazards-title": "Hazards", - "hazards-none": { - "descriptive": "The publication contains no hazards", - "compact": "No hazards" - }, "hazards-flashing": { - "descriptive": "rapidly changing lights", - "compact": "flashing" + "compact": "Flashing content", + "descriptive": "The publication contains flashing content which can cause photosensitive seizures" }, "hazards-motion": { - "descriptive": "visual stimuli or simulated movements", - "compact": "motion" + "compact": "Motion simulation", + "descriptive": "The publication contains motion simulations that can cause motion sickness" }, - "hazards-sound": { - "descriptive": "auditory content (sounds, noises, spoken words, music, etc.)", - "compact": "sound" + "hazards-no-metadata": { + "compact": "No information is available", + "descriptive": "No information is available" }, - "hasards-explanatory": { - "descriptive": "which can cause discomfort, distraction, photosensitive seizures, or motion sickness", - "compact": "" + "hazards-none": { + "compact": "No hazards", + "descriptive": "The publication contains no hazards" }, - "hazards-plural": " hazards", - "hazards-singular": " hazard", - "hazards-unknown": { - "descriptive": "The presence of hazards is unknown", - "compact": "Hasards unknown" + "hazards-sound": { + "compact": "Sounds", + "descriptive": "The publication contains sounds which can be uncomfortable" }, - "hazards-no-metadata": { - "descriptive": "No information about possible hazards", - "compact": "No information about hazards" + "hazards-unknown": { + "compact": "The presence of hazards is unknown", + "descriptive": "The presents of hazards is unknown" } }, "accessibility-summary": { - "accessibility-summary-title": "Accessibility summary" + "accessibility-summary-title": "Accessibility summary", + "accessibility-summary-no-metadata": { + "compact": "No information is available", + "descriptive": null + } + }, + "legal-considerations": { + "legal-considerations-title": "Legal considerations", + "legal-considerations-exempt": { + "compact": "Claims an accessibility exemption in some jurisdictions", + "descriptive": "This publication claims an accessibility exemption in some jurisdictions" + }, + "legal-considerations-no-metadata": { + "compact": "No information is available", + "descriptive": "No information is available" + } }, "additional-accessibility-information": { "additional-accessibility-information-title": "Additional accessibility information", - "additional-accessibility-information-adaptation": { - "additional-accessibility-information-adaptation-title": "Adaptation", - "additional-accessibility-information-adaptation-dyslexia-readability": { - "descriptive": "", - "compact": "dyslexia readability" - }, - "additional-accessibility-information-adaptation-closed-captions": { - "descriptive": "Videos included in publications have closed captions that can be turned off, selected and accessed as text", - "compact": "closed captions" - }, - "additional-accessibility-information-adaptation-open-captions": { - "descriptive": "Videos included in publications have open captions that are only visually accessible", - "compact": "open captions" - }, - "additional-accessibility-information-adaptation-full-transcript": { - "descriptive": "", - "compact": "full transcript" - }, - "additional-accessibility-information-adaptation-sign-language": { - "descriptive": "", - "compact": "sign language" - } - }, - "additional-accessibility-information-clarity": { - "additional-accessibility-information-clarity-title": "Clarity", - "additional-accessibility-information-clarity-text-to-speech-hinting": { - "descriptive": "", - "compact": "text-to-speech hinting provided" - }, - "additional-accessibility-information-clarity-color-not-sole-means-of-conveying-information": { - "descriptive": "", - "compact": "color is not the sole means of conveying information" - }, - "additional-accessibility-information-clarity-high-contrast-between-text-and-background": { - "descriptive": "", - "compact": "high contrast between text and background" - }, - "additional-accessibility-information-clarity-ultra-high-contrast-between-text-and-background": { - "descriptive": "", - "compact": "ultra high contrast between text and background" - }, - "additional-accessibility-information-clarity-visible-page-numbering": { - "descriptive": "Visible page breaks included from the original print source", - "compact": "visible page numbering" - }, - "additional-accessibility-information-clarity-high-contrast-between-foreground-and-background-audio": { - "descriptive": "", - "compact": "high contrast between foreground and background audio" - }, - "additional-accessibility-information-clarity-without-background-sounds": { - "descriptive": "", - "compact": "without background sounds" - } - }, - "additional-accessibility-information-structure": { - "additional-accessibility-information-structure-title": "Structure", - "aria-roles": { - "descriptive": "Content is enhanced with ARIA roles to optimize organization and facilitate navigation", - "compact": "ARIA roles included" - } - }, - "additional-accessibility-information-content": { - "additional-accessibility-information-content-title": "Contents", - "video-captions": { - "descriptive": "Videos included in publications have closed captions and sign language representation", - "compact": "Closed captions and sign languages for videos" - }, - "music-visual": { - "descriptive": "Music scores are provided that are visually accessible", - "compact": "Music scores visually presented" - }, - "information-through-colors": { - "descriptive": "Content contains information encoded through colors, which may be imperceptible to those who cannot distinguish colors", - "compact": "Information encoded through colors" - } - }, - "additional-accessibility-information-tactile": { - "additional-accessibility-information-contents-title": "Tactile", - "tactile-graphics": { - "descriptive": "Tactile graphics have been integrated to facilitate access to visual elements by blind people", - "compact": "Tactile graphics attached" - } + "additional-accessibility-information-adaptation-audio-descriptions": { + "compact": "Audio descriptions", + "descriptive": null + }, + "additional-accessibility-information-adaptation-braille": { + "compact": "Braille", + "descriptive": null + }, + "additional-accessibility-information-adaptation-dyslexia-readability": { + "compact": "Dyslexia readability", + "descriptive": null + }, + "additional-accessibility-information-adaptation-sign-language": { + "compact": "Sign language", + "descriptive": null + }, + "additional-accessibility-information-adaptation-tactile_graphics": { + "compact": "Tactile graphics", + "descriptive": null + }, + "additional-accessibility-information-adaptation-tactile_objects": { + "compact": "Tactile 3D objects", + "descriptive": null + }, + "additional-accessibility-information-clarity-aria": { + "compact": "ARIA", + "descriptive": null + }, + "additional-accessibility-information-clarity-color-not-sole-means-of-conveying-information": { + "compact": "Color is not the sole means of conveying information", + "descriptive": null + }, + "additional-accessibility-information-clarity-full-ruby-annotations": { + "compact": "Full ruby annotations", + "descriptive": null + }, + "additional-accessibility-information-clarity-high-contrast-between-foreground-and-background-audio": { + "compact": "High contrast between foreground and background audio", + "descriptive": null + }, + "additional-accessibility-information-clarity-high-contrast-between-text-and-background": { + "compact": "High contrast between foreground text and background", + "descriptive": null + }, + "additional-accessibility-information-clarity-large-print": { + "compact": "Large print", + "descriptive": null + }, + "additional-accessibility-information-clarity-page-breaks": { + "compact": "Visible page breaks", + "descriptive": null + }, + "additional-accessibility-information-clarity-ruby-annotations": { + "compact": "Some Ruby annotations", + "descriptive": null + }, + "additional-accessibility-information-clarity-text-to-speech-hinting": { + "compact": "Text-to-speech hinting provided", + "descriptive": null + }, + "additional-accessibility-information-clarity-ultra-high-contrast-between-text-and-background": { + "compact": "Ultra high contrast between text and background", + "descriptive": null + }, + "additional-accessibility-information-clarity-visible-page-numbering": { + "compact": "Visible page numbering", + "descriptive": null + }, + "additional-accessibility-information-clarity-without-background-sounds": { + "compact": "Without background sounds", + "descriptive": null } - }, - "common-arrays": { - "join-array-to-comma-list": ", and" } -} \ No newline at end of file +} From 4fc0840c01030fe16fdc752e9df88f77222c333a Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Thu, 23 Jan 2025 15:39:48 +0100 Subject: [PATCH 3/7] Removing ids --- a11y-meta-display-guide/bin/ids.xml | 157 ---------------------------- 1 file changed, 157 deletions(-) delete mode 100644 a11y-meta-display-guide/bin/ids.xml diff --git a/a11y-meta-display-guide/bin/ids.xml b/a11y-meta-display-guide/bin/ids.xml deleted file mode 100644 index 40a0ac34..00000000 --- a/a11y-meta-display-guide/bin/ids.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - - ways-of-reading-nonvisual-reading-alt-text - ways-of-reading-nonvisual-reading-alt-text - ways-of-reading-nonvisual-reading-may-not-fully - ways-of-reading-nonvisual-reading-may-not-fully - ways-of-reading-nonvisual-reading-not-fully - ways-of-reading-nonvisual-reading-not-fully - ways-of-reading-nonvisual-reading-readable - ways-of-reading-nonvisual-reading-readable - ways-of-reading-prerecorded-audio-complementary - ways-of-reading-prerecorded-audio-no-metadata - ways-of-reading-prerecorded-audio-no-metadata - ways-of-reading-prerecorded-audio-only - ways-of-reading-prerecorded-audio-only - ways-of-reading-prerecorded-audio-synchronized - ways-of-reading-prerecorded-audio-synchronized - ways-of-reading-title - ways-of-reading-title - ways-of-reading-title - ways-of-reading-visual-adjustments-modifiable - ways-of-reading-visual-adjustments-modifiable - ways-of-reading-visual-adjustments-unknown - ways-of-reading-visual-adjustments-unknown - ways-of-reading-visual-adjustments-unmodifiable - ways-of-reading-visual-adjustments-unmodifiable - - - conformance-a - conformance-a - conformance-a - conformance-a - conformance-a - conformance-aa - conformance-aa - conformance-aa - conformance-aa - conformance-aa - conformance-aaa - conformance-aaa - conformance-aaa - conformance-aaa - conformance-certification-info - conformance-certification-info - conformance-certification-info - conformance-certifier - conformance-certifier - conformance-certifier - conformance-certifier - conformance-certifier-credentials - conformance-certifier-credentials - conformance-certifier-credentials - conformance-certifier-credentials - conformance-certifier-credentials - conformance-certifier-report - conformance-certifier-report - conformance-certifier-report - conformance-claim - conformance-claim - conformance-claim - conformance-details - conformance-details - conformance-details - conformance-epub-accessibility-1-0 - conformance-epub-accessibility-1-1 - conformance-level-a - conformance-level-aa - conformance-no - conformance-no - conformance-no - conformance-no - conformance-title - conformance-title - conformance-title - conformance-title - conformance-title - conformance-unknown-standard - conformance-wcag-2-1 - conformance-wcag-2-2 - - - navigation-index - navigation-index - navigation-no-metadata - navigation-no-metadata - navigation-no-metadata - navigation-page-navigation - navigation-page-navigation - navigation-structural - navigation-structural - navigation-title - navigation-title - navigation-title - navigation-toc - navigation-toc - - - rich-content-accessible-chemistry-as-latex - rich-content-accessible-chemistry-as-latex - rich-content-accessible-chemistry-as-mathml - rich-content-accessible-chemistry-as-mathml - rich-content-accessible-math-as-latex - rich-content-accessible-math-as-latex - rich-content-accessible-math-as-mathml - rich-content-accessible-math-as-mathml - rich-content-accessible-math-described - rich-content-accessible-math-described - rich-content-closed-captions - rich-content-closed-captions - rich-content-extended - rich-content-extended - rich-content-open-captions - rich-content-open-captions - rich-content-title - rich-content-title - rich-content-title - rich-content-transcript - rich-content-transcript - rich-content-unknown - rich-content-unknown - rich-content-unknown - - - hazards-flashing - hazards-flashing - hazards-motion - hazards-motion - hazards-no-metadata - hazards-no-metadata - hazards-no-metadata - hazards-none - hazards-none - hazards-sound - hazards-sound - hazards-title - hazards-title - hazards-title - hazards-unknown - hazards-unknown - - - accessibility-summary-no-metadata - accessibility-summary-title - accessibility-summary-title - - - legal-considerations-exempt - legal-considerations-exempt - legal-considerations-no-metadata - legal-considerations-no-metadata - legal-considerations-title - - - additional-accessibility-information-title - - \ No newline at end of file From 0bb468960dabbc50597b4a80aba50c119e7cf1a9 Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Thu, 30 Jan 2025 12:53:18 +0100 Subject: [PATCH 4/7] Preserving leading o trailing space --- .../display_guide_vocabulary_w3c_en-US.json | 176 ++++++++++-------- .../bin/canonical-json-extract-strings.xsl | 32 ++-- .../bin/update-canonical-json.sh | 8 +- 3 files changed, 121 insertions(+), 95 deletions(-) diff --git a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json index 69cb0fa7..bf5142db 100644 --- a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json +++ b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json @@ -14,7 +14,7 @@ }, "ways-of-reading-nonvisual-reading-may-not-fully": { "compact": "May not be fully readable in read aloud or dynamic braille", - "descriptive": "Portions of the content may not be readable as read aloud speech or dynamic braille" + "descriptive": " Portions of the content may not be readable as read aloud speech or dynamic braille" }, "ways-of-reading-nonvisual-reading-not-fully": { "compact": "Not fully readable in read aloud or dynamic braille", @@ -29,12 +29,12 @@ "descriptive": "Portions of prerecorded audio are available" }, "ways-of-reading-prerecorded-audio-no-metadata": { - "compact": "No information about prerecorded audio is available", - "descriptive": "No information about prerecorded audio is available" + "compact": " No information about prerecorded audio is available", + "descriptive": " No information about prerecorded audio is available" }, "ways-of-reading-prerecorded-audio-only": { "compact": "Prerecorded audio only", - "descriptive": "Audiobook with no text alternative" + "descriptive": " Audiobook with no text alternative" }, "ways-of-reading-prerecorded-audio-synchronized": { "compact": "Prerecorded audio synchronized with text", @@ -42,11 +42,11 @@ }, "ways-of-reading-visual-adjustments-modifiable": { "compact": "Appearance can be modified", - "descriptive": "Appearance of the text and page layout can be modified according to the capabilities of the reading system (font family and font size, spaces between paragraphs, sentences, words, and letters, as well as color of background and text)" + "descriptive": " Appearance of the text and page layout can be modified according to the capabilities of the reading system (font family and font size, spaces between paragraphs, sentences, words, and letters, as well as color of background and text)" }, "ways-of-reading-visual-adjustments-unknown": { "compact": "No information about appearance modifiability is available", - "descriptive": "No information about appearance modifiability is available" + "descriptive": " No information about appearance modifiability is available" }, "ways-of-reading-visual-adjustments-unmodifiable": { "compact": "Appearance cannot be modified", @@ -68,48 +68,48 @@ "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level AAA standard" }, "conformance-certification-info": { - "compact": "The publication was certified on", - "descriptive": "The publication was certified on" + "compact": "The publication was certified on ", + "descriptive": "" }, "conformance-certifier": { "compact": "The publication was certified by", - "descriptive": "The publication was certified by" + "descriptive": "" }, "conformance-certifier-credentials": { - "compact": "The certifier's credential is", - "descriptive": "The certifier's credential is" + "compact": "The certifier's credential is ", + "descriptive": "" }, "conformance-certifier-report": { "compact": "For more information refer to the certifier's report", - "descriptive": null + "descriptive": "" }, "conformance-claim": { "compact": "This publication claims to meet", - "descriptive": null + "descriptive": "This publication claims to meet" }, "conformance-details": { "compact": "Detailed conformance information", - "descriptive": null + "descriptive": "" }, "conformance-epub-accessibility-1-0": { - "compact": "EPUB Accessibility 1.0", - "descriptive": null + "compact": " EPUB Accessibility 1.0", + "descriptive": "" }, "conformance-epub-accessibility-1-1": { - "compact": "EPUB Accessibility 1.1", - "descriptive": null + "compact": " EPUB Accessibility 1.1", + "descriptive": "" }, "conformance-level-a": { - "compact": "Level A", - "descriptive": null + "compact": " Level A", + "descriptive": "" }, "conformance-level-aa": { - "compact": "Level AA", - "descriptive": null + "compact": " Level AA", + "descriptive": "" }, "conformance-level-aaa": { - "compact": "Level AAA", - "descriptive": null + "compact": " Level AAA", + "descriptive": "" }, "conformance-no": { "compact": "No information is available", @@ -117,19 +117,19 @@ }, "conformance-unknown-standard": { "compact": "Conformance to accepted standards for accessibility of this publication cannot be determined", - "descriptive": null + "descriptive": "" }, "conformance-wcag-2-0": { - "compact": "WCAG 2.0", - "descriptive": null + "compact": " WCAG 2.0", + "descriptive": "Web Content Accessibility Guidelines (WCAG ) 2.0" }, "conformance-wcag-2-1": { - "compact": "WCAG 2.1", - "descriptive": "Web Accessibility Content Guidelines (WCAG) 2.1" + "compact": " WCAG 2.1", + "descriptive": "Web Content Accessibility Guidelines (WCAG ) 2.1" }, "conformance-wcag-2-2": { - "compact": "WCAG 2.2", - "descriptive": "Web Content Accessibility Guidelines (WCAG) 2.2" + "compact": " WCAG 2.2", + "descriptive": "Web Content Accessibility Guidelines (WCAG ) 2.2" } }, "navigation": { @@ -178,16 +178,16 @@ "descriptive": "Text descriptions of math are provided" }, "rich-content-closed-captions": { - "compact": "Videos have closed captions", - "descriptive": "Videos included in publications have closed captions" + "compact": " Videos have closed captions", + "descriptive": " Videos included in publications have closed captions" }, "rich-content-extended": { "compact": "Information-rich images are described by extended descriptions", "descriptive": "Information-rich images are described by extended descriptions" }, "rich-content-open-captions": { - "compact": "Videos have open captions", - "descriptive": "Videos included in publications have open captions" + "compact": " Videos have open captions", + "descriptive": " Videos included in publications have open captions" }, "rich-content-transcript": { "compact": "Transcript(s) provided", @@ -229,7 +229,7 @@ "accessibility-summary-title": "Accessibility summary", "accessibility-summary-no-metadata": { "compact": "No information is available", - "descriptive": null + "descriptive": "" } }, "legal-considerations": { @@ -245,77 +245,89 @@ }, "additional-accessibility-information": { "additional-accessibility-information-title": "Additional accessibility information", - "additional-accessibility-information-adaptation-audio-descriptions": { - "compact": "Audio descriptions", - "descriptive": null - }, - "additional-accessibility-information-adaptation-braille": { - "compact": "Braille", - "descriptive": null + "additional-accessibility-information-adaptation-tactile-graphics": { + "compact": "Tactile graphics included", + "descriptive": "Tactile graphics have been integrated to facilitate access to visual elements for blind people" }, - "additional-accessibility-information-adaptation-dyslexia-readability": { - "compact": "Dyslexia readability", - "descriptive": null - }, - "additional-accessibility-information-adaptation-sign-language": { - "compact": "Sign language", - "descriptive": null + "additional-accessibility-information-aria": { + "compact": "ARIA", + "descriptive": "" }, - "additional-accessibility-information-adaptation-tactile_graphics": { - "compact": "Tactile graphics", - "descriptive": null + "additional-accessibility-information-audio-descriptions": { + "compact": "Audio descriptions", + "descriptive": "" }, - "additional-accessibility-information-adaptation-tactile_objects": { - "compact": "Tactile 3D objects", - "descriptive": null + "additional-accessibility-information-braille": { + "compact": "Braille", + "descriptive": "" }, "additional-accessibility-information-clarity-aria": { - "compact": "ARIA", - "descriptive": null + "compact": "ARIA roles included", + "descriptive": "Content is enhanced with ARIA roles to optimize organization and facilitate navigation" }, - "additional-accessibility-information-clarity-color-not-sole-means-of-conveying-information": { + "additional-accessibility-information-clarity-page-breaks": { + "compact": "Page breaks included", + "descriptive": "Page breaks included from the original print source" + }, + "additional-accessibility-information-color-not-sole-means-of-conveying-information": { "compact": "Color is not the sole means of conveying information", - "descriptive": null + "descriptive": "" + }, + "additional-accessibility-information-dyslexia-readability": { + "compact": "Dyslexia readability", + "descriptive": "" }, - "additional-accessibility-information-clarity-full-ruby-annotations": { + "additional-accessibility-information-full-ruby-annotations": { "compact": "Full ruby annotations", - "descriptive": null + "descriptive": "" }, - "additional-accessibility-information-clarity-high-contrast-between-foreground-and-background-audio": { + "additional-accessibility-information-high-contrast-between-foreground-and-background-audio": { "compact": "High contrast between foreground and background audio", - "descriptive": null + "descriptive": "" }, - "additional-accessibility-information-clarity-high-contrast-between-text-and-background": { + "additional-accessibility-information-high-contrast-between-text-and-background": { "compact": "High contrast between foreground text and background", - "descriptive": null + "descriptive": "" }, - "additional-accessibility-information-clarity-large-print": { + "additional-accessibility-information-large-print": { "compact": "Large print", - "descriptive": null + "descriptive": "" }, - "additional-accessibility-information-clarity-page-breaks": { - "compact": "Visible page breaks", - "descriptive": null + "additional-accessibility-information-page-breaks": { + "compact": "Page breaks", + "descriptive": "" }, - "additional-accessibility-information-clarity-ruby-annotations": { + "additional-accessibility-information-ruby-annotations": { "compact": "Some Ruby annotations", - "descriptive": null + "descriptive": "" + }, + "additional-accessibility-information-sign-language": { + "compact": "Sign language", + "descriptive": "" + }, + "additional-accessibility-information-tactile-graphics": { + "compact": "Tactile graphics", + "descriptive": "" + }, + "additional-accessibility-information-tactile-objects": { + "compact": "Tactile 3D objects", + "descriptive": "" }, - "additional-accessibility-information-clarity-text-to-speech-hinting": { + "additional-accessibility-information-text-to-speech-hinting": { "compact": "Text-to-speech hinting provided", - "descriptive": null + "descriptive": "" }, - "additional-accessibility-information-clarity-ultra-high-contrast-between-text-and-background": { + "additional-accessibility-information-ultra-high-contrast-between-text-and-background": { "compact": "Ultra high contrast between text and background", - "descriptive": null + "descriptive": "" }, - "additional-accessibility-information-clarity-visible-page-numbering": { - "compact": "Visible page numbering", - "descriptive": null + "additional-accessibility-information-visible-page-numbering": { + "compact": "Visible page numbering ", + "descriptive": "" }, - "additional-accessibility-information-clarity-without-background-sounds": { + "additional-accessibility-information-without-background-sounds": { "compact": "Without background sounds", - "descriptive": null + "descriptive": "" } } } diff --git a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl index 4bad536b..47e7cc8f 100644 --- a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl +++ b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl @@ -31,20 +31,28 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + - + + + + diff --git a/a11y-meta-display-guide/bin/update-canonical-json.sh b/a11y-meta-display-guide/bin/update-canonical-json.sh index cf5a4d60..0d36f47b 100755 --- a/a11y-meta-display-guide/bin/update-canonical-json.sh +++ b/a11y-meta-display-guide/bin/update-canonical-json.sh @@ -44,7 +44,13 @@ xsltproc --stringparam guidelines "$guidelines" \ "$xslt_extract_strings" "$tmpdir/ids.xml" > "$tmpdir/strings.xml" # Convert to JSON -yq --prettyPrint --xml-skip-proc-inst --indent 4 -p=xml -o=json '.root' "$tmpdir/strings.xml" > "$output_dir/en-US/display_guide_vocabulary_w3c_en-US.json" +yq --prettyPrint --xml-skip-proc-inst --indent 4 -p=xml -o=json '.root' "$tmpdir/strings.xml" > "$tmpdir/temp.json" + +# Remove | characters and save to final destination +sed 's/|//g' "$tmpdir/temp.json" > "$output_dir/en-US/display_guide_vocabulary_w3c_en-US.json" + +# Cleanup +rm -rf "$tmpdir" # Cleanup rm -rf "$tmpdir" From 12f3ada3892f0e26c054af2fe9ce7c4778ae573f Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Thu, 30 Jan 2025 12:56:45 +0100 Subject: [PATCH 5/7] Removing nulls from JSON --- .../display_guide_vocabulary_w3c_en-US.json | 60 +++++++++---------- .../bin/canonical-json-extract-strings.xsl | 14 ++++- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json index bf5142db..4e2c31a5 100644 --- a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json +++ b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json @@ -69,19 +69,19 @@ }, "conformance-certification-info": { "compact": "The publication was certified on ", - "descriptive": "" + "descriptive": "The publication was certified on " }, "conformance-certifier": { "compact": "The publication was certified by", - "descriptive": "" + "descriptive": "The publication was certified by " }, "conformance-certifier-credentials": { "compact": "The certifier's credential is ", - "descriptive": "" + "descriptive": "The certifier's credential is " }, "conformance-certifier-report": { "compact": "For more information refer to the certifier's report", - "descriptive": "" + "descriptive": "For more information refer to the certifier's report" }, "conformance-claim": { "compact": "This publication claims to meet", @@ -89,27 +89,27 @@ }, "conformance-details": { "compact": "Detailed conformance information", - "descriptive": "" + "descriptive": "Detailed conformance information" }, "conformance-epub-accessibility-1-0": { "compact": " EPUB Accessibility 1.0", - "descriptive": "" + "descriptive": " EPUB Accessibility 1.0" }, "conformance-epub-accessibility-1-1": { "compact": " EPUB Accessibility 1.1", - "descriptive": "" + "descriptive": " EPUB Accessibility 1.1" }, "conformance-level-a": { "compact": " Level A", - "descriptive": "" + "descriptive": " Level A" }, "conformance-level-aa": { "compact": " Level AA", - "descriptive": "" + "descriptive": " Level AA" }, "conformance-level-aaa": { "compact": " Level AAA", - "descriptive": "" + "descriptive": " Level AAA" }, "conformance-no": { "compact": "No information is available", @@ -117,7 +117,7 @@ }, "conformance-unknown-standard": { "compact": "Conformance to accepted standards for accessibility of this publication cannot be determined", - "descriptive": "" + "descriptive": "Conformance to accepted standards for accessibility of this publication cannot be determined" }, "conformance-wcag-2-0": { "compact": " WCAG 2.0", @@ -229,7 +229,7 @@ "accessibility-summary-title": "Accessibility summary", "accessibility-summary-no-metadata": { "compact": "No information is available", - "descriptive": "" + "descriptive": "No information is available" } }, "legal-considerations": { @@ -251,15 +251,15 @@ }, "additional-accessibility-information-aria": { "compact": "ARIA", - "descriptive": "" + "descriptive": "ARIA" }, "additional-accessibility-information-audio-descriptions": { "compact": "Audio descriptions", - "descriptive": "" + "descriptive": "Audio descriptions" }, "additional-accessibility-information-braille": { "compact": "Braille", - "descriptive": "" + "descriptive": "Braille" }, "additional-accessibility-information-clarity-aria": { "compact": "ARIA roles included", @@ -271,63 +271,63 @@ }, "additional-accessibility-information-color-not-sole-means-of-conveying-information": { "compact": "Color is not the sole means of conveying information", - "descriptive": "" + "descriptive": "Color is not the sole means of conveying information" }, "additional-accessibility-information-dyslexia-readability": { "compact": "Dyslexia readability", - "descriptive": "" + "descriptive": "Dyslexia readability" }, "additional-accessibility-information-full-ruby-annotations": { "compact": "Full ruby annotations", - "descriptive": "" + "descriptive": "Full ruby annotations" }, "additional-accessibility-information-high-contrast-between-foreground-and-background-audio": { "compact": "High contrast between foreground and background audio", - "descriptive": "" + "descriptive": "High contrast between foreground and background audio" }, "additional-accessibility-information-high-contrast-between-text-and-background": { "compact": "High contrast between foreground text and background", - "descriptive": "" + "descriptive": "High contrast between foreground text and background" }, "additional-accessibility-information-large-print": { "compact": "Large print", - "descriptive": "" + "descriptive": "Large print" }, "additional-accessibility-information-page-breaks": { "compact": "Page breaks", - "descriptive": "" + "descriptive": "Page breaks" }, "additional-accessibility-information-ruby-annotations": { "compact": "Some Ruby annotations", - "descriptive": "" + "descriptive": "Some Ruby annotations" }, "additional-accessibility-information-sign-language": { "compact": "Sign language", - "descriptive": "" + "descriptive": "Sign language" }, "additional-accessibility-information-tactile-graphics": { "compact": "Tactile graphics", - "descriptive": "" + "descriptive": "Tactile graphics" }, "additional-accessibility-information-tactile-objects": { "compact": "Tactile 3D objects", - "descriptive": "" + "descriptive": "Tactile 3D objects" }, "additional-accessibility-information-text-to-speech-hinting": { "compact": "Text-to-speech hinting provided", - "descriptive": "" + "descriptive": "Text-to-speech hinting provided" }, "additional-accessibility-information-ultra-high-contrast-between-text-and-background": { "compact": "Ultra high contrast between text and background", - "descriptive": "" + "descriptive": "Ultra high contrast between text and background" }, "additional-accessibility-information-visible-page-numbering": { "compact": "Visible page numbering ", - "descriptive": "" + "descriptive": "Visible page numbering " }, "additional-accessibility-information-without-background-sounds": { "compact": "Without background sounds", - "descriptive": "" + "descriptive": "Without background sounds" } } } diff --git a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl index 47e7cc8f..6486fb32 100644 --- a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl +++ b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl @@ -50,7 +50,19 @@ - + + + + + + + + + + + + + From b8bb2e477d307508999cf277f25209da2f975268 Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Tue, 4 Feb 2025 13:05:40 +0100 Subject: [PATCH 6/7] Update to manage conformance-details-title --- .../display_guide_vocabulary_w3c_en-US.json | 47 ++++++++----------- .../bin/canonical-json-extract-strings.xsl | 6 +++ 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json index 4e2c31a5..d9c2ff2a 100644 --- a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json +++ b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json @@ -8,13 +8,21 @@ }, "ways-of-reading": { "ways-of-reading-title": "Ways of reading", + "ways-of-reading-nonvisual-no-metadata": { + "compact": "No information about nonvisual reading is available", + "descriptive": "No information about nonvisual reading is available" + }, "ways-of-reading-nonvisual-reading-alt-text": { "compact": "Has alternative text", "descriptive": "Has alternative text descriptions for images" }, - "ways-of-reading-nonvisual-reading-may-not-fully": { - "compact": "May not be fully readable in read aloud or dynamic braille", - "descriptive": " Portions of the content may not be readable as read aloud speech or dynamic braille" + "ways-of-reading-nonvisual-reading-no-metadata": { + "compact": "No information about nonvisual reading is available", + "descriptive": "No information about nonvisual reading is available" + }, + "ways-of-reading-nonvisual-reading-none": { + "compact": "Not readable in read aloud or dynamic braille", + "descriptive": "The content is not readable as read aloud speech or dynamic braille" }, "ways-of-reading-nonvisual-reading-not-fully": { "compact": "Not fully readable in read aloud or dynamic braille", @@ -25,8 +33,8 @@ "descriptive": "All content can be read as read aloud speech or dynamic braille" }, "ways-of-reading-prerecorded-audio-complementary": { - "compact": "Complementary audio and text", - "descriptive": "Portions of prerecorded audio are available" + "compact": "Prerecorded audio clips", + "descriptive": "Prerecorded audio clips are embedded in the content" }, "ways-of-reading-prerecorded-audio-no-metadata": { "compact": " No information about prerecorded audio is available", @@ -55,6 +63,7 @@ }, "conformance": { "conformance-title": "Conformance", + "conformance-details-title": "Detailed conformance information", "conformance-a": { "compact": "This publication meets minimum accessibility standards", "descriptive": "The publication contains a conformance statement that it meets the EPUB Accessibility and WCAG 2 Level A standard" @@ -87,10 +96,6 @@ "compact": "This publication claims to meet", "descriptive": "This publication claims to meet" }, - "conformance-details": { - "compact": "Detailed conformance information", - "descriptive": "Detailed conformance information" - }, "conformance-epub-accessibility-1-0": { "compact": " EPUB Accessibility 1.0", "descriptive": " EPUB Accessibility 1.0" @@ -245,13 +250,9 @@ }, "additional-accessibility-information": { "additional-accessibility-information-title": "Additional accessibility information", - "additional-accessibility-information-adaptation-tactile-graphics": { - "compact": "Tactile graphics included", - "descriptive": "Tactile graphics have been integrated to facilitate access to visual elements for blind people" - }, "additional-accessibility-information-aria": { - "compact": "ARIA", - "descriptive": "ARIA" + "compact": "ARIA roles included", + "descriptive": "Content is enhanced with ARIA roles to optimize organization and facilitate navigation" }, "additional-accessibility-information-audio-descriptions": { "compact": "Audio descriptions", @@ -261,14 +262,6 @@ "compact": "Braille", "descriptive": "Braille" }, - "additional-accessibility-information-clarity-aria": { - "compact": "ARIA roles included", - "descriptive": "Content is enhanced with ARIA roles to optimize organization and facilitate navigation" - }, - "additional-accessibility-information-clarity-page-breaks": { - "compact": "Page breaks included", - "descriptive": "Page breaks included from the original print source" - }, "additional-accessibility-information-color-not-sole-means-of-conveying-information": { "compact": "Color is not the sole means of conveying information", "descriptive": "Color is not the sole means of conveying information" @@ -294,8 +287,8 @@ "descriptive": "Large print" }, "additional-accessibility-information-page-breaks": { - "compact": "Page breaks", - "descriptive": "Page breaks" + "compact": "Page breaks included", + "descriptive": "Page breaks included from the original print source" }, "additional-accessibility-information-ruby-annotations": { "compact": "Some Ruby annotations", @@ -306,8 +299,8 @@ "descriptive": "Sign language" }, "additional-accessibility-information-tactile-graphics": { - "compact": "Tactile graphics", - "descriptive": "Tactile graphics" + "compact": "Tactile graphics included", + "descriptive": "Tactile graphics have been integrated to facilitate access to visual elements for blind people" }, "additional-accessibility-information-tactile-objects": { "compact": "Tactile 3D objects", diff --git a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl index 6486fb32..670295ac 100644 --- a/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl +++ b/a11y-meta-display-guide/bin/canonical-json-extract-strings.xsl @@ -24,6 +24,12 @@ + + + + + + From 93e317d7005db6805771ff8b363e073bf19c7329 Mon Sep 17 00:00:00 2001 From: Gregorio Pellegirno Date: Wed, 5 Feb 2025 16:07:09 +0100 Subject: [PATCH 7/7] Final update for canonical JSON --- .../en-US/display_guide_vocabulary_w3c_en-US.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json index d9c2ff2a..7f4b8397 100644 --- a/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json +++ b/a11y-meta-display-guide/2.0/draft/localizations/en-US/display_guide_vocabulary_w3c_en-US.json @@ -8,10 +8,6 @@ }, "ways-of-reading": { "ways-of-reading-title": "Ways of reading", - "ways-of-reading-nonvisual-no-metadata": { - "compact": "No information about nonvisual reading is available", - "descriptive": "No information about nonvisual reading is available" - }, "ways-of-reading-nonvisual-reading-alt-text": { "compact": "Has alternative text", "descriptive": "Has alternative text descriptions for images"