Quote:
Originally Posted by salmobytes
Is there a way to configure something in content.opf perhaps, so that js and css stuff would not have to be stripped? The error I get for that stuff is
ERROR(OPF-014): The property 'scripted' should be declared in the OPF file.
How would I declare it?
|
You can do that easily by working with Sigil. Once loaded the epub3 under Sigil. put your scripts in the folder "Misc" and your .css stylesheets in the folder "Styles". After, do right click on the .xhtml files that will content your scripts and css styles and select the command "Link Stylesheets..." and "Link Javascripts...". Sigil itself will write all the neccessary things in the .opf file.
On the other hand, also you can select the command "Tools/Epub3 Tools/Update Manifiest Properties" and all the changes will be made on the .opf file.
Quote:
I don't expect javascript to work inside an epub reader. But it wold be handy if I did not have to strip it out.
|
In fact, the javascripts will work nice inside an epub3. All ereaders I know that suppor epub3, they support javascript. And with it you can do practically anything: creating, deleting, hiding, showing paragraphs, modifying styles, changing css rules, etc., etc., etc.
Quote:
Do any epub readers support any subset of javascript in the epub?
|
ADE 4.5x, Thorium (for Linux and Windows), Koodo Reader (for Linux and Windows), Foliate (Linux), Sigil and its plugins Readium, Bibi Reader and EpubJS Reader, Calibre Viewer and Calibre Editor, EpubReader (for Chrome and Firefox), ePUB Reader (for Chrome and Firefox), PocketBook, Gitden Reader, Reasily, Lithium, Aldiko Next, Overdrive, Bluefire Reader, BookFusion, Infinity Reader (all Android apps). All this programs and apps support javascript practically "in totum".