View Single Post
Old 11-01-2024, 07:40 AM   #133
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,233
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
Released another preview: Major features: Viewer can now play m4a audio files and in dark mode the scrollbar has improved contrast. Lots of minor bug fixes as well.
Thanks a lot for the new scrollbar for dark mode.

Now, about the audio overlay. I noticed two things:

1) Some short sentences (one or two words) tend to get a wrong audio markup. Example:

HTML:
Code:
<p class="texto"><span id="cttsw-33">– Claro. </span><span id="cttsw-34">Eu tenho passagem pela prisão, então se algum crime tiver sido cometido, eu devo ser a responsável.</span></p>
SMIL:
Code:
<par id="par-33">
        <text src="74.xhtml#cttsw-33"/>
        <audio src="74.xhtml.m4a" clipBegin="00:01:28.61" clipEnd="00:01:28.549"/>
</par>
Notice the 'clipBegin' and 'clipEnd' timings. Because of this, the sentence is not highlighted when reading aloud in the viewer (and stops highlighting altogether in ADE).

2) In the OPF, the 'media:duration' property is only set for the last smil file. The read aloud works just fine in calibre, but I don't know if this could cause an error on other reading devices.
thiago.eec is offline   Reply With Quote