Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2018, 01:27 PM   #91
patrik
Addict
patrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy blue
 
Posts: 335
Karma: 13166
Join Date: Jan 2010
Location: Sweden
Device: Kobo Aura HD, Pocketbook InkPad 3
Ok, a short info in the plugin's output window would be nice for these sort of things.

Thanks for checking.
patrik is offline   Reply With Quote
Old 06-22-2018, 02:13 PM   #92
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by patrik View Post
Ok, a short info in the plugin's output window would be nice for these sort of things.
That's part of mammoth. You can see the warnings for ignored elements in the Plugin Runner window (at least I do when I ran it on your document).

I think v0.2.4 of the plugin (or 0.2.5 when I get 0.2.4 fixed) will more clearly indicate that images were skipped.
DiapDealer is offline   Reply With Quote
Old 07-06-2018, 03:20 PM   #93
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I have a potential solution for converting wmf/emf images to png when importing with this plugin. Unfortunately, it's not possible to so in a completely self-contained (not to mention cross-platform) manner, so there are external prerequisites for it working. I honestly think encountering these types of Windows images is going to fairly rare, so I'm not going look for, or work on, a more comprehensive solution.

If you have LibreOffice and ImageMagick installed and on your PATH (or manually configured in the plugin's json file) it should work. I've tested it on Linux and Windows, and I assume it will work on Macs (but the configuration may have to be tweaked).

Anyone with those programs installed (or is willing to install them) who is willing to do a little beta-testing?
DiapDealer is offline   Reply With Quote
Old 12-05-2018, 02:30 PM   #94
cmcclaflinprcvi
Junior Member
cmcclaflinprcvi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: iBooks
I'm not sure if I'm in the right place, apologies if I'm not. My organization remediates text based documents to create epub files for students with disabilities. We're now using DOCXImport to import word docs into Sigil.

When an image that does not have alt-text is imported there is no alt attribute in the resulting <img> tag in Sigil. Unfortunately when many screen readers (text to speech engines used by people with low or no vision) encounter an image with no alt-text they will read out the file name.

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.

Here is a simple 'citation' backing up this logic: https://davidwalsh.name/accessibilit...alt-attributes

Thank you to everyone who works on this project!
cmcclaflinprcvi is offline   Reply With Quote
Old 12-05-2018, 03:12 PM   #95
KevinH
Wizard
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: 3,108
Karma: 1931746
Join Date: Nov 2009
Device: many
In the interim, you may want to check out the Access Aide Accessibility Helper plugin for Sigil. It will allow easy access and changes to image alt tags.

Quote:
Originally Posted by cmcclaflinprcvi View Post
I'm not sure if I'm in the right place, apologies if I'm not. My organization remediates text based documents to create epub files for students with disabilities. We're now using DOCXImport to import word docs into Sigil.

When an image that does not have alt-text is imported there is no alt attribute in the resulting <img> tag in Sigil. Unfortunately when many screen readers (text to speech engines used by people with low or no vision) encounter an image with no alt-text they will read out the file name.

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.

Here is a simple 'citation' backing up this logic: https://davidwalsh.name/accessibilit...alt-attributes

Thank you to everyone who works on this project!
KevinH is offline   Reply With Quote
Old 12-05-2018, 03: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: 19,331
Karma: 99454782
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 03:36 PM.
DiapDealer is offline   Reply With Quote
Old 12-05-2018, 03:57 PM   #97
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Actually ... never mind my last post. I just realized there's a quick and painless way I can make this happen without changing Mammoth at all. I can take care of it in my custom ImageWriter routine.
DiapDealer is offline   Reply With Quote
Old 12-05-2018, 08:54 PM   #98
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by cmcclaflinprcvi View Post
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.
Give this test version a whirl. If everything is OK, I'll release a new version with this change included,
Attached Files
File Type: zip DOCXImport_v0.2.5.zip (71.9 KB, 8 views)
DiapDealer is offline   Reply With Quote
Old 12-05-2018, 09:04 PM   #99
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,107
Karma: 6099999
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DiapDealer View Post
You mean me, myself, and I?
Yeah, all 3 of those amazing people.
Tex2002ans is offline   Reply With Quote
Old 12-06-2018, 10:15 AM   #100
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Tex2002ans View Post
Yeah, all 3 of those amazing people.
To be fair, I should include the guy who maintains Mammoth. So make it an even 4.
DiapDealer is offline   Reply With Quote
Old 12-07-2018, 03:45 PM   #101
cmcclaflinprcvi
Junior Member
cmcclaflinprcvi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2018
Device: iBooks
Quote:
Originally Posted by DiapDealer View Post
Give this test version a whirl. If everything is OK, I'll release a new version with this change included,
We tested images with and without alt text, both cases behaved exactly as expected. When there was alt text in word it still came through just fine, and when there was not alt="" was now added. Thank you so much!

For what it's worth, I thought I'd let you know a little bit about the positive impact your plugin is having. Our organization helps remediate inaccessible print documents into accessible digital versions for students with perceptual disabilities. Thanks to your plugin we've now got an easy way to create epub files for students with access needs across the province of British Columbia. Thank you so much for creating and maintaining this plugin, it's so appreciated.
cmcclaflinprcvi is offline   Reply With Quote
Old 12-07-2018, 07:20 PM   #102
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by cmcclaflinprcvi View Post
We tested images with and without alt text, both cases behaved exactly as expected. When there was alt text in word it still came through just fine, and when there was not alt="" was now added. Thank you so much!
You're welcome. Thanks for reporting back. I'll get the first post updated with the new version in the near future.

Quote:
Originally Posted by cmcclaflinprcvi View Post
For what it's worth, I thought I'd let you know a little bit about the positive impact your plugin is having. Our organization helps remediate inaccessible print documents into accessible digital versions for students with perceptual disabilities. Thanks to your plugin we've now got an easy way to create epub files for students with access needs across the province of British Columbia. Thank you so much for creating and maintaining this plugin, it's so appreciated.
Happy it's doing some good. That's always nice to hear! Keep in mind that this plugin is one of several ways to get docx documents into an epub. The one that sticks out most in my mind is Toxaris' Word add-in. It's very thorough and configurable. Do yourself a favor and check it out. You should also check out the plugin KevinH mentioned upthread that strives to make sure epubs meet ACE requirements.
DiapDealer is offline   Reply With Quote
Old 12-08-2018, 01:48 PM   #103
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: 19,331
Karma: 99454782
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Updated first post to v0.2.5.

- Add empty alt attributes with images that have no alt_text/description in the DOCX
DiapDealer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 24 07-21-2018 11:11 AM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 151 09-27-2017 06:05 PM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 01:11 PM


All times are GMT -4. The time now is 04:00 AM.


MobileRead.com is a privately owned, operated and funded community.