![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,258
Karma: 3439432
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
|
Interactive Diagrams?
Is it possible to do these in an ePub? Judging from: http://www.baldurbjarnason.com/notes...cript-in-epub/ I'm guessing not....
I've been writing the assembly instructions for the ShapeOko 2: http://docs.shapeoko.com/ and have been changing over to SVG versions of the diagrams which are ``wired up'' for interactivity and ``X-ray views''. Click on the part #s to highlight / remove highlighting: The first two are quite prosaic: http://docs.shapeoko.com/content/tPi...203-02-100.svg http://docs.shapeoko.com/content/tPi...197-02-100.svg The next two are variations on a theme: http://docs.shapeoko.com/content/tPi...S20021-100.svg http://docs.shapeoko.com/content/tPi...S20022-100.svg They get a bit more interesting as one gets to more complex assemblies: http://docs.shapeoko.com/content/tPi...S20029-100.svg http://docs.shapeoko.com/content/tPi...S20028-100.svg http://docs.shapeoko.com/content/tPi...S20030-100.svg http://docs.shapeoko.com/content/tPi...S20031-100.svg (Most of the rest are done --- just waiting for me to upload them) Issues / concerns: - is there some way to get these into an ePub or Kindle book? - if instead, I made them as a .pdf, would any viewer other than Adobe Acrobat be able to display them? I'd be grateful for any other thoughts or feedback. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,328
Karma: 59447733
Join Date: Jan 2007
Location: Peru
Device: KINDLE: Oasis 3, Scribe (1st), Matcha; KOBO: Libra 2, Libra Colour
|
You posted in a forum called General Discussions, which is a forum for "[G]eneral discussions about e-book reading not specific to a device, software or format."
Please post responsibly. Your thread has now been moved to the epub forum. Don (Moderator) |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If it runs with JavaScript, you can try it with ePUB3. Be aware that support on devices is strongly limited and differs strongly per device/application.
Only a subset of SVG is supported in the specs of ePUB and not all readers honor even this subset. IIRC in ePUB3 the full set *should* be supported, but read the first paragraph again. If you put it in a PDF, it should work in all PDF readers if they support those features of course. |
![]() |
![]() |
![]() |
#4 | |||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Here is even a super simple SVG showing a parabola which can flip back/forth when you push a button: http://www.infogridpacific.com/blog/...014.html#h2358 Not supported in EPUB OR MOBI (because they ban SVG with animation). http://www.idpf.org/epub/30/spec/epu...-restrictions: Quote:
Quote:
Quote:
Side Note: I should really get back to working on my SVG tutorial/research! Quote:
This MAY be possible in an EPUB dedicated towards iBooks, because they like to support all of this unofficial javascript and their own brand of EPUB3, but as the article linked in the first post says... iBooks CANNOT be trusted (even if you do happen to hack something together, they will "patch" and most likely break support). An EPUB3 reader like AZARDI would probably be able to handle an SVG like this fine.... but the amount of people using that as a reader, close to nil. Long story short... pain and misery. ![]() Although I am quite interested in all things SVG, so keep us in the loop. Best bet would probably be a few static images, and then perhaps linking directly to the interactive SVGs on the website, and hope they are using a device that can open it in Firefox/Chrome/browser which supports it. I just tested those complex SVGs on my phone, and it made it chug. |
|||||
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,258
Karma: 3439432
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
|
Thanks. That saves me a lot of time / effort / research.
I'm going to go back and break apart all the diagrams and re-draw the images one part at a time, then will re-create things --- hopefully this will get the filesize down (they really shouldn't be that large, it's just the XML overhead of each path segment being its own object). Once I've done that we'll see where things stand. Thanks! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Be sure to try them in some real devices that need to display it when you get done. I think you are on the bleeding edge as far as real world devices goes.
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,258
Karma: 3439432
Join Date: Feb 2008
Device: Amazon Kindle Paperwhite (300ppi), Samsung Galaxy Book 12
|
They work on my old iPad, and in Chrome, and Firefox on PCs running Windows and Mac OS X and in Safari on Mac OS X --- I'd be curious how they work on Android tablets --- is there anything else I should test on?
|
![]() |
![]() |
![]() |
#8 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Whatever you use or you think users of the book will use. If you've already covered that list, that's great. It is not likely to cover commercial ereading machines, but none of those is on your list.
A number of people on the forum are interested in a least having an option for commercial sales, that is why I brought the issue up. Kindle has the most users. |
![]() |
![]() |
![]() |
#9 | |||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://www.mobileread.com/forums/sho...d.php?t=223254 (Although you probably already knew almost all of those steps... and most of those beyond Inkscape steps can probably be automated using imagemagick). Note: Try to avoid transparency in PNGs. While it would be fantastic to have transparency, I would avoid it at the current time, and just go with a white background. (See further down in that same topic where I ran into a few odd rendering bugs). Quote:
SVG is not really a well-researched topic in the realm of ebooks... I definitely haven't seen any advanced SVG like these interactive diagrams (just formulas, "SVG cover pages", SVG Title Pages, SVG captions, etc. etc.). And I really have no idea how they transfer over to the old MOBI format. Last I knew, SVGs just go POOF... and the Amazon recommendation was "use media queries to swap a JPG or PNG instead" (although this would defeat almost the entire purpose of having the SVG in the first place). Quote:
iBooks probably ignores that part of the EPUB3 spec (I don't know 100%, I don't have one to test on. It renders off of webkit, so if webkit can handle it, iBooks probably can), and AZARDI deliberately ignores that SVG animation ban. Although EPUBs created with SVG animation ARE NOT EPUB3 COMPLIANT.... so if you "hack around" them to make them work, it won't be guaranteed to work on all the other EPUB3 devices/readers. And you most definitely will be causing yourself headaches in the future. (Although we can also argue that ADE doesn't follow the EPUB2 spec exactly, and devices have all their own quirks as well... but that is a different topic! ![]() Quote:
Quote:
https://en.wikipedia.org/wiki/Scalab...rowser_support Last edited by Tex2002ans; 03-28-2014 at 02:15 AM. |
|||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF with diagrams/images | tshot | Kindle Formats | 3 | 02-14-2012 11:38 AM |
Scanning b/w images and diagrams | SkookumPete | Workshop | 4 | 07-20-2011 04:12 PM |
Diagrams very faint | PeteS | Calibre | 4 | 09-05-2010 02:30 PM |
Academic PDFs and Diagrams | Mr. Blue Tape | Amazon Kindle | 4 | 08-27-2010 04:52 AM |
Unreadable diagrams | Laurens | Sony Reader | 7 | 10-22-2006 08:54 AM |