Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2021, 10:30 AM   #1
parkellipsen
Junior Member
parkellipsen began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2021
Device: Thorium
Adding multiple media overlays with EPUB3 ?

Hi,

so, I've recently discovered that the Thorium reader application (and possible others) support media overlays that allow you to synchronize audio narration with the text.

I succesfully managed to assemble an EPUB3 book with an audio narration layer using Sigil.

Now my question is, does the standard allow to add multiple overlays for the same text passage ? The <par> tag allows only a single <audio> tag inside, and nesting <seq> tags in one <par> doesn't work. I neither found a way to add multiple SMIL definitions for the overlays.

I haven't found anything that'd explicitly forbid adding multiple overlays. Can anyone enlighten me whether that's possible within the standard ?

Best,
n
parkellipsen is offline   Reply With Quote
Old 10-04-2021, 10:50 AM   #2
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,279
Karma: 19618507
Join Date: Dec 2010
Device: Kindle PW2
I haven't worked with overlays, but, IIRC, you might be able to use the Sigil Icarus plugin for it.
Doitsu is offline   Reply With Quote
Advert
Old 10-04-2021, 11:50 AM   #3
parkellipsen
Junior Member
parkellipsen began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2021
Device: Thorium
Hmm I read about that plugin, but I wonder whether it is still necessary? I think it stems from a time when Sigil didn't support EPUB3 out-of-the-box?

In fact I tried it and couldn't really make it run, but I was still able to assemble the ebook without it.
parkellipsen is offline   Reply With Quote
Old 10-04-2021, 03:25 PM   #4
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: 5,855
Karma: 3571874
Join Date: Nov 2009
Device: many
The latest spec only allows 0 or 1 audio elements per par.

See: https://www.w3.org/publishing/epub3/...-smil-par-elem

Quote:
2.4.6 The par Element

The par element contains media objects which are to be rendered in parallel.

Element Name
par

Usage
One or more par elements MAY occur as children of the body and seq elements.

Attributes
epub:type [optional]
An expression of the structural semantics of the corresponding element in the EPUB Content Document.

The value is a white space separated list of property [Packages32] types. Refer to Semantic Inflection for more information.

id [optional]
The ID [XML] of the element, which MUST be unique within the document scope.

Content Model
In any order:

text [exactly 1]

audio [0 or 1]

The audio element is OPTIONAL only if its sibling text element refers to audio or video media (see Embedded Media), or to textual content intended for rendering via Text-to-Speech (TTS).

Have you thought about creating an epub with multiple renditions? Would that help?
KevinH is offline   Reply With Quote
Old 10-04-2021, 03:36 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: 5,855
Karma: 3571874
Join Date: Nov 2009
Device: many
Based on my limited reading of the spec it states:

Quote:
It MAY refer to more than one EPUB Content Document, but an EPUB Content Document MUST NOT be referenced by more than one Media Overlay Document
where "It" here is a Media Overlay Document.

So the only way to include multiple media overlays to basically the same xhtml content document would be to duplicate that xhtml document under a new name and associate it with the second media overlay.

Probably better to just split it into two different epubs.

Last edited by KevinH; 10-04-2021 at 11:34 PM.
KevinH is offline   Reply With Quote
Advert
Old 10-05-2021, 04:50 AM   #6
parkellipsen
Junior Member
parkellipsen began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2021
Device: Thorium
Hmm ok, that's pretty unambiguous ... thanks for helping me interpret
parkellipsen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert multiple html files with assets to EPUB3 wajdi ben ftima Conversion 2 06-24-2021 09:53 AM
iBooks Author ePub3 Media Queries mattmc ePub 2 10-12-2016 06:55 PM
Trouble adding multiple books from multiple directories to Calibre LisaAlissa Library Management 17 09-02-2015 01:00 PM
Adding Media Player Start Stop button mayankparekh Recipes 0 04-22-2015 08:22 PM
Media sharing at home: multiple users, NAS DerBusIsVoll Library Management 6 02-13-2012 01:01 PM


All times are GMT -4. The time now is 06:28 AM.


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