View Single Post
Old 07-05-2024, 04:25 PM   #9
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: 8,881
Karma: 6120478
Join Date: Nov 2009
Device: many
Thanks for sending me that example. I have a few questions:

1. Is the fixed layout xhtml file created in advance and fully existing when you want to add its smil file?

2. How do you know which id values (fragments in the target xhtml file) are associated with sound and which are not?

The reason I ask is we could easily walk the xhtml file file and generate in the order they are found in the file every id (fragment) that is attached to a specific set of tags (div, span, p, h1-h6) but not all of these may have audio associated with it.

3. So generating a set of par with unique ids with text src="TARGETFILENAME#id is possible but a placeholder dummy would need to be inserted for the desired mp3 file url.

But where on earth do you get the audio clipBegin="35.11" and clipEnd="35.37" values from?

4. Is the audio file generated in advance?

5. Is there a way to dump the timings on a word by word basis from the audio file? Otherwise how do you generate each word timing start time?

I need your answers to these questions to understand exactly what type of information needs to be extracted from the target xhtml file to generate the smil file and if any information at all can be extracted from the audio file.


I have seen smil files but ones rarely done on fixed layout epubs. They just need paragraph timings not word timings.
KevinH is offline   Reply With Quote