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-17-2022, 11:37 PM   #91
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
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.
oston is offline   Reply With Quote
Old 05-18-2022, 08:20 AM   #92
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,776
Karma: 5446592
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.
KevinH is offline   Reply With Quote
Advert
Old 05-18-2022, 08:31 AM   #93
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
Thanks, Kevin. I wondered about that this morning when I looked at the post again.
oston is offline   Reply With Quote
Old 05-18-2022, 08:36 AM   #94
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,776
Karma: 5446592
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.
KevinH is offline   Reply With Quote
Old 05-18-2022, 09:06 AM   #95
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
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>
oston is offline   Reply With Quote
Advert
Old 05-18-2022, 10:18 AM   #96
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,776
Karma: 5446592
Join Date: Nov 2009
Device: many
Thanks I missed that earlier one. Let me see if I can recreate what you are seeing.
KevinH is offline   Reply With Quote
Old 05-18-2022, 10:28 AM   #97
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,776
Karma: 5446592
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>
After:
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>
Before:
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>
After:
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.
KevinH is offline   Reply With Quote
Old 05-18-2022, 11:27 AM   #98
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
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.
oston is offline   Reply With Quote
Old 05-18-2022, 11:40 AM   #99
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,776
Karma: 5446592
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.
KevinH is offline   Reply With Quote
Old 05-18-2022, 12:17 PM   #100
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
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?
oston is offline   Reply With Quote
Old 05-18-2022, 12:26 PM   #101
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,776
Karma: 5446592
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.
KevinH is offline   Reply With Quote
Old 05-18-2022, 01:00 PM   #102
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
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
oston is offline   Reply With Quote
Old 05-18-2022, 01:08 PM   #103
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,776
Karma: 5446592
Join Date: Nov 2009
Device: many
No ideas. Gave up using InDesign for anything years ago.
KevinH is offline   Reply With Quote
Old 05-18-2022, 02:25 PM   #104
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
Quote:
Originally Posted by KevinH View Post
No ideas. Gave up using InDesign for anything years ago.
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.
oston is offline   Reply With Quote
Old 10-05-2022, 06:30 AM   #105
Rid
Addict
Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.Rid can self-interpret dreams as they happen.
 
Posts: 204
Karma: 20980
Join Date: Oct 2020
Device: Kobo Aura One, Aura HD (R.I.P.) :(
Wow just found this, thanks for the plugin!
Rid 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 09:09 AM.


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