Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2018, 09:01 PM   #1
jcsalomon
Zealot
jcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheese
 
jcsalomon's Avatar
 
Posts: 100
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
Can a file have multiple semantic tags (epub:type, reference type="…")?

In a set of books I’m typesetting, there’s a glossary after the last chapter. So I set the metadata accordingly: In content.opf’s <guide> section there’s the line

<reference type="glossary" title="Glossary" href="Text/Glossary.xhtml"/>

and in Nav.xhtml’s Landmarks section there’s the line

<li><a epub:type="glossary" href="../Text/Glossary.xhtml">Glossary</a></li>

But of course, the glossary is also the beginning of the back-matter, so I applied that semantic in Sigil. This changed the content.opf entry to

<reference type="other.backmatter" title="" href="Text/Glossary.xhtml"/>

and the Nav.xhtml entry to

<li><a epub:type="backmatter" href="../Text/Glossary.xhtml">Back Matter</a></li>

erasing the fact that this is also a glossary.

Question: Can a file have multiple semantic tags (i.e., is Sigil doing the wrong thing?) and if so, what would this look like? Two entries in the Landmarks section?

<li><a epub:type="backmatter" href="../Text/Glossary.xhtml">Back Matter</a></li>
<li><a epub:type="glossary" href="../Text/Glossary.xhtml">Glossary</a></li>

One entry with two types?

<li><a epub:type="backmatter glossary" href="../Text/Glossary.xhtml">Glossary</a></li>

EpubCheck seems to be happy with either, so I guess I’m asking—for programs that care, which is better supported?
jcsalomon is offline   Reply With Quote
Old 02-15-2018, 10:24 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,981
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Test your ePub in ADE 2.0.1 as well as an ePub 3 program. That way, you'll know if it's backwards compatible or not.
JSWolf is offline   Reply With Quote
Old 02-18-2018, 04:26 PM   #3
jcsalomon
Zealot
jcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheese
 
jcsalomon's Avatar
 
Posts: 100
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
???

Asn an EPUB2 reader, ADE 2 should look only at the <guide> section of content.opf, and that I’m quite willing to leave with only one entry (probably the type="glossary" line rather than the type="other.backmatter" line). I’m mostly asking about the EPUB3 landmarks nav list—do any reading systems recognize "glossary" and/or "backmatter", and for those that do, which syntax is better supported?
jcsalomon is offline   Reply With Quote
Old 02-18-2018, 05:05 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by jcsalomon View Post
Question: Can a file have multiple semantic tags [...]
According to the IDPF, yes. They give the following example:

Quote:
Code:
    <section epub:type="dedication backmatter">
       …
    <section>
Quote:
Originally Posted by jcsalomon View Post
Can a file have multiple semantic tags (i.e., is Sigil doing the wrong thing?
Ideally, Sigil should allow multiple epub:type attributes. You might want to report this issue to the Sigil developers.
Doitsu is offline   Reply With Quote
Old 02-18-2018, 05:42 PM   #5
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
Sigil supports just a single epub:type one at the file level for creating the nav. Of course, Sigil allows multiple values via CodeView and editing the xhtml and nav directly.

The issue is also setting epub:type semantics on body and section tags, footnotes, and not just at the landmark file level.

I have been wrestling with this for a while and still am not sure the way to handle it best in Sigil. Perhaps a set of clips just for adding epub:type attributes to any user selected tag. Even at the file level with landmarks, Sigil keeps it to one, not multiple elements.

Ideas welcome on how to make all of the semantic setting easier for users outside of just the landmarks.

Of course, Access-Aide would have to be updated to handle multiple space delimited attribute values for epub:type and then to produce multiple attribute values for the aria role attribute as well.

I assume aria roles can have more than one attribute value as well.

Last edited by KevinH; 02-18-2018 at 06:08 PM.
KevinH is online now   Reply With Quote
Old 02-19-2018, 10:58 AM   #6
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
FWIW, I just added support in Access-Aide master for epub:type and aria role attributes that have multiple space delimited attribute values.
KevinH is online now   Reply With Quote
Old 02-19-2018, 11:04 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,981
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
This thread is a Sigil issue and should be moved to the Sigil forum.
JSWolf is offline   Reply With Quote
Old 02-19-2018, 11:40 AM   #8
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,644
Karma: 5433388
Join Date: Nov 2009
Device: many
No, my reply was about support in Sigil but the original question is about screen readers and ebook readers and if they grok or can even live with epub:type or aria:role attributes that have multiple values.

This a generic epub3 question.
KevinH is online now   Reply With Quote
Reply

Tags
epub 3, epub 3.0, guide, landmarks nav, metadata


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What does epub:type="chapter" mean? phossler Editor 3 11-23-2015 07:14 PM
ePub to Mobi: can't get the reference type="text" to work LaoTseu Conversion 7 09-14-2011 12:06 AM
some Borders ebooks are "mobile" file type: can Sony Readers read them? mmxx Sony Reader 2 02-17-2011 05:20 PM
Adding a new file type in "Save to device" list LARdT Calibre 1 12-19-2010 11:43 AM
Multiple reference elements with the same type in the <guide> Valloric ePub 8 04-25-2010 11:18 AM


All times are GMT -4. The time now is 03:17 PM.


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