From 2d85d64057777c7c3bf7a1dc75fff7fb8a3cdf14 Mon Sep 17 00:00:00 2001 From: delfanbaum Date: Wed, 7 May 2025 12:50:05 -0400 Subject: [PATCH] Add handling for required epub accessibility metadata in OPF template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds a generic template for handling accessibility metadata passed in along with the HTMLBook file such that the following fields are included: * `accessMode` — a human sensory perceptual system or cognitive faculty necessary to process or perceive the content (e.g., textual, visual, auditory, tactile). * `accessibilityFeature` — features and adaptations that contribute to the overall accessibility of the content (e.g., alternative text, extended descriptions, captions). * `accessibilityHazard` — any potential hazards that the content presents (e.g., flashing, motion simulation, sound). Also included (because it was easy), though not required: * `accessModeSufficient` – this is what is minimally required to use the ebook --- htmlbook-xsl/opf.xsl | 114 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/htmlbook-xsl/opf.xsl b/htmlbook-xsl/opf.xsl index e8140e81..4cb0c61f 100755 --- a/htmlbook-xsl/opf.xsl +++ b/htmlbook-xsl/opf.xsl @@ -91,6 +91,100 @@ + + + + + + + + + + e:accessibility-terms + e:accessibility-features + e:accessibility-hazards + + + + + + + + + + + + + + + + + + + e:term + e:feature + e:hazard + + + + + + + + + + + + + + + + + + e:term + e:feature + e:hazard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -379,6 +473,26 @@ true + + + + + + + + + + + + + + + + + + + +