Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 01:17 AM   #1
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,921
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Accessibility Checker

Hi @kovidgoyal

Thanks for the latest update.

I noticed the new Accessibility Checker and wanted to give it a try.

The image shows a <h4> heading. This skips a level as there is no <h3> heading above it, only a <h2>.

It shows an epub:type with no matching Aria role.

The checker didn't pick up on either of these. Something I am misunderstanding?
Attached Thumbnails
Click image for larger version

Name:	epubType.jpg
Views:	13
Size:	112.8 KB
ID:	227216  
Karellen is online now   Reply With Quote
Old Today, 01:53 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,587
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The heading level checker had a bug, it didnt catch the first heading in a new html file, now fixed.

epub:type without an ARIA role: correct behaviour. epub:type="chapter" matches the role doc-chapter, but ARIA doesn't allow that role on headings, only on things like <section>. Adding it would make the markup invalid, so the checker rightly doesn't suggest it. The real problem is that chapter doesn't belong on an <h4>; it should be on the surrounding <section> or <body>.
kovidgoyal is online now   Reply With Quote
Old Today, 02:08 AM   #3
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,921
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
The heading level checker had a bug, it didnt catch the first heading in a new html file, now fixed.
Great. Thank you.

Quote:
Originally Posted by kovidgoyal View Post
but ARIA doesn't allow that role on headings, only on things like <section>.
Ok, thanks. I added that epub:type as a test, but also I wasn't aware of that requirement.

I've checked using a <section> tag as suggested, and it captured the missing aria role.

Is it expected that it does not work in reverse - have the aria role, but the epub:type is missing?
Karellen is online now   Reply With Quote
Old Today, 02:17 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,587
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes, it is, accessibility relies on aria roles not epub:type, so the checker does not care too much about epub:type
kovidgoyal is online now   Reply With Quote
Old Today, 03:17 AM   #5
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,921
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Great. Thanks!!
Karellen is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] ACE - DAISY EPUB Accessibility Checker wrapper Doitsu Plugins 40 12-10-2025 11:53 AM
[Editor Plugin] ACE by Daisy - EPUB Accessibility Checker thiago.eec Plugins 26 03-27-2023 09:19 AM
Accessibility BooksForABuck News 0 12-30-2004 10:37 PM


All times are GMT -4. The time now is 05:03 AM.


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