07-05-2022, 09:47 PM | #1 |
Wizard
Posts: 1,157
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
xmlns:epub=""
When creating a new xhtml page in a epub v3.0 file, the following code is automatically added to the page...
PHP Code:
PHP Code:
|
07-05-2022, 10:07 PM | #2 |
creator of calibre
Posts: 43,980
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You shouldnt need to use the epub namesapce, the bright bulbs over at the epub spec committee realized namespaces are poison and replaced most of them with the role HTML attribute. What do you intend to use epub: for?
|
07-05-2022, 10:38 PM | #3 |
Wizard
Posts: 1,157
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Hi @kovidgoyal,
I am just starting to dive into the use of the epub:type attribute as I wanted to learn a bit more about it and its use, using this as a reference... https://www.w3.org/TR/epub-ssv/#sec-partitions If I add one of these attributes, like <body epub:type="chapter">, and I don't add the namespace, then EPUBCheck gives the following error... Code:
p01c21.xhtml ERROR(RSC-005): Error while parsing file: The prefix "epub" for attribute "epub:type" associated with an element type "body" is not bound. I initially started looking into this to experiment with the newer footnotes method of using the <aside> tag, but it does not seem to work on the Libra2, but thought I would continue learning about the attributes anyway. Are you saying that the epub:type= attribute is not required/needed in epub v3? |
07-05-2022, 11:09 PM | #4 |
creator of calibre
Posts: 43,980
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, it's not required. You can just use role instead, a bit of googling should find you the information for the role values.
|
07-05-2022, 11:32 PM | #5 | |
Wizard
Posts: 1,157
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Is it the Aria-Roles that I should be using?... https://www.w3.org/TR/wai-aria-1.0/roles And it looks like a namespace is not needed as you stated. What are your thoughts - is it worth going to the effort of adding the roles attributes throughout ebooks? Wondering if it is a waste of time for no foreseeable benefit. |
|
07-06-2022, 01:15 AM | #6 |
creator of calibre
Posts: 43,980
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ARIA roles are mostly useful for screen readers. How useful you find that depends on if you expect your work to be read using screen readers. As far as non-screen reader uses are concerned, the only useful one in my experience is the one for footnotes, since many viewers including the calibre one use this to make popup footnotes more robust.
|
07-06-2022, 02:53 AM | #7 |
Wizard
Posts: 1,157
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Thank you @kovidgoyal
|
Tags |
epub 3, xmlns |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre-generated epub (from .docx) gives "e21027" "multiple opf files" on KindleGen | GhostRider | Conversion | 0 | 12-22-2017 09:06 AM |
Bugs "Sanity Check epub" and "Failed Release date" on V 0.91 | qkiazd | Sigil | 5 | 12-03-2015 04:01 AM |
Recipe for EPUB subscribers of "Tagesspiegel" and "Handelsblatt"? | F.W. | Recipes | 0 | 05-14-2013 11:16 AM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
xmlns="http://www.w3.org/1999/xhtml | paulpeer | Sigil | 2 | 03-21-2010 07:57 AM |