Thanks, Toxaris. I should have been clearer and mentioned that the javascript is run in InDesign, not attached to the epub file.
However, I have been able to attach a couple of scripts to my epub files that pass validation and do not interfere with display on an ADE reader. Both scripts are to get over quirks in iBooks: one inserts empty span tags into a list of paragraph styles to allow for center alignment, the other forces iBooks to display sans-serif fonts in paragraph styles that specify it. Actually, to be honest, I haven't done the full test on that second one yet. I wrote it and it worked, but I have no idea if it will pass further validation. The first one, however, is in a couple of ebooks that did pass validation and made it to through the distributor's gauntlet and onward to the e-tailers.
Last edited by sbell; 10-07-2011 at 09:00 AM.
Reason: clarification
|