05-17-2022, 11:37 PM | #91 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Oh, I just spotted the problem. The section tag IS within a <body> tag.
Now I need to find out how to avoid that from the InDesign Export. Thanks for that important but of information. |
05-18-2022, 08:20 AM | #92 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
The section tag can with its epub:type can be a child of the body tag. Only the body tag itself can *not* have aria roles assigned to it according to to epubcheck.
|
Advert | |
|
05-18-2022, 08:31 AM | #93 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Thanks, Kevin. I wondered about that this morning when I looked at the post again.
|
05-18-2022, 08:36 AM | #94 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Do you have a short snippet of xhtml that shows the epub:type set on a section tag, that does not get the correct aria-role added when the plugin exits when "okay" is used? If so post it here and I will try to create my own testcase from it.
|
05-18-2022, 09:06 AM | #95 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
I posted an example of the epub:type="chapter" in a post last night, Kevin
Here is another example from the toc page. Code:
<body id="AMH-en-acc-eBook-2" lang="en-US" xml:lang="en-US"> <section id="_idContainer002" epub:type="toc frontmatter"> <h1 class="chapter-title">Contents</h1> <p class="toc"><a href="AMH-en-acc-eBook-3.xhtml#_idTextAnchor000">Foreword</a></p> <p class="toc"><a href="AMH-en-acc-eBook-4.xhtml#_idTextAnchor002">Acknowledgements</a></p> <p class="toc"><a href="AMH-en-acc-eBook-5.xhtml#_idTextAnchor004">Introduction</a></p> |
Advert | |
|
05-18-2022, 10:18 AM | #96 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Thanks I missed that earlier one. Let me see if I can recreate what you are seeing.
|
05-18-2022, 10:28 AM | #97 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Okay from your two examples I created an simple epub (incomplete) and ran it through the latest Access-Aide plugin and get the following:
Before: Code:
<body id="AMH-en-acc-eBook-6" lang="en-US" xml:lang="en-US"> <section id="_idContainer008" class="Section" epub:type="chapter"> <p>Some text</p> </section> </body> Code:
<body id="AMH-en-acc-eBook-6" lang="en-US" xml:lang="en-US"> <section id="_idContainer008" class="Section" epub:type="chapter" role="doc-chapter"> <p>Some text</p> </section> </body> Code:
<body id="AMH-en-acc-eBook-2" lang="en-US" xml:lang="en-US"> <section id="_idContainer002" epub:type="toc frontmatter"> <h1 class="chapter-title">Contents</h1> <p class="toc"><a href="AMH-en-acc-eBook-3.xhtml#_idTextAnchor000">Foreword</a></p> <p class="toc"><a href="AMH-en-acc-eBook-4.xhtml#_idTextAnchor002">Acknowledgements</a></p> <p class="toc"><a href="AMH-en-acc-eBook-5.xhtml#_idTextAnchor004">Introduction</a></p> </section> </body> Code:
<body id="AMH-en-acc-eBook-2" lang="en-US" xml:lang="en-US"> <section id="_idContainer002" epub:type="toc frontmatter" role="doc-toc"> <h1 class="chapter-title">Contents</h1> <p class="toc"><a href="AMH-en-acc-eBook-3.xhtml#_idTextAnchor000">Foreword</a></p> <p class="toc"><a href="AMH-en-acc-eBook-4.xhtml#_idTextAnchor002">Acknowledgements</a></p> <p class="toc"><a href="AMH-en-acc-eBook-5.xhtml#_idTextAnchor004">Introduction</a></p> </section> </body> So the aria roles appear to be added just fine. Perhaps you expected it to add something to the nav? If so, you need to use Sigil to set the landmark semantics for each file and it will happily update the landmark portion of the nav for you. If you do that before running Access-Aide it will add role too if needed. Are you sure you are using an epub3 and that your html tag has the ops namespace added (for the epub: prefix)? Look for something like the following (notice the ops namespace): Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en"> Last edited by KevinH; 05-18-2022 at 10:34 AM. |
05-18-2022, 11:27 AM | #98 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
I've found the cause of the problem now.
It was really puzzling at first because I am definitely using Epub 3 (have not used anything else for several years now) and the html references were present in all the html files. The only thing I could find was that when Indesign exported the epub, the lang and xml:lang tags were missing. I have no idea why that has suddenly started to occur. But I knew that access:aide added those tags, so I ran the plugin a second time. This time, with the lang tags having been added to the html files, all the ARIA roles showed up as expected. MANY thanks for those tests, I would not have thought to run the plugin a second time without seeing your results. |
05-18-2022, 11:40 AM | #99 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Interesting. Adding the lang attributes should have done nothing. Running it twice should not be needed ever. My guess is the epub from InDesign has broken or not wellformed xhtml which prevents the xhtml from being successfully parsed and Sigil's gumbo parser fixes them upon return from the plugin the first time. So the second time through Access-Aide finally has well-formed xhtml to work with.
Last edited by KevinH; 05-18-2022 at 11:42 AM. |
05-18-2022, 12:17 PM | #100 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
Access-aide adds the language as en-GB. Where does the plugin get that setting?
I checked the Sigil lang settings and they are currently set to English and English -US for the metadata? |
05-18-2022, 12:26 PM | #101 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
OPF metadata
first dc:language tag in the metadata section of the OPF Last edited by KevinH; 05-18-2022 at 12:48 PM. |
05-18-2022, 01:00 PM | #102 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
That's another thing to sort out. How did en-GB get there in the first place if Indesign is not exporting Language correctly.
Anyway easy enough to edit that in Sigil :-) Thanks, Jim |
05-18-2022, 01:08 PM | #103 |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
No ideas. Gave up using InDesign for anything years ago.
|
05-18-2022, 02:25 PM | #104 |
Connoisseur
Posts: 78
Karma: 2138296
Join Date: Nov 2016
Device: ipad, Kindle Scribe, Kobo Libra 2
|
I understand. It's just that all the files I am sent to work with are InDesign files, some from early, pre-InDesign, days.
In this case, it turned out to be a single paragraph style that had been copied from another document at one time. It's all good now. Thanks again for the great help. |
10-05-2022, 06:30 AM | #105 |
Addict
Posts: 205
Karma: 20980
Join Date: Oct 2020
Device: Kobo Aura One, Aura HD (R.I.P.) :(
|
Wow just found this, thanks for the plugin!
|
|
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 |