View Single Post
Old 02-09-2018, 01:48 PM   #37
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,983
Karma: 6361444
Join Date: Nov 2009
Device: many
Testers needed for Sigil plugin: Access-Aide (alpha level)

Hi All,

Based on the discussion held here, I have created a beta level Access-Aide that is coming close to being feature complete with a rudimentary graphical user interface for updating image alt text attributes.

I could use your feedback.

See attached Access-Aide_v020.zip

It will:

- add primary language (first dc:language tag found) to the html tag using both lang and xml:lang attributes

- parse the nav for the title of the first link into an xhtml file and use this information to fill in the head title tag if empty

- will add empty alt attributes to all img tags (if none already exists) and later present a gui to allow you to see the image and then update the alt text.

- add the metadata to the opf needed for accessibility

- it will add epub:type semantics from nav landmarks to the appropriate body tags or ids

- map epub:type attributes to aria role attributes


Limitations:
- only work for Python 3.4 or later (the embedded python for Windows and macs)
- works only on epub3 for now, requires a nav
- will abort if epub has audio or video resources
- will abort if the epub uses mathml tags
- will abort if the epub uses javascript

The reason for that is the accessibility schema can not be properly added when mathml, javascript, audio, and video tags are present. Selecting the correct accessibility metadata would take human intervention.

This edit plugin is still quite rough but could use some testing and feedback of bugs and things that still need to be done.

It is hopefully useful in its current condition.

All feedback welcome.


Updated: Should now add missing title in a better manner including to the nav itself, and should now use epub:type semantic information from the nav landmarks section to add appropriate epub:type to body or to particular tags with id when missing

Updated: Now tries to build a tkinter GUI to allow you to more easily edit/fill in "alt" attributes on image tags to add better textual descriptions of images.
Attached Files
File Type: zip Access-Aide_v011.zip (4.7 KB, 175 views)
File Type: zip Access-Aide_v020.zip (6.4 KB, 162 views)

Last edited by KevinH; 02-13-2018 at 02:58 PM. Reason: update for new beta version 0.2.0
KevinH is offline   Reply With Quote