Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2024, 10:26 AM   #121
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
Please run that jpeg through a verifier. Segments and markers are normal parts of the jpeg spec so something is wrong.
KevinH is offline   Reply With Quote
Old 05-24-2024, 10:29 AM   #122
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
I will update the version in the first post but this error is not the same as what was fixed in 0.9.5 to make 0.9.6.

I think that jpeg is corrupted. Either way I will need to prevent the error. I will look into this tonight when I get back home.
KevinH is offline   Reply With Quote
Advert
Old 05-24-2024, 10:39 AM   #123
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: 27,622
Karma: 194727102
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I will update the version in the first post but this error is not the same as what was fixed in 0.9.5 to make 0.9.6.
No need. I was mistaken. It says 0.9.5 is the latest version at the beginning of the first post. But 0.9.6 is indeed attached to the post.
DiapDealer is offline   Reply With Quote
Old 05-24-2024, 11:56 AM   #124
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
It is a bug in my code due to whitespace being missing.
That if marker test should be indented to be underneath the if that defines it.

That needs to be fixed with a new 0.9.7 release hopefully tonight.

The bug is only triggered when no APP1 section is present.

Last edited by KevinH; 05-24-2024 at 12:38 PM.
KevinH is offline   Reply With Quote
Old 05-24-2024, 02:21 PM   #125
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
The hopefully last fix for that whitespace bug is now in version 0.9.7 which was just posted (see the first post in this thread or my gihub site).
KevinH is offline   Reply With Quote
Advert
Old 05-24-2024, 04:06 PM   #126
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Many thanks, Kevin.

Ran the 0.97 plugin on the epub that generated the earlier error. This time no error messages were generated.

I was puzzled by the fact that no alt-text entries were added even though the jpg files had alt-text in their metadata. But then I discovered something that I had not noticed before. The files in Images in the Sigil Book Explorer were png files, not jpg files. The jpg files with the metadata had been converted to png files during the export from InDesign and all the metadata was stripped in the process.

When I re-exported using the Existing Image for Graphic Object. everything worked as expected with the plugin.

Many thanks for this Kevin. I think I will now change my workflow to save the alt-text in the Image metadata and remember to use the Existing Image during the export from InDesign.
oston is offline   Reply With Quote
Old 05-24-2024, 05:42 PM   #127
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
Glad to hear it.

FWIW, xmp metadata can be used (stored and retrieved) in PNG files as well as JPEG, TIFF and WebP images. Access-Aide should now be able to extract it from any of those formats if it exists.

So InDesign isn't bothering to copy the metadata over to the PNG format at all when it converts the JPEGS to PNG.

Sad they strip it out. Probably to save space.
KevinH is offline   Reply With Quote
Old 05-24-2024, 05:50 PM   #128
oston
Connoisseur
oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.oston ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Yes, one of the images in another test epub was a png file with alt-text in its metadata.
oston is offline   Reply With Quote
Old 06-05-2024, 02:30 PM   #129
noteon
Connoisseur
noteon is on a distinguished road
 
Posts: 54
Karma: 54
Join Date: Apr 2011
Location: NYC
Device: Many
My world went dark with despair when I saw that AccessAide won't work on books with javascript/media. Any chance this will change? And if not, do you know anything better than pasting alt text into code manually?
noteon is offline   Reply With Quote
Old 06-05-2024, 03:16 PM   #130
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
As clearly stated in the first post of this thread, Access Aide entire purpose is to make sure an epub meets the criteria for:

schema:accessMode: textual
schema:accessMode: visual
schema:accessModeSufficient: textual
schema:accessibilityFeature: structuralNavigation
schema:accessibilitySummary: This publication conforms to WCAG 2.0 AA.
schema:accessibilityHazard: none

It can NOT make this claim reliably for anything that includes media or javascript ( ie. movies, animations, or audio) as Access-Aide has no ability to see or hear if the media contains hazards such as quickly flashing images or loud noises that could induce seizures or other create potential accessibility or health hazards.

http://kb.daisy.org/publishing/docs/...ityHazard.html

That is why I limit its use to standard fiction epubs. There are human based ACE accessibility certification boards that can and will certify that an epub with those features do not present any hazards.

You can always run Access-Aide on early versions of the epub before adding in media and javascripts for animations to help fill in alt descriptions, update descriptions and semantic tags, but ... once media are added, you really should use a true certification service to make sure that there are no visual or audio hazards unless you are an expert in exactly which video or audio elements might present as hazards. I am not. Someone would have to hear and see every movie frame and audio, and watch any javascript created animation or movements.

Access-Aide itself, can not and will not make the claim there are no accessibility hazards, as it can not verify that.

If you want, I can create a version of Access-Aide that does NOT include the certification metadata. Then you can of course run it on anything, but you must then take the risks associated with whatever certification *you* decide to apply.

Last edited by KevinH; 06-05-2024 at 03:24 PM.
KevinH is offline   Reply With Quote
Old 06-05-2024, 03:37 PM   #131
noteon
Connoisseur
noteon is on a distinguished road
 
Posts: 54
Karma: 54
Join Date: Apr 2011
Location: NYC
Device: Many
Totally understood. I'm just used to using it for alt text insertion in reflowables, and bumped into this issue on interactive fixed-layout epubs.

Unfortunately, I can't run any plugin before adding media and javascript, since that all happens in InDesign before exporting the epub.

I would certainly not turn down a version without certification metadata, if you thought it was worth your time. Or even a version that does nothing but add alt text.

Thank you!
noteon is offline   Reply With Quote
Old 06-05-2024, 04:14 PM   #132
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
I will create a variation of the Access-Aide plugin code "plugin.py" that does not stop when it sees media or javascript but will no longer add the metadata certifications.

You can then use that "plugin.py" to replace the one in Access Aide to create your own plugin variant.
KevinH is offline   Reply With Quote
Old 06-05-2024, 04:33 PM   #133
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
Attached is a replacement_plugin_py.zip

Download and unzip it to create a file called "plugin.py"

Then go to your Sigil Preferences Folder, into the plugins folder and then into the Access-Aide folder. Copy in this new plugin.py to replace its namesake inside the Access-Aide folder.

Completely exit out of Sigil. Then fire up Sigil.

Your Access-Aide plugin will now have been modified to not abort if mathml, javascripts or multi-media are used in the epub. But at the same time it will no longer update the opf metadata to add any accessibility metadata.

It is a very easy set of delete changes from the original plugin.py code so unless I over deleted something this should work.

Please give that a try and let me know if you run into any difficulties.

KevinH
Attached Files
File Type: zip replacement_plugin_py.zip (7.3 KB, 18 views)
KevinH is offline   Reply With Quote
Old 06-05-2024, 06:38 PM   #134
noteon
Connoisseur
noteon is on a distinguished road
 
Posts: 54
Karma: 54
Join Date: Apr 2011
Location: NYC
Device: Many
Wow, thank you! I'll start using it on a job I have in this week.
noteon is offline   Reply With Quote
Old 06-05-2024, 08:19 PM   #135
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: 7,746
Karma: 5446592
Join Date: Nov 2009
Device: many
FWIW, I am thinking of making the addition of the accessibility schema metadata contingent on no mathml, no javascript, no multi-media instead of aborting if they are detected in a future release of Access-Aide as that sounds like a good compromise.

That way one plugin works in both cases.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] ACE - DAISY EPUB Accessibility Checker wrapper Doitsu Plugins 36 01-26-2024 12:24 PM
Easier access to plugin prefs slowsmile Plugins 14 10-22-2017 01:42 PM
Help me improve my EPUB converter epubler Workshop 2 07-20-2011 09:15 PM
Epub Revision - accessibility support Nate the great ePub 1 02-23-2011 03:47 AM
Kindle 2 Accessibility Access Mode suggestions scotty1024 Amazon Kindle 4 02-28-2009 06:06 PM


All times are GMT -4. The time now is 07:01 AM.


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