View Single Post
Old 01-27-2018, 05:32 AM   #14
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,756
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
BTW, these changes could easily be added to the ePub3-itizer plugin as well.
IMHO, it'd be a good idea to add the following items to the ePub3-itizer plugin:

1. Add lang and xml:lang language attributes to all <html> tags.
2. Add NCX heading information to all blank <title> tags.
3. Add blank alt attributes to all <img> tags without alt attributes. (BTW, epubs without alt attributes will fail epubcheck.)
4. Add role attributes at least to the following default html template items:

Code:
<nav role="doc-toc" epub:type="toc" id="toc">
<nav role="doc-pagelist" epub:type="page-list" id="page-list" hidden="">
<nav role="directory" epub:type="landmarks" id="landmarks" hidden="">
5. Add the following boilerplate metadata section that should be applicable to most text-only reflowable epubs, as long as all <img> tags have alt attributes with image descriptions:

Code:
<meta property="schema:accessibilitySummary">This publication conforms to WCAG 2.0 AA.</meta>
<meta property="schema:accessMode">textual</meta>
<meta property="schema:accessMode">visual</meta>
<meta property="schema:accessModeSufficient">textual</meta>
<meta property="schema:accessibilityFeature">structuralNavigation</meta>
(Users will, of course, need to customize these values, if their books contain a large number of images or other items that affect the accessibility of the ebook, e.g. MathML sections.)

Quote:
Originally Posted by KevinH View Post
If it is opensource and accessible in python, we could make it an edit plugin in Sigil that checks each img tag for alt and if needed tries to get a good description.
AFAIK, the framework is opensource, but the training data isn't. And without the training data the framework probably isn't that useful.

Last edited by Doitsu; 01-27-2018 at 05:49 AM.
Doitsu is offline   Reply With Quote