View Single Post
Old 12-05-2018, 02:33 PM   #96
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by cmcclaflinprcvi View Post
This issue can be worked around by adding alt="" to the image tag. We would like to propose that DOCXImport be modified to add this empty alt attribute to images from word that do not contain alt-text in order to improve the accessibility of the files produced.
The underlying Mammoth Python code does much of the heavy lifting for this plugin. I've merely created a Sigil plugin "wrapper" around it. I've made a few tweaks to the Mammoth codebase, but I hesitate to get my version of it too out of sync with the original. It makes it too hard to update to newer versions of Mammoth as they come out.

I'll certainly look into it, but it depends on how much rewiring of someone else's code I would need to do (and how hard it would make the upgrade process). It may actually be simpler to create a new plugin that would add empty alt attributes to img tags without any. Or if Kevin's Accessibility Helper plugin can be used to fix the tags, that would work too.

You could also try reporting this upstream at Mammoth. Perhaps he'd be willing to modify his code to add an empty alt attribute to img tags generated from images without alt-text/descriptions. That would be the least complicated way for the change to make it into this plugin


Quote:
Originally Posted by cmcclaflinprcvi View Post
Thank you to everyone who works on this project!
You mean me, myself, and I?

Last edited by DiapDealer; 12-05-2018 at 02:36 PM.
DiapDealer is online now   Reply With Quote