You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the EPUB Techniques, 4.8.3 Instructions, the following instruction determines the display of the accessibility summary:
ELSE IF accessibility_summary is NOT empty:
THEN display the content of accessibility_summary with language_accessibility_summary as language.
I see two problems here:
1. Skipped block due to ELSE IF
If the variable lang_attribute_accessibility_summary is not empty (i.e., the condition in step 2 is true), the algorithm skips over the entire block containing the ELSE IF. As a result, even if an accessibility summary is present, it won't be displayed.
Solution:
Change the ELSE IF in step 4 to a standalone IF, so the check for accessibility_summary is always performed regardless of the earlier conditions.
2. Misuse of accessibility_summary
The variable accessibility_summary is a Boolean that indicates whether an accessibility summary is present in the document. It does not contain the actual content of the summary. As written, the instruction attempts to display the Boolean value (true or false), which is not the intended behavior.
Solution:
Define a new variable that holds the text content of the accessibility summary. For example:
LET accessibility_summary_content be the result of calling check for node on package_document, /package/metadata/meta[@property="schema:accessibilitySummary"]/text()
Then, step 4 should read:
IF accessibility_summary:
THEN display the content of accessibility_summary_content with language_accessibility_summary as language.
The text was updated successfully, but these errors were encountered:
In the EPUB Techniques, 4.8.3 Instructions, the following instruction determines the display of the accessibility summary:
I see two problems here:
1. Skipped block due to
ELSE IF
If the variable
lang_attribute_accessibility_summary
is not empty (i.e., the condition in step 2 is true), the algorithm skips over the entire block containing theELSE IF
. As a result, even if an accessibility summary is present, it won't be displayed.Solution:
Change the
ELSE IF
in step 4 to a standaloneIF
, so the check foraccessibility_summary
is always performed regardless of the earlier conditions.2. Misuse of
accessibility_summary
The variable
accessibility_summary
is a Boolean that indicates whether an accessibility summary is present in the document. It does not contain the actual content of the summary. As written, the instruction attempts to display the Boolean value (true
orfalse
), which is not the intended behavior.Solution:
Define a new variable that holds the text content of the accessibility summary. For example:
Then, step 4 should read:
The text was updated successfully, but these errors were encountered: