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 08-08-2012, 01: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, 03: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: 3,100
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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
Old 08-08-2012, 03: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, 05: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: 6,258
Karma: 4801165
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, 08: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,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Or you can just use images.
mrmikel is offline   Reply With Quote
Old 08-09-2012, 11: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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