链接到 XHTML/EPUB 中的音频

发布于 2024-09-02 06:55:30 字数 283 浏览 7 评论 0原文

我正在考虑将 epub 格式的电子书(因此内容为 XHTML)同步到音频文件。我正在考虑将以下内容

<a class="audiolink" href="sound.ogg?t=1093"></a>

放入文档正文中,然后使用自定义 epub 阅读器来识别这些标签并相应地同步音频。不过,这对我来说确实有点像黑客,尤其是使用特殊的类名。

有谁知道如何以更符合标准的方式(或以前做过的地方)来完成此操作?带音频注释的电子书似乎是一个已经存在的想法。

I'm looking into synchronizing an ebook in epub format (so the content is in XHTML) to an audio file. I'm thinking of putting something along the lines of:

<a class="audiolink" href="sound.ogg?t=1093"></a>

into the body of the document, and then have a custom epub reader that recognizes those tags and synchronizes the audio accordingly. That does seem like a bit of a hack to me though, especially the use of a special class name.

Does anyone have any pointers to how this may be done in a more standards-compliant manner (or somewhere where it has been done before)? Ebooks with audio annotation seem like an idea that may already be out there.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦亿 2024-09-09 06:55:30

是的,这是一个古老的想法,而且是的——这需要大量的工作。请参阅 DAISY Talking Book (DTBook) 规范:

DAISY 格式的一个子集已被美国法律采纳为国家教学材料无障碍标准,现在要求向学生提供 K-12 教科书和教学材料残疾。

EPUB 规范包括开放出版结构 (OPS) 规范,它描述了内容标记,可以是 XHTML,也可以是……等等……DTBook。对您来说,好处是 DTBook 基于 HTML、XHTML 和 SMIL。

因此,您可以使用 DTBook 和一些可用于创作 DTBook 的发布工具链,然后将其打包成 epub。

一家 iPhone 初创公司正在追求同步阅读,增强版: http://www.enhanced-editions.com/blog/2010/02/enhancing-the-ebook/,这样你就有了陪伴。

祝你好运。

Yes, it's an old idea, and yea-- it's a lot of work. See the DAISY Talking Book (DTBook) specification:

A subset of the DAISY format has been adopted by law in the United States as the National Instructional Material Accessibility Standard, and K-12 textbooks and instructional materials are now required to be provided to students with disabilities.

The EPUB spec includes the Open Publication Structure (OPS) spec which describes the content markup, which can be either XHTML, or ... wait for it... DTBook. The good thing for you is that DTBook is based on HTML, XHTML, and SMIL.

So you could use DTBook and some of the publishing toolchains that are available for authoring DTBooks, and then just wrap it up into an epub.

Synchronized reading is being pursued by an iphone startup, Enhanced Editions: http://www.enhanced-editions.com/blog/2010/02/enhancing-the-ebook/, so you'll have company.

Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文