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-20-2011, 12:47 PM   #1
Oxford-eBooks
Connoisseur
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 86
Karma: 12096
Join Date: May 2010
Device: Loads!
Angry 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>
Oxford-eBooks is offline   Reply With Quote
Old 10-20-2011, 01:09 PM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,197
Karma: 4800739
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.
Jellby is offline   Reply With Quote
 
Enthusiast
Old 10-20-2011, 01:45 PM   #3
Oxford-eBooks
Connoisseur
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 86
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by Jellby View Post
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.


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>
still works in firefox, but epubcheck still throws the <audio> tag out.

Confused!

Should I use an HTML file rather than XHTML?
Oxford-eBooks is offline   Reply With Quote
Old 10-20-2011, 02:30 PM   #4
Oxford-eBooks
Connoisseur
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 86
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">
Changed to 3.0 and now I get a whole load of different and interesting errors - but at least I have it's attention now!
Oxford-eBooks is offline   Reply With Quote
Old 10-20-2011, 02:31 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,706
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
What is your target audience? Most ePub readers won't work with audio.
JSWolf is online now   Reply With Quote
Old 10-21-2011, 05:07 AM   #6
Oxford-eBooks
Connoisseur
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 86
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by JSWolf View Post
What is your target audience? Most ePub readers won't work with audio.
This is at first for a specific project where the client wants to have audio in the eBook.
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.
Oxford-eBooks is offline   Reply With Quote
Old 10-21-2011, 05:54 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,706
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
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.
JSWolf is online now   Reply With Quote
Old 10-21-2011, 06:08 AM   #8
Oxford-eBooks
Connoisseur
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 86
Karma: 12096
Join Date: May 2010
Device: Loads!
Quote:
Originally Posted by JSWolf View Post
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.
The file's building properly now, which is good, and I'm upgrading our tools to handle epub3.0 at the same time, so no waste of time there.

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?
Oxford-eBooks is offline   Reply With Quote
Old 10-21-2011, 07:26 AM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,013
Karma: 3618999
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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.
Toxaris is online now   Reply With Quote
Old 10-21-2011, 08:36 AM   #10
Oxford-eBooks
Connoisseur
Oxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of lightOxford-eBooks is a glorious beacon of light
 
Posts: 86
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.
Oxford-eBooks is offline   Reply With Quote
Old 10-21-2011, 11:28 AM   #11
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,657
Karma: 5072002
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
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
DaleDe is online now   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
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


All times are GMT -4. The time now is 03:56 PM.


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