10-20-2011, 12:47 PM | #1 |
Zealot
Posts: 127
Karma: 12096
Join Date: May 2010
Device: Loads!
|
EPUBCHECK 3.0b2 won't accept <audio>
I'm having a play about with adding audio to ePubs but the new epubcheck won't allow the <audio> element.
The example below audio.xhtml parses just fine in a web browser (using an OGG in that instance, though I'll use an MP3 in the real ePUB). Am I doing anything really DAFT here??? Andy Code:
<?xml version='1.0'?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title></title> <link rel='StyleSheet' type='Text / css' href='StyleSheet.css' /> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/> </head> <body> <h2>Audio Test</h2> <p><img src="images\chapter-i.png" alt="x" width="100px"/></p> <p><audio src="Audio\sample.ogg" controls="controls"> Your browser does not support the audio element. </audio></p> </body></html> |
10-20-2011, 01:09 PM | #2 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Well, you declared your document to be XHTML 1.1 in your DOCTYPE, and if I'm not mistaken <audio> is not a recognized XHTML 1.1 element. I don't know if it would work in other conditions. Note that the DOCTYPE is not compulsory, but if you use a DOCTYPE you must comply with it.
|
Advert | |
|
10-20-2011, 01:45 PM | #3 | |
Zealot
Posts: 127
Karma: 12096
Join Date: May 2010
Device: Loads!
|
Quote:
Good spot. Firefox just gets on with it and renders the page. So, perhaps epubcheck is a little more careful... replacing the doctype with Code:
<!DOCTYPE html> Confused! Should I use an HTML file rather than XHTML? |
|
10-20-2011, 02:30 PM | #4 |
Zealot
Posts: 127
Karma: 12096
Join Date: May 2010
Device: Loads!
|
Aha....
Look what I found lurking in my OPF file... Code:
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="bookid" version="2.0"> |
10-20-2011, 02:31 PM | #5 |
Resident Curmudgeon
Posts: 73,941
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What is your target audience? Most ePub readers won't work with audio.
|
Advert | |
|
10-21-2011, 05:07 AM | #6 | |
Zealot
Posts: 127
Karma: 12096
Join Date: May 2010
Device: Loads!
|
Quote:
They want to make a title for iPad specifically without having to go through the everlasting pain of APP development and submission. But once I've got that, I can add it as degradable embellishments to just about any title. I'm lucky in that we have our own imprint (sci-fi-cafe.com) where I can try out all kinds of crazy ideas without upsetting anyone. |
|
10-21-2011, 05:54 AM | #7 |
Resident Curmudgeon
Posts: 73,941
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The problem is that in order to add multi-media elements to iBooks, it's not going to pass ePubCheck. So forget validating as it never will.
|
10-21-2011, 06:08 AM | #8 | |
Zealot
Posts: 127
Karma: 12096
Join Date: May 2010
Device: Loads!
|
Quote:
But as for failing iBooks, I watched all kinds of videos from Adobe yesterday about adding media to eBooks etc... are all these titles going to fail submission? |
|
10-21-2011, 07:26 AM | #9 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Untill someone changes the validation tools, yes.
Please keep in mind that adding media is only support as of ePUB v3, which is not yet finalized afak. Until then the support will be minimal and up to the specific interpretation of the reader. That mean that most readers will not support it and that the readers/reader application that does support only support their interpretation of it. It is uncertain that the implementation that iBooks uses is conform the final specs. Last edited by Toxaris; 10-21-2011 at 01:51 PM. |
10-21-2011, 08:36 AM | #10 |
Zealot
Posts: 127
Karma: 12096
Join Date: May 2010
Device: Loads!
|
That's fine.
Tools are now upgraded to deal with the inclusion of media files, it'll be a snap to adjust how the ePUB files are coded to support whatever the outcome is. But I'll still try to push the envelope with some experimantal inclusion of sound in some new eBooks that we're publishing ourselves through our own product delivery system. Punters buying books through the normal channels will have to put up with the 'safe' version. Really, it's SO frustrating when you see people like Adobe, Quark etc waving about all these nice media-rich examples when in reality there's no player to play them on and no agreement on the spec. I sat and listened to a great talk at the London Book Fair by the people from the IDPF about the coming format... I really feel cheated and dissapointed that it's all come to naught. |
10-21-2011, 11:28 AM | #11 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Azardi will play ePub 3 and iBooks is close. The specifications are not yet finalized I believe. These things don't happen over night. Pushing the envelope is fine. You can always tell the pioneers by the arrows in their back.
Dale |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre will not accept new books. | Rusherman | Calibre | 5 | 06-10-2011 02:14 PM |
Does Calibre accept the integration of other dictionaries | dalbatros | Calibre | 4 | 10-05-2010 02:43 PM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |
Blackstone Audio to release audio books as DRM-free MP3s | Donnageddon | News | 4 | 07-07-2008 12:16 PM |