Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-08-2012, 12:46 PM   #1
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
Display Code and animation

I was looking for a code structure or way to actually display code in a epub. What tags do you use?? I was also curious about adding JavaScript or jQuery. I havent looked into animation within an epub but I would like to know a direction. Might give it a shot.
curiousgeorge is offline   Reply With Quote
Old 08-08-2012, 02:16 PM   #2
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
It is a subset of xhtml, so I wonder what you mean with code.
Javascript and alike are not supported in ePUB 2. It is in version 3, but that is not widely supported.
Toxaris is offline   Reply With Quote
Advert
Old 08-08-2012, 02:47 PM   #3
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
well if you are building a book on code and need to display code, for example here you would use bracket code bracket bracket / code bracket to display the code. I was trying to figure out what syntax for epub 3.0 that runs with HTML 5 and CSS 3.0 from what I've read that will allow you to display code instead of running the code. Hope this is better explaining.
curiousgeorge is offline   Reply With Quote
Old 08-09-2012, 04:56 AM   #4
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: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You have to do it yourself. Instead of < and >, you have to write &lt; and &gt;. For the background, alignment, monospace font, etc., use CSS as usual.
Jellby is offline   Reply With Quote
Old 08-09-2012, 07:02 AM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Or you can just use images.
mrmikel is offline   Reply With Quote
Advert
Old 08-09-2012, 10:30 AM   #6
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
Quote:
Originally Posted by mrmikel View Post
Or you can just use images.
ya but that would possibly in the end make the book larger than needed. I would test out some ideas and post back.
curiousgeorge is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling the boot animation rvs iRex Developer's Corner 6 07-28-2011 06:57 AM
Aldiko -- page animation? Skydog Android Devices 4 03-15-2011 02:12 PM
IQ Adroid animation just keeps going. UrbanNightmare PocketBook 8 03-08-2011 05:17 PM
Cover animation feature danwdoo Calibre 5 06-20-2010 01:38 AM
Unutterably Silly As long as we're on about great animation RickyMaveety Lounge 7 05-30-2009 05:12 AM


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


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