Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-24-2024, 06:27 PM   #31
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,210
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Ran 0.9.7 against my 4 ePubs and same results. A quick hex search showed at most one APP1 (0xFFE1) in any of the files so likely why I did not run into the issue.
DNSB is offline   Reply With Quote
Old 05-25-2024, 08:31 PM   #32
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: 81
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
I just came across what seems to be a new addition to InDesign that provides exactly the same functionality to this new addition to Access-Aide. It is in Object Styles under Export Options.
Two new options have been added to the Alt-Text-Source in addition to the three XMP options that were already there: They are:
From XMP: Alt Text (Accessibility) and
From XMP: Extended Description (Accessibility).
I do not know when these options were added.
oston is offline   Reply With Quote
Old 05-25-2024, 08:52 PM   #33
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,764
Karma: 6000000
Join Date: Nov 2009
Device: many
Thanks for letting me know. I never use InDesign and so was unaware of what they do or don't do. I tried it early on but the quality of the xhtml code and css code it generated was just too poor for my taste.
KevinH is offline   Reply With Quote
Old 05-25-2024, 09:02 PM   #34
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: 81
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Yes, Kevin poor css and html. I have to use InDesign because ALL the files I am sent to convert to epub are InDesign files. But now I turn off having indesign generate css files and use my own.
Sigil is my main tool for my post export work.
oston is offline   Reply With Quote
Old 04-25-2025, 08:41 PM   #35
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: 81
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Just ran into a problem while using Access-Aide to fill the alt-text for an ebook that contained 145 images. The plugin worked wonderfully well after using exiftool to populate the AltTextAccessibility field in the image metadata.
But then the author sent a new file of corrected alt-text descriptions, without highlighting the corrections. So we had to repeat the process.
BUT the Access Aide plugin only works if the existing alt="....." is empty.
Is is possible to indicate to the plugin, that it's OK to overwrite any existing alt-text entries?
I did use a regex work around to remove the existing alt-text, but not being a frequent regex user, there were a couple of issues to solve.
oston is offline   Reply With Quote
Old 04-25-2025, 09:11 PM   #36
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,764
Karma: 6000000
Join Date: Nov 2009
Device: many
My first thought was that using regex, it would be quite straightforward to find and remove all alt attributes and their contents from img tags. And once you have that regex you can save it as a Saved search so it is easy to find and reuse. Access Aide uses the same approach for contents of title tags inside head tags (ie if you want Access Aide to fill them they must be empty).

What issues did you run into?
KevinH is offline   Reply With Quote
Old 04-25-2025, 10:31 PM   #37
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: 81
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Quote:
Originally Posted by KevinH View Post
My first thought was that using regex, it would be quite straightforward to find and remove all alt attributes and their contents from img tags. And once you have that regex you can save it as a Saved search so it is easy to find and reuse. Access Aide uses the same approach for contents of title tags inside head tags (ie if you want Access Aide to fill them they must be empty).

What issues did you run into?
Thanks, Kevin.
I just used this for the search: alt="(.+)" , and while it found all the alt-text , there were other strings that matched the search. So I had to step through the search. Sometimes it's quicker to do that than trying to find the correct regex search.
oston is offline   Reply With Quote
Old 04-26-2025, 12:18 AM   #38
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,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by oston View Post
I just used this for the search: alt="(.+)" , and while it found all the alt-text , there were other strings that matched the search.
alt="(.+)" might match other strings, if the Minimal Match Sigil regex option is deactivated.

The following regex should only match the alt attribute, even if the Minimal Match option is deactivated.

Code:
alt="[^"]+"
Doitsu is offline   Reply With Quote
Old 04-26-2025, 09:39 AM   #39
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: 81
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
Many thanks for that regex, Doitsu. I've saved it for future use.
oston is offline   Reply With Quote
Reply

Tags
access-aide, alt text


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] Access-Aide - help improve epub accessibility KevinH Plugins 147 10-15-2024 10:25 AM
Bug: splitting pages after using Access Aide oston Sigil 4 04-08-2024 07:59 AM
[Editor Plugins] Access Aide wolf123 Plugins 5 07-08-2023 01:10 PM
access-aide failure oston Sigil 5 06-27-2023 03:42 PM
Alt Text in epub Lancelot ePub 3 09-11-2013 03:55 AM


All times are GMT -4. The time now is 12:00 PM.


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