11-29-2023, 12:51 PM | #106 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
New version of Access-Aide that works around a quickparser attribute name parsing bug can now be found in the first post.
Last edited by KevinH; 11-29-2023 at 01:00 PM. |
12-05-2023, 06:53 PM | #107 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Hi, Kevin,
I thought I had posted this request after the 0.5.5 release, but I don't see the question in this thread, nor when I searched for it. :-(. Apologies if this is a repeated request. Because of a recent WCAG change, I now get this violation error when checking the epub after running access-aide: "The language must be specified (xml:lang in OPF package)" It's very easy to correct, by just inserting xml:lang="en" in the package element in the OPF file. But could this be included in a future release? Many thanks Jim |
Advert | |
|
12-05-2023, 08:11 PM | #108 | |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Does it specify the language of the metadata? Or something else?
The language of the book is already provided by dc:language. The pure xml has no language. So perhaps if the package tag needs an xml:lang element it should match the first dc:language tag contents as the dc metadata (titles etc) should be in that language as well? Does anyone know exact what that attribute on the package tag actually is indicating the language of? Update: All I can find in the epub3.2 spec is the following: The xml:lang attribute on the package tag is *optional*. In addition ... Quote:
Unfortunately the lang of the metadata need not match (but typically does) the language used in the epub. So my guess is we need to default this value to match the epub dc:language value. Metadata elements can also use alt:language and xml:lang attributes to make things more complex. Last edited by KevinH; 12-05-2023 at 10:21 PM. |
|
12-06-2023, 12:17 AM | #109 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Thanks, Kevin.
In fixing this in the epubs I've made, I do use the dc:language value and that has always fixed the issue. This is the reference I also get in the error report: http://kb.daisy.org/publishing/docs/epub/language.html Hope this helps. |
12-06-2023, 09:40 AM | #110 | |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
It seems it is for the metadata, according to Example 1 at your link:
Example 1 Quote:
It might be a while as I am moving the entire Access-Aide plugin gui to be PySide6/PyQt5 Qt based as Tk has many flaky issues with svgs and with the image table for adding alt values. |
|
Advert | |
|
12-08-2023, 08:33 AM | #111 | |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Quote:
Jim |
|
12-10-2023, 12:26 PM | #112 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
New Access-Aide v090 BETA release with Python Qt Gui
Attached to the first post in this thread is a BETA level version of the next Access-Aide plugin (v0.9.0-Beta) that I would love to have testing and feedback on.
The major changes in this versions are: v090 - Beta - completely removed the use of the Tk graphical user interface for image alt text editing because Tk and Pillow have no support for pure svg images and the built in converter was very incomplete. To replace it, The Qt for Python graphical user interface as provided by PySide6 (for Qt6) and PyQt5 (for Qt5) is used instead. The resulting Qt based Alt Text Editing dialog is much improved and much more stable. As a result the new minimum supported version of Sigil is: ***Sigil 1.60 or later*** - if the OPF package tag does not have an xml:lang element to indicate the primary language of its metadata tags, one is now added based the primary epub dc:language So if you have Sigil 1.6.0 or later and are willing to test this new Access-Aide and feedback issues or success, please give this one a try. I will try to keep an equivalent Tk version updated for at least the next year for those who do not use Sigil 1.6.0 or later or those who do not have access to PySide6 or PyQt5 for their external Python plugin interpreter. All Windows and Mac versions of Sigil from 1.60 to today already have the necessary pieces in place to run this Beta. Thanks for helping out! Last edited by KevinH; 12-10-2023 at 12:29 PM. |
12-13-2023, 12:01 PM | #113 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Access-Aide v0.9.1 Released
Hi All,
Based on feedback from a few beta testers, the latest production version of the Access-Aide plugin (Version 0.9.1) has now been released. You can download it from the first post in this thread or directly from the plugin folder on my personal github site: https://github.com/kevinhendricks/Access-Aide See the first post for information on all changes since the previous production release. They are significant. As a result the new minimum Sigil version is now Sigil 1.6.0 and requires PyQt5 or PySide6 to function. Windows and MacOS users of Sigil 1.6.0 or later using the bundled python interpreter have everything this plugin needs to function. Linux users using external Python interpreters may need to add Python modules given most distributions do not install all of Sigil's requirements. Last edited by KevinH; 12-13-2023 at 12:21 PM. |
12-15-2023, 07:54 AM | #114 | |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Quote:
Jim |
|
12-15-2023, 08:27 AM | #115 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
No problems. But please test the 0.9.1 version as it has a few bugs fixed that were reported by the beta testers.
|
12-21-2023, 02:01 PM | #116 | |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Testing V 0.9.1
Quote:
It added the lang="sv-SE" item to the package, as expected, in the opf file. No problems encountered. Jim |
|
12-21-2023, 02:10 PM | #117 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Great! Glad to hear it.
|
05-23-2024, 01:59 PM | #118 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Announcing Access-Aide Version 0.9.6
Access-Aide Version v096 has now been released. It is available via our Sigil Plugin Index as an attachment (see the first post in this thread or from my github repo:
https://github.com/kevinhendricks/Access-Aide It now includes the ability to take EMPTY alt attributes and look up the image's own metadata for XMP AltTextAccessibility or failing that, exif ImageDescription to auto fill alt attribute values. It will NOT overwrite any existing image alt value. Last edited by KevinH; 05-23-2024 at 03:00 PM. |
05-24-2024, 08:55 AM | #119 | |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Quote:
Here is the error log for that image. ... OEBPS/BTYAO-Book1-12.xhtml # 1 src: image/Image950.jpg alt text: Traceback (most recent call last): File "C:\Users\jhswi\AppData\Local\Programs\Sigil\plugi n_launchers\python\launcher.py", line 142, in launch self.exitcode = target_script.run(container) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jhswi\AppData\Local\sigil-ebook\sigil\plugins\Access-Aide\plugin.py", line 485, in run alttext = get_image_metadata_alttext(imgpath, plang) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jhswi\AppData\Local\sigil-ebook\sigil\plugins\Access-Aide\plugin.py", line 248, in get_image_metadata_alttext if marker == b"http://ns.adobe.com/xap/1.0/": ^^^^^^ UnboundLocalError: cannot access local variable 'marker' where it is not associated with a value Error: cannot access local variable 'marker' where it is not associated with a value Jim |
|
05-24-2024, 10:24 AM | #120 |
Grand Sorcerer
Posts: 27,947
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It looks as if there's 0.9.6 release that would address your issue, but the first post in this thread still has the 0.9.5.zip attachment.
You might try the 0.9.6 archive from Kevin's Github repository: https://github.com/kevinhendricks/Ac...-Aide_v096.zip EDIT: Nevermind, I see that the 0.9.6 version is indeed attached to the first post. My mistake. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ACE - DAISY EPUB Accessibility Checker wrapper | Doitsu | Plugins | 37 | 07-15-2024 11:38 AM |
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 |